Skip to content

Commit

Permalink
samples: DLP dependency update, fix tests (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
jabubake authored and chingor13 committed Aug 4, 2020
1 parent 034b9fb commit 21e7583
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@

package com.example.dlp;

import com.google.api.gax.grpc.OperationFuture;
import com.google.api.gax.rpc.OperationFuture;
import com.google.cloud.ServiceOptions;
import com.google.cloud.dlp.v2beta1.DlpServiceClient;
import com.google.longrunning.Operation;
import com.google.privacy.dlp.v2beta1.CloudStorageOptions;
import com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet;
import com.google.privacy.dlp.v2beta1.ContentItem;
Expand Down Expand Up @@ -226,7 +227,7 @@ private static void inspectGcsFile(String bucketName, String fileName,
OutputStorageConfig outputConfig = OutputStorageConfig.getDefaultInstance();

// asynchronously submit an inspect operation
OperationFuture<InspectOperationResult, InspectOperationMetadata> responseFuture =
OperationFuture<InspectOperationResult, InspectOperationMetadata, Operation> responseFuture =
dlpServiceClient.createInspectOperationAsync(inspectConfig, storageConfig, outputConfig);

// ...
Expand Down Expand Up @@ -291,7 +292,7 @@ private static void inspectDatastore(String projectId, String namespaceId, Strin
OutputStorageConfig outputConfig = OutputStorageConfig.getDefaultInstance();

// asynchronously submit an inspect operation
OperationFuture<InspectOperationResult, InspectOperationMetadata> responseFuture =
OperationFuture<InspectOperationResult, InspectOperationMetadata, Operation> responseFuture =
dlpServiceClient.createInspectOperationAsync(inspectConfig, storageConfig, outputConfig);

// ...
Expand Down

0 comments on commit 21e7583

Please sign in to comment.