Google Cloud Container V1 Client - Class StandardRolloutPolicy (2.2.0)

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

Standard rollout policy is the default policy for blue-green.

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

Namespace

Google \ Cloud \ Container \ V1 \ BlueGreenSettings

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ batch_percentage float

Percentage of the blue pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].

↳ batch_node_count int

Number of blue nodes to drain in a batch.

↳ batch_soak_duration Google\Protobuf\Duration

Soak time after each batch gets drained. Default to zero.

getBatchPercentage

Percentage of the blue pool nodes to drain in a batch.

The range of this field should be (0.0, 1.0].

Returns
Type Description
float

hasBatchPercentage

setBatchPercentage

Percentage of the blue pool nodes to drain in a batch.

The range of this field should be (0.0, 1.0].

Parameter
Name Description
var float
Returns
Type Description
$this

getBatchNodeCount

Number of blue nodes to drain in a batch.

Returns
Type Description
int

hasBatchNodeCount

setBatchNodeCount

Number of blue nodes to drain in a batch.

Parameter
Name Description
var int
Returns
Type Description
$this

getBatchSoakDuration

Soak time after each batch gets drained. Default to zero.

Returns
Type Description
Google\Protobuf\Duration|null

hasBatchSoakDuration

clearBatchSoakDuration

setBatchSoakDuration

Soak time after each batch gets drained. Default to zero.

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

getUpdateBatchSize

Returns
Type Description
string