Skip to content

Commit

Permalink
fix: Dlp static methods (#1930)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Oct 19, 2023
1 parent 9c67145 commit 7127c06
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dlp/src/deidentify_cloud_storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
use Google\Cloud\Dlp\V2\InspectJobConfig;
use Google\Cloud\Dlp\V2\TransformationConfig;
use Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig;
use Google\Cloud\Dlp\V2\Client\BaseClient\DlpServiceBaseClient;
use Google\Cloud\Dlp\V2\DlpJob\JobState;

/**
Expand Down Expand Up @@ -104,13 +103,13 @@ function deidentify_cloud_storage(
// Specify the de-identify template used for the transformation.
$transformationConfig = (new TransformationConfig())
->setDeidentifyTemplate(
DlpServiceBaseClient::projectDeidentifyTemplateName($callingProjectId, $deidentifyTemplateName)
DlpServiceClient::projectDeidentifyTemplateName($callingProjectId, $deidentifyTemplateName)
)
->setStructuredDeidentifyTemplate(
DlpServiceBaseClient::projectDeidentifyTemplateName($callingProjectId, $structuredDeidentifyTemplateName)
DlpServiceClient::projectDeidentifyTemplateName($callingProjectId, $structuredDeidentifyTemplateName)
)
->setImageRedactTemplate(
DlpServiceBaseClient::projectDeidentifyTemplateName($callingProjectId, $imageRedactTemplateName)
DlpServiceClient::projectDeidentifyTemplateName($callingProjectId, $imageRedactTemplateName)
);

$deidentify = (new Deidentify())
Expand Down

0 comments on commit 7127c06

Please sign in to comment.