class Google::Apis::ComputeBeta::LocationPolicy

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

Attributes

locations[RW]

Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us- central1-a. Corresponds to the JSON property `locations` @return [Hash<String,Google::Apis::ComputeBeta::LocationPolicyLocation>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_beta/classes.rb, line 18101
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_beta/classes.rb, line 18106
def update!(**args)
  @locations = args[:locations] if args.key?(:locations)
end