public class Spanner.Projects.Instances.Backups extends Object
Modifier and Type | Class and Description |
---|---|
class |
Spanner.Projects.Instances.Backups.Copy |
class |
Spanner.Projects.Instances.Backups.Create |
class |
Spanner.Projects.Instances.Backups.Delete |
class |
Spanner.Projects.Instances.Backups.Get |
class |
Spanner.Projects.Instances.Backups.GetIamPolicy |
class |
Spanner.Projects.Instances.Backups.List |
class |
Spanner.Projects.Instances.Backups.Operations
The "operations" collection of methods.
|
class |
Spanner.Projects.Instances.Backups.Patch |
class |
Spanner.Projects.Instances.Backups.SetIamPolicy |
class |
Spanner.Projects.Instances.Backups.TestIamPermissions |
Constructor and Description |
---|
Backups() |
Modifier and Type | Method and Description |
---|---|
Spanner.Projects.Instances.Backups.Copy |
copy(String parent,
CopyBackupRequest content)
Starts copying a Cloud Spanner Backup.
|
Spanner.Projects.Instances.Backups.Create |
create(String parent,
Backup content)
Starts creating a new Cloud Spanner Backup.
|
Spanner.Projects.Instances.Backups.Delete |
delete(String name)
Deletes a pending or completed Backup.
|
Spanner.Projects.Instances.Backups.Get |
get(String name)
Gets metadata on a pending or completed Backup.
|
Spanner.Projects.Instances.Backups.GetIamPolicy |
getIamPolicy(String resource,
GetIamPolicyRequest content)
Gets the access control policy for a database or backup resource.
|
Spanner.Projects.Instances.Backups.List |
list(String parent)
Lists completed and pending backups.
|
Spanner.Projects.Instances.Backups.Operations |
operations()
An accessor for creating requests from the Operations collection.
|
Spanner.Projects.Instances.Backups.Patch |
patch(String name,
Backup content)
Updates a pending or completed Backup.
|
Spanner.Projects.Instances.Backups.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the access control policy on a database or backup resource.
|
Spanner.Projects.Instances.Backups.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns permissions that the caller has on the specified database or backup resource.
|
public Spanner.Projects.Instances.Backups.Copy copy(String parent, CopyBackupRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The name of the destination instance that will contain the backup copy. Values are of the
form: `projects//instances/`.content
- the CopyBackupRequest
IOException
public Spanner.Projects.Instances.Backups.Create create(String parent, Backup content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The name of the instance in which the backup will be created. This must be the same
instance that contains the database the backup will be created from. The backup will be
stored in the location(s) specified in the instance configuration of this instance. Values
are of the form `projects//instances/`.content
- the Backup
IOException
public Spanner.Projects.Instances.Backups.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Name of the backup to delete. Values are of the form `projects//instances//backups/`.IOException
public Spanner.Projects.Instances.Backups.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Name of the backup. Values are of the form `projects//instances//backups/`.IOException
public Spanner.Projects.Instances.Backups.GetIamPolicy getIamPolicy(String resource, GetIamPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.resource
- REQUIRED: The Cloud Spanner resource for which the policy is being retrieved. The format is
`projects//instances/` for instance resources and `projects//instances//databases/` for
database resources.content
- the GetIamPolicyRequest
IOException
public Spanner.Projects.Instances.Backups.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The instance to list backups from. Values are of the form `projects//instances/`.IOException
public Spanner.Projects.Instances.Backups.Patch patch(String name, Backup content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally
unique identifier for the backup which cannot be changed. Values are of the form
`projects//instances//backups/a-z*[a-z0-9]` The final segment of the name must be between
2 and 60 characters in length. The backup is stored in the location(s) specified in the
instance configuration of the instance containing the backup, identified by the prefix of
the backup name of the form `projects//instances/`.content
- the Backup
IOException
public Spanner.Projects.Instances.Backups.SetIamPolicy setIamPolicy(String resource, SetIamPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.resource
- REQUIRED: The Cloud Spanner resource for which the policy is being set. The format is
`projects//instances/` for instance resources and `projects//instances//databases/` for
databases resources.content
- the SetIamPolicyRequest
IOException
public Spanner.Projects.Instances.Backups.TestIamPermissions testIamPermissions(String resource, TestIamPermissionsRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.resource
- REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is
`projects//instances/` for instance resources and `projects//instances//databases/` for
database resources.content
- the TestIamPermissionsRequest
IOException
public Spanner.Projects.Instances.Backups.Operations operations()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.Operations.List request = spanner.operations().list(parameters ...)
Copyright © 2011–2025 Google. All rights reserved.