Class: Google::Apis::ComputeBeta::CapacityAdviceResponse

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



8147
8148
8149
# File 'lib/google/apis/compute_beta/classes.rb', line 8147

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

Instance Attribute Details

#recommendationsArray<Google::Apis::ComputeBeta::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



8145
8146
8147
# File 'lib/google/apis/compute_beta/classes.rb', line 8145

def recommendations
  @recommendations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8152
8153
8154
# File 'lib/google/apis/compute_beta/classes.rb', line 8152

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