Class: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendation
- 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
Recommendation.
Instance Attribute Summary collapse
-
#scores ⇒ Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationScores
Groups information about a shard of capacity.
-
#shards ⇒ Array<Google::Apis::ComputeAlpha::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.
8531 8532 8533 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8531 def initialize(**args) update!(**args) end |
Instance Attribute Details
#scores ⇒ Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationScores
Groups information about a shard of capacity.
Corresponds to the JSON property scores
8524 8525 8526 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8524 def scores @scores end |
#shards ⇒ Array<Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationShard>
Shards represent blocks of uniform capacity in recommendations.
Corresponds to the JSON property shards
8529 8530 8531 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8529 def shards @shards end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8536 8537 8538 8539 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8536 def update!(**args) @scores = args[:scores] if args.key?(:scores) @shards = args[:shards] if args.key?(:shards) end |