Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade dlp samples to new surface #1898

Merged
merged 11 commits into from
Jan 5, 2024
Prev Previous commit
Next Next commit
Merge branch 'main' into dlp-v2gapic
  • Loading branch information
bshaffer authored Sep 14, 2023
commit bd96a92e1cc8dd5fb1ee4a3041c5d22f831b6fb8
9 changes: 7 additions & 2 deletions dlp/src/create_trigger.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@
use Google\Cloud\Dlp\V2\JobTrigger\Trigger;
use Google\Cloud\Dlp\V2\Likelihood;
use Google\Cloud\Dlp\V2\Schedule;
use Google\Cloud\Dlp\V2\CloudStorageOptions;
use Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet;
use Google\Cloud\Dlp\V2\StorageConfig;
use Google\Cloud\Dlp\V2\StorageConfig_TimespanConfig;
use Google\Cloud\Dlp\V2\InfoType;
use Google\Cloud\Dlp\V2\Likelihood;
use Google\Cloud\Dlp\V2\InspectConfig\FindingLimits;
use Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig;
use Google\Protobuf\Duration;

/**
Expand Down Expand Up @@ -126,7 +131,7 @@ function create_trigger(
->setDescription($description);

// Run trigger creation request
$parent = "projects/$callingProjectId/locations/global";
$parent = $dlp->locationName($callingProjectId, 'global');
$createJobTriggerRequest = (new CreateJobTriggerRequest())
->setParent($parent)
->setJobTrigger($jobTriggerObject)
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.