com.pulumi.gcp.container.kotlin.outputs.GetClusterNodePoolNodeConfigGuestAccelerator.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.container.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property count The number of the accelerator cards exposed to an instance.
* @property gpuDriverInstallationConfigs Configuration for auto installation of GPU driver.
* @property gpuPartitionSize Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning)
* @property gpuSharingConfigs Configuration for GPU sharing.
* @property type The accelerator type resource name.
*/
public data class GetClusterNodePoolNodeConfigGuestAccelerator(
public val count: Int,
public val gpuDriverInstallationConfigs: List,
public val gpuPartitionSize: String,
public val gpuSharingConfigs: List,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.GetClusterNodePoolNodeConfigGuestAccelerator): GetClusterNodePoolNodeConfigGuestAccelerator = GetClusterNodePoolNodeConfigGuestAccelerator(
count = javaType.count(),
gpuDriverInstallationConfigs = javaType.gpuDriverInstallationConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.container.kotlin.outputs.GetClusterNodePoolNodeConfigGuestAcceleratorGpuDriverInstallationConfig.Companion.toKotlin(args0)
})
}),
gpuPartitionSize = javaType.gpuPartitionSize(),
gpuSharingConfigs = javaType.gpuSharingConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.container.kotlin.outputs.GetClusterNodePoolNodeConfigGuestAcceleratorGpuSharingConfig.Companion.toKotlin(args0)
})
}),
type = javaType.type(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy