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 |
Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.
See: Cloud Datastore API Reference for datastore.projects.import
.
Synopsis
- type ProjectsImportResource = "v1" :> ("projects" :> (CaptureMode "projectId" "import" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleDatastoreAdminV1ImportEntitiesRequest :> Post '[JSON] GoogleLongrunningOperation)))))))))
- projectsImport :: GoogleDatastoreAdminV1ImportEntitiesRequest -> Text -> ProjectsImport
- data ProjectsImport
- pXgafv :: Lens' ProjectsImport (Maybe Xgafv)
- pUploadProtocol :: Lens' ProjectsImport (Maybe Text)
- pAccessToken :: Lens' ProjectsImport (Maybe Text)
- pUploadType :: Lens' ProjectsImport (Maybe Text)
- pPayload :: Lens' ProjectsImport GoogleDatastoreAdminV1ImportEntitiesRequest
- pProjectId :: Lens' ProjectsImport Text
- pCallback :: Lens' ProjectsImport (Maybe Text)
REST Resource
type ProjectsImportResource = "v1" :> ("projects" :> (CaptureMode "projectId" "import" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleDatastoreAdminV1ImportEntitiesRequest :> Post '[JSON] GoogleLongrunningOperation))))))))) Source #
A resource alias for datastore.projects.import
method which the
ProjectsImport
request conforms to.
Creating a Request
Creates a value of ProjectsImport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsImport Source #
Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.
See: projectsImport
smart constructor.
Instances
Request Lenses
pUploadProtocol :: Lens' ProjectsImport (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pAccessToken :: Lens' ProjectsImport (Maybe Text) Source #
OAuth access token.
pUploadType :: Lens' ProjectsImport (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pPayload :: Lens' ProjectsImport GoogleDatastoreAdminV1ImportEntitiesRequest Source #
Multipart request metadata.
pProjectId :: Lens' ProjectsImport Text Source #
Project ID against which to make the request.