Skip to content

Commit d57e4ca

Browse files
1 parent 83810c9 commit d57e4ca

6 files changed

Lines changed: 49 additions & 13 deletions

src/APIhub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
11651165
'location' => 'query',
11661166
'type' => 'string',
11671167
],
1168+
'returnPartialSuccess' => [
1169+
'location' => 'query',
1170+
'type' => 'boolean',
1171+
],
11681172
],
11691173
],
11701174
]

src/APIhub/GoogleLongrunningListOperationsResponse.php

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

2020
class GoogleLongrunningListOperationsResponse extends \Google\Collection
2121
{
22-
protected $collection_key = 'operations';
22+
protected $collection_key = 'unreachable';
2323
/**
2424
* @var string
2525
*/
2626
public $nextPageToken;
2727
protected $operationsType = GoogleLongrunningOperation::class;
2828
protected $operationsDataType = 'array';
29+
/**
30+
* @var string[]
31+
*/
32+
public $unreachable;
2933

3034
/**
3135
* @param string
@@ -55,6 +59,20 @@ public function getOperations()
5559
{
5660
return $this->operations;
5761
}
62+
/**
63+
* @param string[]
64+
*/
65+
public function setUnreachable($unreachable)
66+
{
67+
$this->unreachable = $unreachable;
68+
}
69+
/**
70+
* @return string[]
71+
*/
72+
public function getUnreachable()
73+
{
74+
return $this->unreachable;
75+
}
5876
}
5977

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

src/APIhub/Resource/ProjectsLocations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public function get($name, $optParams = [])
7474
* applicable.
7575
* @param array $optParams Optional parameters.
7676
*
77-
* @opt_param string extraLocationTypes Optional. Unless explicitly documented
78-
* otherwise, don't use this unsupported field which is primarily intended for
79-
* internal usage.
77+
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
78+
* unsupported and is ignored unless explicitly documented otherwise. This is
79+
* primarily for internal usage.
8080
* @opt_param string filter A filter to narrow down results to a preferred
8181
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
8282
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).

src/APIhub/Resource/ProjectsLocationsApis.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ public function listProjectsLocationsApis($parent, $optParams = [])
204204
/**
205205
* Update an API resource in the API hub. The following fields in the API can be
206206
* updated: * display_name * description * owner * documentation * target_user *
207-
* team * business_unit * maturity_level * api_style * attributes The
208-
* update_mask should be used to specify the fields being updated. Updating the
209-
* owner field requires complete owner message and updates both owner and email
210-
* fields. (apis.patch)
207+
* team * business_unit * maturity_level * api_style * attributes * fingerprint
208+
* The update_mask should be used to specify the fields being updated. Updating
209+
* the owner field requires complete owner message and updates both owner and
210+
* email fields. (apis.patch)
211211
*
212212
* @param string $name Identifier. The name of the API resource in the API Hub.
213213
* Format: `projects/{project}/locations/{location}/apis/{api}`

src/APIhub/Resource/ProjectsLocationsApisVersionsOperations.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,18 @@ public function listProjectsLocationsApisVersionsOperations($parent, $optParams
177177
* Update an operation in an API version. The following fields in the
178178
* ApiOperation resource can be updated: * details.description *
179179
* details.documentation * details.http_operation.path *
180-
* details.http_operation.method * details.deprecated * attributes The
181-
* update_mask should be used to specify the fields being updated. An operation
182-
* can be updated only if the operation was created via CreateApiOperation API.
183-
* If the operation was created by parsing the spec, then it can be edited by
184-
* updating the spec. (operations.patch)
180+
* details.http_operation.method * details.deprecated * attributes *
181+
* details.mcp_tool.title * details.mcp_tool.description * details.input_schema
182+
* * details.output_schema * details.mcp_tool.annotations.title *
183+
* details.mcp_tool.annotations.read_only_hint *
184+
* details.mcp_tool.annotations.destructive_hint *
185+
* details.mcp_tool.annotations.idempotent_hint *
186+
* details.mcp_tool.annotations.open_world_hint *
187+
* details.mcp_tool.annotations.additional_hints The update_mask should be used
188+
* to specify the fields being updated. An operation can be updated only if the
189+
* operation was created via CreateApiOperation API. If the operation was
190+
* created by parsing the spec, then it can be edited by updating the spec.
191+
* (operations.patch)
185192
*
186193
* @param string $name Identifier. The name of the operation. Format: `projects/
187194
* {project}/locations/{location}/apis/{api}/versions/{version}/operations/{oper

src/APIhub/Resource/ProjectsLocationsOperations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ public function get($name, $optParams = [])
9999
* @opt_param string filter The standard list filter.
100100
* @opt_param int pageSize The standard list page size.
101101
* @opt_param string pageToken The standard list page token.
102+
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
103+
* reachable are returned as normal, and those that are unreachable are returned
104+
* in the [ListOperationsResponse.unreachable] field. This can only be `true`
105+
* when reading across collections e.g. when `parent` is set to
106+
* `"projects/example/locations/-"`. This field is not by default supported and
107+
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
108+
* otherwise in service or product specific documentation.
102109
* @return GoogleLongrunningListOperationsResponse
103110
* @throws \Google\Service\Exception
104111
*/

0 commit comments

Comments
 (0)