com.pulumi.digitalocean.kotlin.outputs.GetKubernetesVersionsResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getKubernetesVersions.
* @property id The provider-assigned unique ID for this managed resource.
* @property latestVersion The most recent version available.
* @property validVersions A list of available versions.
* @property versionPrefix
*/
public data class GetKubernetesVersionsResult(
public val id: String,
public val latestVersion: String,
public val validVersions: List,
public val versionPrefix: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetKubernetesVersionsResult): GetKubernetesVersionsResult = GetKubernetesVersionsResult(
id = javaType.id(),
latestVersion = javaType.latestVersion(),
validVersions = javaType.validVersions().map({ args0 -> args0 }),
versionPrefix = javaType.versionPrefix().map({ args0 -> args0 }).orElse(null),
)
}
}