Skip to content

Commit 7fad35b

Browse files
1 parent 18ba002 commit 7fad35b

3 files changed

Lines changed: 40 additions & 1 deletion

File tree

src/CloudMachineLearningEngine.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
695695
'location' => 'query',
696696
'type' => 'string',
697697
],
698+
'returnPartialSuccess' => [
699+
'location' => 'query',
700+
'type' => 'boolean',
701+
],
698702
],
699703
],
700704
]

src/CloudMachineLearningEngine/GoogleLongrunningListOperationsResponse.php

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

2020
class GoogleLongrunningListOperationsResponse 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 GoogleLongrunningListOperationsResponse extends \Google\Collection
2828
public $nextPageToken;
2929
protected $operationsType = GoogleLongrunningOperation::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/CloudMachineLearningEngine/Resource/ProjectsOperations.php

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

0 commit comments

Comments
 (0)