PatchSyncIn class

Constructors

PatchSyncIn({String? actor, String? direction, String? id, String? kind, EndpointReq? source_, EndpointReq? target, String? trigger})
Returns a new PatchSyncIn instance.

Properties

actor ↔ String?
Actor is the loop-guard identity the sync writes as. Omitted, the stored actor stands.
getter/setter pair
direction ↔ String?
Direction is both, pull, push or off. Omitted, the stored direction stands.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the sync to update, from the path.
getter/setter pair
kind ↔ String?
Kind names a different kind of sync, and is refused, for the same reason.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source_ ↔ EndpointReq?
Source, Target and Kind are DECLARED HERE IN ORDER TO BE REFUSED. They are immutable by design — re-pointing a sync is a delete and a create, so a link can never silently start syncing somewhere else — but an UNDECLARED field is dropped by the binder before the handler sees it, so a request asking to repoint answered 200, changed nothing, and said nothing. The operator then believes a moved repository has been repointed and it has not. Live: a sync still naming github.com/hanzoai/cloud after the repository moved to hanzo-inc/cloud failed every reconcile with "Repository not found", and the PATCH that appeared to fix it did nothing at all. Declaring the fields is what lets the documented immutability actually answer. Source names a new upstream, and is refused. Delete this sync and create the one you want.
getter/setter pair
target ↔ EndpointReq?
Target names a new native repository, and is refused, for the same reason.
getter/setter pair
trigger ↔ String?
Trigger is webhook, poll or manual. Omitted, the stored trigger stands.
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) → PatchSyncIn?
Returns a new PatchSyncIn instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PatchSyncIn>
mapFromJson(dynamic json) → Map<String, PatchSyncIn>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PatchSyncIn>>

Constants

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