com.pulumi.digitalocean.kotlin.outputs.AppSpecJobEnv.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 value of the environment variable.
*/
public data class AppSpecJobEnv(
public val key: String? = null,
public val scope: String? = null,
public val type: String? = null,
public val `value`: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.AppSpecJobEnv): AppSpecJobEnv =
AppSpecJobEnv(
key = javaType.key().map({ args0 -> args0 }).orElse(null),
scope = javaType.scope().map({ args0 -> args0 }).orElse(null),
type = javaType.type().map({ args0 -> args0 }).orElse(null),
`value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
)
}
}