gogol-appstate-0.1.1: 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)))))) 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.

Instances

Eq StatesUpdate Source # 
Data StatesUpdate Source # 

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 Source # 
Generic StatesUpdate Source # 

Associated Types

type Rep StatesUpdate :: * -> * #

GoogleRequest StatesUpdate Source # 

Associated Types

type Rs StatesUpdate :: * #

type Scopes StatesUpdate :: [Symbol] #

type Rep StatesUpdate Source # 
type Rep StatesUpdate = D1 (MetaData "StatesUpdate" "Network.Google.Resource.AppState.States.Update" "gogol-appstate-0.1.1-LdnJuwGsEAkCPClF8NxIja" 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 Source # 
type Scopes StatesUpdate = (:) Symbol "https://www.googleapis.com/auth/appstate" ([] Symbol)
type Rs StatesUpdate Source # 

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.