RunReq class

Constructors

RunReq({List<EnvVarJSON> env = const [], int? gpu, String? image, int? maxScale, int? minScale, String? name, int? port, String? runtime, String? shape})
Returns a new RunReq instance.

Properties

env ↔ List<EnvVarJSON>
Env is the run's environment. Keys must match ^[A-Za-z_][A-Za-z0-9_]*$; a variable marked secret: true is sealed into KMS.
getter/setter pair
gpu ↔ int?
GPU is how many GPUs the run asks for; a negative value is 400.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
image ↔ String?
Image is the container image to run. Required.
getter/setter pair
maxScale ↔ int?
MaxScale above the floor declares an autoscaling ceiling; 0 means no autoscaler at all — a fixed run at the floor.
getter/setter pair
minScale ↔ int?
MinScale is the replica floor, clamped to the deployment's limit.
getter/setter pair
name ↔ String?
Name is the run's name, and the slug is derived from it. Required, and it must resolve to ^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?$. Re-running the same name updates that run in place.
getter/setter pair
port ↔ int?
Port is the container port the run listens on.
getter/setter pair
runtime ↔ String?
Runtime is accepted for the client contract and echoed nowhere: the image IS the runtime unit.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape ↔ String?
Shape is a compute size label, echoed back; sizing is the operator's default. Defaults to "auto".
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → RunReq?
Returns a new RunReq instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RunReq>
mapFromJson(dynamic json) → Map<String, RunReq>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RunReq>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.