AgentBinding class

Constructors

AgentBinding({String? agentName, String? botVersion, String? createdTime, String? machineId, String? message, String? name, String? org, String? owner, String? provider, String? publicIp, String? status, String? updatedTime})
Returns a new AgentBinding instance.

Properties

agentName ↔ String?
AgentName is the cloud Agent (/v1/agents) this machine runs — the agent a message to the bot is actually run against. It is the one field that decides what the bot DOES.
getter/setter pair
botVersion ↔ String?
BotVersion pins the @hanzo/bot runtime version the machine runs. Empty means the machine took the default in force when it was bound.
getter/setter pair
createdTime ↔ String?
CreatedTime is when the binding was first made.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
machineId ↔ String?
MachineId is the bound machine as vm addresses it, owner-qualified ("
getter/setter pair
message ↔ String?
Message is vm's human-readable detail on Status ("machine provisioning; @hanzo/bot runtime not yet confirmed") — the reason behind the state, not a second state.
getter/setter pair
name ↔ String?
Name is the binding's own key, which is the machine's id: a machine hosts at most one agent, so the binding is named for it. This is the key a bots list joins bindings onto machines by.
getter/setter pair
org ↔ String?
Org is the Hanzo tenant the binding belongs to.
getter/setter pair
owner ↔ String?
Owner is the tenant vm filed the binding under, resolved from the ?owner it was called with — which is the caller's validated org and never a body field.
getter/setter pair
provider ↔ String?
Provider is the cloud the bound machine runs on, carried here so a bindings list says where each bot lives without a second read per machine.
getter/setter pair
publicIp ↔ String?
PublicIp is the bound machine's public address as vm recorded it on the binding. Empty while the machine has none yet.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is the binding's lifecycle in VM's OWN words — "Pending" while the machine provisions and the runtime is unconfirmed, "running" once vm has confirmed it. The vocabulary is vm's and passes through unmapped, which is why its capitalization does not match the machine states beside it, and it is vm's reconciled reading rather than anything asserted here.
getter/setter pair
updatedTime ↔ String?
UpdatedTime is when vm last reconciled it — the age of Status.
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) → AgentBinding?
Returns a new AgentBinding instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<AgentBinding>
mapFromJson(dynamic json) → Map<String, AgentBinding>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<AgentBinding>>

Constants

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