public class Spanner.Projects.Instances
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Spanner.Projects.Instances.BackupOperations
The "backupOperations" collection of methods.
|
class |
Spanner.Projects.Instances.Backups
The "backups" collection of methods.
|
class |
Spanner.Projects.Instances.Create |
class |
Spanner.Projects.Instances.DatabaseOperations
The "databaseOperations" collection of methods.
|
class |
Spanner.Projects.Instances.Databases
The "databases" collection of methods.
|
class |
Spanner.Projects.Instances.Delete |
class |
Spanner.Projects.Instances.Get |
class |
Spanner.Projects.Instances.GetIamPolicy |
class |
Spanner.Projects.Instances.List |
class |
Spanner.Projects.Instances.Operations
The "operations" collection of methods.
|
class |
Spanner.Projects.Instances.Patch |
class |
Spanner.Projects.Instances.SetIamPolicy |
class |
Spanner.Projects.Instances.TestIamPermissions |
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(java.lang.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(java.lang.String name)
Deletes an instance.
|
Spanner.Projects.Instances.Get |
get(java.lang.String name)
Gets information about a particular instance.
|
Spanner.Projects.Instances.GetIamPolicy |
getIamPolicy(java.lang.String resource,
GetIamPolicyRequest content)
Gets the access control policy for an instance resource.
|
Spanner.Projects.Instances.List |
list(java.lang.String parent)
Lists all instances in the given project.
|
Spanner.Projects.Instances.Operations |
operations()
An accessor for creating requests from the Operations collection.
|
Spanner.Projects.Instances.Patch |
patch(java.lang.String name,
UpdateInstanceRequest content)
Updates an instance, and begins allocating or releasing resources as requested.
|
Spanner.Projects.Instances.SetIamPolicy |
setIamPolicy(java.lang.String resource,
SetIamPolicyRequest content)
Sets the access control policy on an instance resource.
|
Spanner.Projects.Instances.TestIamPermissions |
testIamPermissions(java.lang.String resource,
TestIamPermissionsRequest content)
Returns permissions that the caller has on the specified instance resource.
|
public Spanner.Projects.Instances.Create create(java.lang.String parent, CreateInstanceRequest content) throws java.io.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
java.io.IOException
public Spanner.Projects.Instances.Delete delete(java.lang.String name) throws java.io.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/`java.io.IOException
public Spanner.Projects.Instances.Get get(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the requested instance. Values are of the form
`projects//instances/`.java.io.IOException
public Spanner.Projects.Instances.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.List list(java.lang.String parent) throws java.io.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/`.java.io.IOException
public Spanner.Projects.Instances.Patch patch(java.lang.String name, UpdateInstanceRequest content) throws java.io.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
java.io.IOException
public Spanner.Projects.Instances.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.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.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.Operations operations()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.Operations.List request = spanner.operations().list(parameters ...)