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

com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainer.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudrun.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property args Arguments to the entrypoint.
 * The docker image's CMD is used if this is not provided.
 * @property commands Entrypoint array. Not executed within a shell.
 * The docker image's ENTRYPOINT is used if this is not provided.
 * @property envFroms List of sources to populate environment variables in the container.
 * All invalid keys will be reported as an event when the container is starting.
 * When a key exists in multiple sources, the value associated with the last source will
 * take precedence. Values defined by an Env with a duplicate key will take
 * precedence.
 * @property envs List of environment variables to set in the container.
 * @property image Docker image name. This is most often a reference to a container located
 * in the container registry, such as gcr.io/cloudrun/hello
 * @property livenessProbes Periodic probe of container liveness. Container will be restarted if the probe fails.
 * @property name The name of the Cloud Run Service.
 * @property ports List of open ports in the container.
 * @property resources Compute Resources required by this container. Used to set values such as max memory
 * @property startupProbes Startup probe of application within the container.
 * All other probes are disabled if a startup probe is provided, until it
 * succeeds. Container will not be added to service endpoints if the probe fails.
 * @property volumeMounts Volume to mount into the container's filesystem.
 * Only supports SecretVolumeSources.
 * @property workingDir Container's working directory.
 * If not specified, the container runtime's default will be used, which
 * might be configured in the container image.
 */
public data class GetServiceTemplateSpecContainer(
    public val args: List,
    public val commands: List,
    public val envFroms: List,
    public val envs: List,
    public val image: String,
    public val livenessProbes: List,
    public val name: String,
    public val ports: List,
    public val resources: List,
    public val startupProbes: List,
    public val volumeMounts: List,
    public val workingDir: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.GetServiceTemplateSpecContainer): GetServiceTemplateSpecContainer = GetServiceTemplateSpecContainer(
            args = javaType.args().map({ args0 -> args0 }),
            commands = javaType.commands().map({ args0 -> args0 }),
            envFroms = javaType.envFroms().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerEnvFrom.Companion.toKotlin(args0)
                })
            }),
            envs = javaType.envs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerEnv.Companion.toKotlin(args0)
                })
            }),
            image = javaType.image(),
            livenessProbes = javaType.livenessProbes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerLivenessProbe.Companion.toKotlin(args0)
                })
            }),
            name = javaType.name(),
            ports = javaType.ports().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerPort.Companion.toKotlin(args0)
                })
            }),
            resources = javaType.resources().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerResource.Companion.toKotlin(args0)
                })
            }),
            startupProbes = javaType.startupProbes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerStartupProbe.Companion.toKotlin(args0)
                })
            }),
            volumeMounts = javaType.volumeMounts().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerVolumeMount.Companion.toKotlin(args0)
                })
            }),
            workingDir = javaType.workingDir(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy