Google Cloud Container V1 Client - Class AutoscaledRolloutPolicy (2.7.0)

Reference documentation and code samples for the Google Cloud Container V1 Client class AutoscaledRolloutPolicy.

Autoscaled rollout policy utilizes the cluster autoscaler during blue-green upgrade to scale both the blue and green pools.

Generated from protobuf message google.container.v1.BlueGreenSettings.AutoscaledRolloutPolicy

Namespace

Google \ Cloud \ Container \ V1 \ BlueGreenSettings

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ wait_for_drain_duration Google\Protobuf\Duration

Optional. Time to wait after cordoning the blue pool before draining the nodes. Defaults to 3 days. The value can be set between 0 and 7 days, inclusive.

getWaitForDrainDuration

Optional. Time to wait after cordoning the blue pool before draining the nodes. Defaults to 3 days. The value can be set between 0 and 7 days, inclusive.

Returns
Type Description
Google\Protobuf\Duration|null

hasWaitForDrainDuration

clearWaitForDrainDuration

setWaitForDrainDuration

Optional. Time to wait after cordoning the blue pool before draining the nodes. Defaults to 3 days. The value can be set between 0 and 7 days, inclusive.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this