Compute V1 Client - Class LocationPolicyLocation (1.5.0)

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ constraints Google\Cloud\Compute\V1\LocationPolicyLocationConstraints

Constraints that the caller requires on the result distribution in this zone.

↳ preference string

Preference for a given location. Set to either ALLOW or DENY. Check the Preference enum for the list of possible values.

getConstraints

Constraints that the caller requires on the result distribution in this zone.

Generated from protobuf field optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;

Returns
TypeDescription
Google\Cloud\Compute\V1\LocationPolicyLocationConstraints|null

hasConstraints

clearConstraints

setConstraints

Constraints that the caller requires on the result distribution in this zone.

Generated from protobuf field optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;

Parameter
NameDescription
var Google\Cloud\Compute\V1\LocationPolicyLocationConstraints
Returns
TypeDescription
$this

getPreference

Preference for a given location. Set to either ALLOW or DENY.

Check the Preference enum for the list of possible values.

Generated from protobuf field optional string preference = 150781147;

Returns
TypeDescription
string

hasPreference

clearPreference

setPreference

Preference for a given location. Set to either ALLOW or DENY.

Check the Preference enum for the list of possible values.

Generated from protobuf field optional string preference = 150781147;

Parameter
NameDescription
var string
Returns
TypeDescription
$this