ProvisionResult class

Constructors

ProvisionResult({String? connectionString, String? database, String? host, String? id, String? kind, String? name, String? password, int? port, String? status, String? username})
Returns a new ProvisionResult instance.

Properties

connectionString ↔ String?
ConnectionString is the ready-to-use DSN, credential included. RETURNED HERE ONCE: no read beside this one carries it, so a caller that does not keep it must provision again.
getter/setter pair
database ↔ String?
Database is the logical database, collection, index or bucket this resource resolves to on its backend. It is derived from Name under an org-namespacing hash, so it is not Name and two orgs cannot land on one.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
host ↔ String?
Host is the address that routes to this resource — a dedicated instance's own in-cluster Service, or the public gateway for a shared one. Never the internal admin address of a shared backend.
getter/setter pair
id ↔ String?
ID is the resource's server-minted handle, "rs_"-prefixed. The caller does not choose it, and it is what every read and the delete address.
getter/setter pair
kind ↔ String?
Kind is the product provisioned: sql, vector, datastore, kv, search, s3 or docdb. It is the route that was called, not a body field.
getter/setter pair
name ↔ String?
Name is the org-unique slug the caller asked for, lower-cased. Every physical name on the backend derives from it.
getter/setter pair
password ↔ String?
Password is the minted credential, in plaintext, for the kinds that have one. RETURNED HERE ONCE — where KMS is configured it is sealed there and only a reference is persisted; where it is not, it is stored nowhere at all. It is never held in plaintext on either side.
getter/setter pair
port ↔ int?
Port is the port a client connects to on Host.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is "ready", or "provisioning" while a dedicated instance is still being materialized by the operator. A shared-backend create is "ready" here; a dedicated one answers 201 still launching, and reaches ready only when a later read reconciles it against the operator's live CR — never fabricated.
getter/setter pair
username ↔ String?
Username is the credential's user, for the kinds that mint one per resource. Absent for a kind whose backend authenticates with a shared, out-of-band key.
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) → ProvisionResult?
Returns a new ProvisionResult instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ProvisionResult>
mapFromJson(dynamic json) → Map<String, ProvisionResult>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ProvisionResult>>

Constants

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