
com.pulumi.googlenative.compute.v1.kotlin.outputs.AdvancedMachineFeaturesResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.v1.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
/**
* Specifies options for controlling advanced machine features. Options that would traditionally be configured in a BIOS belong here. Features that require operating system support may have corresponding entries in the GuestOsFeatures of an Image (e.g., whether or not the OS in the Image supports nested virtualization being enabled or disabled).
* @property enableNestedVirtualization Whether to enable nested virtualization or not (default is false).
* @property enableUefiNetworking Whether to enable UEFI networking for instance creation.
* @property threadsPerCore The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
* @property visibleCoreCount The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
*/
public data class AdvancedMachineFeaturesResponse(
public val enableNestedVirtualization: Boolean,
public val enableUefiNetworking: Boolean,
public val threadsPerCore: Int,
public val visibleCoreCount: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.compute.v1.outputs.AdvancedMachineFeaturesResponse): AdvancedMachineFeaturesResponse = AdvancedMachineFeaturesResponse(
enableNestedVirtualization = javaType.enableNestedVirtualization(),
enableUefiNetworking = javaType.enableUefiNetworking(),
threadsPerCore = javaType.threadsPerCore(),
visibleCoreCount = javaType.visibleCoreCount(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy