Compute V1 Client - Class LocationPolicyLocationConstraints (1.14.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
NameDescription
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
TypeDescription
int

hasMaxCount

clearMaxCount

setMaxCount

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this