Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/CloudRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,28 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'type' => 'boolean',
],
],
],'patch' => [
'path' => 'v2/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'allowMissing' => [
'location' => 'query',
'type' => 'boolean',
],
'updateMask' => [
'location' => 'query',
'type' => 'string',
],
'validateOnly' => [
'location' => 'query',
'type' => 'boolean',
],
],
],'start' => [
'path' => 'v2/{+name}:start',
'httpMethod' => 'POST',
Expand Down
8 changes: 4 additions & 4 deletions src/CloudRun/GoogleCloudRunV2VolumeMount.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class GoogleCloudRunV2VolumeMount extends \Google\Model
public $name;
/**
* Optional. Path within the volume from which the container's volume should
* be mounted. Defaults to "" (volume's root). This field is currently ignored
* for Secret volumes.
* be mounted. Defaults to "" (volume's root). This field is currently
* rejected in Secret volume mounts.
*
* @var string
*/
Expand Down Expand Up @@ -82,8 +82,8 @@ public function getName()
}
/**
* Optional. Path within the volume from which the container's volume should
* be mounted. Defaults to "" (volume's root). This field is currently ignored
* for Secret volumes.
* be mounted. Defaults to "" (volume's root). This field is currently
* rejected in Secret volume mounts.
*
* @param string $subPath
*/
Expand Down
27 changes: 27 additions & 0 deletions src/CloudRun/Resource/ProjectsLocationsInstances.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,33 @@ public function listProjectsLocationsInstances($parent, $optParams = [])
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRunV2ListInstancesResponse::class);
}
/**
* Updates an Instance. (instances.patch)
*
* @param string $name The fully qualified name of this Instance. In
* CreateInstanceRequest, this field is ignored, and instead composed from
* CreateInstanceRequest.parent and CreateInstanceRequest.instance_id. Format:
* projects/{project}/locations/{location}/instances/{instance_id}
* @param GoogleCloudRunV2Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, and if the Instance
* does not exist, it will create a new one. The caller must have
* 'run.instances.create' permissions if this is set to true and the Instance
* does not exist.
* @opt_param string updateMask Optional. The list of fields to be updated.
* @opt_param bool validateOnly Optional. Indicates that the request should be
* validated and default values populated, without persisting the request or
* updating any resources.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudRunV2Instance $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Starts an Instance. (instances.start)
*
Expand Down
Loading