public class Spanner.Projects.Instances.InstancePartitions extends Object
Modifier and Type | Class and Description |
---|---|
class |
Spanner.Projects.Instances.InstancePartitions.Create |
class |
Spanner.Projects.Instances.InstancePartitions.Delete |
class |
Spanner.Projects.Instances.InstancePartitions.Get |
class |
Spanner.Projects.Instances.InstancePartitions.List |
class |
Spanner.Projects.Instances.InstancePartitions.Operations
The "operations" collection of methods.
|
class |
Spanner.Projects.Instances.InstancePartitions.Patch |
Constructor and Description |
---|
InstancePartitions() |
Modifier and Type | Method and Description |
---|---|
Spanner.Projects.Instances.InstancePartitions.Create |
create(String parent,
CreateInstancePartitionRequest content)
Creates an instance partition and begins preparing it to be used.
|
Spanner.Projects.Instances.InstancePartitions.Delete |
delete(String name)
Deletes an existing instance partition.
|
Spanner.Projects.Instances.InstancePartitions.Get |
get(String name)
Gets information about a particular instance partition.
|
Spanner.Projects.Instances.InstancePartitions.List |
list(String parent)
Lists all instance partitions for the given instance.
|
Spanner.Projects.Instances.InstancePartitions.Operations |
operations()
An accessor for creating requests from the Operations collection.
|
Spanner.Projects.Instances.InstancePartitions.Patch |
patch(String name,
UpdateInstancePartitionRequest content)
Updates an instance partition, and begins allocating or releasing resources as requested.
|
public Spanner.Projects.Instances.InstancePartitions.Create create(String parent, CreateInstancePartitionRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The name of the instance in which to create the instance partition. Values are of the form
`projects//instances/`.content
- the CreateInstancePartitionRequest
IOException
public Spanner.Projects.Instances.InstancePartitions.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the instance partition to be deleted. Values are of the form
`projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`IOException
public Spanner.Projects.Instances.InstancePartitions.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the requested instance partition. Values are of the form
`projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`.IOException
public Spanner.Projects.Instances.InstancePartitions.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The instance whose instance partitions should be listed. Values are of the form
`projects//instances/`. Use `{instance} = '-'` to list instance partitions for all
Instances in a project, e.g., `projects/myproject/instances/-`.IOException
public Spanner.Projects.Instances.InstancePartitions.Patch patch(String name, UpdateInstancePartitionRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. A unique identifier for the instance partition. Values are of the form
`projects//instances//instancePartitions/a-z*[a-z0-9]`. The final segment of the name must
be between 2 and 64 characters in length. An instance partition's name cannot be changed
after the instance partition is created.content
- the UpdateInstancePartitionRequest
IOException
public Spanner.Projects.Instances.InstancePartitions.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.