com.pulumi.gcp.migrationcenter.kotlin.outputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferences.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.migrationcenter.kotlin.outputs
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property 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.
* Possible values:
* COMMITMENT_PLAN_UNSPECIFIED
* ON_DEMAND
* COMMITMENT_1_YEAR
* COMMITMENT_3_YEAR
* @property cpuOvercommitRatio CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
* @property hostMaintenancePolicy Sole Tenancy nodes maintenance policy.
* Possible values:
* HOST_MAINTENANCE_POLICY_UNSPECIFIED
* HOST_MAINTENANCE_POLICY_DEFAULT
* HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE
* HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP
* @property nodeTypes A list of sole tenant node types. An empty list means that all possible node types will be considered.
* Structure is documented below.
*/
public data class PreferenceSetVirtualMachinePreferencesSoleTenancyPreferences(
public val commitmentPlan: String? = null,
public val cpuOvercommitRatio: Double? = null,
public val hostMaintenancePolicy: String? = null,
public val nodeTypes: List? =
null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.migrationcenter.outputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferences): PreferenceSetVirtualMachinePreferencesSoleTenancyPreferences =
PreferenceSetVirtualMachinePreferencesSoleTenancyPreferences(
commitmentPlan = javaType.commitmentPlan().map({ args0 -> args0 }).orElse(null),
cpuOvercommitRatio = javaType.cpuOvercommitRatio().map({ args0 -> args0 }).orElse(null),
hostMaintenancePolicy = javaType.hostMaintenancePolicy().map({ args0 -> args0 }).orElse(null),
nodeTypes = javaType.nodeTypes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.migrationcenter.kotlin.outputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeType.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy