use of com.google.cloud.redis.v1beta1.ExportInstanceRequest in project gapic-generator-java by googleapis.
the class AsyncExportInstance method asyncExportInstance.
public static void asyncExportInstance() throws Exception {
// It may require modifications to work in your environment.
try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
ExportInstanceRequest request = ExportInstanceRequest.newBuilder().setName("name3373707").setOutputConfig(OutputConfig.newBuilder().build()).build();
ApiFuture<Operation> future = cloudRedisClient.exportInstanceCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
}
use of com.google.cloud.redis.v1beta1.ExportInstanceRequest in project gapic-generator-java by googleapis.
the class AsyncExportInstanceLRO method asyncExportInstanceLRO.
public static void asyncExportInstanceLRO() throws Exception {
// It may require modifications to work in your environment.
try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
ExportInstanceRequest request = ExportInstanceRequest.newBuilder().setName("name3373707").setOutputConfig(OutputConfig.newBuilder().build()).build();
OperationFuture<Instance, Any> future = cloudRedisClient.exportInstanceOperationCallable().futureCall(request);
// Do something.
Instance response = future.get();
}
}
use of com.google.cloud.redis.v1beta1.ExportInstanceRequest in project gapic-generator-java by googleapis.
the class SyncExportInstance method syncExportInstance.
public static void syncExportInstance() throws Exception {
// It may require modifications to work in your environment.
try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
ExportInstanceRequest request = ExportInstanceRequest.newBuilder().setName("name3373707").setOutputConfig(OutputConfig.newBuilder().build()).build();
Instance response = cloudRedisClient.exportInstanceAsync(request).get();
}
}
Aggregations