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

com.pulumi.gcp.container.kotlin.outputs.ClusterNodeConfigReservationAffinity.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.container.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property consumeReservationType The type of reservation consumption
 * Accepted values are:
 * * `"UNSPECIFIED"`: Default value. This should not be used.
 * * `"NO_RESERVATION"`: Do not consume from any reserved capacity.
 * * `"ANY_RESERVATION"`: Consume any reservation available.
 * * `"SPECIFIC_RESERVATION"`: Must consume from a specific reservation. Must specify key value fields for specifying the reservations.
 * @property key The label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.
 * @property values The list of label values of reservation resources. For example: the name of the specific reservation when using a key of "compute.googleapis.com/reservation-name"
 */
public data class ClusterNodeConfigReservationAffinity(
    public val consumeReservationType: String,
    public val key: String? = null,
    public val values: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNodeConfigReservationAffinity): ClusterNodeConfigReservationAffinity = ClusterNodeConfigReservationAffinity(
            consumeReservationType = javaType.consumeReservationType(),
            key = javaType.key().map({ args0 -> args0 }).orElse(null),
            values = javaType.values().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy