Interface InstanceAdminClient (2.15.5)

public interface InstanceAdminClient

Methods

cancelOperation(String arg0)

public abstract void cancelOperation(String arg0)
Parameter
NameDescription
arg0String

createInstance(InstanceInfo arg0)

public abstract OperationFuture<Instance,CreateInstanceMetadata> createInstance(InstanceInfo arg0)
Parameter
NameDescription
arg0InstanceInfo
Returns
TypeDescription
OperationFuture<Instance,com.google.spanner.admin.instance.v1.CreateInstanceMetadata>
Exceptions
TypeDescription
SpannerException

createInstanceConfig(InstanceConfigInfo arg0, Options.CreateAdminApiOption[] arg1)

public default OperationFuture<InstanceConfig,CreateInstanceConfigMetadata> createInstanceConfig(InstanceConfigInfo arg0, Options.CreateAdminApiOption[] arg1)
Parameters
NameDescription
arg0InstanceConfigInfo
arg1CreateAdminApiOption[]
Returns
TypeDescription
OperationFuture<InstanceConfig,com.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata>
Exceptions
TypeDescription
SpannerException

deleteInstance(String arg0)

public abstract void deleteInstance(String arg0)
Parameter
NameDescription
arg0String
Exceptions
TypeDescription
SpannerException

deleteInstanceConfig(String arg0, Options.DeleteAdminApiOption[] arg1)

public default void deleteInstanceConfig(String arg0, Options.DeleteAdminApiOption[] arg1)
Parameters
NameDescription
arg0String
arg1DeleteAdminApiOption[]
Exceptions
TypeDescription
SpannerException

getInstance(String arg0)

public abstract Instance getInstance(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
Instance
Exceptions
TypeDescription
SpannerException

getInstanceConfig(String arg0)

public abstract InstanceConfig getInstanceConfig(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
InstanceConfig
Exceptions
TypeDescription
SpannerException

getInstanceIAMPolicy(String arg0)

public abstract Policy getInstanceIAMPolicy(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
com.google.cloud.Policy

getOperation(String arg0)

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

listInstanceConfigOperations(Options.ListOption[] arg0)

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

listInstanceConfigs(Options.ListOption[] arg0)

public abstract Page<InstanceConfig> listInstanceConfigs(Options.ListOption[] arg0)
Parameter
NameDescription
arg0ListOption[]
Returns
TypeDescription
Page<InstanceConfig>
Exceptions
TypeDescription
SpannerException

listInstances(Options.ListOption[] arg0)

public abstract Page<Instance> listInstances(Options.ListOption[] arg0)
Parameter
NameDescription
arg0ListOption[]
Returns
TypeDescription
Page<Instance>
Exceptions
TypeDescription
SpannerException

newInstanceBuilder(InstanceId arg0)

public abstract Instance.Builder newInstanceBuilder(InstanceId arg0)
Parameter
NameDescription
arg0InstanceId
Returns
TypeDescription
Builder

setInstanceIAMPolicy(String arg0, Policy arg1)

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

testInstanceIAMPermissions(String arg0, Iterable<String> arg1)

public abstract Iterable<String> testInstanceIAMPermissions(String arg0, Iterable<String> arg1)
Parameters
NameDescription
arg0String
arg1Iterable<String>
Returns
TypeDescription
Iterable<String>

updateInstance(InstanceInfo arg0, InstanceInfo.InstanceField[] arg1)

public abstract OperationFuture<Instance,UpdateInstanceMetadata> updateInstance(InstanceInfo arg0, InstanceInfo.InstanceField[] arg1)
Parameters
NameDescription
arg0InstanceInfo
arg1InstanceField[]
Returns
TypeDescription
OperationFuture<Instance,com.google.spanner.admin.instance.v1.UpdateInstanceMetadata>

updateInstanceConfig(InstanceConfigInfo arg0, Iterable<InstanceConfigInfo.InstanceConfigField> arg1, Options.UpdateAdminApiOption[] arg2)

public default OperationFuture<InstanceConfig,UpdateInstanceConfigMetadata> updateInstanceConfig(InstanceConfigInfo arg0, Iterable<InstanceConfigInfo.InstanceConfigField> arg1, Options.UpdateAdminApiOption[] arg2)
Parameters
NameDescription
arg0InstanceConfigInfo
arg1Iterable<InstanceConfigField>
arg2UpdateAdminApiOption[]
Returns
TypeDescription
OperationFuture<InstanceConfig,com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata>
Exceptions
TypeDescription
SpannerException