Google Cloud Container V1 Client - Class StandardRolloutPolicy (1.9.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].

Generated from protobuf field float batch_percentage = 1;

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].

Generated from protobuf field float batch_percentage = 1;

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getBatchNodeCount

Number of blue nodes to drain in a batch.

Generated from protobuf field int32 batch_node_count = 2;

Returns
TypeDescription
int

hasBatchNodeCount

setBatchNodeCount

Number of blue nodes to drain in a batch.

Generated from protobuf field int32 batch_node_count = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getBatchSoakDuration

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

Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3;

Returns
TypeDescription
Google\Protobuf\Duration|null

hasBatchSoakDuration

clearBatchSoakDuration

setBatchSoakDuration

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

Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3;

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

getUpdateBatchSize

Returns
TypeDescription
string