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.



13433
13434
13435
# File 'lib/google/apis/compute_alpha/classes.rb', line 13433

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



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