Class: Google::Apis::ComputeAlpha::LocationPolicy

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

Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocationPolicy

Returns a new instance of LocationPolicy.



20425
20426
20427
# File 'lib/google/apis/compute_alpha/classes.rb', line 20425

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

Instance Attribute Details

#locationsHash<String,Google::Apis::ComputeAlpha::LocationPolicyLocation>

Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, like: zones/us- central1-a. Corresponds to the JSON property locations



20423
20424
20425
# File 'lib/google/apis/compute_alpha/classes.rb', line 20423

def locations
  @locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20430
20431
20432
# File 'lib/google/apis/compute_alpha/classes.rb', line 20430

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