Skip to content

Commit

Permalink
Re-generate library using Dlp/synth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dpebot committed Aug 17, 2018
1 parent 73b7048 commit 51681a4
Showing 1 changed file with 40 additions and 30 deletions.
70 changes: 40 additions & 30 deletions Dlp/src/V2/Gapic/DlpServiceGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,6 @@ public function reidentifyContent($parent, array $optionalArgs = [])
* ```
* $dlpServiceClient = new DlpServiceClient();
* try {
*
* $response = $dlpServiceClient->listInfoTypes();
* } finally {
* $dlpServiceClient->close();
Expand Down Expand Up @@ -1004,7 +1003,6 @@ public function updateInspectTemplate($name, array $optionalArgs = [])
* ```
* $dlpServiceClient = new DlpServiceClient();
* try {
*
* $response = $dlpServiceClient->getInspectTemplate();
* } finally {
* $dlpServiceClient->close();
Expand Down Expand Up @@ -1054,19 +1052,22 @@ public function getInspectTemplate(array $optionalArgs = [])
* $dlpServiceClient = new DlpServiceClient();
* try {
* $formattedParent = $dlpServiceClient->organizationName('[ORGANIZATION]');
* // Iterate through all elements
* $pagedResponse = $dlpServiceClient->listInspectTemplates($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
*
* // OR iterate over pages of elements
* // Iterate over pages of elements
* $pagedResponse = $dlpServiceClient->listInspectTemplates($formattedParent);
* foreach ($pagedResponse->iteratePages() as $page) {
* foreach ($page as $element) {
* // doSomethingWith($element);
* }
* }
*
*
* // Alternatively:
*
* // Iterate through all elements
* $pagedResponse = $dlpServiceClient->listInspectTemplates($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
* } finally {
* $dlpServiceClient->close();
* }
Expand Down Expand Up @@ -1335,19 +1336,22 @@ public function getDeidentifyTemplate($name, array $optionalArgs = [])
* $dlpServiceClient = new DlpServiceClient();
* try {
* $formattedParent = $dlpServiceClient->organizationName('[ORGANIZATION]');
* // Iterate through all elements
* $pagedResponse = $dlpServiceClient->listDeidentifyTemplates($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
*
* // OR iterate over pages of elements
* // Iterate over pages of elements
* $pagedResponse = $dlpServiceClient->listDeidentifyTemplates($formattedParent);
* foreach ($pagedResponse->iteratePages() as $page) {
* foreach ($page as $element) {
* // doSomethingWith($element);
* }
* }
*
*
* // Alternatively:
*
* // Iterate through all elements
* $pagedResponse = $dlpServiceClient->listDeidentifyTemplates($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
* } finally {
* $dlpServiceClient->close();
* }
Expand Down Expand Up @@ -1520,19 +1524,22 @@ public function createDlpJob($parent, array $optionalArgs = [])
* $dlpServiceClient = new DlpServiceClient();
* try {
* $formattedParent = $dlpServiceClient->projectName('[PROJECT]');
* // Iterate through all elements
* $pagedResponse = $dlpServiceClient->listDlpJobs($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
*
* // OR iterate over pages of elements
* // Iterate over pages of elements
* $pagedResponse = $dlpServiceClient->listDlpJobs($formattedParent);
* foreach ($pagedResponse->iteratePages() as $page) {
* foreach ($page as $element) {
* // doSomethingWith($element);
* }
* }
*
*
* // Alternatively:
*
* // Iterate through all elements
* $pagedResponse = $dlpServiceClient->listDlpJobs($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
* } finally {
* $dlpServiceClient->close();
* }
Expand Down Expand Up @@ -1759,19 +1766,22 @@ public function cancelDlpJob($name, array $optionalArgs = [])
* $dlpServiceClient = new DlpServiceClient();
* try {
* $formattedParent = $dlpServiceClient->projectName('[PROJECT]');
* // Iterate through all elements
* $pagedResponse = $dlpServiceClient->listJobTriggers($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
*
* // OR iterate over pages of elements
* // Iterate over pages of elements
* $pagedResponse = $dlpServiceClient->listJobTriggers($formattedParent);
* foreach ($pagedResponse->iteratePages() as $page) {
* foreach ($page as $element) {
* // doSomethingWith($element);
* }
* }
*
*
* // Alternatively:
*
* // Iterate through all elements
* $pagedResponse = $dlpServiceClient->listJobTriggers($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
* } finally {
* $dlpServiceClient->close();
* }
Expand Down

0 comments on commit 51681a4

Please sign in to comment.