Skip to content

Regenerate run client #6528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2025
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
24 changes: 24 additions & 0 deletions src/CloudRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'required' => true,
],
],
],'getIamPolicy' => [
'path' => 'v2/{+resource}:getIamPolicy',
'httpMethod' => 'GET',
'parameters' => [
'resource' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'options.requestedPolicyVersion' => [
'location' => 'query',
'type' => 'integer',
],
],
],'list' => [
'path' => 'v2/{+parent}/workerPools',
'httpMethod' => 'GET',
Expand Down Expand Up @@ -778,6 +792,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'type' => 'boolean',
],
],
],'setIamPolicy' => [
'path' => 'v2/{+resource}:setIamPolicy',
'httpMethod' => 'POST',
'parameters' => [
'resource' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'testIamPermissions' => [
'path' => 'v2/{+resource}:testIamPermissions',
'httpMethod' => 'POST',
Expand Down
18 changes: 18 additions & 0 deletions src/CloudRun/GoogleCloudRunV2Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ class GoogleCloudRunV2Task extends \Google\Collection
* @var string
*/
public $generation;
/**
* @var bool
*/
public $gpuZonalRedundancyDisabled;
/**
* @var int
*/
Expand Down Expand Up @@ -305,6 +309,20 @@ public function getGeneration()
{
return $this->generation;
}
/**
* @param bool
*/
public function setGpuZonalRedundancyDisabled($gpuZonalRedundancyDisabled)
{
$this->gpuZonalRedundancyDisabled = $gpuZonalRedundancyDisabled;
}
/**
* @return bool
*/
public function getGpuZonalRedundancyDisabled()
{
return $this->gpuZonalRedundancyDisabled;
}
/**
* @param int
*/
Expand Down
54 changes: 0 additions & 54 deletions src/CloudRun/GoogleCloudRunV2WorkerPoolScaling.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,6 @@ class GoogleCloudRunV2WorkerPoolScaling extends \Google\Model
* @var int
*/
public $manualInstanceCount;
/**
* @var int
*/
public $maxInstanceCount;
/**
* @var int
*/
public $minInstanceCount;
/**
* @var string
*/
public $scalingMode;

/**
* @param int
Expand All @@ -50,48 +38,6 @@ public function getManualInstanceCount()
{
return $this->manualInstanceCount;
}
/**
* @param int
*/
public function setMaxInstanceCount($maxInstanceCount)
{
$this->maxInstanceCount = $maxInstanceCount;
}
/**
* @return int
*/
public function getMaxInstanceCount()
{
return $this->maxInstanceCount;
}
/**
* @param int
*/
public function setMinInstanceCount($minInstanceCount)
{
$this->minInstanceCount = $minInstanceCount;
}
/**
* @return int
*/
public function getMinInstanceCount()
{
return $this->minInstanceCount;
}
/**
* @param string
*/
public function setScalingMode($scalingMode)
{
$this->scalingMode = $scalingMode;
}
/**
* @return string
*/
public function getScalingMode()
{
return $this->scalingMode;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down
53 changes: 53 additions & 0 deletions src/CloudRun/Resource/ProjectsLocationsWorkerPools.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

use Google\Service\CloudRun\GoogleCloudRunV2ListWorkerPoolsResponse;
use Google\Service\CloudRun\GoogleCloudRunV2WorkerPool;
use Google\Service\CloudRun\GoogleIamV1Policy;
use Google\Service\CloudRun\GoogleIamV1SetIamPolicyRequest;
use Google\Service\CloudRun\GoogleIamV1TestIamPermissionsRequest;
use Google\Service\CloudRun\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\CloudRun\GoogleLongrunningOperation;
Expand Down Expand Up @@ -97,6 +99,38 @@ public function get($name, $optParams = [])
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudRunV2WorkerPool::class);
}
/**
* Gets the IAM Access Control policy currently in effect for the given Cloud
* Run WorkerPool. This result does not include any inherited policies.
* (workerPools.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
}
/**
* Lists WorkerPools. Results are sorted by creation time, descending.
* (workerPools.listProjectsLocationsWorkerPools)
Expand Down Expand Up @@ -155,6 +189,25 @@ public function patch($name, GoogleCloudRunV2WorkerPool $postBody, $optParams =
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* Sets the IAM Access control policy for the specified WorkerPool. Overwrites
* any existing policy. (workerPools.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GoogleIamV1SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
}
/**
* Returns permissions that a caller has on the specified Project. There are no
* permissions required for making this API call.
Expand Down