# Class SoleTenancyPreferences (0.4.1)

0.4.1 (latest) 0.4.0 0.3.0 0.2.0 0.1.15

    SoleTenancyPreferences(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Preferences concerning Sole Tenancy nodes and VMs.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `cpu_overcommit_ratio` | `float` CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive. |
| `host_maintenance_policy` | `https://docs.cloud.google.com/python/docs/reference/migrationcenter/latest/google.cloud.migrationcenter_v1.types.SoleTenancyPreferences.HostMaintenancePolicy` Sole Tenancy nodes maintenance policy. |
| `commitment_plan` | `https://docs.cloud.google.com/python/docs/reference/migrationcenter/latest/google.cloud.migrationcenter_v1.types.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. |
| `node_types` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/migrationcenter/latest/google.cloud.migrationcenter_v1.types.SoleTenantNodeType]` A list of sole tenant node types. An empty list means that all possible node types will be considered. |

## Classes

### CommitmentPlan

    CommitmentPlan(value)

Type of committed use discount.

### HostMaintenancePolicy

    HostMaintenancePolicy(value)

Sole Tenancy nodes maintenance policy.