CreateServerReq class

Constructors

CreateServerReq({String? authHeader, String? listing, String? name, String? secret, String? url})
Returns a new CreateServerReq instance.

Properties

authHeader ↔ String?
AuthHeader is the request header the credential is injected into, e.g. "Authorization". Empty means the server needs no credential.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
listing ↔ String?
Listing enables a CATALOG entry instead — the id from GET /v1/tools/catalog. The endpoint is the listing's own streamable-http remote, so a listing that only ships a stdio package is refused: there is nothing to reach yet.
getter/setter pair
name ↔ String?
Name labels the server for the org. Required with URL; with Listing it defaults to the listing's own title.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secret ↔ String?
Secret is the credential VALUE. It is sealed into KMS under a per-org ref and never stored in SQLite, never listed, and never returned.
getter/setter pair
url ↔ String?
URL is the server's JSON-RPC endpoint. It must be an http(s) URL naming a PUBLIC host: loopback, link-local, private and cloud-metadata addresses are refused here and again when the dialer connects.
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) → CreateServerReq?
Returns a new CreateServerReq instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<CreateServerReq>
mapFromJson(dynamic json) → Map<String, CreateServerReq>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<CreateServerReq>>

Constants

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