Google Cloud Migration Center V1 Client - Class SoleTenancyPreferences (1.0.0)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class SoleTenancyPreferences.

Preferences concerning Sole Tenancy nodes and VMs.

Generated from protobuf message google.cloud.migrationcenter.v1.SoleTenancyPreferences

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ cpu_overcommit_ratio float

CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.

↳ host_maintenance_policy int

Sole Tenancy nodes maintenance policy.

↳ commitment_plan int

Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.

↳ node_types array<Google\Cloud\MigrationCenter\V1\SoleTenantNodeType>

A list of sole tenant node types. An empty list means that all possible node types will be considered.

getCpuOvercommitRatio

CPU overcommit ratio.

Acceptable values are between 1.0 and 2.0 inclusive.

Returns
Type Description
float

setCpuOvercommitRatio

CPU overcommit ratio.

Acceptable values are between 1.0 and 2.0 inclusive.

Parameter
Name Description
var float
Returns
Type Description
$this

getHostMaintenancePolicy

Sole Tenancy nodes maintenance policy.

Returns
Type Description
int

setHostMaintenancePolicy

Sole Tenancy nodes maintenance policy.

Parameter
Name Description
var int
Returns
Type Description
$this

getCommitmentPlan

Commitment plan to consider when calculating costs for virtual machine insights and recommendations.

If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.

Returns
Type Description
int

setCommitmentPlan

Commitment plan to consider when calculating costs for virtual machine insights and recommendations.

If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.

Parameter
Name Description
var int
Returns
Type Description
$this

getNodeTypes

A list of sole tenant node types.

An empty list means that all possible node types will be considered.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNodeTypes

A list of sole tenant node types.

An empty list means that all possible node types will be considered.

Parameter
Name Description
var array<Google\Cloud\MigrationCenter\V1\SoleTenantNodeType>
Returns
Type Description
$this