Skip to content

Commit fbb7007

Browse files
1 parent c5a896c commit fbb7007

8 files changed

Lines changed: 1482 additions & 2 deletions

src/CloudRun.php

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class CloudRun extends \Google\Service
4343

4444
public $projects_locations;
4545
public $projects_locations_builds;
46+
public $projects_locations_instances;
4647
public $projects_locations_jobs;
4748
public $projects_locations_jobs_executions;
4849
public $projects_locations_jobs_executions_tasks;
@@ -140,6 +141,104 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
140141
]
141142
]
142143
);
144+
$this->projects_locations_instances = new CloudRun\Resource\ProjectsLocationsInstances(
145+
$this,
146+
$this->serviceName,
147+
'instances',
148+
[
149+
'methods' => [
150+
'create' => [
151+
'path' => 'v2/{+parent}/instances',
152+
'httpMethod' => 'POST',
153+
'parameters' => [
154+
'parent' => [
155+
'location' => 'path',
156+
'type' => 'string',
157+
'required' => true,
158+
],
159+
'instanceId' => [
160+
'location' => 'query',
161+
'type' => 'string',
162+
],
163+
'validateOnly' => [
164+
'location' => 'query',
165+
'type' => 'boolean',
166+
],
167+
],
168+
],'delete' => [
169+
'path' => 'v2/{+name}',
170+
'httpMethod' => 'DELETE',
171+
'parameters' => [
172+
'name' => [
173+
'location' => 'path',
174+
'type' => 'string',
175+
'required' => true,
176+
],
177+
'etag' => [
178+
'location' => 'query',
179+
'type' => 'string',
180+
],
181+
'validateOnly' => [
182+
'location' => 'query',
183+
'type' => 'boolean',
184+
],
185+
],
186+
],'get' => [
187+
'path' => 'v2/{+name}',
188+
'httpMethod' => 'GET',
189+
'parameters' => [
190+
'name' => [
191+
'location' => 'path',
192+
'type' => 'string',
193+
'required' => true,
194+
],
195+
],
196+
],'list' => [
197+
'path' => 'v2/{+parent}/instances',
198+
'httpMethod' => 'GET',
199+
'parameters' => [
200+
'parent' => [
201+
'location' => 'path',
202+
'type' => 'string',
203+
'required' => true,
204+
],
205+
'pageSize' => [
206+
'location' => 'query',
207+
'type' => 'integer',
208+
],
209+
'pageToken' => [
210+
'location' => 'query',
211+
'type' => 'string',
212+
],
213+
'showDeleted' => [
214+
'location' => 'query',
215+
'type' => 'boolean',
216+
],
217+
],
218+
],'start' => [
219+
'path' => 'v2/{+name}:start',
220+
'httpMethod' => 'POST',
221+
'parameters' => [
222+
'name' => [
223+
'location' => 'path',
224+
'type' => 'string',
225+
'required' => true,
226+
],
227+
],
228+
],'stop' => [
229+
'path' => 'v2/{+name}:stop',
230+
'httpMethod' => 'POST',
231+
'parameters' => [
232+
'name' => [
233+
'location' => 'path',
234+
'type' => 'string',
235+
'required' => true,
236+
],
237+
],
238+
],
239+
]
240+
]
241+
);
143242
$this->projects_locations_jobs = new CloudRun\Resource\ProjectsLocationsJobs(
144243
$this,
145244
$this->serviceName,

src/CloudRun/GoogleCloudRunV2Container.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ class GoogleCloudRunV2Container extends \Google\Collection
6969
public $name;
7070
protected $portsType = GoogleCloudRunV2ContainerPort::class;
7171
protected $portsDataType = 'array';
72+
protected $readinessProbeType = GoogleCloudRunV2Probe::class;
73+
protected $readinessProbeDataType = '';
7274
protected $resourcesType = GoogleCloudRunV2ResourceRequirements::class;
7375
protected $resourcesDataType = '';
7476
protected $sourceCodeType = GoogleCloudRunV2SourceCode::class;
@@ -255,6 +257,22 @@ public function getPorts()
255257
{
256258
return $this->ports;
257259
}
260+
/**
261+
* Readiness probe to be used for health checks.
262+
*
263+
* @param GoogleCloudRunV2Probe $readinessProbe
264+
*/
265+
public function setReadinessProbe(GoogleCloudRunV2Probe $readinessProbe)
266+
{
267+
$this->readinessProbe = $readinessProbe;
268+
}
269+
/**
270+
* @return GoogleCloudRunV2Probe
271+
*/
272+
public function getReadinessProbe()
273+
{
274+
return $this->readinessProbe;
275+
}
258276
/**
259277
* Compute Resource requirements by this container.
260278
*

src/CloudRun/GoogleCloudRunV2ContainerStatus.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,28 @@
2020
class GoogleCloudRunV2ContainerStatus extends \Google\Model
2121
{
2222
/**
23+
* ImageDigest holds the resolved digest for the image specified and resolved
24+
* during the creation of Revision. This field holds the digest value
25+
* regardless of whether a tag or digest was originally specified in the
26+
* Container object.
27+
*
2328
* @var string
2429
*/
2530
public $imageDigest;
2631
/**
32+
* The name of the container, if specified.
33+
*
2734
* @var string
2835
*/
2936
public $name;
3037

3138
/**
32-
* @param string
39+
* ImageDigest holds the resolved digest for the image specified and resolved
40+
* during the creation of Revision. This field holds the digest value
41+
* regardless of whether a tag or digest was originally specified in the
42+
* Container object.
43+
*
44+
* @param string $imageDigest
3345
*/
3446
public function setImageDigest($imageDigest)
3547
{
@@ -43,7 +55,9 @@ public function getImageDigest()
4355
return $this->imageDigest;
4456
}
4557
/**
46-
* @param string
58+
* The name of the container, if specified.
59+
*
60+
* @param string $name
4761
*/
4862
public function setName($name)
4963
{

0 commit comments

Comments
 (0)