Interface InstanceAdminClient (2.18.0)

public interface InstanceAdminClient

Methods

cancelOperation(String arg0)

public abstract void cancelOperation(String arg0)
Parameter
Name Description
arg0 String

createInstance(InstanceInfo arg0)

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

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

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

deleteInstance(String arg0)

public abstract void deleteInstance(String arg0)
Parameter
Name Description
arg0 String
Exceptions
Type Description
SpannerException

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

public default void deleteInstanceConfig(String arg0, Options.DeleteAdminApiOption[] arg1)
Parameters
Name Description
arg0 String
arg1 DeleteAdminApiOption[]
Exceptions
Type Description
SpannerException

getInstance(String arg0)

public abstract Instance getInstance(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Instance
Exceptions
Type Description
SpannerException

getInstanceConfig(String arg0)

public abstract InstanceConfig getInstanceConfig(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
InstanceConfig
Exceptions
Type Description
SpannerException

getInstanceIAMPolicy(String arg0)

public abstract Policy getInstanceIAMPolicy(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
com.google.cloud.Policy

getOperation(String arg0)

public abstract Operation getOperation(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Operation

listInstanceConfigOperations(Options.ListOption[] arg0)

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

listInstanceConfigs(Options.ListOption[] arg0)

public abstract Page<InstanceConfig> listInstanceConfigs(Options.ListOption[] arg0)
Parameter
Name Description
arg0 ListOption[]
Returns
Type Description
Page<InstanceConfig>
Exceptions
Type Description
SpannerException

listInstances(Options.ListOption[] arg0)

public abstract Page<Instance> listInstances(Options.ListOption[] arg0)
Parameter
Name Description
arg0 ListOption[]
Returns
Type Description
Page<Instance>
Exceptions
Type Description
SpannerException

newInstanceBuilder(InstanceId arg0)

public abstract Instance.Builder newInstanceBuilder(InstanceId arg0)
Parameter
Name Description
arg0 InstanceId
Returns
Type Description
Builder

setInstanceIAMPolicy(String arg0, Policy arg1)

public abstract Policy setInstanceIAMPolicy(String arg0, Policy arg1)
Parameters
Name Description
arg0 String
arg1 com.google.cloud.Policy
Returns
Type Description
com.google.cloud.Policy

testInstanceIAMPermissions(String arg0, Iterable<String> arg1)

public abstract Iterable<String> testInstanceIAMPermissions(String arg0, Iterable<String> arg1)
Parameters
Name Description
arg0 String
arg1 Iterable<String>
Returns
Type Description
Iterable<String>

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

public abstract OperationFuture<Instance,UpdateInstanceMetadata> updateInstance(InstanceInfo arg0, InstanceInfo.InstanceField[] arg1)
Parameters
Name Description
arg0 InstanceInfo
arg1 InstanceField[]
Returns
Type Description
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
Name Description
arg0 InstanceConfigInfo
arg1 Iterable<InstanceConfigField>
arg2 UpdateAdminApiOption[]
Returns
Type Description
OperationFuture<InstanceConfig,com.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata>
Exceptions
Type Description
SpannerException