Skip to content

Commit 914bab8

Browse files
feat: add ListOperations partial success flag (#8645)
* feat: add ListOperations partial success flag feat: add ListOperations unreachable resources PiperOrigin-RevId: 815887751 Source-Link: googleapis/googleapis@1b14149 Source-Link: googleapis/googleapis-gen@a82519e Copy-Tag: eyJwIjoiTG9uZ1J1bm5pbmcvLk93bEJvdC55YW1sIiwiaCI6ImE4MjUxOWU3ZDU0YzcxMTA0MzlkNTBjYmE2M2I1YTIwOGU0YzY5ZDMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8406e65 commit 914bab8

File tree

4 files changed

+125
-0
lines changed

4 files changed

+125
-0
lines changed
146 Bytes
Binary file not shown.

LongRunning/src/LongRunning/Gapic/OperationsGapicClient.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,17 @@ public function getOperation($name, array $optionalArgs = [])
376376
* If no page token is specified (the default), the first page
377377
* of values will be returned. Any page token used here must have
378378
* been generated by a previous call to the API.
379+
* @type bool $returnPartialSuccess
380+
* When set to `true`, operations that are reachable are returned as normal,
381+
* and those that are unreachable are returned in the
382+
* [ListOperationsResponse.unreachable] field.
383+
*
384+
* This can only be `true` when reading across collections e.g. when `parent`
385+
* is set to `"projects/example/locations/-"`.
386+
*
387+
* This field is not by default supported and will result in an
388+
* `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
389+
* service or product specific documentation.
379390
* @type RetrySettings|array $retrySettings
380391
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
381392
* associative array of retry settings parameters. See the documentation on
@@ -401,6 +412,12 @@ public function listOperations($name, $filter, array $optionalArgs = [])
401412
$request->setPageToken($optionalArgs['pageToken']);
402413
}
403414

415+
if (isset($optionalArgs['returnPartialSuccess'])) {
416+
$request->setReturnPartialSuccess(
417+
$optionalArgs['returnPartialSuccess']
418+
);
419+
}
420+
404421
$requestParams = new RequestParamsHeaderDescriptor(
405422
$requestParamHeaders
406423
);

LongRunning/src/LongRunning/ListOperationsRequest.php

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LongRunning/src/LongRunning/ListOperationsResponse.php

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)