Skip to content

Commit 34c3de3

Browse files
1 parent c085d3e commit 34c3de3

3 files changed

Lines changed: 53 additions & 4 deletions

File tree

src/CloudRun.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,28 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
221221
'type' => 'boolean',
222222
],
223223
],
224+
],'patch' => [
225+
'path' => 'v2/{+name}',
226+
'httpMethod' => 'PATCH',
227+
'parameters' => [
228+
'name' => [
229+
'location' => 'path',
230+
'type' => 'string',
231+
'required' => true,
232+
],
233+
'allowMissing' => [
234+
'location' => 'query',
235+
'type' => 'boolean',
236+
],
237+
'updateMask' => [
238+
'location' => 'query',
239+
'type' => 'string',
240+
],
241+
'validateOnly' => [
242+
'location' => 'query',
243+
'type' => 'boolean',
244+
],
245+
],
224246
],'start' => [
225247
'path' => 'v2/{+name}:start',
226248
'httpMethod' => 'POST',

src/CloudRun/GoogleCloudRunV2VolumeMount.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class GoogleCloudRunV2VolumeMount extends \Google\Model
3737
public $name;
3838
/**
3939
* Optional. Path within the volume from which the container's volume should
40-
* be mounted. Defaults to "" (volume's root). This field is currently ignored
41-
* for Secret volumes.
40+
* be mounted. Defaults to "" (volume's root). This field is currently
41+
* rejected in Secret volume mounts.
4242
*
4343
* @var string
4444
*/
@@ -82,8 +82,8 @@ public function getName()
8282
}
8383
/**
8484
* Optional. Path within the volume from which the container's volume should
85-
* be mounted. Defaults to "" (volume's root). This field is currently ignored
86-
* for Secret volumes.
85+
* be mounted. Defaults to "" (volume's root). This field is currently
86+
* rejected in Secret volume mounts.
8787
*
8888
* @param string $subPath
8989
*/

src/CloudRun/Resource/ProjectsLocationsInstances.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,33 @@ public function listProjectsLocationsInstances($parent, $optParams = [])
115115
$params = array_merge($params, $optParams);
116116
return $this->call('list', [$params], GoogleCloudRunV2ListInstancesResponse::class);
117117
}
118+
/**
119+
* Updates an Instance. (instances.patch)
120+
*
121+
* @param string $name The fully qualified name of this Instance. In
122+
* CreateInstanceRequest, this field is ignored, and instead composed from
123+
* CreateInstanceRequest.parent and CreateInstanceRequest.instance_id. Format:
124+
* projects/{project}/locations/{location}/instances/{instance_id}
125+
* @param GoogleCloudRunV2Instance $postBody
126+
* @param array $optParams Optional parameters.
127+
*
128+
* @opt_param bool allowMissing Optional. If set to true, and if the Instance
129+
* does not exist, it will create a new one. The caller must have
130+
* 'run.instances.create' permissions if this is set to true and the Instance
131+
* does not exist.
132+
* @opt_param string updateMask Optional. The list of fields to be updated.
133+
* @opt_param bool validateOnly Optional. Indicates that the request should be
134+
* validated and default values populated, without persisting the request or
135+
* updating any resources.
136+
* @return GoogleLongrunningOperation
137+
* @throws \Google\Service\Exception
138+
*/
139+
public function patch($name, GoogleCloudRunV2Instance $postBody, $optParams = [])
140+
{
141+
$params = ['name' => $name, 'postBody' => $postBody];
142+
$params = array_merge($params, $optParams);
143+
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
144+
}
118145
/**
119146
* Starts an Instance. (instances.start)
120147
*

0 commit comments

Comments
 (0)