public class Spanner.Projects.Instances extends Object
Constructor and Description |
---|
Instances() |
Modifier and Type | Method and Description |
---|---|
Spanner.Projects.Instances.BackupOperations |
backupOperations()
An accessor for creating requests from the BackupOperations collection.
|
Spanner.Projects.Instances.Backups |
backups()
An accessor for creating requests from the Backups collection.
|
Spanner.Projects.Instances.Create |
create(String parent,
CreateInstanceRequest content)
Creates an instance and begins preparing it to begin serving.
|
Spanner.Projects.Instances.DatabaseOperations |
databaseOperations()
An accessor for creating requests from the DatabaseOperations collection.
|
Spanner.Projects.Instances.Databases |
databases()
An accessor for creating requests from the Databases collection.
|
Spanner.Projects.Instances.Delete |
delete(String name)
Deletes an instance.
|
Spanner.Projects.Instances.Get |
get(String name)
Gets information about a particular instance.
|
Spanner.Projects.Instances.GetIamPolicy |
getIamPolicy(String resource,
GetIamPolicyRequest content)
Gets the access control policy for an instance resource.
|
Spanner.Projects.Instances.InstancePartitionOperations |
instancePartitionOperations()
An accessor for creating requests from the InstancePartitionOperations collection.
|
Spanner.Projects.Instances.InstancePartitions |
instancePartitions()
An accessor for creating requests from the InstancePartitions collection.
|
Spanner.Projects.Instances.List |
list(String parent)
Lists all instances in the given project.
|
Spanner.Projects.Instances.Move |
move(String name,
MoveInstanceRequest content)
Moves an instance to the target instance configuration.
|
Spanner.Projects.Instances.Operations |
operations()
An accessor for creating requests from the Operations collection.
|
Spanner.Projects.Instances.Patch |
patch(String name,
UpdateInstanceRequest content)
Updates an instance, and begins allocating or releasing resources as requested.
|
Spanner.Projects.Instances.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the access control policy on an instance resource.
|
Spanner.Projects.Instances.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns permissions that the caller has on the specified instance resource.
|
public Spanner.Projects.Instances.Create create(String parent, CreateInstanceRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The name of the project in which to create the instance. Values are of the form
`projects/`.content
- the CreateInstanceRequest
IOException
public Spanner.Projects.Instances.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the instance to be deleted. Values are of the form `projects//instances/`IOException
public Spanner.Projects.Instances.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the requested instance. Values are of the form `projects//instances/`.IOException
public Spanner.Projects.Instances.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.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The name of the project for which a list of instances is requested. Values are of the form
`projects/`.IOException
public Spanner.Projects.Instances.Move move(String name, MoveInstanceRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The instance to move. Values are of the form `projects//instances/`.content
- the MoveInstanceRequest
IOException
public Spanner.Projects.Instances.Patch patch(String name, UpdateInstanceRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. A unique identifier for the instance, which cannot be changed after the instance is
created. Values are of the form `projects//instances/a-z*[a-z0-9]`. The final segment of
the name must be between 2 and 64 characters in length.content
- the UpdateInstanceRequest
IOException
public Spanner.Projects.Instances.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.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.BackupOperations backupOperations()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.BackupOperations.List request = spanner.backupOperations().list(parameters ...)
public Spanner.Projects.Instances.Backups backups()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.Backups.List request = spanner.backups().list(parameters ...)
public Spanner.Projects.Instances.DatabaseOperations databaseOperations()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.DatabaseOperations.List request = spanner.databaseOperations().list(parameters ...)
public Spanner.Projects.Instances.Databases databases()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.Databases.List request = spanner.databases().list(parameters ...)
public Spanner.Projects.Instances.InstancePartitionOperations instancePartitionOperations()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.InstancePartitionOperations.List request = spanner.instancePartitionOperations().list(parameters ...)
public Spanner.Projects.Instances.InstancePartitions instancePartitions()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.InstancePartitions.List request = spanner.instancePartitions().list(parameters ...)
public Spanner.Projects.Instances.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.