com.pulumi.digitalocean.kotlin.outputs.GetAppSpecEnv.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property key The name of the environment variable.
* @property scope The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
* @property type The type of the environment variable, `GENERAL` or `SECRET`.
* @property value The threshold for the type of the warning.
*/
public data class GetAppSpecEnv(
public val key: String? = null,
public val scope: String? = null,
public val type: String,
public val `value`: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetAppSpecEnv): GetAppSpecEnv =
GetAppSpecEnv(
key = javaType.key().map({ args0 -> args0 }).orElse(null),
scope = javaType.scope().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
`value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
)
}
}