Class: Google::Apis::ComputeBeta::FutureResourcesSpecLocationPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::FutureResourcesSpecLocationPolicy
- 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
Overview
Specification of locations to create resources in.
Instance Attribute Summary collapse
-
#locations ⇒ Hash<String,Google::Apis::ComputeBeta::FutureResourcesSpecLocationPolicyLocation>
Preferences for specified locations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FutureResourcesSpecLocationPolicy
constructor
A new instance of FutureResourcesSpecLocationPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FutureResourcesSpecLocationPolicy
Returns a new instance of FutureResourcesSpecLocationPolicy.
15477 15478 15479 |
# File 'lib/google/apis/compute_beta/classes.rb', line 15477 def initialize(**args) update!(**args) end |
Instance Attribute Details
#locations ⇒ Hash<String,Google::Apis::ComputeBeta::FutureResourcesSpecLocationPolicyLocation>
Preferences for specified locations.
Keys of the map are locations - zones, in format of 'zones/'.
Values are preferences for the zones.
If a zone is not specified in this map, it is ALLOWed.
Corresponds to the JSON property locations
15475 15476 15477 |
# File 'lib/google/apis/compute_beta/classes.rb', line 15475 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15482 15483 15484 |
# File 'lib/google/apis/compute_beta/classes.rb', line 15482 def update!(**args) @locations = args[:locations] if args.key?(:locations) end |