class Google::Apis::ComputeV1::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::ComputeV1::LocationPolicyLocation>]

target_shape[RW]

Strategy for distributing VMs across zones in a region. Corresponds to the JSON property `targetShape` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 18306
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_v1/classes.rb, line 18311
def update!(**args)
  @locations = args[:locations] if args.key?(:locations)
  @target_shape = args[:target_shape] if args.key?(:target_shape)
end