gogol-appstate-0.4.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)))))) 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 # 
Instance details

Defined in Network.Google.Resource.AppState.States.Update

Data StatesUpdate Source # 
Instance details

Defined in Network.Google.Resource.AppState.States.Update

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 # 
Instance details

Defined in Network.Google.Resource.AppState.States.Update

Generic StatesUpdate Source # 
Instance details

Defined in Network.Google.Resource.AppState.States.Update

Associated Types

type Rep StatesUpdate :: Type -> Type #

GoogleRequest StatesUpdate Source # 
Instance details

Defined in Network.Google.Resource.AppState.States.Update

Associated Types

type Rs StatesUpdate :: Type #

type Scopes StatesUpdate :: [Symbol] #

type Rep StatesUpdate Source # 
Instance details

Defined in Network.Google.Resource.AppState.States.Update

type Rep StatesUpdate = D1 (MetaData "StatesUpdate" "Network.Google.Resource.AppState.States.Update" "gogol-appstate-0.4.0-3myNnuC4x6s9zunr51UCcB" False) (C1 (MetaCons "StatesUpdate'" PrefixI True) (S1 (MetaSel (Just "_suCurrentStateVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_suStateKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int32)) :*: S1 (MetaSel (Just "_suPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UpdateRequest))))
type Scopes StatesUpdate Source # 
Instance details

Defined in Network.Google.Resource.AppState.States.Update

type Scopes StatesUpdate = "https://www.googleapis.com/auth/appstate" ': ([] :: [Symbol])
type Rs StatesUpdate Source # 
Instance details

Defined in Network.Google.Resource.AppState.States.Update

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.