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

com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainer.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.cloudrunv2.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. Variable references $(VAR_NAME) are expanded using the container's environment. 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. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
 * @property commands Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. 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. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
 * @property dependsOns Containers which should be started before this container. If specified the container will wait to start until all containers with the listed names are healthy.
 * @property envs List of environment variables to set in the container.
 * @property image URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
 * @property livenessProbes Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
 * @property name The name of the Cloud Run v2 Service.
 * @property ports List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible.
 * If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on
 * @property resources Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
 * @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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
 * @property volumeMounts Volume to mount into the container's filesystem.
 * @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 GetServiceTemplateContainer(
    public val args: List,
    public val commands: List,
    public val dependsOns: 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.cloudrunv2.outputs.GetServiceTemplateContainer): GetServiceTemplateContainer = GetServiceTemplateContainer(
            args = javaType.args().map({ args0 -> args0 }),
            commands = javaType.commands().map({ args0 -> args0 }),
            dependsOns = javaType.dependsOns().map({ args0 -> args0 }),
            envs = javaType.envs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainerEnv.Companion.toKotlin(args0)
                })
            }),
            image = javaType.image(),
            livenessProbes = javaType.livenessProbes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainerLivenessProbe.Companion.toKotlin(args0)
                })
            }),
            name = javaType.name(),
            ports = javaType.ports().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainerPort.Companion.toKotlin(args0)
                })
            }),
            resources = javaType.resources().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainerResource.Companion.toKotlin(args0)
                })
            }),
            startupProbes = javaType.startupProbes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainerStartupProbe.Companion.toKotlin(args0)
                })
            }),
            volumeMounts = javaType.volumeMounts().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateContainerVolumeMount.Companion.toKotlin(args0)
                })
            }),
            workingDir = javaType.workingDir(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy