gogol-appstate-0.0.1: Google App State SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.AppState.States.Update

Contents

Description

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.

See: Google App State API Reference for appstate.states.update.

Synopsis

REST Resource

type StatesUpdateResource = "appstate" :> ("v1" :> ("states" :> (Capture "stateKey" (Textual Int32) :> (QueryParam "currentStateVersion" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` UpdateRequest :> Put `[JSON]` WriteResult)))))) Source

A resource alias for appstate.states.update method which the StatesUpdate request conforms to.

Creating a Request

statesUpdate Source

Creates a value of StatesUpdate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data StatesUpdate Source

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.

See: statesUpdate smart constructor.

Request Lenses

suCurrentStateVersion :: Lens' StatesUpdate (Maybe Text) Source

The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.

suStateKey :: Lens' StatesUpdate Int32 Source

The key for the data to be retrieved.

suPayload :: Lens' StatesUpdate UpdateRequest Source

Multipart request metadata.