diff --git a/Dlp/src/V2/Gapic/DlpServiceGapicClient.php b/Dlp/src/V2/Gapic/DlpServiceGapicClient.php index 373912afcc5a..dd4f9b8ceabc 100644 --- a/Dlp/src/V2/Gapic/DlpServiceGapicClient.php +++ b/Dlp/src/V2/Gapic/DlpServiceGapicClient.php @@ -834,7 +834,6 @@ public function reidentifyContent($parent, array $optionalArgs = []) * ``` * $dlpServiceClient = new DlpServiceClient(); * try { - * * $response = $dlpServiceClient->listInfoTypes(); * } finally { * $dlpServiceClient->close(); @@ -1004,7 +1003,6 @@ public function updateInspectTemplate($name, array $optionalArgs = []) * ``` * $dlpServiceClient = new DlpServiceClient(); * try { - * * $response = $dlpServiceClient->getInspectTemplate(); * } finally { * $dlpServiceClient->close(); @@ -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(); * } @@ -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(); * } @@ -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(); * } @@ -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(); * }