com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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 are not supported in Cloud Run.
* @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.
* Structure is documented below.
* @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 livenessProbe 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
* Structure is documented below.
* @property name Name of the container specified as a DNS_LABEL.
* @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
* Structure is documented below.
* @property resources Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* Structure is documented below.
* @property startupProbe 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
* Structure is documented below.
* @property volumeMounts Volume to mount into the container's filesystem.
* Structure is documented below.
* @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 ServiceTemplateContainer(
public val args: List? = null,
public val commands: List? = null,
public val dependsOns: List? = null,
public val envs: List? = null,
public val image: String,
public val livenessProbe: ServiceTemplateContainerLivenessProbe? = null,
public val name: String? = null,
public val ports: ServiceTemplateContainerPorts? = null,
public val resources: ServiceTemplateContainerResources? = null,
public val startupProbe: ServiceTemplateContainerStartupProbe? = null,
public val volumeMounts: List? = null,
public val workingDir: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.ServiceTemplateContainer): ServiceTemplateContainer = ServiceTemplateContainer(
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.ServiceTemplateContainerEnv.Companion.toKotlin(args0)
})
}),
image = javaType.image(),
livenessProbe = javaType.livenessProbe().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerLivenessProbe.Companion.toKotlin(args0)
})
}).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
ports = javaType.ports().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerPorts.Companion.toKotlin(args0)
})
}).orElse(null),
resources = javaType.resources().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerResources.Companion.toKotlin(args0)
})
}).orElse(null),
startupProbe = javaType.startupProbe().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerStartupProbe.Companion.toKotlin(args0)
})
}).orElse(null),
volumeMounts = javaType.volumeMounts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerVolumeMount.Companion.toKotlin(args0)
})
}),
workingDir = javaType.workingDir().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy