Class: Google::Apis::ComputeAlpha::CapacityAdviceResponse
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CapacityAdviceResponse
- 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 multiple scoring recommendations.
Instance Attribute Summary collapse
-
#recommendations ⇒ Array<Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendation>
Initially the API will provide one recommendation which balances the individual scores according to service provider's preference.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapacityAdviceResponse
constructor
A new instance of CapacityAdviceResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CapacityAdviceResponse
Returns a new instance of CapacityAdviceResponse.
8469 8470 8471 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8469 def initialize(**args) update!(**args) end |
Instance Attribute Details
#recommendations ⇒ Array<Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendation>
Initially the API will provide one recommendation which balances the
individual scores according to service provider's preference.
Corresponds to the JSON property recommendations
8467 8468 8469 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8467 def recommendations @recommendations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8474 8475 8476 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8474 def update!(**args) @recommendations = args[:recommendations] if args.key?(:recommendations) end |