Class DatabaseAdminGrpc.DatabaseAdminBlockingStub (6.85.0)

public static final class DatabaseAdminGrpc.DatabaseAdminBlockingStub extends AbstractBlockingStub<DatabaseAdminGrpc.DatabaseAdminBlockingStub>

A stub to allow clients to do synchronous rpc calls to service DatabaseAdmin.

Cloud Spanner Database Admin API The Cloud Spanner Database Admin API can be used to:

  • create, drop, and list databases
  • update the schema of pre-existing databases
  • create, delete, copy and list backups for a database
  • restore a database from an existing backup

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > DatabaseAdminGrpc.DatabaseAdminBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected DatabaseAdminGrpc.DatabaseAdminBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
DatabaseAdminGrpc.DatabaseAdminBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

copyBackup(CopyBackupRequest request)

public Operation copyBackup(CopyBackupRequest request)

Starts copying a Cloud Spanner Backup. The returned backup long-running operation will have a name of the format projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id> and can be used to track copying of the backup. The operation is associated with the destination backup. The metadata field type is CopyBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the copying and delete the destination backup. Concurrent CopyBackup requests can run on the same source backup.

Parameter
Name Description
request CopyBackupRequest
Returns
Type Description
Operation

createBackup(CreateBackupRequest request)

public Operation createBackup(CreateBackupRequest request)

Starts creating a new Cloud Spanner Backup. The returned backup long-running operation will have a name of the format projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id> and can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup. There can be only one pending backup creation per database. Backup creation of different databases can run concurrently.

Parameter
Name Description
request CreateBackupRequest
Returns
Type