gogol-datastore-0.2.0: Google Cloud Datastore 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.Datastore.Projects.Commit

Contents

Description

Commits a transaction, optionally creating, deleting or modifying some entities.

See: Google Cloud Datastore API Reference for datastore.projects.commit.

Synopsis

REST Resource

type ProjectsCommitResource = "v1" :> ("projects" :> (CaptureMode "projectId" "commit" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CommitRequest :> Post '[JSON] CommitResponse))))))))))) Source #

A resource alias for datastore.projects.commit method which the ProjectsCommit request conforms to.

Creating a Request

projectsCommit Source #

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

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

data ProjectsCommit Source #

Commits a transaction, optionally creating, deleting or modifying some entities.

See: projectsCommit smart constructor.

Instances

Eq ProjectsCommit Source # 
Data ProjectsCommit Source # 

Methods

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

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

toConstr :: ProjectsCommit -> Constr #

dataTypeOf :: ProjectsCommit -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsCommit Source # 
Generic ProjectsCommit Source # 

Associated Types

type Rep ProjectsCommit :: * -> * #

GoogleRequest ProjectsCommit Source # 
type Rep ProjectsCommit Source # 
type Scopes ProjectsCommit Source # 
type Scopes ProjectsCommit = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/datastore" ([] Symbol))
type Rs ProjectsCommit Source # 

Request Lenses

pcUploadProtocol :: Lens' ProjectsCommit (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pcPp :: Lens' ProjectsCommit Bool Source #

Pretty-print response.

pcUploadType :: Lens' ProjectsCommit (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pcPayload :: Lens' ProjectsCommit CommitRequest Source #

Multipart request metadata.

pcProjectId :: Lens' ProjectsCommit Text Source #

The ID of the project against which to make the request.