Class: Google::Apis::ComputeBeta::CapacityAdviceResponseRecommendation

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

Recommendation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityAdviceResponseRecommendation

Returns a new instance of CapacityAdviceResponseRecommendation.



8171
8172
8173
# File 'lib/google/apis/compute_beta/classes.rb', line 8171

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

Instance Attribute Details

#scoresGoogle::Apis::ComputeBeta::CapacityAdviceResponseRecommendationScores

Groups information about a shard of capacity. Corresponds to the JSON property scores



8164
8165
8166
# File 'lib/google/apis/compute_beta/classes.rb', line 8164

def scores
  @scores
end

#shardsArray<Google::Apis::ComputeBeta::CapacityAdviceResponseRecommendationShard>

Shards represent blocks of uniform capacity in recommendations. Corresponds to the JSON property shards



8169
8170
8171
# File 'lib/google/apis/compute_beta/classes.rb', line 8169

def shards
  @shards
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8176
8177
8178
8179
# File 'lib/google/apis/compute_beta/classes.rb', line 8176

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