Class: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationShard
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationShard
- 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
Shards represent blocks of uniform capacity in recommendations. Each shard is for a single zone, single instance selection, and a single machine shape. Each shard defines a size expressed as the number of VMs.
Instance Attribute Summary collapse
-
#instance_count ⇒ Fixnum
Corresponds to the JSON property
instanceCount. -
#machine_type ⇒ String
The machine type corresponds to the instance selection in the request.
-
#provisioning_model ⇒ String
Provisioning model of the recommended capacity.
-
#zone ⇒ String
The zone name for this shard.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapacityAdviceResponseRecommendationShard
constructor
A new instance of CapacityAdviceResponseRecommendationShard.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CapacityAdviceResponseRecommendationShard
Returns a new instance of CapacityAdviceResponseRecommendationShard.
7453 7454 7455 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance_count ⇒ Fixnum
Corresponds to the JSON property instanceCount
7436 7437 7438 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7436 def instance_count @instance_count end |
#machine_type ⇒ String
The machine type corresponds to the instance selection in the request.
Corresponds to the JSON property machineType
7441 7442 7443 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7441 def machine_type @machine_type end |
#provisioning_model ⇒ String
Provisioning model of the recommended capacity.
Corresponds to the JSON property provisioningModel
7446 7447 7448 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7446 def provisioning_model @provisioning_model end |
#zone ⇒ String
The zone name for this shard.
Corresponds to the JSON property zone
7451 7452 7453 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7451 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7458 7459 7460 7461 7462 7463 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7458 def update!(**args) @instance_count = args[:instance_count] if args.key?(:instance_count) @machine_type = args[:machine_type] if args.key?(:machine_type) @provisioning_model = args[:provisioning_model] if args.key?(:provisioning_model) @zone = args[:zone] if args.key?(:zone) end |