Skip to content

Commit 534f502

Browse files
Regenerate run client
1 parent c9fa9d7 commit 534f502

File tree

4 files changed

+95
-54
lines changed

4 files changed

+95
-54
lines changed

src/CloudRun.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
730730
'required' => true,
731731
],
732732
],
733+
],'getIamPolicy' => [
734+
'path' => 'v2/{+resource}:getIamPolicy',
735+
'httpMethod' => 'GET',
736+
'parameters' => [
737+
'resource' => [
738+
'location' => 'path',
739+
'type' => 'string',
740+
'required' => true,
741+
],
742+
'options.requestedPolicyVersion' => [
743+
'location' => 'query',
744+
'type' => 'integer',
745+
],
746+
],
733747
],'list' => [
734748
'path' => 'v2/{+parent}/workerPools',
735749
'httpMethod' => 'GET',
@@ -778,6 +792,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
778792
'type' => 'boolean',
779793
],
780794
],
795+
],'setIamPolicy' => [
796+
'path' => 'v2/{+resource}:setIamPolicy',
797+
'httpMethod' => 'POST',
798+
'parameters' => [
799+
'resource' => [
800+
'location' => 'path',
801+
'type' => 'string',
802+
'required' => true,
803+
],
804+
],
781805
],'testIamPermissions' => [
782806
'path' => 'v2/{+resource}:testIamPermissions',
783807
'httpMethod' => 'POST',

src/CloudRun/GoogleCloudRunV2Task.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ class GoogleCloudRunV2Task extends \Google\Collection
6464
* @var string
6565
*/
6666
public $generation;
67+
/**
68+
* @var bool
69+
*/
70+
public $gpuZonalRedundancyDisabled;
6771
/**
6872
* @var int
6973
*/
@@ -305,6 +309,20 @@ public function getGeneration()
305309
{
306310
return $this->generation;
307311
}
312+
/**
313+
* @param bool
314+
*/
315+
public function setGpuZonalRedundancyDisabled($gpuZonalRedundancyDisabled)
316+
{
317+
$this->gpuZonalRedundancyDisabled = $gpuZonalRedundancyDisabled;
318+
}
319+
/**
320+
* @return bool
321+
*/
322+
public function getGpuZonalRedundancyDisabled()
323+
{
324+
return $this->gpuZonalRedundancyDisabled;
325+
}
308326
/**
309327
* @param int
310328
*/

src/CloudRun/GoogleCloudRunV2WorkerPoolScaling.php

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ class GoogleCloudRunV2WorkerPoolScaling extends \Google\Model
2323
* @var int
2424
*/
2525
public $manualInstanceCount;
26-
/**
27-
* @var int
28-
*/
29-
public $maxInstanceCount;
30-
/**
31-
* @var int
32-
*/
33-
public $minInstanceCount;
34-
/**
35-
* @var string
36-
*/
37-
public $scalingMode;
3826

3927
/**
4028
* @param int
@@ -50,48 +38,6 @@ public function getManualInstanceCount()
5038
{
5139
return $this->manualInstanceCount;
5240
}
53-
/**
54-
* @param int
55-
*/
56-
public function setMaxInstanceCount($maxInstanceCount)
57-
{
58-
$this->maxInstanceCount = $maxInstanceCount;
59-
}
60-
/**
61-
* @return int
62-
*/
63-
public function getMaxInstanceCount()
64-
{
65-
return $this->maxInstanceCount;
66-
}
67-
/**
68-
* @param int
69-
*/
70-
public function setMinInstanceCount($minInstanceCount)
71-
{
72-
$this->minInstanceCount = $minInstanceCount;
73-
}
74-
/**
75-
* @return int
76-
*/
77-
public function getMinInstanceCount()
78-
{
79-
return $this->minInstanceCount;
80-
}
81-
/**
82-
* @param string
83-
*/
84-
public function setScalingMode($scalingMode)
85-
{
86-
$this->scalingMode = $scalingMode;
87-
}
88-
/**
89-
* @return string
90-
*/
91-
public function getScalingMode()
92-
{
93-
return $this->scalingMode;
94-
}
9541
}
9642

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

src/CloudRun/Resource/ProjectsLocationsWorkerPools.php

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
use Google\Service\CloudRun\GoogleCloudRunV2ListWorkerPoolsResponse;
2121
use Google\Service\CloudRun\GoogleCloudRunV2WorkerPool;
22+
use Google\Service\CloudRun\GoogleIamV1Policy;
23+
use Google\Service\CloudRun\GoogleIamV1SetIamPolicyRequest;
2224
use Google\Service\CloudRun\GoogleIamV1TestIamPermissionsRequest;
2325
use Google\Service\CloudRun\GoogleIamV1TestIamPermissionsResponse;
2426
use Google\Service\CloudRun\GoogleLongrunningOperation;
@@ -97,6 +99,38 @@ public function get($name, $optParams = [])
9799
$params = array_merge($params, $optParams);
98100
return $this->call('get', [$params], GoogleCloudRunV2WorkerPool::class);
99101
}
102+
/**
103+
* Gets the IAM Access Control policy currently in effect for the given Cloud
104+
* Run WorkerPool. This result does not include any inherited policies.
105+
* (workerPools.getIamPolicy)
106+
*
107+
* @param string $resource REQUIRED: The resource for which the policy is being
108+
* requested. See [Resource
109+
* names](https://cloud.google.com/apis/design/resource_names) for the
110+
* appropriate value for this field.
111+
* @param array $optParams Optional parameters.
112+
*
113+
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
114+
* version that will be used to format the policy. Valid values are 0, 1, and 3.
115+
* Requests specifying an invalid value will be rejected. Requests for policies
116+
* with any conditional role bindings must specify version 3. Policies with no
117+
* conditional role bindings may specify any valid value or leave the field
118+
* unset. The policy in the response might use the policy version that you
119+
* specified, or it might use a lower policy version. For example, if you
120+
* specify version 3, but the policy has no conditional role bindings, the
121+
* response uses version 1. To learn which resources support conditions in their
122+
* IAM policies, see the [IAM
123+
* documentation](https://cloud.google.com/iam/help/conditions/resource-
124+
* policies).
125+
* @return GoogleIamV1Policy
126+
* @throws \Google\Service\Exception
127+
*/
128+
public function getIamPolicy($resource, $optParams = [])
129+
{
130+
$params = ['resource' => $resource];
131+
$params = array_merge($params, $optParams);
132+
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
133+
}
100134
/**
101135
* Lists WorkerPools. Results are sorted by creation time, descending.
102136
* (workerPools.listProjectsLocationsWorkerPools)
@@ -155,6 +189,25 @@ public function patch($name, GoogleCloudRunV2WorkerPool $postBody, $optParams =
155189
$params = array_merge($params, $optParams);
156190
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
157191
}
192+
/**
193+
* Sets the IAM Access control policy for the specified WorkerPool. Overwrites
194+
* any existing policy. (workerPools.setIamPolicy)
195+
*
196+
* @param string $resource REQUIRED: The resource for which the policy is being
197+
* specified. See [Resource
198+
* names](https://cloud.google.com/apis/design/resource_names) for the
199+
* appropriate value for this field.
200+
* @param GoogleIamV1SetIamPolicyRequest $postBody
201+
* @param array $optParams Optional parameters.
202+
* @return GoogleIamV1Policy
203+
* @throws \Google\Service\Exception
204+
*/
205+
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
206+
{
207+
$params = ['resource' => $resource, 'postBody' => $postBody];
208+
$params = array_merge($params, $optParams);
209+
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
210+
}
158211
/**
159212
* Returns permissions that a caller has on the specified Project. There are no
160213
* permissions required for making this API call.

0 commit comments

Comments
 (0)