Skip to content

Commit c0d8b80

Browse files
1 parent 6ecead9 commit c0d8b80

File tree

4 files changed

+48
-5
lines changed

4 files changed

+48
-5
lines changed

src/CloudDomains.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
144144
'location' => 'query',
145145
'type' => 'string',
146146
],
147+
'returnPartialSuccess' => [
148+
'location' => 'query',
149+
'type' => 'boolean',
150+
],
147151
],
148152
],
149153
]

src/CloudDomains/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/CloudDomains/Resource/ProjectsLocations.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,20 @@ public function get($name, $optParams = [])
4545
return $this->call('get', [$params], Location::class);
4646
}
4747
/**
48-
* Lists information about the supported locations for this service.
48+
* Lists information about the supported locations for this service. This method
49+
* can be called in two ways: * **List all public locations:** Use the path `GET
50+
* /v1/locations`. * **List project-visible locations:** Use the path `GET
51+
* /v1/projects/{project_id}/locations`. This may include public locations as
52+
* well as private or other locations specifically visible to the project.
4953
* (locations.listProjectsLocations)
5054
*
5155
* @param string $name The resource that owns the locations collection, if
5256
* applicable.
5357
* @param array $optParams Optional parameters.
5458
*
55-
* @opt_param string extraLocationTypes Optional. Unless explicitly documented
56-
* otherwise, don't use this unsupported field which is primarily intended for
57-
* internal usage.
59+
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
60+
* unsupported and is ignored unless explicitly documented otherwise. This is
61+
* primarily for internal usage.
5862
* @opt_param string filter A filter to narrow down results to a preferred
5963
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
6064
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).

src/CloudDomains/Resource/ProjectsLocationsOperations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ public function get($name, $optParams = [])
5757
* @opt_param string filter The standard list filter.
5858
* @opt_param int pageSize The standard list page size.
5959
* @opt_param string pageToken The standard list page token.
60+
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
61+
* reachable are returned as normal, and those that are unreachable are returned
62+
* in the ListOperationsResponse.unreachable field. This can only be `true` when
63+
* reading across collections. For example, when `parent` is set to
64+
* `"projects/example/locations/-"`. This field is not supported by default and
65+
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
66+
* otherwise in service or product specific documentation.
6067
* @return ListOperationsResponse
6168
* @throws \Google\Service\Exception
6269
*/

0 commit comments

Comments
 (0)