Class: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityAdviceResponseRecommendation

Returns a new instance of CapacityAdviceResponseRecommendation.



7378
7379
7380
# File 'lib/google/apis/compute_alpha/classes.rb', line 7378

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

Instance Attribute Details

#scoresGoogle::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationScores

The Scores message groups information about a shard of capacity. Corresponds to the JSON property scores



7371
7372
7373
# File 'lib/google/apis/compute_alpha/classes.rb', line 7371

def scores
  @scores
end

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

Corresponds to the JSON property shards



7376
7377
7378
# File 'lib/google/apis/compute_alpha/classes.rb', line 7376

def shards
  @shards
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7383
7384
7385
7386
# File 'lib/google/apis/compute_alpha/classes.rb', line 7383

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