Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::CapacityAdviceResponseRecommendationShard (v4.0.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::CapacityAdviceResponseRecommendationShard.

Shards represent blocks of uniform capacity in recommendations. Each shard is for a single zone and a single machine shape. Each shard defines a size expressed as the number of VMs.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#instance_count

def instance_count() -> ::Integer
Returns
  • (::Integer) — The number of instances.

#instance_count=

def instance_count=(value) -> ::Integer
Parameter
  • value (::Integer) — The number of instances.
Returns
  • (::Integer) — The number of instances.

#machine_type

def machine_type() -> ::String
Returns
  • (::String) — The machine type corresponds to the instance selection in the request.

#machine_type=

def machine_type=(value) -> ::String
Parameter
  • value (::String) — The machine type corresponds to the instance selection in the request.
Returns
  • (::String) — The machine type corresponds to the instance selection in the request.

#provisioning_model

def provisioning_model() -> ::String
Returns
  • (::String) — The provisioning model that you want to view recommendations for. Check the ProvisioningModel enum for the list of possible values.

#provisioning_model=

def provisioning_model=(value) -> ::String
Parameter
  • value (::String) — The provisioning model that you want to view recommendations for. Check the ProvisioningModel enum for the list of possible values.
Returns
  • (::String) — The provisioning model that you want to view recommendations for. Check the ProvisioningModel enum for the list of possible values.

#zone

def zone() -> ::String
Returns
  • (::String) — Output only. The zone name for this shard.

#zone=

def zone=(value) -> ::String
Parameter
  • value (::String) — Output only. The zone name for this shard.
Returns
  • (::String) — Output only. The zone name for this shard.