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 | |
---|---|
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].
Generated from protobuf field float batch_percentage = 1;
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].
Generated from protobuf field float batch_percentage = 1;
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getBatchNodeCount
Number of blue nodes to drain in a batch.
Generated from protobuf field int32 batch_node_count = 2;
Returns | |
---|---|
Type | Description |
int |
hasBatchNodeCount
setBatchNodeCount
Number of blue nodes to drain in a batch.
Generated from protobuf field int32 batch_node_count = 2;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateBatchSize
Returns | |
---|---|
Type | Description |
string |