Class: Google::Apis::ComputeAlpha::FutureResourcesSpecLocationPolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FutureResourcesSpecLocationPolicy

Returns a new instance of FutureResourcesSpecLocationPolicy.



17328
17329
17330
# File 'lib/google/apis/compute_alpha/classes.rb', line 17328

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

Instance Attribute Details

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



17326
17327
17328
# File 'lib/google/apis/compute_alpha/classes.rb', line 17326

def locations
  @locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17333
17334
17335
# File 'lib/google/apis/compute_alpha/classes.rb', line 17333

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