public class Spanner.Projects.Instances.Databases extends Object
Constructor and Description |
---|
Databases() |
Modifier and Type | Method and Description |
---|---|
Spanner.Projects.Instances.Databases.AddSplitPoints |
addSplitPoints(String database,
AddSplitPointsRequest content)
Adds split points to specified tables and indexes of a database.
|
Spanner.Projects.Instances.Databases.BackupSchedules |
backupSchedules()
An accessor for creating requests from the BackupSchedules collection.
|
Spanner.Projects.Instances.Databases.Changequorum |
changequorum(String name,
ChangeQuorumRequest content)
`ChangeQuorum` is strictly restricted to databases that use dual-region instance configurations.
|
Spanner.Projects.Instances.Databases.Create |
create(String parent,
CreateDatabaseRequest content)
Creates a new Spanner database and starts to prepare it for serving.
|
Spanner.Projects.Instances.Databases.DatabaseRoles |
databaseRoles()
An accessor for creating requests from the DatabaseRoles collection.
|
Spanner.Projects.Instances.Databases.DropDatabase |
dropDatabase(String database)
Drops (aka deletes) a Cloud Spanner database.
|
Spanner.Projects.Instances.Databases.Get |
get(String name)
Gets the state of a Cloud Spanner database.
|
Spanner.Projects.Instances.Databases.GetDdl |
getDdl(String database)
Returns the schema of a Cloud Spanner database as a list of formatted DDL statements.
|
Spanner.Projects.Instances.Databases.GetIamPolicy |
getIamPolicy(String resource,
GetIamPolicyRequest content)
Gets the access control policy for a database or backup resource.
|
Spanner.Projects.Instances.Databases.GetScans |
getScans(String name)
Request a specific scan with Database-specific data for Cloud Key Visualizer.
|
Spanner.Projects.Instances.Databases.List |
list(String parent)
Lists Cloud Spanner databases.
|
Spanner.Projects.Instances.Databases.Operations |
operations()
An accessor for creating requests from the Operations collection.
|
Spanner.Projects.Instances.Databases.Patch |
patch(String name,
Database content)
Updates a Cloud Spanner database.
|
Spanner.Projects.Instances.Databases.Restore |
restore(String parent,
RestoreDatabaseRequest content)
Create a new database by restoring from a completed backup.
|
Spanner.Projects.Instances.Databases.Sessions |
sessions()
An accessor for creating requests from the Sessions collection.
|
Spanner.Projects.Instances.Databases.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the access control policy on a database or backup resource.
|
Spanner.Projects.Instances.Databases.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns permissions that the caller has on the specified database or backup resource.
|
Spanner.Projects.Instances.Databases.UpdateDdl |
updateDdl(String database,
UpdateDatabaseDdlRequest content)
Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns,
indexes, etc.
|
public Spanner.Projects.Instances.Databases.AddSplitPoints addSplitPoints(String database, AddSplitPointsRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.database
- Required. The database on whose tables or indexes the split points are to be added. Values are of
the form `projects//instances//databases/`.content
- the AddSplitPointsRequest
IOException
public Spanner.Projects.Instances.Databases.Changequorum changequorum(String name, ChangeQuorumRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. Name of the database in which to apply `ChangeQuorum`. Values are of the form
`projects//instances//databases/`.content
- the ChangeQuorumRequest
IOException
public Spanner.Projects.Instances.Databases.Create create(String parent, CreateDatabaseRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The name of the instance that will serve the new database. Values are of the form
`projects//instances/`.content
- the CreateDatabaseRequest
IOException
public Spanner.Projects.Instances.Databases.DropDatabase dropDatabase(String database) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.database
- Required. The database to be dropped.IOException
public Spanner.Projects.Instances.Databases.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the requested database. Values are of the form
`projects//instances//databases/`.IOException
public Spanner.Projects.Instances.Databases.GetDdl getDdl(String database) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.database
- Required. The database whose schema we wish to get. Values are of the form
`projects//instances//databases/`IOException
public Spanner.Projects.Instances.Databases.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.Databases.GetScans getScans(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The unique name of the scan containing the requested information, specific to the Database
service implementing this interface.IOException
public Spanner.Projects.Instances.Databases.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The instance whose databases should be listed. Values are of the form
`projects//instances/`.IOException
public Spanner.Projects.Instances.Databases.Patch patch(String name, Database content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the database. Values are of the form `projects//instances//databases/`, where
`` is as specified in the `CREATE DATABASE` statement. This name can be passed to other
API methods to identify the database.content
- the Database
IOException
public Spanner.Projects.Instances.Databases.Restore restore(String parent, RestoreDatabaseRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. The name of the instance in which to create the restored database. This instance must be
in the same project and have the same instance configuration as the instance containing
the source backup. Values are of the form `projects//instances/`.content
- the RestoreDatabaseRequest
IOException
public Spanner.Projects.Instances.Databases.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.Databases.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.Databases.UpdateDdl updateDdl(String database, UpdateDatabaseDdlRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.database
- Required. The database to update.content
- the UpdateDatabaseDdlRequest
IOException
public Spanner.Projects.Instances.Databases.BackupSchedules backupSchedules()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.BackupSchedules.List request = spanner.backupSchedules().list(parameters ...)
public Spanner.Projects.Instances.Databases.DatabaseRoles databaseRoles()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.DatabaseRoles.List request = spanner.databaseRoles().list(parameters ...)
public Spanner.Projects.Instances.Databases.Operations operations()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.Operations.List request = spanner.operations().list(parameters ...)
public Spanner.Projects.Instances.Databases.Sessions sessions()
The typical use is:
Spanner spanner = new Spanner(...);
Spanner.Sessions.List request = spanner.sessions().list(parameters ...)
Copyright © 2011–2025 Google. All rights reserved.