Reference documentation and code samples for the Compute V1 Client class NodeGroupAutoscalingPolicy.
Generated from protobuf message google.cloud.compute.v1.NodeGroupAutoscalingPolicy
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ max_nodes |
int
The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100. |
↳ min_nodes |
int
The minimum number of nodes that the group should have. |
↳ mode |
string
The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. Check the Mode enum for the list of possible values. |
getMaxNodes
The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
Generated from protobuf field optional int32 max_nodes = 297762838;
Returns | |
---|---|
Type | Description |
int |
hasMaxNodes
clearMaxNodes
setMaxNodes
The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
Generated from protobuf field optional int32 max_nodes = 297762838;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getMinNodes
The minimum number of nodes that the group should have.
Generated from protobuf field optional int32 min_nodes = 533370500;
Returns | |
---|---|
Type | Description |
int |
hasMinNodes
clearMinNodes
setMinNodes
The minimum number of nodes that the group should have.
Generated from protobuf field optional int32 min_nodes = 533370500;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getMode
The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
Check the Mode enum for the list of possible values.
Generated from protobuf field optional string mode = 3357091;
Returns | |
---|---|
Type | Description |
string |
hasMode
clearMode
setMode
The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
Check the Mode enum for the list of possible values.
Generated from protobuf field optional string mode = 3357091;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |