GoogleCloudRunV2Container 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
-
GoogleCloudRunV2Container({Input<
List< ? args, Input<String> >List< ? command, Input<String> >List< ? dependsOn, Input<String> >List< ? env, required Input<GoogleCloudRunV2EnvVar> >String> image, Input<GoogleCloudRunV2Probe> ? livenessProbe, Input<String> ? name, Input<List< ? ports, Input<GoogleCloudRunV2ContainerPort> >GoogleCloudRunV2ResourceRequirements> ? resources, Input<GoogleCloudRunV2Probe> ? startupProbe, Input<List< ? volumeMounts, Input<GoogleCloudRunV2VolumeMount> >String> ? workingDir}) -
Creates a new GoogleCloudRunV2Container.
argsArguments to the entrypoint. The docker image's CMD is used if this is not provided.commandEntrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.dependsOnNames of the containers that must start before this container.envList of environment variables to set in the container.imageName of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed.livenessProbePeriodic probe of container liveness. Container will be restarted if the probe fails.nameName of the container specified as a DNS_LABEL (RFC 1123).portsList 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.resourcesCompute Resource requirements by this container.startupProbeStartup 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.volumeMountsVolume to mount into the container's filesystem.workingDirContainer's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.const -
GoogleCloudRunV2Container.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< ?GoogleCloudRunV2EnvVar> > -
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<
GoogleCloudRunV2Probe> ? -
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< ?GoogleCloudRunV2ContainerPort> > -
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<
GoogleCloudRunV2ResourceRequirements> ? -
Compute Resource requirements by this container.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
startupProbe
→ Input<
GoogleCloudRunV2Probe> ? -
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< ?GoogleCloudRunV2VolumeMount> > -
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