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

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
NameDescription
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
TypeDescription
float

setCpuOvercommitRatio

CPU overcommit ratio.

Acceptable values are between 1.0 and 2.0 inclusive.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getHostMaintenancePolicy

Sole Tenancy nodes maintenance policy.

Returns
TypeDescription
int

setHostMaintenancePolicy

Sole Tenancy nodes maintenance policy.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this

getNodeTypes

A list of sole tenant node types.

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

Returns
TypeDescription
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
NameDescription
var array<Google\Cloud\MigrationCenter\V1\SoleTenantNodeType>
Returns
TypeDescription
$this