CloudRunV2JobTaskTemplate class
Inner template.template block — the per-Task template. Holds at
least one CloudRunV2JobContainer plus optional VPC access, volumes, retries,
timeout.
- Annotations
-
- @immutable
Constructors
-
CloudRunV2JobTaskTemplate({required List<
CloudRunV2JobContainer> containers, TfArg<String> ? serviceAccount, TfArg<String> ? timeout, TfArg<int> ? maxRetries, TfArg<CloudRunV2JobExecutionEnvironment> ? executionEnvironment, TfArg<String> ? encryptionKey, TfArg<bool> ? gpuZonalRedundancyDisabled, CloudRunV2JobVpcAccess? vpcAccess, List<CloudRunV2JobVolume> ? volumes, CloudRunV2JobNodeSelector? nodeSelector}) -
const
Properties
-
containers
→ List<
CloudRunV2JobContainer> -
One or more containers (≥1).
final
-
encryptionKey
→ TfArg<
String> ? -
CMEK key name to encrypt the Task's container image.
final
-
executionEnvironment
→ TfArg<
CloudRunV2JobExecutionEnvironment> ? -
gen1(legacy gVisor) orgen2(default; larger CPU tiers + GCSFuse).final -
gpuZonalRedundancyDisabled
→ TfArg<
bool> ? -
Disables GPU zonal redundancy for this Task.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
maxRetries
→ TfArg<
int> ? -
Maximum retry attempts per Task. Defaults to 3.
final
- nodeSelector → CloudRunV2JobNodeSelector?
-
GPU accelerator pin.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serviceAccount
→ TfArg<
String> ? -
Service account email the Task runs as. Defaults to the project
default compute SA.
final
-
timeout
→ TfArg<
String> ? -
Per-Task timeout duration ("3.5s" form). Defaults to a 10-minute
ceiling (API default).
final
-
volumes
→ List<
CloudRunV2JobVolume> ? -
Volumes available to all containers in the Task.
final
- vpcAccess → CloudRunV2JobVpcAccess?
-
VPC connector or direct VPC egress configuration.
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