Class: Google::Apis::ComputeAlpha::FutureResourcesSpecLocationPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::FutureResourcesSpecLocationPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Specification of locations to create resources in.
Instance Attribute Summary collapse
-
#locations ⇒ Hash<String,Google::Apis::ComputeAlpha::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.
13433 13434 13435 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 13433 def initialize(**args) update!(**args) end |
Instance Attribute Details
#locations ⇒ Hash<String,Google::Apis::ComputeAlpha::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
13431 13432 13433 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 13431 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13438 13439 13440 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 13438 def update!(**args) @locations = args[:locations] if args.key?(:locations) end |