| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Datastore.Projects.Commit
Description
Commits a transaction, optionally creating, deleting or modifying some entities.
See: Cloud Datastore API Reference for datastore.projects.commit.
Synopsis
- type ProjectsCommitResource = "v1" :> ("projects" :> (CaptureMode "projectId" "commit" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CommitRequest :> Post '[JSON] CommitResponse)))))))))
- projectsCommit :: CommitRequest -> Text -> ProjectsCommit
- data ProjectsCommit
- pcXgafv :: Lens' ProjectsCommit (Maybe Xgafv)
- pcUploadProtocol :: Lens' ProjectsCommit (Maybe Text)
- pcAccessToken :: Lens' ProjectsCommit (Maybe Text)
- pcUploadType :: Lens' ProjectsCommit (Maybe Text)
- pcPayload :: Lens' ProjectsCommit CommitRequest
- pcProjectId :: Lens' ProjectsCommit Text
- pcCallback :: Lens' ProjectsCommit (Maybe Text)
REST Resource
type ProjectsCommitResource = "v1" :> ("projects" :> (CaptureMode "projectId" "commit" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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
Arguments
| :: CommitRequest | |
| -> Text | |
| -> ProjectsCommit |
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
Request Lenses
pcUploadProtocol :: Lens' ProjectsCommit (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pcAccessToken :: Lens' ProjectsCommit (Maybe Text) Source #
OAuth access token.
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.
pcCallback :: Lens' ProjectsCommit (Maybe Text) Source #
JSONP