Search in sources :

Example 1 with AnalyzeMoveRequest

use of com.google.cloud.asset.v1.AnalyzeMoveRequest 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();
    }
}
Also used : AssetServiceClient(com.google.cloud.asset.v1.AssetServiceClient) AnalyzeMoveRequest(com.google.cloud.asset.v1.AnalyzeMoveRequest) AnalyzeMoveResponse(com.google.cloud.asset.v1.AnalyzeMoveResponse)

Example 2 with AnalyzeMoveRequest

use of com.google.cloud.asset.v1.AnalyzeMoveRequest 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);
    }
}
Also used : AssetServiceClient(com.google.cloud.asset.v1.AssetServiceClient) AnalyzeMoveRequest(com.google.cloud.asset.v1.AnalyzeMoveRequest) AnalyzeMoveResponse(com.google.cloud.asset.v1.AnalyzeMoveResponse)

Aggregations

AnalyzeMoveRequest (com.google.cloud.asset.v1.AnalyzeMoveRequest)2 AnalyzeMoveResponse (com.google.cloud.asset.v1.AnalyzeMoveResponse)2 AssetServiceClient (com.google.cloud.asset.v1.AssetServiceClient)2