# Migration Center V1 API - Class Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences (v2.5.0)

2.5.0 (latest) 2.4.0 2.3.1 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Migration Center V1 API class Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences.

Preferences concerning Sole Tenancy nodes and VMs.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #commitment_plan

    def commitment_plan() -> ::Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences::CommitmentPlan

**Returns**

- ([::Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences::CommitmentPlan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-SoleTenancyPreferences-CommitmentPlan)) --- 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.

### #commitment_plan=

    def commitment_plan=(value) -> ::Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences::CommitmentPlan

**Parameter**

- **value** ([::Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences::CommitmentPlan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-SoleTenancyPreferences-CommitmentPlan)) --- 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**

- ([::Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences::CommitmentPlan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-SoleTenancyPreferences-CommitmentPlan)) --- 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.

### #cpu_overcommit_ratio

    def cpu_overcommit_ratio() -> ::Float

**Returns**

- (::Float) --- CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.

### #cpu_overcommit_ratio=

    def cpu_overcommit_ratio=(value) -> ::Float

**Parameter**

- **value** (::Float) --- CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
**Returns**

- (::Float) --- CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.

### #host_maintenance_policy

    def host_maintenance_policy() -> ::Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences::HostMaintenancePolicy

**Returns**

- ([::Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences::HostMaintenancePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-SoleTenancyPreferences-HostMaintenancePolicy)) --- Sole Tenancy nodes maintenance policy.

### #host_maintenance_policy=

    def host_maintenance_policy=(value) -> ::Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences::HostMaintenancePolicy

**Parameter**

- **value** ([::Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences::HostMaintenancePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-SoleTenancyPreferences-HostMaintenancePolicy)) --- Sole Tenancy nodes maintenance policy.
**Returns**

- ([::Google::Cloud::MigrationCenter::V1::SoleTenancyPreferences::HostMaintenancePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-SoleTenancyPreferences-HostMaintenancePolicy)) --- Sole Tenancy nodes maintenance policy.

### #node_types

    def node_types() -> ::Array<::Google::Cloud::MigrationCenter::V1::SoleTenantNodeType>

**Returns**

- (::Array\<[::Google::Cloud::MigrationCenter::V1::SoleTenantNodeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-SoleTenantNodeType)\>) --- A list of sole tenant node types. An empty list means that all possible node types will be considered.

### #node_types=

    def node_types=(value) -> ::Array<::Google::Cloud::MigrationCenter::V1::SoleTenantNodeType>

**Parameter**

- **value** (::Array\<[::Google::Cloud::MigrationCenter::V1::SoleTenantNodeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-SoleTenantNodeType)\>) --- A list of sole tenant node types. An empty list means that all possible node types will be considered.
**Returns**

- (::Array\<[::Google::Cloud::MigrationCenter::V1::SoleTenantNodeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-SoleTenantNodeType)\>) --- A list of sole tenant node types. An empty list means that all possible node types will be considered.