GoogleCloudRunV2ContainerResponse class

A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments can be supplied by the system to the container at runtime.

Constructors

GoogleCloudRunV2ContainerResponse({required Input<List<String>> args, required Input<List<String>> command, required Input<List<String>> dependsOn, required Input<List<GoogleCloudRunV2EnvVarResponse>> env, required Input<String> image, required Input<GoogleCloudRunV2ProbeResponse> livenessProbe, required Input<String> name, required Input<List<GoogleCloudRunV2ContainerPortResponse>> ports, required Input<GoogleCloudRunV2ResourceRequirementsResponse> resources, required Input<GoogleCloudRunV2ProbeResponse> startupProbe, required Input<List<GoogleCloudRunV2VolumeMountResponse>> volumeMounts, required Input<String> workingDir})
Creates a new GoogleCloudRunV2ContainerResponse. args Arguments to the entrypoint. The docker image's CMD is used if this is not provided. command Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. dependsOn Names of the containers that must start before this container. env List of environment variables to set in the container. image Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. livenessProbe Periodic probe of container liveness. Container will be restarted if the probe fails. name Name of the container specified as a DNS_LABEL (RFC 1123). 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. resources Compute Resource requirements by this container. 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. volumeMounts Volume to mount into the container's filesystem. workingDir Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
const
GoogleCloudRunV2ContainerResponse.fromMap(Map<String, dynamic> map)
factory

Properties

args → Input<List<String>>
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
final
command → Input<List<String>>
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
final
dependsOn → Input<List<String>>
Names of the containers that must start before this container.
final
env → Input<List<GoogleCloudRunV2EnvVarResponse>>
List of environment variables to set in the container.
final
hashCode → int
The hash code for this object.
no setterinherited
image → Input<String>
Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed.
final
livenessProbe → Input<GoogleCloudRunV2ProbeResponse>
Periodic probe of container liveness. Container will be restarted if the probe fails.
final
name → Input<String>
Name of the container specified as a DNS_LABEL (RFC 1123).
final
ports → Input<List<GoogleCloudRunV2ContainerPortResponse>>
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.
final
resources → Input<GoogleCloudRunV2ResourceRequirementsResponse>
Compute Resource requirements by this container.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startupProbe → Input<GoogleCloudRunV2ProbeResponse>
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.
final
volumeMounts → Input<List<GoogleCloudRunV2VolumeMountResponse>>
Volume to mount into the container's filesystem.
final
workingDir → Input<String>
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited