public class Spanner.Projects.Instances.Backups
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
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.Create |
create(java.lang.String parent,
Backup content)
Starts creating a new Cloud Spanner Backup.
|
Spanner.Projects.Instances.Backups.Delete |
delete(java.lang.String name)
Deletes a pending or completed Backup.
|
Spanner.Projects.Instances.Backups.Get |
get(java.lang.String name)
Gets metadata on a pending or completed Backup.
|
Spanner.Projects.Instances.Backups.GetIamPolicy |
getIamPolicy(java.lang.String resource,
GetIamPolicyRequest content)
Gets the access control policy for a database or backup resource.
|
Spanner.Projects.Instances.Backups.List |
list(java.lang.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(java.lang.String name,
Backup content)
Updates a pending or completed Backup.
|
Spanner.Projects.Instances.Backups.SetIamPolicy |
setIamPolicy(java.lang.String resource,
SetIamPolicyRequest content)
Sets the access control policy on a database or backup resource.
|
Spanner.Projects.Instances.Backups.TestIamPermissions |
testIamPermissions(java.lang.String resource,
TestIamPermissionsRequest content)
Returns permissions that the caller has on the specified database or backup resource.
|
public Spanner.Projects.Instances.Backups.Create create(java.lang.String parent, Backup content) throws java.io.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
java.io.IOException
public Spanner.Projects.Instances.Backups.Delete delete(java.lang.String name) throws java.io.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/`.java.io.IOException
public Spanner.Projects.Instances.Backups.Get get(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Name of the backup.
Values are of the form
`projects//instances//backups/`.java.io.IOException
public Spanner.Projects.Instances.Backups.GetIamPolicy getIamPolicy(java.lang.String resource, GetIamPolicyRequest content) throws java.io.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
java.io.IOException
public Spanner.Projects.Instances.Backups.List list(java.lang.String parent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The instance to list backups from. Values are of the
form `projects//instances/`.java.io.IOException
public Spanner.Projects.Instances.Backups.Patch patch(java.lang.String name, Backup content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Output only for the CreateBackup][DatabaseAdmin.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
java.io.IOException
public Spanner.Projects.Instances.Backups.SetIamPolicy setIamPolicy(java.lang.String resource, SetIamPolicyRequest content) throws java.io.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
java.io.IOException
public Spanner.Projects.Instances.Backups.TestIamPermissions testIamPermissions(java.lang.String resource, TestIamPermissionsRequest content) throws java.io.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
java.io.IOException
public Spanner.Projects.Instances.Backups.Operations operations()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.Operations.List request = spanner.operations().list(parameters ...)