Class: Google::Apis::ComputeAlpha::LocationPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::LocationPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region).
Instance Attribute Summary collapse
-
#locations ⇒ Hash<String,Google::Apis::ComputeAlpha::LocationPolicyLocation>
Location configurations mapped by location name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocationPolicy
constructor
A new instance of LocationPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LocationPolicy
Returns a new instance of LocationPolicy.
19628 19629 19630 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 19628 def initialize(**args) update!(**args) end |
Instance Attribute Details
#locations ⇒ Hash<String,Google::Apis::ComputeAlpha::LocationPolicyLocation>
Location configurations mapped by location name. Currently only zone names are
supported and must be represented as valid internal URLs, like: zones/us-
central1-a.
Corresponds to the JSON property locations
19626 19627 19628 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 19626 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19633 19634 19635 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 19633 def update!(**args) @locations = args[:locations] if args.key?(:locations) end |