Skip to content

Commit e1f2f06

Browse files
1 parent aefc056 commit e1f2f06

3 files changed

Lines changed: 71 additions & 1 deletion

File tree

src/CloudRun/GoogleCloudRunV2Instance.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,13 @@ class GoogleCloudRunV2Instance extends \Google\Collection
303303
public $serviceAccount;
304304
protected $terminalConditionType = GoogleCloudRunV2Condition::class;
305305
protected $terminalConditionDataType = '';
306+
/**
307+
* Optional. Duration the instance may be active before the system will shut
308+
* it down.
309+
*
310+
* @var string
311+
*/
312+
public $timeout;
306313
/**
307314
* Output only. Server assigned unique identifier for the trigger. The value
308315
* is a UUID4 string and guaranteed to remain unchanged until the resource is
@@ -888,6 +895,23 @@ public function getTerminalCondition()
888895
{
889896
return $this->terminalCondition;
890897
}
898+
/**
899+
* Optional. Duration the instance may be active before the system will shut
900+
* it down.
901+
*
902+
* @param string $timeout
903+
*/
904+
public function setTimeout($timeout)
905+
{
906+
$this->timeout = $timeout;
907+
}
908+
/**
909+
* @return string
910+
*/
911+
public function getTimeout()
912+
{
913+
return $this->timeout;
914+
}
891915
/**
892916
* Output only. Server assigned unique identifier for the trigger. The value
893917
* is a UUID4 string and guaranteed to remain unchanged until the resource is

src/CloudRun/GoogleCloudRunV2Revision.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public function getConditions()
381381
return $this->conditions;
382382
}
383383
/**
384-
* Holds the single container that defines the unit of execution for this
384+
* Containers holds the list which define the units of execution for this
385385
* Revision.
386386
*
387387
* @param GoogleCloudRunV2Container[] $containers

src/CloudRun/GoogleCloudRunV2RevisionScaling.php

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

2020
class GoogleCloudRunV2RevisionScaling extends \Google\Model
2121
{
22+
/**
23+
* Optional. Determines a threshold for concurrency utilization before scaling
24+
* begins.
25+
*
26+
* @var float
27+
*/
28+
public $concurrencyUtilization;
29+
/**
30+
* Optional. Determines a threshold for CPU utilization before scaling begins.
31+
*
32+
* @var float
33+
*/
34+
public $cpuUtilization;
2235
/**
2336
* Optional. Maximum number of serving instances that this resource should
2437
* have. When unspecified, the field is set to the server default value of
@@ -36,6 +49,39 @@ class GoogleCloudRunV2RevisionScaling extends \Google\Model
3649
*/
3750
public $minInstanceCount;
3851

52+
/**
53+
* Optional. Determines a threshold for concurrency utilization before scaling
54+
* begins.
55+
*
56+
* @param float $concurrencyUtilization
57+
*/
58+
public function setConcurrencyUtilization($concurrencyUtilization)
59+
{
60+
$this->concurrencyUtilization = $concurrencyUtilization;
61+
}
62+
/**
63+
* @return float
64+
*/
65+
public function getConcurrencyUtilization()
66+
{
67+
return $this->concurrencyUtilization;
68+
}
69+
/**
70+
* Optional. Determines a threshold for CPU utilization before scaling begins.
71+
*
72+
* @param float $cpuUtilization
73+
*/
74+
public function setCpuUtilization($cpuUtilization)
75+
{
76+
$this->cpuUtilization = $cpuUtilization;
77+
}
78+
/**
79+
* @return float
80+
*/
81+
public function getCpuUtilization()
82+
{
83+
return $this->cpuUtilization;
84+
}
3985
/**
4086
* Optional. Maximum number of serving instances that this resource should
4187
* have. When unspecified, the field is set to the server default value of

0 commit comments

Comments
 (0)