LeaseIn class

Constructors

LeaseIn({String? class_, String? image, String? project, String? runtime, int? ttlSec})
Returns a new LeaseIn instance.

Properties

class_ ↔ String?
Class is what the sandbox is FOR: "exec" for a code-interpreter call, "dev" for a workspace bound to a project, "desktop" for one with a screen. It decides the image, the working directory and the isolation.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
image ↔ String?
Image overrides the image the class would pick. Honoured only for a caller the policy admits, and the sandbox that comes back names the image it GOT.
getter/setter pair
project ↔ String?
Project binds the sandbox to one of the org's projects. Required for a dev or desktop class, which are single-attach per project; an exec sandbox carries none.
getter/setter pair
runtime ↔ String?
Runtime asks for an isolation: runc, gvisor, kata-clh or kata-fc. It is a REQUEST, not a guarantee — the sandbox that comes back carries the runtime it was actually given, which is the field to read.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
ttlSec ↔ int?
TTLSec is how long the lease runs before the reaper may take it, in seconds. Zero takes the class's own default.
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) → LeaseIn?
Returns a new LeaseIn instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<LeaseIn>
mapFromJson(dynamic json) → Map<String, LeaseIn>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<LeaseIn>>

Constants

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