Class: Google::Apis::ComputeV1::LocationPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::LocationPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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::ComputeV1::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.
17238 17239 17240 |
# File 'lib/google/apis/compute_v1/classes.rb', line 17238 def initialize(**args) update!(**args) end |
Instance Attribute Details
#locations ⇒ Hash<String,Google::Apis::ComputeV1::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
17236 17237 17238 |
# File 'lib/google/apis/compute_v1/classes.rb', line 17236 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17243 17244 17245 |
# File 'lib/google/apis/compute_v1/classes.rb', line 17243 def update!(**args) @locations = args[:locations] if args.key?(:locations) end |