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 |
Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
See: Cloud Datastore API Reference for datastore.projects.reserveIds
.
Synopsis
- type ProjectsReserveIdsResource = "v1" :> ("projects" :> (CaptureMode "projectId" "reserveIds" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReserveIdsRequest :> Post '[JSON] ReserveIdsResponse)))))))))
- projectsReserveIds :: ReserveIdsRequest -> Text -> ProjectsReserveIds
- data ProjectsReserveIds
- priXgafv :: Lens' ProjectsReserveIds (Maybe Xgafv)
- priUploadProtocol :: Lens' ProjectsReserveIds (Maybe Text)
- priAccessToken :: Lens' ProjectsReserveIds (Maybe Text)
- priUploadType :: Lens' ProjectsReserveIds (Maybe Text)
- priPayload :: Lens' ProjectsReserveIds ReserveIdsRequest
- priProjectId :: Lens' ProjectsReserveIds Text
- priCallback :: Lens' ProjectsReserveIds (Maybe Text)
REST Resource
type ProjectsReserveIdsResource = "v1" :> ("projects" :> (CaptureMode "projectId" "reserveIds" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReserveIdsRequest :> Post '[JSON] ReserveIdsResponse))))))))) Source #
A resource alias for datastore.projects.reserveIds
method which the
ProjectsReserveIds
request conforms to.
Creating a Request
Creates a value of ProjectsReserveIds
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsReserveIds Source #
Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
See: projectsReserveIds
smart constructor.
Instances
Request Lenses
priUploadProtocol :: Lens' ProjectsReserveIds (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
priAccessToken :: Lens' ProjectsReserveIds (Maybe Text) Source #
OAuth access token.
priUploadType :: Lens' ProjectsReserveIds (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
priPayload :: Lens' ProjectsReserveIds ReserveIdsRequest Source #
Multipart request metadata.
priProjectId :: Lens' ProjectsReserveIds Text Source #
The ID of the project against which to make the request.
priCallback :: Lens' ProjectsReserveIds (Maybe Text) Source #
JSONP