com.pulumi.gcp.compute.kotlin.outputs.GetReservationResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getReservation.
* @property commitment
* @property creationTimestamp
* @property description
* @property id The provider-assigned unique ID for this managed resource.
* @property name
* @property project
* @property selfLink
* @property shareSettings
* @property specificReservationRequired
* @property specificReservations
* @property status
* @property zone
*/
public data class GetReservationResult(
public val commitment: String,
public val creationTimestamp: String,
public val description: String,
public val id: String,
public val name: String,
public val project: String? = null,
public val selfLink: String,
public val shareSettings: List,
public val specificReservationRequired: Boolean,
public val specificReservations: List,
public val status: String,
public val zone: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetReservationResult): GetReservationResult = GetReservationResult(
commitment = javaType.commitment(),
creationTimestamp = javaType.creationTimestamp(),
description = javaType.description(),
id = javaType.id(),
name = javaType.name(),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
selfLink = javaType.selfLink(),
shareSettings = javaType.shareSettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetReservationShareSetting.Companion.toKotlin(args0)
})
}),
specificReservationRequired = javaType.specificReservationRequired(),
specificReservations = javaType.specificReservations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetReservationSpecificReservation.Companion.toKotlin(args0)
})
}),
status = javaType.status(),
zone = javaType.zone(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy