
com.pulumi.googlenative.compute.v1.kotlin.outputs.ReservationAffinityResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.v1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Specifies the reservations that this instance can consume from.
* @property consumeReservationType Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.
* @property key Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
* @property values Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
*/
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.compute.v1.outputs.ReservationAffinityResponse): ReservationAffinityResponse = ReservationAffinityResponse(
consumeReservationType = javaType.consumeReservationType(),
key = javaType.key(),
values = javaType.values().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy