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 multiple scoring recommendations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityAdviceResponse

Returns a new instance of CapacityAdviceResponse.



7354
7355
7356
# File 'lib/google/apis/compute_alpha/classes.rb', line 7354

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 service provider's preference. Corresponds to the JSON property recommendations



7352
7353
7354
# File 'lib/google/apis/compute_alpha/classes.rb', line 7352

def recommendations
  @recommendations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7359
7360
7361
# File 'lib/google/apis/compute_alpha/classes.rb', line 7359

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