Google Cloud Container V1 Client - Class StandardRolloutPolicy (1.13.1)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var float
Returns
TypeDescription
$this

getBatchNodeCount

Number of blue nodes to drain in a batch.

Returns
TypeDescription
int

hasBatchNodeCount

setBatchNodeCount

Number of blue nodes to drain in a batch.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getBatchSoakDuration

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

Returns
TypeDescription
Google\Protobuf\Duration|null

hasBatchSoakDuration

clearBatchSoakDuration

setBatchSoakDuration

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

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getUpdateBatchSize

Returns
TypeDescription
string