Class: Google::Apis::ComputeBeta::LocationPolicyLocation

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocationPolicyLocation

Returns a new instance of LocationPolicyLocation.



32695
32696
32697
# File 'lib/google/apis/compute_beta/classes.rb', line 32695

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#constraintsGoogle::Apis::ComputeBeta::LocationPolicyLocationConstraints

Per-zone constraints on location policy for this zone. Corresponds to the JSON property constraints



32688
32689
32690
# File 'lib/google/apis/compute_beta/classes.rb', line 32688

def constraints
  @constraints
end

#preferenceString

Preference for a given location. Set to either ALLOW orDENY. Corresponds to the JSON property preference

Returns:

  • (String)


32693
32694
32695
# File 'lib/google/apis/compute_beta/classes.rb', line 32693

def preference
  @preference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32700
32701
32702
32703
# File 'lib/google/apis/compute_beta/classes.rb', line 32700

def update!(**args)
  @constraints = args[:constraints] if args.key?(:constraints)
  @preference = args[:preference] if args.key?(:preference)
end