public class Pubsub.Projects.Topics
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Pubsub.Projects.Topics.Create |
class |
Pubsub.Projects.Topics.Delete |
class |
Pubsub.Projects.Topics.Get |
class |
Pubsub.Projects.Topics.GetIamPolicy |
class |
Pubsub.Projects.Topics.List |
class |
Pubsub.Projects.Topics.Patch |
class |
Pubsub.Projects.Topics.Publish |
class |
Pubsub.Projects.Topics.SetIamPolicy |
class |
Pubsub.Projects.Topics.Snapshots
The "snapshots" collection of methods.
|
class |
Pubsub.Projects.Topics.Subscriptions
The "subscriptions" collection of methods.
|
class |
Pubsub.Projects.Topics.TestIamPermissions |
Constructor and Description |
---|
Topics() |
Modifier and Type | Method and Description |
---|---|
Pubsub.Projects.Topics.Create |
create(java.lang.String name,
Topic content)
Creates the given topic with the given name.
|
Pubsub.Projects.Topics.Delete |
delete(java.lang.String topic)
Deletes the topic with the given name.
|
Pubsub.Projects.Topics.Get |
get(java.lang.String topic)
Gets the configuration of a topic.
|
Pubsub.Projects.Topics.GetIamPolicy |
getIamPolicy(java.lang.String resource)
Gets the access control policy for a resource.
|
Pubsub.Projects.Topics.List |
list(java.lang.String project)
Lists matching topics.
|
Pubsub.Projects.Topics.Patch |
patch(java.lang.String name,
UpdateTopicRequest content)
Updates an existing topic.
|
Pubsub.Projects.Topics.Publish |
publish(java.lang.String topic,
PublishRequest content)
Adds one or more messages to the topic.
|
Pubsub.Projects.Topics.SetIamPolicy |
setIamPolicy(java.lang.String resource,
SetIamPolicyRequest content)
Sets the access control policy on the specified resource.
|
Pubsub.Projects.Topics.Snapshots |
snapshots()
An accessor for creating requests from the Snapshots collection.
|
Pubsub.Projects.Topics.Subscriptions |
subscriptions()
An accessor for creating requests from the Subscriptions collection.
|
Pubsub.Projects.Topics.TestIamPermissions |
testIamPermissions(java.lang.String resource,
TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
public Pubsub.Projects.Topics.Create create(java.lang.String name, Topic content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the topic. It must have the format
`"projects/{project}/topics/{topic}"`.
`{topic}` must start with a letter,
and contain only letters (`[A-Za-z]`), numbers
(`[0-9]`), dashes (`-`),
underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or
percent
signs (`%`). It must be between 3 and 255 characters in length, and it
must not
start with `"goog"`.content
- the Topic
java.io.IOException
public Pubsub.Projects.Topics.Delete delete(java.lang.String topic) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.topic
- Required. Name of the topic to delete.
Format is `projects/{project}/topics/{topic}`.java.io.IOException
public Pubsub.Projects.Topics.Get get(java.lang.String topic) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.topic
- Required. The name of the topic to get.
Format is `projects/{project}/topics/{topic}`.java.io.IOException
public Pubsub.Projects.Topics.GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.resource
- REQUIRED: The resource for which the policy is being requested.
See the operation documentation for
the appropriate value for this field.java.io.IOException
public Pubsub.Projects.Topics.List list(java.lang.String project) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Required. The name of the project in which to list topics.
Format is `projects/{project-id}`.java.io.IOException
public Pubsub.Projects.Topics.Patch patch(java.lang.String name, UpdateTopicRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the topic. It must have the format
`"projects/{project}/topics/{topic}"`.
`{topic}` must start with a letter,
and contain only letters (`[A-Za-z]`), numbers
(`[0-9]`), dashes (`-`),
underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or
percent
signs (`%`). It must be between 3 and 255 characters in length, and it
must not
start with `"goog"`.content
- the UpdateTopicRequest
java.io.IOException
public Pubsub.Projects.Topics.Publish publish(java.lang.String topic, PublishRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.topic
- Required. The messages in the request will be published on this topic.
Format is
`projects/{project}/topics/{topic}`.content
- the PublishRequest
java.io.IOException
public Pubsub.Projects.Topics.SetIamPolicy setIamPolicy(java.lang.String resource, SetIamPolicyRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.resource
- REQUIRED: The resource for which the policy is being specified.
See the operation documentation for
the appropriate value for this field.content
- the SetIamPolicyRequest
java.io.IOException
public Pubsub.Projects.Topics.TestIamPermissions testIamPermissions(java.lang.String resource, TestIamPermissionsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.resource
- REQUIRED: The resource for which the policy detail is being requested.
See the operation
documentation for the appropriate value for this field.content
- the TestIamPermissionsRequest
java.io.IOException
public Pubsub.Projects.Topics.Snapshots snapshots()
The typical use is:
Pubsub pubsub = new Pubsub(...);
Pubsub.Snapshots.List request = pubsub.snapshots().list(parameters ...)
public Pubsub.Projects.Topics.Subscriptions subscriptions()
The typical use is:
Pubsub pubsub = new Pubsub(...);
Pubsub.Subscriptions.List request = pubsub.subscriptions().list(parameters ...)