Skip to content

Commit

Permalink
Re-generate library using Tasks/synth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dpebot committed Aug 14, 2018
1 parent 1252980 commit a4d2d45
Showing 1 changed file with 30 additions and 21 deletions.
51 changes: 30 additions & 21 deletions Tasks/src/V2beta2/Gapic/CloudTasksGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,22 @@
* $cloudTasksClient = new CloudTasksClient();
* try {
* $formattedParent = $cloudTasksClient->locationName('[PROJECT]', '[LOCATION]');
* // Iterate through all elements
* $pagedResponse = $cloudTasksClient->listQueues($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
*
* // OR iterate over pages of elements
* // Iterate over pages of elements
* $pagedResponse = $cloudTasksClient->listQueues($formattedParent);
* foreach ($pagedResponse->iteratePages() as $page) {
* foreach ($page as $element) {
* // doSomethingWith($element);
* }
* }
*
*
* // Alternatively:
*
* // Iterate through all elements
* $pagedResponse = $cloudTasksClient->listQueues($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
* } finally {
* $cloudTasksClient->close();
* }
Expand Down Expand Up @@ -395,19 +398,22 @@ public function __construct(array $options = [])
* $cloudTasksClient = new CloudTasksClient();
* try {
* $formattedParent = $cloudTasksClient->locationName('[PROJECT]', '[LOCATION]');
* // Iterate through all elements
* $pagedResponse = $cloudTasksClient->listQueues($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
*
* // OR iterate over pages of elements
* // Iterate over pages of elements
* $pagedResponse = $cloudTasksClient->listQueues($formattedParent);
* foreach ($pagedResponse->iteratePages() as $page) {
* foreach ($page as $element) {
* // doSomethingWith($element);
* }
* }
*
*
* // Alternatively:
*
* // Iterate through all elements
* $pagedResponse = $cloudTasksClient->listQueues($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
* } finally {
* $cloudTasksClient->close();
* }
Expand Down Expand Up @@ -1137,19 +1143,22 @@ public function testIamPermissions($resource, $permissions, array $optionalArgs
* $cloudTasksClient = new CloudTasksClient();
* try {
* $formattedParent = $cloudTasksClient->queueName('[PROJECT]', '[LOCATION]', '[QUEUE]');
* // Iterate through all elements
* $pagedResponse = $cloudTasksClient->listTasks($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
*
* // OR iterate over pages of elements
* // Iterate over pages of elements
* $pagedResponse = $cloudTasksClient->listTasks($formattedParent);
* foreach ($pagedResponse->iteratePages() as $page) {
* foreach ($page as $element) {
* // doSomethingWith($element);
* }
* }
*
*
* // Alternatively:
*
* // Iterate through all elements
* $pagedResponse = $cloudTasksClient->listTasks($formattedParent);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
* } finally {
* $cloudTasksClient->close();
* }
Expand Down

0 comments on commit a4d2d45

Please sign in to comment.