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 documents into Google Cloud Firestore. Existing documents with the same name 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 ImportDocuments operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Firestore.
See: Cloud Firestore API Reference for firestore.projects.databases.importDocuments
.
Synopsis
- type ProjectsDatabasesImportDocumentsResource = "v1" :> (CaptureMode "name" "importDocuments" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleFirestoreAdminV1ImportDocumentsRequest :> Post '[JSON] GoogleLongrunningOperation))))))))
- projectsDatabasesImportDocuments :: GoogleFirestoreAdminV1ImportDocumentsRequest -> Text -> ProjectsDatabasesImportDocuments
- data ProjectsDatabasesImportDocuments
- pdidXgafv :: Lens' ProjectsDatabasesImportDocuments (Maybe Xgafv)
- pdidUploadProtocol :: Lens' ProjectsDatabasesImportDocuments (Maybe Text)
- pdidAccessToken :: Lens' ProjectsDatabasesImportDocuments (Maybe Text)
- pdidUploadType :: Lens' ProjectsDatabasesImportDocuments (Maybe Text)
- pdidPayload :: Lens' ProjectsDatabasesImportDocuments GoogleFirestoreAdminV1ImportDocumentsRequest
- pdidName :: Lens' ProjectsDatabasesImportDocuments Text
- pdidCallback :: Lens' ProjectsDatabasesImportDocuments (Maybe Text)
REST Resource
type ProjectsDatabasesImportDocumentsResource = "v1" :> (CaptureMode "name" "importDocuments" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleFirestoreAdminV1ImportDocumentsRequest :> Post '[JSON] GoogleLongrunningOperation)))))))) Source #
A resource alias for firestore.projects.databases.importDocuments
method which the
ProjectsDatabasesImportDocuments
request conforms to.
Creating a Request
projectsDatabasesImportDocuments Source #
Creates a value of ProjectsDatabasesImportDocuments
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesImportDocuments Source #
Imports documents into Google Cloud Firestore. Existing documents with the same name 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 ImportDocuments operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Firestore.
See: projectsDatabasesImportDocuments
smart constructor.
Instances
Request Lenses
pdidUploadProtocol :: Lens' ProjectsDatabasesImportDocuments (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pdidAccessToken :: Lens' ProjectsDatabasesImportDocuments (Maybe Text) Source #
OAuth access token.
pdidUploadType :: Lens' ProjectsDatabasesImportDocuments (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pdidPayload :: Lens' ProjectsDatabasesImportDocuments GoogleFirestoreAdminV1ImportDocumentsRequest Source #
Multipart request metadata.