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 |
Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
See: Cloud Datastore API Reference for datastore.projects.allocateIds
.
Synopsis
- type ProjectsAllocateIdsResource = "v1" :> ("projects" :> (CaptureMode "projectId" "allocateIds" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AllocateIdsRequest :> Post '[JSON] AllocateIdsResponse)))))))))
- projectsAllocateIds :: AllocateIdsRequest -> Text -> ProjectsAllocateIds
- data ProjectsAllocateIds
- paiXgafv :: Lens' ProjectsAllocateIds (Maybe Xgafv)
- paiUploadProtocol :: Lens' ProjectsAllocateIds (Maybe Text)
- paiAccessToken :: Lens' ProjectsAllocateIds (Maybe Text)
- paiUploadType :: Lens' ProjectsAllocateIds (Maybe Text)
- paiPayload :: Lens' ProjectsAllocateIds AllocateIdsRequest
- paiProjectId :: Lens' ProjectsAllocateIds Text
- paiCallback :: Lens' ProjectsAllocateIds (Maybe Text)
REST Resource
type ProjectsAllocateIdsResource = "v1" :> ("projects" :> (CaptureMode "projectId" "allocateIds" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AllocateIdsRequest :> Post '[JSON] AllocateIdsResponse))))))))) Source #
A resource alias for datastore.projects.allocateIds
method which the
ProjectsAllocateIds
request conforms to.
Creating a Request
Creates a value of ProjectsAllocateIds
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAllocateIds Source #
Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
See: projectsAllocateIds
smart constructor.
Instances
Request Lenses
paiUploadProtocol :: Lens' ProjectsAllocateIds (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
paiAccessToken :: Lens' ProjectsAllocateIds (Maybe Text) Source #
OAuth access token.
paiUploadType :: Lens' ProjectsAllocateIds (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
paiPayload :: Lens' ProjectsAllocateIds AllocateIdsRequest Source #
Multipart request metadata.
paiProjectId :: Lens' ProjectsAllocateIds Text Source #
The ID of the project against which to make the request.
paiCallback :: Lens' ProjectsAllocateIds (Maybe Text) Source #
JSONP