Compute V1 Client - Class LocationPolicyLocationConstraints (1.5.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

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.

Generated from protobuf field optional int32 max_count = 287620724;

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.

Generated from protobuf field optional int32 max_count = 287620724;

Parameter
NameDescription
var int
Returns
TypeDescription
$this