StatesResourceApi class

Constructors

StatesResourceApi(ApiRequester client)

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clear(int stateKey, { String currentDataVersion, String $fields }) → Future<WriteResult>
Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch. [...]
delete(int stateKey, { String $fields }) → Future
Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption. [...]
get(int stateKey, { String $fields }) → Future<GetResponse>
Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned. [...]
list({bool includeData, String $fields }) → Future<ListResponse>
Lists all the states keys, and optionally the state data. [...]
update(UpdateRequest request, int stateKey, { String currentStateVersion, String $fields }) → Future<WriteResult>
Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited