Compute V1 Client - Class CapacityAdviceResponseRecommendationShard (2.14.1)

Reference documentation and code samples for the Compute V1 Client class 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.

Generated from protobuf message google.cloud.compute.v1.CapacityAdviceResponseRecommendationShard

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ instance_count int

The number of instances.

↳ machine_type string

The machine type corresponds to the instance selection in the request.

↳ provisioning_model string

The provisioning model that you want to view recommendations for. Check the ProvisioningModel enum for the list of possible values.

↳ zone string

Output only. The zone name for this shard.

getInstanceCount

The number of instances.

Returns
Type Description
int

hasInstanceCount

clearInstanceCount

setInstanceCount

The number of instances.

Parameter
Name Description
var int
Returns
Type Description
$this

getMachineType

The machine type corresponds to the instance selection in the request.

Returns
Type Description
string

hasMachineType

clearMachineType

setMachineType

The machine type corresponds to the instance selection in the request.

Parameter
Name Description
var string
Returns
Type Description
$this

getProvisioningModel

The provisioning model that you want to view recommendations for.

Check the ProvisioningModel enum for the list of possible values.

Returns
Type Description
string

hasProvisioningModel

clearProvisioningModel

setProvisioningModel

The provisioning model that you want to view recommendations for.

Check the ProvisioningModel enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getZone

Output only. The zone name for this shard.

Returns
Type Description
string

hasZone

clearZone

setZone

Output only. The zone name for this shard.

Parameter
Name Description
var string
Returns
Type Description
$this