Class: Google::Apis::ComputeV1::FutureResourcesSpecLocationPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.



14098
14099
14100
# File 'lib/google/apis/compute_v1/classes.rb', line 14098

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

Instance Attribute Details

#locationsHash<String,Google::Apis::ComputeV1::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



14096
14097
14098
# File 'lib/google/apis/compute_v1/classes.rb', line 14096

def locations
  @locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14103
14104
14105
# File 'lib/google/apis/compute_v1/classes.rb', line 14103

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