Class: Google::Apis::ComputeBeta::CapacityAdviceResponseRecommendation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::CapacityAdviceResponseRecommendation
- 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
-
#scores ⇒ Google::Apis::ComputeBeta::CapacityAdviceResponseRecommendationScores
Groups information about a shard of capacity.
-
#shards ⇒ Array<Google::Apis::ComputeBeta::CapacityAdviceResponseRecommendationShard>
Shards represent blocks of uniform capacity in recommendations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapacityAdviceResponseRecommendation
constructor
A new instance of CapacityAdviceResponseRecommendation.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#scores ⇒ Google::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 |
#shards ⇒ Array<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 |