Skip to content

Commit 1854d32

Browse files
1 parent 943cf7c commit 1854d32

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

src/CloudRuntimeConfig.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
111111
'location' => 'query',
112112
'type' => 'string',
113113
],
114+
'returnPartialSuccess' => [
115+
'location' => 'query',
116+
'type' => 'boolean',
117+
],
114118
],
115119
],
116120
]

src/CloudRuntimeConfig/ListOperationsResponse.php

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class ListOperationsResponse extends \Google\Collection
2121
{
22-
protected $collection_key = 'operations';
22+
protected $collection_key = 'unreachable';
2323
/**
2424
* The standard List next-page token.
2525
*
@@ -28,6 +28,15 @@ class ListOperationsResponse extends \Google\Collection
2828
public $nextPageToken;
2929
protected $operationsType = Operation::class;
3030
protected $operationsDataType = 'array';
31+
/**
32+
* Unordered list. Unreachable resources. Populated when the request sets
33+
* `ListOperationsRequest.return_partial_success` and reads across
34+
* collections. For example, when attempting to list all resources across all
35+
* supported locations.
36+
*
37+
* @var string[]
38+
*/
39+
public $unreachable;
3140

3241
/**
3342
* The standard List next-page token.
@@ -61,6 +70,25 @@ public function getOperations()
6170
{
6271
return $this->operations;
6372
}
73+
/**
74+
* Unordered list. Unreachable resources. Populated when the request sets
75+
* `ListOperationsRequest.return_partial_success` and reads across
76+
* collections. For example, when attempting to list all resources across all
77+
* supported locations.
78+
*
79+
* @param string[] $unreachable
80+
*/
81+
public function setUnreachable($unreachable)
82+
{
83+
$this->unreachable = $unreachable;
84+
}
85+
/**
86+
* @return string[]
87+
*/
88+
public function getUnreachable()
89+
{
90+
return $this->unreachable;
91+
}
6492
}
6593

6694
// Adding a class alias for backwards compatibility with the previous class name.

src/CloudRuntimeConfig/Resource/Operations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ public function delete($name, $optParams = [])
8282
* @opt_param string filter The standard list filter.
8383
* @opt_param int pageSize The standard list page size.
8484
* @opt_param string pageToken The standard list page token.
85+
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
86+
* reachable are returned as normal, and those that are unreachable are returned
87+
* in the ListOperationsResponse.unreachable field. This can only be `true` when
88+
* reading across collections. For example, when `parent` is set to
89+
* `"projects/example/locations/-"`. This field is not supported by default and
90+
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
91+
* otherwise in service or product specific documentation.
8592
* @return ListOperationsResponse
8693
* @throws \Google\Service\Exception
8794
*/

0 commit comments

Comments
 (0)