Class Instance (2.23.0)

public class Instance extends InstanceInfo

Inheritance

java.lang.Object > InstanceInfo > Instance

Methods

createDatabase(String arg0, Iterable<String> arg1)

public OperationFuture<Database,CreateDatabaseMetadata> createDatabase(String arg0, Iterable<String> arg1)
Parameters
Name Description
arg0 String
arg1 Iterable<String>
Returns
Type Description
OperationFuture<Database,com.google.spanner.admin.database.v1.CreateDatabaseMetadata>
Exceptions
Type Description
SpannerException

delete()

public void delete()

getBackup(String arg0)

public Backup getBackup(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Backup

getDatabase(String arg0)

public Database getDatabase(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Database

getIAMPolicy()

public Policy getIAMPolicy()
Returns
Type Description
com.google.cloud.Policy

listBackupOperations(Options.ListOption[] arg0)

public Page<Operation> listBackupOperations(Options.ListOption[] arg0)
Parameter
Name Description
arg0 ListOption[]
Returns
Type Description
Page<Operation>

listBackups(Options.ListOption[] arg0)

public Page<Backup> listBackups(Options.ListOption[] arg0)
Parameter
Name Description
arg0 ListOption[]
Returns
Type Description
Page<Backup>

listDatabaseOperations(Options.ListOption[] arg0)

public Page<Operation> listDatabaseOperations(Options.ListOption[] arg0)
Parameter
Name Description
arg0 ListOption[]
Returns
Type Description
Page<Operation>

listDatabases(Options.ListOption[] arg0)

public Page<Database> listDatabases(Options.ListOption[] arg0)
Parameter
Name Description
arg0 ListOption[]
Returns
Type Description
Page<Database>

reload()

public Instance reload()
Returns
Type Description
Instance

setIAMPolicy(Policy arg0)

public Policy setIAMPolicy(Policy arg0)
Parameter
Name Description
arg0 com.google.cloud.Policy
Returns
Type Description
com.google.cloud.Policy

testIAMPermissions(Iterable<String> arg0)

public Iterable<String> testIAMPermissions(Iterable<String> arg0)
Parameter
Name Description
arg0 Iterable<String>
Returns
Type Description
Iterable<String>

toBuilder()

public Instance.Builder toBuilder()
Returns
Type Description
Builder
Overrides

update(InstanceInfo.InstanceField[] arg0)

public OperationFuture<Instance,UpdateInstanceMetadata> update(InstanceInfo.InstanceField[] arg0)
Parameter
Name Description
arg0 InstanceField[]
Returns
Type Description
OperationFuture<Instance,com.google.spanner.admin.instance.v1.UpdateInstanceMetadata>