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

Contents

Description

The Google App State API.

See: Google App State API Reference

Synopsis

Service Configuration

appStateService :: Service 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.

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.

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.

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.

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.

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.