Class Instance (2.16.1)

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
NameDescription
arg0String
arg1Iterable<String>
Returns
TypeDescription
OperationFuture<Database,com.google.spanner.admin.database.v1.CreateDatabaseMetadata>
Exceptions
TypeDescription
SpannerException

delete()

public void delete()

getBackup(String arg0)

public Backup getBackup(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
Backup

getDatabase(String arg0)

public Database getDatabase(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
Database

getIAMPolicy()

public Policy getIAMPolicy()
Returns
TypeDescription
com.google.cloud.Policy

listBackupOperations(Options.ListOption[] arg0)

public Page<Operation> listBackupOperations(Options.ListOption[] arg0)
Parameter
NameDescription
arg0ListOption[]
Returns
TypeDescription
Page<Operation>

listBackups(Options.ListOption[] arg0)

public Page<Backup> listBackups(Options.ListOption[] arg0)
Parameter
NameDescription
arg0ListOption[]
Returns
TypeDescription
Page<Backup>

listDatabaseOperations(Options.ListOption[] arg0)

public Page<Operation> listDatabaseOperations(Options.ListOption[] arg0)
Parameter
NameDescription
arg0ListOption[]
Returns
TypeDescription
Page<Operation>

listDatabases(Options.ListOption[] arg0)

public Page<Database> listDatabases(Options.ListOption[] arg0)
Parameter
NameDescription
arg0ListOption[]
Returns
TypeDescription
Page<Database>

reload()

public Instance reload()
Returns
TypeDescription
Instance

setIAMPolicy(Policy arg0)

public Policy setIAMPolicy(Policy arg0)
Parameter
NameDescription
arg0com.google.cloud.Policy
Returns
TypeDescription
com.google.cloud.Policy

testIAMPermissions(Iterable<String> arg0)

public Iterable<String> testIAMPermissions(Iterable<String> arg0)
Parameter
NameDescription
arg0Iterable<String>
Returns
TypeDescription
Iterable<String>

toBuilder()

public Instance.Builder toBuilder()
Returns
TypeDescription
Builder
Overrides

update(InstanceInfo.InstanceField[] arg0)

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