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 |
Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.
See: Cloud Datastore API Reference for datastore.projects.export
.
Synopsis
- type ProjectsExportResource = "v1" :> ("projects" :> (CaptureMode "projectId" "export" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleDatastoreAdminV1ExportEntitiesRequest :> Post '[JSON] GoogleLongrunningOperation)))))))))
- projectsExport :: GoogleDatastoreAdminV1ExportEntitiesRequest -> Text -> ProjectsExport
- data ProjectsExport
- peXgafv :: Lens' ProjectsExport (Maybe Xgafv)
- peUploadProtocol :: Lens' ProjectsExport (Maybe Text)
- peAccessToken :: Lens' ProjectsExport (Maybe Text)
- peUploadType :: Lens' ProjectsExport (Maybe Text)
- pePayload :: Lens' ProjectsExport GoogleDatastoreAdminV1ExportEntitiesRequest
- peProjectId :: Lens' ProjectsExport Text
- peCallback :: Lens' ProjectsExport (Maybe Text)
REST Resource
type ProjectsExportResource = "v1" :> ("projects" :> (CaptureMode "projectId" "export" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleDatastoreAdminV1ExportEntitiesRequest :> Post '[JSON] GoogleLongrunningOperation))))))))) Source #
A resource alias for datastore.projects.export
method which the
ProjectsExport
request conforms to.
Creating a Request
Creates a value of ProjectsExport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsExport Source #
Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.
See: projectsExport
smart constructor.
Instances
Request Lenses
peUploadProtocol :: Lens' ProjectsExport (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
peAccessToken :: Lens' ProjectsExport (Maybe Text) Source #
OAuth access token.
peUploadType :: Lens' ProjectsExport (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pePayload :: Lens' ProjectsExport GoogleDatastoreAdminV1ExportEntitiesRequest Source #
Multipart request metadata.
peProjectId :: Lens' ProjectsExport Text Source #
Project ID against which to make the request.
peCallback :: Lens' ProjectsExport (Maybe Text) Source #
JSONP