JobContainer class
One entry in template.template.containers. At minimum supply
image.
- Annotations
-
- @immutable
Constructors
-
JobContainer({required TfArg<
String> image, TfArg<String> ? name, TfArg<List< ? command, TfArg<String> >List< ? args, List<String> >JobEnvVar> ? env, JobContainerResources? resources, JobContainerPort? ports, List<JobVolumeMount> ? volumeMounts, TfArg<String> ? workingDir, TfArg<List< ? dependsOn, JobStartupProbe? startupProbe})String> > -
const
Properties
-
args
→ TfArg<
List< ?String> > -
Argument override.
final
-
command
→ TfArg<
List< ?String> > -
Entrypoint override.
final
-
dependsOn
→ TfArg<
List< ?String> > -
Names of containers that must reach Ready before this one starts.
final
-
env
→ List<
JobEnvVar> ? -
Environment variables.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
image
→ TfArg<
String> -
Container image URL.
final
-
name
→ TfArg<
String> ? -
DNS_LABEL container name. Required when running sidecars.
final
- ports → JobContainerPort?
-
Container port (Cloud Run v2 supports exactly one per container).
final
- resources → JobContainerResources?
-
CPU / memory limits.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startupProbe → JobStartupProbe?
-
Periodic probe that gates traffic until the container reports
ready. Jobs surface
startup_probebut notliveness_probe— once a Task is running the controller only waits for completion.final -
volumeMounts
→ List<
JobVolumeMount> ? -
Volume mounts — reference JobVolume.name.
final
-
workingDir
→ TfArg<
String> ? -
Container working directory.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toArgMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited