All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.vertex.kotlin.outputs.AiDeploymentResourcePoolDedicatedResourcesMachineSpec.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.vertex.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property acceleratorCount The number of accelerators to attach to the machine.
 * @property acceleratorType The type of accelerator(s) that may be attached to the machine as per accelerator_count. See possible values [here](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/MachineSpec#AcceleratorType).
 * @property machineType The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types).
 */
public data class AiDeploymentResourcePoolDedicatedResourcesMachineSpec(
    public val acceleratorCount: Int? = null,
    public val acceleratorType: String? = null,
    public val machineType: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.vertex.outputs.AiDeploymentResourcePoolDedicatedResourcesMachineSpec): AiDeploymentResourcePoolDedicatedResourcesMachineSpec =
            AiDeploymentResourcePoolDedicatedResourcesMachineSpec(
                acceleratorCount = javaType.acceleratorCount().map({ args0 -> args0 }).orElse(null),
                acceleratorType = javaType.acceleratorType().map({ args0 -> args0 }).orElse(null),
                machineType = javaType.machineType().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy