Class: Google::Apis::ComputeAlpha::CapacityAdviceResponse

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

A response contains scoring recommendations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityAdviceResponse

Returns a new instance of CapacityAdviceResponse.



8773
8774
8775
# File 'lib/google/apis/compute_alpha/classes.rb', line 8773

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

Instance Attribute Details

#recommendationsArray<Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendation>

Initially the API will provide one recommendation which balances the individual scores according to the service provider's preference. Corresponds to the JSON property recommendations



8771
8772
8773
# File 'lib/google/apis/compute_alpha/classes.rb', line 8771

def recommendations
  @recommendations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8778
8779
8780
# File 'lib/google/apis/compute_alpha/classes.rb', line 8778

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