Class: Google::Apis::ComputeBeta::FutureResourcesSpecLocationPolicy

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

Overview

Specification of locations to create resources in.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FutureResourcesSpecLocationPolicy

Returns a new instance of FutureResourcesSpecLocationPolicy.



16591
16592
16593
# File 'lib/google/apis/compute_beta/classes.rb', line 16591

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

Instance Attribute Details

#locationsHash<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



16589
16590
16591
# File 'lib/google/apis/compute_beta/classes.rb', line 16589

def locations
  @locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16596
16597
16598
# File 'lib/google/apis/compute_beta/classes.rb', line 16596

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