All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerEnv.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudrunv2.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property name Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
 * @property value Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
 * @property valueSource Source for the environment variable's value.
 * Structure is documented below.
 */
public data class ServiceTemplateContainerEnv(
    public val name: String,
    public val `value`: String? = null,
    public val valueSource: ServiceTemplateContainerEnvValueSource? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.ServiceTemplateContainerEnv): ServiceTemplateContainerEnv = ServiceTemplateContainerEnv(
            name = javaType.name(),
            `value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
            valueSource = javaType.valueSource().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerEnvValueSource.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy