Compute V1 Client - Class LocationPolicyLocationConstraints (1.21.0)

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

Per-zone constraints on location policy for this zone.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ max_count int

Maximum number of items that are allowed to be placed in this zone. The value must be non-negative.

getMaxCount

Maximum number of items that are allowed to be placed in this zone. The value must be non-negative.

Returns
Type Description
int

hasMaxCount

clearMaxCount

setMaxCount

Maximum number of items that are allowed to be placed in this zone. The value must be non-negative.

Parameter
Name Description
var int
Returns
Type Description
$this