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

com.pulumi.gcp.compute.kotlin.outputs.RegionCommitmentResource.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property acceleratorType Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
 * @property amount The amount of the resource purchased (in a type-dependent unit,
 * such as bytes). For vCPUs, this can just be an integer. For memory,
 * this must be provided in MB. Memory must be a multiple of 256 MB,
 * with up to 6.5GB of memory per every vCPU.
 * @property type Type of resource for which this commitment applies.
 * Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
 */
public data class RegionCommitmentResource(
    public val acceleratorType: String? = null,
    public val amount: String? = null,
    public val type: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RegionCommitmentResource): RegionCommitmentResource = RegionCommitmentResource(
            acceleratorType = javaType.acceleratorType().map({ args0 -> args0 }).orElse(null),
            amount = javaType.amount().map({ args0 -> args0 }).orElse(null),
            type = javaType.type().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy