Interface DatabaseAdminClient (2.16.1)

public interface DatabaseAdminClient

Methods

cancelOperation(String arg0)

public abstract void cancelOperation(String arg0)
Parameter
NameDescription
arg0String

copyBackup(BackupId arg0, Backup arg1)

public default OperationFuture<Backup,CopyBackupMetadata> copyBackup(BackupId arg0, Backup arg1)
Parameters
NameDescription
arg0BackupId
arg1Backup
Returns
TypeDescription
OperationFuture<Backup,com.google.spanner.admin.database.v1.CopyBackupMetadata>

copyBackup(String arg0, String arg1, String arg2, Timestamp arg3)

public default OperationFuture<Backup,CopyBackupMetadata> copyBackup(String arg0, String arg1, String arg2, Timestamp arg3)
Parameters
NameDescription
arg0String
arg1String
arg2String
arg3com.google.cloud.Timestamp
Returns
TypeDescription
OperationFuture<Backup,com.google.spanner.admin.database.v1.CopyBackupMetadata>

createBackup(Backup arg0)

public abstract OperationFuture<Backup,CreateBackupMetadata> createBackup(Backup arg0)
Parameter
NameDescription
arg0Backup
Returns
TypeDescription
OperationFuture<Backup,com.google.spanner.admin.database.v1.CreateBackupMetadata>
Exceptions
TypeDescription
SpannerException

createBackup(String arg0, String arg1, String arg2, Timestamp arg3)

public abstract OperationFuture<Backup,CreateBackupMetadata> createBackup(String arg0, String arg1, String arg2, Timestamp arg3)
Parameters
NameDescription
arg0String
arg1String
arg2String
arg3com.google.cloud.Timestamp
Returns
TypeDescription
OperationFuture<Backup,com.google.spanner.admin.database.v1.CreateBackupMetadata>
Exceptions
TypeDescription
SpannerException

createDatabase(Database arg0, Iterable<String> arg1)

public abstract OperationFuture<Database,CreateDatabaseMetadata> createDatabase(Database arg0, Iterable<String> arg1)
Parameters
NameDescription
arg0Database
arg1Iterable<String>
Returns
TypeDescription
OperationFuture<Database,com.google.spanner.admin.database.v1.CreateDatabaseMetadata>
Exceptions
TypeDescription
SpannerException

createDatabase(String arg0, String arg1, Dialect arg2, Iterable<String> arg3)

public default OperationFuture<Database,CreateDatabaseMetadata> createDatabase(String arg0, String arg1, Dialect arg2, Iterable<String> arg3)
Parameters
NameDescription
arg0String
arg1String
arg2Dialect
arg3Iterable<String>
Returns
TypeDescription
OperationFuture<Database,com.google.spanner.admin.database.v1.CreateDatabaseMetadata>
Exceptions
TypeDescription
SpannerException

createDatabase(String arg0, String arg1, Iterable<String> arg2)

public abstract OperationFuture<Database,CreateDatabaseMetadata> createDatabase(String arg0, String arg1, Iterable<String> arg2)
Parameters
NameDescription
arg0String
arg1String
arg2Iterable<String>
Returns
TypeDescription
OperationFuture<Database,com.google.spanner.admin.database.v1.CreateDatabaseMetadata>
Exceptions
TypeDescription
SpannerException

deleteBackup(String arg0, String arg1)

public abstract void deleteBackup(String arg0, String arg1)
Parameters
NameDescription
arg0String
arg1String

dropDatabase(String arg0, String arg1)

public abstract void dropDatabase(String arg0, String arg1)
Parameters
NameDescription
arg0String
arg1String
Exceptions
TypeDescription
SpannerException

getBackup(String arg0, String arg1)

public abstract Backup getBackup(String arg0, String arg1)
Parameters
NameDescription
arg0String
arg1String
Returns
TypeDescription
Backup
Exceptions
TypeDescription
SpannerException

getBackupIAMPolicy(String arg0, String arg1)

public abstract Policy getBackupIAMPolicy(String arg0, String arg1)
Parameters
NameDescription
arg0String
arg1String
Returns
TypeDescription
com.google.cloud.Policy

getDatabase(String arg0, String arg1)

public abstract Database getDatabase(String arg0, String arg1)
Parameters
NameDescription
arg0String
arg1String
Returns
TypeDescription
Database
Exceptions
TypeDescription
SpannerException

getDatabaseDdl(String arg0, String arg1)

public abstract List<String> getDatabaseDdl(String arg0, String arg1)
Parameters
NameDescription
arg0String
arg1String
Returns
TypeDescription
List<String>

getDatabaseDdlResponse(String arg0, String arg1)

public abstract GetDatabaseDdlResponse getDatabaseDdlResponse(String arg0, String arg1)
Parameters
NameDescription
arg0String
arg1String
Returns
TypeDescription
com.google.spanner.admin.database.v1.GetDatabaseDdlResponse

getDatabaseIAMPolicy(String arg0, String arg1, int arg2)

public abstract Policy getDatabaseIAMPolicy(String arg0, String arg1, int arg2)
Parameters
NameDescription
arg0String
arg1String
arg2int
Returns
TypeDescription
com.google.cloud.Policy

getOperation(String arg0)

public abstract Operation getOperation(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
Operation

listBackupOperations(String arg0, Options.ListOption[] arg1)

public abstract Page<Operation> listBackupOperations(String arg0, Options.ListOption[] arg1)
Parameters
NameDescription
arg0String
arg1ListOption[]
Returns
TypeDescription
Page<Operation>

listBackups(String arg0, Options.ListOption[] arg1)

public abstract Page<Backup> listBackups(String arg0, Options.ListOption[] arg1)
Parameters
NameDescription
arg0String
arg1ListOption[]
Returns
TypeDescription
Page<Backup>

listDatabaseOperations(String arg0, Options.ListOption[] arg1)

public abstract Page<Operation> listDatabaseOperations(String arg0, Options.ListOption[] arg1)
Parameters
NameDescription
arg0String
arg1ListOption[]
Returns
TypeDescription
Page<Operation>

listDatabaseRoles(String arg0, String arg1, Options.ListOption[] arg2)

public abstract Page<DatabaseRole> listDatabaseRoles(String arg0, String arg1, Options.ListOption[] arg2)
Parameters
NameDescription
arg0String
arg1String
arg2ListOption[]
Returns
TypeDescription
Page<DatabaseRole>

listDatabases(String arg0, Options.ListOption[] arg1)

public abstract Page<Database> listDatabases(String arg0, Options.ListOption[] arg1)
Parameters
NameDescription
arg0String
arg1ListOption[]
Returns
TypeDescription
Page<Database>

newBackupBuilder(BackupId arg0)

public abstract Backup.Builder newBackupBuilder(BackupId arg0)
Parameter
NameDescription
arg0BackupId
Returns
TypeDescription
Builder

newDatabaseBuilder(DatabaseId arg0)

public abstract Database.Builder newDatabaseBuilder(DatabaseId arg0)
Parameter
NameDescription
arg0DatabaseId
Returns
TypeDescription
Builder

newRestoreBuilder(BackupId arg0, DatabaseId arg1)

public abstract Restore.Builder newRestoreBuilder(BackupId arg0, DatabaseId arg1)
Parameters
NameDescription
arg0BackupId
arg1DatabaseId
Returns
TypeDescription
Builder

restoreDatabase(Restore arg0)

public abstract OperationFuture<Database,RestoreDatabaseMetadata> restoreDatabase(Restore arg0)
Parameter
NameDescription
arg0Restore
Returns
TypeDescription
OperationFuture<Database,com.google.spanner.admin.database.v1.RestoreDatabaseMetadata>
Exceptions
TypeDescription
SpannerException

restoreDatabase(String arg0, String arg1, String arg2, String arg3)

public abstract OperationFuture<Database,RestoreDatabaseMetadata> restoreDatabase(String arg0, String arg1, String arg2, String arg3)
Parameters
NameDescription
arg0String
arg1String
arg2String
arg3String
Returns
TypeDescription
OperationFuture<Database,com.google.spanner.admin.database.v1.RestoreDatabaseMetadata>
Exceptions
TypeDescription
SpannerException

setBackupIAMPolicy(String arg0, String arg1, Policy arg2)

public abstract Policy setBackupIAMPolicy(String arg0, String arg1, Policy arg2)
Parameters
NameDescription
arg0String
arg1String
arg2com.google.cloud.Policy
Returns
TypeDescription
com.google.cloud.Policy

setDatabaseIAMPolicy(String arg0, String arg1, Policy arg2)

public abstract Policy setDatabaseIAMPolicy(String arg0, String arg1, Policy arg2)
Parameters
NameDescription
arg0String
arg1String
arg2com.google.cloud.Policy
Returns
TypeDescription
com.google.cloud.Policy

testBackupIAMPermissions(String arg0, String arg1, Iterable<String> arg2)

public abstract Iterable<String> testBackupIAMPermissions(String arg0, String arg1, Iterable<String> arg2)
Parameters
NameDescription
arg0String
arg1String
arg2Iterable<String>
Returns
TypeDescription
Iterable<String>

testDatabaseIAMPermissions(String arg0, String arg1, Iterable<String> arg2)

public abstract Iterable<String> testDatabaseIAMPermissions(String arg0, String arg1, Iterable<String> arg2)
Parameters
NameDescription
arg0String
arg1String
arg2Iterable<String>
Returns
TypeDescription
Iterable<String>

updateBackup(String arg0, String arg1, Timestamp arg2)

public abstract Backup updateBackup(String arg0, String arg1, Timestamp arg2)
Parameters
NameDescription
arg0String
arg1String
arg2com.google.cloud.Timestamp
Returns
TypeDescription
Backup

updateDatabase(Database arg0, DatabaseInfo.DatabaseField[] arg1)

public abstract OperationFuture<Database,UpdateDatabaseMetadata> updateDatabase(Database arg0, DatabaseInfo.DatabaseField[] arg1)
Parameters
NameDescription
arg0Database
arg1DatabaseField[]
Returns
TypeDescription
OperationFuture<Database,com.google.spanner.admin.database.v1.UpdateDatabaseMetadata>
Exceptions
TypeDescription
SpannerException

updateDatabaseDdl(Database arg0, Iterable<String> arg1, String arg2)

public abstract OperationFuture<Void,UpdateDatabaseDdlMetadata> updateDatabaseDdl(Database arg0, Iterable<String> arg1, String arg2)
Parameters
NameDescription
arg0Database
arg1Iterable<String>
arg2String
Returns
TypeDescription
OperationFuture<Void,com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata>
Exceptions
TypeDescription
SpannerException

updateDatabaseDdl(String arg0, String arg1, Iterable<String> arg2, String arg3)

public abstract OperationFuture<Void,UpdateDatabaseDdlMetadata> updateDatabaseDdl(String arg0, String arg1, Iterable<String> arg2, String arg3)
Parameters
NameDescription
arg0String
arg1String
arg2Iterable<String>
arg3String
Returns
TypeDescription
OperationFuture<Void,com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata>
Exceptions
TypeDescription
SpannerException