Class: Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponseRecommendationsForInstanceSpecs

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

Instance count recommendations for a single instance specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegionInstancesRecommendLocationsResponseRecommendationsForInstanceSpecs

Returns a new instance of RegionInstancesRecommendLocationsResponseRecommendationsForInstanceSpecs.



31612
31613
31614
# File 'lib/google/apis/compute_alpha/classes.rb', line 31612

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

Instance Attribute Details

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

Instance count recommendations, keys are zone names. Corresponds to the JSON property locations



31610
31611
31612
# File 'lib/google/apis/compute_alpha/classes.rb', line 31610

def locations
  @locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31617
31618
31619
# File 'lib/google/apis/compute_alpha/classes.rb', line 31617

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