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

Contents

Description

The Google App State API.

See: Google App State API Reference

Synopsis

Service Configuration

appStateService :: ServiceConfig Source #

Default request referring to version v1 of the Google App State API. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

appStateScope :: Proxy '["https://www.googleapis.com/auth/appstate"] Source #

View and manage your data for this application

API Declaration

type AppStateAPI = StatesListResource :<|> (StatesGetResource :<|> (StatesClearResource :<|> (StatesDeleteResource :<|> StatesUpdateResource))) Source #

Represents the entirety of the methods and resources available for the Google App State API service.

Resources

appstate.states.clear

appstate.states.delete

appstate.states.get

appstate.states.list

appstate.states.update

Types

WriteResult

data WriteResult Source #

This is a JSON template for an app state write result.

See: writeResult smart constructor.

Instances
Eq WriteResult Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Data WriteResult Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Methods

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

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

toConstr :: WriteResult -> Constr #

dataTypeOf :: WriteResult -> DataType #

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

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

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

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

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

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

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

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

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

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

Show WriteResult Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Generic WriteResult Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Associated Types

type Rep WriteResult :: Type -> Type #

ToJSON WriteResult Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

FromJSON WriteResult Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

type Rep WriteResult Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

type Rep WriteResult = D1 (MetaData "WriteResult" "Network.Google.AppState.Types.Product" "gogol-appstate-0.4.0-3myNnuC4x6s9zunr51UCcB" False) (C1 (MetaCons "WriteResult'" PrefixI True) (S1 (MetaSel (Just "_wrCurrentStateVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_wrKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_wrStateKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))))))

writeResult :: WriteResult Source #

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

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

wrCurrentStateVersion :: Lens' WriteResult (Maybe Text) Source #

The version of the data for this key on the server.

wrKind :: Lens' WriteResult Text Source #

Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult.

ListResponse

data ListResponse Source #

This is a JSON template to convert a list-response for app state.

See: listResponse smart constructor.

Instances
Eq ListResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Data ListResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Methods

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

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

toConstr :: ListResponse -> Constr #

dataTypeOf :: ListResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Generic ListResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Associated Types

type Rep ListResponse :: Type -> Type #

ToJSON ListResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

FromJSON ListResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

type Rep ListResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

type Rep ListResponse = D1 (MetaData "ListResponse" "Network.Google.AppState.Types.Product" "gogol-appstate-0.4.0-3myNnuC4x6s9zunr51UCcB" False) (C1 (MetaCons "ListResponse'" PrefixI True) (S1 (MetaSel (Just "_lrMaximumKeyCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: (S1 (MetaSel (Just "_lrKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_lrItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GetResponse])))))

listResponse :: ListResponse Source #

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

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

lrMaximumKeyCount :: Lens' ListResponse (Maybe Int32) Source #

The maximum number of keys allowed for this user.

lrKind :: Lens' ListResponse Text Source #

Uniquely identifies the type of this resource. Value is always the fixed string appstate#listResponse.

lrItems :: Lens' ListResponse [GetResponse] Source #

The app state data.

GetResponse

data GetResponse Source #

This is a JSON template for an app state resource.

See: getResponse smart constructor.

Instances
Eq GetResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Data GetResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Methods

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

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

toConstr :: GetResponse -> Constr #

dataTypeOf :: GetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show GetResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Generic GetResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Associated Types

type Rep GetResponse :: Type -> Type #

ToJSON GetResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

FromJSON GetResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

type Rep GetResponse Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

type Rep GetResponse = D1 (MetaData "GetResponse" "Network.Google.AppState.Types.Product" "gogol-appstate-0.4.0-3myNnuC4x6s9zunr51UCcB" False) (C1 (MetaCons "GetResponse'" PrefixI True) ((S1 (MetaSel (Just "_grCurrentStateVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_grKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_grData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_grStateKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))))))

getResponse :: GetResponse Source #

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

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

grCurrentStateVersion :: Lens' GetResponse (Maybe Text) Source #

The current app state version.

grKind :: Lens' GetResponse Text Source #

Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse.

grData :: Lens' GetResponse (Maybe Text) Source #

The requested data.

grStateKey :: Lens' GetResponse (Maybe Int32) Source #

The key for the data.

UpdateRequest

data UpdateRequest Source #

This is a JSON template for a requests which update app state

See: updateRequest smart constructor.

Instances
Eq UpdateRequest Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Data UpdateRequest Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Methods

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

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

toConstr :: UpdateRequest -> Constr #

dataTypeOf :: UpdateRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateRequest Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Generic UpdateRequest Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

Associated Types

type Rep UpdateRequest :: Type -> Type #

ToJSON UpdateRequest Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

FromJSON UpdateRequest Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

type Rep UpdateRequest Source # 
Instance details

Defined in Network.Google.AppState.Types.Product

type Rep UpdateRequest = D1 (MetaData "UpdateRequest" "Network.Google.AppState.Types.Product" "gogol-appstate-0.4.0-3myNnuC4x6s9zunr51UCcB" False) (C1 (MetaCons "UpdateRequest'" PrefixI True) (S1 (MetaSel (Just "_urKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_urData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

updateRequest :: UpdateRequest Source #

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

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

urKind :: Lens' UpdateRequest Text Source #

Uniquely identifies the type of this resource. Value is always the fixed string appstate#updateRequest.

urData :: Lens' UpdateRequest (Maybe Text) Source #

The new app state data that your application is trying to update with.