use of com.google.cloud.asset.v1.AnalyzeMoveResponse in project gapic-generator-java by googleapis.
the class AsyncAnalyzeMove method asyncAnalyzeMove.
public static void asyncAnalyzeMove() throws Exception {
// It may require modifications to work in your environment.
try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
AnalyzeMoveRequest request = AnalyzeMoveRequest.newBuilder().setResource("resource-341064690").setDestinationParent("destinationParent-1733659048").build();
ApiFuture<AnalyzeMoveResponse> future = assetServiceClient.analyzeMoveCallable().futureCall(request);
// Do something.
AnalyzeMoveResponse response = future.get();
}
}
use of com.google.cloud.asset.v1.AnalyzeMoveResponse in project gapic-generator-java by googleapis.
the class SyncAnalyzeMove method syncAnalyzeMove.
public static void syncAnalyzeMove() throws Exception {
// It may require modifications to work in your environment.
try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
AnalyzeMoveRequest request = AnalyzeMoveRequest.newBuilder().setResource("resource-341064690").setDestinationParent("destinationParent-1733659048").build();
AnalyzeMoveResponse response = assetServiceClient.analyzeMove(request);
}
}
Aggregations