DeploymentView class

Constructors

DeploymentView({String? applicationId, String? buildId, String? commit, int? createdAt, String? id, String? image, String? message, String? org, String? source_, String? status, int? updatedAt, int? version})
Returns a new DeploymentView instance.

Properties

applicationId ↔ String?
ApplicationID is the app this deployed — the app's id, not its slug.
getter/setter pair
buildId ↔ String?
BuildID is the build record behind a git deploy, whose logs and status live at /v1/platform/builds. Empty for an image deploy.
getter/setter pair
commit ↔ String?
Commit is the git ref this built — the commit a deploy or a push named, else the app's branch. Empty for an image deploy, which builds nothing.
getter/setter pair
createdAt ↔ int?
CreatedAt is when the attempt was recorded, unix seconds.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the deployment's id (dep_…), minted when the attempt is recorded. The app's currentDeploymentId points at one of these.
getter/setter pair
image ↔ String?
Image is the full repo:tag this deployment put in the CR. For a git deploy it is the ref the in-cluster build pushes to, known before the build runs.
getter/setter pair
message ↔ String?
Message is why this attempt is not live: the failure, or the note that a newer deployment went live before this build finished. Empty while it is fine.
getter/setter pair
org ↔ String?
Org is the tenant the deployment belongs to, from the validated identity.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source_ ↔ String?
Source is which lane produced it: git (built from the repo) or image (an already-built ref deployed as-is, including promote and rollback).
getter/setter pair
status ↔ String?
Status is where the attempt got to: building while its image is being built, deploying once its CR reached the cluster — which is the terminal success state, the app's own status is what turns live — error with the reason in Message, or superseded when a newer version went live first.
getter/setter pair
updatedAt ↔ int?
UpdatedAt is its last transition, unix seconds — so for a terminal deployment it is when it reached that state.
getter/setter pair
version ↔ int?
Version counts this app's deployments, from 1 and monotonically. It is what ORDERS them: a deploy only goes live if no higher version already is, so a build that finishes late is superseded instead of overwriting a newer one.
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) → DeploymentView?
Returns a new DeploymentView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<DeploymentView>
mapFromJson(dynamic json) → Map<String, DeploymentView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<DeploymentView>>

Constants

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