public class Pubsub.Projects.Snapshots extends 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(String name,
CreateSnapshotRequest content)
Creates a snapshot from the requested subscription.
|
Pubsub.Projects.Snapshots.Delete |
delete(String snapshot)
Removes an existing snapshot.
|
Pubsub.Projects.Snapshots.Get |
get(String snapshot)
Gets the configuration details of a snapshot.
|
Pubsub.Projects.Snapshots.GetIamPolicy |
getIamPolicy(String resource)
Gets the access control policy for a resource.
|
Pubsub.Projects.Snapshots.List |
list(String project)
Lists the existing snapshots.
|
Pubsub.Projects.Snapshots.Patch |
patch(String name,
UpdateSnapshotRequest content)
Updates an existing snapshot.
|
Pubsub.Projects.Snapshots.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the access control policy on the specified resource.
|
Pubsub.Projects.Snapshots.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
public Pubsub.Projects.Snapshots.Create create(String name, CreateSnapshotRequest content) throws 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 CreateSnapshotRequestIOExceptionpublic Pubsub.Projects.Snapshots.Delete delete(String snapshot) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.snapshot - Required. The name of the snapshot to delete. Format is `projects/{project}/snapshots/{snap}`.IOExceptionpublic Pubsub.Projects.Snapshots.Get get(String snapshot) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.snapshot - Required. The name of the snapshot to get. Format is `projects/{project}/snapshots/{snap}`.IOExceptionpublic Pubsub.Projects.Snapshots.GetIamPolicy getIamPolicy(String resource) throws 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.IOExceptionpublic Pubsub.Projects.Snapshots.List list(String project) throws 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}`.IOExceptionpublic Pubsub.Projects.Snapshots.Patch patch(String name, UpdateSnapshotRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The name of the snapshot.content - the UpdateSnapshotRequestIOExceptionpublic Pubsub.Projects.Snapshots.SetIamPolicy setIamPolicy(String resource, SetIamPolicyRequest content) throws 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 SetIamPolicyRequestIOExceptionpublic Pubsub.Projects.Snapshots.TestIamPermissions testIamPermissions(String resource, TestIamPermissionsRequest content) throws 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 TestIamPermissionsRequestIOExceptionCopyright © 2011–2021 Google. All rights reserved.