Compute V1 Client - Class NodeGroupAutoscalingPolicy (1.25.0)

Reference documentation and code samples for the Compute V1 Client class NodeGroupAutoscalingPolicy.

Generated from protobuf message google.cloud.compute.v1.NodeGroupAutoscalingPolicy

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ max_nodesint

The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.

↳ min_nodesint

The minimum number of nodes that the group should have.

↳ modestring

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.

Returns
TypeDescription
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.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getMinNodes

The minimum number of nodes that the group should have.

Returns
TypeDescription
int

hasMinNodes

clearMinNodes

setMinNodes

The minimum number of nodes that the group should have.

Parameter
NameDescription
varint
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this