ProjectsUploadGrant class

Constructors

ProjectsUploadGrant({int? expiresAt, Map<String, String> fields = const {}, int? maxBytes, String? prefix, String? url})
Returns a new ProjectsUploadGrant instance.

Properties

expiresAt ↔ int?
ExpiresAt is when the grant stops being accepted, as Unix seconds. It is short-lived by design and is handed out ONCE, on the response that queues the deployment — a later read of that deployment does not carry it, so a grant cannot be fetched again after the build it was minted for.
getter/setter pair
fields ↔ Map<String, String>
Fields are form values every POST must carry VERBATIM, alongside key and file. The signature covers them, so altering any one of them — including widening the key to reach outside the prefix — invalidates the grant rather than extending it.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
maxBytes ↔ int?
MaxBytes bounds ONE object, not the upload as a whole.
getter/setter pair
prefix ↔ String?
Prefix is the only place this grant can write: the deployment's own key prefix. It authorizes WRITES ONLY, which is why completing a deployment reconciles the prefix against a manifest instead of letting CI delete.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url ↔ String?
URL is the address to POST each object to. It is signed for the PUBLIC endpoint, because the signature covers the host and CI posts from outside the cluster.
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) → ProjectsUploadGrant?
Returns a new ProjectsUploadGrant instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ProjectsUploadGrant>
mapFromJson(dynamic json) → Map<String, ProjectsUploadGrant>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ProjectsUploadGrant>>

Constants

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