Skip to content

Commit 823978a

Browse files
Regenerate networkservices client
1 parent c9fa9d7 commit 823978a

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

src/NetworkServices.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
103103
'type' => 'string',
104104
'required' => true,
105105
],
106+
'extraLocationTypes' => [
107+
'location' => 'query',
108+
'type' => 'string',
109+
'repeated' => true,
110+
],
106111
'filter' => [
107112
'location' => 'query',
108113
'type' => 'string',
@@ -1132,6 +1137,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
11321137
'type' => 'string',
11331138
],
11341139
],
1140+
],'patch' => [
1141+
'path' => 'v1/{+name}',
1142+
'httpMethod' => 'PATCH',
1143+
'parameters' => [
1144+
'name' => [
1145+
'location' => 'path',
1146+
'type' => 'string',
1147+
'required' => true,
1148+
],
1149+
'updateMask' => [
1150+
'location' => 'query',
1151+
'type' => 'string',
1152+
],
1153+
],
11351154
],
11361155
]
11371156
]

src/NetworkServices/Resource/ProjectsLocations.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public function get($name, $optParams = [])
5252
* applicable.
5353
* @param array $optParams Optional parameters.
5454
*
55+
* @opt_param string extraLocationTypes Optional. A list of extra location types
56+
* that should be used as conditions for controlling the visibility of the
57+
* locations.
5558
* @opt_param string filter A filter to narrow down results to a preferred
5659
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
5760
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).

src/NetworkServices/Resource/ProjectsLocationsServiceBindings.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,28 @@ public function listProjectsLocationsServiceBindings($parent, $optParams = [])
104104
$params = array_merge($params, $optParams);
105105
return $this->call('list', [$params], ListServiceBindingsResponse::class);
106106
}
107+
/**
108+
* Updates the parameters of a single ServiceBinding. (serviceBindings.patch)
109+
*
110+
* @param string $name Identifier. Name of the ServiceBinding resource. It
111+
* matches pattern `projects/locations/serviceBindings/`.
112+
* @param ServiceBinding $postBody
113+
* @param array $optParams Optional parameters.
114+
*
115+
* @opt_param string updateMask Optional. Field mask is used to specify the
116+
* fields to be overwritten in the ServiceBinding resource by the update. The
117+
* fields specified in the update_mask are relative to the resource, not the
118+
* full request. A field will be overwritten if it is in the mask. If the user
119+
* does not provide a mask then all fields will be overwritten.
120+
* @return Operation
121+
* @throws \Google\Service\Exception
122+
*/
123+
public function patch($name, ServiceBinding $postBody, $optParams = [])
124+
{
125+
$params = ['name' => $name, 'postBody' => $postBody];
126+
$params = array_merge($params, $optParams);
127+
return $this->call('patch', [$params], Operation::class);
128+
}
107129
}
108130

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

0 commit comments

Comments
 (0)