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

com.pulumi.googlenative.container.v1.kotlin.outputs.ReservationAffinityResponse.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.container.v1.kotlin.outputs

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

/**
 * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from.
 * @property consumeReservationType Corresponds to the type of reservation consumption.
 * @property key Corresponds to 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 Corresponds to the label value(s) of reservation resource(s).
 */
public data class ReservationAffinityResponse(
    public val consumeReservationType: String,
    public val key: String,
    public val values: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.container.v1.outputs.ReservationAffinityResponse): ReservationAffinityResponse = ReservationAffinityResponse(
            consumeReservationType = javaType.consumeReservationType(),
            key = javaType.key(),
            values = javaType.values().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy