class Google::Apis::ComputeV1::LocationPolicyLocation

Attributes

constraints[RW]

Per-zone constraints on location policy for this zone. Corresponds to the JSON property `constraints` @return [Google::Apis::ComputeV1::LocationPolicyLocationConstraints]

preference[RW]

Preference for a given location. Set to either ALLOW or DENY. Corresponds to the JSON property `preference` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 18099
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 18104
def update!(**args)
  @constraints = args[:constraints] if args.key?(:constraints)
  @preference = args[:preference] if args.key?(:preference)
end