public class Pubsub.Projects.Snapshots
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Pubsub.Projects.Snapshots.Create |
class |
Pubsub.Projects.Snapshots.Delete |
class |
Pubsub.Projects.Snapshots.Get |
class |
Pubsub.Projects.Snapshots.GetIamPolicy |
class |
Pubsub.Projects.Snapshots.List |
class |
Pubsub.Projects.Snapshots.Patch |
class |
Pubsub.Projects.Snapshots.SetIamPolicy |
class |
Pubsub.Projects.Snapshots.TestIamPermissions |
Constructor and Description |
---|
Snapshots() |
Modifier and Type | Method and Description |
---|---|
Pubsub.Projects.Snapshots.Create |
create(java.lang.String name,
CreateSnapshotRequest content)
Creates a snapshot from the requested subscription.
|
Pubsub.Projects.Snapshots.Delete |
delete(java.lang.String snapshot)
Removes an existing snapshot.
|
Pubsub.Projects.Snapshots.Get |
get(java.lang.String snapshot)
Gets the configuration details of a snapshot.
|
Pubsub.Projects.Snapshots.GetIamPolicy |
getIamPolicy(java.lang.String resource)
Gets the access control policy for a resource.
|
Pubsub.Projects.Snapshots.List |
list(java.lang.String project)
Lists the existing snapshots.
|
Pubsub.Projects.Snapshots.Patch |
patch(java.lang.String name,
UpdateSnapshotRequest content)
Updates an existing snapshot.
|
Pubsub.Projects.Snapshots.SetIamPolicy |
setIamPolicy(java.lang.String resource,
SetIamPolicyRequest content)
Sets the access control policy on the specified resource.
|
Pubsub.Projects.Snapshots.TestIamPermissions |
testIamPermissions(java.lang.String resource,
TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
public Pubsub.Projects.Snapshots.Create create(java.lang.String name, CreateSnapshotRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. User-provided name for this snapshot. If the name is not provided in the
request, the
server will assign a random name for this snapshot on the same
project as the
subscription. Note that for REST API requests, you must
specify a name. See the resource
name rules. Format is `projects/{project}/snapshots/{snap}`.content
- the CreateSnapshotRequest
java.io.IOException
public Pubsub.Projects.Snapshots.Delete delete(java.lang.String snapshot) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.snapshot
- Required. The name of the snapshot to delete.
Format is `projects/{project}/snapshots/{snap}`.java.io.IOException
public Pubsub.Projects.Snapshots.Get get(java.lang.String snapshot) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.snapshot
- Required. The name of the snapshot to get.
Format is `projects/{project}/snapshots/{snap}`.java.io.IOException
public Pubsub.Projects.Snapshots.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.Snapshots.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 snapshots.
Format is `projects/{project-id}`.java.io.IOException
public Pubsub.Projects.Snapshots.Patch patch(java.lang.String name, UpdateSnapshotRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- The name of the snapshot.content
- the UpdateSnapshotRequest
java.io.IOException
public Pubsub.Projects.Snapshots.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.Snapshots.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