com.pulumi.gcp.container.kotlin.outputs.GetEngineVersionsResult.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.container.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getEngineVersions.
* @property defaultClusterVersion Version of Kubernetes the service deploys by default.
* @property id The provider-assigned unique ID for this managed resource.
* @property latestMasterVersion The latest version available in the given zone for use with master instances.
* @property latestNodeVersion The latest version available in the given zone for use with node instances.
* @property location
* @property project
* @property releaseChannelDefaultVersion A map from a release channel name to the channel's default version.
* @property releaseChannelLatestVersion A map from a release channel name to the channel's latest version.
* @property validMasterVersions A list of versions available in the given zone for use with master instances.
* @property validNodeVersions A list of versions available in the given zone for use with node instances.
* @property versionPrefix
*/
public data class GetEngineVersionsResult(
public val defaultClusterVersion: String,
public val id: String,
public val latestMasterVersion: String,
public val latestNodeVersion: String,
public val location: String? = null,
public val project: String? = null,
public val releaseChannelDefaultVersion: Map,
public val releaseChannelLatestVersion: Map,
public val validMasterVersions: List,
public val validNodeVersions: List,
public val versionPrefix: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.GetEngineVersionsResult): GetEngineVersionsResult = GetEngineVersionsResult(
defaultClusterVersion = javaType.defaultClusterVersion(),
id = javaType.id(),
latestMasterVersion = javaType.latestMasterVersion(),
latestNodeVersion = javaType.latestNodeVersion(),
location = javaType.location().map({ args0 -> args0 }).orElse(null),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
releaseChannelDefaultVersion = javaType.releaseChannelDefaultVersion().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
releaseChannelLatestVersion = javaType.releaseChannelLatestVersion().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
validMasterVersions = javaType.validMasterVersions().map({ args0 -> args0 }),
validNodeVersions = javaType.validNodeVersions().map({ args0 -> args0 }),
versionPrefix = javaType.versionPrefix().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy