/** * Deletes an instance. * * <p>Immediately upon completion of the request: * * <p>* Billing ceases for all of the instance's reserved resources. * * <p>Soon afterward: * * <p>* The instance and *all of its databases* immediately and irrevocably disappear * from the API. All data in the databases is permanently deleted. * * <p>Sample code: * * <pre><code> * try (InstanceAdminClient instanceAdminClient = InstanceAdminClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); * instanceAdminClient.deleteInstance(name.toString()); * } * </code></pre> * * @param name Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteInstance(String name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name).build(); deleteInstance(request); }
/** * Deletes an instance. * * <p>Immediately upon completion of the request: * * <p>* Billing ceases for all of the instance's reserved resources. * * <p>Soon afterward: * * <p>* The instance and *all of its databases* immediately and irrevocably disappear * from the API. All data in the databases is permanently deleted. * * <p>Sample code: * * <pre><code> * try (InstanceAdminClient instanceAdminClient = InstanceAdminClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); * instanceAdminClient.deleteInstance(name); * } * </code></pre> * * @param name Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteInstance(InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteInstance(request); }
@Override public void deleteInstance(String instanceName) throws SpannerException { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(instanceName).build(); GrpcCallContext context = newCallContext(null, instanceName); get(instanceAdminStub.deleteInstanceCallable().futureCall(request, context)); }
/** * Deletes an instance. * * <p>Immediately upon completion of the request: * * <p>* Billing ceases for all of the instance's reserved resources. * * <p>Soon afterward: * * <p>* The instance and *all of its databases* immediately and irrevocably disappear * from the API. All data in the databases is permanently deleted. * * <p>Sample code: * * <pre><code> * try (InstanceAdminClient instanceAdminClient = InstanceAdminClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); * instanceAdminClient.deleteInstance(name); * } * </code></pre> * * @param name Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteInstance(InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteInstance(request); }
/** * Deletes an instance. * * <p>Immediately upon completion of the request: * * <p>* Billing ceases for all of the instance's reserved resources. * * <p>Soon afterward: * * <p>* The instance and *all of its databases* immediately and irrevocably disappear * from the API. All data in the databases is permanently deleted. * * <p>Sample code: * * <pre><code> * try (InstanceAdminClient instanceAdminClient = InstanceAdminClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); * instanceAdminClient.deleteInstance(name.toString()); * } * </code></pre> * * @param name Required. The name of the instance to be deleted. Values are of the form * `projects/<project>/instances/<instance>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteInstance(String name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name).build(); deleteInstance(request); }
@Override public void deleteInstance(String instanceName) throws SpannerException { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(instanceName).build(); GrpcCallContext context = newCallContext(null, instanceName); get(instanceAdminStub.deleteInstanceCallable().futureCall(request, context)); }