Skip to content
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/GoogleCloudRunV2Instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,13 @@ class GoogleCloudRunV2Instance extends \Google\Collection
public $serviceAccount;
protected $terminalConditionType = GoogleCloudRunV2Condition::class;
protected $terminalConditionDataType = '';
/**
* Optional. Duration the instance may be active before the system will shut
* it down.
*
* @var string
*/
public $timeout;
/**
* Output only. Server assigned unique identifier for the trigger. The value
* is a UUID4 string and guaranteed to remain unchanged until the resource is
Expand Down Expand Up @@ -888,6 +895,23 @@ public function getTerminalCondition()
{
return $this->terminalCondition;
}
/**
* Optional. Duration the instance may be active before the system will shut
* it down.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* Output only. Server assigned unique identifier for the trigger. The value
* is a UUID4 string and guaranteed to remain unchanged until the resource is
Expand Down
2 changes: 1 addition & 1 deletion src/CloudRun/GoogleCloudRunV2Revision.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public function getConditions()
return $this->conditions;
}
/**
* Holds the single container that defines the unit of execution for this
* Containers holds the list which define the units of execution for this
* Revision.
*
* @param GoogleCloudRunV2Container[] $containers
Expand Down
46 changes: 46 additions & 0 deletions src/CloudRun/GoogleCloudRunV2RevisionScaling.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@

class GoogleCloudRunV2RevisionScaling extends \Google\Model
{
/**
* Optional. Determines a threshold for concurrency utilization before scaling
* begins.
*
* @var float
*/
public $concurrencyUtilization;
/**
* Optional. Determines a threshold for CPU utilization before scaling begins.
*
* @var float
*/
public $cpuUtilization;
/**
* Optional. Maximum number of serving instances that this resource should
* have. When unspecified, the field is set to the server default value of
Expand All @@ -36,6 +49,39 @@ class GoogleCloudRunV2RevisionScaling extends \Google\Model
*/
public $minInstanceCount;

/**
* Optional. Determines a threshold for concurrency utilization before scaling
* begins.
*
* @param float $concurrencyUtilization
*/
public function setConcurrencyUtilization($concurrencyUtilization)
{
$this->concurrencyUtilization = $concurrencyUtilization;
}
/**
* @return float
*/
public function getConcurrencyUtilization()
{
return $this->concurrencyUtilization;
}
/**
* Optional. Determines a threshold for CPU utilization before scaling begins.
*
* @param float $cpuUtilization
*/
public function setCpuUtilization($cpuUtilization)
{
$this->cpuUtilization = $cpuUtilization;
}
/**
* @return float
*/
public function getCpuUtilization()
{
return $this->cpuUtilization;
}
/**
* Optional. Maximum number of serving instances that this resource should
* have. When unspecified, the field is set to the server default value of
Expand Down