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.Clear

Contents

Description

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.

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

Synopsis

REST Resource

type StatesClearResource = "appstate" :> ("v1" :> ("states" :> (Capture "stateKey" (Textual Int32) :> ("clear" :> (QueryParam "currentDataVersion" Text :> (QueryParam "alt" AltJSON :> Post `[JSON]` WriteResult)))))) Source

A resource alias for appstate.states.clear method which the StatesClear request conforms to.

Creating a Request

statesClear Source

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

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

data StatesClear Source

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.

See: statesClear smart constructor.

Request Lenses

scStateKey :: Lens' StatesClear Int32 Source

The key for the data to be retrieved.

scCurrentDataVersion :: Lens' StatesClear (Maybe Text) Source

The version of the data to be cleared. Version strings are returned by the server.