Skip to content

Commit 2022808

Browse files
1 parent c0f718e commit 2022808

3 files changed

Lines changed: 55 additions & 1 deletion

File tree

src/CloudDeploy/CloudRunMetadata.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ class CloudRunMetadata extends \Google\Collection
4949
* @var string[]
5050
*/
5151
public $serviceUrls;
52+
/**
53+
* Output only. The Cloud Run worker pool associated with a `Rollout`. Format
54+
* is `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
55+
*
56+
* @var string
57+
*/
58+
public $workerPool;
5259

5360
/**
5461
* Output only. The name of the Cloud Run job that is associated with a
@@ -119,6 +126,23 @@ public function getServiceUrls()
119126
{
120127
return $this->serviceUrls;
121128
}
129+
/**
130+
* Output only. The Cloud Run worker pool associated with a `Rollout`. Format
131+
* is `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
132+
*
133+
* @param string $workerPool
134+
*/
135+
public function setWorkerPool($workerPool)
136+
{
137+
$this->workerPool = $workerPool;
138+
}
139+
/**
140+
* @return string
141+
*/
142+
public function getWorkerPool()
143+
{
144+
return $this->workerPool;
145+
}
122146
}
123147

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

src/CloudDeploy/CloudRunRenderMetadata.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ class CloudRunRenderMetadata extends \Google\Model
2626
* @var string
2727
*/
2828
public $service;
29+
/**
30+
* Output only. The name of the Cloud Run Worker Pool in the rendered
31+
* manifest. Format is
32+
* `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
33+
*
34+
* @var string
35+
*/
36+
public $workerPool;
2937

3038
/**
3139
* Output only. The name of the Cloud Run Service in the rendered manifest.
@@ -44,6 +52,24 @@ public function getService()
4452
{
4553
return $this->service;
4654
}
55+
/**
56+
* Output only. The name of the Cloud Run Worker Pool in the rendered
57+
* manifest. Format is
58+
* `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
59+
*
60+
* @param string $workerPool
61+
*/
62+
public function setWorkerPool($workerPool)
63+
{
64+
$this->workerPool = $workerPool;
65+
}
66+
/**
67+
* @return string
68+
*/
69+
public function getWorkerPool()
70+
{
71+
return $this->workerPool;
72+
}
4773
}
4874

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

src/CloudDeploy/Resource/ProjectsLocations.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ public function getConfig($name, $optParams = [])
6060
return $this->call('getConfig', [$params], Config::class);
6161
}
6262
/**
63-
* Lists information about the supported locations for this service.
63+
* Lists information about the supported locations for this service. This method
64+
* can be called in two ways: * **List all public locations:** Use the path `GET
65+
* /v1/locations`. * **List project-visible locations:** Use the path `GET
66+
* /v1/projects/{project_id}/locations`. This may include public locations as
67+
* well as private or other locations specifically visible to the project.
6468
* (locations.listProjectsLocations)
6569
*
6670
* @param string $name The resource that owns the locations collection, if

0 commit comments

Comments
 (0)