gogol-appstate-0.3.0: Google App State SDK.

Copyright(c) 2015-2016 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)))))) #

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

Creating a Request

statesUpdate #

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 #

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.

Instances

Eq StatesUpdate # 
Data StatesUpdate # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StatesUpdate -> c StatesUpdate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StatesUpdate #

toConstr :: StatesUpdate -> Constr #

dataTypeOf :: StatesUpdate -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c StatesUpdate) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StatesUpdate) #

gmapT :: (forall b. Data b => b -> b) -> StatesUpdate -> StatesUpdate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StatesUpdate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StatesUpdate -> r #

gmapQ :: (forall d. Data d => d -> u) -> StatesUpdate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StatesUpdate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StatesUpdate -> m StatesUpdate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StatesUpdate -> m StatesUpdate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StatesUpdate -> m StatesUpdate #

Show StatesUpdate # 
Generic StatesUpdate # 

Associated Types

type Rep StatesUpdate :: * -> * #

GoogleRequest StatesUpdate # 

Associated Types

type Rs StatesUpdate :: * #

type Scopes StatesUpdate :: [Symbol] #

type Rep StatesUpdate # 
type Rep StatesUpdate = D1 (MetaData "StatesUpdate" "Network.Google.Resource.AppState.States.Update" "gogol-appstate-0.3.0-EGMeJlIxZhEFrEPUQklAKW" False) (C1 (MetaCons "StatesUpdate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_suCurrentStateVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_suStateKey") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 (Textual Int32))) (S1 (MetaSel (Just Symbol "_suPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UpdateRequest)))))
type Scopes StatesUpdate # 
type Scopes StatesUpdate = (:) Symbol "https://www.googleapis.com/auth/appstate" ([] Symbol)
type Rs StatesUpdate # 

Request Lenses

suCurrentStateVersion :: Lens' StatesUpdate (Maybe Text) #

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 #

The key for the data to be retrieved.

suPayload :: Lens' StatesUpdate UpdateRequest #

Multipart request metadata.