Compute V1 Client - Class LocationPolicyLocation (1.32.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ constraints
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.

Returns
Type
Description

hasConstraints

clearConstraints

setConstraints

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

Parameter
Name
Description
Returns
Type
Description
$this

getPreference

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

Check the Preference enum for the list of possible values.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: