gogol-firestore 0.5.0 → 1.0.0
raw patch · 86 files changed
+14907/−12614 lines, 86 filesdep −basedep ~gogol-coresetup-changed
Dependencies removed: base
Dependency ranges changed: gogol-core
Files
- README.md +1/−1
- Setup.hs +2/−1
- gen/Gogol/FireStore.hs +936/−0
- gen/Gogol/FireStore/Internal/Product.hs +5828/−0
- gen/Gogol/FireStore/Internal/Sum.hs +1511/−0
- gen/Gogol/FireStore/Projects/Databases/BackupSchedules/Create.hs +125/−0
- gen/Gogol/FireStore/Projects/Databases/BackupSchedules/Delete.hs +115/−0
- gen/Gogol/FireStore/Projects/Databases/BackupSchedules/Get.hs +117/−0
- gen/Gogol/FireStore/Projects/Databases/BackupSchedules/List.hs +120/−0
- gen/Gogol/FireStore/Projects/Databases/BackupSchedules/Patch.hs +129/−0
- gen/Gogol/FireStore/Projects/Databases/BulkDeleteDocuments.hs +126/−0
- gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Fields/Get.hs +119/−0
- gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Fields/List.hs +135/−0
- gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Fields/Patch.hs +135/−0
- gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Indexes/Create.hs +129/−0
- gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Indexes/Delete.hs +119/−0
- gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Indexes/Get.hs +119/−0
- gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Indexes/List.hs +135/−0
- gen/Gogol/FireStore/Projects/Databases/Create.hs +124/−0
- gen/Gogol/FireStore/Projects/Databases/Delete.hs +116/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/BatchGet.hs +124/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/BatchWrite.hs +125/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/BeginTransaction.hs +129/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/Commit.hs +122/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/CreateDocument.hs +145/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/Delete.hs +124/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/Get.hs +126/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/List.hs +155/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/ListCollectionIds.hs +128/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/ListDocuments.hs +162/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/Listen.hs +122/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/PartitionQuery.hs +125/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/Patch.hs +141/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/Rollback.hs +122/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/RunAggregationQuery.hs +128/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/RunQuery.hs +123/−0
- gen/Gogol/FireStore/Projects/Databases/Documents/Write.hs +122/−0
- gen/Gogol/FireStore/Projects/Databases/ExportDocuments.hs +125/−0
- gen/Gogol/FireStore/Projects/Databases/Get.hs +111/−0
- gen/Gogol/FireStore/Projects/Databases/ImportDocuments.hs +125/−0
- gen/Gogol/FireStore/Projects/Databases/List.hs +117/−0
- gen/Gogol/FireStore/Projects/Databases/Operations/Cancel.hs +121/−0
- gen/Gogol/FireStore/Projects/Databases/Operations/Delete.hs +114/−0
- gen/Gogol/FireStore/Projects/Databases/Operations/Get.hs +113/−0
- gen/Gogol/FireStore/Projects/Databases/Operations/List.hs +132/−0
- gen/Gogol/FireStore/Projects/Databases/Patch.hs +123/−0
- gen/Gogol/FireStore/Projects/Databases/Restore.hs +123/−0
- gen/Gogol/FireStore/Projects/Locations/Backups/Delete.hs +111/−0
- gen/Gogol/FireStore/Projects/Locations/Backups/Get.hs +113/−0
- gen/Gogol/FireStore/Projects/Locations/Backups/List.hs +119/−0
- gen/Gogol/FireStore/Projects/Locations/Get.hs +109/−0
- gen/Gogol/FireStore/Projects/Locations/List.hs +125/−0
- gen/Gogol/FireStore/Types.hs +665/−0
- gen/Network/Google/FireStore.hs +0/−783
- gen/Network/Google/FireStore/Types.hs +0/−632
- gen/Network/Google/FireStore/Types/Product.hs +0/−5181
- gen/Network/Google/FireStore/Types/Sum.hs +0/−731
- gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Fields/Get.hs +0/−163
- gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Fields/List.hs +0/−218
- gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Fields/Patch.hs +0/−226
- gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Indexes/Create.hs +0/−183
- gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Indexes/Delete.hs +0/−163
- gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Indexes/Get.hs +0/−163
- gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Indexes/List.hs +0/−206
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/BatchGet.hs +0/−175
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/BeginTransaction.hs +0/−178
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Commit.hs +0/−171
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/CreateDocument.hs +0/−220
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Delete.hs +0/−183
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Get.hs +0/−197
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/List.hs +0/−266
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/ListCollectionIds.hs +0/−179
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Listen.hs +0/−171
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Patch.hs +0/−229
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Rollback.hs +0/−169
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/RunQuery.hs +0/−175
- gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Write.hs +0/−172
- gen/Network/Google/Resource/FireStore/Projects/Databases/ExportDocuments.hs +0/−184
- gen/Network/Google/Resource/FireStore/Projects/Databases/ImportDocuments.hs +0/−180
- gen/Network/Google/Resource/FireStore/Projects/Databases/Operations/Cancel.hs +0/−184
- gen/Network/Google/Resource/FireStore/Projects/Databases/Operations/Delete.hs +0/−159
- gen/Network/Google/Resource/FireStore/Projects/Databases/Operations/Get.hs +0/−158
- gen/Network/Google/Resource/FireStore/Projects/Databases/Operations/List.hs +0/−212
- gen/Network/Google/Resource/FireStore/Projects/Locations/Get.hs +0/−149
- gen/Network/Google/Resource/FireStore/Projects/Locations/List.hs +0/−188
- gogol-firestore.cabal +97/−64
README.md view
@@ -8,7 +8,7 @@ ## Version -`0.5.0`+`1.0.0` ## Description
Setup.hs view
@@ -1,2 +1,3 @@-import Distribution.Simple+import Distribution.Simple+ main = defaultMain
+ gen/Gogol/FireStore.hs view
@@ -0,0 +1,936 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference>+module Gogol.FireStore+ ( -- * Configuration+ fireStoreService,++ -- * OAuth Scopes+ CloudPlatform'FullControl,+ Datastore'FullControl,++ -- * Resources++ -- ** firestore.projects.databases.backupSchedules.create+ FireStoreProjectsDatabasesBackupSchedulesCreateResource,+ FireStoreProjectsDatabasesBackupSchedulesCreate (..),+ newFireStoreProjectsDatabasesBackupSchedulesCreate,++ -- ** firestore.projects.databases.backupSchedules.delete+ FireStoreProjectsDatabasesBackupSchedulesDeleteResource,+ FireStoreProjectsDatabasesBackupSchedulesDelete (..),+ newFireStoreProjectsDatabasesBackupSchedulesDelete,++ -- ** firestore.projects.databases.backupSchedules.get+ FireStoreProjectsDatabasesBackupSchedulesGetResource,+ FireStoreProjectsDatabasesBackupSchedulesGet (..),+ newFireStoreProjectsDatabasesBackupSchedulesGet,++ -- ** firestore.projects.databases.backupSchedules.list+ FireStoreProjectsDatabasesBackupSchedulesListResource,+ FireStoreProjectsDatabasesBackupSchedulesList (..),+ newFireStoreProjectsDatabasesBackupSchedulesList,++ -- ** firestore.projects.databases.backupSchedules.patch+ FireStoreProjectsDatabasesBackupSchedulesPatchResource,+ FireStoreProjectsDatabasesBackupSchedulesPatch (..),+ newFireStoreProjectsDatabasesBackupSchedulesPatch,++ -- ** firestore.projects.databases.bulkDeleteDocuments+ FireStoreProjectsDatabasesBulkDeleteDocumentsResource,+ FireStoreProjectsDatabasesBulkDeleteDocuments (..),+ newFireStoreProjectsDatabasesBulkDeleteDocuments,++ -- ** firestore.projects.databases.collectionGroups.fields.get+ FireStoreProjectsDatabasesCollectionGroupsFieldsGetResource,+ FireStoreProjectsDatabasesCollectionGroupsFieldsGet (..),+ newFireStoreProjectsDatabasesCollectionGroupsFieldsGet,++ -- ** firestore.projects.databases.collectionGroups.fields.list+ FireStoreProjectsDatabasesCollectionGroupsFieldsListResource,+ FireStoreProjectsDatabasesCollectionGroupsFieldsList (..),+ newFireStoreProjectsDatabasesCollectionGroupsFieldsList,++ -- ** firestore.projects.databases.collectionGroups.fields.patch+ FireStoreProjectsDatabasesCollectionGroupsFieldsPatchResource,+ FireStoreProjectsDatabasesCollectionGroupsFieldsPatch (..),+ newFireStoreProjectsDatabasesCollectionGroupsFieldsPatch,++ -- ** firestore.projects.databases.collectionGroups.indexes.create+ FireStoreProjectsDatabasesCollectionGroupsIndexesCreateResource,+ FireStoreProjectsDatabasesCollectionGroupsIndexesCreate (..),+ newFireStoreProjectsDatabasesCollectionGroupsIndexesCreate,++ -- ** firestore.projects.databases.collectionGroups.indexes.delete+ FireStoreProjectsDatabasesCollectionGroupsIndexesDeleteResource,+ FireStoreProjectsDatabasesCollectionGroupsIndexesDelete (..),+ newFireStoreProjectsDatabasesCollectionGroupsIndexesDelete,++ -- ** firestore.projects.databases.collectionGroups.indexes.get+ FireStoreProjectsDatabasesCollectionGroupsIndexesGetResource,+ FireStoreProjectsDatabasesCollectionGroupsIndexesGet (..),+ newFireStoreProjectsDatabasesCollectionGroupsIndexesGet,++ -- ** firestore.projects.databases.collectionGroups.indexes.list+ FireStoreProjectsDatabasesCollectionGroupsIndexesListResource,+ FireStoreProjectsDatabasesCollectionGroupsIndexesList (..),+ newFireStoreProjectsDatabasesCollectionGroupsIndexesList,++ -- ** firestore.projects.databases.create+ FireStoreProjectsDatabasesCreateResource,+ FireStoreProjectsDatabasesCreate (..),+ newFireStoreProjectsDatabasesCreate,++ -- ** firestore.projects.databases.delete+ FireStoreProjectsDatabasesDeleteResource,+ FireStoreProjectsDatabasesDelete (..),+ newFireStoreProjectsDatabasesDelete,++ -- ** firestore.projects.databases.documents.batchGet+ FireStoreProjectsDatabasesDocumentsBatchGetResource,+ FireStoreProjectsDatabasesDocumentsBatchGet (..),+ newFireStoreProjectsDatabasesDocumentsBatchGet,++ -- ** firestore.projects.databases.documents.batchWrite+ FireStoreProjectsDatabasesDocumentsBatchWriteResource,+ FireStoreProjectsDatabasesDocumentsBatchWrite (..),+ newFireStoreProjectsDatabasesDocumentsBatchWrite,++ -- ** firestore.projects.databases.documents.beginTransaction+ FireStoreProjectsDatabasesDocumentsBeginTransactionResource,+ FireStoreProjectsDatabasesDocumentsBeginTransaction (..),+ newFireStoreProjectsDatabasesDocumentsBeginTransaction,++ -- ** firestore.projects.databases.documents.commit+ FireStoreProjectsDatabasesDocumentsCommitResource,+ FireStoreProjectsDatabasesDocumentsCommit (..),+ newFireStoreProjectsDatabasesDocumentsCommit,++ -- ** firestore.projects.databases.documents.createDocument+ FireStoreProjectsDatabasesDocumentsCreateDocumentResource,+ FireStoreProjectsDatabasesDocumentsCreateDocument (..),+ newFireStoreProjectsDatabasesDocumentsCreateDocument,++ -- ** firestore.projects.databases.documents.delete+ FireStoreProjectsDatabasesDocumentsDeleteResource,+ FireStoreProjectsDatabasesDocumentsDelete (..),+ newFireStoreProjectsDatabasesDocumentsDelete,++ -- ** firestore.projects.databases.documents.get+ FireStoreProjectsDatabasesDocumentsGetResource,+ FireStoreProjectsDatabasesDocumentsGet (..),+ newFireStoreProjectsDatabasesDocumentsGet,++ -- ** firestore.projects.databases.documents.list+ FireStoreProjectsDatabasesDocumentsListResource,+ FireStoreProjectsDatabasesDocumentsList (..),+ newFireStoreProjectsDatabasesDocumentsList,++ -- ** firestore.projects.databases.documents.listCollectionIds+ FireStoreProjectsDatabasesDocumentsListCollectionIdsResource,+ FireStoreProjectsDatabasesDocumentsListCollectionIds (..),+ newFireStoreProjectsDatabasesDocumentsListCollectionIds,++ -- ** firestore.projects.databases.documents.listDocuments+ FireStoreProjectsDatabasesDocumentsListDocumentsResource,+ FireStoreProjectsDatabasesDocumentsListDocuments (..),+ newFireStoreProjectsDatabasesDocumentsListDocuments,++ -- ** firestore.projects.databases.documents.listen+ FireStoreProjectsDatabasesDocumentsListenResource,+ FireStoreProjectsDatabasesDocumentsListen (..),+ newFireStoreProjectsDatabasesDocumentsListen,++ -- ** firestore.projects.databases.documents.partitionQuery+ FireStoreProjectsDatabasesDocumentsPartitionQueryResource,+ FireStoreProjectsDatabasesDocumentsPartitionQuery (..),+ newFireStoreProjectsDatabasesDocumentsPartitionQuery,++ -- ** firestore.projects.databases.documents.patch+ FireStoreProjectsDatabasesDocumentsPatchResource,+ FireStoreProjectsDatabasesDocumentsPatch (..),+ newFireStoreProjectsDatabasesDocumentsPatch,++ -- ** firestore.projects.databases.documents.rollback+ FireStoreProjectsDatabasesDocumentsRollbackResource,+ FireStoreProjectsDatabasesDocumentsRollback (..),+ newFireStoreProjectsDatabasesDocumentsRollback,++ -- ** firestore.projects.databases.documents.runAggregationQuery+ FireStoreProjectsDatabasesDocumentsRunAggregationQueryResource,+ FireStoreProjectsDatabasesDocumentsRunAggregationQuery (..),+ newFireStoreProjectsDatabasesDocumentsRunAggregationQuery,++ -- ** firestore.projects.databases.documents.runQuery+ FireStoreProjectsDatabasesDocumentsRunQueryResource,+ FireStoreProjectsDatabasesDocumentsRunQuery (..),+ newFireStoreProjectsDatabasesDocumentsRunQuery,++ -- ** firestore.projects.databases.documents.write+ FireStoreProjectsDatabasesDocumentsWriteResource,+ FireStoreProjectsDatabasesDocumentsWrite (..),+ newFireStoreProjectsDatabasesDocumentsWrite,++ -- ** firestore.projects.databases.exportDocuments+ FireStoreProjectsDatabasesExportDocumentsResource,+ FireStoreProjectsDatabasesExportDocuments (..),+ newFireStoreProjectsDatabasesExportDocuments,++ -- ** firestore.projects.databases.get+ FireStoreProjectsDatabasesGetResource,+ FireStoreProjectsDatabasesGet (..),+ newFireStoreProjectsDatabasesGet,++ -- ** firestore.projects.databases.importDocuments+ FireStoreProjectsDatabasesImportDocumentsResource,+ FireStoreProjectsDatabasesImportDocuments (..),+ newFireStoreProjectsDatabasesImportDocuments,++ -- ** firestore.projects.databases.list+ FireStoreProjectsDatabasesListResource,+ FireStoreProjectsDatabasesList (..),+ newFireStoreProjectsDatabasesList,++ -- ** firestore.projects.databases.operations.cancel+ FireStoreProjectsDatabasesOperationsCancelResource,+ FireStoreProjectsDatabasesOperationsCancel (..),+ newFireStoreProjectsDatabasesOperationsCancel,++ -- ** firestore.projects.databases.operations.delete+ FireStoreProjectsDatabasesOperationsDeleteResource,+ FireStoreProjectsDatabasesOperationsDelete (..),+ newFireStoreProjectsDatabasesOperationsDelete,++ -- ** firestore.projects.databases.operations.get+ FireStoreProjectsDatabasesOperationsGetResource,+ FireStoreProjectsDatabasesOperationsGet (..),+ newFireStoreProjectsDatabasesOperationsGet,++ -- ** firestore.projects.databases.operations.list+ FireStoreProjectsDatabasesOperationsListResource,+ FireStoreProjectsDatabasesOperationsList (..),+ newFireStoreProjectsDatabasesOperationsList,++ -- ** firestore.projects.databases.patch+ FireStoreProjectsDatabasesPatchResource,+ FireStoreProjectsDatabasesPatch (..),+ newFireStoreProjectsDatabasesPatch,++ -- ** firestore.projects.databases.restore+ FireStoreProjectsDatabasesRestoreResource,+ FireStoreProjectsDatabasesRestore (..),+ newFireStoreProjectsDatabasesRestore,++ -- ** firestore.projects.locations.backups.delete+ FireStoreProjectsLocationsBackupsDeleteResource,+ FireStoreProjectsLocationsBackupsDelete (..),+ newFireStoreProjectsLocationsBackupsDelete,++ -- ** firestore.projects.locations.backups.get+ FireStoreProjectsLocationsBackupsGetResource,+ FireStoreProjectsLocationsBackupsGet (..),+ newFireStoreProjectsLocationsBackupsGet,++ -- ** firestore.projects.locations.backups.list+ FireStoreProjectsLocationsBackupsListResource,+ FireStoreProjectsLocationsBackupsList (..),+ newFireStoreProjectsLocationsBackupsList,++ -- ** firestore.projects.locations.get+ FireStoreProjectsLocationsGetResource,+ FireStoreProjectsLocationsGet (..),+ newFireStoreProjectsLocationsGet,++ -- ** firestore.projects.locations.list+ FireStoreProjectsLocationsListResource,+ FireStoreProjectsLocationsList (..),+ newFireStoreProjectsLocationsList,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** Aggregation+ Aggregation (..),+ newAggregation,++ -- ** AggregationResult+ AggregationResult (..),+ newAggregationResult,++ -- ** AggregationResult_AggregateFields+ AggregationResult_AggregateFields (..),+ newAggregationResult_AggregateFields,++ -- ** ArrayValue+ ArrayValue (..),+ newArrayValue,++ -- ** Avg+ Avg (..),+ newAvg,++ -- ** BatchGetDocumentsRequest+ BatchGetDocumentsRequest (..),+ newBatchGetDocumentsRequest,++ -- ** BatchGetDocumentsResponse+ BatchGetDocumentsResponse (..),+ newBatchGetDocumentsResponse,++ -- ** BatchWriteRequest+ BatchWriteRequest (..),+ newBatchWriteRequest,++ -- ** BatchWriteRequest_Labels+ BatchWriteRequest_Labels (..),+ newBatchWriteRequest_Labels,++ -- ** BatchWriteResponse+ BatchWriteResponse (..),+ newBatchWriteResponse,++ -- ** BeginTransactionRequest+ BeginTransactionRequest (..),+ newBeginTransactionRequest,++ -- ** BeginTransactionResponse+ BeginTransactionResponse (..),+ newBeginTransactionResponse,++ -- ** BitSequence+ BitSequence (..),+ newBitSequence,++ -- ** BloomFilter+ BloomFilter (..),+ newBloomFilter,++ -- ** CollectionSelector+ CollectionSelector (..),+ newCollectionSelector,++ -- ** CommitRequest+ CommitRequest (..),+ newCommitRequest,++ -- ** CommitResponse+ CommitResponse (..),+ newCommitResponse,++ -- ** CompositeFilter+ CompositeFilter (..),+ newCompositeFilter,++ -- ** CompositeFilter_Op+ CompositeFilter_Op (..),++ -- ** Count+ Count (..),+ newCount,++ -- ** Cursor+ Cursor (..),+ newCursor,++ -- ** Document+ Document (..),+ newDocument,++ -- ** Document_Fields+ Document_Fields (..),+ newDocument_Fields,++ -- ** DocumentChange+ DocumentChange (..),+ newDocumentChange,++ -- ** DocumentDelete+ DocumentDelete (..),+ newDocumentDelete,++ -- ** DocumentMask+ DocumentMask (..),+ newDocumentMask,++ -- ** DocumentRemove+ DocumentRemove (..),+ newDocumentRemove,++ -- ** DocumentTransform+ DocumentTransform (..),+ newDocumentTransform,++ -- ** DocumentsTarget+ DocumentsTarget (..),+ newDocumentsTarget,++ -- ** Empty+ Empty (..),+ newEmpty,++ -- ** ExecutionStats+ ExecutionStats (..),+ newExecutionStats,++ -- ** ExecutionStats_DebugStats+ ExecutionStats_DebugStats (..),+ newExecutionStats_DebugStats,++ -- ** ExistenceFilter+ ExistenceFilter (..),+ newExistenceFilter,++ -- ** ExplainMetrics+ ExplainMetrics (..),+ newExplainMetrics,++ -- ** ExplainOptions+ ExplainOptions (..),+ newExplainOptions,++ -- ** FieldFilter+ FieldFilter (..),+ newFieldFilter,++ -- ** FieldFilter_Op+ FieldFilter_Op (..),++ -- ** FieldReference+ FieldReference (..),+ newFieldReference,++ -- ** FieldTransform+ FieldTransform (..),+ newFieldTransform,++ -- ** FieldTransform_SetToServerValue+ FieldTransform_SetToServerValue (..),++ -- ** Filter+ Filter (..),+ newFilter,++ -- ** FindNearest+ FindNearest (..),+ newFindNearest,++ -- ** FindNearest_DistanceMeasure+ FindNearest_DistanceMeasure (..),++ -- ** GoogleFirestoreAdminV1Backup+ GoogleFirestoreAdminV1Backup (..),+ newGoogleFirestoreAdminV1Backup,++ -- ** GoogleFirestoreAdminV1Backup_State+ GoogleFirestoreAdminV1Backup_State (..),++ -- ** GoogleFirestoreAdminV1BackupSchedule+ GoogleFirestoreAdminV1BackupSchedule (..),+ newGoogleFirestoreAdminV1BackupSchedule,++ -- ** GoogleFirestoreAdminV1BackupSource+ GoogleFirestoreAdminV1BackupSource (..),+ newGoogleFirestoreAdminV1BackupSource,++ -- ** GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata (..),+ newGoogleFirestoreAdminV1BulkDeleteDocumentsMetadata,++ -- ** GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState (..),++ -- ** GoogleFirestoreAdminV1BulkDeleteDocumentsRequest+ GoogleFirestoreAdminV1BulkDeleteDocumentsRequest (..),+ newGoogleFirestoreAdminV1BulkDeleteDocumentsRequest,++ -- ** GoogleFirestoreAdminV1CmekConfig+ GoogleFirestoreAdminV1CmekConfig (..),+ newGoogleFirestoreAdminV1CmekConfig,++ -- ** GoogleFirestoreAdminV1CreateDatabaseMetadata+ GoogleFirestoreAdminV1CreateDatabaseMetadata (..),+ newGoogleFirestoreAdminV1CreateDatabaseMetadata,++ -- ** GoogleFirestoreAdminV1CustomerManagedEncryptionOptions+ GoogleFirestoreAdminV1CustomerManagedEncryptionOptions (..),+ newGoogleFirestoreAdminV1CustomerManagedEncryptionOptions,++ -- ** GoogleFirestoreAdminV1DailyRecurrence+ GoogleFirestoreAdminV1DailyRecurrence (..),+ newGoogleFirestoreAdminV1DailyRecurrence,++ -- ** GoogleFirestoreAdminV1Database+ GoogleFirestoreAdminV1Database (..),+ newGoogleFirestoreAdminV1Database,++ -- ** GoogleFirestoreAdminV1Database_AppEngineIntegrationMode+ GoogleFirestoreAdminV1Database_AppEngineIntegrationMode (..),++ -- ** GoogleFirestoreAdminV1Database_ConcurrencyMode+ GoogleFirestoreAdminV1Database_ConcurrencyMode (..),++ -- ** GoogleFirestoreAdminV1Database_DeleteProtectionState+ GoogleFirestoreAdminV1Database_DeleteProtectionState (..),++ -- ** GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement+ GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement (..),++ -- ** GoogleFirestoreAdminV1Database_Type+ GoogleFirestoreAdminV1Database_Type (..),++ -- ** GoogleFirestoreAdminV1DeleteDatabaseMetadata+ GoogleFirestoreAdminV1DeleteDatabaseMetadata (..),+ newGoogleFirestoreAdminV1DeleteDatabaseMetadata,++ -- ** GoogleFirestoreAdminV1EncryptionConfig+ GoogleFirestoreAdminV1EncryptionConfig (..),+ newGoogleFirestoreAdminV1EncryptionConfig,++ -- ** GoogleFirestoreAdminV1ExportDocumentsMetadata+ GoogleFirestoreAdminV1ExportDocumentsMetadata (..),+ newGoogleFirestoreAdminV1ExportDocumentsMetadata,++ -- ** GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState (..),++ -- ** GoogleFirestoreAdminV1ExportDocumentsRequest+ GoogleFirestoreAdminV1ExportDocumentsRequest (..),+ newGoogleFirestoreAdminV1ExportDocumentsRequest,++ -- ** GoogleFirestoreAdminV1ExportDocumentsResponse+ GoogleFirestoreAdminV1ExportDocumentsResponse (..),+ newGoogleFirestoreAdminV1ExportDocumentsResponse,++ -- ** GoogleFirestoreAdminV1Field+ GoogleFirestoreAdminV1Field (..),+ newGoogleFirestoreAdminV1Field,++ -- ** GoogleFirestoreAdminV1FieldOperationMetadata+ GoogleFirestoreAdminV1FieldOperationMetadata (..),+ newGoogleFirestoreAdminV1FieldOperationMetadata,++ -- ** GoogleFirestoreAdminV1FieldOperationMetadata_State+ GoogleFirestoreAdminV1FieldOperationMetadata_State (..),++ -- ** GoogleFirestoreAdminV1FlatIndex+ GoogleFirestoreAdminV1FlatIndex (..),+ newGoogleFirestoreAdminV1FlatIndex,++ -- ** GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions+ GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions (..),+ newGoogleFirestoreAdminV1GoogleDefaultEncryptionOptions,++ -- ** GoogleFirestoreAdminV1ImportDocumentsMetadata+ GoogleFirestoreAdminV1ImportDocumentsMetadata (..),+ newGoogleFirestoreAdminV1ImportDocumentsMetadata,++ -- ** GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState (..),++ -- ** GoogleFirestoreAdminV1ImportDocumentsRequest+ GoogleFirestoreAdminV1ImportDocumentsRequest (..),+ newGoogleFirestoreAdminV1ImportDocumentsRequest,++ -- ** GoogleFirestoreAdminV1Index+ GoogleFirestoreAdminV1Index (..),+ newGoogleFirestoreAdminV1Index,++ -- ** GoogleFirestoreAdminV1Index_ApiScope+ GoogleFirestoreAdminV1Index_ApiScope (..),++ -- ** GoogleFirestoreAdminV1Index_QueryScope+ GoogleFirestoreAdminV1Index_QueryScope (..),++ -- ** GoogleFirestoreAdminV1Index_State+ GoogleFirestoreAdminV1Index_State (..),++ -- ** GoogleFirestoreAdminV1IndexConfig+ GoogleFirestoreAdminV1IndexConfig (..),+ newGoogleFirestoreAdminV1IndexConfig,++ -- ** GoogleFirestoreAdminV1IndexConfigDelta+ GoogleFirestoreAdminV1IndexConfigDelta (..),+ newGoogleFirestoreAdminV1IndexConfigDelta,++ -- ** GoogleFirestoreAdminV1IndexConfigDelta_ChangeType+ GoogleFirestoreAdminV1IndexConfigDelta_ChangeType (..),++ -- ** GoogleFirestoreAdminV1IndexField+ GoogleFirestoreAdminV1IndexField (..),+ newGoogleFirestoreAdminV1IndexField,++ -- ** GoogleFirestoreAdminV1IndexField_ArrayConfig+ GoogleFirestoreAdminV1IndexField_ArrayConfig (..),++ -- ** GoogleFirestoreAdminV1IndexField_Order+ GoogleFirestoreAdminV1IndexField_Order (..),++ -- ** GoogleFirestoreAdminV1IndexOperationMetadata+ GoogleFirestoreAdminV1IndexOperationMetadata (..),+ newGoogleFirestoreAdminV1IndexOperationMetadata,++ -- ** GoogleFirestoreAdminV1IndexOperationMetadata_State+ GoogleFirestoreAdminV1IndexOperationMetadata_State (..),++ -- ** GoogleFirestoreAdminV1ListBackupSchedulesResponse+ GoogleFirestoreAdminV1ListBackupSchedulesResponse (..),+ newGoogleFirestoreAdminV1ListBackupSchedulesResponse,++ -- ** GoogleFirestoreAdminV1ListBackupsResponse+ GoogleFirestoreAdminV1ListBackupsResponse (..),+ newGoogleFirestoreAdminV1ListBackupsResponse,++ -- ** GoogleFirestoreAdminV1ListDatabasesResponse+ GoogleFirestoreAdminV1ListDatabasesResponse (..),+ newGoogleFirestoreAdminV1ListDatabasesResponse,++ -- ** GoogleFirestoreAdminV1ListFieldsResponse+ GoogleFirestoreAdminV1ListFieldsResponse (..),+ newGoogleFirestoreAdminV1ListFieldsResponse,++ -- ** GoogleFirestoreAdminV1ListIndexesResponse+ GoogleFirestoreAdminV1ListIndexesResponse (..),+ newGoogleFirestoreAdminV1ListIndexesResponse,++ -- ** GoogleFirestoreAdminV1LocationMetadata+ GoogleFirestoreAdminV1LocationMetadata (..),+ newGoogleFirestoreAdminV1LocationMetadata,++ -- ** GoogleFirestoreAdminV1Progress+ GoogleFirestoreAdminV1Progress (..),+ newGoogleFirestoreAdminV1Progress,++ -- ** GoogleFirestoreAdminV1RestoreDatabaseMetadata+ GoogleFirestoreAdminV1RestoreDatabaseMetadata (..),+ newGoogleFirestoreAdminV1RestoreDatabaseMetadata,++ -- ** GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState (..),++ -- ** GoogleFirestoreAdminV1RestoreDatabaseRequest+ GoogleFirestoreAdminV1RestoreDatabaseRequest (..),+ newGoogleFirestoreAdminV1RestoreDatabaseRequest,++ -- ** GoogleFirestoreAdminV1SourceEncryptionOptions+ GoogleFirestoreAdminV1SourceEncryptionOptions (..),+ newGoogleFirestoreAdminV1SourceEncryptionOptions,++ -- ** GoogleFirestoreAdminV1SourceInfo+ GoogleFirestoreAdminV1SourceInfo (..),+ newGoogleFirestoreAdminV1SourceInfo,++ -- ** GoogleFirestoreAdminV1Stats+ GoogleFirestoreAdminV1Stats (..),+ newGoogleFirestoreAdminV1Stats,++ -- ** GoogleFirestoreAdminV1TtlConfig+ GoogleFirestoreAdminV1TtlConfig (..),+ newGoogleFirestoreAdminV1TtlConfig,++ -- ** GoogleFirestoreAdminV1TtlConfig_State+ GoogleFirestoreAdminV1TtlConfig_State (..),++ -- ** GoogleFirestoreAdminV1TtlConfigDelta+ GoogleFirestoreAdminV1TtlConfigDelta (..),+ newGoogleFirestoreAdminV1TtlConfigDelta,++ -- ** GoogleFirestoreAdminV1TtlConfigDelta_ChangeType+ GoogleFirestoreAdminV1TtlConfigDelta_ChangeType (..),++ -- ** GoogleFirestoreAdminV1UpdateDatabaseMetadata+ GoogleFirestoreAdminV1UpdateDatabaseMetadata (..),+ newGoogleFirestoreAdminV1UpdateDatabaseMetadata,++ -- ** GoogleFirestoreAdminV1VectorConfig+ GoogleFirestoreAdminV1VectorConfig (..),+ newGoogleFirestoreAdminV1VectorConfig,++ -- ** GoogleFirestoreAdminV1WeeklyRecurrence+ GoogleFirestoreAdminV1WeeklyRecurrence (..),+ newGoogleFirestoreAdminV1WeeklyRecurrence,++ -- ** GoogleFirestoreAdminV1WeeklyRecurrence_Day+ GoogleFirestoreAdminV1WeeklyRecurrence_Day (..),++ -- ** GoogleLongrunningCancelOperationRequest+ GoogleLongrunningCancelOperationRequest (..),+ newGoogleLongrunningCancelOperationRequest,++ -- ** GoogleLongrunningListOperationsResponse+ GoogleLongrunningListOperationsResponse (..),+ newGoogleLongrunningListOperationsResponse,++ -- ** GoogleLongrunningOperation+ GoogleLongrunningOperation (..),+ newGoogleLongrunningOperation,++ -- ** GoogleLongrunningOperation_Metadata+ GoogleLongrunningOperation_Metadata (..),+ newGoogleLongrunningOperation_Metadata,++ -- ** GoogleLongrunningOperation_Response+ GoogleLongrunningOperation_Response (..),+ newGoogleLongrunningOperation_Response,++ -- ** LatLng+ LatLng (..),+ newLatLng,++ -- ** ListCollectionIdsRequest+ ListCollectionIdsRequest (..),+ newListCollectionIdsRequest,++ -- ** ListCollectionIdsResponse+ ListCollectionIdsResponse (..),+ newListCollectionIdsResponse,++ -- ** ListDocumentsResponse+ ListDocumentsResponse (..),+ newListDocumentsResponse,++ -- ** ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- ** ListenRequest+ ListenRequest (..),+ newListenRequest,++ -- ** ListenRequest_Labels+ ListenRequest_Labels (..),+ newListenRequest_Labels,++ -- ** ListenResponse+ ListenResponse (..),+ newListenResponse,++ -- ** Location+ Location (..),+ newLocation,++ -- ** Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- ** Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- ** MapValue+ MapValue (..),+ newMapValue,++ -- ** MapValue_Fields+ MapValue_Fields (..),+ newMapValue_Fields,++ -- ** Order+ Order (..),+ newOrder,++ -- ** Order_Direction+ Order_Direction (..),++ -- ** PartitionQueryRequest+ PartitionQueryRequest (..),+ newPartitionQueryRequest,++ -- ** PartitionQueryResponse+ PartitionQueryResponse (..),+ newPartitionQueryResponse,++ -- ** PlanSummary+ PlanSummary (..),+ newPlanSummary,++ -- ** PlanSummary_IndexesUsedItem+ PlanSummary_IndexesUsedItem (..),+ newPlanSummary_IndexesUsedItem,++ -- ** Precondition+ Precondition (..),+ newPrecondition,++ -- ** Projection+ Projection (..),+ newProjection,++ -- ** QueryTarget+ QueryTarget (..),+ newQueryTarget,++ -- ** ReadOnly+ ReadOnly (..),+ newReadOnly,++ -- ** ReadWrite+ ReadWrite (..),+ newReadWrite,++ -- ** RollbackRequest+ RollbackRequest (..),+ newRollbackRequest,++ -- ** RunAggregationQueryRequest+ RunAggregationQueryRequest (..),+ newRunAggregationQueryRequest,++ -- ** RunAggregationQueryResponse+ RunAggregationQueryResponse (..),+ newRunAggregationQueryResponse,++ -- ** RunQueryRequest+ RunQueryRequest (..),+ newRunQueryRequest,++ -- ** RunQueryResponse+ RunQueryResponse (..),+ newRunQueryResponse,++ -- ** Status+ Status (..),+ newStatus,++ -- ** Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- ** StructuredAggregationQuery+ StructuredAggregationQuery (..),+ newStructuredAggregationQuery,++ -- ** StructuredQuery+ StructuredQuery (..),+ newStructuredQuery,++ -- ** Sum+ Sum (..),+ newSum,++ -- ** Target+ Target (..),+ newTarget,++ -- ** TargetChange+ TargetChange (..),+ newTargetChange,++ -- ** TargetChange_TargetChangeType+ TargetChange_TargetChangeType (..),++ -- ** TransactionOptions+ TransactionOptions (..),+ newTransactionOptions,++ -- ** UnaryFilter+ UnaryFilter (..),+ newUnaryFilter,++ -- ** UnaryFilter_Op+ UnaryFilter_Op (..),++ -- ** Value+ Value (..),+ newValue,++ -- ** Value_NullValue+ Value_NullValue (..),++ -- ** Write+ Write (..),+ newWrite,++ -- ** WriteRequest+ WriteRequest (..),+ newWriteRequest,++ -- ** WriteRequest_Labels+ WriteRequest_Labels (..),+ newWriteRequest_Labels,++ -- ** WriteResponse+ WriteResponse (..),+ newWriteResponse,++ -- ** WriteResult+ WriteResult (..),+ newWriteResult,+ )+where++import Gogol.FireStore.Projects.Databases.BackupSchedules.Create+import Gogol.FireStore.Projects.Databases.BackupSchedules.Delete+import Gogol.FireStore.Projects.Databases.BackupSchedules.Get+import Gogol.FireStore.Projects.Databases.BackupSchedules.List+import Gogol.FireStore.Projects.Databases.BackupSchedules.Patch+import Gogol.FireStore.Projects.Databases.BulkDeleteDocuments+import Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.Get+import Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.List+import Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.Patch+import Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Create+import Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Delete+import Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Get+import Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.List+import Gogol.FireStore.Projects.Databases.Create+import Gogol.FireStore.Projects.Databases.Delete+import Gogol.FireStore.Projects.Databases.Documents.BatchGet+import Gogol.FireStore.Projects.Databases.Documents.BatchWrite+import Gogol.FireStore.Projects.Databases.Documents.BeginTransaction+import Gogol.FireStore.Projects.Databases.Documents.Commit+import Gogol.FireStore.Projects.Databases.Documents.CreateDocument+import Gogol.FireStore.Projects.Databases.Documents.Delete+import Gogol.FireStore.Projects.Databases.Documents.Get+import Gogol.FireStore.Projects.Databases.Documents.List+import Gogol.FireStore.Projects.Databases.Documents.ListCollectionIds+import Gogol.FireStore.Projects.Databases.Documents.ListDocuments+import Gogol.FireStore.Projects.Databases.Documents.Listen+import Gogol.FireStore.Projects.Databases.Documents.PartitionQuery+import Gogol.FireStore.Projects.Databases.Documents.Patch+import Gogol.FireStore.Projects.Databases.Documents.Rollback+import Gogol.FireStore.Projects.Databases.Documents.RunAggregationQuery+import Gogol.FireStore.Projects.Databases.Documents.RunQuery+import Gogol.FireStore.Projects.Databases.Documents.Write+import Gogol.FireStore.Projects.Databases.ExportDocuments+import Gogol.FireStore.Projects.Databases.Get+import Gogol.FireStore.Projects.Databases.ImportDocuments+import Gogol.FireStore.Projects.Databases.List+import Gogol.FireStore.Projects.Databases.Operations.Cancel+import Gogol.FireStore.Projects.Databases.Operations.Delete+import Gogol.FireStore.Projects.Databases.Operations.Get+import Gogol.FireStore.Projects.Databases.Operations.List+import Gogol.FireStore.Projects.Databases.Patch+import Gogol.FireStore.Projects.Databases.Restore+import Gogol.FireStore.Projects.Locations.Backups.Delete+import Gogol.FireStore.Projects.Locations.Backups.Get+import Gogol.FireStore.Projects.Locations.Backups.List+import Gogol.FireStore.Projects.Locations.Get+import Gogol.FireStore.Projects.Locations.List+import Gogol.FireStore.Types
+ gen/Gogol/FireStore/Internal/Product.hs view
@@ -0,0 +1,5828 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Internal.Product+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Gogol.FireStore.Internal.Product+ ( -- * Aggregation+ Aggregation (..),+ newAggregation,++ -- * AggregationResult+ AggregationResult (..),+ newAggregationResult,++ -- * AggregationResult_AggregateFields+ AggregationResult_AggregateFields (..),+ newAggregationResult_AggregateFields,++ -- * ArrayValue+ ArrayValue (..),+ newArrayValue,++ -- * Avg+ Avg (..),+ newAvg,++ -- * BatchGetDocumentsRequest+ BatchGetDocumentsRequest (..),+ newBatchGetDocumentsRequest,++ -- * BatchGetDocumentsResponse+ BatchGetDocumentsResponse (..),+ newBatchGetDocumentsResponse,++ -- * BatchWriteRequest+ BatchWriteRequest (..),+ newBatchWriteRequest,++ -- * BatchWriteRequest_Labels+ BatchWriteRequest_Labels (..),+ newBatchWriteRequest_Labels,++ -- * BatchWriteResponse+ BatchWriteResponse (..),+ newBatchWriteResponse,++ -- * BeginTransactionRequest+ BeginTransactionRequest (..),+ newBeginTransactionRequest,++ -- * BeginTransactionResponse+ BeginTransactionResponse (..),+ newBeginTransactionResponse,++ -- * BitSequence+ BitSequence (..),+ newBitSequence,++ -- * BloomFilter+ BloomFilter (..),+ newBloomFilter,++ -- * CollectionSelector+ CollectionSelector (..),+ newCollectionSelector,++ -- * CommitRequest+ CommitRequest (..),+ newCommitRequest,++ -- * CommitResponse+ CommitResponse (..),+ newCommitResponse,++ -- * CompositeFilter+ CompositeFilter (..),+ newCompositeFilter,++ -- * Count+ Count (..),+ newCount,++ -- * Cursor+ Cursor (..),+ newCursor,++ -- * Document+ Document (..),+ newDocument,++ -- * Document_Fields+ Document_Fields (..),+ newDocument_Fields,++ -- * DocumentChange+ DocumentChange (..),+ newDocumentChange,++ -- * DocumentDelete+ DocumentDelete (..),+ newDocumentDelete,++ -- * DocumentMask+ DocumentMask (..),+ newDocumentMask,++ -- * DocumentRemove+ DocumentRemove (..),+ newDocumentRemove,++ -- * DocumentTransform+ DocumentTransform (..),+ newDocumentTransform,++ -- * DocumentsTarget+ DocumentsTarget (..),+ newDocumentsTarget,++ -- * Empty+ Empty (..),+ newEmpty,++ -- * ExecutionStats+ ExecutionStats (..),+ newExecutionStats,++ -- * ExecutionStats_DebugStats+ ExecutionStats_DebugStats (..),+ newExecutionStats_DebugStats,++ -- * ExistenceFilter+ ExistenceFilter (..),+ newExistenceFilter,++ -- * ExplainMetrics+ ExplainMetrics (..),+ newExplainMetrics,++ -- * ExplainOptions+ ExplainOptions (..),+ newExplainOptions,++ -- * FieldFilter+ FieldFilter (..),+ newFieldFilter,++ -- * FieldReference+ FieldReference (..),+ newFieldReference,++ -- * FieldTransform+ FieldTransform (..),+ newFieldTransform,++ -- * Filter+ Filter (..),+ newFilter,++ -- * FindNearest+ FindNearest (..),+ newFindNearest,++ -- * GoogleFirestoreAdminV1Backup+ GoogleFirestoreAdminV1Backup (..),+ newGoogleFirestoreAdminV1Backup,++ -- * GoogleFirestoreAdminV1BackupSchedule+ GoogleFirestoreAdminV1BackupSchedule (..),+ newGoogleFirestoreAdminV1BackupSchedule,++ -- * GoogleFirestoreAdminV1BackupSource+ GoogleFirestoreAdminV1BackupSource (..),+ newGoogleFirestoreAdminV1BackupSource,++ -- * GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata (..),+ newGoogleFirestoreAdminV1BulkDeleteDocumentsMetadata,++ -- * GoogleFirestoreAdminV1BulkDeleteDocumentsRequest+ GoogleFirestoreAdminV1BulkDeleteDocumentsRequest (..),+ newGoogleFirestoreAdminV1BulkDeleteDocumentsRequest,++ -- * GoogleFirestoreAdminV1CmekConfig+ GoogleFirestoreAdminV1CmekConfig (..),+ newGoogleFirestoreAdminV1CmekConfig,++ -- * GoogleFirestoreAdminV1CreateDatabaseMetadata+ GoogleFirestoreAdminV1CreateDatabaseMetadata (..),+ newGoogleFirestoreAdminV1CreateDatabaseMetadata,++ -- * GoogleFirestoreAdminV1CustomerManagedEncryptionOptions+ GoogleFirestoreAdminV1CustomerManagedEncryptionOptions (..),+ newGoogleFirestoreAdminV1CustomerManagedEncryptionOptions,++ -- * GoogleFirestoreAdminV1DailyRecurrence+ GoogleFirestoreAdminV1DailyRecurrence (..),+ newGoogleFirestoreAdminV1DailyRecurrence,++ -- * GoogleFirestoreAdminV1Database+ GoogleFirestoreAdminV1Database (..),+ newGoogleFirestoreAdminV1Database,++ -- * GoogleFirestoreAdminV1DeleteDatabaseMetadata+ GoogleFirestoreAdminV1DeleteDatabaseMetadata (..),+ newGoogleFirestoreAdminV1DeleteDatabaseMetadata,++ -- * GoogleFirestoreAdminV1EncryptionConfig+ GoogleFirestoreAdminV1EncryptionConfig (..),+ newGoogleFirestoreAdminV1EncryptionConfig,++ -- * GoogleFirestoreAdminV1ExportDocumentsMetadata+ GoogleFirestoreAdminV1ExportDocumentsMetadata (..),+ newGoogleFirestoreAdminV1ExportDocumentsMetadata,++ -- * GoogleFirestoreAdminV1ExportDocumentsRequest+ GoogleFirestoreAdminV1ExportDocumentsRequest (..),+ newGoogleFirestoreAdminV1ExportDocumentsRequest,++ -- * GoogleFirestoreAdminV1ExportDocumentsResponse+ GoogleFirestoreAdminV1ExportDocumentsResponse (..),+ newGoogleFirestoreAdminV1ExportDocumentsResponse,++ -- * GoogleFirestoreAdminV1Field+ GoogleFirestoreAdminV1Field (..),+ newGoogleFirestoreAdminV1Field,++ -- * GoogleFirestoreAdminV1FieldOperationMetadata+ GoogleFirestoreAdminV1FieldOperationMetadata (..),+ newGoogleFirestoreAdminV1FieldOperationMetadata,++ -- * GoogleFirestoreAdminV1FlatIndex+ GoogleFirestoreAdminV1FlatIndex (..),+ newGoogleFirestoreAdminV1FlatIndex,++ -- * GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions+ GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions (..),+ newGoogleFirestoreAdminV1GoogleDefaultEncryptionOptions,++ -- * GoogleFirestoreAdminV1ImportDocumentsMetadata+ GoogleFirestoreAdminV1ImportDocumentsMetadata (..),+ newGoogleFirestoreAdminV1ImportDocumentsMetadata,++ -- * GoogleFirestoreAdminV1ImportDocumentsRequest+ GoogleFirestoreAdminV1ImportDocumentsRequest (..),+ newGoogleFirestoreAdminV1ImportDocumentsRequest,++ -- * GoogleFirestoreAdminV1Index+ GoogleFirestoreAdminV1Index (..),+ newGoogleFirestoreAdminV1Index,++ -- * GoogleFirestoreAdminV1IndexConfig+ GoogleFirestoreAdminV1IndexConfig (..),+ newGoogleFirestoreAdminV1IndexConfig,++ -- * GoogleFirestoreAdminV1IndexConfigDelta+ GoogleFirestoreAdminV1IndexConfigDelta (..),+ newGoogleFirestoreAdminV1IndexConfigDelta,++ -- * GoogleFirestoreAdminV1IndexField+ GoogleFirestoreAdminV1IndexField (..),+ newGoogleFirestoreAdminV1IndexField,++ -- * GoogleFirestoreAdminV1IndexOperationMetadata+ GoogleFirestoreAdminV1IndexOperationMetadata (..),+ newGoogleFirestoreAdminV1IndexOperationMetadata,++ -- * GoogleFirestoreAdminV1ListBackupSchedulesResponse+ GoogleFirestoreAdminV1ListBackupSchedulesResponse (..),+ newGoogleFirestoreAdminV1ListBackupSchedulesResponse,++ -- * GoogleFirestoreAdminV1ListBackupsResponse+ GoogleFirestoreAdminV1ListBackupsResponse (..),+ newGoogleFirestoreAdminV1ListBackupsResponse,++ -- * GoogleFirestoreAdminV1ListDatabasesResponse+ GoogleFirestoreAdminV1ListDatabasesResponse (..),+ newGoogleFirestoreAdminV1ListDatabasesResponse,++ -- * GoogleFirestoreAdminV1ListFieldsResponse+ GoogleFirestoreAdminV1ListFieldsResponse (..),+ newGoogleFirestoreAdminV1ListFieldsResponse,++ -- * GoogleFirestoreAdminV1ListIndexesResponse+ GoogleFirestoreAdminV1ListIndexesResponse (..),+ newGoogleFirestoreAdminV1ListIndexesResponse,++ -- * GoogleFirestoreAdminV1LocationMetadata+ GoogleFirestoreAdminV1LocationMetadata (..),+ newGoogleFirestoreAdminV1LocationMetadata,++ -- * GoogleFirestoreAdminV1Progress+ GoogleFirestoreAdminV1Progress (..),+ newGoogleFirestoreAdminV1Progress,++ -- * GoogleFirestoreAdminV1RestoreDatabaseMetadata+ GoogleFirestoreAdminV1RestoreDatabaseMetadata (..),+ newGoogleFirestoreAdminV1RestoreDatabaseMetadata,++ -- * GoogleFirestoreAdminV1RestoreDatabaseRequest+ GoogleFirestoreAdminV1RestoreDatabaseRequest (..),+ newGoogleFirestoreAdminV1RestoreDatabaseRequest,++ -- * GoogleFirestoreAdminV1SourceEncryptionOptions+ GoogleFirestoreAdminV1SourceEncryptionOptions (..),+ newGoogleFirestoreAdminV1SourceEncryptionOptions,++ -- * GoogleFirestoreAdminV1SourceInfo+ GoogleFirestoreAdminV1SourceInfo (..),+ newGoogleFirestoreAdminV1SourceInfo,++ -- * GoogleFirestoreAdminV1Stats+ GoogleFirestoreAdminV1Stats (..),+ newGoogleFirestoreAdminV1Stats,++ -- * GoogleFirestoreAdminV1TtlConfig+ GoogleFirestoreAdminV1TtlConfig (..),+ newGoogleFirestoreAdminV1TtlConfig,++ -- * GoogleFirestoreAdminV1TtlConfigDelta+ GoogleFirestoreAdminV1TtlConfigDelta (..),+ newGoogleFirestoreAdminV1TtlConfigDelta,++ -- * GoogleFirestoreAdminV1UpdateDatabaseMetadata+ GoogleFirestoreAdminV1UpdateDatabaseMetadata (..),+ newGoogleFirestoreAdminV1UpdateDatabaseMetadata,++ -- * GoogleFirestoreAdminV1VectorConfig+ GoogleFirestoreAdminV1VectorConfig (..),+ newGoogleFirestoreAdminV1VectorConfig,++ -- * GoogleFirestoreAdminV1WeeklyRecurrence+ GoogleFirestoreAdminV1WeeklyRecurrence (..),+ newGoogleFirestoreAdminV1WeeklyRecurrence,++ -- * GoogleLongrunningCancelOperationRequest+ GoogleLongrunningCancelOperationRequest (..),+ newGoogleLongrunningCancelOperationRequest,++ -- * GoogleLongrunningListOperationsResponse+ GoogleLongrunningListOperationsResponse (..),+ newGoogleLongrunningListOperationsResponse,++ -- * GoogleLongrunningOperation+ GoogleLongrunningOperation (..),+ newGoogleLongrunningOperation,++ -- * GoogleLongrunningOperation_Metadata+ GoogleLongrunningOperation_Metadata (..),+ newGoogleLongrunningOperation_Metadata,++ -- * GoogleLongrunningOperation_Response+ GoogleLongrunningOperation_Response (..),+ newGoogleLongrunningOperation_Response,++ -- * LatLng+ LatLng (..),+ newLatLng,++ -- * ListCollectionIdsRequest+ ListCollectionIdsRequest (..),+ newListCollectionIdsRequest,++ -- * ListCollectionIdsResponse+ ListCollectionIdsResponse (..),+ newListCollectionIdsResponse,++ -- * ListDocumentsResponse+ ListDocumentsResponse (..),+ newListDocumentsResponse,++ -- * ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- * ListenRequest+ ListenRequest (..),+ newListenRequest,++ -- * ListenRequest_Labels+ ListenRequest_Labels (..),+ newListenRequest_Labels,++ -- * ListenResponse+ ListenResponse (..),+ newListenResponse,++ -- * Location+ Location (..),+ newLocation,++ -- * Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- * Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- * MapValue+ MapValue (..),+ newMapValue,++ -- * MapValue_Fields+ MapValue_Fields (..),+ newMapValue_Fields,++ -- * Order+ Order (..),+ newOrder,++ -- * PartitionQueryRequest+ PartitionQueryRequest (..),+ newPartitionQueryRequest,++ -- * PartitionQueryResponse+ PartitionQueryResponse (..),+ newPartitionQueryResponse,++ -- * PlanSummary+ PlanSummary (..),+ newPlanSummary,++ -- * PlanSummary_IndexesUsedItem+ PlanSummary_IndexesUsedItem (..),+ newPlanSummary_IndexesUsedItem,++ -- * Precondition+ Precondition (..),+ newPrecondition,++ -- * Projection+ Projection (..),+ newProjection,++ -- * QueryTarget+ QueryTarget (..),+ newQueryTarget,++ -- * ReadOnly+ ReadOnly (..),+ newReadOnly,++ -- * ReadWrite+ ReadWrite (..),+ newReadWrite,++ -- * RollbackRequest+ RollbackRequest (..),+ newRollbackRequest,++ -- * RunAggregationQueryRequest+ RunAggregationQueryRequest (..),+ newRunAggregationQueryRequest,++ -- * RunAggregationQueryResponse+ RunAggregationQueryResponse (..),+ newRunAggregationQueryResponse,++ -- * RunQueryRequest+ RunQueryRequest (..),+ newRunQueryRequest,++ -- * RunQueryResponse+ RunQueryResponse (..),+ newRunQueryResponse,++ -- * Status+ Status (..),+ newStatus,++ -- * Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- * StructuredAggregationQuery+ StructuredAggregationQuery (..),+ newStructuredAggregationQuery,++ -- * StructuredQuery+ StructuredQuery (..),+ newStructuredQuery,++ -- * Sum+ Sum (..),+ newSum,++ -- * Target+ Target (..),+ newTarget,++ -- * TargetChange+ TargetChange (..),+ newTargetChange,++ -- * TransactionOptions+ TransactionOptions (..),+ newTransactionOptions,++ -- * UnaryFilter+ UnaryFilter (..),+ newUnaryFilter,++ -- * Value+ Value (..),+ newValue,++ -- * Write+ Write (..),+ newWrite,++ -- * WriteRequest+ WriteRequest (..),+ newWriteRequest,++ -- * WriteRequest_Labels+ WriteRequest_Labels (..),+ newWriteRequest_Labels,++ -- * WriteResponse+ WriteResponse (..),+ newWriteResponse,++ -- * WriteResult+ WriteResult (..),+ newWriteResult,+ )+where++import Gogol.FireStore.Internal.Sum+import Gogol.Prelude qualified as Core++-- | Defines an aggregation that produces a single result.+--+-- /See:/ 'newAggregation' smart constructor.+data Aggregation = Aggregation+ { -- | Optional. Optional name of the field to store the result of the aggregation into. If not provided, Firestore will pick a default name following the format @field_@. For example: @AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... );@ becomes: @AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS field_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS field_2 OVER ( ... );@ Requires: * Must be unique across all aggregation aliases. * Conform to document field name limitations.+ alias :: (Core.Maybe Core.Text),+ -- | Average aggregator.+ avg :: (Core.Maybe Avg),+ -- | Count aggregator.+ count :: (Core.Maybe Count),+ -- | Sum aggregator.+ sum :: (Core.Maybe Sum)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Aggregation' with the minimum fields required to make a request.+newAggregation ::+ Aggregation+newAggregation =+ Aggregation+ { alias = Core.Nothing,+ avg = Core.Nothing,+ count = Core.Nothing,+ sum = Core.Nothing+ }++instance Core.FromJSON Aggregation where+ parseJSON =+ Core.withObject+ "Aggregation"+ ( \o ->+ Aggregation+ Core.<$> (o Core..:? "alias")+ Core.<*> (o Core..:? "avg")+ Core.<*> (o Core..:? "count")+ Core.<*> (o Core..:? "sum")+ )++instance Core.ToJSON Aggregation where+ toJSON Aggregation {..} =+ Core.object+ ( Core.catMaybes+ [ ("alias" Core..=) Core.<$> alias,+ ("avg" Core..=) Core.<$> avg,+ ("count" Core..=) Core.<$> count,+ ("sum" Core..=) Core.<$> sum+ ]+ )++-- | The result of a single bucket from a Firestore aggregation query. The keys of @aggregate_fields@ are the same for all results in an aggregation query, unlike document queries which can have different fields present for each result.+--+-- /See:/ 'newAggregationResult' smart constructor.+newtype AggregationResult = AggregationResult+ { -- | The result of the aggregation functions, ex: @COUNT(*) AS total_docs@. The key is the alias assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.+ aggregateFields :: (Core.Maybe AggregationResult_AggregateFields)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AggregationResult' with the minimum fields required to make a request.+newAggregationResult ::+ AggregationResult+newAggregationResult =+ AggregationResult {aggregateFields = Core.Nothing}++instance Core.FromJSON AggregationResult where+ parseJSON =+ Core.withObject+ "AggregationResult"+ (\o -> AggregationResult Core.<$> (o Core..:? "aggregateFields"))++instance Core.ToJSON AggregationResult where+ toJSON AggregationResult {..} =+ Core.object+ ( Core.catMaybes+ [("aggregateFields" Core..=) Core.<$> aggregateFields]+ )++-- | The result of the aggregation functions, ex: @COUNT(*) AS total_docs@. The key is the alias assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.+--+-- /See:/ 'newAggregationResult_AggregateFields' smart constructor.+newtype AggregationResult_AggregateFields = AggregationResult_AggregateFields+ { additional :: (Core.HashMap Core.Text Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AggregationResult_AggregateFields' with the minimum fields required to make a request.+newAggregationResult_AggregateFields ::+ -- | See 'additional'.+ Core.HashMap Core.Text Value ->+ AggregationResult_AggregateFields+newAggregationResult_AggregateFields additional =+ AggregationResult_AggregateFields {additional = additional}++instance Core.FromJSON AggregationResult_AggregateFields where+ parseJSON =+ Core.withObject+ "AggregationResult_AggregateFields"+ ( \o ->+ AggregationResult_AggregateFields+ Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON AggregationResult_AggregateFields where+ toJSON AggregationResult_AggregateFields {..} =+ Core.toJSON additional++-- | An array value.+--+-- /See:/ 'newArrayValue' smart constructor.+newtype ArrayValue = ArrayValue+ { -- | Values in the array.+ values :: (Core.Maybe [Value])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ArrayValue' with the minimum fields required to make a request.+newArrayValue ::+ ArrayValue+newArrayValue = ArrayValue {values = Core.Nothing}++instance Core.FromJSON ArrayValue where+ parseJSON =+ Core.withObject+ "ArrayValue"+ (\o -> ArrayValue Core.<$> (o Core..:? "values"))++instance Core.ToJSON ArrayValue where+ toJSON ArrayValue {..} =+ Core.object (Core.catMaybes [("values" Core..=) Core.<$> values])++-- | Average of the values of the requested field. * Only numeric values will be aggregated. All non-numeric values including @NULL@ are skipped. * If the aggregated values contain @NaN@, returns @NaN@. Infinity math follows IEEE-754 standards. * If the aggregated value set is empty, returns @NULL@. * Always returns the result as a double.+--+-- /See:/ 'newAvg' smart constructor.+newtype Avg = Avg+ { -- | The field to aggregate on.+ field :: (Core.Maybe FieldReference)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Avg' with the minimum fields required to make a request.+newAvg ::+ Avg+newAvg = Avg {field = Core.Nothing}++instance Core.FromJSON Avg where+ parseJSON =+ Core.withObject "Avg" (\o -> Avg Core.<$> (o Core..:? "field"))++instance Core.ToJSON Avg where+ toJSON Avg {..} =+ Core.object (Core.catMaybes [("field" Core..=) Core.<$> field])++-- | The request for Firestore.BatchGetDocuments.+--+-- /See:/ 'newBatchGetDocumentsRequest' smart constructor.+data BatchGetDocumentsRequest = BatchGetDocumentsRequest+ { -- | The names of the documents to retrieve. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. The request will fail if any of the document is not a child resource of the given @database@. Duplicate names will be elided.+ documents :: (Core.Maybe [Core.Text]),+ -- | The fields to return. If not set, returns all fields. If a document has a field that is not present in this mask, that field will not be returned in the response.+ mask :: (Core.Maybe DocumentMask),+ -- | Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.+ newTransaction' :: (Core.Maybe TransactionOptions),+ -- | Reads documents as they were at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.+ readTime :: (Core.Maybe Core.DateTime),+ -- | Reads documents in a transaction.+ transaction :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BatchGetDocumentsRequest' with the minimum fields required to make a request.+newBatchGetDocumentsRequest ::+ BatchGetDocumentsRequest+newBatchGetDocumentsRequest =+ BatchGetDocumentsRequest+ { documents = Core.Nothing,+ mask = Core.Nothing,+ newTransaction' = Core.Nothing,+ readTime = Core.Nothing,+ transaction = Core.Nothing+ }++instance Core.FromJSON BatchGetDocumentsRequest where+ parseJSON =+ Core.withObject+ "BatchGetDocumentsRequest"+ ( \o ->+ BatchGetDocumentsRequest+ Core.<$> (o Core..:? "documents")+ Core.<*> (o Core..:? "mask")+ Core.<*> (o Core..:? "newTransaction")+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "transaction")+ )++instance Core.ToJSON BatchGetDocumentsRequest where+ toJSON BatchGetDocumentsRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("documents" Core..=) Core.<$> documents,+ ("mask" Core..=) Core.<$> mask,+ ("newTransaction" Core..=) Core.<$> newTransaction',+ ("readTime" Core..=) Core.<$> readTime,+ ("transaction" Core..=) Core.<$> transaction+ ]+ )++-- | The streamed response for Firestore.BatchGetDocuments.+--+-- /See:/ 'newBatchGetDocumentsResponse' smart constructor.+data BatchGetDocumentsResponse = BatchGetDocumentsResponse+ { -- | A document that was requested.+ found :: (Core.Maybe Document),+ -- | A document name that was requested but does not exist. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@.+ missing :: (Core.Maybe Core.Text),+ -- | The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.+ readTime :: (Core.Maybe Core.DateTime),+ -- | The transaction that was started as part of this request. Will only be set in the first response, and only if BatchGetDocumentsRequest.new_transaction was set in the request.+ transaction :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BatchGetDocumentsResponse' with the minimum fields required to make a request.+newBatchGetDocumentsResponse ::+ BatchGetDocumentsResponse+newBatchGetDocumentsResponse =+ BatchGetDocumentsResponse+ { found = Core.Nothing,+ missing = Core.Nothing,+ readTime = Core.Nothing,+ transaction = Core.Nothing+ }++instance Core.FromJSON BatchGetDocumentsResponse where+ parseJSON =+ Core.withObject+ "BatchGetDocumentsResponse"+ ( \o ->+ BatchGetDocumentsResponse+ Core.<$> (o Core..:? "found")+ Core.<*> (o Core..:? "missing")+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "transaction")+ )++instance Core.ToJSON BatchGetDocumentsResponse where+ toJSON BatchGetDocumentsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("found" Core..=) Core.<$> found,+ ("missing" Core..=) Core.<$> missing,+ ("readTime" Core..=) Core.<$> readTime,+ ("transaction" Core..=) Core.<$> transaction+ ]+ )++-- | The request for Firestore.BatchWrite.+--+-- /See:/ 'newBatchWriteRequest' smart constructor.+data BatchWriteRequest = BatchWriteRequest+ { -- | Labels associated with this batch write.+ labels :: (Core.Maybe BatchWriteRequest_Labels),+ -- | The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.+ writes :: (Core.Maybe [Write])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BatchWriteRequest' with the minimum fields required to make a request.+newBatchWriteRequest ::+ BatchWriteRequest+newBatchWriteRequest =+ BatchWriteRequest {labels = Core.Nothing, writes = Core.Nothing}++instance Core.FromJSON BatchWriteRequest where+ parseJSON =+ Core.withObject+ "BatchWriteRequest"+ ( \o ->+ BatchWriteRequest+ Core.<$> (o Core..:? "labels")+ Core.<*> (o Core..:? "writes")+ )++instance Core.ToJSON BatchWriteRequest where+ toJSON BatchWriteRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("labels" Core..=) Core.<$> labels,+ ("writes" Core..=) Core.<$> writes+ ]+ )++-- | Labels associated with this batch write.+--+-- /See:/ 'newBatchWriteRequest_Labels' smart constructor.+newtype BatchWriteRequest_Labels = BatchWriteRequest_Labels+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BatchWriteRequest_Labels' with the minimum fields required to make a request.+newBatchWriteRequest_Labels ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ BatchWriteRequest_Labels+newBatchWriteRequest_Labels additional =+ BatchWriteRequest_Labels {additional = additional}++instance Core.FromJSON BatchWriteRequest_Labels where+ parseJSON =+ Core.withObject+ "BatchWriteRequest_Labels"+ (\o -> BatchWriteRequest_Labels Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON BatchWriteRequest_Labels where+ toJSON BatchWriteRequest_Labels {..} = Core.toJSON additional++-- | The response from Firestore.BatchWrite.+--+-- /See:/ 'newBatchWriteResponse' smart constructor.+data BatchWriteResponse = BatchWriteResponse+ { -- | The status of applying the writes. This i-th write status corresponds to the i-th write in the request.+ status :: (Core.Maybe [Status]),+ -- | The result of applying the writes. This i-th write result corresponds to the i-th write in the request.+ writeResults :: (Core.Maybe [WriteResult])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BatchWriteResponse' with the minimum fields required to make a request.+newBatchWriteResponse ::+ BatchWriteResponse+newBatchWriteResponse =+ BatchWriteResponse+ { status = Core.Nothing,+ writeResults = Core.Nothing+ }++instance Core.FromJSON BatchWriteResponse where+ parseJSON =+ Core.withObject+ "BatchWriteResponse"+ ( \o ->+ BatchWriteResponse+ Core.<$> (o Core..:? "status")+ Core.<*> (o Core..:? "writeResults")+ )++instance Core.ToJSON BatchWriteResponse where+ toJSON BatchWriteResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("status" Core..=) Core.<$> status,+ ("writeResults" Core..=) Core.<$> writeResults+ ]+ )++-- | The request for Firestore.BeginTransaction.+--+-- /See:/ 'newBeginTransactionRequest' smart constructor.+newtype BeginTransactionRequest = BeginTransactionRequest+ { -- | The options for the transaction. Defaults to a read-write transaction.+ options :: (Core.Maybe TransactionOptions)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BeginTransactionRequest' with the minimum fields required to make a request.+newBeginTransactionRequest ::+ BeginTransactionRequest+newBeginTransactionRequest =+ BeginTransactionRequest {options = Core.Nothing}++instance Core.FromJSON BeginTransactionRequest where+ parseJSON =+ Core.withObject+ "BeginTransactionRequest"+ (\o -> BeginTransactionRequest Core.<$> (o Core..:? "options"))++instance Core.ToJSON BeginTransactionRequest where+ toJSON BeginTransactionRequest {..} =+ Core.object+ (Core.catMaybes [("options" Core..=) Core.<$> options])++-- | The response for Firestore.BeginTransaction.+--+-- /See:/ 'newBeginTransactionResponse' smart constructor.+newtype BeginTransactionResponse = BeginTransactionResponse+ { -- | The transaction that was started.+ transaction :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BeginTransactionResponse' with the minimum fields required to make a request.+newBeginTransactionResponse ::+ BeginTransactionResponse+newBeginTransactionResponse =+ BeginTransactionResponse {transaction = Core.Nothing}++instance Core.FromJSON BeginTransactionResponse where+ parseJSON =+ Core.withObject+ "BeginTransactionResponse"+ ( \o ->+ BeginTransactionResponse Core.<$> (o Core..:? "transaction")+ )++instance Core.ToJSON BeginTransactionResponse where+ toJSON BeginTransactionResponse {..} =+ Core.object+ (Core.catMaybes [("transaction" Core..=) Core.<$> transaction])++-- | A sequence of bits, encoded in a byte array. Each byte in the @bitmap@ byte array stores 8 bits of the sequence. The only exception is the last byte, which may store 8 /or fewer/ bits. The @padding@ defines the number of bits of the last byte to be ignored as \"padding\". The values of these \"padding\" bits are unspecified and must be ignored. To retrieve the first bit, bit 0, calculate: @(bitmap[0] & 0x01) != 0@. To retrieve the second bit, bit 1, calculate: @(bitmap[0] & 0x02) != 0@. To retrieve the third bit, bit 2, calculate: @(bitmap[0] & 0x04) != 0@. To retrieve the fourth bit, bit 3, calculate: @(bitmap[0] & 0x08) != 0@. To retrieve bit n, calculate: @(bitmap[n \/ 8] & (0x01 \<\< (n % 8))) != 0@. The \"size\" of a @BitSequence@ (the number of bits it contains) is calculated by this formula: @(bitmap.length * 8) - padding@.+--+-- /See:/ 'newBitSequence' smart constructor.+data BitSequence = BitSequence+ { -- | The bytes that encode the bit sequence. May have a length of zero.+ bitmap :: (Core.Maybe Core.Base64),+ -- | The number of bits of the last byte in @bitmap@ to ignore as \"padding\". If the length of @bitmap@ is zero, then this value must be @0@. Otherwise, this value must be between 0 and 7, inclusive.+ padding :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BitSequence' with the minimum fields required to make a request.+newBitSequence ::+ BitSequence+newBitSequence =+ BitSequence {bitmap = Core.Nothing, padding = Core.Nothing}++instance Core.FromJSON BitSequence where+ parseJSON =+ Core.withObject+ "BitSequence"+ ( \o ->+ BitSequence+ Core.<$> (o Core..:? "bitmap")+ Core.<*> (o Core..:? "padding")+ )++instance Core.ToJSON BitSequence where+ toJSON BitSequence {..} =+ Core.object+ ( Core.catMaybes+ [ ("bitmap" Core..=) Core.<$> bitmap,+ ("padding" Core..=) Core.<$> padding+ ]+ )++-- | A bloom filter (https:\/\/en.wikipedia.org\/wiki\/Bloom_filter). The bloom filter hashes the entries with MD5 and treats the resulting 128-bit hash as 2 distinct 64-bit hash values, interpreted as unsigned integers using 2\'s complement encoding. These two hash values, named @h1@ and @h2@, are then used to compute the @hash_count@ hash values using the formula, starting at @i=0@: h(i) = h1 + (i * h2) These resulting values are then taken modulo the number of bits in the bloom filter to get the bits of the bloom filter to test for the given entry.+--+-- /See:/ 'newBloomFilter' smart constructor.+data BloomFilter = BloomFilter+ { -- | The bloom filter data.+ bits :: (Core.Maybe BitSequence),+ -- | The number of hashes used by the algorithm.+ hashCount :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BloomFilter' with the minimum fields required to make a request.+newBloomFilter ::+ BloomFilter+newBloomFilter =+ BloomFilter {bits = Core.Nothing, hashCount = Core.Nothing}++instance Core.FromJSON BloomFilter where+ parseJSON =+ Core.withObject+ "BloomFilter"+ ( \o ->+ BloomFilter+ Core.<$> (o Core..:? "bits")+ Core.<*> (o Core..:? "hashCount")+ )++instance Core.ToJSON BloomFilter where+ toJSON BloomFilter {..} =+ Core.object+ ( Core.catMaybes+ [ ("bits" Core..=) Core.<$> bits,+ ("hashCount" Core..=) Core.<$> hashCount+ ]+ )++-- | A selection of a collection, such as @messages as m1@.+--+-- /See:/ 'newCollectionSelector' smart constructor.+data CollectionSelector = CollectionSelector+ { -- | When false, selects only collections that are immediate children of the @parent@ specified in the containing @RunQueryRequest@. When true, selects all descendant collections.+ allDescendants :: (Core.Maybe Core.Bool),+ -- | The collection ID. When set, selects only collections with this ID.+ collectionId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CollectionSelector' with the minimum fields required to make a request.+newCollectionSelector ::+ CollectionSelector+newCollectionSelector =+ CollectionSelector+ { allDescendants = Core.Nothing,+ collectionId = Core.Nothing+ }++instance Core.FromJSON CollectionSelector where+ parseJSON =+ Core.withObject+ "CollectionSelector"+ ( \o ->+ CollectionSelector+ Core.<$> (o Core..:? "allDescendants")+ Core.<*> (o Core..:? "collectionId")+ )++instance Core.ToJSON CollectionSelector where+ toJSON CollectionSelector {..} =+ Core.object+ ( Core.catMaybes+ [ ("allDescendants" Core..=) Core.<$> allDescendants,+ ("collectionId" Core..=) Core.<$> collectionId+ ]+ )++-- | The request for Firestore.Commit.+--+-- /See:/ 'newCommitRequest' smart constructor.+data CommitRequest = CommitRequest+ { -- | If set, applies all writes in this transaction, and commits it.+ transaction :: (Core.Maybe Core.Base64),+ -- | The writes to apply. Always executed atomically and in order.+ writes :: (Core.Maybe [Write])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CommitRequest' with the minimum fields required to make a request.+newCommitRequest ::+ CommitRequest+newCommitRequest =+ CommitRequest {transaction = Core.Nothing, writes = Core.Nothing}++instance Core.FromJSON CommitRequest where+ parseJSON =+ Core.withObject+ "CommitRequest"+ ( \o ->+ CommitRequest+ Core.<$> (o Core..:? "transaction")+ Core.<*> (o Core..:? "writes")+ )++instance Core.ToJSON CommitRequest where+ toJSON CommitRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("transaction" Core..=) Core.<$> transaction,+ ("writes" Core..=) Core.<$> writes+ ]+ )++-- | The response for Firestore.Commit.+--+-- /See:/ 'newCommitResponse' smart constructor.+data CommitResponse = CommitResponse+ { -- | The time at which the commit occurred. Any read with an equal or greater @read_time@ is guaranteed to see the effects of the commit.+ commitTime :: (Core.Maybe Core.DateTime),+ -- | The result of applying the writes. This i-th write result corresponds to the i-th write in the request.+ writeResults :: (Core.Maybe [WriteResult])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CommitResponse' with the minimum fields required to make a request.+newCommitResponse ::+ CommitResponse+newCommitResponse =+ CommitResponse+ { commitTime = Core.Nothing,+ writeResults = Core.Nothing+ }++instance Core.FromJSON CommitResponse where+ parseJSON =+ Core.withObject+ "CommitResponse"+ ( \o ->+ CommitResponse+ Core.<$> (o Core..:? "commitTime")+ Core.<*> (o Core..:? "writeResults")+ )++instance Core.ToJSON CommitResponse where+ toJSON CommitResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("commitTime" Core..=) Core.<$> commitTime,+ ("writeResults" Core..=) Core.<$> writeResults+ ]+ )++-- | A filter that merges multiple other filters using the given operator.+--+-- /See:/ 'newCompositeFilter' smart constructor.+data CompositeFilter = CompositeFilter+ { -- | The list of filters to combine. Requires: * At least one filter is present.+ filters :: (Core.Maybe [Filter]),+ -- | The operator for combining multiple filters.+ op :: (Core.Maybe CompositeFilter_Op)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CompositeFilter' with the minimum fields required to make a request.+newCompositeFilter ::+ CompositeFilter+newCompositeFilter =+ CompositeFilter {filters = Core.Nothing, op = Core.Nothing}++instance Core.FromJSON CompositeFilter where+ parseJSON =+ Core.withObject+ "CompositeFilter"+ ( \o ->+ CompositeFilter+ Core.<$> (o Core..:? "filters")+ Core.<*> (o Core..:? "op")+ )++instance Core.ToJSON CompositeFilter where+ toJSON CompositeFilter {..} =+ Core.object+ ( Core.catMaybes+ [("filters" Core..=) Core.<$> filters, ("op" Core..=) Core.<$> op]+ )++-- | Count of documents that match the query. The @COUNT(*)@ aggregation function operates on the entire document so it does not require a field reference.+--+-- /See:/ 'newCount' smart constructor.+newtype Count = Count+ { -- | Optional. Optional constraint on the maximum number of documents to count. This provides a way to set an upper bound on the number of documents to scan, limiting latency, and cost. Unspecified is interpreted as no bound. High-Level Example: @AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );@ Requires: * Must be greater than zero when present.+ upTo :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Count' with the minimum fields required to make a request.+newCount ::+ Count+newCount = Count {upTo = Core.Nothing}++instance Core.FromJSON Count where+ parseJSON =+ Core.withObject+ "Count"+ ( \o ->+ Count+ Core.<$> (o Core..:? "upTo" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON Count where+ toJSON Count {..} =+ Core.object+ ( Core.catMaybes+ [("upTo" Core..=) Core.. Core.AsText Core.<$> upTo]+ )++-- | A position in a query result set.+--+-- /See:/ 'newCursor' smart constructor.+data Cursor = Cursor+ { -- | If the position is just before or just after the given values, relative to the sort order defined by the query.+ before :: (Core.Maybe Core.Bool),+ -- | The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause.+ values :: (Core.Maybe [Value])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Cursor' with the minimum fields required to make a request.+newCursor ::+ Cursor+newCursor = Cursor {before = Core.Nothing, values = Core.Nothing}++instance Core.FromJSON Cursor where+ parseJSON =+ Core.withObject+ "Cursor"+ ( \o ->+ Cursor+ Core.<$> (o Core..:? "before")+ Core.<*> (o Core..:? "values")+ )++instance Core.ToJSON Cursor where+ toJSON Cursor {..} =+ Core.object+ ( Core.catMaybes+ [ ("before" Core..=) Core.<$> before,+ ("values" Core..=) Core.<$> values+ ]+ )++-- | A Firestore document. Must not exceed 1 MiB - 4 bytes.+--+-- /See:/ 'newDocument' smart constructor.+data Document = Document+ { -- | Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the @read_time@ of a query.+ createTime :: (Core.Maybe Core.DateTime),+ -- | The document\'s fields. The map keys represent field names. Field names matching the regular expression @__.*__@ are reserved. Reserved field names are forbidden except in certain documented contexts. The field names, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For @map_value@, the field path is represented by a dot-delimited (@.@) string of segments. Each segment is either a simple field name (defined below) or a quoted field name. For example, the structured field @\"foo\" : { map_value: { \"x&y\" : { string_value: \"hello\" }}}@ would be represented by the field path @foo.\`x&y\`@. A simple field name contains only characters @a@ to @z@, @A@ to @Z@, @0@ to @9@, or @_@, and must not start with @0@ to @9@. For example, @foo_bar_17@. A quoted field name starts and ends with @\`@ and may contain any character. Some characters, including @\`@, must be escaped using a @\\@. For example, @\`x&y\`@+ -- represents @x&y@ and @\`bak\\\`tik\`@ represents @bak\`tik@.+ fields :: (Core.Maybe Document_Fields),+ -- | The resource name of the document, for example @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@.+ name :: (Core.Maybe Core.Text),+ -- | Output only. The time at which the document was last changed. This value is initially set to the @create_time@ then increases monotonically with each change to the document. It can also be compared to values from other documents and the @read_time@ of a query.+ updateTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Document' with the minimum fields required to make a request.+newDocument ::+ Document+newDocument =+ Document+ { createTime = Core.Nothing,+ fields = Core.Nothing,+ name = Core.Nothing,+ updateTime = Core.Nothing+ }++instance Core.FromJSON Document where+ parseJSON =+ Core.withObject+ "Document"+ ( \o ->+ Document+ Core.<$> (o Core..:? "createTime")+ Core.<*> (o Core..:? "fields")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "updateTime")+ )++instance Core.ToJSON Document where+ toJSON Document {..} =+ Core.object+ ( Core.catMaybes+ [ ("createTime" Core..=) Core.<$> createTime,+ ("fields" Core..=) Core.<$> fields,+ ("name" Core..=) Core.<$> name,+ ("updateTime" Core..=) Core.<$> updateTime+ ]+ )++-- | The document\'s fields. The map keys represent field names. Field names matching the regular expression @__.*__@ are reserved. Reserved field names are forbidden except in certain documented contexts. The field names, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For @map_value@, the field path is represented by a dot-delimited (@.@) string of segments. Each segment is either a simple field name (defined below) or a quoted field name. For example, the structured field @\"foo\" : { map_value: { \"x&y\" : { string_value: \"hello\" }}}@ would be represented by the field path @foo.\`x&y\`@. A simple field name contains only characters @a@ to @z@, @A@ to @Z@, @0@ to @9@, or @_@, and must not start with @0@ to @9@. For example, @foo_bar_17@. A quoted field name starts and ends with @\`@ and may contain any character. Some characters, including @\`@, must be escaped using a @\\@. For example, @\`x&y\`@+-- represents @x&y@ and @\`bak\\\`tik\`@ represents @bak\`tik@.+--+-- /See:/ 'newDocument_Fields' smart constructor.+newtype Document_Fields = Document_Fields+ { additional :: (Core.HashMap Core.Text Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Document_Fields' with the minimum fields required to make a request.+newDocument_Fields ::+ -- | See 'additional'.+ Core.HashMap Core.Text Value ->+ Document_Fields+newDocument_Fields additional =+ Document_Fields {additional = additional}++instance Core.FromJSON Document_Fields where+ parseJSON =+ Core.withObject+ "Document_Fields"+ (\o -> Document_Fields Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Document_Fields where+ toJSON Document_Fields {..} = Core.toJSON additional++-- | A Document has changed. May be the result of multiple writes, including deletes, that ultimately resulted in a new value for the Document. Multiple DocumentChange messages may be returned for the same logical change, if multiple targets are affected.+--+-- /See:/ 'newDocumentChange' smart constructor.+data DocumentChange = DocumentChange+ { -- | The new state of the Document. If @mask@ is set, contains only fields that were updated or added.+ document :: (Core.Maybe Document),+ -- | A set of target IDs for targets that no longer match this document.+ removedTargetIds :: (Core.Maybe [Core.Int32]),+ -- | A set of target IDs of targets that match this document.+ targetIds :: (Core.Maybe [Core.Int32])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DocumentChange' with the minimum fields required to make a request.+newDocumentChange ::+ DocumentChange+newDocumentChange =+ DocumentChange+ { document = Core.Nothing,+ removedTargetIds = Core.Nothing,+ targetIds = Core.Nothing+ }++instance Core.FromJSON DocumentChange where+ parseJSON =+ Core.withObject+ "DocumentChange"+ ( \o ->+ DocumentChange+ Core.<$> (o Core..:? "document")+ Core.<*> (o Core..:? "removedTargetIds")+ Core.<*> (o Core..:? "targetIds")+ )++instance Core.ToJSON DocumentChange where+ toJSON DocumentChange {..} =+ Core.object+ ( Core.catMaybes+ [ ("document" Core..=) Core.<$> document,+ ("removedTargetIds" Core..=) Core.<$> removedTargetIds,+ ("targetIds" Core..=) Core.<$> targetIds+ ]+ )++-- | A Document has been deleted. May be the result of multiple writes, including updates, the last of which deleted the Document. Multiple DocumentDelete messages may be returned for the same logical delete, if multiple targets are affected.+--+-- /See:/ 'newDocumentDelete' smart constructor.+data DocumentDelete = DocumentDelete+ { -- | The resource name of the Document that was deleted.+ document :: (Core.Maybe Core.Text),+ -- | The read timestamp at which the delete was observed. Greater or equal to the @commit_time@ of the delete.+ readTime :: (Core.Maybe Core.DateTime),+ -- | A set of target IDs for targets that previously matched this entity.+ removedTargetIds :: (Core.Maybe [Core.Int32])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DocumentDelete' with the minimum fields required to make a request.+newDocumentDelete ::+ DocumentDelete+newDocumentDelete =+ DocumentDelete+ { document = Core.Nothing,+ readTime = Core.Nothing,+ removedTargetIds = Core.Nothing+ }++instance Core.FromJSON DocumentDelete where+ parseJSON =+ Core.withObject+ "DocumentDelete"+ ( \o ->+ DocumentDelete+ Core.<$> (o Core..:? "document")+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "removedTargetIds")+ )++instance Core.ToJSON DocumentDelete where+ toJSON DocumentDelete {..} =+ Core.object+ ( Core.catMaybes+ [ ("document" Core..=) Core.<$> document,+ ("readTime" Core..=) Core.<$> readTime,+ ("removedTargetIds" Core..=) Core.<$> removedTargetIds+ ]+ )++-- | A set of field paths on a document. Used to restrict a get or update operation on a document to a subset of its fields. This is different from standard field masks, as this is always scoped to a Document, and takes in account the dynamic nature of Value.+--+-- /See:/ 'newDocumentMask' smart constructor.+newtype DocumentMask = DocumentMask+ { -- | The list of field paths in the mask. See Document.fields for a field path syntax reference.+ fieldPaths :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DocumentMask' with the minimum fields required to make a request.+newDocumentMask ::+ DocumentMask+newDocumentMask = DocumentMask {fieldPaths = Core.Nothing}++instance Core.FromJSON DocumentMask where+ parseJSON =+ Core.withObject+ "DocumentMask"+ (\o -> DocumentMask Core.<$> (o Core..:? "fieldPaths"))++instance Core.ToJSON DocumentMask where+ toJSON DocumentMask {..} =+ Core.object+ (Core.catMaybes [("fieldPaths" Core..=) Core.<$> fieldPaths])++-- | A Document has been removed from the view of the targets. Sent if the document is no longer relevant to a target and is out of view. Can be sent instead of a DocumentDelete or a DocumentChange if the server can not send the new value of the document. Multiple DocumentRemove messages may be returned for the same logical write or delete, if multiple targets are affected.+--+-- /See:/ 'newDocumentRemove' smart constructor.+data DocumentRemove = DocumentRemove+ { -- | The resource name of the Document that has gone out of view.+ document :: (Core.Maybe Core.Text),+ -- | The read timestamp at which the remove was observed. Greater or equal to the @commit_time@ of the change\/delete\/remove.+ readTime :: (Core.Maybe Core.DateTime),+ -- | A set of target IDs for targets that previously matched this document.+ removedTargetIds :: (Core.Maybe [Core.Int32])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DocumentRemove' with the minimum fields required to make a request.+newDocumentRemove ::+ DocumentRemove+newDocumentRemove =+ DocumentRemove+ { document = Core.Nothing,+ readTime = Core.Nothing,+ removedTargetIds = Core.Nothing+ }++instance Core.FromJSON DocumentRemove where+ parseJSON =+ Core.withObject+ "DocumentRemove"+ ( \o ->+ DocumentRemove+ Core.<$> (o Core..:? "document")+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "removedTargetIds")+ )++instance Core.ToJSON DocumentRemove where+ toJSON DocumentRemove {..} =+ Core.object+ ( Core.catMaybes+ [ ("document" Core..=) Core.<$> document,+ ("readTime" Core..=) Core.<$> readTime,+ ("removedTargetIds" Core..=) Core.<$> removedTargetIds+ ]+ )++-- | A transformation of a document.+--+-- /See:/ 'newDocumentTransform' smart constructor.+data DocumentTransform = DocumentTransform+ { -- | The name of the document to transform.+ document :: (Core.Maybe Core.Text),+ -- | The list of transformations to apply to the fields of the document, in order. This must not be empty.+ fieldTransforms :: (Core.Maybe [FieldTransform])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DocumentTransform' with the minimum fields required to make a request.+newDocumentTransform ::+ DocumentTransform+newDocumentTransform =+ DocumentTransform+ { document = Core.Nothing,+ fieldTransforms = Core.Nothing+ }++instance Core.FromJSON DocumentTransform where+ parseJSON =+ Core.withObject+ "DocumentTransform"+ ( \o ->+ DocumentTransform+ Core.<$> (o Core..:? "document")+ Core.<*> (o Core..:? "fieldTransforms")+ )++instance Core.ToJSON DocumentTransform where+ toJSON DocumentTransform {..} =+ Core.object+ ( Core.catMaybes+ [ ("document" Core..=) Core.<$> document,+ ("fieldTransforms" Core..=) Core.<$> fieldTransforms+ ]+ )++-- | A target specified by a set of documents names.+--+-- /See:/ 'newDocumentsTarget' smart constructor.+newtype DocumentsTarget = DocumentsTarget+ { -- | The names of the documents to retrieve. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. The request will fail if any of the document is not a child resource of the given @database@. Duplicate names will be elided.+ documents :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DocumentsTarget' with the minimum fields required to make a request.+newDocumentsTarget ::+ DocumentsTarget+newDocumentsTarget = DocumentsTarget {documents = Core.Nothing}++instance Core.FromJSON DocumentsTarget where+ parseJSON =+ Core.withObject+ "DocumentsTarget"+ (\o -> DocumentsTarget Core.<$> (o Core..:? "documents"))++instance Core.ToJSON DocumentsTarget where+ toJSON DocumentsTarget {..} =+ Core.object+ (Core.catMaybes [("documents" Core..=) Core.<$> documents])++-- | A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }+--+-- /See:/ 'newEmpty' smart constructor.+data Empty = Empty+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Empty' with the minimum fields required to make a request.+newEmpty ::+ Empty+newEmpty = Empty++instance Core.FromJSON Empty where+ parseJSON = Core.withObject "Empty" (\o -> Core.pure Empty)++instance Core.ToJSON Empty where+ toJSON = Core.const Core.emptyObject++-- | Execution statistics for the query.+--+-- /See:/ 'newExecutionStats' smart constructor.+data ExecutionStats = ExecutionStats+ { -- | Debugging statistics from the execution of the query. Note that the debugging stats are subject to change as Firestore evolves. It could include: { \"indexes/entries/scanned\": \"1000\", \"documents/scanned\": \"20\", \"billing/details\" : { \"documents/billable\": \"20\", \"index/entries/billable\": \"1000\", \"min/query_cost\": \"0\" } }+ debugStats :: (Core.Maybe ExecutionStats_DebugStats),+ -- | Total time to execute the query in the backend.+ executionDuration :: (Core.Maybe Core.Duration),+ -- | Total billable read operations.+ readOperations :: (Core.Maybe Core.Int64),+ -- | Total number of results returned, including documents, projections, aggregation results, keys.+ resultsReturned :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ExecutionStats' with the minimum fields required to make a request.+newExecutionStats ::+ ExecutionStats+newExecutionStats =+ ExecutionStats+ { debugStats = Core.Nothing,+ executionDuration = Core.Nothing,+ readOperations = Core.Nothing,+ resultsReturned = Core.Nothing+ }++instance Core.FromJSON ExecutionStats where+ parseJSON =+ Core.withObject+ "ExecutionStats"+ ( \o ->+ ExecutionStats+ Core.<$> (o Core..:? "debugStats")+ Core.<*> (o Core..:? "executionDuration")+ Core.<*> (o Core..:? "readOperations" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "resultsReturned" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON ExecutionStats where+ toJSON ExecutionStats {..} =+ Core.object+ ( Core.catMaybes+ [ ("debugStats" Core..=) Core.<$> debugStats,+ ("executionDuration" Core..=) Core.<$> executionDuration,+ ("readOperations" Core..=)+ Core.. Core.AsText+ Core.<$> readOperations,+ ("resultsReturned" Core..=)+ Core.. Core.AsText+ Core.<$> resultsReturned+ ]+ )++-- | Debugging statistics from the execution of the query. Note that the debugging stats are subject to change as Firestore evolves. It could include: { \"indexes/entries/scanned\": \"1000\", \"documents/scanned\": \"20\", \"billing/details\" : { \"documents/billable\": \"20\", \"index/entries/billable\": \"1000\", \"min/query_cost\": \"0\" } }+--+-- /See:/ 'newExecutionStats_DebugStats' smart constructor.+newtype ExecutionStats_DebugStats = ExecutionStats_DebugStats+ { -- | Properties of the object.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ExecutionStats_DebugStats' with the minimum fields required to make a request.+newExecutionStats_DebugStats ::+ -- | Properties of the object. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ ExecutionStats_DebugStats+newExecutionStats_DebugStats additional =+ ExecutionStats_DebugStats {additional = additional}++instance Core.FromJSON ExecutionStats_DebugStats where+ parseJSON =+ Core.withObject+ "ExecutionStats_DebugStats"+ ( \o ->+ ExecutionStats_DebugStats Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON ExecutionStats_DebugStats where+ toJSON ExecutionStats_DebugStats {..} = Core.toJSON additional++-- | A digest of all the documents that match a given target.+--+-- /See:/ 'newExistenceFilter' smart constructor.+data ExistenceFilter = ExistenceFilter+ { -- | The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer match the target. The client can use the @unchanged_names@ bloom filter to assist with this determination by testing ALL the document names against the filter; if the document name is NOT in the filter, it means the document no longer matches the target.+ count :: (Core.Maybe Core.Int32),+ -- | The target ID to which this filter applies.+ targetId :: (Core.Maybe Core.Int32),+ -- | A bloom filter that, despite its name, contains the UTF-8 byte encodings of the resource names of ALL the documents that match target_id, in the form @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. This bloom filter may be omitted at the server\'s discretion, such as if it is deemed that the client will not make use of it or if it is too computationally expensive to calculate or transmit. Clients must gracefully handle this field being absent by falling back to the logic used before this field existed; that is, re-add the target without a resume token to figure out which documents in the client\'s cache are out of sync.+ unchangedNames :: (Core.Maybe BloomFilter)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ExistenceFilter' with the minimum fields required to make a request.+newExistenceFilter ::+ ExistenceFilter+newExistenceFilter =+ ExistenceFilter+ { count = Core.Nothing,+ targetId = Core.Nothing,+ unchangedNames = Core.Nothing+ }++instance Core.FromJSON ExistenceFilter where+ parseJSON =+ Core.withObject+ "ExistenceFilter"+ ( \o ->+ ExistenceFilter+ Core.<$> (o Core..:? "count")+ Core.<*> (o Core..:? "targetId")+ Core.<*> (o Core..:? "unchangedNames")+ )++instance Core.ToJSON ExistenceFilter where+ toJSON ExistenceFilter {..} =+ Core.object+ ( Core.catMaybes+ [ ("count" Core..=) Core.<$> count,+ ("targetId" Core..=) Core.<$> targetId,+ ("unchangedNames" Core..=) Core.<$> unchangedNames+ ]+ )++-- | Explain metrics for the query.+--+-- /See:/ 'newExplainMetrics' smart constructor.+data ExplainMetrics = ExplainMetrics+ { -- | Aggregated stats from the execution of the query. Only present when ExplainOptions.analyze is set to true.+ executionStats :: (Core.Maybe ExecutionStats),+ -- | Planning phase information for the query.+ planSummary :: (Core.Maybe PlanSummary)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ExplainMetrics' with the minimum fields required to make a request.+newExplainMetrics ::+ ExplainMetrics+newExplainMetrics =+ ExplainMetrics+ { executionStats = Core.Nothing,+ planSummary = Core.Nothing+ }++instance Core.FromJSON ExplainMetrics where+ parseJSON =+ Core.withObject+ "ExplainMetrics"+ ( \o ->+ ExplainMetrics+ Core.<$> (o Core..:? "executionStats")+ Core.<*> (o Core..:? "planSummary")+ )++instance Core.ToJSON ExplainMetrics where+ toJSON ExplainMetrics {..} =+ Core.object+ ( Core.catMaybes+ [ ("executionStats" Core..=) Core.<$> executionStats,+ ("planSummary" Core..=) Core.<$> planSummary+ ]+ )++-- | Explain options for the query.+--+-- /See:/ 'newExplainOptions' smart constructor.+newtype ExplainOptions = ExplainOptions+ { -- | Optional. Whether to execute this query. When false (the default), the query will be planned, returning only metrics from the planning stages. When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics.+ analyze :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ExplainOptions' with the minimum fields required to make a request.+newExplainOptions ::+ ExplainOptions+newExplainOptions = ExplainOptions {analyze = Core.Nothing}++instance Core.FromJSON ExplainOptions where+ parseJSON =+ Core.withObject+ "ExplainOptions"+ (\o -> ExplainOptions Core.<$> (o Core..:? "analyze"))++instance Core.ToJSON ExplainOptions where+ toJSON ExplainOptions {..} =+ Core.object+ (Core.catMaybes [("analyze" Core..=) Core.<$> analyze])++-- | A filter on a specific field.+--+-- /See:/ 'newFieldFilter' smart constructor.+data FieldFilter = FieldFilter+ { -- | The field to filter by.+ field :: (Core.Maybe FieldReference),+ -- | The operator to filter by.+ op :: (Core.Maybe FieldFilter_Op),+ -- | The value to compare to.+ value :: (Core.Maybe Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FieldFilter' with the minimum fields required to make a request.+newFieldFilter ::+ FieldFilter+newFieldFilter =+ FieldFilter+ { field = Core.Nothing,+ op = Core.Nothing,+ value = Core.Nothing+ }++instance Core.FromJSON FieldFilter where+ parseJSON =+ Core.withObject+ "FieldFilter"+ ( \o ->+ FieldFilter+ Core.<$> (o Core..:? "field")+ Core.<*> (o Core..:? "op")+ Core.<*> (o Core..:? "value")+ )++instance Core.ToJSON FieldFilter where+ toJSON FieldFilter {..} =+ Core.object+ ( Core.catMaybes+ [ ("field" Core..=) Core.<$> field,+ ("op" Core..=) Core.<$> op,+ ("value" Core..=) Core.<$> value+ ]+ )++-- | A reference to a field in a document, ex: @stats.operations@.+--+-- /See:/ 'newFieldReference' smart constructor.+newtype FieldReference = FieldReference+ { -- | A reference to a field in a document. Requires: * MUST be a dot-delimited (@.@) string of segments, where each segment conforms to document field name limitations.+ fieldPath :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FieldReference' with the minimum fields required to make a request.+newFieldReference ::+ FieldReference+newFieldReference = FieldReference {fieldPath = Core.Nothing}++instance Core.FromJSON FieldReference where+ parseJSON =+ Core.withObject+ "FieldReference"+ (\o -> FieldReference Core.<$> (o Core..:? "fieldPath"))++instance Core.ToJSON FieldReference where+ toJSON FieldReference {..} =+ Core.object+ (Core.catMaybes [("fieldPath" Core..=) Core.<$> fieldPath])++-- | A transformation of a field of the document.+--+-- /See:/ 'newFieldTransform' smart constructor.+data FieldTransform = FieldTransform+ { -- | Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.+ appendMissingElements :: (Core.Maybe ArrayValue),+ -- | The path of the field. See Document.fields for the field path syntax reference.+ fieldPath :: (Core.Maybe Core.Text),+ -- | Adds the given value to the field\'s current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive\/negative integer overflow, the field is resolved to the largest magnitude positive\/negative integer.+ increment :: (Core.Maybe Value),+ -- | Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.+ maximum :: (Core.Maybe Value),+ -- | Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.+ minimum :: (Core.Maybe Value),+ -- | Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.+ removeAllFromArray :: (Core.Maybe ArrayValue),+ -- | Sets the field to the given server value.+ setToServerValue :: (Core.Maybe FieldTransform_SetToServerValue)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FieldTransform' with the minimum fields required to make a request.+newFieldTransform ::+ FieldTransform+newFieldTransform =+ FieldTransform+ { appendMissingElements = Core.Nothing,+ fieldPath = Core.Nothing,+ increment = Core.Nothing,+ maximum = Core.Nothing,+ minimum = Core.Nothing,+ removeAllFromArray = Core.Nothing,+ setToServerValue = Core.Nothing+ }++instance Core.FromJSON FieldTransform where+ parseJSON =+ Core.withObject+ "FieldTransform"+ ( \o ->+ FieldTransform+ Core.<$> (o Core..:? "appendMissingElements")+ Core.<*> (o Core..:? "fieldPath")+ Core.<*> (o Core..:? "increment")+ Core.<*> (o Core..:? "maximum")+ Core.<*> (o Core..:? "minimum")+ Core.<*> (o Core..:? "removeAllFromArray")+ Core.<*> (o Core..:? "setToServerValue")+ )++instance Core.ToJSON FieldTransform where+ toJSON FieldTransform {..} =+ Core.object+ ( Core.catMaybes+ [ ("appendMissingElements" Core..=) Core.<$> appendMissingElements,+ ("fieldPath" Core..=) Core.<$> fieldPath,+ ("increment" Core..=) Core.<$> increment,+ ("maximum" Core..=) Core.<$> maximum,+ ("minimum" Core..=) Core.<$> minimum,+ ("removeAllFromArray" Core..=) Core.<$> removeAllFromArray,+ ("setToServerValue" Core..=) Core.<$> setToServerValue+ ]+ )++-- | A filter.+--+-- /See:/ 'newFilter' smart constructor.+data Filter = Filter+ { -- | A composite filter.+ compositeFilter :: (Core.Maybe CompositeFilter),+ -- | A filter on a document field.+ fieldFilter :: (Core.Maybe FieldFilter),+ -- | A filter that takes exactly one argument.+ unaryFilter :: (Core.Maybe UnaryFilter)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Filter' with the minimum fields required to make a request.+newFilter ::+ Filter+newFilter =+ Filter+ { compositeFilter = Core.Nothing,+ fieldFilter = Core.Nothing,+ unaryFilter = Core.Nothing+ }++instance Core.FromJSON Filter where+ parseJSON =+ Core.withObject+ "Filter"+ ( \o ->+ Filter+ Core.<$> (o Core..:? "compositeFilter")+ Core.<*> (o Core..:? "fieldFilter")+ Core.<*> (o Core..:? "unaryFilter")+ )++instance Core.ToJSON Filter where+ toJSON Filter {..} =+ Core.object+ ( Core.catMaybes+ [ ("compositeFilter" Core..=) Core.<$> compositeFilter,+ ("fieldFilter" Core..=) Core.<$> fieldFilter,+ ("unaryFilter" Core..=) Core.<$> unaryFilter+ ]+ )++-- | Nearest Neighbors search config. The ordering provided by FindNearest supersedes the order_by stage. If multiple documents have the same vector distance, the returned document order is not guaranteed to be stable between queries.+--+-- /See:/ 'newFindNearest' smart constructor.+data FindNearest = FindNearest+ { -- | Required. The distance measure to use, required.+ distanceMeasure :: (Core.Maybe FindNearest_DistanceMeasure),+ -- | Optional. Optional name of the field to output the result of the vector distance calculation. Must conform to document field name limitations.+ distanceResultField :: (Core.Maybe Core.Text),+ -- | Optional. Option to specify a threshold for which no less similar documents will be returned. The behavior of the specified @distance_measure@ will affect the meaning of the distance threshold. Since DOT/PRODUCT distances increase when the vectors are more similar, the comparison is inverted. * For EUCLIDEAN, COSINE: WHERE distance \<= distance/threshold * For DOT/PRODUCT: WHERE distance >= distance/threshold+ distanceThreshold :: (Core.Maybe Core.Double),+ -- | Required. The number of nearest neighbors to return. Must be a positive integer of no more than 1000.+ limit :: (Core.Maybe Core.Int32),+ -- | Required. The query vector that we are searching on. Must be a vector of no more than 2048 dimensions.+ queryVector :: (Core.Maybe Value),+ -- | Required. An indexed vector field to search upon. Only documents which contain vectors whose dimensionality match the query_vector can be returned.+ vectorField :: (Core.Maybe FieldReference)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FindNearest' with the minimum fields required to make a request.+newFindNearest ::+ FindNearest+newFindNearest =+ FindNearest+ { distanceMeasure = Core.Nothing,+ distanceResultField = Core.Nothing,+ distanceThreshold = Core.Nothing,+ limit = Core.Nothing,+ queryVector = Core.Nothing,+ vectorField = Core.Nothing+ }++instance Core.FromJSON FindNearest where+ parseJSON =+ Core.withObject+ "FindNearest"+ ( \o ->+ FindNearest+ Core.<$> (o Core..:? "distanceMeasure")+ Core.<*> (o Core..:? "distanceResultField")+ Core.<*> (o Core..:? "distanceThreshold")+ Core.<*> (o Core..:? "limit")+ Core.<*> (o Core..:? "queryVector")+ Core.<*> (o Core..:? "vectorField")+ )++instance Core.ToJSON FindNearest where+ toJSON FindNearest {..} =+ Core.object+ ( Core.catMaybes+ [ ("distanceMeasure" Core..=) Core.<$> distanceMeasure,+ ("distanceResultField" Core..=) Core.<$> distanceResultField,+ ("distanceThreshold" Core..=) Core.<$> distanceThreshold,+ ("limit" Core..=) Core.<$> limit,+ ("queryVector" Core..=) Core.<$> queryVector,+ ("vectorField" Core..=) Core.<$> vectorField+ ]+ )++-- | A Backup of a Cloud Firestore Database. The backup contains all documents and index configurations for the given database at a specific point in time.+--+-- /See:/ 'newGoogleFirestoreAdminV1Backup' smart constructor.+data GoogleFirestoreAdminV1Backup = GoogleFirestoreAdminV1Backup+ { -- | Output only. Name of the Firestore database that the backup is from. Format is @projects\/{project}\/databases\/{database}@.+ database :: (Core.Maybe Core.Text),+ -- | Output only. The system-generated UUID4 for the Firestore database that the backup is from.+ databaseUid :: (Core.Maybe Core.Text),+ -- | Output only. The timestamp at which this backup expires.+ expireTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The unique resource name of the Backup. Format is @projects\/{project}\/locations\/{location}\/backups\/{backup}@.+ name :: (Core.Maybe Core.Text),+ -- | Output only. The backup contains an externally consistent copy of the database at this time.+ snapshotTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The current state of the backup.+ state :: (Core.Maybe GoogleFirestoreAdminV1Backup_State),+ -- | Output only. Statistics about the backup. This data only becomes available after the backup is fully materialized to secondary storage. This field will be empty till then.+ stats :: (Core.Maybe GoogleFirestoreAdminV1Stats)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1Backup' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1Backup ::+ GoogleFirestoreAdminV1Backup+newGoogleFirestoreAdminV1Backup =+ GoogleFirestoreAdminV1Backup+ { database = Core.Nothing,+ databaseUid = Core.Nothing,+ expireTime = Core.Nothing,+ name = Core.Nothing,+ snapshotTime = Core.Nothing,+ state = Core.Nothing,+ stats = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1Backup where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1Backup"+ ( \o ->+ GoogleFirestoreAdminV1Backup+ Core.<$> (o Core..:? "database")+ Core.<*> (o Core..:? "databaseUid")+ Core.<*> (o Core..:? "expireTime")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "snapshotTime")+ Core.<*> (o Core..:? "state")+ Core.<*> (o Core..:? "stats")+ )++instance Core.ToJSON GoogleFirestoreAdminV1Backup where+ toJSON GoogleFirestoreAdminV1Backup {..} =+ Core.object+ ( Core.catMaybes+ [ ("database" Core..=) Core.<$> database,+ ("databaseUid" Core..=) Core.<$> databaseUid,+ ("expireTime" Core..=) Core.<$> expireTime,+ ("name" Core..=) Core.<$> name,+ ("snapshotTime" Core..=) Core.<$> snapshotTime,+ ("state" Core..=) Core.<$> state,+ ("stats" Core..=) Core.<$> stats+ ]+ )++-- | A backup schedule for a Cloud Firestore Database. This resource is owned by the database it is backing up, and is deleted along with the database. The actual backups are not though.+--+-- /See:/ 'newGoogleFirestoreAdminV1BackupSchedule' smart constructor.+data GoogleFirestoreAdminV1BackupSchedule = GoogleFirestoreAdminV1BackupSchedule+ { -- | Output only. The timestamp at which this backup schedule was created and effective since. No backups will be created for this schedule before this time.+ createTime :: (Core.Maybe Core.DateTime),+ -- | For a schedule that runs daily.+ dailyRecurrence :: (Core.Maybe GoogleFirestoreAdminV1DailyRecurrence),+ -- | Output only. The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is @projects\/{project}\/databases\/{database}\/backupSchedules\/{backup_schedule}@+ name :: (Core.Maybe Core.Text),+ -- | At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days. The maximum supported retention period is 14 weeks.+ retention :: (Core.Maybe Core.Duration),+ -- | Output only. The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.+ updateTime :: (Core.Maybe Core.DateTime),+ -- | For a schedule that runs weekly on a specific day.+ weeklyRecurrence :: (Core.Maybe GoogleFirestoreAdminV1WeeklyRecurrence)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1BackupSchedule' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1BackupSchedule ::+ GoogleFirestoreAdminV1BackupSchedule+newGoogleFirestoreAdminV1BackupSchedule =+ GoogleFirestoreAdminV1BackupSchedule+ { createTime = Core.Nothing,+ dailyRecurrence = Core.Nothing,+ name = Core.Nothing,+ retention = Core.Nothing,+ updateTime = Core.Nothing,+ weeklyRecurrence = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1BackupSchedule where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1BackupSchedule"+ ( \o ->+ GoogleFirestoreAdminV1BackupSchedule+ Core.<$> (o Core..:? "createTime")+ Core.<*> (o Core..:? "dailyRecurrence")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "retention")+ Core.<*> (o Core..:? "updateTime")+ Core.<*> (o Core..:? "weeklyRecurrence")+ )++instance Core.ToJSON GoogleFirestoreAdminV1BackupSchedule where+ toJSON GoogleFirestoreAdminV1BackupSchedule {..} =+ Core.object+ ( Core.catMaybes+ [ ("createTime" Core..=) Core.<$> createTime,+ ("dailyRecurrence" Core..=) Core.<$> dailyRecurrence,+ ("name" Core..=) Core.<$> name,+ ("retention" Core..=) Core.<$> retention,+ ("updateTime" Core..=) Core.<$> updateTime,+ ("weeklyRecurrence" Core..=) Core.<$> weeklyRecurrence+ ]+ )++-- | Information about a backup that was used to restore a database.+--+-- /See:/ 'newGoogleFirestoreAdminV1BackupSource' smart constructor.+newtype GoogleFirestoreAdminV1BackupSource = GoogleFirestoreAdminV1BackupSource+ { -- | The resource name of the backup that was used to restore this database. Format: @projects\/{project}\/locations\/{location}\/backups\/{backup}@.+ backup :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1BackupSource' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1BackupSource ::+ GoogleFirestoreAdminV1BackupSource+newGoogleFirestoreAdminV1BackupSource =+ GoogleFirestoreAdminV1BackupSource {backup = Core.Nothing}++instance Core.FromJSON GoogleFirestoreAdminV1BackupSource where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1BackupSource"+ ( \o ->+ GoogleFirestoreAdminV1BackupSource Core.<$> (o Core..:? "backup")+ )++instance Core.ToJSON GoogleFirestoreAdminV1BackupSource where+ toJSON GoogleFirestoreAdminV1BackupSource {..} =+ Core.object (Core.catMaybes [("backup" Core..=) Core.<$> backup])++-- | Metadata for google.longrunning.Operation results from FirestoreAdmin.BulkDeleteDocuments.+--+-- /See:/ 'newGoogleFirestoreAdminV1BulkDeleteDocumentsMetadata' smart constructor.+data GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata = GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata+ { -- | The IDs of the collection groups that are being deleted.+ collectionIds :: (Core.Maybe [Core.Text]),+ -- | The time this operation completed. Will be unset if operation still in progress.+ endTime :: (Core.Maybe Core.DateTime),+ -- | Which namespace IDs are being deleted.+ namespaceIds :: (Core.Maybe [Core.Text]),+ -- | The state of the operation.+ operationState ::+ ( Core.Maybe+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+ ),+ -- | The progress, in bytes, of this operation.+ progressBytes :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The progress, in documents, of this operation.+ progressDocuments :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The timestamp that corresponds to the version of the database that is being read to get the list of documents to delete. This time can also be used as the timestamp of PITR in case of disaster recovery (subject to PITR window limit).+ snapshotTime :: (Core.Maybe Core.DateTime),+ -- | The time this operation started.+ startTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1BulkDeleteDocumentsMetadata ::+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata+newGoogleFirestoreAdminV1BulkDeleteDocumentsMetadata =+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata+ { collectionIds =+ Core.Nothing,+ endTime = Core.Nothing,+ namespaceIds = Core.Nothing,+ operationState = Core.Nothing,+ progressBytes = Core.Nothing,+ progressDocuments = Core.Nothing,+ snapshotTime = Core.Nothing,+ startTime = Core.Nothing+ }++instance+ Core.FromJSON+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata+ where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata"+ ( \o ->+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata+ Core.<$> (o Core..:? "collectionIds")+ Core.<*> (o Core..:? "endTime")+ Core.<*> (o Core..:? "namespaceIds")+ Core.<*> (o Core..:? "operationState")+ Core.<*> (o Core..:? "progressBytes")+ Core.<*> (o Core..:? "progressDocuments")+ Core.<*> (o Core..:? "snapshotTime")+ Core.<*> (o Core..:? "startTime")+ )++instance+ Core.ToJSON+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata+ where+ toJSON GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata {..} =+ Core.object+ ( Core.catMaybes+ [ ("collectionIds" Core..=) Core.<$> collectionIds,+ ("endTime" Core..=) Core.<$> endTime,+ ("namespaceIds" Core..=) Core.<$> namespaceIds,+ ("operationState" Core..=) Core.<$> operationState,+ ("progressBytes" Core..=) Core.<$> progressBytes,+ ("progressDocuments" Core..=) Core.<$> progressDocuments,+ ("snapshotTime" Core..=) Core.<$> snapshotTime,+ ("startTime" Core..=) Core.<$> startTime+ ]+ )++-- | The request for FirestoreAdmin.BulkDeleteDocuments. When both collection/ids and namespace/ids are set, only documents satisfying both conditions will be deleted. Requests with namespace/ids and collection/ids both empty will be rejected. Please use FirestoreAdmin.DeleteDatabase instead.+--+-- /See:/ 'newGoogleFirestoreAdminV1BulkDeleteDocumentsRequest' smart constructor.+data GoogleFirestoreAdminV1BulkDeleteDocumentsRequest = GoogleFirestoreAdminV1BulkDeleteDocumentsRequest+ { -- | Optional. IDs of the collection groups to delete. Unspecified means all collection groups. Each collection group in this list must be unique.+ collectionIds :: (Core.Maybe [Core.Text]),+ -- | Optional. Namespaces to delete. An empty list means all namespaces. This is the recommended usage for databases that don\'t use namespaces. An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn\'t want to delete from them. Each namespace in this list must be unique.+ namespaceIds :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1BulkDeleteDocumentsRequest' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1BulkDeleteDocumentsRequest ::+ GoogleFirestoreAdminV1BulkDeleteDocumentsRequest+newGoogleFirestoreAdminV1BulkDeleteDocumentsRequest =+ GoogleFirestoreAdminV1BulkDeleteDocumentsRequest+ { collectionIds =+ Core.Nothing,+ namespaceIds = Core.Nothing+ }++instance+ Core.FromJSON+ GoogleFirestoreAdminV1BulkDeleteDocumentsRequest+ where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1BulkDeleteDocumentsRequest"+ ( \o ->+ GoogleFirestoreAdminV1BulkDeleteDocumentsRequest+ Core.<$> (o Core..:? "collectionIds")+ Core.<*> (o Core..:? "namespaceIds")+ )++instance+ Core.ToJSON+ GoogleFirestoreAdminV1BulkDeleteDocumentsRequest+ where+ toJSON GoogleFirestoreAdminV1BulkDeleteDocumentsRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("collectionIds" Core..=) Core.<$> collectionIds,+ ("namespaceIds" Core..=) Core.<$> namespaceIds+ ]+ )++-- | The CMEK (Customer Managed Encryption Key) configuration for a Firestore database. If not present, the database is secured by the default Google encryption key.+--+-- /See:/ 'newGoogleFirestoreAdminV1CmekConfig' smart constructor.+data GoogleFirestoreAdminV1CmekConfig = GoogleFirestoreAdminV1CmekConfig+ { -- | Output only. Currently in-use <https://cloud.google.com/kms/docs/resource-hierarchy#key_versions KMS key versions>. During <https://cloud.google.com/kms/docs/key-rotation key rotation>, there can be multiple in-use key versions. The expected format is @projects\/{project_id}\/locations\/{kms_location}\/keyRings\/{key_ring}\/cryptoKeys\/{crypto_key}\/cryptoKeyVersions\/{key_version}@.+ activeKeyVersion :: (Core.Maybe [Core.Text]),+ -- | Required. Only keys in the same location as this database are allowed to be used for encryption. For Firestore\'s nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore\'s eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https:\/\/cloud.google.com\/kms\/docs\/locations. The expected format is @projects\/{project_id}\/locations\/{kms_location}\/keyRings\/{key_ring}\/cryptoKeys\/{crypto_key}@.+ kmsKeyName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1CmekConfig' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1CmekConfig ::+ GoogleFirestoreAdminV1CmekConfig+newGoogleFirestoreAdminV1CmekConfig =+ GoogleFirestoreAdminV1CmekConfig+ { activeKeyVersion = Core.Nothing,+ kmsKeyName = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1CmekConfig where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1CmekConfig"+ ( \o ->+ GoogleFirestoreAdminV1CmekConfig+ Core.<$> (o Core..:? "activeKeyVersion")+ Core.<*> (o Core..:? "kmsKeyName")+ )++instance Core.ToJSON GoogleFirestoreAdminV1CmekConfig where+ toJSON GoogleFirestoreAdminV1CmekConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("activeKeyVersion" Core..=) Core.<$> activeKeyVersion,+ ("kmsKeyName" Core..=) Core.<$> kmsKeyName+ ]+ )++-- | Metadata related to the create database operation.+--+-- /See:/ 'newGoogleFirestoreAdminV1CreateDatabaseMetadata' smart constructor.+data GoogleFirestoreAdminV1CreateDatabaseMetadata = GoogleFirestoreAdminV1CreateDatabaseMetadata+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1CreateDatabaseMetadata' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1CreateDatabaseMetadata ::+ GoogleFirestoreAdminV1CreateDatabaseMetadata+newGoogleFirestoreAdminV1CreateDatabaseMetadata =+ GoogleFirestoreAdminV1CreateDatabaseMetadata++instance Core.FromJSON GoogleFirestoreAdminV1CreateDatabaseMetadata where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1CreateDatabaseMetadata"+ (\o -> Core.pure GoogleFirestoreAdminV1CreateDatabaseMetadata)++instance Core.ToJSON GoogleFirestoreAdminV1CreateDatabaseMetadata where+ toJSON = Core.const Core.emptyObject++-- | The configuration options for using CMEK (Customer Managed Encryption Key) encryption.+--+-- /See:/ 'newGoogleFirestoreAdminV1CustomerManagedEncryptionOptions' smart constructor.+newtype GoogleFirestoreAdminV1CustomerManagedEncryptionOptions = GoogleFirestoreAdminV1CustomerManagedEncryptionOptions+ { -- | Required. Only keys in the same location as the database are allowed to be used for encryption. For Firestore\'s nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore\'s eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https:\/\/cloud.google.com\/kms\/docs\/locations. The expected format is @projects\/{project_id}\/locations\/{kms_location}\/keyRings\/{key_ring}\/cryptoKeys\/{crypto_key}@.+ kmsKeyName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1CustomerManagedEncryptionOptions' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1CustomerManagedEncryptionOptions ::+ GoogleFirestoreAdminV1CustomerManagedEncryptionOptions+newGoogleFirestoreAdminV1CustomerManagedEncryptionOptions =+ GoogleFirestoreAdminV1CustomerManagedEncryptionOptions+ { kmsKeyName =+ Core.Nothing+ }++instance+ Core.FromJSON+ GoogleFirestoreAdminV1CustomerManagedEncryptionOptions+ where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1CustomerManagedEncryptionOptions"+ ( \o ->+ GoogleFirestoreAdminV1CustomerManagedEncryptionOptions+ Core.<$> (o Core..:? "kmsKeyName")+ )++instance+ Core.ToJSON+ GoogleFirestoreAdminV1CustomerManagedEncryptionOptions+ where+ toJSON GoogleFirestoreAdminV1CustomerManagedEncryptionOptions {..} =+ Core.object+ (Core.catMaybes [("kmsKeyName" Core..=) Core.<$> kmsKeyName])++-- | Represents a recurring schedule that runs every day. The time zone is UTC.+--+-- /See:/ 'newGoogleFirestoreAdminV1DailyRecurrence' smart constructor.+data GoogleFirestoreAdminV1DailyRecurrence = GoogleFirestoreAdminV1DailyRecurrence+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1DailyRecurrence' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1DailyRecurrence ::+ GoogleFirestoreAdminV1DailyRecurrence+newGoogleFirestoreAdminV1DailyRecurrence =+ GoogleFirestoreAdminV1DailyRecurrence++instance Core.FromJSON GoogleFirestoreAdminV1DailyRecurrence where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1DailyRecurrence"+ (\o -> Core.pure GoogleFirestoreAdminV1DailyRecurrence)++instance Core.ToJSON GoogleFirestoreAdminV1DailyRecurrence where+ toJSON = Core.const Core.emptyObject++-- | A Cloud Firestore Database.+--+-- /See:/ 'newGoogleFirestoreAdminV1Database' smart constructor.+data GoogleFirestoreAdminV1Database = GoogleFirestoreAdminV1Database+ { -- | The App Engine integration mode to use for this database.+ appEngineIntegrationMode ::+ ( Core.Maybe+ GoogleFirestoreAdminV1Database_AppEngineIntegrationMode+ ),+ -- | Optional. Presence indicates CMEK is enabled for this database.+ cmekConfig :: (Core.Maybe GoogleFirestoreAdminV1CmekConfig),+ -- | The concurrency control mode to use for this database.+ concurrencyMode :: (Core.Maybe GoogleFirestoreAdminV1Database_ConcurrencyMode),+ -- | Output only. The timestamp at which this database was created. Databases created before 2016 do not populate create_time.+ createTime :: (Core.Maybe Core.DateTime),+ -- | State of delete protection for the database.+ deleteProtectionState :: (Core.Maybe GoogleFirestoreAdminV1Database_DeleteProtectionState),+ -- | Output only. The timestamp at which this database was deleted. Only set if the database has been deleted.+ deleteTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The earliest timestamp at which older versions of the data can be read from the database. See [version/retention/period] above; this field is populated with @now - version_retention_period@. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.+ earliestVersionTime :: (Core.Maybe Core.DateTime),+ -- | This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.+ etag :: (Core.Maybe Core.Text),+ -- | Output only. The key/prefix for this database. This key/prefix is used, in combination with the project ID (\"~\") to construct the application ID that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo).+ keyPrefix :: (Core.Maybe Core.Text),+ -- | The location of the database. Available locations are listed at https:\/\/cloud.google.com\/firestore\/docs\/locations.+ locationId :: (Core.Maybe Core.Text),+ -- | The resource name of the Database. Format: @projects\/{project}\/databases\/{database}@+ name :: (Core.Maybe Core.Text),+ -- | Whether to enable the PITR feature on this database.+ pointInTimeRecoveryEnablement ::+ ( Core.Maybe+ GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement+ ),+ -- | Output only. The database resource\'s prior database ID. This field is only populated for deleted databases.+ previousId :: (Core.Maybe Core.Text),+ -- | Output only. Information about the provenance of this database.+ sourceInfo :: (Core.Maybe GoogleFirestoreAdminV1SourceInfo),+ -- | The type of the database. See https:\/\/cloud.google.com\/datastore\/docs\/firestore-or-datastore for information about how to choose.+ type' :: (Core.Maybe GoogleFirestoreAdminV1Database_Type),+ -- | Output only. The system-generated UUID4 for this Database.+ uid :: (Core.Maybe Core.Text),+ -- | Output only. The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.+ updateTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The period during which past versions of data are retained in the database. Any read or query can specify a @read_time@ within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.+ versionRetentionPeriod :: (Core.Maybe Core.Duration)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1Database' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1Database ::+ GoogleFirestoreAdminV1Database+newGoogleFirestoreAdminV1Database =+ GoogleFirestoreAdminV1Database+ { appEngineIntegrationMode =+ Core.Nothing,+ cmekConfig = Core.Nothing,+ concurrencyMode = Core.Nothing,+ createTime = Core.Nothing,+ deleteProtectionState = Core.Nothing,+ deleteTime = Core.Nothing,+ earliestVersionTime = Core.Nothing,+ etag = Core.Nothing,+ keyPrefix = Core.Nothing,+ locationId = Core.Nothing,+ name = Core.Nothing,+ pointInTimeRecoveryEnablement = Core.Nothing,+ previousId = Core.Nothing,+ sourceInfo = Core.Nothing,+ type' = Core.Nothing,+ uid = Core.Nothing,+ updateTime = Core.Nothing,+ versionRetentionPeriod = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1Database where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1Database"+ ( \o ->+ GoogleFirestoreAdminV1Database+ Core.<$> (o Core..:? "appEngineIntegrationMode")+ Core.<*> (o Core..:? "cmekConfig")+ Core.<*> (o Core..:? "concurrencyMode")+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "deleteProtectionState")+ Core.<*> (o Core..:? "deleteTime")+ Core.<*> (o Core..:? "earliestVersionTime")+ Core.<*> (o Core..:? "etag")+ Core.<*> (o Core..:? "keyPrefix")+ Core.<*> (o Core..:? "locationId")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "pointInTimeRecoveryEnablement")+ Core.<*> (o Core..:? "previousId")+ Core.<*> (o Core..:? "sourceInfo")+ Core.<*> (o Core..:? "type")+ Core.<*> (o Core..:? "uid")+ Core.<*> (o Core..:? "updateTime")+ Core.<*> (o Core..:? "versionRetentionPeriod")+ )++instance Core.ToJSON GoogleFirestoreAdminV1Database where+ toJSON GoogleFirestoreAdminV1Database {..} =+ Core.object+ ( Core.catMaybes+ [ ("appEngineIntegrationMode" Core..=)+ Core.<$> appEngineIntegrationMode,+ ("cmekConfig" Core..=) Core.<$> cmekConfig,+ ("concurrencyMode" Core..=) Core.<$> concurrencyMode,+ ("createTime" Core..=) Core.<$> createTime,+ ("deleteProtectionState" Core..=) Core.<$> deleteProtectionState,+ ("deleteTime" Core..=) Core.<$> deleteTime,+ ("earliestVersionTime" Core..=) Core.<$> earliestVersionTime,+ ("etag" Core..=) Core.<$> etag,+ ("keyPrefix" Core..=) Core.<$> keyPrefix,+ ("locationId" Core..=) Core.<$> locationId,+ ("name" Core..=) Core.<$> name,+ ("pointInTimeRecoveryEnablement" Core..=)+ Core.<$> pointInTimeRecoveryEnablement,+ ("previousId" Core..=) Core.<$> previousId,+ ("sourceInfo" Core..=) Core.<$> sourceInfo,+ ("type" Core..=) Core.<$> type',+ ("uid" Core..=) Core.<$> uid,+ ("updateTime" Core..=) Core.<$> updateTime,+ ("versionRetentionPeriod" Core..=)+ Core.<$> versionRetentionPeriod+ ]+ )++-- | Metadata related to the delete database operation.+--+-- /See:/ 'newGoogleFirestoreAdminV1DeleteDatabaseMetadata' smart constructor.+data GoogleFirestoreAdminV1DeleteDatabaseMetadata = GoogleFirestoreAdminV1DeleteDatabaseMetadata+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1DeleteDatabaseMetadata' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1DeleteDatabaseMetadata ::+ GoogleFirestoreAdminV1DeleteDatabaseMetadata+newGoogleFirestoreAdminV1DeleteDatabaseMetadata =+ GoogleFirestoreAdminV1DeleteDatabaseMetadata++instance Core.FromJSON GoogleFirestoreAdminV1DeleteDatabaseMetadata where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1DeleteDatabaseMetadata"+ (\o -> Core.pure GoogleFirestoreAdminV1DeleteDatabaseMetadata)++instance Core.ToJSON GoogleFirestoreAdminV1DeleteDatabaseMetadata where+ toJSON = Core.const Core.emptyObject++-- | Encryption configuration for a new database being created from another source. The source could be a Backup .+--+-- /See:/ 'newGoogleFirestoreAdminV1EncryptionConfig' smart constructor.+data GoogleFirestoreAdminV1EncryptionConfig = GoogleFirestoreAdminV1EncryptionConfig+ { -- | Use Customer Managed Encryption Keys (CMEK) for encryption.+ customerManagedEncryption :: (Core.Maybe GoogleFirestoreAdminV1CustomerManagedEncryptionOptions),+ -- | Use Google default encryption.+ googleDefaultEncryption :: (Core.Maybe GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions),+ -- | The database will use the same encryption configuration as the source.+ useSourceEncryption :: (Core.Maybe GoogleFirestoreAdminV1SourceEncryptionOptions)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1EncryptionConfig' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1EncryptionConfig ::+ GoogleFirestoreAdminV1EncryptionConfig+newGoogleFirestoreAdminV1EncryptionConfig =+ GoogleFirestoreAdminV1EncryptionConfig+ { customerManagedEncryption =+ Core.Nothing,+ googleDefaultEncryption = Core.Nothing,+ useSourceEncryption = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1EncryptionConfig where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1EncryptionConfig"+ ( \o ->+ GoogleFirestoreAdminV1EncryptionConfig+ Core.<$> (o Core..:? "customerManagedEncryption")+ Core.<*> (o Core..:? "googleDefaultEncryption")+ Core.<*> (o Core..:? "useSourceEncryption")+ )++instance Core.ToJSON GoogleFirestoreAdminV1EncryptionConfig where+ toJSON GoogleFirestoreAdminV1EncryptionConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("customerManagedEncryption" Core..=)+ Core.<$> customerManagedEncryption,+ ("googleDefaultEncryption" Core..=)+ Core.<$> googleDefaultEncryption,+ ("useSourceEncryption" Core..=) Core.<$> useSourceEncryption+ ]+ )++-- | Metadata for google.longrunning.Operation results from FirestoreAdmin.ExportDocuments.+--+-- /See:/ 'newGoogleFirestoreAdminV1ExportDocumentsMetadata' smart constructor.+data GoogleFirestoreAdminV1ExportDocumentsMetadata = GoogleFirestoreAdminV1ExportDocumentsMetadata+ { -- | Which collection IDs are being exported.+ collectionIds :: (Core.Maybe [Core.Text]),+ -- | The time this operation completed. Will be unset if operation still in progress.+ endTime :: (Core.Maybe Core.DateTime),+ -- | Which namespace IDs are being exported.+ namespaceIds :: (Core.Maybe [Core.Text]),+ -- | The state of the export operation.+ operationState ::+ ( Core.Maybe+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+ ),+ -- | Where the documents are being exported to.+ outputUriPrefix :: (Core.Maybe Core.Text),+ -- | The progress, in bytes, of this operation.+ progressBytes :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The progress, in documents, of this operation.+ progressDocuments :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The timestamp that corresponds to the version of the database that is being exported. If unspecified, there are no guarantees about the consistency of the documents being exported.+ snapshotTime :: (Core.Maybe Core.DateTime),+ -- | The time this operation started.+ startTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1ExportDocumentsMetadata' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1ExportDocumentsMetadata ::+ GoogleFirestoreAdminV1ExportDocumentsMetadata+newGoogleFirestoreAdminV1ExportDocumentsMetadata =+ GoogleFirestoreAdminV1ExportDocumentsMetadata+ { collectionIds =+ Core.Nothing,+ endTime = Core.Nothing,+ namespaceIds = Core.Nothing,+ operationState = Core.Nothing,+ outputUriPrefix = Core.Nothing,+ progressBytes = Core.Nothing,+ progressDocuments = Core.Nothing,+ snapshotTime = Core.Nothing,+ startTime = Core.Nothing+ }++instance+ Core.FromJSON+ GoogleFirestoreAdminV1ExportDocumentsMetadata+ where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1ExportDocumentsMetadata"+ ( \o ->+ GoogleFirestoreAdminV1ExportDocumentsMetadata+ Core.<$> (o Core..:? "collectionIds")+ Core.<*> (o Core..:? "endTime")+ Core.<*> (o Core..:? "namespaceIds")+ Core.<*> (o Core..:? "operationState")+ Core.<*> (o Core..:? "outputUriPrefix")+ Core.<*> (o Core..:? "progressBytes")+ Core.<*> (o Core..:? "progressDocuments")+ Core.<*> (o Core..:? "snapshotTime")+ Core.<*> (o Core..:? "startTime")+ )++instance Core.ToJSON GoogleFirestoreAdminV1ExportDocumentsMetadata where+ toJSON GoogleFirestoreAdminV1ExportDocumentsMetadata {..} =+ Core.object+ ( Core.catMaybes+ [ ("collectionIds" Core..=) Core.<$> collectionIds,+ ("endTime" Core..=) Core.<$> endTime,+ ("namespaceIds" Core..=) Core.<$> namespaceIds,+ ("operationState" Core..=) Core.<$> operationState,+ ("outputUriPrefix" Core..=) Core.<$> outputUriPrefix,+ ("progressBytes" Core..=) Core.<$> progressBytes,+ ("progressDocuments" Core..=) Core.<$> progressDocuments,+ ("snapshotTime" Core..=) Core.<$> snapshotTime,+ ("startTime" Core..=) Core.<$> startTime+ ]+ )++-- | The request for FirestoreAdmin.ExportDocuments.+--+-- /See:/ 'newGoogleFirestoreAdminV1ExportDocumentsRequest' smart constructor.+data GoogleFirestoreAdminV1ExportDocumentsRequest = GoogleFirestoreAdminV1ExportDocumentsRequest+ { -- | Which collection IDs to export. Unspecified means all collections. Each collection ID in this list must be unique.+ collectionIds :: (Core.Maybe [Core.Text]),+ -- | An empty list represents all namespaces. This is the preferred usage for databases that don\'t use namespaces. An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn\'t want to include them. Each namespace in this list must be unique.+ namespaceIds :: (Core.Maybe [Core.Text]),+ -- | The output URI. Currently only supports Google Cloud Storage URIs of the form: @gs:\/\/BUCKET_NAME[\/NAMESPACE_PATH]@, where @BUCKET_NAME@ is the name of the Google Cloud Storage bucket and @NAMESPACE_PATH@ is an optional Google Cloud Storage namespace path. When choosing a name, be sure to consider Google Cloud Storage naming guidelines: https:\/\/cloud.google.com\/storage\/docs\/naming. If the URI is a bucket (without a namespace path), a prefix will be generated based on the start time.+ outputUriPrefix :: (Core.Maybe Core.Text),+ -- | The timestamp that corresponds to the version of the database to be exported. The timestamp must be in the past, rounded to the minute and not older than earliestVersionTime. If specified, then the exported documents will represent a consistent view of the database at the provided time. Otherwise, there are no guarantees about the consistency of the exported documents.+ snapshotTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1ExportDocumentsRequest' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1ExportDocumentsRequest ::+ GoogleFirestoreAdminV1ExportDocumentsRequest+newGoogleFirestoreAdminV1ExportDocumentsRequest =+ GoogleFirestoreAdminV1ExportDocumentsRequest+ { collectionIds =+ Core.Nothing,+ namespaceIds = Core.Nothing,+ outputUriPrefix = Core.Nothing,+ snapshotTime = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1ExportDocumentsRequest where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1ExportDocumentsRequest"+ ( \o ->+ GoogleFirestoreAdminV1ExportDocumentsRequest+ Core.<$> (o Core..:? "collectionIds")+ Core.<*> (o Core..:? "namespaceIds")+ Core.<*> (o Core..:? "outputUriPrefix")+ Core.<*> (o Core..:? "snapshotTime")+ )++instance Core.ToJSON GoogleFirestoreAdminV1ExportDocumentsRequest where+ toJSON GoogleFirestoreAdminV1ExportDocumentsRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("collectionIds" Core..=) Core.<$> collectionIds,+ ("namespaceIds" Core..=) Core.<$> namespaceIds,+ ("outputUriPrefix" Core..=) Core.<$> outputUriPrefix,+ ("snapshotTime" Core..=) Core.<$> snapshotTime+ ]+ )++-- | Returned in the google.longrunning.Operation response field.+--+-- /See:/ 'newGoogleFirestoreAdminV1ExportDocumentsResponse' smart constructor.+newtype GoogleFirestoreAdminV1ExportDocumentsResponse = GoogleFirestoreAdminV1ExportDocumentsResponse+ { -- | Location of the output files. This can be used to begin an import into Cloud Firestore (this project or another project) after the operation completes successfully.+ outputUriPrefix :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1ExportDocumentsResponse' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1ExportDocumentsResponse ::+ GoogleFirestoreAdminV1ExportDocumentsResponse+newGoogleFirestoreAdminV1ExportDocumentsResponse =+ GoogleFirestoreAdminV1ExportDocumentsResponse+ { outputUriPrefix =+ Core.Nothing+ }++instance+ Core.FromJSON+ GoogleFirestoreAdminV1ExportDocumentsResponse+ where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1ExportDocumentsResponse"+ ( \o ->+ GoogleFirestoreAdminV1ExportDocumentsResponse+ Core.<$> (o Core..:? "outputUriPrefix")+ )++instance Core.ToJSON GoogleFirestoreAdminV1ExportDocumentsResponse where+ toJSON GoogleFirestoreAdminV1ExportDocumentsResponse {..} =+ Core.object+ ( Core.catMaybes+ [("outputUriPrefix" Core..=) Core.<$> outputUriPrefix]+ )++-- | Represents a single field in the database. Fields are grouped by their \"Collection Group\", which represent all collections in the database with the same ID.+--+-- /See:/ 'newGoogleFirestoreAdminV1Field' smart constructor.+data GoogleFirestoreAdminV1Field = GoogleFirestoreAdminV1Field+ { -- | The index configuration for this field. If unset, field indexing will revert to the configuration defined by the @ancestor_field@. To explicitly remove all indexes for this field, specify an index config with an empty list of indexes.+ indexConfig :: (Core.Maybe GoogleFirestoreAdminV1IndexConfig),+ -- | Required. A field name of the form: @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/fields\/{field_path}@ A field path can be a simple field name, e.g. @address@ or a path to fields within @map_value@ , e.g. @address.city@, or a special field path. The only valid special field is @*@, which represents any field. Field paths can be quoted using @\`@ (backtick). The only character that must be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in field paths that must be quoted include: @*@, @.@, @\`@ (backtick), @[@, @]@, as well as any ascii symbolic characters. Examples: @\`address.city\`@ represents a field named @address.city@, not the map key @city@ in the field @address@. @\`*\`@ represents a field named @*@, not any field. A special @Field@ contains the default indexing settings for all fields. This field\'s resource name is:+ -- @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/__default__\/fields\/*@ Indexes defined on this @Field@ will be applied to all fields which do not have their own @Field@ index configuration.+ name :: (Core.Maybe Core.Text),+ -- | The TTL configuration for this @Field@. Setting or unsetting this will enable or disable the TTL for documents that have this @Field@.+ ttlConfig :: (Core.Maybe GoogleFirestoreAdminV1TtlConfig)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1Field' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1Field ::+ GoogleFirestoreAdminV1Field+newGoogleFirestoreAdminV1Field =+ GoogleFirestoreAdminV1Field+ { indexConfig = Core.Nothing,+ name = Core.Nothing,+ ttlConfig = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1Field where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1Field"+ ( \o ->+ GoogleFirestoreAdminV1Field+ Core.<$> (o Core..:? "indexConfig")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "ttlConfig")+ )++instance Core.ToJSON GoogleFirestoreAdminV1Field where+ toJSON GoogleFirestoreAdminV1Field {..} =+ Core.object+ ( Core.catMaybes+ [ ("indexConfig" Core..=) Core.<$> indexConfig,+ ("name" Core..=) Core.<$> name,+ ("ttlConfig" Core..=) Core.<$> ttlConfig+ ]+ )++-- | Metadata for google.longrunning.Operation results from FirestoreAdmin.UpdateField.+--+-- /See:/ 'newGoogleFirestoreAdminV1FieldOperationMetadata' smart constructor.+data GoogleFirestoreAdminV1FieldOperationMetadata = GoogleFirestoreAdminV1FieldOperationMetadata+ { -- | The time this operation completed. Will be unset if operation still in progress.+ endTime :: (Core.Maybe Core.DateTime),+ -- | The field resource that this operation is acting on. For example: @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/fields\/{field_path}@+ field :: (Core.Maybe Core.Text),+ -- | A list of IndexConfigDelta, which describe the intent of this operation.+ indexConfigDeltas :: (Core.Maybe [GoogleFirestoreAdminV1IndexConfigDelta]),+ -- | The progress, in bytes, of this operation.+ progressBytes :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The progress, in documents, of this operation.+ progressDocuments :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The time this operation started.+ startTime :: (Core.Maybe Core.DateTime),+ -- | The state of the operation.+ state :: (Core.Maybe GoogleFirestoreAdminV1FieldOperationMetadata_State),+ -- | Describes the deltas of TTL configuration.+ ttlConfigDelta :: (Core.Maybe GoogleFirestoreAdminV1TtlConfigDelta)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1FieldOperationMetadata' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1FieldOperationMetadata ::+ GoogleFirestoreAdminV1FieldOperationMetadata+newGoogleFirestoreAdminV1FieldOperationMetadata =+ GoogleFirestoreAdminV1FieldOperationMetadata+ { endTime =+ Core.Nothing,+ field = Core.Nothing,+ indexConfigDeltas = Core.Nothing,+ progressBytes = Core.Nothing,+ progressDocuments = Core.Nothing,+ startTime = Core.Nothing,+ state = Core.Nothing,+ ttlConfigDelta = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1FieldOperationMetadata where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1FieldOperationMetadata"+ ( \o ->+ GoogleFirestoreAdminV1FieldOperationMetadata+ Core.<$> (o Core..:? "endTime")+ Core.<*> (o Core..:? "field")+ Core.<*> (o Core..:? "indexConfigDeltas")+ Core.<*> (o Core..:? "progressBytes")+ Core.<*> (o Core..:? "progressDocuments")+ Core.<*> (o Core..:? "startTime")+ Core.<*> (o Core..:? "state")+ Core.<*> (o Core..:? "ttlConfigDelta")+ )++instance Core.ToJSON GoogleFirestoreAdminV1FieldOperationMetadata where+ toJSON GoogleFirestoreAdminV1FieldOperationMetadata {..} =+ Core.object+ ( Core.catMaybes+ [ ("endTime" Core..=) Core.<$> endTime,+ ("field" Core..=) Core.<$> field,+ ("indexConfigDeltas" Core..=) Core.<$> indexConfigDeltas,+ ("progressBytes" Core..=) Core.<$> progressBytes,+ ("progressDocuments" Core..=) Core.<$> progressDocuments,+ ("startTime" Core..=) Core.<$> startTime,+ ("state" Core..=) Core.<$> state,+ ("ttlConfigDelta" Core..=) Core.<$> ttlConfigDelta+ ]+ )++-- | An index that stores vectors in a flat data structure, and supports exhaustive search.+--+-- /See:/ 'newGoogleFirestoreAdminV1FlatIndex' smart constructor.+data GoogleFirestoreAdminV1FlatIndex = GoogleFirestoreAdminV1FlatIndex+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1FlatIndex' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1FlatIndex ::+ GoogleFirestoreAdminV1FlatIndex+newGoogleFirestoreAdminV1FlatIndex =+ GoogleFirestoreAdminV1FlatIndex++instance Core.FromJSON GoogleFirestoreAdminV1FlatIndex where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1FlatIndex"+ (\o -> Core.pure GoogleFirestoreAdminV1FlatIndex)++instance Core.ToJSON GoogleFirestoreAdminV1FlatIndex where+ toJSON = Core.const Core.emptyObject++-- | The configuration options for using Google default encryption.+--+-- /See:/ 'newGoogleFirestoreAdminV1GoogleDefaultEncryptionOptions' smart constructor.+data GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions = GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1GoogleDefaultEncryptionOptions ::+ GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions+newGoogleFirestoreAdminV1GoogleDefaultEncryptionOptions =+ GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions++instance+ Core.FromJSON+ GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions+ where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions"+ ( \o ->+ Core.pure GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions+ )++instance+ Core.ToJSON+ GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions+ where+ toJSON = Core.const Core.emptyObject++-- | Metadata for google.longrunning.Operation results from FirestoreAdmin.ImportDocuments.+--+-- /See:/ 'newGoogleFirestoreAdminV1ImportDocumentsMetadata' smart constructor.+data GoogleFirestoreAdminV1ImportDocumentsMetadata = GoogleFirestoreAdminV1ImportDocumentsMetadata+ { -- | Which collection IDs are being imported.+ collectionIds :: (Core.Maybe [Core.Text]),+ -- | The time this operation completed. Will be unset if operation still in progress.+ endTime :: (Core.Maybe Core.DateTime),+ -- | The location of the documents being imported.+ inputUriPrefix :: (Core.Maybe Core.Text),+ -- | Which namespace IDs are being imported.+ namespaceIds :: (Core.Maybe [Core.Text]),+ -- | The state of the import operation.+ operationState ::+ ( Core.Maybe+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+ ),+ -- | The progress, in bytes, of this operation.+ progressBytes :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The progress, in documents, of this operation.+ progressDocuments :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The time this operation started.+ startTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1ImportDocumentsMetadata' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1ImportDocumentsMetadata ::+ GoogleFirestoreAdminV1ImportDocumentsMetadata+newGoogleFirestoreAdminV1ImportDocumentsMetadata =+ GoogleFirestoreAdminV1ImportDocumentsMetadata+ { collectionIds =+ Core.Nothing,+ endTime = Core.Nothing,+ inputUriPrefix = Core.Nothing,+ namespaceIds = Core.Nothing,+ operationState = Core.Nothing,+ progressBytes = Core.Nothing,+ progressDocuments = Core.Nothing,+ startTime = Core.Nothing+ }++instance+ Core.FromJSON+ GoogleFirestoreAdminV1ImportDocumentsMetadata+ where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1ImportDocumentsMetadata"+ ( \o ->+ GoogleFirestoreAdminV1ImportDocumentsMetadata+ Core.<$> (o Core..:? "collectionIds")+ Core.<*> (o Core..:? "endTime")+ Core.<*> (o Core..:? "inputUriPrefix")+ Core.<*> (o Core..:? "namespaceIds")+ Core.<*> (o Core..:? "operationState")+ Core.<*> (o Core..:? "progressBytes")+ Core.<*> (o Core..:? "progressDocuments")+ Core.<*> (o Core..:? "startTime")+ )++instance Core.ToJSON GoogleFirestoreAdminV1ImportDocumentsMetadata where+ toJSON GoogleFirestoreAdminV1ImportDocumentsMetadata {..} =+ Core.object+ ( Core.catMaybes+ [ ("collectionIds" Core..=) Core.<$> collectionIds,+ ("endTime" Core..=) Core.<$> endTime,+ ("inputUriPrefix" Core..=) Core.<$> inputUriPrefix,+ ("namespaceIds" Core..=) Core.<$> namespaceIds,+ ("operationState" Core..=) Core.<$> operationState,+ ("progressBytes" Core..=) Core.<$> progressBytes,+ ("progressDocuments" Core..=) Core.<$> progressDocuments,+ ("startTime" Core..=) Core.<$> startTime+ ]+ )++-- | The request for FirestoreAdmin.ImportDocuments.+--+-- /See:/ 'newGoogleFirestoreAdminV1ImportDocumentsRequest' smart constructor.+data GoogleFirestoreAdminV1ImportDocumentsRequest = GoogleFirestoreAdminV1ImportDocumentsRequest+ { -- | Which collection IDs to import. Unspecified means all collections included in the import. Each collection ID in this list must be unique.+ collectionIds :: (Core.Maybe [Core.Text]),+ -- | Location of the exported files. This must match the output/uri/prefix of an ExportDocumentsResponse from an export that has completed successfully. See: google.firestore.admin.v1.ExportDocumentsResponse.output/uri/prefix.+ inputUriPrefix :: (Core.Maybe Core.Text),+ -- | An empty list represents all namespaces. This is the preferred usage for databases that don\'t use namespaces. An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn\'t want to include them. Each namespace in this list must be unique.+ namespaceIds :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1ImportDocumentsRequest' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1ImportDocumentsRequest ::+ GoogleFirestoreAdminV1ImportDocumentsRequest+newGoogleFirestoreAdminV1ImportDocumentsRequest =+ GoogleFirestoreAdminV1ImportDocumentsRequest+ { collectionIds =+ Core.Nothing,+ inputUriPrefix = Core.Nothing,+ namespaceIds = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1ImportDocumentsRequest where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1ImportDocumentsRequest"+ ( \o ->+ GoogleFirestoreAdminV1ImportDocumentsRequest+ Core.<$> (o Core..:? "collectionIds")+ Core.<*> (o Core..:? "inputUriPrefix")+ Core.<*> (o Core..:? "namespaceIds")+ )++instance Core.ToJSON GoogleFirestoreAdminV1ImportDocumentsRequest where+ toJSON GoogleFirestoreAdminV1ImportDocumentsRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("collectionIds" Core..=) Core.<$> collectionIds,+ ("inputUriPrefix" Core..=) Core.<$> inputUriPrefix,+ ("namespaceIds" Core..=) Core.<$> namespaceIds+ ]+ )++-- | Cloud Firestore indexes enable simple and complex queries against documents in a database.+--+-- /See:/ 'newGoogleFirestoreAdminV1Index' smart constructor.+data GoogleFirestoreAdminV1Index = GoogleFirestoreAdminV1Index+ { -- | The API scope supported by this index.+ apiScope :: (Core.Maybe GoogleFirestoreAdminV1Index_ApiScope),+ -- | The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path @__name__@. If, on creation, @__name__@ was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the @__name__@ will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field.+ fields :: (Core.Maybe [GoogleFirestoreAdminV1IndexField]),+ -- | Output only. A server defined name for this index. The form of this name for composite indexes will be: @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/indexes\/{composite_index_id}@ For single field indexes, this field will be empty.+ name :: (Core.Maybe Core.Text),+ -- | Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection ID. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection ID as this index.+ queryScope :: (Core.Maybe GoogleFirestoreAdminV1Index_QueryScope),+ -- | Output only. The serving state of the index.+ state :: (Core.Maybe GoogleFirestoreAdminV1Index_State)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1Index' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1Index ::+ GoogleFirestoreAdminV1Index+newGoogleFirestoreAdminV1Index =+ GoogleFirestoreAdminV1Index+ { apiScope = Core.Nothing,+ fields = Core.Nothing,+ name = Core.Nothing,+ queryScope = Core.Nothing,+ state = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1Index where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1Index"+ ( \o ->+ GoogleFirestoreAdminV1Index+ Core.<$> (o Core..:? "apiScope")+ Core.<*> (o Core..:? "fields")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "queryScope")+ Core.<*> (o Core..:? "state")+ )++instance Core.ToJSON GoogleFirestoreAdminV1Index where+ toJSON GoogleFirestoreAdminV1Index {..} =+ Core.object+ ( Core.catMaybes+ [ ("apiScope" Core..=) Core.<$> apiScope,+ ("fields" Core..=) Core.<$> fields,+ ("name" Core..=) Core.<$> name,+ ("queryScope" Core..=) Core.<$> queryScope,+ ("state" Core..=) Core.<$> state+ ]+ )++-- | The index configuration for this field.+--+-- /See:/ 'newGoogleFirestoreAdminV1IndexConfig' smart constructor.+data GoogleFirestoreAdminV1IndexConfig = GoogleFirestoreAdminV1IndexConfig+ { -- | Output only. Specifies the resource name of the @Field@ from which this field\'s index configuration is set (when @uses_ancestor_config@ is true), or from which it /would/ be set if this field had no index configuration (when @uses_ancestor_config@ is false).+ ancestorField :: (Core.Maybe Core.Text),+ -- | The indexes supported for this field.+ indexes :: (Core.Maybe [GoogleFirestoreAdminV1Index]),+ -- | Output only When true, the @Field@\'s index configuration is in the process of being reverted. Once complete, the index config will transition to the same state as the field specified by @ancestor_field@, at which point @uses_ancestor_config@ will be @true@ and @reverting@ will be @false@.+ reverting :: (Core.Maybe Core.Bool),+ -- | Output only. When true, the @Field@\'s index configuration is set from the configuration specified by the @ancestor_field@. When false, the @Field@\'s index configuration is defined explicitly.+ usesAncestorConfig :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1IndexConfig' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1IndexConfig ::+ GoogleFirestoreAdminV1IndexConfig+newGoogleFirestoreAdminV1IndexConfig =+ GoogleFirestoreAdminV1IndexConfig+ { ancestorField = Core.Nothing,+ indexes = Core.Nothing,+ reverting = Core.Nothing,+ usesAncestorConfig = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1IndexConfig where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1IndexConfig"+ ( \o ->+ GoogleFirestoreAdminV1IndexConfig+ Core.<$> (o Core..:? "ancestorField")+ Core.<*> (o Core..:? "indexes")+ Core.<*> (o Core..:? "reverting")+ Core.<*> (o Core..:? "usesAncestorConfig")+ )++instance Core.ToJSON GoogleFirestoreAdminV1IndexConfig where+ toJSON GoogleFirestoreAdminV1IndexConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("ancestorField" Core..=) Core.<$> ancestorField,+ ("indexes" Core..=) Core.<$> indexes,+ ("reverting" Core..=) Core.<$> reverting,+ ("usesAncestorConfig" Core..=) Core.<$> usesAncestorConfig+ ]+ )++-- | Information about an index configuration change.+--+-- /See:/ 'newGoogleFirestoreAdminV1IndexConfigDelta' smart constructor.+data GoogleFirestoreAdminV1IndexConfigDelta = GoogleFirestoreAdminV1IndexConfigDelta+ { -- | Specifies how the index is changing.+ changeType :: (Core.Maybe GoogleFirestoreAdminV1IndexConfigDelta_ChangeType),+ -- | The index being changed.+ index :: (Core.Maybe GoogleFirestoreAdminV1Index)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1IndexConfigDelta' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1IndexConfigDelta ::+ GoogleFirestoreAdminV1IndexConfigDelta+newGoogleFirestoreAdminV1IndexConfigDelta =+ GoogleFirestoreAdminV1IndexConfigDelta+ { changeType = Core.Nothing,+ index = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1IndexConfigDelta where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1IndexConfigDelta"+ ( \o ->+ GoogleFirestoreAdminV1IndexConfigDelta+ Core.<$> (o Core..:? "changeType")+ Core.<*> (o Core..:? "index")+ )++instance Core.ToJSON GoogleFirestoreAdminV1IndexConfigDelta where+ toJSON GoogleFirestoreAdminV1IndexConfigDelta {..} =+ Core.object+ ( Core.catMaybes+ [ ("changeType" Core..=) Core.<$> changeType,+ ("index" Core..=) Core.<$> index+ ]+ )++-- | A field in an index. The field/path describes which field is indexed, the value/mode describes how the field value is indexed.+--+-- /See:/ 'newGoogleFirestoreAdminV1IndexField' smart constructor.+data GoogleFirestoreAdminV1IndexField = GoogleFirestoreAdminV1IndexField+ { -- | Indicates that this field supports operations on @array_value@s.+ arrayConfig :: (Core.Maybe GoogleFirestoreAdminV1IndexField_ArrayConfig),+ -- | Can be __name__. For single field indexes, this must match the name of the field or may be omitted.+ fieldPath :: (Core.Maybe Core.Text),+ -- | Indicates that this field supports ordering by the specified order or comparing using =, !=, \<, \<=, >, >=.+ order :: (Core.Maybe GoogleFirestoreAdminV1IndexField_Order),+ -- | Indicates that this field supports nearest neighbor and distance operations on vector.+ vectorConfig :: (Core.Maybe GoogleFirestoreAdminV1VectorConfig)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1IndexField' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1IndexField ::+ GoogleFirestoreAdminV1IndexField+newGoogleFirestoreAdminV1IndexField =+ GoogleFirestoreAdminV1IndexField+ { arrayConfig = Core.Nothing,+ fieldPath = Core.Nothing,+ order = Core.Nothing,+ vectorConfig = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1IndexField where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1IndexField"+ ( \o ->+ GoogleFirestoreAdminV1IndexField+ Core.<$> (o Core..:? "arrayConfig")+ Core.<*> (o Core..:? "fieldPath")+ Core.<*> (o Core..:? "order")+ Core.<*> (o Core..:? "vectorConfig")+ )++instance Core.ToJSON GoogleFirestoreAdminV1IndexField where+ toJSON GoogleFirestoreAdminV1IndexField {..} =+ Core.object+ ( Core.catMaybes+ [ ("arrayConfig" Core..=) Core.<$> arrayConfig,+ ("fieldPath" Core..=) Core.<$> fieldPath,+ ("order" Core..=) Core.<$> order,+ ("vectorConfig" Core..=) Core.<$> vectorConfig+ ]+ )++-- | Metadata for google.longrunning.Operation results from FirestoreAdmin.CreateIndex.+--+-- /See:/ 'newGoogleFirestoreAdminV1IndexOperationMetadata' smart constructor.+data GoogleFirestoreAdminV1IndexOperationMetadata = GoogleFirestoreAdminV1IndexOperationMetadata+ { -- | The time this operation completed. Will be unset if operation still in progress.+ endTime :: (Core.Maybe Core.DateTime),+ -- | The index resource that this operation is acting on. For example: @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/indexes\/{index_id}@+ index :: (Core.Maybe Core.Text),+ -- | The progress, in bytes, of this operation.+ progressBytes :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The progress, in documents, of this operation.+ progressDocuments :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The time this operation started.+ startTime :: (Core.Maybe Core.DateTime),+ -- | The state of the operation.+ state :: (Core.Maybe GoogleFirestoreAdminV1IndexOperationMetadata_State)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1IndexOperationMetadata' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1IndexOperationMetadata ::+ GoogleFirestoreAdminV1IndexOperationMetadata+newGoogleFirestoreAdminV1IndexOperationMetadata =+ GoogleFirestoreAdminV1IndexOperationMetadata+ { endTime =+ Core.Nothing,+ index = Core.Nothing,+ progressBytes = Core.Nothing,+ progressDocuments = Core.Nothing,+ startTime = Core.Nothing,+ state = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1IndexOperationMetadata where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1IndexOperationMetadata"+ ( \o ->+ GoogleFirestoreAdminV1IndexOperationMetadata+ Core.<$> (o Core..:? "endTime")+ Core.<*> (o Core..:? "index")+ Core.<*> (o Core..:? "progressBytes")+ Core.<*> (o Core..:? "progressDocuments")+ Core.<*> (o Core..:? "startTime")+ Core.<*> (o Core..:? "state")+ )++instance Core.ToJSON GoogleFirestoreAdminV1IndexOperationMetadata where+ toJSON GoogleFirestoreAdminV1IndexOperationMetadata {..} =+ Core.object+ ( Core.catMaybes+ [ ("endTime" Core..=) Core.<$> endTime,+ ("index" Core..=) Core.<$> index,+ ("progressBytes" Core..=) Core.<$> progressBytes,+ ("progressDocuments" Core..=) Core.<$> progressDocuments,+ ("startTime" Core..=) Core.<$> startTime,+ ("state" Core..=) Core.<$> state+ ]+ )++-- | The response for FirestoreAdmin.ListBackupSchedules.+--+-- /See:/ 'newGoogleFirestoreAdminV1ListBackupSchedulesResponse' smart constructor.+newtype GoogleFirestoreAdminV1ListBackupSchedulesResponse = GoogleFirestoreAdminV1ListBackupSchedulesResponse+ { -- | List of all backup schedules.+ backupSchedules :: (Core.Maybe [GoogleFirestoreAdminV1BackupSchedule])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1ListBackupSchedulesResponse' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1ListBackupSchedulesResponse ::+ GoogleFirestoreAdminV1ListBackupSchedulesResponse+newGoogleFirestoreAdminV1ListBackupSchedulesResponse =+ GoogleFirestoreAdminV1ListBackupSchedulesResponse+ { backupSchedules =+ Core.Nothing+ }++instance+ Core.FromJSON+ GoogleFirestoreAdminV1ListBackupSchedulesResponse+ where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1ListBackupSchedulesResponse"+ ( \o ->+ GoogleFirestoreAdminV1ListBackupSchedulesResponse+ Core.<$> (o Core..:? "backupSchedules")+ )++instance+ Core.ToJSON+ GoogleFirestoreAdminV1ListBackupSchedulesResponse+ where+ toJSON GoogleFirestoreAdminV1ListBackupSchedulesResponse {..} =+ Core.object+ ( Core.catMaybes+ [("backupSchedules" Core..=) Core.<$> backupSchedules]+ )++-- | The response for FirestoreAdmin.ListBackups.+--+-- /See:/ 'newGoogleFirestoreAdminV1ListBackupsResponse' smart constructor.+data GoogleFirestoreAdminV1ListBackupsResponse = GoogleFirestoreAdminV1ListBackupsResponse+ { -- | List of all backups for the project.+ backups :: (Core.Maybe [GoogleFirestoreAdminV1Backup]),+ -- | List of locations that existing backups were not able to be fetched from. Instead of failing the entire requests when a single location is unreachable, this response returns a partial result set and list of locations unable to be reached here. The request can be retried against a single location to get a concrete error.+ unreachable :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1ListBackupsResponse' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1ListBackupsResponse ::+ GoogleFirestoreAdminV1ListBackupsResponse+newGoogleFirestoreAdminV1ListBackupsResponse =+ GoogleFirestoreAdminV1ListBackupsResponse+ { backups = Core.Nothing,+ unreachable = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1ListBackupsResponse where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1ListBackupsResponse"+ ( \o ->+ GoogleFirestoreAdminV1ListBackupsResponse+ Core.<$> (o Core..:? "backups")+ Core.<*> (o Core..:? "unreachable")+ )++instance Core.ToJSON GoogleFirestoreAdminV1ListBackupsResponse where+ toJSON GoogleFirestoreAdminV1ListBackupsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("backups" Core..=) Core.<$> backups,+ ("unreachable" Core..=) Core.<$> unreachable+ ]+ )++-- | The list of databases for a project.+--+-- /See:/ 'newGoogleFirestoreAdminV1ListDatabasesResponse' smart constructor.+data GoogleFirestoreAdminV1ListDatabasesResponse = GoogleFirestoreAdminV1ListDatabasesResponse+ { -- | The databases in the project.+ databases :: (Core.Maybe [GoogleFirestoreAdminV1Database]),+ -- | In the event that data about individual databases cannot be listed they will be recorded here. An example entry might be: projects\/some/project\/locations\/some/location This can happen if the Cloud Region that the Database resides in is currently unavailable. In this case we can\'t fetch all the details about the database. You may be able to get a more detailed error message (or possibly fetch the resource) by sending a \'Get\' request for the resource or a \'List\' request for the specific location.+ unreachable :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1ListDatabasesResponse' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1ListDatabasesResponse ::+ GoogleFirestoreAdminV1ListDatabasesResponse+newGoogleFirestoreAdminV1ListDatabasesResponse =+ GoogleFirestoreAdminV1ListDatabasesResponse+ { databases =+ Core.Nothing,+ unreachable = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1ListDatabasesResponse where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1ListDatabasesResponse"+ ( \o ->+ GoogleFirestoreAdminV1ListDatabasesResponse+ Core.<$> (o Core..:? "databases")+ Core.<*> (o Core..:? "unreachable")+ )++instance Core.ToJSON GoogleFirestoreAdminV1ListDatabasesResponse where+ toJSON GoogleFirestoreAdminV1ListDatabasesResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("databases" Core..=) Core.<$> databases,+ ("unreachable" Core..=) Core.<$> unreachable+ ]+ )++-- | The response for FirestoreAdmin.ListFields.+--+-- /See:/ 'newGoogleFirestoreAdminV1ListFieldsResponse' smart constructor.+data GoogleFirestoreAdminV1ListFieldsResponse = GoogleFirestoreAdminV1ListFieldsResponse+ { -- | The requested fields.+ fields :: (Core.Maybe [GoogleFirestoreAdminV1Field]),+ -- | A page token that may be used to request another page of results. If blank, this is the last page.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1ListFieldsResponse' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1ListFieldsResponse ::+ GoogleFirestoreAdminV1ListFieldsResponse+newGoogleFirestoreAdminV1ListFieldsResponse =+ GoogleFirestoreAdminV1ListFieldsResponse+ { fields = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1ListFieldsResponse where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1ListFieldsResponse"+ ( \o ->+ GoogleFirestoreAdminV1ListFieldsResponse+ Core.<$> (o Core..:? "fields")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON GoogleFirestoreAdminV1ListFieldsResponse where+ toJSON GoogleFirestoreAdminV1ListFieldsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("fields" Core..=) Core.<$> fields,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | The response for FirestoreAdmin.ListIndexes.+--+-- /See:/ 'newGoogleFirestoreAdminV1ListIndexesResponse' smart constructor.+data GoogleFirestoreAdminV1ListIndexesResponse = GoogleFirestoreAdminV1ListIndexesResponse+ { -- | The requested indexes.+ indexes :: (Core.Maybe [GoogleFirestoreAdminV1Index]),+ -- | A page token that may be used to request another page of results. If blank, this is the last page.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1ListIndexesResponse' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1ListIndexesResponse ::+ GoogleFirestoreAdminV1ListIndexesResponse+newGoogleFirestoreAdminV1ListIndexesResponse =+ GoogleFirestoreAdminV1ListIndexesResponse+ { indexes = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1ListIndexesResponse where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1ListIndexesResponse"+ ( \o ->+ GoogleFirestoreAdminV1ListIndexesResponse+ Core.<$> (o Core..:? "indexes")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON GoogleFirestoreAdminV1ListIndexesResponse where+ toJSON GoogleFirestoreAdminV1ListIndexesResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("indexes" Core..=) Core.<$> indexes,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | The metadata message for google.cloud.location.Location.metadata.+--+-- /See:/ 'newGoogleFirestoreAdminV1LocationMetadata' smart constructor.+data GoogleFirestoreAdminV1LocationMetadata = GoogleFirestoreAdminV1LocationMetadata+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1LocationMetadata' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1LocationMetadata ::+ GoogleFirestoreAdminV1LocationMetadata+newGoogleFirestoreAdminV1LocationMetadata =+ GoogleFirestoreAdminV1LocationMetadata++instance Core.FromJSON GoogleFirestoreAdminV1LocationMetadata where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1LocationMetadata"+ (\o -> Core.pure GoogleFirestoreAdminV1LocationMetadata)++instance Core.ToJSON GoogleFirestoreAdminV1LocationMetadata where+ toJSON = Core.const Core.emptyObject++-- | Describes the progress of the operation. Unit of work is generic and must be interpreted based on where Progress is used.+--+-- /See:/ 'newGoogleFirestoreAdminV1Progress' smart constructor.+data GoogleFirestoreAdminV1Progress = GoogleFirestoreAdminV1Progress+ { -- | The amount of work completed.+ completedWork :: (Core.Maybe Core.Int64),+ -- | The amount of work estimated.+ estimatedWork :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1Progress' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1Progress ::+ GoogleFirestoreAdminV1Progress+newGoogleFirestoreAdminV1Progress =+ GoogleFirestoreAdminV1Progress+ { completedWork = Core.Nothing,+ estimatedWork = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1Progress where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1Progress"+ ( \o ->+ GoogleFirestoreAdminV1Progress+ Core.<$> (o Core..:? "completedWork" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "estimatedWork" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON GoogleFirestoreAdminV1Progress where+ toJSON GoogleFirestoreAdminV1Progress {..} =+ Core.object+ ( Core.catMaybes+ [ ("completedWork" Core..=)+ Core.. Core.AsText+ Core.<$> completedWork,+ ("estimatedWork" Core..=)+ Core.. Core.AsText+ Core.<$> estimatedWork+ ]+ )++-- | Metadata for the long-running operation from the RestoreDatabase request.+--+-- /See:/ 'newGoogleFirestoreAdminV1RestoreDatabaseMetadata' smart constructor.+data GoogleFirestoreAdminV1RestoreDatabaseMetadata = GoogleFirestoreAdminV1RestoreDatabaseMetadata+ { -- | The name of the backup restoring from.+ backup :: (Core.Maybe Core.Text),+ -- | The name of the database being restored to.+ database :: (Core.Maybe Core.Text),+ -- | The time the restore finished, unset for ongoing restores.+ endTime :: (Core.Maybe Core.DateTime),+ -- | The operation state of the restore.+ operationState ::+ ( Core.Maybe+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+ ),+ -- | How far along the restore is as an estimated percentage of remaining time.+ progressPercentage :: (Core.Maybe GoogleFirestoreAdminV1Progress),+ -- | The time the restore was started.+ startTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1RestoreDatabaseMetadata' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1RestoreDatabaseMetadata ::+ GoogleFirestoreAdminV1RestoreDatabaseMetadata+newGoogleFirestoreAdminV1RestoreDatabaseMetadata =+ GoogleFirestoreAdminV1RestoreDatabaseMetadata+ { backup =+ Core.Nothing,+ database = Core.Nothing,+ endTime = Core.Nothing,+ operationState = Core.Nothing,+ progressPercentage = Core.Nothing,+ startTime = Core.Nothing+ }++instance+ Core.FromJSON+ GoogleFirestoreAdminV1RestoreDatabaseMetadata+ where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1RestoreDatabaseMetadata"+ ( \o ->+ GoogleFirestoreAdminV1RestoreDatabaseMetadata+ Core.<$> (o Core..:? "backup")+ Core.<*> (o Core..:? "database")+ Core.<*> (o Core..:? "endTime")+ Core.<*> (o Core..:? "operationState")+ Core.<*> (o Core..:? "progressPercentage")+ Core.<*> (o Core..:? "startTime")+ )++instance Core.ToJSON GoogleFirestoreAdminV1RestoreDatabaseMetadata where+ toJSON GoogleFirestoreAdminV1RestoreDatabaseMetadata {..} =+ Core.object+ ( Core.catMaybes+ [ ("backup" Core..=) Core.<$> backup,+ ("database" Core..=) Core.<$> database,+ ("endTime" Core..=) Core.<$> endTime,+ ("operationState" Core..=) Core.<$> operationState,+ ("progressPercentage" Core..=) Core.<$> progressPercentage,+ ("startTime" Core..=) Core.<$> startTime+ ]+ )++-- | The request message for FirestoreAdmin.RestoreDatabase.+--+-- /See:/ 'newGoogleFirestoreAdminV1RestoreDatabaseRequest' smart constructor.+data GoogleFirestoreAdminV1RestoreDatabaseRequest = GoogleFirestoreAdminV1RestoreDatabaseRequest+ { -- | Required. Backup to restore from. Must be from the same project as the parent. The restored database will be created in the same location as the source backup. Format is: @projects\/{project_id}\/locations\/{location}\/backups\/{backup}@+ backup :: (Core.Maybe Core.Text),+ -- | Required. The ID to use for the database, which will become the final component of the database\'s resource name. This database ID must not be associated with an existing database. This value should be 4-63 characters. Valid characters are \/a-z-\/ with first character a letter and the last a letter or a number. Must not be UUID-like \/[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\/. \"(default)\" database ID is also valid.+ databaseId :: (Core.Maybe Core.Text),+ -- | Optional. Encryption configuration for the restored database. If this field is not specified, the restored database will use the same encryption configuration as the backup, namely use/source/encryption.+ encryptionConfig :: (Core.Maybe GoogleFirestoreAdminV1EncryptionConfig)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1RestoreDatabaseRequest' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1RestoreDatabaseRequest ::+ GoogleFirestoreAdminV1RestoreDatabaseRequest+newGoogleFirestoreAdminV1RestoreDatabaseRequest =+ GoogleFirestoreAdminV1RestoreDatabaseRequest+ { backup =+ Core.Nothing,+ databaseId = Core.Nothing,+ encryptionConfig = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1RestoreDatabaseRequest where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1RestoreDatabaseRequest"+ ( \o ->+ GoogleFirestoreAdminV1RestoreDatabaseRequest+ Core.<$> (o Core..:? "backup")+ Core.<*> (o Core..:? "databaseId")+ Core.<*> (o Core..:? "encryptionConfig")+ )++instance Core.ToJSON GoogleFirestoreAdminV1RestoreDatabaseRequest where+ toJSON GoogleFirestoreAdminV1RestoreDatabaseRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("backup" Core..=) Core.<$> backup,+ ("databaseId" Core..=) Core.<$> databaseId,+ ("encryptionConfig" Core..=) Core.<$> encryptionConfig+ ]+ )++-- | The configuration options for using the same encryption method as the source.+--+-- /See:/ 'newGoogleFirestoreAdminV1SourceEncryptionOptions' smart constructor.+data GoogleFirestoreAdminV1SourceEncryptionOptions = GoogleFirestoreAdminV1SourceEncryptionOptions+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1SourceEncryptionOptions' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1SourceEncryptionOptions ::+ GoogleFirestoreAdminV1SourceEncryptionOptions+newGoogleFirestoreAdminV1SourceEncryptionOptions =+ GoogleFirestoreAdminV1SourceEncryptionOptions++instance+ Core.FromJSON+ GoogleFirestoreAdminV1SourceEncryptionOptions+ where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1SourceEncryptionOptions"+ (\o -> Core.pure GoogleFirestoreAdminV1SourceEncryptionOptions)++instance Core.ToJSON GoogleFirestoreAdminV1SourceEncryptionOptions where+ toJSON = Core.const Core.emptyObject++-- | Information about the provenance of this database.+--+-- /See:/ 'newGoogleFirestoreAdminV1SourceInfo' smart constructor.+data GoogleFirestoreAdminV1SourceInfo = GoogleFirestoreAdminV1SourceInfo+ { -- | If set, this database was restored from the specified backup (or a snapshot thereof).+ backup :: (Core.Maybe GoogleFirestoreAdminV1BackupSource),+ -- | The associated long-running operation. This field may not be set after the operation has completed. Format: @projects\/{project}\/databases\/{database}\/operations\/{operation}@.+ operation :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1SourceInfo' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1SourceInfo ::+ GoogleFirestoreAdminV1SourceInfo+newGoogleFirestoreAdminV1SourceInfo =+ GoogleFirestoreAdminV1SourceInfo+ { backup = Core.Nothing,+ operation = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1SourceInfo where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1SourceInfo"+ ( \o ->+ GoogleFirestoreAdminV1SourceInfo+ Core.<$> (o Core..:? "backup")+ Core.<*> (o Core..:? "operation")+ )++instance Core.ToJSON GoogleFirestoreAdminV1SourceInfo where+ toJSON GoogleFirestoreAdminV1SourceInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("backup" Core..=) Core.<$> backup,+ ("operation" Core..=) Core.<$> operation+ ]+ )++-- | Backup specific statistics.+--+-- /See:/ 'newGoogleFirestoreAdminV1Stats' smart constructor.+data GoogleFirestoreAdminV1Stats = GoogleFirestoreAdminV1Stats+ { -- | Output only. The total number of documents contained in the backup.+ documentCount :: (Core.Maybe Core.Int64),+ -- | Output only. The total number of index entries contained in the backup.+ indexCount :: (Core.Maybe Core.Int64),+ -- | Output only. Summation of the size of all documents and index entries in the backup, measured in bytes.+ sizeBytes :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1Stats' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1Stats ::+ GoogleFirestoreAdminV1Stats+newGoogleFirestoreAdminV1Stats =+ GoogleFirestoreAdminV1Stats+ { documentCount = Core.Nothing,+ indexCount = Core.Nothing,+ sizeBytes = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1Stats where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1Stats"+ ( \o ->+ GoogleFirestoreAdminV1Stats+ Core.<$> (o Core..:? "documentCount" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "indexCount" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "sizeBytes" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON GoogleFirestoreAdminV1Stats where+ toJSON GoogleFirestoreAdminV1Stats {..} =+ Core.object+ ( Core.catMaybes+ [ ("documentCount" Core..=)+ Core.. Core.AsText+ Core.<$> documentCount,+ ("indexCount" Core..=) Core.. Core.AsText Core.<$> indexCount,+ ("sizeBytes" Core..=) Core.. Core.AsText Core.<$> sizeBytes+ ]+ )++-- | The TTL (time-to-live) configuration for documents that have this @Field@ set. Storing a timestamp value into a TTL-enabled field will be treated as the document\'s absolute expiration time. Timestamp values in the past indicate that the document is eligible for immediate expiration. Using any other data type or leaving the field absent will disable expiration for the individual document.+--+-- /See:/ 'newGoogleFirestoreAdminV1TtlConfig' smart constructor.+newtype GoogleFirestoreAdminV1TtlConfig = GoogleFirestoreAdminV1TtlConfig+ { -- | Output only. The state of the TTL configuration.+ state :: (Core.Maybe GoogleFirestoreAdminV1TtlConfig_State)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1TtlConfig' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1TtlConfig ::+ GoogleFirestoreAdminV1TtlConfig+newGoogleFirestoreAdminV1TtlConfig =+ GoogleFirestoreAdminV1TtlConfig {state = Core.Nothing}++instance Core.FromJSON GoogleFirestoreAdminV1TtlConfig where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1TtlConfig"+ ( \o ->+ GoogleFirestoreAdminV1TtlConfig Core.<$> (o Core..:? "state")+ )++instance Core.ToJSON GoogleFirestoreAdminV1TtlConfig where+ toJSON GoogleFirestoreAdminV1TtlConfig {..} =+ Core.object (Core.catMaybes [("state" Core..=) Core.<$> state])++-- | Information about a TTL configuration change.+--+-- /See:/ 'newGoogleFirestoreAdminV1TtlConfigDelta' smart constructor.+newtype GoogleFirestoreAdminV1TtlConfigDelta = GoogleFirestoreAdminV1TtlConfigDelta+ { -- | Specifies how the TTL configuration is changing.+ changeType :: (Core.Maybe GoogleFirestoreAdminV1TtlConfigDelta_ChangeType)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1TtlConfigDelta' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1TtlConfigDelta ::+ GoogleFirestoreAdminV1TtlConfigDelta+newGoogleFirestoreAdminV1TtlConfigDelta =+ GoogleFirestoreAdminV1TtlConfigDelta {changeType = Core.Nothing}++instance Core.FromJSON GoogleFirestoreAdminV1TtlConfigDelta where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1TtlConfigDelta"+ ( \o ->+ GoogleFirestoreAdminV1TtlConfigDelta+ Core.<$> (o Core..:? "changeType")+ )++instance Core.ToJSON GoogleFirestoreAdminV1TtlConfigDelta where+ toJSON GoogleFirestoreAdminV1TtlConfigDelta {..} =+ Core.object+ (Core.catMaybes [("changeType" Core..=) Core.<$> changeType])++-- | Metadata related to the update database operation.+--+-- /See:/ 'newGoogleFirestoreAdminV1UpdateDatabaseMetadata' smart constructor.+data GoogleFirestoreAdminV1UpdateDatabaseMetadata = GoogleFirestoreAdminV1UpdateDatabaseMetadata+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1UpdateDatabaseMetadata' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1UpdateDatabaseMetadata ::+ GoogleFirestoreAdminV1UpdateDatabaseMetadata+newGoogleFirestoreAdminV1UpdateDatabaseMetadata =+ GoogleFirestoreAdminV1UpdateDatabaseMetadata++instance Core.FromJSON GoogleFirestoreAdminV1UpdateDatabaseMetadata where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1UpdateDatabaseMetadata"+ (\o -> Core.pure GoogleFirestoreAdminV1UpdateDatabaseMetadata)++instance Core.ToJSON GoogleFirestoreAdminV1UpdateDatabaseMetadata where+ toJSON = Core.const Core.emptyObject++-- | The index configuration to support vector search operations+--+-- /See:/ 'newGoogleFirestoreAdminV1VectorConfig' smart constructor.+data GoogleFirestoreAdminV1VectorConfig = GoogleFirestoreAdminV1VectorConfig+ { -- | Required. The vector dimension this configuration applies to. The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.+ dimension :: (Core.Maybe Core.Int32),+ -- | Indicates the vector index is a flat index.+ flat :: (Core.Maybe GoogleFirestoreAdminV1FlatIndex)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1VectorConfig' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1VectorConfig ::+ GoogleFirestoreAdminV1VectorConfig+newGoogleFirestoreAdminV1VectorConfig =+ GoogleFirestoreAdminV1VectorConfig+ { dimension = Core.Nothing,+ flat = Core.Nothing+ }++instance Core.FromJSON GoogleFirestoreAdminV1VectorConfig where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1VectorConfig"+ ( \o ->+ GoogleFirestoreAdminV1VectorConfig+ Core.<$> (o Core..:? "dimension")+ Core.<*> (o Core..:? "flat")+ )++instance Core.ToJSON GoogleFirestoreAdminV1VectorConfig where+ toJSON GoogleFirestoreAdminV1VectorConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("dimension" Core..=) Core.<$> dimension,+ ("flat" Core..=) Core.<$> flat+ ]+ )++-- | Represents a recurring schedule that runs on a specified day of the week. The time zone is UTC.+--+-- /See:/ 'newGoogleFirestoreAdminV1WeeklyRecurrence' smart constructor.+newtype GoogleFirestoreAdminV1WeeklyRecurrence = GoogleFirestoreAdminV1WeeklyRecurrence+ { -- | The day of week to run. DAY/OF/WEEK_UNSPECIFIED is not allowed.+ day :: (Core.Maybe GoogleFirestoreAdminV1WeeklyRecurrence_Day)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleFirestoreAdminV1WeeklyRecurrence' with the minimum fields required to make a request.+newGoogleFirestoreAdminV1WeeklyRecurrence ::+ GoogleFirestoreAdminV1WeeklyRecurrence+newGoogleFirestoreAdminV1WeeklyRecurrence =+ GoogleFirestoreAdminV1WeeklyRecurrence {day = Core.Nothing}++instance Core.FromJSON GoogleFirestoreAdminV1WeeklyRecurrence where+ parseJSON =+ Core.withObject+ "GoogleFirestoreAdminV1WeeklyRecurrence"+ ( \o ->+ GoogleFirestoreAdminV1WeeklyRecurrence Core.<$> (o Core..:? "day")+ )++instance Core.ToJSON GoogleFirestoreAdminV1WeeklyRecurrence where+ toJSON GoogleFirestoreAdminV1WeeklyRecurrence {..} =+ Core.object (Core.catMaybes [("day" Core..=) Core.<$> day])++-- | The request message for Operations.CancelOperation.+--+-- /See:/ 'newGoogleLongrunningCancelOperationRequest' smart constructor.+data GoogleLongrunningCancelOperationRequest = GoogleLongrunningCancelOperationRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleLongrunningCancelOperationRequest' with the minimum fields required to make a request.+newGoogleLongrunningCancelOperationRequest ::+ GoogleLongrunningCancelOperationRequest+newGoogleLongrunningCancelOperationRequest =+ GoogleLongrunningCancelOperationRequest++instance Core.FromJSON GoogleLongrunningCancelOperationRequest where+ parseJSON =+ Core.withObject+ "GoogleLongrunningCancelOperationRequest"+ (\o -> Core.pure GoogleLongrunningCancelOperationRequest)++instance Core.ToJSON GoogleLongrunningCancelOperationRequest where+ toJSON = Core.const Core.emptyObject++-- | The response message for Operations.ListOperations.+--+-- /See:/ 'newGoogleLongrunningListOperationsResponse' smart constructor.+data GoogleLongrunningListOperationsResponse = GoogleLongrunningListOperationsResponse+ { -- | The standard List next-page token.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | A list of operations that matches the specified filter in the request.+ operations :: (Core.Maybe [GoogleLongrunningOperation])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleLongrunningListOperationsResponse' with the minimum fields required to make a request.+newGoogleLongrunningListOperationsResponse ::+ GoogleLongrunningListOperationsResponse+newGoogleLongrunningListOperationsResponse =+ GoogleLongrunningListOperationsResponse+ { nextPageToken =+ Core.Nothing,+ operations = Core.Nothing+ }++instance Core.FromJSON GoogleLongrunningListOperationsResponse where+ parseJSON =+ Core.withObject+ "GoogleLongrunningListOperationsResponse"+ ( \o ->+ GoogleLongrunningListOperationsResponse+ Core.<$> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "operations")+ )++instance Core.ToJSON GoogleLongrunningListOperationsResponse where+ toJSON GoogleLongrunningListOperationsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("operations" Core..=) Core.<$> operations+ ]+ )++-- | This resource represents a long-running operation that is the result of a network API call.+--+-- /See:/ 'newGoogleLongrunningOperation' smart constructor.+data GoogleLongrunningOperation = GoogleLongrunningOperation+ { -- | If the value is @false@, it means the operation is still in progress. If @true@, the operation is completed, and either @error@ or @response@ is available.+ done :: (Core.Maybe Core.Bool),+ -- | The error result of the operation in case of failure or cancellation.+ error :: (Core.Maybe Status),+ -- | Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.+ metadata :: (Core.Maybe GoogleLongrunningOperation_Metadata),+ -- | The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the @name@ should be a resource name ending with @operations\/{unique_id}@.+ name :: (Core.Maybe Core.Text),+ -- | The normal, successful response of the operation. If the original method returns no data on success, such as @Delete@, the response is @google.protobuf.Empty@. If the original method is standard @Get@\/@Create@\/@Update@, the response should be the resource. For other methods, the response should have the type @XxxResponse@, where @Xxx@ is the original method name. For example, if the original method name is @TakeSnapshot()@, the inferred response type is @TakeSnapshotResponse@.+ response :: (Core.Maybe GoogleLongrunningOperation_Response)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleLongrunningOperation' with the minimum fields required to make a request.+newGoogleLongrunningOperation ::+ GoogleLongrunningOperation+newGoogleLongrunningOperation =+ GoogleLongrunningOperation+ { done = Core.Nothing,+ error = Core.Nothing,+ metadata = Core.Nothing,+ name = Core.Nothing,+ response = Core.Nothing+ }++instance Core.FromJSON GoogleLongrunningOperation where+ parseJSON =+ Core.withObject+ "GoogleLongrunningOperation"+ ( \o ->+ GoogleLongrunningOperation+ Core.<$> (o Core..:? "done")+ Core.<*> (o Core..:? "error")+ Core.<*> (o Core..:? "metadata")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "response")+ )++instance Core.ToJSON GoogleLongrunningOperation where+ toJSON GoogleLongrunningOperation {..} =+ Core.object+ ( Core.catMaybes+ [ ("done" Core..=) Core.<$> done,+ ("error" Core..=) Core.<$> error,+ ("metadata" Core..=) Core.<$> metadata,+ ("name" Core..=) Core.<$> name,+ ("response" Core..=) Core.<$> response+ ]+ )++-- | Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.+--+-- /See:/ 'newGoogleLongrunningOperation_Metadata' smart constructor.+newtype GoogleLongrunningOperation_Metadata = GoogleLongrunningOperation_Metadata+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleLongrunningOperation_Metadata' with the minimum fields required to make a request.+newGoogleLongrunningOperation_Metadata ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ GoogleLongrunningOperation_Metadata+newGoogleLongrunningOperation_Metadata additional =+ GoogleLongrunningOperation_Metadata {additional = additional}++instance Core.FromJSON GoogleLongrunningOperation_Metadata where+ parseJSON =+ Core.withObject+ "GoogleLongrunningOperation_Metadata"+ ( \o ->+ GoogleLongrunningOperation_Metadata+ Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON GoogleLongrunningOperation_Metadata where+ toJSON GoogleLongrunningOperation_Metadata {..} =+ Core.toJSON additional++-- | The normal, successful response of the operation. If the original method returns no data on success, such as @Delete@, the response is @google.protobuf.Empty@. If the original method is standard @Get@\/@Create@\/@Update@, the response should be the resource. For other methods, the response should have the type @XxxResponse@, where @Xxx@ is the original method name. For example, if the original method name is @TakeSnapshot()@, the inferred response type is @TakeSnapshotResponse@.+--+-- /See:/ 'newGoogleLongrunningOperation_Response' smart constructor.+newtype GoogleLongrunningOperation_Response = GoogleLongrunningOperation_Response+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleLongrunningOperation_Response' with the minimum fields required to make a request.+newGoogleLongrunningOperation_Response ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ GoogleLongrunningOperation_Response+newGoogleLongrunningOperation_Response additional =+ GoogleLongrunningOperation_Response {additional = additional}++instance Core.FromJSON GoogleLongrunningOperation_Response where+ parseJSON =+ Core.withObject+ "GoogleLongrunningOperation_Response"+ ( \o ->+ GoogleLongrunningOperation_Response+ Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON GoogleLongrunningOperation_Response where+ toJSON GoogleLongrunningOperation_Response {..} =+ Core.toJSON additional++-- | An object that represents a latitude\/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.+--+-- /See:/ 'newLatLng' smart constructor.+data LatLng = LatLng+ { -- | The latitude in degrees. It must be in the range [-90.0, +90.0].+ latitude :: (Core.Maybe Core.Double),+ -- | The longitude in degrees. It must be in the range [-180.0, +180.0].+ longitude :: (Core.Maybe Core.Double)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'LatLng' with the minimum fields required to make a request.+newLatLng ::+ LatLng+newLatLng =+ LatLng {latitude = Core.Nothing, longitude = Core.Nothing}++instance Core.FromJSON LatLng where+ parseJSON =+ Core.withObject+ "LatLng"+ ( \o ->+ LatLng+ Core.<$> (o Core..:? "latitude")+ Core.<*> (o Core..:? "longitude")+ )++instance Core.ToJSON LatLng where+ toJSON LatLng {..} =+ Core.object+ ( Core.catMaybes+ [ ("latitude" Core..=) Core.<$> latitude,+ ("longitude" Core..=) Core.<$> longitude+ ]+ )++-- | The request for Firestore.ListCollectionIds.+--+-- /See:/ 'newListCollectionIdsRequest' smart constructor.+data ListCollectionIdsRequest = ListCollectionIdsRequest+ { -- | The maximum number of results to return.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A page token. Must be a value from ListCollectionIdsResponse.+ pageToken :: (Core.Maybe Core.Text),+ -- | Reads documents as they were at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.+ readTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListCollectionIdsRequest' with the minimum fields required to make a request.+newListCollectionIdsRequest ::+ ListCollectionIdsRequest+newListCollectionIdsRequest =+ ListCollectionIdsRequest+ { pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ readTime = Core.Nothing+ }++instance Core.FromJSON ListCollectionIdsRequest where+ parseJSON =+ Core.withObject+ "ListCollectionIdsRequest"+ ( \o ->+ ListCollectionIdsRequest+ Core.<$> (o Core..:? "pageSize")+ Core.<*> (o Core..:? "pageToken")+ Core.<*> (o Core..:? "readTime")+ )++instance Core.ToJSON ListCollectionIdsRequest where+ toJSON ListCollectionIdsRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("pageSize" Core..=) Core.<$> pageSize,+ ("pageToken" Core..=) Core.<$> pageToken,+ ("readTime" Core..=) Core.<$> readTime+ ]+ )++-- | The response from Firestore.ListCollectionIds.+--+-- /See:/ 'newListCollectionIdsResponse' smart constructor.+data ListCollectionIdsResponse = ListCollectionIdsResponse+ { -- | The collection ids.+ collectionIds :: (Core.Maybe [Core.Text]),+ -- | A page token that may be used to continue the list.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListCollectionIdsResponse' with the minimum fields required to make a request.+newListCollectionIdsResponse ::+ ListCollectionIdsResponse+newListCollectionIdsResponse =+ ListCollectionIdsResponse+ { collectionIds = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON ListCollectionIdsResponse where+ parseJSON =+ Core.withObject+ "ListCollectionIdsResponse"+ ( \o ->+ ListCollectionIdsResponse+ Core.<$> (o Core..:? "collectionIds")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON ListCollectionIdsResponse where+ toJSON ListCollectionIdsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("collectionIds" Core..=) Core.<$> collectionIds,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | The response for Firestore.ListDocuments.+--+-- /See:/ 'newListDocumentsResponse' smart constructor.+data ListDocumentsResponse = ListDocumentsResponse+ { -- | The Documents found.+ documents :: (Core.Maybe [Document]),+ -- | A token to retrieve the next page of documents. If this field is omitted, there are no subsequent pages.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListDocumentsResponse' with the minimum fields required to make a request.+newListDocumentsResponse ::+ ListDocumentsResponse+newListDocumentsResponse =+ ListDocumentsResponse+ { documents = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON ListDocumentsResponse where+ parseJSON =+ Core.withObject+ "ListDocumentsResponse"+ ( \o ->+ ListDocumentsResponse+ Core.<$> (o Core..:? "documents")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON ListDocumentsResponse where+ toJSON ListDocumentsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("documents" Core..=) Core.<$> documents,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | The response message for Locations.ListLocations.+--+-- /See:/ 'newListLocationsResponse' smart constructor.+data ListLocationsResponse = ListLocationsResponse+ { -- | A list of locations that matches the specified filter in the request.+ locations :: (Core.Maybe [Location]),+ -- | The standard List next-page token.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListLocationsResponse' with the minimum fields required to make a request.+newListLocationsResponse ::+ ListLocationsResponse+newListLocationsResponse =+ ListLocationsResponse+ { locations = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON ListLocationsResponse where+ parseJSON =+ Core.withObject+ "ListLocationsResponse"+ ( \o ->+ ListLocationsResponse+ Core.<$> (o Core..:? "locations")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON ListLocationsResponse where+ toJSON ListLocationsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("locations" Core..=) Core.<$> locations,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | A request for Firestore.Listen+--+-- /See:/ 'newListenRequest' smart constructor.+data ListenRequest = ListenRequest+ { -- | A target to add to this stream.+ addTarget :: (Core.Maybe Target),+ -- | Labels associated with this target change.+ labels :: (Core.Maybe ListenRequest_Labels),+ -- | The ID of a target to remove from this stream.+ removeTarget :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListenRequest' with the minimum fields required to make a request.+newListenRequest ::+ ListenRequest+newListenRequest =+ ListenRequest+ { addTarget = Core.Nothing,+ labels = Core.Nothing,+ removeTarget = Core.Nothing+ }++instance Core.FromJSON ListenRequest where+ parseJSON =+ Core.withObject+ "ListenRequest"+ ( \o ->+ ListenRequest+ Core.<$> (o Core..:? "addTarget")+ Core.<*> (o Core..:? "labels")+ Core.<*> (o Core..:? "removeTarget")+ )++instance Core.ToJSON ListenRequest where+ toJSON ListenRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("addTarget" Core..=) Core.<$> addTarget,+ ("labels" Core..=) Core.<$> labels,+ ("removeTarget" Core..=) Core.<$> removeTarget+ ]+ )++-- | Labels associated with this target change.+--+-- /See:/ 'newListenRequest_Labels' smart constructor.+newtype ListenRequest_Labels = ListenRequest_Labels+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListenRequest_Labels' with the minimum fields required to make a request.+newListenRequest_Labels ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ ListenRequest_Labels+newListenRequest_Labels additional =+ ListenRequest_Labels {additional = additional}++instance Core.FromJSON ListenRequest_Labels where+ parseJSON =+ Core.withObject+ "ListenRequest_Labels"+ (\o -> ListenRequest_Labels Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON ListenRequest_Labels where+ toJSON ListenRequest_Labels {..} = Core.toJSON additional++-- | The response for Firestore.Listen.+--+-- /See:/ 'newListenResponse' smart constructor.+data ListenResponse = ListenResponse+ { -- | A Document has changed.+ documentChange :: (Core.Maybe DocumentChange),+ -- | A Document has been deleted.+ documentDelete :: (Core.Maybe DocumentDelete),+ -- | A Document has been removed from a target (because it is no longer relevant to that target).+ documentRemove :: (Core.Maybe DocumentRemove),+ -- | A filter to apply to the set of documents previously returned for the given target. Returned when documents may have been removed from the given target, but the exact documents are unknown.+ filter :: (Core.Maybe ExistenceFilter),+ -- | Targets have changed.+ targetChange :: (Core.Maybe TargetChange)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListenResponse' with the minimum fields required to make a request.+newListenResponse ::+ ListenResponse+newListenResponse =+ ListenResponse+ { documentChange = Core.Nothing,+ documentDelete = Core.Nothing,+ documentRemove = Core.Nothing,+ filter = Core.Nothing,+ targetChange = Core.Nothing+ }++instance Core.FromJSON ListenResponse where+ parseJSON =+ Core.withObject+ "ListenResponse"+ ( \o ->+ ListenResponse+ Core.<$> (o Core..:? "documentChange")+ Core.<*> (o Core..:? "documentDelete")+ Core.<*> (o Core..:? "documentRemove")+ Core.<*> (o Core..:? "filter")+ Core.<*> (o Core..:? "targetChange")+ )++instance Core.ToJSON ListenResponse where+ toJSON ListenResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("documentChange" Core..=) Core.<$> documentChange,+ ("documentDelete" Core..=) Core.<$> documentDelete,+ ("documentRemove" Core..=) Core.<$> documentRemove,+ ("filter" Core..=) Core.<$> filter,+ ("targetChange" Core..=) Core.<$> targetChange+ ]+ )++-- | A resource that represents a Google Cloud location.+--+-- /See:/ 'newLocation' smart constructor.+data Location = Location+ { -- | The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".+ displayName :: (Core.Maybe Core.Text),+ -- | Cross-service attributes for the location. For example {\"cloud.googleapis.com\/region\": \"us-east1\"}+ labels :: (Core.Maybe Location_Labels),+ -- | The canonical id for this location. For example: @\"us-east1\"@.+ locationId :: (Core.Maybe Core.Text),+ -- | Service-specific metadata. For example the available capacity at the given location.+ metadata :: (Core.Maybe Location_Metadata),+ -- | Resource name for the location, which may vary between implementations. For example: @\"projects\/example-project\/locations\/us-east1\"@+ name :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Location' with the minimum fields required to make a request.+newLocation ::+ Location+newLocation =+ Location+ { displayName = Core.Nothing,+ labels = Core.Nothing,+ locationId = Core.Nothing,+ metadata = Core.Nothing,+ name = Core.Nothing+ }++instance Core.FromJSON Location where+ parseJSON =+ Core.withObject+ "Location"+ ( \o ->+ Location+ Core.<$> (o Core..:? "displayName")+ Core.<*> (o Core..:? "labels")+ Core.<*> (o Core..:? "locationId")+ Core.<*> (o Core..:? "metadata")+ Core.<*> (o Core..:? "name")+ )++instance Core.ToJSON Location where+ toJSON Location {..} =+ Core.object+ ( Core.catMaybes+ [ ("displayName" Core..=) Core.<$> displayName,+ ("labels" Core..=) Core.<$> labels,+ ("locationId" Core..=) Core.<$> locationId,+ ("metadata" Core..=) Core.<$> metadata,+ ("name" Core..=) Core.<$> name+ ]+ )++-- | Cross-service attributes for the location. For example {\"cloud.googleapis.com\/region\": \"us-east1\"}+--+-- /See:/ 'newLocation_Labels' smart constructor.+newtype Location_Labels = Location_Labels+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Location_Labels' with the minimum fields required to make a request.+newLocation_Labels ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ Location_Labels+newLocation_Labels additional =+ Location_Labels {additional = additional}++instance Core.FromJSON Location_Labels where+ parseJSON =+ Core.withObject+ "Location_Labels"+ (\o -> Location_Labels Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Location_Labels where+ toJSON Location_Labels {..} = Core.toJSON additional++-- | Service-specific metadata. For example the available capacity at the given location.+--+-- /See:/ 'newLocation_Metadata' smart constructor.+newtype Location_Metadata = Location_Metadata+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Location_Metadata' with the minimum fields required to make a request.+newLocation_Metadata ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ Location_Metadata+newLocation_Metadata additional =+ Location_Metadata {additional = additional}++instance Core.FromJSON Location_Metadata where+ parseJSON =+ Core.withObject+ "Location_Metadata"+ (\o -> Location_Metadata Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Location_Metadata where+ toJSON Location_Metadata {..} = Core.toJSON additional++-- | A map value.+--+-- /See:/ 'newMapValue' smart constructor.+newtype MapValue = MapValue+ { -- | The map\'s fields. The map keys represent field names. Field names matching the regular expression @__.*__@ are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.+ fields :: (Core.Maybe MapValue_Fields)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MapValue' with the minimum fields required to make a request.+newMapValue ::+ MapValue+newMapValue = MapValue {fields = Core.Nothing}++instance Core.FromJSON MapValue where+ parseJSON =+ Core.withObject+ "MapValue"+ (\o -> MapValue Core.<$> (o Core..:? "fields"))++instance Core.ToJSON MapValue where+ toJSON MapValue {..} =+ Core.object (Core.catMaybes [("fields" Core..=) Core.<$> fields])++-- | The map\'s fields. The map keys represent field names. Field names matching the regular expression @__.*__@ are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.+--+-- /See:/ 'newMapValue_Fields' smart constructor.+newtype MapValue_Fields = MapValue_Fields+ { additional :: (Core.HashMap Core.Text Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MapValue_Fields' with the minimum fields required to make a request.+newMapValue_Fields ::+ -- | See 'additional'.+ Core.HashMap Core.Text Value ->+ MapValue_Fields+newMapValue_Fields additional =+ MapValue_Fields {additional = additional}++instance Core.FromJSON MapValue_Fields where+ parseJSON =+ Core.withObject+ "MapValue_Fields"+ (\o -> MapValue_Fields Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON MapValue_Fields where+ toJSON MapValue_Fields {..} = Core.toJSON additional++-- | An order on a field.+--+-- /See:/ 'newOrder' smart constructor.+data Order = Order+ { -- | The direction to order by. Defaults to @ASCENDING@.+ direction :: (Core.Maybe Order_Direction),+ -- | The field to order by.+ field :: (Core.Maybe FieldReference)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Order' with the minimum fields required to make a request.+newOrder ::+ Order+newOrder = Order {direction = Core.Nothing, field = Core.Nothing}++instance Core.FromJSON Order where+ parseJSON =+ Core.withObject+ "Order"+ ( \o ->+ Order+ Core.<$> (o Core..:? "direction")+ Core.<*> (o Core..:? "field")+ )++instance Core.ToJSON Order where+ toJSON Order {..} =+ Core.object+ ( Core.catMaybes+ [ ("direction" Core..=) Core.<$> direction,+ ("field" Core..=) Core.<$> field+ ]+ )++-- | The request for Firestore.PartitionQuery.+--+-- /See:/ 'newPartitionQueryRequest' smart constructor.+data PartitionQueryRequest = PartitionQueryRequest+ { -- | The maximum number of partitions to return in this call, subject to @partition_count@. For example, if @partition_count@ = 10 and @page_size@ = 8, the first call to PartitionQuery will return up to 8 partitions and a @next_page_token@ if more results exist. A second call to PartitionQuery will return up to 2 partitions, to complete the total of 10 specified in @partition_count@.+ pageSize :: (Core.Maybe Core.Int32),+ -- | The @next_page_token@ value returned from a previous call to PartitionQuery that may be used to get an additional set of results. There are no ordering guarantees between sets of results. Thus, using multiple sets of results will require merging the different result sets. For example, two subsequent calls using a page_token may return: * cursor B, cursor M, cursor Q * cursor A, cursor U, cursor W To obtain a complete result set ordered with respect to the results of the query supplied to PartitionQuery, the results sets should be merged: cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W+ pageToken :: (Core.Maybe Core.Text),+ -- | The desired maximum number of partition points. The partitions may be returned across multiple pages of results. The number must be positive. The actual number of partitions returned may be fewer. For example, this may be set to one fewer than the number of parallel queries to be run, or in running a data pipeline job, one fewer than the number of workers or compute instances available.+ partitionCount :: (Core.Maybe Core.Int64),+ -- | Reads documents as they were at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.+ readTime :: (Core.Maybe Core.DateTime),+ -- | A structured query. Query must specify collection with all descendants and be ordered by name ascending. Other filters, order bys, limits, offsets, and start\/end cursors are not supported.+ structuredQuery :: (Core.Maybe StructuredQuery)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PartitionQueryRequest' with the minimum fields required to make a request.+newPartitionQueryRequest ::+ PartitionQueryRequest+newPartitionQueryRequest =+ PartitionQueryRequest+ { pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ partitionCount = Core.Nothing,+ readTime = Core.Nothing,+ structuredQuery = Core.Nothing+ }++instance Core.FromJSON PartitionQueryRequest where+ parseJSON =+ Core.withObject+ "PartitionQueryRequest"+ ( \o ->+ PartitionQueryRequest+ Core.<$> (o Core..:? "pageSize")+ Core.<*> (o Core..:? "pageToken")+ Core.<*> (o Core..:? "partitionCount" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "structuredQuery")+ )++instance Core.ToJSON PartitionQueryRequest where+ toJSON PartitionQueryRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("pageSize" Core..=) Core.<$> pageSize,+ ("pageToken" Core..=) Core.<$> pageToken,+ ("partitionCount" Core..=)+ Core.. Core.AsText+ Core.<$> partitionCount,+ ("readTime" Core..=) Core.<$> readTime,+ ("structuredQuery" Core..=) Core.<$> structuredQuery+ ]+ )++-- | The response for Firestore.PartitionQuery.+--+-- /See:/ 'newPartitionQueryResponse' smart constructor.+data PartitionQueryResponse = PartitionQueryResponse+ { -- | A page token that may be used to request an additional set of results, up to the number specified by @partition_count@ in the PartitionQuery request. If blank, there are no more results.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | Partition results. Each partition is a split point that can be used by RunQuery as a starting or end point for the query results. The RunQuery requests must be made with the same query supplied to this PartitionQuery request. The partition cursors will be ordered according to same ordering as the results of the query supplied to PartitionQuery. For example, if a PartitionQuery request returns partition cursors A and B, running the following three queries will return the entire result set of the original query: * query, end/at A * query, start/at A, end/at B * query, start/at B An empty result may indicate that the query has too few results to be partitioned, or that the query is not yet supported for partitioning.+ partitions :: (Core.Maybe [Cursor])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PartitionQueryResponse' with the minimum fields required to make a request.+newPartitionQueryResponse ::+ PartitionQueryResponse+newPartitionQueryResponse =+ PartitionQueryResponse+ { nextPageToken = Core.Nothing,+ partitions = Core.Nothing+ }++instance Core.FromJSON PartitionQueryResponse where+ parseJSON =+ Core.withObject+ "PartitionQueryResponse"+ ( \o ->+ PartitionQueryResponse+ Core.<$> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "partitions")+ )++instance Core.ToJSON PartitionQueryResponse where+ toJSON PartitionQueryResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("partitions" Core..=) Core.<$> partitions+ ]+ )++-- | Planning phase information for the query.+--+-- /See:/ 'newPlanSummary' smart constructor.+newtype PlanSummary = PlanSummary+ { -- | The indexes selected for the query. For example: [ {\"query/scope\": \"Collection\", \"properties\": \"(foo ASC, __name__ ASC)\"}, {\"query/scope\": \"Collection\", \"properties\": \"(bar ASC, __name__ ASC)\"} ]+ indexesUsed :: (Core.Maybe [PlanSummary_IndexesUsedItem])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PlanSummary' with the minimum fields required to make a request.+newPlanSummary ::+ PlanSummary+newPlanSummary = PlanSummary {indexesUsed = Core.Nothing}++instance Core.FromJSON PlanSummary where+ parseJSON =+ Core.withObject+ "PlanSummary"+ (\o -> PlanSummary Core.<$> (o Core..:? "indexesUsed"))++instance Core.ToJSON PlanSummary where+ toJSON PlanSummary {..} =+ Core.object+ (Core.catMaybes [("indexesUsed" Core..=) Core.<$> indexesUsed])++--+-- /See:/ 'newPlanSummary_IndexesUsedItem' smart constructor.+newtype PlanSummary_IndexesUsedItem = PlanSummary_IndexesUsedItem+ { -- | Properties of the object.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PlanSummary_IndexesUsedItem' with the minimum fields required to make a request.+newPlanSummary_IndexesUsedItem ::+ -- | Properties of the object. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ PlanSummary_IndexesUsedItem+newPlanSummary_IndexesUsedItem additional =+ PlanSummary_IndexesUsedItem {additional = additional}++instance Core.FromJSON PlanSummary_IndexesUsedItem where+ parseJSON =+ Core.withObject+ "PlanSummary_IndexesUsedItem"+ ( \o ->+ PlanSummary_IndexesUsedItem Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON PlanSummary_IndexesUsedItem where+ toJSON PlanSummary_IndexesUsedItem {..} = Core.toJSON additional++-- | A precondition on a document, used for conditional operations.+--+-- /See:/ 'newPrecondition' smart constructor.+data Precondition = Precondition+ { -- | When set to @true@, the target document must exist. When set to @false@, the target document must not exist.+ exists :: (Core.Maybe Core.Bool),+ -- | When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.+ updateTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Precondition' with the minimum fields required to make a request.+newPrecondition ::+ Precondition+newPrecondition =+ Precondition {exists = Core.Nothing, updateTime = Core.Nothing}++instance Core.FromJSON Precondition where+ parseJSON =+ Core.withObject+ "Precondition"+ ( \o ->+ Precondition+ Core.<$> (o Core..:? "exists")+ Core.<*> (o Core..:? "updateTime")+ )++instance Core.ToJSON Precondition where+ toJSON Precondition {..} =+ Core.object+ ( Core.catMaybes+ [ ("exists" Core..=) Core.<$> exists,+ ("updateTime" Core..=) Core.<$> updateTime+ ]+ )++-- | The projection of document\'s fields to return.+--+-- /See:/ 'newProjection' smart constructor.+newtype Projection = Projection+ { -- | The fields to return. If empty, all fields are returned. To only return the name of the document, use @[\'__name__\']@.+ fields :: (Core.Maybe [FieldReference])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Projection' with the minimum fields required to make a request.+newProjection ::+ Projection+newProjection = Projection {fields = Core.Nothing}++instance Core.FromJSON Projection where+ parseJSON =+ Core.withObject+ "Projection"+ (\o -> Projection Core.<$> (o Core..:? "fields"))++instance Core.ToJSON Projection where+ toJSON Projection {..} =+ Core.object (Core.catMaybes [("fields" Core..=) Core.<$> fields])++-- | A target specified by a query.+--+-- /See:/ 'newQueryTarget' smart constructor.+data QueryTarget = QueryTarget+ { -- | The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents@ or @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@+ parent :: (Core.Maybe Core.Text),+ -- | A structured query.+ structuredQuery :: (Core.Maybe StructuredQuery)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'QueryTarget' with the minimum fields required to make a request.+newQueryTarget ::+ QueryTarget+newQueryTarget =+ QueryTarget+ { parent = Core.Nothing,+ structuredQuery = Core.Nothing+ }++instance Core.FromJSON QueryTarget where+ parseJSON =+ Core.withObject+ "QueryTarget"+ ( \o ->+ QueryTarget+ Core.<$> (o Core..:? "parent")+ Core.<*> (o Core..:? "structuredQuery")+ )++instance Core.ToJSON QueryTarget where+ toJSON QueryTarget {..} =+ Core.object+ ( Core.catMaybes+ [ ("parent" Core..=) Core.<$> parent,+ ("structuredQuery" Core..=) Core.<$> structuredQuery+ ]+ )++-- | Options for a transaction that can only be used to read documents.+--+-- /See:/ 'newReadOnly' smart constructor.+newtype ReadOnly = ReadOnly+ { -- | Reads documents at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.+ readTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ReadOnly' with the minimum fields required to make a request.+newReadOnly ::+ ReadOnly+newReadOnly = ReadOnly {readTime = Core.Nothing}++instance Core.FromJSON ReadOnly where+ parseJSON =+ Core.withObject+ "ReadOnly"+ (\o -> ReadOnly Core.<$> (o Core..:? "readTime"))++instance Core.ToJSON ReadOnly where+ toJSON ReadOnly {..} =+ Core.object+ (Core.catMaybes [("readTime" Core..=) Core.<$> readTime])++-- | Options for a transaction that can be used to read and write documents. Firestore does not allow 3rd party auth requests to create read-write. transactions.+--+-- /See:/ 'newReadWrite' smart constructor.+newtype ReadWrite = ReadWrite+ { -- | An optional transaction to retry.+ retryTransaction :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ReadWrite' with the minimum fields required to make a request.+newReadWrite ::+ ReadWrite+newReadWrite = ReadWrite {retryTransaction = Core.Nothing}++instance Core.FromJSON ReadWrite where+ parseJSON =+ Core.withObject+ "ReadWrite"+ (\o -> ReadWrite Core.<$> (o Core..:? "retryTransaction"))++instance Core.ToJSON ReadWrite where+ toJSON ReadWrite {..} =+ Core.object+ ( Core.catMaybes+ [("retryTransaction" Core..=) Core.<$> retryTransaction]+ )++-- | The request for Firestore.Rollback.+--+-- /See:/ 'newRollbackRequest' smart constructor.+newtype RollbackRequest = RollbackRequest+ { -- | Required. The transaction to roll back.+ transaction :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RollbackRequest' with the minimum fields required to make a request.+newRollbackRequest ::+ RollbackRequest+newRollbackRequest = RollbackRequest {transaction = Core.Nothing}++instance Core.FromJSON RollbackRequest where+ parseJSON =+ Core.withObject+ "RollbackRequest"+ (\o -> RollbackRequest Core.<$> (o Core..:? "transaction"))++instance Core.ToJSON RollbackRequest where+ toJSON RollbackRequest {..} =+ Core.object+ (Core.catMaybes [("transaction" Core..=) Core.<$> transaction])++-- | The request for Firestore.RunAggregationQuery.+--+-- /See:/ 'newRunAggregationQueryRequest' smart constructor.+data RunAggregationQueryRequest = RunAggregationQueryRequest+ { -- | Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.+ explainOptions :: (Core.Maybe ExplainOptions),+ -- | Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream.+ newTransaction' :: (Core.Maybe TransactionOptions),+ -- | Executes the query at the given timestamp. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.+ readTime :: (Core.Maybe Core.DateTime),+ -- | An aggregation query.+ structuredAggregationQuery :: (Core.Maybe StructuredAggregationQuery),+ -- | Run the aggregation within an already active transaction. The value here is the opaque transaction ID to execute the query in.+ transaction :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RunAggregationQueryRequest' with the minimum fields required to make a request.+newRunAggregationQueryRequest ::+ RunAggregationQueryRequest+newRunAggregationQueryRequest =+ RunAggregationQueryRequest+ { explainOptions = Core.Nothing,+ newTransaction' = Core.Nothing,+ readTime = Core.Nothing,+ structuredAggregationQuery = Core.Nothing,+ transaction = Core.Nothing+ }++instance Core.FromJSON RunAggregationQueryRequest where+ parseJSON =+ Core.withObject+ "RunAggregationQueryRequest"+ ( \o ->+ RunAggregationQueryRequest+ Core.<$> (o Core..:? "explainOptions")+ Core.<*> (o Core..:? "newTransaction")+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "structuredAggregationQuery")+ Core.<*> (o Core..:? "transaction")+ )++instance Core.ToJSON RunAggregationQueryRequest where+ toJSON RunAggregationQueryRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("explainOptions" Core..=) Core.<$> explainOptions,+ ("newTransaction" Core..=) Core.<$> newTransaction',+ ("readTime" Core..=) Core.<$> readTime,+ ("structuredAggregationQuery" Core..=)+ Core.<$> structuredAggregationQuery,+ ("transaction" Core..=) Core.<$> transaction+ ]+ )++-- | The response for Firestore.RunAggregationQuery.+--+-- /See:/ 'newRunAggregationQueryResponse' smart constructor.+data RunAggregationQueryResponse = RunAggregationQueryResponse+ { -- | Query explain metrics. This is only present when the RunAggregationQueryRequest.explain_options is provided, and it is sent only once with the last response in the stream.+ explainMetrics :: (Core.Maybe ExplainMetrics),+ -- | The time at which the aggregate result was computed. This is always monotonically increasing; in this case, the previous AggregationResult in the result stream are guaranteed not to have changed between their @read_time@ and this one. If the query returns no results, a response with @read_time@ and no @result@ will be sent, and this represents the time at which the query was run.+ readTime :: (Core.Maybe Core.DateTime),+ -- | A single aggregation result. Not present when reporting partial progress.+ result :: (Core.Maybe AggregationResult),+ -- | The transaction that was started as part of this request. Only present on the first response when the request requested to start a new transaction.+ transaction :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RunAggregationQueryResponse' with the minimum fields required to make a request.+newRunAggregationQueryResponse ::+ RunAggregationQueryResponse+newRunAggregationQueryResponse =+ RunAggregationQueryResponse+ { explainMetrics = Core.Nothing,+ readTime = Core.Nothing,+ result = Core.Nothing,+ transaction = Core.Nothing+ }++instance Core.FromJSON RunAggregationQueryResponse where+ parseJSON =+ Core.withObject+ "RunAggregationQueryResponse"+ ( \o ->+ RunAggregationQueryResponse+ Core.<$> (o Core..:? "explainMetrics")+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "result")+ Core.<*> (o Core..:? "transaction")+ )++instance Core.ToJSON RunAggregationQueryResponse where+ toJSON RunAggregationQueryResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("explainMetrics" Core..=) Core.<$> explainMetrics,+ ("readTime" Core..=) Core.<$> readTime,+ ("result" Core..=) Core.<$> result,+ ("transaction" Core..=) Core.<$> transaction+ ]+ )++-- | The request for Firestore.RunQuery.+--+-- /See:/ 'newRunQueryRequest' smart constructor.+data RunQueryRequest = RunQueryRequest+ { -- | Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.+ explainOptions :: (Core.Maybe ExplainOptions),+ -- | Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.+ newTransaction' :: (Core.Maybe TransactionOptions),+ -- | Reads documents as they were at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.+ readTime :: (Core.Maybe Core.DateTime),+ -- | A structured query.+ structuredQuery :: (Core.Maybe StructuredQuery),+ -- | Run the query within an already active transaction. The value here is the opaque transaction ID to execute the query in.+ transaction :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RunQueryRequest' with the minimum fields required to make a request.+newRunQueryRequest ::+ RunQueryRequest+newRunQueryRequest =+ RunQueryRequest+ { explainOptions = Core.Nothing,+ newTransaction' = Core.Nothing,+ readTime = Core.Nothing,+ structuredQuery = Core.Nothing,+ transaction = Core.Nothing+ }++instance Core.FromJSON RunQueryRequest where+ parseJSON =+ Core.withObject+ "RunQueryRequest"+ ( \o ->+ RunQueryRequest+ Core.<$> (o Core..:? "explainOptions")+ Core.<*> (o Core..:? "newTransaction")+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "structuredQuery")+ Core.<*> (o Core..:? "transaction")+ )++instance Core.ToJSON RunQueryRequest where+ toJSON RunQueryRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("explainOptions" Core..=) Core.<$> explainOptions,+ ("newTransaction" Core..=) Core.<$> newTransaction',+ ("readTime" Core..=) Core.<$> readTime,+ ("structuredQuery" Core..=) Core.<$> structuredQuery,+ ("transaction" Core..=) Core.<$> transaction+ ]+ )++-- | The response for Firestore.RunQuery.+--+-- /See:/ 'newRunQueryResponse' smart constructor.+data RunQueryResponse = RunQueryResponse+ { -- | A query result, not set when reporting partial progress.+ document :: (Core.Maybe Document),+ -- | If present, Firestore has completely finished the request and no more documents will be returned.+ done :: (Core.Maybe Core.Bool),+ -- | Query explain metrics. This is only present when the RunQueryRequest.explain_options is provided, and it is sent only once with the last response in the stream.+ explainMetrics :: (Core.Maybe ExplainMetrics),+ -- | The time at which the document was read. This may be monotonically increasing; in this case, the previous documents in the result stream are guaranteed not to have changed between their @read_time@ and this one. If the query returns no results, a response with @read_time@ and no @document@ will be sent, and this represents the time at which the query was run.+ readTime :: (Core.Maybe Core.DateTime),+ -- | The number of results that have been skipped due to an offset between the last response and the current response.+ skippedResults :: (Core.Maybe Core.Int32),+ -- | The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response.+ transaction :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RunQueryResponse' with the minimum fields required to make a request.+newRunQueryResponse ::+ RunQueryResponse+newRunQueryResponse =+ RunQueryResponse+ { document = Core.Nothing,+ done = Core.Nothing,+ explainMetrics = Core.Nothing,+ readTime = Core.Nothing,+ skippedResults = Core.Nothing,+ transaction = Core.Nothing+ }++instance Core.FromJSON RunQueryResponse where+ parseJSON =+ Core.withObject+ "RunQueryResponse"+ ( \o ->+ RunQueryResponse+ Core.<$> (o Core..:? "document")+ Core.<*> (o Core..:? "done")+ Core.<*> (o Core..:? "explainMetrics")+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "skippedResults")+ Core.<*> (o Core..:? "transaction")+ )++instance Core.ToJSON RunQueryResponse where+ toJSON RunQueryResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("document" Core..=) Core.<$> document,+ ("done" Core..=) Core.<$> done,+ ("explainMetrics" Core..=) Core.<$> explainMetrics,+ ("readTime" Core..=) Core.<$> readTime,+ ("skippedResults" Core..=) Core.<$> skippedResults,+ ("transaction" Core..=) Core.<$> transaction+ ]+ )++-- | The @Status@ type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by <https://github.com/grpc gRPC>. Each @Status@ message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the <https://cloud.google.com/apis/design/errors API Design Guide>.+--+-- /See:/ 'newStatus' smart constructor.+data Status = Status+ { -- | The status code, which should be an enum value of google.rpc.Code.+ code :: (Core.Maybe Core.Int32),+ -- | A list of messages that carry the error details. There is a common set of message types for APIs to use.+ details :: (Core.Maybe [Status_DetailsItem]),+ -- | A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.+ message :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Status' with the minimum fields required to make a request.+newStatus ::+ Status+newStatus =+ Status+ { code = Core.Nothing,+ details = Core.Nothing,+ message = Core.Nothing+ }++instance Core.FromJSON Status where+ parseJSON =+ Core.withObject+ "Status"+ ( \o ->+ Status+ Core.<$> (o Core..:? "code")+ Core.<*> (o Core..:? "details")+ Core.<*> (o Core..:? "message")+ )++instance Core.ToJSON Status where+ toJSON Status {..} =+ Core.object+ ( Core.catMaybes+ [ ("code" Core..=) Core.<$> code,+ ("details" Core..=) Core.<$> details,+ ("message" Core..=) Core.<$> message+ ]+ )++--+-- /See:/ 'newStatus_DetailsItem' smart constructor.+newtype Status_DetailsItem = Status_DetailsItem+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Status_DetailsItem' with the minimum fields required to make a request.+newStatus_DetailsItem ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ Status_DetailsItem+newStatus_DetailsItem additional =+ Status_DetailsItem {additional = additional}++instance Core.FromJSON Status_DetailsItem where+ parseJSON =+ Core.withObject+ "Status_DetailsItem"+ (\o -> Status_DetailsItem Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Status_DetailsItem where+ toJSON Status_DetailsItem {..} = Core.toJSON additional++-- | Firestore query for running an aggregation over a StructuredQuery.+--+-- /See:/ 'newStructuredAggregationQuery' smart constructor.+data StructuredAggregationQuery = StructuredAggregationQuery+ { -- | Optional. Series of aggregations to apply over the results of the @structured_query@. Requires: * A minimum of one and maximum of five aggregations per query.+ aggregations :: (Core.Maybe [Aggregation]),+ -- | Nested structured query.+ structuredQuery :: (Core.Maybe StructuredQuery)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StructuredAggregationQuery' with the minimum fields required to make a request.+newStructuredAggregationQuery ::+ StructuredAggregationQuery+newStructuredAggregationQuery =+ StructuredAggregationQuery+ { aggregations = Core.Nothing,+ structuredQuery = Core.Nothing+ }++instance Core.FromJSON StructuredAggregationQuery where+ parseJSON =+ Core.withObject+ "StructuredAggregationQuery"+ ( \o ->+ StructuredAggregationQuery+ Core.<$> (o Core..:? "aggregations")+ Core.<*> (o Core..:? "structuredQuery")+ )++instance Core.ToJSON StructuredAggregationQuery where+ toJSON StructuredAggregationQuery {..} =+ Core.object+ ( Core.catMaybes+ [ ("aggregations" Core..=) Core.<$> aggregations,+ ("structuredQuery" Core..=) Core.<$> structuredQuery+ ]+ )++-- | A Firestore query. The query stages are executed in the following order: 1. from 2. where 3. select 4. order/by + start/at + end/at 5. offset 6. limit 7. find/nearest+--+-- /See:/ 'newStructuredQuery' smart constructor.+data StructuredQuery = StructuredQuery+ { -- | A potential prefix of a position in the result set to end the query at. This is similar to @START_AT@ but with it controlling the end position rather than the start position. Requires: * The number of values cannot be greater than the number of fields specified in the @ORDER BY@ clause.+ endAt :: (Core.Maybe Cursor),+ -- | Optional. A potential nearest neighbors search. Applies after all other filters and ordering. Finds the closest vector embeddings to the given query vector.+ findNearest :: (Core.Maybe FindNearest),+ -- | The collections to query.+ from :: (Core.Maybe [CollectionSelector]),+ -- | The maximum number of results to return. Applies after all other constraints. Requires: * The value must be greater than or equal to zero if specified.+ limit :: (Core.Maybe Core.Int32),+ -- | The number of documents to skip before returning the first result. This applies after the constraints specified by the @WHERE@, @START AT@, & @END AT@ but before the @LIMIT@ clause. Requires: * The value must be greater than or equal to zero if specified.+ offset :: (Core.Maybe Core.Int32),+ -- | The order to apply to the query results. Firestore allows callers to provide a full ordering, a partial ordering, or no ordering at all. In all cases, Firestore guarantees a stable ordering through the following rules: * The @order_by@ is required to reference all fields used with an inequality filter. * All fields that are required to be in the @order_by@ but are not already present are appended in lexicographical ordering of the field name. * If an order on @__name__@ is not specified, it is appended by default. Fields are appended with the same sort direction as the last order specified, or \'ASCENDING\' if no order was specified. For example: * @ORDER BY a@ becomes @ORDER BY a ASC, __name__ ASC@ * @ORDER BY a DESC@ becomes @ORDER BY a DESC, __name__ DESC@ * @WHERE a > 1@ becomes @WHERE a > 1 ORDER BY a ASC, __name__ ASC@ * @WHERE __name__ > ... AND a > 1@ becomes @WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC@+ orderBy :: (Core.Maybe [Order]),+ -- | Optional sub-set of the fields to return. This acts as a DocumentMask over the documents returned from a query. When not set, assumes that the caller wants all fields returned.+ select :: (Core.Maybe Projection),+ -- | A potential prefix of a position in the result set to start the query at. The ordering of the result set is based on the @ORDER BY@ clause of the original query. @SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;@ This query\'s results are ordered by @(b ASC, __name__ ASC)@. Cursors can reference either the full ordering or a prefix of the location, though it cannot reference more fields than what are in the provided @ORDER BY@. Continuing off the example above, attaching the following start cursors will have varying impact: - @START BEFORE (2, \/k\/123)@: start the query right before @a = 1 AND b > 2 AND __name__ > \/k\/123@. - @START AFTER (10)@: start the query right after @a = 1 AND b > 10@. Unlike @OFFSET@ which requires scanning over the first N results to skip, a start cursor allows the query to begin at a logical position. This position is not required to match an actual result, it will scan forward from this position to find the next document. Requires: * The number of values cannot+ -- be greater than the number of fields specified in the @ORDER BY@ clause.+ startAt :: (Core.Maybe Cursor),+ -- | The filter to apply.+ where' :: (Core.Maybe Filter)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StructuredQuery' with the minimum fields required to make a request.+newStructuredQuery ::+ StructuredQuery+newStructuredQuery =+ StructuredQuery+ { endAt = Core.Nothing,+ findNearest = Core.Nothing,+ from = Core.Nothing,+ limit = Core.Nothing,+ offset = Core.Nothing,+ orderBy = Core.Nothing,+ select = Core.Nothing,+ startAt = Core.Nothing,+ where' = Core.Nothing+ }++instance Core.FromJSON StructuredQuery where+ parseJSON =+ Core.withObject+ "StructuredQuery"+ ( \o ->+ StructuredQuery+ Core.<$> (o Core..:? "endAt")+ Core.<*> (o Core..:? "findNearest")+ Core.<*> (o Core..:? "from")+ Core.<*> (o Core..:? "limit")+ Core.<*> (o Core..:? "offset")+ Core.<*> (o Core..:? "orderBy")+ Core.<*> (o Core..:? "select")+ Core.<*> (o Core..:? "startAt")+ Core.<*> (o Core..:? "where")+ )++instance Core.ToJSON StructuredQuery where+ toJSON StructuredQuery {..} =+ Core.object+ ( Core.catMaybes+ [ ("endAt" Core..=) Core.<$> endAt,+ ("findNearest" Core..=) Core.<$> findNearest,+ ("from" Core..=) Core.<$> from,+ ("limit" Core..=) Core.<$> limit,+ ("offset" Core..=) Core.<$> offset,+ ("orderBy" Core..=) Core.<$> orderBy,+ ("select" Core..=) Core.<$> select,+ ("startAt" Core..=) Core.<$> startAt,+ ("where" Core..=) Core.<$> where'+ ]+ )++-- | Sum of the values of the requested field. * Only numeric values will be aggregated. All non-numeric values including @NULL@ are skipped. * If the aggregated values contain @NaN@, returns @NaN@. Infinity math follows IEEE-754 standards. * If the aggregated value set is empty, returns 0. * Returns a 64-bit integer if all aggregated numbers are integers and the sum result does not overflow. Otherwise, the result is returned as a double. Note that even if all the aggregated values are integers, the result is returned as a double if it cannot fit within a 64-bit signed integer. When this occurs, the returned value will lose precision. * When underflow occurs, floating-point aggregation is non-deterministic. This means that running the same query repeatedly without any changes to the underlying values could produce slightly different results each time. In those cases, values should be stored as integers over floating-point numbers.+--+-- /See:/ 'newSum' smart constructor.+newtype Sum = Sum+ { -- | The field to aggregate on.+ field :: (Core.Maybe FieldReference)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Sum' with the minimum fields required to make a request.+newSum ::+ Sum+newSum = Sum {field = Core.Nothing}++instance Core.FromJSON Sum where+ parseJSON =+ Core.withObject "Sum" (\o -> Sum Core.<$> (o Core..:? "field"))++instance Core.ToJSON Sum where+ toJSON Sum {..} =+ Core.object (Core.catMaybes [("field" Core..=) Core.<$> field])++-- | A specification of a set of documents to listen to.+--+-- /See:/ 'newTarget' smart constructor.+data Target = Target+ { -- | A target specified by a set of document names.+ documents :: (Core.Maybe DocumentsTarget),+ -- | The number of documents that last matched the query at the resume token or read time. This value is only relevant when a @resume_type@ is provided. This value being present and greater than zero signals that the client wants @ExistenceFilter.unchanged_names@ to be included in the response.+ expectedCount :: (Core.Maybe Core.Int32),+ -- | If the target should be removed once it is current and consistent.+ once :: (Core.Maybe Core.Bool),+ -- | A target specified by a query.+ query :: (Core.Maybe QueryTarget),+ -- | Start listening after a specific @read_time@. The client must know the state of matching documents at this time.+ readTime :: (Core.Maybe Core.DateTime),+ -- | A resume token from a prior TargetChange for an identical target. Using a resume token with a different target is unsupported and may fail.+ resumeToken :: (Core.Maybe Core.Base64),+ -- | The target ID that identifies the target on the stream. Must be a positive number and non-zero. If @target_id@ is 0 (or unspecified), the server will assign an ID for this target and return that in a @TargetChange::ADD@ event. Once a target with @target_id=0@ is added, all subsequent targets must also have @target_id=0@. If an @AddTarget@ request with @target_id != 0@ is sent to the server after a target with @target_id=0@ is added, the server will immediately send a response with a @TargetChange::Remove@ event. Note that if the client sends multiple @AddTarget@ requests without an ID, the order of IDs returned in @TargetChage.target_ids@ are undefined. Therefore, clients should provide a target ID instead of relying on the server to assign one. If @target_id@ is non-zero, there must not be an existing active target on this stream with the same ID.+ targetId :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Target' with the minimum fields required to make a request.+newTarget ::+ Target+newTarget =+ Target+ { documents = Core.Nothing,+ expectedCount = Core.Nothing,+ once = Core.Nothing,+ query = Core.Nothing,+ readTime = Core.Nothing,+ resumeToken = Core.Nothing,+ targetId = Core.Nothing+ }++instance Core.FromJSON Target where+ parseJSON =+ Core.withObject+ "Target"+ ( \o ->+ Target+ Core.<$> (o Core..:? "documents")+ Core.<*> (o Core..:? "expectedCount")+ Core.<*> (o Core..:? "once")+ Core.<*> (o Core..:? "query")+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "resumeToken")+ Core.<*> (o Core..:? "targetId")+ )++instance Core.ToJSON Target where+ toJSON Target {..} =+ Core.object+ ( Core.catMaybes+ [ ("documents" Core..=) Core.<$> documents,+ ("expectedCount" Core..=) Core.<$> expectedCount,+ ("once" Core..=) Core.<$> once,+ ("query" Core..=) Core.<$> query,+ ("readTime" Core..=) Core.<$> readTime,+ ("resumeToken" Core..=) Core.<$> resumeToken,+ ("targetId" Core..=) Core.<$> targetId+ ]+ )++-- | Targets being watched have changed.+--+-- /See:/ 'newTargetChange' smart constructor.+data TargetChange = TargetChange+ { -- | The error that resulted in this change, if applicable.+ cause :: (Core.Maybe Status),+ -- | The consistent @read_time@ for the given @target_ids@ (omitted when the target/ids are not at a consistent snapshot). The stream is guaranteed to send a @read_time@ with @target_ids@ empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO/CHANGE and REMOVE messages are not). For a given stream, @read_time@ is guaranteed to be monotonically increasing.+ readTime :: (Core.Maybe Core.DateTime),+ -- | A token that can be used to resume the stream for the given @target_ids@, or all targets if @target_ids@ is empty. Not set on every target change.+ resumeToken :: (Core.Maybe Core.Base64),+ -- | The type of change that occurred.+ targetChangeType :: (Core.Maybe TargetChange_TargetChangeType),+ -- | The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined.+ targetIds :: (Core.Maybe [Core.Int32])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'TargetChange' with the minimum fields required to make a request.+newTargetChange ::+ TargetChange+newTargetChange =+ TargetChange+ { cause = Core.Nothing,+ readTime = Core.Nothing,+ resumeToken = Core.Nothing,+ targetChangeType = Core.Nothing,+ targetIds = Core.Nothing+ }++instance Core.FromJSON TargetChange where+ parseJSON =+ Core.withObject+ "TargetChange"+ ( \o ->+ TargetChange+ Core.<$> (o Core..:? "cause")+ Core.<*> (o Core..:? "readTime")+ Core.<*> (o Core..:? "resumeToken")+ Core.<*> (o Core..:? "targetChangeType")+ Core.<*> (o Core..:? "targetIds")+ )++instance Core.ToJSON TargetChange where+ toJSON TargetChange {..} =+ Core.object+ ( Core.catMaybes+ [ ("cause" Core..=) Core.<$> cause,+ ("readTime" Core..=) Core.<$> readTime,+ ("resumeToken" Core..=) Core.<$> resumeToken,+ ("targetChangeType" Core..=) Core.<$> targetChangeType,+ ("targetIds" Core..=) Core.<$> targetIds+ ]+ )++-- | Options for creating a new transaction.+--+-- /See:/ 'newTransactionOptions' smart constructor.+data TransactionOptions = TransactionOptions+ { -- | The transaction can only be used for read operations.+ readOnly :: (Core.Maybe ReadOnly),+ -- | The transaction can be used for both read and write operations.+ readWrite :: (Core.Maybe ReadWrite)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'TransactionOptions' with the minimum fields required to make a request.+newTransactionOptions ::+ TransactionOptions+newTransactionOptions =+ TransactionOptions+ { readOnly = Core.Nothing,+ readWrite = Core.Nothing+ }++instance Core.FromJSON TransactionOptions where+ parseJSON =+ Core.withObject+ "TransactionOptions"+ ( \o ->+ TransactionOptions+ Core.<$> (o Core..:? "readOnly")+ Core.<*> (o Core..:? "readWrite")+ )++instance Core.ToJSON TransactionOptions where+ toJSON TransactionOptions {..} =+ Core.object+ ( Core.catMaybes+ [ ("readOnly" Core..=) Core.<$> readOnly,+ ("readWrite" Core..=) Core.<$> readWrite+ ]+ )++-- | A filter with a single operand.+--+-- /See:/ 'newUnaryFilter' smart constructor.+data UnaryFilter = UnaryFilter+ { -- | The field to which to apply the operator.+ field :: (Core.Maybe FieldReference),+ -- | The unary operator to apply.+ op :: (Core.Maybe UnaryFilter_Op)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'UnaryFilter' with the minimum fields required to make a request.+newUnaryFilter ::+ UnaryFilter+newUnaryFilter =+ UnaryFilter {field = Core.Nothing, op = Core.Nothing}++instance Core.FromJSON UnaryFilter where+ parseJSON =+ Core.withObject+ "UnaryFilter"+ ( \o ->+ UnaryFilter+ Core.<$> (o Core..:? "field")+ Core.<*> (o Core..:? "op")+ )++instance Core.ToJSON UnaryFilter where+ toJSON UnaryFilter {..} =+ Core.object+ ( Core.catMaybes+ [("field" Core..=) Core.<$> field, ("op" Core..=) Core.<$> op]+ )++-- | A message that can hold any of the supported value types.+--+-- /See:/ 'newValue' smart constructor.+data Value = Value+ { -- | An array value. Cannot directly contain another array value, though can contain a map which contains another array.+ arrayValue :: (Core.Maybe ArrayValue),+ -- | A boolean value.+ booleanValue :: (Core.Maybe Core.Bool),+ -- | A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.+ bytesValue :: (Core.Maybe Core.Base64),+ -- | A double value.+ doubleValue :: (Core.Maybe Core.Double),+ -- | A geo point value representing a point on the surface of Earth.+ geoPointValue :: (Core.Maybe LatLng),+ -- | An integer value.+ integerValue :: (Core.Maybe Core.Int64),+ -- | A map value.+ mapValue :: (Core.Maybe MapValue),+ -- | A null value.+ nullValue :: (Core.Maybe Value_NullValue),+ -- | A reference to a document. For example: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@.+ referenceValue :: (Core.Maybe Core.Text),+ -- | A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.+ stringValue :: (Core.Maybe Core.Text),+ -- | A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.+ timestampValue :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Value' with the minimum fields required to make a request.+newValue ::+ Value+newValue =+ Value+ { arrayValue = Core.Nothing,+ booleanValue = Core.Nothing,+ bytesValue = Core.Nothing,+ doubleValue = Core.Nothing,+ geoPointValue = Core.Nothing,+ integerValue = Core.Nothing,+ mapValue = Core.Nothing,+ nullValue = Core.Nothing,+ referenceValue = Core.Nothing,+ stringValue = Core.Nothing,+ timestampValue = Core.Nothing+ }++instance Core.FromJSON Value where+ parseJSON =+ Core.withObject+ "Value"+ ( \o ->+ Value+ Core.<$> (o Core..:? "arrayValue")+ Core.<*> (o Core..:? "booleanValue")+ Core.<*> (o Core..:? "bytesValue")+ Core.<*> (o Core..:? "doubleValue")+ Core.<*> (o Core..:? "geoPointValue")+ Core.<*> (o Core..:? "integerValue" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "mapValue")+ Core.<*> (o Core..:? "nullValue")+ Core.<*> (o Core..:? "referenceValue")+ Core.<*> (o Core..:? "stringValue")+ Core.<*> (o Core..:? "timestampValue")+ )++instance Core.ToJSON Value where+ toJSON Value {..} =+ Core.object+ ( Core.catMaybes+ [ ("arrayValue" Core..=) Core.<$> arrayValue,+ ("booleanValue" Core..=) Core.<$> booleanValue,+ ("bytesValue" Core..=) Core.<$> bytesValue,+ ("doubleValue" Core..=) Core.<$> doubleValue,+ ("geoPointValue" Core..=) Core.<$> geoPointValue,+ ("integerValue" Core..=) Core.. Core.AsText Core.<$> integerValue,+ ("mapValue" Core..=) Core.<$> mapValue,+ ("nullValue" Core..=) Core.<$> nullValue,+ ("referenceValue" Core..=) Core.<$> referenceValue,+ ("stringValue" Core..=) Core.<$> stringValue,+ ("timestampValue" Core..=) Core.<$> timestampValue+ ]+ )++-- | A write on a document.+--+-- /See:/ 'newWrite' smart constructor.+data Write = Write+ { -- | An optional precondition on the document. The write will fail if this is set and not met by the target document.+ currentDocument :: (Core.Maybe Precondition),+ -- | A document name to delete. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@.+ delete :: (Core.Maybe Core.Text),+ -- | Applies a transformation to a document.+ transform :: (Core.Maybe DocumentTransform),+ -- | A document to write.+ update :: (Core.Maybe Document),+ -- | The fields to update in this write. This field can be set only when the operation is @update@. If the mask is not set for an @update@ and the document exists, any existing data will be overwritten. If the mask is set and the document on the server has fields not covered by the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.+ updateMask :: (Core.Maybe DocumentMask),+ -- | The transforms to perform after update. This field can be set only when the operation is @update@. If present, this write is equivalent to performing @update@ and @transform@ to the same document atomically and in order.+ updateTransforms :: (Core.Maybe [FieldTransform])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Write' with the minimum fields required to make a request.+newWrite ::+ Write+newWrite =+ Write+ { currentDocument = Core.Nothing,+ delete = Core.Nothing,+ transform = Core.Nothing,+ update = Core.Nothing,+ updateMask = Core.Nothing,+ updateTransforms = Core.Nothing+ }++instance Core.FromJSON Write where+ parseJSON =+ Core.withObject+ "Write"+ ( \o ->+ Write+ Core.<$> (o Core..:? "currentDocument")+ Core.<*> (o Core..:? "delete")+ Core.<*> (o Core..:? "transform")+ Core.<*> (o Core..:? "update")+ Core.<*> (o Core..:? "updateMask")+ Core.<*> (o Core..:? "updateTransforms")+ )++instance Core.ToJSON Write where+ toJSON Write {..} =+ Core.object+ ( Core.catMaybes+ [ ("currentDocument" Core..=) Core.<$> currentDocument,+ ("delete" Core..=) Core.<$> delete,+ ("transform" Core..=) Core.<$> transform,+ ("update" Core..=) Core.<$> update,+ ("updateMask" Core..=) Core.<$> updateMask,+ ("updateTransforms" Core..=) Core.<$> updateTransforms+ ]+ )++-- | The request for Firestore.Write. The first request creates a stream, or resumes an existing one from a token. When creating a new stream, the server replies with a response containing only an ID and a token, to use in the next request. When resuming a stream, the server first streams any responses later than the given token, then a response containing only an up-to-date token, to use in the next request.+--+-- /See:/ 'newWriteRequest' smart constructor.+data WriteRequest = WriteRequest+ { -- | Labels associated with this write request.+ labels :: (Core.Maybe WriteRequest_Labels),+ -- | The ID of the write stream to resume. This may only be set in the first message. When left empty, a new write stream will be created.+ streamId :: (Core.Maybe Core.Text),+ -- | A stream token that was previously sent by the server. The client should set this field to the token from the most recent WriteResponse it has received. This acknowledges that the client has received responses up to this token. After sending this token, earlier tokens may not be used anymore. The server may close the stream if there are too many unacknowledged responses. Leave this field unset when creating a new stream. To resume a stream at a specific point, set this field and the @stream_id@ field. Leave this field unset when creating a new stream.+ streamToken :: (Core.Maybe Core.Base64),+ -- | The writes to apply. Always executed atomically and in order. This must be empty on the first request. This may be empty on the last request. This must not be empty on all other requests.+ writes :: (Core.Maybe [Write])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WriteRequest' with the minimum fields required to make a request.+newWriteRequest ::+ WriteRequest+newWriteRequest =+ WriteRequest+ { labels = Core.Nothing,+ streamId = Core.Nothing,+ streamToken = Core.Nothing,+ writes = Core.Nothing+ }++instance Core.FromJSON WriteRequest where+ parseJSON =+ Core.withObject+ "WriteRequest"+ ( \o ->+ WriteRequest+ Core.<$> (o Core..:? "labels")+ Core.<*> (o Core..:? "streamId")+ Core.<*> (o Core..:? "streamToken")+ Core.<*> (o Core..:? "writes")+ )++instance Core.ToJSON WriteRequest where+ toJSON WriteRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("labels" Core..=) Core.<$> labels,+ ("streamId" Core..=) Core.<$> streamId,+ ("streamToken" Core..=) Core.<$> streamToken,+ ("writes" Core..=) Core.<$> writes+ ]+ )++-- | Labels associated with this write request.+--+-- /See:/ 'newWriteRequest_Labels' smart constructor.+newtype WriteRequest_Labels = WriteRequest_Labels+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WriteRequest_Labels' with the minimum fields required to make a request.+newWriteRequest_Labels ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ WriteRequest_Labels+newWriteRequest_Labels additional =+ WriteRequest_Labels {additional = additional}++instance Core.FromJSON WriteRequest_Labels where+ parseJSON =+ Core.withObject+ "WriteRequest_Labels"+ (\o -> WriteRequest_Labels Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON WriteRequest_Labels where+ toJSON WriteRequest_Labels {..} = Core.toJSON additional++-- | The response for Firestore.Write.+--+-- /See:/ 'newWriteResponse' smart constructor.+data WriteResponse = WriteResponse+ { -- | The time at which the commit occurred. Any read with an equal or greater @read_time@ is guaranteed to see the effects of the write.+ commitTime :: (Core.Maybe Core.DateTime),+ -- | The ID of the stream. Only set on the first message, when a new stream was created.+ streamId :: (Core.Maybe Core.Text),+ -- | A token that represents the position of this response in the stream. This can be used by a client to resume the stream at this point. This field is always set.+ streamToken :: (Core.Maybe Core.Base64),+ -- | The result of applying the writes. This i-th write result corresponds to the i-th write in the request.+ writeResults :: (Core.Maybe [WriteResult])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WriteResponse' with the minimum fields required to make a request.+newWriteResponse ::+ WriteResponse+newWriteResponse =+ WriteResponse+ { commitTime = Core.Nothing,+ streamId = Core.Nothing,+ streamToken = Core.Nothing,+ writeResults = Core.Nothing+ }++instance Core.FromJSON WriteResponse where+ parseJSON =+ Core.withObject+ "WriteResponse"+ ( \o ->+ WriteResponse+ Core.<$> (o Core..:? "commitTime")+ Core.<*> (o Core..:? "streamId")+ Core.<*> (o Core..:? "streamToken")+ Core.<*> (o Core..:? "writeResults")+ )++instance Core.ToJSON WriteResponse where+ toJSON WriteResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("commitTime" Core..=) Core.<$> commitTime,+ ("streamId" Core..=) Core.<$> streamId,+ ("streamToken" Core..=) Core.<$> streamToken,+ ("writeResults" Core..=) Core.<$> writeResults+ ]+ )++-- | The result of applying a write.+--+-- /See:/ 'newWriteResult' smart constructor.+data WriteResult = WriteResult+ { -- | The results of applying each DocumentTransform.FieldTransform, in the same order.+ transformResults :: (Core.Maybe [Value]),+ -- | The last update time of the document after applying the write. Not set after a @delete@. If the write did not actually change the document, this will be the previous update_time.+ updateTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WriteResult' with the minimum fields required to make a request.+newWriteResult ::+ WriteResult+newWriteResult =+ WriteResult+ { transformResults = Core.Nothing,+ updateTime = Core.Nothing+ }++instance Core.FromJSON WriteResult where+ parseJSON =+ Core.withObject+ "WriteResult"+ ( \o ->+ WriteResult+ Core.<$> (o Core..:? "transformResults")+ Core.<*> (o Core..:? "updateTime")+ )++instance Core.ToJSON WriteResult where+ toJSON WriteResult {..} =+ Core.object+ ( Core.catMaybes+ [ ("transformResults" Core..=) Core.<$> transformResults,+ ("updateTime" Core..=) Core.<$> updateTime+ ]+ )
+ gen/Gogol/FireStore/Internal/Sum.hs view
@@ -0,0 +1,1511 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Internal.Sum+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Gogol.FireStore.Internal.Sum+ ( -- * Xgafv+ Xgafv+ ( Xgafv_1,+ Xgafv_2,+ ..+ ),++ -- * CompositeFilter_Op+ CompositeFilter_Op+ ( CompositeFilter_Op_OPERATORUNSPECIFIED,+ CompositeFilter_Op_And,+ CompositeFilter_Op_OR,+ ..+ ),++ -- * FieldFilter_Op+ FieldFilter_Op+ ( FieldFilter_Op_OPERATORUNSPECIFIED,+ FieldFilter_Op_LESSTHAN,+ FieldFilter_Op_LESSTHANOREQUAL,+ FieldFilter_Op_GREATERTHAN,+ FieldFilter_Op_GREATERTHANOREQUAL,+ FieldFilter_Op_Equal,+ FieldFilter_Op_NOTEQUAL,+ FieldFilter_Op_ARRAYCONTAINS,+ FieldFilter_Op_IN,+ FieldFilter_Op_ARRAYCONTAINSANY,+ FieldFilter_Op_NOTIN,+ ..+ ),++ -- * FieldTransform_SetToServerValue+ FieldTransform_SetToServerValue+ ( FieldTransform_SetToServerValue_SERVERVALUEUNSPECIFIED,+ FieldTransform_SetToServerValue_REQUESTTIME,+ ..+ ),++ -- * FindNearest_DistanceMeasure+ FindNearest_DistanceMeasure+ ( FindNearest_DistanceMeasure_DISTANCEMEASUREUNSPECIFIED,+ FindNearest_DistanceMeasure_Euclidean,+ FindNearest_DistanceMeasure_Cosine,+ FindNearest_DistanceMeasure_DOTPRODUCT,+ ..+ ),++ -- * GoogleFirestoreAdminV1Backup_State+ GoogleFirestoreAdminV1Backup_State+ ( GoogleFirestoreAdminV1Backup_State_STATEUNSPECIFIED,+ GoogleFirestoreAdminV1Backup_State_Creating,+ GoogleFirestoreAdminV1Backup_State_Ready,+ GoogleFirestoreAdminV1Backup_State_NOTAVAILABLE,+ ..+ ),++ -- * GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+ ( GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Initializing,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Processing,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Cancelling,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Finalizing,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Successful,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Failed,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Cancelled,+ ..+ ),++ -- * GoogleFirestoreAdminV1Database_AppEngineIntegrationMode+ GoogleFirestoreAdminV1Database_AppEngineIntegrationMode+ ( GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_APPENGINEINTEGRATIONMODEUNSPECIFIED,+ GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_Enabled,+ GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_Disabled,+ ..+ ),++ -- * GoogleFirestoreAdminV1Database_ConcurrencyMode+ GoogleFirestoreAdminV1Database_ConcurrencyMode+ ( GoogleFirestoreAdminV1Database_ConcurrencyMode_CONCURRENCYMODEUNSPECIFIED,+ GoogleFirestoreAdminV1Database_ConcurrencyMode_Optimistic,+ GoogleFirestoreAdminV1Database_ConcurrencyMode_Pessimistic,+ GoogleFirestoreAdminV1Database_ConcurrencyMode_OPTIMISTICWITHENTITYGROUPS,+ ..+ ),++ -- * GoogleFirestoreAdminV1Database_DeleteProtectionState+ GoogleFirestoreAdminV1Database_DeleteProtectionState+ ( GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONDISABLED,+ GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONENABLED,+ ..+ ),++ -- * GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement+ GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement+ ( GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYENABLEMENTUNSPECIFIED,+ GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYENABLED,+ GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYDISABLED,+ ..+ ),++ -- * GoogleFirestoreAdminV1Database_Type+ GoogleFirestoreAdminV1Database_Type+ ( GoogleFirestoreAdminV1Database_Type_DATABASETYPEUNSPECIFIED,+ GoogleFirestoreAdminV1Database_Type_FIRESTORENATIVE,+ GoogleFirestoreAdminV1Database_Type_DATASTOREMODE,+ ..+ ),++ -- * GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+ ( GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Initializing,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Processing,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Cancelling,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Finalizing,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Successful,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Failed,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Cancelled,+ ..+ ),++ -- * GoogleFirestoreAdminV1FieldOperationMetadata_State+ GoogleFirestoreAdminV1FieldOperationMetadata_State+ ( GoogleFirestoreAdminV1FieldOperationMetadata_State_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Initializing,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Processing,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Cancelling,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Finalizing,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Successful,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Failed,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Cancelled,+ ..+ ),++ -- * GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+ ( GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Initializing,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Processing,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Cancelling,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Finalizing,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Successful,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Failed,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Cancelled,+ ..+ ),++ -- * GoogleFirestoreAdminV1Index_ApiScope+ GoogleFirestoreAdminV1Index_ApiScope+ ( GoogleFirestoreAdminV1Index_ApiScope_ANYAPI,+ GoogleFirestoreAdminV1Index_ApiScope_DATASTOREMODEAPI,+ ..+ ),++ -- * GoogleFirestoreAdminV1Index_QueryScope+ GoogleFirestoreAdminV1Index_QueryScope+ ( GoogleFirestoreAdminV1Index_QueryScope_QUERYSCOPEUNSPECIFIED,+ GoogleFirestoreAdminV1Index_QueryScope_Collection,+ GoogleFirestoreAdminV1Index_QueryScope_COLLECTIONGROUP,+ GoogleFirestoreAdminV1Index_QueryScope_COLLECTIONRECURSIVE,+ ..+ ),++ -- * GoogleFirestoreAdminV1Index_State+ GoogleFirestoreAdminV1Index_State+ ( GoogleFirestoreAdminV1Index_State_STATEUNSPECIFIED,+ GoogleFirestoreAdminV1Index_State_Creating,+ GoogleFirestoreAdminV1Index_State_Ready,+ GoogleFirestoreAdminV1Index_State_NEEDSREPAIR,+ ..+ ),++ -- * GoogleFirestoreAdminV1IndexConfigDelta_ChangeType+ GoogleFirestoreAdminV1IndexConfigDelta_ChangeType+ ( GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_CHANGETYPEUNSPECIFIED,+ GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_Add,+ GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_Remove,+ ..+ ),++ -- * GoogleFirestoreAdminV1IndexField_ArrayConfig+ GoogleFirestoreAdminV1IndexField_ArrayConfig+ ( GoogleFirestoreAdminV1IndexField_ArrayConfig_ARRAYCONFIGUNSPECIFIED,+ GoogleFirestoreAdminV1IndexField_ArrayConfig_Contains,+ ..+ ),++ -- * GoogleFirestoreAdminV1IndexField_Order+ GoogleFirestoreAdminV1IndexField_Order+ ( GoogleFirestoreAdminV1IndexField_Order_ORDERUNSPECIFIED,+ GoogleFirestoreAdminV1IndexField_Order_Ascending,+ GoogleFirestoreAdminV1IndexField_Order_Descending,+ ..+ ),++ -- * GoogleFirestoreAdminV1IndexOperationMetadata_State+ GoogleFirestoreAdminV1IndexOperationMetadata_State+ ( GoogleFirestoreAdminV1IndexOperationMetadata_State_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Initializing,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Processing,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Cancelling,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Finalizing,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Successful,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Failed,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Cancelled,+ ..+ ),++ -- * GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+ ( GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Initializing,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Processing,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Cancelling,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Finalizing,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Successful,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Failed,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Cancelled,+ ..+ ),++ -- * GoogleFirestoreAdminV1TtlConfig_State+ GoogleFirestoreAdminV1TtlConfig_State+ ( GoogleFirestoreAdminV1TtlConfig_State_STATEUNSPECIFIED,+ GoogleFirestoreAdminV1TtlConfig_State_Creating,+ GoogleFirestoreAdminV1TtlConfig_State_Active,+ GoogleFirestoreAdminV1TtlConfig_State_NEEDSREPAIR,+ ..+ ),++ -- * GoogleFirestoreAdminV1TtlConfigDelta_ChangeType+ GoogleFirestoreAdminV1TtlConfigDelta_ChangeType+ ( GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_CHANGETYPEUNSPECIFIED,+ GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_Add,+ GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_Remove,+ ..+ ),++ -- * GoogleFirestoreAdminV1WeeklyRecurrence_Day+ GoogleFirestoreAdminV1WeeklyRecurrence_Day+ ( GoogleFirestoreAdminV1WeeklyRecurrence_Day_DAYOFWEEKUNSPECIFIED,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Monday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Tuesday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Wednesday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Thursday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Friday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Saturday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Sunday,+ ..+ ),++ -- * Order_Direction+ Order_Direction+ ( Order_Direction_DIRECTIONUNSPECIFIED,+ Order_Direction_Ascending,+ Order_Direction_Descending,+ ..+ ),++ -- * TargetChange_TargetChangeType+ TargetChange_TargetChangeType+ ( TargetChange_TargetChangeType_NOCHANGE,+ TargetChange_TargetChangeType_Add,+ TargetChange_TargetChangeType_Remove,+ TargetChange_TargetChangeType_Current,+ TargetChange_TargetChangeType_Reset,+ ..+ ),++ -- * UnaryFilter_Op+ UnaryFilter_Op+ ( UnaryFilter_Op_OPERATORUNSPECIFIED,+ UnaryFilter_Op_ISNAN,+ UnaryFilter_Op_ISNULL,+ UnaryFilter_Op_ISNOTNAN,+ UnaryFilter_Op_ISNOTNULL,+ ..+ ),++ -- * Value_NullValue+ Value_NullValue+ ( Value_NullValue_NULLVALUE,+ ..+ ),+ )+where++import Gogol.Prelude qualified as Core++-- | V1 error format.+newtype Xgafv = Xgafv {fromXgafv :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | v1 error format+pattern Xgafv_1 :: Xgafv+pattern Xgafv_1 = Xgafv "1"++-- | v2 error format+pattern Xgafv_2 :: Xgafv+pattern Xgafv_2 = Xgafv "2"++{-# COMPLETE+ Xgafv_1,+ Xgafv_2,+ Xgafv+ #-}++-- | The operator for combining multiple filters.+newtype CompositeFilter_Op = CompositeFilter_Op {fromCompositeFilter_Op :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified. This value must not be used.+pattern CompositeFilter_Op_OPERATORUNSPECIFIED :: CompositeFilter_Op+pattern CompositeFilter_Op_OPERATORUNSPECIFIED = CompositeFilter_Op "OPERATOR_UNSPECIFIED"++-- | Documents are required to satisfy all of the combined filters.+pattern CompositeFilter_Op_And :: CompositeFilter_Op+pattern CompositeFilter_Op_And = CompositeFilter_Op "AND"++-- | Documents are required to satisfy at least one of the combined filters.+pattern CompositeFilter_Op_OR :: CompositeFilter_Op+pattern CompositeFilter_Op_OR = CompositeFilter_Op "OR"++{-# COMPLETE+ CompositeFilter_Op_OPERATORUNSPECIFIED,+ CompositeFilter_Op_And,+ CompositeFilter_Op_OR,+ CompositeFilter_Op+ #-}++-- | The operator to filter by.+newtype FieldFilter_Op = FieldFilter_Op {fromFieldFilter_Op :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified. This value must not be used.+pattern FieldFilter_Op_OPERATORUNSPECIFIED :: FieldFilter_Op+pattern FieldFilter_Op_OPERATORUNSPECIFIED = FieldFilter_Op "OPERATOR_UNSPECIFIED"++-- | The given @field@ is less than the given @value@. Requires: * That @field@ come first in @order_by@.+pattern FieldFilter_Op_LESSTHAN :: FieldFilter_Op+pattern FieldFilter_Op_LESSTHAN = FieldFilter_Op "LESS_THAN"++-- | The given @field@ is less than or equal to the given @value@. Requires: * That @field@ come first in @order_by@.+pattern FieldFilter_Op_LESSTHANOREQUAL :: FieldFilter_Op+pattern FieldFilter_Op_LESSTHANOREQUAL = FieldFilter_Op "LESS_THAN_OR_EQUAL"++-- | The given @field@ is greater than the given @value@. Requires: * That @field@ come first in @order_by@.+pattern FieldFilter_Op_GREATERTHAN :: FieldFilter_Op+pattern FieldFilter_Op_GREATERTHAN = FieldFilter_Op "GREATER_THAN"++-- | The given @field@ is greater than or equal to the given @value@. Requires: * That @field@ come first in @order_by@.+pattern FieldFilter_Op_GREATERTHANOREQUAL :: FieldFilter_Op+pattern FieldFilter_Op_GREATERTHANOREQUAL = FieldFilter_Op "GREATER_THAN_OR_EQUAL"++-- | The given @field@ is equal to the given @value@.+pattern FieldFilter_Op_Equal :: FieldFilter_Op+pattern FieldFilter_Op_Equal = FieldFilter_Op "EQUAL"++-- | The given @field@ is not equal to the given @value@. Requires: * No other @NOT_EQUAL@, @NOT_IN@, @IS_NOT_NULL@, or @IS_NOT_NAN@. * That @field@ comes first in the @order_by@.+pattern FieldFilter_Op_NOTEQUAL :: FieldFilter_Op+pattern FieldFilter_Op_NOTEQUAL = FieldFilter_Op "NOT_EQUAL"++-- | The given @field@ is an array that contains the given @value@.+pattern FieldFilter_Op_ARRAYCONTAINS :: FieldFilter_Op+pattern FieldFilter_Op_ARRAYCONTAINS = FieldFilter_Op "ARRAY_CONTAINS"++-- | The given @field@ is equal to at least one value in the given array. Requires: * That @value@ is a non-empty @ArrayValue@, subject to disjunction limits. * No @NOT_IN@ filters in the same query.+pattern FieldFilter_Op_IN :: FieldFilter_Op+pattern FieldFilter_Op_IN = FieldFilter_Op "IN"++-- | The given @field@ is an array that contains any of the values in the given array. Requires: * That @value@ is a non-empty @ArrayValue@, subject to disjunction limits. * No other @ARRAY_CONTAINS_ANY@ filters within the same disjunction. * No @NOT_IN@ filters in the same query.+pattern FieldFilter_Op_ARRAYCONTAINSANY :: FieldFilter_Op+pattern FieldFilter_Op_ARRAYCONTAINSANY = FieldFilter_Op "ARRAY_CONTAINS_ANY"++-- | The value of the @field@ is not in the given array. Requires: * That @value@ is a non-empty @ArrayValue@ with at most 10 values. * No other @OR@, @IN@, @ARRAY_CONTAINS_ANY@, @NOT_IN@, @NOT_EQUAL@, @IS_NOT_NULL@, or @IS_NOT_NAN@. * That @field@ comes first in the @order_by@.+pattern FieldFilter_Op_NOTIN :: FieldFilter_Op+pattern FieldFilter_Op_NOTIN = FieldFilter_Op "NOT_IN"++{-# COMPLETE+ FieldFilter_Op_OPERATORUNSPECIFIED,+ FieldFilter_Op_LESSTHAN,+ FieldFilter_Op_LESSTHANOREQUAL,+ FieldFilter_Op_GREATERTHAN,+ FieldFilter_Op_GREATERTHANOREQUAL,+ FieldFilter_Op_Equal,+ FieldFilter_Op_NOTEQUAL,+ FieldFilter_Op_ARRAYCONTAINS,+ FieldFilter_Op_IN,+ FieldFilter_Op_ARRAYCONTAINSANY,+ FieldFilter_Op_NOTIN,+ FieldFilter_Op+ #-}++-- | Sets the field to the given server value.+newtype FieldTransform_SetToServerValue = FieldTransform_SetToServerValue {fromFieldTransform_SetToServerValue :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified. This value must not be used.+pattern FieldTransform_SetToServerValue_SERVERVALUEUNSPECIFIED :: FieldTransform_SetToServerValue+pattern FieldTransform_SetToServerValue_SERVERVALUEUNSPECIFIED = FieldTransform_SetToServerValue "SERVER_VALUE_UNSPECIFIED"++-- | The time at which the server processed the request, with millisecond precision. If used on multiple fields (same or different documents) in a transaction, all the fields will get the same server timestamp.+pattern FieldTransform_SetToServerValue_REQUESTTIME :: FieldTransform_SetToServerValue+pattern FieldTransform_SetToServerValue_REQUESTTIME = FieldTransform_SetToServerValue "REQUEST_TIME"++{-# COMPLETE+ FieldTransform_SetToServerValue_SERVERVALUEUNSPECIFIED,+ FieldTransform_SetToServerValue_REQUESTTIME,+ FieldTransform_SetToServerValue+ #-}++-- | Required. The distance measure to use, required.+newtype FindNearest_DistanceMeasure = FindNearest_DistanceMeasure {fromFindNearest_DistanceMeasure :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Should not be set.+pattern FindNearest_DistanceMeasure_DISTANCEMEASUREUNSPECIFIED :: FindNearest_DistanceMeasure+pattern FindNearest_DistanceMeasure_DISTANCEMEASUREUNSPECIFIED = FindNearest_DistanceMeasure "DISTANCE_MEASURE_UNSPECIFIED"++-- | Measures the EUCLIDEAN distance between the vectors. See <https://en.wikipedia.org/wiki/Euclidean_distance Euclidean> to learn more. The resulting distance decreases the more similar two vectors are.+pattern FindNearest_DistanceMeasure_Euclidean :: FindNearest_DistanceMeasure+pattern FindNearest_DistanceMeasure_Euclidean = FindNearest_DistanceMeasure "EUCLIDEAN"++-- | COSINE distance compares vectors based on the angle between them, which allows you to measure similarity that isn\'t based on the vectors magnitude. We recommend using DOT_PRODUCT with unit normalized vectors instead of COSINE distance, which is mathematically equivalent with better performance. See <https://en.wikipedia.org/wiki/Cosine_similarity Cosine Similarity> to learn more about COSINE similarity and COSINE distance. The resulting COSINE distance decreases the more similar two vectors are.+pattern FindNearest_DistanceMeasure_Cosine :: FindNearest_DistanceMeasure+pattern FindNearest_DistanceMeasure_Cosine = FindNearest_DistanceMeasure "COSINE"++-- | Similar to cosine but is affected by the magnitude of the vectors. See <https://en.wikipedia.org/wiki/Dot_product Dot Product> to learn more. The resulting distance increases the more similar two vectors are.+pattern FindNearest_DistanceMeasure_DOTPRODUCT :: FindNearest_DistanceMeasure+pattern FindNearest_DistanceMeasure_DOTPRODUCT = FindNearest_DistanceMeasure "DOT_PRODUCT"++{-# COMPLETE+ FindNearest_DistanceMeasure_DISTANCEMEASUREUNSPECIFIED,+ FindNearest_DistanceMeasure_Euclidean,+ FindNearest_DistanceMeasure_Cosine,+ FindNearest_DistanceMeasure_DOTPRODUCT,+ FindNearest_DistanceMeasure+ #-}++-- | Output only. The current state of the backup.+newtype GoogleFirestoreAdminV1Backup_State = GoogleFirestoreAdminV1Backup_State {fromGoogleFirestoreAdminV1Backup_State :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The state is unspecified.+pattern GoogleFirestoreAdminV1Backup_State_STATEUNSPECIFIED :: GoogleFirestoreAdminV1Backup_State+pattern GoogleFirestoreAdminV1Backup_State_STATEUNSPECIFIED = GoogleFirestoreAdminV1Backup_State "STATE_UNSPECIFIED"++-- | The pending backup is still being created. Operations on the backup will be rejected in this state.+pattern GoogleFirestoreAdminV1Backup_State_Creating :: GoogleFirestoreAdminV1Backup_State+pattern GoogleFirestoreAdminV1Backup_State_Creating = GoogleFirestoreAdminV1Backup_State "CREATING"++-- | The backup is complete and ready to use.+pattern GoogleFirestoreAdminV1Backup_State_Ready :: GoogleFirestoreAdminV1Backup_State+pattern GoogleFirestoreAdminV1Backup_State_Ready = GoogleFirestoreAdminV1Backup_State "READY"++-- | The backup is not available at this moment.+pattern GoogleFirestoreAdminV1Backup_State_NOTAVAILABLE :: GoogleFirestoreAdminV1Backup_State+pattern GoogleFirestoreAdminV1Backup_State_NOTAVAILABLE = GoogleFirestoreAdminV1Backup_State "NOT_AVAILABLE"++{-# COMPLETE+ GoogleFirestoreAdminV1Backup_State_STATEUNSPECIFIED,+ GoogleFirestoreAdminV1Backup_State_Creating,+ GoogleFirestoreAdminV1Backup_State_Ready,+ GoogleFirestoreAdminV1Backup_State_NOTAVAILABLE,+ GoogleFirestoreAdminV1Backup_State+ #-}++-- | The state of the operation.+newtype GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState = GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState {fromGoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified.+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED :: GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED = GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState "OPERATION_STATE_UNSPECIFIED"++-- | Request is being prepared for processing.+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Initializing :: GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Initializing = GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState "INITIALIZING"++-- | Request is actively being processed.+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Processing :: GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Processing = GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState "PROCESSING"++-- | Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Cancelling :: GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Cancelling = GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState "CANCELLING"++-- | Request has been processed and is in its finalization stage.+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Finalizing :: GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Finalizing = GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState "FINALIZING"++-- | Request has completed successfully.+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Successful :: GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Successful = GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState "SUCCESSFUL"++-- | Request has finished being processed, but encountered an error.+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Failed :: GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Failed = GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState "FAILED"++-- | Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation.+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Cancelled :: GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Cancelled = GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState "CANCELLED"++{-# COMPLETE+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Initializing,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Processing,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Cancelling,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Finalizing,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Successful,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Failed,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState_Cancelled,+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+ #-}++-- | The App Engine integration mode to use for this database.+newtype GoogleFirestoreAdminV1Database_AppEngineIntegrationMode = GoogleFirestoreAdminV1Database_AppEngineIntegrationMode {fromGoogleFirestoreAdminV1Database_AppEngineIntegrationMode :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Not used.+pattern GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_APPENGINEINTEGRATIONMODEUNSPECIFIED :: GoogleFirestoreAdminV1Database_AppEngineIntegrationMode+pattern GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_APPENGINEINTEGRATIONMODEUNSPECIFIED = GoogleFirestoreAdminV1Database_AppEngineIntegrationMode "APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED"++-- | If an App Engine application exists in the same region as this database, App Engine configuration will impact this database. This includes disabling of the application & database, as well as disabling writes to the database.+pattern GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_Enabled :: GoogleFirestoreAdminV1Database_AppEngineIntegrationMode+pattern GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_Enabled = GoogleFirestoreAdminV1Database_AppEngineIntegrationMode "ENABLED"++-- | App Engine has no effect on the ability of this database to serve requests. This is the default setting for databases created with the Firestore API.+pattern GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_Disabled :: GoogleFirestoreAdminV1Database_AppEngineIntegrationMode+pattern GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_Disabled = GoogleFirestoreAdminV1Database_AppEngineIntegrationMode "DISABLED"++{-# COMPLETE+ GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_APPENGINEINTEGRATIONMODEUNSPECIFIED,+ GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_Enabled,+ GoogleFirestoreAdminV1Database_AppEngineIntegrationMode_Disabled,+ GoogleFirestoreAdminV1Database_AppEngineIntegrationMode+ #-}++-- | The concurrency control mode to use for this database.+newtype GoogleFirestoreAdminV1Database_ConcurrencyMode = GoogleFirestoreAdminV1Database_ConcurrencyMode {fromGoogleFirestoreAdminV1Database_ConcurrencyMode :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Not used.+pattern GoogleFirestoreAdminV1Database_ConcurrencyMode_CONCURRENCYMODEUNSPECIFIED :: GoogleFirestoreAdminV1Database_ConcurrencyMode+pattern GoogleFirestoreAdminV1Database_ConcurrencyMode_CONCURRENCYMODEUNSPECIFIED = GoogleFirestoreAdminV1Database_ConcurrencyMode "CONCURRENCY_MODE_UNSPECIFIED"++-- | Use optimistic concurrency control by default. This mode is available for Cloud Firestore databases.+pattern GoogleFirestoreAdminV1Database_ConcurrencyMode_Optimistic :: GoogleFirestoreAdminV1Database_ConcurrencyMode+pattern GoogleFirestoreAdminV1Database_ConcurrencyMode_Optimistic = GoogleFirestoreAdminV1Database_ConcurrencyMode "OPTIMISTIC"++-- | Use pessimistic concurrency control by default. This mode is available for Cloud Firestore databases. This is the default setting for Cloud Firestore.+pattern GoogleFirestoreAdminV1Database_ConcurrencyMode_Pessimistic :: GoogleFirestoreAdminV1Database_ConcurrencyMode+pattern GoogleFirestoreAdminV1Database_ConcurrencyMode_Pessimistic = GoogleFirestoreAdminV1Database_ConcurrencyMode "PESSIMISTIC"++-- | Use optimistic concurrency control with entity groups by default. This is the only available mode for Cloud Datastore. This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.+pattern GoogleFirestoreAdminV1Database_ConcurrencyMode_OPTIMISTICWITHENTITYGROUPS :: GoogleFirestoreAdminV1Database_ConcurrencyMode+pattern GoogleFirestoreAdminV1Database_ConcurrencyMode_OPTIMISTICWITHENTITYGROUPS = GoogleFirestoreAdminV1Database_ConcurrencyMode "OPTIMISTIC_WITH_ENTITY_GROUPS"++{-# COMPLETE+ GoogleFirestoreAdminV1Database_ConcurrencyMode_CONCURRENCYMODEUNSPECIFIED,+ GoogleFirestoreAdminV1Database_ConcurrencyMode_Optimistic,+ GoogleFirestoreAdminV1Database_ConcurrencyMode_Pessimistic,+ GoogleFirestoreAdminV1Database_ConcurrencyMode_OPTIMISTICWITHENTITYGROUPS,+ GoogleFirestoreAdminV1Database_ConcurrencyMode+ #-}++-- | State of delete protection for the database.+newtype GoogleFirestoreAdminV1Database_DeleteProtectionState = GoogleFirestoreAdminV1Database_DeleteProtectionState {fromGoogleFirestoreAdminV1Database_DeleteProtectionState :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The default value. Delete protection type is not specified+pattern GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONSTATEUNSPECIFIED :: GoogleFirestoreAdminV1Database_DeleteProtectionState+pattern GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONSTATEUNSPECIFIED = GoogleFirestoreAdminV1Database_DeleteProtectionState "DELETE_PROTECTION_STATE_UNSPECIFIED"++-- | Delete protection is disabled+pattern GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONDISABLED :: GoogleFirestoreAdminV1Database_DeleteProtectionState+pattern GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONDISABLED = GoogleFirestoreAdminV1Database_DeleteProtectionState "DELETE_PROTECTION_DISABLED"++-- | Delete protection is enabled+pattern GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONENABLED :: GoogleFirestoreAdminV1Database_DeleteProtectionState+pattern GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONENABLED = GoogleFirestoreAdminV1Database_DeleteProtectionState "DELETE_PROTECTION_ENABLED"++{-# COMPLETE+ GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONDISABLED,+ GoogleFirestoreAdminV1Database_DeleteProtectionState_DELETEPROTECTIONENABLED,+ GoogleFirestoreAdminV1Database_DeleteProtectionState+ #-}++-- | Whether to enable the PITR feature on this database.+newtype GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement = GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement {fromGoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Not used.+pattern GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYENABLEMENTUNSPECIFIED :: GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement+pattern GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYENABLEMENTUNSPECIFIED = GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement "POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED"++-- | Reads are supported on selected versions of the data from within the past 7 days: * Reads against any timestamp within the past hour * Reads against 1-minute snapshots beyond 1 hour and within 7 days @version_retention_period@ and @earliest_version_time@ can be used to determine the supported versions.+pattern GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYENABLED :: GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement+pattern GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYENABLED = GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement "POINT_IN_TIME_RECOVERY_ENABLED"++-- | Reads are supported on any version of the data from within the past 1 hour.+pattern GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYDISABLED :: GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement+pattern GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYDISABLED = GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement "POINT_IN_TIME_RECOVERY_DISABLED"++{-# COMPLETE+ GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYENABLEMENTUNSPECIFIED,+ GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYENABLED,+ GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement_POINTINTIMERECOVERYDISABLED,+ GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement+ #-}++-- | The type of the database. See https:\/\/cloud.google.com\/datastore\/docs\/firestore-or-datastore for information about how to choose.+newtype GoogleFirestoreAdminV1Database_Type = GoogleFirestoreAdminV1Database_Type {fromGoogleFirestoreAdminV1Database_Type :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Not used.+pattern GoogleFirestoreAdminV1Database_Type_DATABASETYPEUNSPECIFIED :: GoogleFirestoreAdminV1Database_Type+pattern GoogleFirestoreAdminV1Database_Type_DATABASETYPEUNSPECIFIED = GoogleFirestoreAdminV1Database_Type "DATABASE_TYPE_UNSPECIFIED"++-- | Firestore Native Mode+pattern GoogleFirestoreAdminV1Database_Type_FIRESTORENATIVE :: GoogleFirestoreAdminV1Database_Type+pattern GoogleFirestoreAdminV1Database_Type_FIRESTORENATIVE = GoogleFirestoreAdminV1Database_Type "FIRESTORE_NATIVE"++-- | Firestore in Datastore Mode.+pattern GoogleFirestoreAdminV1Database_Type_DATASTOREMODE :: GoogleFirestoreAdminV1Database_Type+pattern GoogleFirestoreAdminV1Database_Type_DATASTOREMODE = GoogleFirestoreAdminV1Database_Type "DATASTORE_MODE"++{-# COMPLETE+ GoogleFirestoreAdminV1Database_Type_DATABASETYPEUNSPECIFIED,+ GoogleFirestoreAdminV1Database_Type_FIRESTORENATIVE,+ GoogleFirestoreAdminV1Database_Type_DATASTOREMODE,+ GoogleFirestoreAdminV1Database_Type+ #-}++-- | The state of the export operation.+newtype GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState = GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState {fromGoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified.+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED :: GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED = GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState "OPERATION_STATE_UNSPECIFIED"++-- | Request is being prepared for processing.+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Initializing :: GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Initializing = GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState "INITIALIZING"++-- | Request is actively being processed.+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Processing :: GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Processing = GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState "PROCESSING"++-- | Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Cancelling :: GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Cancelling = GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState "CANCELLING"++-- | Request has been processed and is in its finalization stage.+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Finalizing :: GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Finalizing = GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState "FINALIZING"++-- | Request has completed successfully.+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Successful :: GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Successful = GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState "SUCCESSFUL"++-- | Request has finished being processed, but encountered an error.+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Failed :: GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Failed = GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState "FAILED"++-- | Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation.+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Cancelled :: GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Cancelled = GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState "CANCELLED"++{-# COMPLETE+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Initializing,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Processing,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Cancelling,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Finalizing,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Successful,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Failed,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState_Cancelled,+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+ #-}++-- | The state of the operation.+newtype GoogleFirestoreAdminV1FieldOperationMetadata_State = GoogleFirestoreAdminV1FieldOperationMetadata_State {fromGoogleFirestoreAdminV1FieldOperationMetadata_State :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified.+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_OPERATIONSTATEUNSPECIFIED :: GoogleFirestoreAdminV1FieldOperationMetadata_State+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_OPERATIONSTATEUNSPECIFIED = GoogleFirestoreAdminV1FieldOperationMetadata_State "OPERATION_STATE_UNSPECIFIED"++-- | Request is being prepared for processing.+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Initializing :: GoogleFirestoreAdminV1FieldOperationMetadata_State+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Initializing = GoogleFirestoreAdminV1FieldOperationMetadata_State "INITIALIZING"++-- | Request is actively being processed.+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Processing :: GoogleFirestoreAdminV1FieldOperationMetadata_State+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Processing = GoogleFirestoreAdminV1FieldOperationMetadata_State "PROCESSING"++-- | Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Cancelling :: GoogleFirestoreAdminV1FieldOperationMetadata_State+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Cancelling = GoogleFirestoreAdminV1FieldOperationMetadata_State "CANCELLING"++-- | Request has been processed and is in its finalization stage.+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Finalizing :: GoogleFirestoreAdminV1FieldOperationMetadata_State+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Finalizing = GoogleFirestoreAdminV1FieldOperationMetadata_State "FINALIZING"++-- | Request has completed successfully.+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Successful :: GoogleFirestoreAdminV1FieldOperationMetadata_State+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Successful = GoogleFirestoreAdminV1FieldOperationMetadata_State "SUCCESSFUL"++-- | Request has finished being processed, but encountered an error.+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Failed :: GoogleFirestoreAdminV1FieldOperationMetadata_State+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Failed = GoogleFirestoreAdminV1FieldOperationMetadata_State "FAILED"++-- | Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation.+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Cancelled :: GoogleFirestoreAdminV1FieldOperationMetadata_State+pattern GoogleFirestoreAdminV1FieldOperationMetadata_State_Cancelled = GoogleFirestoreAdminV1FieldOperationMetadata_State "CANCELLED"++{-# COMPLETE+ GoogleFirestoreAdminV1FieldOperationMetadata_State_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Initializing,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Processing,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Cancelling,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Finalizing,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Successful,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Failed,+ GoogleFirestoreAdminV1FieldOperationMetadata_State_Cancelled,+ GoogleFirestoreAdminV1FieldOperationMetadata_State+ #-}++-- | The state of the import operation.+newtype GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState = GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState {fromGoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified.+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED :: GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED = GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState "OPERATION_STATE_UNSPECIFIED"++-- | Request is being prepared for processing.+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Initializing :: GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Initializing = GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState "INITIALIZING"++-- | Request is actively being processed.+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Processing :: GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Processing = GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState "PROCESSING"++-- | Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Cancelling :: GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Cancelling = GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState "CANCELLING"++-- | Request has been processed and is in its finalization stage.+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Finalizing :: GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Finalizing = GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState "FINALIZING"++-- | Request has completed successfully.+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Successful :: GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Successful = GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState "SUCCESSFUL"++-- | Request has finished being processed, but encountered an error.+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Failed :: GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Failed = GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState "FAILED"++-- | Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation.+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Cancelled :: GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+pattern GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Cancelled = GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState "CANCELLED"++{-# COMPLETE+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Initializing,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Processing,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Cancelling,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Finalizing,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Successful,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Failed,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState_Cancelled,+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+ #-}++-- | The API scope supported by this index.+newtype GoogleFirestoreAdminV1Index_ApiScope = GoogleFirestoreAdminV1Index_ApiScope {fromGoogleFirestoreAdminV1Index_ApiScope :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The index can only be used by the Firestore Native query API. This is the default.+pattern GoogleFirestoreAdminV1Index_ApiScope_ANYAPI :: GoogleFirestoreAdminV1Index_ApiScope+pattern GoogleFirestoreAdminV1Index_ApiScope_ANYAPI = GoogleFirestoreAdminV1Index_ApiScope "ANY_API"++-- | The index can only be used by the Firestore in Datastore Mode query API.+pattern GoogleFirestoreAdminV1Index_ApiScope_DATASTOREMODEAPI :: GoogleFirestoreAdminV1Index_ApiScope+pattern GoogleFirestoreAdminV1Index_ApiScope_DATASTOREMODEAPI = GoogleFirestoreAdminV1Index_ApiScope "DATASTORE_MODE_API"++{-# COMPLETE+ GoogleFirestoreAdminV1Index_ApiScope_ANYAPI,+ GoogleFirestoreAdminV1Index_ApiScope_DATASTOREMODEAPI,+ GoogleFirestoreAdminV1Index_ApiScope+ #-}++-- | Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection ID. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection ID as this index.+newtype GoogleFirestoreAdminV1Index_QueryScope = GoogleFirestoreAdminV1Index_QueryScope {fromGoogleFirestoreAdminV1Index_QueryScope :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The query scope is unspecified. Not a valid option.+pattern GoogleFirestoreAdminV1Index_QueryScope_QUERYSCOPEUNSPECIFIED :: GoogleFirestoreAdminV1Index_QueryScope+pattern GoogleFirestoreAdminV1Index_QueryScope_QUERYSCOPEUNSPECIFIED = GoogleFirestoreAdminV1Index_QueryScope "QUERY_SCOPE_UNSPECIFIED"++-- | Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the collection ID specified by the index.+pattern GoogleFirestoreAdminV1Index_QueryScope_Collection :: GoogleFirestoreAdminV1Index_QueryScope+pattern GoogleFirestoreAdminV1Index_QueryScope_Collection = GoogleFirestoreAdminV1Index_QueryScope "COLLECTION"++-- | Indexes with a collection group query scope specified allow queries against all collections that has the collection ID specified by the index.+pattern GoogleFirestoreAdminV1Index_QueryScope_COLLECTIONGROUP :: GoogleFirestoreAdminV1Index_QueryScope+pattern GoogleFirestoreAdminV1Index_QueryScope_COLLECTIONGROUP = GoogleFirestoreAdminV1Index_QueryScope "COLLECTION_GROUP"++-- | Include all the collections\'s ancestor in the index. Only available for Datastore Mode databases.+pattern GoogleFirestoreAdminV1Index_QueryScope_COLLECTIONRECURSIVE :: GoogleFirestoreAdminV1Index_QueryScope+pattern GoogleFirestoreAdminV1Index_QueryScope_COLLECTIONRECURSIVE = GoogleFirestoreAdminV1Index_QueryScope "COLLECTION_RECURSIVE"++{-# COMPLETE+ GoogleFirestoreAdminV1Index_QueryScope_QUERYSCOPEUNSPECIFIED,+ GoogleFirestoreAdminV1Index_QueryScope_Collection,+ GoogleFirestoreAdminV1Index_QueryScope_COLLECTIONGROUP,+ GoogleFirestoreAdminV1Index_QueryScope_COLLECTIONRECURSIVE,+ GoogleFirestoreAdminV1Index_QueryScope+ #-}++-- | Output only. The serving state of the index.+newtype GoogleFirestoreAdminV1Index_State = GoogleFirestoreAdminV1Index_State {fromGoogleFirestoreAdminV1Index_State :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The state is unspecified.+pattern GoogleFirestoreAdminV1Index_State_STATEUNSPECIFIED :: GoogleFirestoreAdminV1Index_State+pattern GoogleFirestoreAdminV1Index_State_STATEUNSPECIFIED = GoogleFirestoreAdminV1Index_State "STATE_UNSPECIFIED"++-- | The index is being created. There is an active long-running operation for the index. The index is updated when writing a document. Some index data may exist.+pattern GoogleFirestoreAdminV1Index_State_Creating :: GoogleFirestoreAdminV1Index_State+pattern GoogleFirestoreAdminV1Index_State_Creating = GoogleFirestoreAdminV1Index_State "CREATING"++-- | The index is ready to be used. The index is updated when writing a document. The index is fully populated from all stored documents it applies to.+pattern GoogleFirestoreAdminV1Index_State_Ready :: GoogleFirestoreAdminV1Index_State+pattern GoogleFirestoreAdminV1Index_State_Ready = GoogleFirestoreAdminV1Index_State "READY"++-- | The index was being created, but something went wrong. There is no active long-running operation for the index, and the most recently finished long-running operation failed. The index is not updated when writing a document. Some index data may exist. Use the google.longrunning.Operations API to determine why the operation that last attempted to create this index failed, then re-create the index.+pattern GoogleFirestoreAdminV1Index_State_NEEDSREPAIR :: GoogleFirestoreAdminV1Index_State+pattern GoogleFirestoreAdminV1Index_State_NEEDSREPAIR = GoogleFirestoreAdminV1Index_State "NEEDS_REPAIR"++{-# COMPLETE+ GoogleFirestoreAdminV1Index_State_STATEUNSPECIFIED,+ GoogleFirestoreAdminV1Index_State_Creating,+ GoogleFirestoreAdminV1Index_State_Ready,+ GoogleFirestoreAdminV1Index_State_NEEDSREPAIR,+ GoogleFirestoreAdminV1Index_State+ #-}++-- | Specifies how the index is changing.+newtype GoogleFirestoreAdminV1IndexConfigDelta_ChangeType = GoogleFirestoreAdminV1IndexConfigDelta_ChangeType {fromGoogleFirestoreAdminV1IndexConfigDelta_ChangeType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The type of change is not specified or known.+pattern GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_CHANGETYPEUNSPECIFIED :: GoogleFirestoreAdminV1IndexConfigDelta_ChangeType+pattern GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_CHANGETYPEUNSPECIFIED = GoogleFirestoreAdminV1IndexConfigDelta_ChangeType "CHANGE_TYPE_UNSPECIFIED"++-- | The single field index is being added.+pattern GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_Add :: GoogleFirestoreAdminV1IndexConfigDelta_ChangeType+pattern GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_Add = GoogleFirestoreAdminV1IndexConfigDelta_ChangeType "ADD"++-- | The single field index is being removed.+pattern GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_Remove :: GoogleFirestoreAdminV1IndexConfigDelta_ChangeType+pattern GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_Remove = GoogleFirestoreAdminV1IndexConfigDelta_ChangeType "REMOVE"++{-# COMPLETE+ GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_CHANGETYPEUNSPECIFIED,+ GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_Add,+ GoogleFirestoreAdminV1IndexConfigDelta_ChangeType_Remove,+ GoogleFirestoreAdminV1IndexConfigDelta_ChangeType+ #-}++-- | Indicates that this field supports operations on @array_value@s.+newtype GoogleFirestoreAdminV1IndexField_ArrayConfig = GoogleFirestoreAdminV1IndexField_ArrayConfig {fromGoogleFirestoreAdminV1IndexField_ArrayConfig :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The index does not support additional array queries.+pattern GoogleFirestoreAdminV1IndexField_ArrayConfig_ARRAYCONFIGUNSPECIFIED :: GoogleFirestoreAdminV1IndexField_ArrayConfig+pattern GoogleFirestoreAdminV1IndexField_ArrayConfig_ARRAYCONFIGUNSPECIFIED = GoogleFirestoreAdminV1IndexField_ArrayConfig "ARRAY_CONFIG_UNSPECIFIED"++-- | The index supports array containment queries.+pattern GoogleFirestoreAdminV1IndexField_ArrayConfig_Contains :: GoogleFirestoreAdminV1IndexField_ArrayConfig+pattern GoogleFirestoreAdminV1IndexField_ArrayConfig_Contains = GoogleFirestoreAdminV1IndexField_ArrayConfig "CONTAINS"++{-# COMPLETE+ GoogleFirestoreAdminV1IndexField_ArrayConfig_ARRAYCONFIGUNSPECIFIED,+ GoogleFirestoreAdminV1IndexField_ArrayConfig_Contains,+ GoogleFirestoreAdminV1IndexField_ArrayConfig+ #-}++-- | Indicates that this field supports ordering by the specified order or comparing using =, !=, \<, \<=, >, >=.+newtype GoogleFirestoreAdminV1IndexField_Order = GoogleFirestoreAdminV1IndexField_Order {fromGoogleFirestoreAdminV1IndexField_Order :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The ordering is unspecified. Not a valid option.+pattern GoogleFirestoreAdminV1IndexField_Order_ORDERUNSPECIFIED :: GoogleFirestoreAdminV1IndexField_Order+pattern GoogleFirestoreAdminV1IndexField_Order_ORDERUNSPECIFIED = GoogleFirestoreAdminV1IndexField_Order "ORDER_UNSPECIFIED"++-- | The field is ordered by ascending field value.+pattern GoogleFirestoreAdminV1IndexField_Order_Ascending :: GoogleFirestoreAdminV1IndexField_Order+pattern GoogleFirestoreAdminV1IndexField_Order_Ascending = GoogleFirestoreAdminV1IndexField_Order "ASCENDING"++-- | The field is ordered by descending field value.+pattern GoogleFirestoreAdminV1IndexField_Order_Descending :: GoogleFirestoreAdminV1IndexField_Order+pattern GoogleFirestoreAdminV1IndexField_Order_Descending = GoogleFirestoreAdminV1IndexField_Order "DESCENDING"++{-# COMPLETE+ GoogleFirestoreAdminV1IndexField_Order_ORDERUNSPECIFIED,+ GoogleFirestoreAdminV1IndexField_Order_Ascending,+ GoogleFirestoreAdminV1IndexField_Order_Descending,+ GoogleFirestoreAdminV1IndexField_Order+ #-}++-- | The state of the operation.+newtype GoogleFirestoreAdminV1IndexOperationMetadata_State = GoogleFirestoreAdminV1IndexOperationMetadata_State {fromGoogleFirestoreAdminV1IndexOperationMetadata_State :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified.+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_OPERATIONSTATEUNSPECIFIED :: GoogleFirestoreAdminV1IndexOperationMetadata_State+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_OPERATIONSTATEUNSPECIFIED = GoogleFirestoreAdminV1IndexOperationMetadata_State "OPERATION_STATE_UNSPECIFIED"++-- | Request is being prepared for processing.+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Initializing :: GoogleFirestoreAdminV1IndexOperationMetadata_State+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Initializing = GoogleFirestoreAdminV1IndexOperationMetadata_State "INITIALIZING"++-- | Request is actively being processed.+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Processing :: GoogleFirestoreAdminV1IndexOperationMetadata_State+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Processing = GoogleFirestoreAdminV1IndexOperationMetadata_State "PROCESSING"++-- | Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Cancelling :: GoogleFirestoreAdminV1IndexOperationMetadata_State+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Cancelling = GoogleFirestoreAdminV1IndexOperationMetadata_State "CANCELLING"++-- | Request has been processed and is in its finalization stage.+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Finalizing :: GoogleFirestoreAdminV1IndexOperationMetadata_State+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Finalizing = GoogleFirestoreAdminV1IndexOperationMetadata_State "FINALIZING"++-- | Request has completed successfully.+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Successful :: GoogleFirestoreAdminV1IndexOperationMetadata_State+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Successful = GoogleFirestoreAdminV1IndexOperationMetadata_State "SUCCESSFUL"++-- | Request has finished being processed, but encountered an error.+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Failed :: GoogleFirestoreAdminV1IndexOperationMetadata_State+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Failed = GoogleFirestoreAdminV1IndexOperationMetadata_State "FAILED"++-- | Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation.+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Cancelled :: GoogleFirestoreAdminV1IndexOperationMetadata_State+pattern GoogleFirestoreAdminV1IndexOperationMetadata_State_Cancelled = GoogleFirestoreAdminV1IndexOperationMetadata_State "CANCELLED"++{-# COMPLETE+ GoogleFirestoreAdminV1IndexOperationMetadata_State_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Initializing,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Processing,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Cancelling,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Finalizing,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Successful,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Failed,+ GoogleFirestoreAdminV1IndexOperationMetadata_State_Cancelled,+ GoogleFirestoreAdminV1IndexOperationMetadata_State+ #-}++-- | The operation state of the restore.+newtype GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState = GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState {fromGoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified.+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_OPERATIONSTATEUNSPECIFIED :: GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_OPERATIONSTATEUNSPECIFIED = GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState "OPERATION_STATE_UNSPECIFIED"++-- | Request is being prepared for processing.+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Initializing :: GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Initializing = GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState "INITIALIZING"++-- | Request is actively being processed.+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Processing :: GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Processing = GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState "PROCESSING"++-- | Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Cancelling :: GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Cancelling = GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState "CANCELLING"++-- | Request has been processed and is in its finalization stage.+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Finalizing :: GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Finalizing = GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState "FINALIZING"++-- | Request has completed successfully.+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Successful :: GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Successful = GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState "SUCCESSFUL"++-- | Request has finished being processed, but encountered an error.+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Failed :: GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Failed = GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState "FAILED"++-- | Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation.+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Cancelled :: GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+pattern GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Cancelled = GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState "CANCELLED"++{-# COMPLETE+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_OPERATIONSTATEUNSPECIFIED,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Initializing,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Processing,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Cancelling,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Finalizing,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Successful,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Failed,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState_Cancelled,+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+ #-}++-- | Output only. The state of the TTL configuration.+newtype GoogleFirestoreAdminV1TtlConfig_State = GoogleFirestoreAdminV1TtlConfig_State {fromGoogleFirestoreAdminV1TtlConfig_State :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The state is unspecified or unknown.+pattern GoogleFirestoreAdminV1TtlConfig_State_STATEUNSPECIFIED :: GoogleFirestoreAdminV1TtlConfig_State+pattern GoogleFirestoreAdminV1TtlConfig_State_STATEUNSPECIFIED = GoogleFirestoreAdminV1TtlConfig_State "STATE_UNSPECIFIED"++-- | The TTL is being applied. There is an active long-running operation to track the change. Newly written documents will have TTLs applied as requested. Requested TTLs on existing documents are still being processed. When TTLs on all existing documents have been processed, the state will move to \'ACTIVE\'.+pattern GoogleFirestoreAdminV1TtlConfig_State_Creating :: GoogleFirestoreAdminV1TtlConfig_State+pattern GoogleFirestoreAdminV1TtlConfig_State_Creating = GoogleFirestoreAdminV1TtlConfig_State "CREATING"++-- | The TTL is active for all documents.+pattern GoogleFirestoreAdminV1TtlConfig_State_Active :: GoogleFirestoreAdminV1TtlConfig_State+pattern GoogleFirestoreAdminV1TtlConfig_State_Active = GoogleFirestoreAdminV1TtlConfig_State "ACTIVE"++-- | The TTL configuration could not be enabled for all existing documents. Newly written documents will continue to have their TTL applied. The LRO returned when last attempting to enable TTL for this @Field@ has failed, and may have more details.+pattern GoogleFirestoreAdminV1TtlConfig_State_NEEDSREPAIR :: GoogleFirestoreAdminV1TtlConfig_State+pattern GoogleFirestoreAdminV1TtlConfig_State_NEEDSREPAIR = GoogleFirestoreAdminV1TtlConfig_State "NEEDS_REPAIR"++{-# COMPLETE+ GoogleFirestoreAdminV1TtlConfig_State_STATEUNSPECIFIED,+ GoogleFirestoreAdminV1TtlConfig_State_Creating,+ GoogleFirestoreAdminV1TtlConfig_State_Active,+ GoogleFirestoreAdminV1TtlConfig_State_NEEDSREPAIR,+ GoogleFirestoreAdminV1TtlConfig_State+ #-}++-- | Specifies how the TTL configuration is changing.+newtype GoogleFirestoreAdminV1TtlConfigDelta_ChangeType = GoogleFirestoreAdminV1TtlConfigDelta_ChangeType {fromGoogleFirestoreAdminV1TtlConfigDelta_ChangeType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The type of change is not specified or known.+pattern GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_CHANGETYPEUNSPECIFIED :: GoogleFirestoreAdminV1TtlConfigDelta_ChangeType+pattern GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_CHANGETYPEUNSPECIFIED = GoogleFirestoreAdminV1TtlConfigDelta_ChangeType "CHANGE_TYPE_UNSPECIFIED"++-- | The TTL config is being added.+pattern GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_Add :: GoogleFirestoreAdminV1TtlConfigDelta_ChangeType+pattern GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_Add = GoogleFirestoreAdminV1TtlConfigDelta_ChangeType "ADD"++-- | The TTL config is being removed.+pattern GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_Remove :: GoogleFirestoreAdminV1TtlConfigDelta_ChangeType+pattern GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_Remove = GoogleFirestoreAdminV1TtlConfigDelta_ChangeType "REMOVE"++{-# COMPLETE+ GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_CHANGETYPEUNSPECIFIED,+ GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_Add,+ GoogleFirestoreAdminV1TtlConfigDelta_ChangeType_Remove,+ GoogleFirestoreAdminV1TtlConfigDelta_ChangeType+ #-}++-- | The day of week to run. DAY/OF/WEEK_UNSPECIFIED is not allowed.+newtype GoogleFirestoreAdminV1WeeklyRecurrence_Day = GoogleFirestoreAdminV1WeeklyRecurrence_Day {fromGoogleFirestoreAdminV1WeeklyRecurrence_Day :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The day of the week is unspecified.+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_DAYOFWEEKUNSPECIFIED :: GoogleFirestoreAdminV1WeeklyRecurrence_Day+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_DAYOFWEEKUNSPECIFIED = GoogleFirestoreAdminV1WeeklyRecurrence_Day "DAY_OF_WEEK_UNSPECIFIED"++-- | Monday+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Monday :: GoogleFirestoreAdminV1WeeklyRecurrence_Day+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Monday = GoogleFirestoreAdminV1WeeklyRecurrence_Day "MONDAY"++-- | Tuesday+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Tuesday :: GoogleFirestoreAdminV1WeeklyRecurrence_Day+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Tuesday = GoogleFirestoreAdminV1WeeklyRecurrence_Day "TUESDAY"++-- | Wednesday+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Wednesday :: GoogleFirestoreAdminV1WeeklyRecurrence_Day+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Wednesday = GoogleFirestoreAdminV1WeeklyRecurrence_Day "WEDNESDAY"++-- | Thursday+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Thursday :: GoogleFirestoreAdminV1WeeklyRecurrence_Day+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Thursday = GoogleFirestoreAdminV1WeeklyRecurrence_Day "THURSDAY"++-- | Friday+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Friday :: GoogleFirestoreAdminV1WeeklyRecurrence_Day+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Friday = GoogleFirestoreAdminV1WeeklyRecurrence_Day "FRIDAY"++-- | Saturday+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Saturday :: GoogleFirestoreAdminV1WeeklyRecurrence_Day+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Saturday = GoogleFirestoreAdminV1WeeklyRecurrence_Day "SATURDAY"++-- | Sunday+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Sunday :: GoogleFirestoreAdminV1WeeklyRecurrence_Day+pattern GoogleFirestoreAdminV1WeeklyRecurrence_Day_Sunday = GoogleFirestoreAdminV1WeeklyRecurrence_Day "SUNDAY"++{-# COMPLETE+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_DAYOFWEEKUNSPECIFIED,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Monday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Tuesday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Wednesday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Thursday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Friday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Saturday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day_Sunday,+ GoogleFirestoreAdminV1WeeklyRecurrence_Day+ #-}++-- | The direction to order by. Defaults to @ASCENDING@.+newtype Order_Direction = Order_Direction {fromOrder_Direction :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified.+pattern Order_Direction_DIRECTIONUNSPECIFIED :: Order_Direction+pattern Order_Direction_DIRECTIONUNSPECIFIED = Order_Direction "DIRECTION_UNSPECIFIED"++-- | Ascending.+pattern Order_Direction_Ascending :: Order_Direction+pattern Order_Direction_Ascending = Order_Direction "ASCENDING"++-- | Descending.+pattern Order_Direction_Descending :: Order_Direction+pattern Order_Direction_Descending = Order_Direction "DESCENDING"++{-# COMPLETE+ Order_Direction_DIRECTIONUNSPECIFIED,+ Order_Direction_Ascending,+ Order_Direction_Descending,+ Order_Direction+ #-}++-- | The type of change that occurred.+newtype TargetChange_TargetChangeType = TargetChange_TargetChangeType {fromTargetChange_TargetChangeType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | No change has occurred. Used only to send an updated @resume_token@.+pattern TargetChange_TargetChangeType_NOCHANGE :: TargetChange_TargetChangeType+pattern TargetChange_TargetChangeType_NOCHANGE = TargetChange_TargetChangeType "NO_CHANGE"++-- | The targets have been added.+pattern TargetChange_TargetChangeType_Add :: TargetChange_TargetChangeType+pattern TargetChange_TargetChangeType_Add = TargetChange_TargetChangeType "ADD"++-- | The targets have been removed.+pattern TargetChange_TargetChangeType_Remove :: TargetChange_TargetChangeType+pattern TargetChange_TargetChangeType_Remove = TargetChange_TargetChangeType "REMOVE"++-- | The targets reflect all changes committed before the targets were added to the stream. This will be sent after or with a @read_time@ that is greater than or equal to the time at which the targets were added. Listeners can wait for this change if read-after-write semantics are desired.+pattern TargetChange_TargetChangeType_Current :: TargetChange_TargetChangeType+pattern TargetChange_TargetChangeType_Current = TargetChange_TargetChangeType "CURRENT"++-- | The targets have been reset, and a new initial state for the targets will be returned in subsequent changes. After the initial state is complete, @CURRENT@ will be returned even if the target was previously indicated to be @CURRENT@.+pattern TargetChange_TargetChangeType_Reset :: TargetChange_TargetChangeType+pattern TargetChange_TargetChangeType_Reset = TargetChange_TargetChangeType "RESET"++{-# COMPLETE+ TargetChange_TargetChangeType_NOCHANGE,+ TargetChange_TargetChangeType_Add,+ TargetChange_TargetChangeType_Remove,+ TargetChange_TargetChangeType_Current,+ TargetChange_TargetChangeType_Reset,+ TargetChange_TargetChangeType+ #-}++-- | The unary operator to apply.+newtype UnaryFilter_Op = UnaryFilter_Op {fromUnaryFilter_Op :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified. This value must not be used.+pattern UnaryFilter_Op_OPERATORUNSPECIFIED :: UnaryFilter_Op+pattern UnaryFilter_Op_OPERATORUNSPECIFIED = UnaryFilter_Op "OPERATOR_UNSPECIFIED"++-- | The given @field@ is equal to @NaN@.+pattern UnaryFilter_Op_ISNAN :: UnaryFilter_Op+pattern UnaryFilter_Op_ISNAN = UnaryFilter_Op "IS_NAN"++-- | The given @field@ is equal to @NULL@.+pattern UnaryFilter_Op_ISNULL :: UnaryFilter_Op+pattern UnaryFilter_Op_ISNULL = UnaryFilter_Op "IS_NULL"++-- | The given @field@ is not equal to @NaN@. Requires: * No other @NOT_EQUAL@, @NOT_IN@, @IS_NOT_NULL@, or @IS_NOT_NAN@. * That @field@ comes first in the @order_by@.+pattern UnaryFilter_Op_ISNOTNAN :: UnaryFilter_Op+pattern UnaryFilter_Op_ISNOTNAN = UnaryFilter_Op "IS_NOT_NAN"++-- | The given @field@ is not equal to @NULL@. Requires: * A single @NOT_EQUAL@, @NOT_IN@, @IS_NOT_NULL@, or @IS_NOT_NAN@. * That @field@ comes first in the @order_by@.+pattern UnaryFilter_Op_ISNOTNULL :: UnaryFilter_Op+pattern UnaryFilter_Op_ISNOTNULL = UnaryFilter_Op "IS_NOT_NULL"++{-# COMPLETE+ UnaryFilter_Op_OPERATORUNSPECIFIED,+ UnaryFilter_Op_ISNAN,+ UnaryFilter_Op_ISNULL,+ UnaryFilter_Op_ISNOTNAN,+ UnaryFilter_Op_ISNOTNULL,+ UnaryFilter_Op+ #-}++-- | A null value.+newtype Value_NullValue = Value_NullValue {fromValue_NullValue :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Null value.+pattern Value_NullValue_NULLVALUE :: Value_NullValue+pattern Value_NullValue_NULLVALUE = Value_NullValue "NULL_VALUE"++{-# COMPLETE+ Value_NullValue_NULLVALUE,+ Value_NullValue+ #-}
+ gen/Gogol/FireStore/Projects/Databases/BackupSchedules/Create.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.BackupSchedules.Create+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a backup schedule on a database. At most two backup schedules can be configured on a database, one daily backup schedule and one weekly backup schedule.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.backupSchedules.create@.+module Gogol.FireStore.Projects.Databases.BackupSchedules.Create+ ( -- * Resource+ FireStoreProjectsDatabasesBackupSchedulesCreateResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesBackupSchedulesCreate (..),+ newFireStoreProjectsDatabasesBackupSchedulesCreate,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.backupSchedules.create@ method which the+-- 'FireStoreProjectsDatabasesBackupSchedulesCreate' request conforms to.+type FireStoreProjectsDatabasesBackupSchedulesCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "backupSchedules"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] GoogleFirestoreAdminV1BackupSchedule+ Core.:> Core.Post '[Core.JSON] GoogleFirestoreAdminV1BackupSchedule++-- | Creates a backup schedule on a database. At most two backup schedules can be configured on a database, one daily backup schedule and one weekly backup schedule.+--+-- /See:/ 'newFireStoreProjectsDatabasesBackupSchedulesCreate' smart constructor.+data FireStoreProjectsDatabasesBackupSchedulesCreate = FireStoreProjectsDatabasesBackupSchedulesCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The parent database. Format @projects\/{project}\/databases\/{database}@+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleFirestoreAdminV1BackupSchedule,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesBackupSchedulesCreate' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesBackupSchedulesCreate ::+ -- | Required. The parent database. Format @projects\/{project}\/databases\/{database}@ See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleFirestoreAdminV1BackupSchedule ->+ FireStoreProjectsDatabasesBackupSchedulesCreate+newFireStoreProjectsDatabasesBackupSchedulesCreate parent payload =+ FireStoreProjectsDatabasesBackupSchedulesCreate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesBackupSchedulesCreate+ where+ type+ Rs FireStoreProjectsDatabasesBackupSchedulesCreate =+ GoogleFirestoreAdminV1BackupSchedule+ type+ Scopes FireStoreProjectsDatabasesBackupSchedulesCreate =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesBackupSchedulesCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesBackupSchedulesCreateResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/BackupSchedules/Delete.hs view
@@ -0,0 +1,115 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.BackupSchedules.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a backup schedule.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.backupSchedules.delete@.+module Gogol.FireStore.Projects.Databases.BackupSchedules.Delete+ ( -- * Resource+ FireStoreProjectsDatabasesBackupSchedulesDeleteResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesBackupSchedulesDelete (..),+ newFireStoreProjectsDatabasesBackupSchedulesDelete,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.backupSchedules.delete@ method which the+-- 'FireStoreProjectsDatabasesBackupSchedulesDelete' request conforms to.+type FireStoreProjectsDatabasesBackupSchedulesDeleteResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] Empty++-- | Deletes a backup schedule.+--+-- /See:/ 'newFireStoreProjectsDatabasesBackupSchedulesDelete' smart constructor.+data FireStoreProjectsDatabasesBackupSchedulesDelete = FireStoreProjectsDatabasesBackupSchedulesDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the backup schedule. Format @projects\/{project}\/databases\/{database}\/backupSchedules\/{backup_schedule}@+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesBackupSchedulesDelete' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesBackupSchedulesDelete ::+ -- | Required. The name of the backup schedule. Format @projects\/{project}\/databases\/{database}\/backupSchedules\/{backup_schedule}@ See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesBackupSchedulesDelete+newFireStoreProjectsDatabasesBackupSchedulesDelete name =+ FireStoreProjectsDatabasesBackupSchedulesDelete+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesBackupSchedulesDelete+ where+ type Rs FireStoreProjectsDatabasesBackupSchedulesDelete = Empty+ type+ Scopes FireStoreProjectsDatabasesBackupSchedulesDelete =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesBackupSchedulesDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesBackupSchedulesDeleteResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/BackupSchedules/Get.hs view
@@ -0,0 +1,117 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.BackupSchedules.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets information about a backup schedule.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.backupSchedules.get@.+module Gogol.FireStore.Projects.Databases.BackupSchedules.Get+ ( -- * Resource+ FireStoreProjectsDatabasesBackupSchedulesGetResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesBackupSchedulesGet (..),+ newFireStoreProjectsDatabasesBackupSchedulesGet,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.backupSchedules.get@ method which the+-- 'FireStoreProjectsDatabasesBackupSchedulesGet' request conforms to.+type FireStoreProjectsDatabasesBackupSchedulesGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleFirestoreAdminV1BackupSchedule++-- | Gets information about a backup schedule.+--+-- /See:/ 'newFireStoreProjectsDatabasesBackupSchedulesGet' smart constructor.+data FireStoreProjectsDatabasesBackupSchedulesGet = FireStoreProjectsDatabasesBackupSchedulesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the backup schedule. Format @projects\/{project}\/databases\/{database}\/backupSchedules\/{backup_schedule}@+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesBackupSchedulesGet' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesBackupSchedulesGet ::+ -- | Required. The name of the backup schedule. Format @projects\/{project}\/databases\/{database}\/backupSchedules\/{backup_schedule}@ See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesBackupSchedulesGet+newFireStoreProjectsDatabasesBackupSchedulesGet name =+ FireStoreProjectsDatabasesBackupSchedulesGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesBackupSchedulesGet+ where+ type+ Rs FireStoreProjectsDatabasesBackupSchedulesGet =+ GoogleFirestoreAdminV1BackupSchedule+ type+ Scopes FireStoreProjectsDatabasesBackupSchedulesGet =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesBackupSchedulesGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesBackupSchedulesGetResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/BackupSchedules/List.hs view
@@ -0,0 +1,120 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.BackupSchedules.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- List backup schedules.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.backupSchedules.list@.+module Gogol.FireStore.Projects.Databases.BackupSchedules.List+ ( -- * Resource+ FireStoreProjectsDatabasesBackupSchedulesListResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesBackupSchedulesList (..),+ newFireStoreProjectsDatabasesBackupSchedulesList,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.backupSchedules.list@ method which the+-- 'FireStoreProjectsDatabasesBackupSchedulesList' request conforms to.+type FireStoreProjectsDatabasesBackupSchedulesListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "backupSchedules"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get+ '[Core.JSON]+ GoogleFirestoreAdminV1ListBackupSchedulesResponse++-- | List backup schedules.+--+-- /See:/ 'newFireStoreProjectsDatabasesBackupSchedulesList' smart constructor.+data FireStoreProjectsDatabasesBackupSchedulesList = FireStoreProjectsDatabasesBackupSchedulesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The parent database. Format is @projects\/{project}\/databases\/{database}@.+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesBackupSchedulesList' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesBackupSchedulesList ::+ -- | Required. The parent database. Format is @projects\/{project}\/databases\/{database}@. See 'parent'.+ Core.Text ->+ FireStoreProjectsDatabasesBackupSchedulesList+newFireStoreProjectsDatabasesBackupSchedulesList parent =+ FireStoreProjectsDatabasesBackupSchedulesList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesBackupSchedulesList+ where+ type+ Rs FireStoreProjectsDatabasesBackupSchedulesList =+ GoogleFirestoreAdminV1ListBackupSchedulesResponse+ type+ Scopes FireStoreProjectsDatabasesBackupSchedulesList =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesBackupSchedulesList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesBackupSchedulesListResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/BackupSchedules/Patch.hs view
@@ -0,0 +1,129 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.BackupSchedules.Patch+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a backup schedule.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.backupSchedules.patch@.+module Gogol.FireStore.Projects.Databases.BackupSchedules.Patch+ ( -- * Resource+ FireStoreProjectsDatabasesBackupSchedulesPatchResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesBackupSchedulesPatch (..),+ newFireStoreProjectsDatabasesBackupSchedulesPatch,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.backupSchedules.patch@ method which the+-- 'FireStoreProjectsDatabasesBackupSchedulesPatch' request conforms to.+type FireStoreProjectsDatabasesBackupSchedulesPatchResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "updateMask" Core.FieldMask+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] GoogleFirestoreAdminV1BackupSchedule+ Core.:> Core.Patch '[Core.JSON] GoogleFirestoreAdminV1BackupSchedule++-- | Updates a backup schedule.+--+-- /See:/ 'newFireStoreProjectsDatabasesBackupSchedulesPatch' smart constructor.+data FireStoreProjectsDatabasesBackupSchedulesPatch = FireStoreProjectsDatabasesBackupSchedulesPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Output only. The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is @projects\/{project}\/databases\/{database}\/backupSchedules\/{backup_schedule}@+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleFirestoreAdminV1BackupSchedule,+ -- | The list of fields to be updated.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesBackupSchedulesPatch' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesBackupSchedulesPatch ::+ -- | Output only. The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is @projects\/{project}\/databases\/{database}\/backupSchedules\/{backup_schedule}@ See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleFirestoreAdminV1BackupSchedule ->+ FireStoreProjectsDatabasesBackupSchedulesPatch+newFireStoreProjectsDatabasesBackupSchedulesPatch name payload =+ FireStoreProjectsDatabasesBackupSchedulesPatch+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesBackupSchedulesPatch+ where+ type+ Rs FireStoreProjectsDatabasesBackupSchedulesPatch =+ GoogleFirestoreAdminV1BackupSchedule+ type+ Scopes FireStoreProjectsDatabasesBackupSchedulesPatch =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesBackupSchedulesPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesBackupSchedulesPatchResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/BulkDeleteDocuments.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.BulkDeleteDocuments+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Bulk deletes a subset of documents from Google Cloud Firestore. Documents created or updated after the underlying system starts to process the request will not be deleted. The bulk delete occurs in the background and its progress can be monitored and managed via the Operation resource that is created. For more details on bulk delete behavior, refer to: https:\/\/cloud.google.com\/firestore\/docs\/manage-data\/bulk-delete+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.bulkDeleteDocuments@.+module Gogol.FireStore.Projects.Databases.BulkDeleteDocuments+ ( -- * Resource+ FireStoreProjectsDatabasesBulkDeleteDocumentsResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesBulkDeleteDocuments (..),+ newFireStoreProjectsDatabasesBulkDeleteDocuments,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.bulkDeleteDocuments@ method which the+-- 'FireStoreProjectsDatabasesBulkDeleteDocuments' request conforms to.+type FireStoreProjectsDatabasesBulkDeleteDocumentsResource =+ "v1"+ Core.:> Core.CaptureMode "name" "bulkDeleteDocuments" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody+ '[Core.JSON]+ GoogleFirestoreAdminV1BulkDeleteDocumentsRequest+ Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Bulk deletes a subset of documents from Google Cloud Firestore. Documents created or updated after the underlying system starts to process the request will not be deleted. The bulk delete occurs in the background and its progress can be monitored and managed via the Operation resource that is created. For more details on bulk delete behavior, refer to: https:\/\/cloud.google.com\/firestore\/docs\/manage-data\/bulk-delete+--+-- /See:/ 'newFireStoreProjectsDatabasesBulkDeleteDocuments' smart constructor.+data FireStoreProjectsDatabasesBulkDeleteDocuments = FireStoreProjectsDatabasesBulkDeleteDocuments+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. Database to operate. Should be of the form: @projects\/{project_id}\/databases\/{database_id}@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleFirestoreAdminV1BulkDeleteDocumentsRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesBulkDeleteDocuments' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesBulkDeleteDocuments ::+ -- | Required. Database to operate. Should be of the form: @projects\/{project_id}\/databases\/{database_id}@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleFirestoreAdminV1BulkDeleteDocumentsRequest ->+ FireStoreProjectsDatabasesBulkDeleteDocuments+newFireStoreProjectsDatabasesBulkDeleteDocuments name payload =+ FireStoreProjectsDatabasesBulkDeleteDocuments+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesBulkDeleteDocuments+ where+ type+ Rs FireStoreProjectsDatabasesBulkDeleteDocuments =+ GoogleLongrunningOperation+ type+ Scopes FireStoreProjectsDatabasesBulkDeleteDocuments =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesBulkDeleteDocuments {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesBulkDeleteDocumentsResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Fields/Get.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the metadata and configuration for a Field.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.fields.get@.+module Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.Get+ ( -- * Resource+ FireStoreProjectsDatabasesCollectionGroupsFieldsGetResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesCollectionGroupsFieldsGet (..),+ newFireStoreProjectsDatabasesCollectionGroupsFieldsGet,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.collectionGroups.fields.get@ method which the+-- 'FireStoreProjectsDatabasesCollectionGroupsFieldsGet' request conforms to.+type FireStoreProjectsDatabasesCollectionGroupsFieldsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleFirestoreAdminV1Field++-- | Gets the metadata and configuration for a Field.+--+-- /See:/ 'newFireStoreProjectsDatabasesCollectionGroupsFieldsGet' smart constructor.+data FireStoreProjectsDatabasesCollectionGroupsFieldsGet = FireStoreProjectsDatabasesCollectionGroupsFieldsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. A name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/fields\/{field_id}@+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesCollectionGroupsFieldsGet' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesCollectionGroupsFieldsGet ::+ -- | Required. A name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/fields\/{field_id}@ See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesCollectionGroupsFieldsGet+newFireStoreProjectsDatabasesCollectionGroupsFieldsGet name =+ FireStoreProjectsDatabasesCollectionGroupsFieldsGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesCollectionGroupsFieldsGet+ where+ type+ Rs FireStoreProjectsDatabasesCollectionGroupsFieldsGet =+ GoogleFirestoreAdminV1Field+ type+ Scopes FireStoreProjectsDatabasesCollectionGroupsFieldsGet =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient+ FireStoreProjectsDatabasesCollectionGroupsFieldsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesCollectionGroupsFieldsGetResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Fields/List.hs view
@@ -0,0 +1,135 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the field configuration and metadata for this database. Currently, FirestoreAdmin.ListFields only supports listing fields that have been explicitly overridden. To issue this query, call FirestoreAdmin.ListFields with the filter set to @indexConfig.usesAncestorConfig:false@ or @ttlConfig:*@.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.fields.list@.+module Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.List+ ( -- * Resource+ FireStoreProjectsDatabasesCollectionGroupsFieldsListResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesCollectionGroupsFieldsList (..),+ newFireStoreProjectsDatabasesCollectionGroupsFieldsList,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.collectionGroups.fields.list@ method which the+-- 'FireStoreProjectsDatabasesCollectionGroupsFieldsList' request conforms to.+type FireStoreProjectsDatabasesCollectionGroupsFieldsListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "fields"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleFirestoreAdminV1ListFieldsResponse++-- | Lists the field configuration and metadata for this database. Currently, FirestoreAdmin.ListFields only supports listing fields that have been explicitly overridden. To issue this query, call FirestoreAdmin.ListFields with the filter set to @indexConfig.usesAncestorConfig:false@ or @ttlConfig:*@.+--+-- /See:/ 'newFireStoreProjectsDatabasesCollectionGroupsFieldsList' smart constructor.+data FireStoreProjectsDatabasesCollectionGroupsFieldsList = FireStoreProjectsDatabasesCollectionGroupsFieldsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The filter to apply to list results. Currently, FirestoreAdmin.ListFields only supports listing fields that have been explicitly overridden. To issue this query, call FirestoreAdmin.ListFields with a filter that includes @indexConfig.usesAncestorConfig:false@ or @ttlConfig:*@.+ filter :: (Core.Maybe Core.Text),+ -- | The number of results to return.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A page token, returned from a previous call to FirestoreAdmin.ListFields, that may be used to get the next page of results.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. A parent name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}@+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesCollectionGroupsFieldsList' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesCollectionGroupsFieldsList ::+ -- | Required. A parent name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}@ See 'parent'.+ Core.Text ->+ FireStoreProjectsDatabasesCollectionGroupsFieldsList+newFireStoreProjectsDatabasesCollectionGroupsFieldsList parent =+ FireStoreProjectsDatabasesCollectionGroupsFieldsList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesCollectionGroupsFieldsList+ where+ type+ Rs FireStoreProjectsDatabasesCollectionGroupsFieldsList =+ GoogleFirestoreAdminV1ListFieldsResponse+ type+ Scopes FireStoreProjectsDatabasesCollectionGroupsFieldsList =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient+ FireStoreProjectsDatabasesCollectionGroupsFieldsList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesCollectionGroupsFieldsListResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Fields/Patch.hs view
@@ -0,0 +1,135 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.Patch+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a field configuration. Currently, field updates apply only to single field index configuration. However, calls to FirestoreAdmin.UpdateField should provide a field mask to avoid changing any configuration that the caller isn\'t aware of. The field mask should be specified as: @{ paths: \"index_config\" }@. This call returns a google.longrunning.Operation which may be used to track the status of the field update. The metadata for the operation will be the type FieldOperationMetadata. To configure the default field settings for the database, use the special @Field@ with resource name: @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/__default__\/fields\/*@.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.fields.patch@.+module Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.Patch+ ( -- * Resource+ FireStoreProjectsDatabasesCollectionGroupsFieldsPatchResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesCollectionGroupsFieldsPatch (..),+ newFireStoreProjectsDatabasesCollectionGroupsFieldsPatch,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.collectionGroups.fields.patch@ method which the+-- 'FireStoreProjectsDatabasesCollectionGroupsFieldsPatch' request conforms to.+type FireStoreProjectsDatabasesCollectionGroupsFieldsPatchResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "updateMask" Core.FieldMask+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] GoogleFirestoreAdminV1Field+ Core.:> Core.Patch '[Core.JSON] GoogleLongrunningOperation++-- | Updates a field configuration. Currently, field updates apply only to single field index configuration. However, calls to FirestoreAdmin.UpdateField should provide a field mask to avoid changing any configuration that the caller isn\'t aware of. The field mask should be specified as: @{ paths: \"index_config\" }@. This call returns a google.longrunning.Operation which may be used to track the status of the field update. The metadata for the operation will be the type FieldOperationMetadata. To configure the default field settings for the database, use the special @Field@ with resource name: @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/__default__\/fields\/*@.+--+-- /See:/ 'newFireStoreProjectsDatabasesCollectionGroupsFieldsPatch' smart constructor.+data FireStoreProjectsDatabasesCollectionGroupsFieldsPatch = FireStoreProjectsDatabasesCollectionGroupsFieldsPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. A field name of the form: @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/fields\/{field_path}@ A field path can be a simple field name, e.g. @address@ or a path to fields within @map_value@ , e.g. @address.city@, or a special field path. The only valid special field is @*@, which represents any field. Field paths can be quoted using @\`@ (backtick). The only character that must be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in field paths that must be quoted include: @*@, @.@, @\`@ (backtick), @[@, @]@, as well as any ascii symbolic characters. Examples: @\`address.city\`@ represents a field named @address.city@, not the map key @city@ in the field @address@. @\`*\`@ represents a field named @*@, not any field. A special @Field@ contains the default indexing settings for all fields. This field\'s resource name is:+ -- @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/__default__\/fields\/*@ Indexes defined on this @Field@ will be applied to all fields which do not have their own @Field@ index configuration.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleFirestoreAdminV1Field,+ -- | A mask, relative to the field. If specified, only configuration specified by this field_mask will be updated in the field.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesCollectionGroupsFieldsPatch' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesCollectionGroupsFieldsPatch ::+ -- | Required. A field name of the form: @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/fields\/{field_path}@ A field path can be a simple field name, e.g. @address@ or a path to fields within @map_value@ , e.g. @address.city@, or a special field path. The only valid special field is @*@, which represents any field. Field paths can be quoted using @\`@ (backtick). The only character that must be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in field paths that must be quoted include: @*@, @.@, @\`@ (backtick), @[@, @]@, as well as any ascii symbolic characters. Examples: @\`address.city\`@ represents a field named @address.city@, not the map key @city@ in the field @address@. @\`*\`@ represents a field named @*@, not any field. A special @Field@ contains the default indexing settings for all fields. This field\'s resource name is:+ -- @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/__default__\/fields\/*@ Indexes defined on this @Field@ will be applied to all fields which do not have their own @Field@ index configuration. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleFirestoreAdminV1Field ->+ FireStoreProjectsDatabasesCollectionGroupsFieldsPatch+newFireStoreProjectsDatabasesCollectionGroupsFieldsPatch+ name+ payload =+ FireStoreProjectsDatabasesCollectionGroupsFieldsPatch+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesCollectionGroupsFieldsPatch+ where+ type+ Rs FireStoreProjectsDatabasesCollectionGroupsFieldsPatch =+ GoogleLongrunningOperation+ type+ Scopes FireStoreProjectsDatabasesCollectionGroupsFieldsPatch =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient+ FireStoreProjectsDatabasesCollectionGroupsFieldsPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesCollectionGroupsFieldsPatchResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Indexes/Create.hs view
@@ -0,0 +1,129 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Create+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a composite index. This returns a google.longrunning.Operation which may be used to track the status of the creation. The metadata for the operation will be the type IndexOperationMetadata.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.indexes.create@.+module Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Create+ ( -- * Resource+ FireStoreProjectsDatabasesCollectionGroupsIndexesCreateResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesCollectionGroupsIndexesCreate (..),+ newFireStoreProjectsDatabasesCollectionGroupsIndexesCreate,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.collectionGroups.indexes.create@ method which the+-- 'FireStoreProjectsDatabasesCollectionGroupsIndexesCreate' request conforms to.+type FireStoreProjectsDatabasesCollectionGroupsIndexesCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "indexes"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] GoogleFirestoreAdminV1Index+ Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Creates a composite index. This returns a google.longrunning.Operation which may be used to track the status of the creation. The metadata for the operation will be the type IndexOperationMetadata.+--+-- /See:/ 'newFireStoreProjectsDatabasesCollectionGroupsIndexesCreate' smart constructor.+data FireStoreProjectsDatabasesCollectionGroupsIndexesCreate = FireStoreProjectsDatabasesCollectionGroupsIndexesCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. A parent name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}@+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleFirestoreAdminV1Index,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesCollectionGroupsIndexesCreate' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesCollectionGroupsIndexesCreate ::+ -- | Required. A parent name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}@ See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleFirestoreAdminV1Index ->+ FireStoreProjectsDatabasesCollectionGroupsIndexesCreate+newFireStoreProjectsDatabasesCollectionGroupsIndexesCreate+ parent+ payload =+ FireStoreProjectsDatabasesCollectionGroupsIndexesCreate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesCollectionGroupsIndexesCreate+ where+ type+ Rs FireStoreProjectsDatabasesCollectionGroupsIndexesCreate =+ GoogleLongrunningOperation+ type+ Scopes FireStoreProjectsDatabasesCollectionGroupsIndexesCreate =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient+ FireStoreProjectsDatabasesCollectionGroupsIndexesCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesCollectionGroupsIndexesCreateResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Indexes/Delete.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a composite index.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.indexes.delete@.+module Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Delete+ ( -- * Resource+ FireStoreProjectsDatabasesCollectionGroupsIndexesDeleteResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesCollectionGroupsIndexesDelete (..),+ newFireStoreProjectsDatabasesCollectionGroupsIndexesDelete,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.collectionGroups.indexes.delete@ method which the+-- 'FireStoreProjectsDatabasesCollectionGroupsIndexesDelete' request conforms to.+type FireStoreProjectsDatabasesCollectionGroupsIndexesDeleteResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] Empty++-- | Deletes a composite index.+--+-- /See:/ 'newFireStoreProjectsDatabasesCollectionGroupsIndexesDelete' smart constructor.+data FireStoreProjectsDatabasesCollectionGroupsIndexesDelete = FireStoreProjectsDatabasesCollectionGroupsIndexesDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. A name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/indexes\/{index_id}@+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesCollectionGroupsIndexesDelete' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesCollectionGroupsIndexesDelete ::+ -- | Required. A name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/indexes\/{index_id}@ See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesCollectionGroupsIndexesDelete+newFireStoreProjectsDatabasesCollectionGroupsIndexesDelete name =+ FireStoreProjectsDatabasesCollectionGroupsIndexesDelete+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesCollectionGroupsIndexesDelete+ where+ type+ Rs FireStoreProjectsDatabasesCollectionGroupsIndexesDelete =+ Empty+ type+ Scopes FireStoreProjectsDatabasesCollectionGroupsIndexesDelete =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient+ FireStoreProjectsDatabasesCollectionGroupsIndexesDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesCollectionGroupsIndexesDeleteResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Indexes/Get.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets a composite index.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.indexes.get@.+module Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Get+ ( -- * Resource+ FireStoreProjectsDatabasesCollectionGroupsIndexesGetResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesCollectionGroupsIndexesGet (..),+ newFireStoreProjectsDatabasesCollectionGroupsIndexesGet,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.collectionGroups.indexes.get@ method which the+-- 'FireStoreProjectsDatabasesCollectionGroupsIndexesGet' request conforms to.+type FireStoreProjectsDatabasesCollectionGroupsIndexesGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleFirestoreAdminV1Index++-- | Gets a composite index.+--+-- /See:/ 'newFireStoreProjectsDatabasesCollectionGroupsIndexesGet' smart constructor.+data FireStoreProjectsDatabasesCollectionGroupsIndexesGet = FireStoreProjectsDatabasesCollectionGroupsIndexesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. A name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/indexes\/{index_id}@+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesCollectionGroupsIndexesGet' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesCollectionGroupsIndexesGet ::+ -- | Required. A name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/indexes\/{index_id}@ See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesCollectionGroupsIndexesGet+newFireStoreProjectsDatabasesCollectionGroupsIndexesGet name =+ FireStoreProjectsDatabasesCollectionGroupsIndexesGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesCollectionGroupsIndexesGet+ where+ type+ Rs FireStoreProjectsDatabasesCollectionGroupsIndexesGet =+ GoogleFirestoreAdminV1Index+ type+ Scopes FireStoreProjectsDatabasesCollectionGroupsIndexesGet =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient+ FireStoreProjectsDatabasesCollectionGroupsIndexesGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesCollectionGroupsIndexesGetResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/CollectionGroups/Indexes/List.hs view
@@ -0,0 +1,135 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists composite indexes.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.indexes.list@.+module Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.List+ ( -- * Resource+ FireStoreProjectsDatabasesCollectionGroupsIndexesListResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesCollectionGroupsIndexesList (..),+ newFireStoreProjectsDatabasesCollectionGroupsIndexesList,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.collectionGroups.indexes.list@ method which the+-- 'FireStoreProjectsDatabasesCollectionGroupsIndexesList' request conforms to.+type FireStoreProjectsDatabasesCollectionGroupsIndexesListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "indexes"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleFirestoreAdminV1ListIndexesResponse++-- | Lists composite indexes.+--+-- /See:/ 'newFireStoreProjectsDatabasesCollectionGroupsIndexesList' smart constructor.+data FireStoreProjectsDatabasesCollectionGroupsIndexesList = FireStoreProjectsDatabasesCollectionGroupsIndexesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The filter to apply to list results.+ filter :: (Core.Maybe Core.Text),+ -- | The number of results to return.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A page token, returned from a previous call to FirestoreAdmin.ListIndexes, that may be used to get the next page of results.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. A parent name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}@+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesCollectionGroupsIndexesList' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesCollectionGroupsIndexesList ::+ -- | Required. A parent name of the form @projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}@ See 'parent'.+ Core.Text ->+ FireStoreProjectsDatabasesCollectionGroupsIndexesList+newFireStoreProjectsDatabasesCollectionGroupsIndexesList parent =+ FireStoreProjectsDatabasesCollectionGroupsIndexesList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesCollectionGroupsIndexesList+ where+ type+ Rs FireStoreProjectsDatabasesCollectionGroupsIndexesList =+ GoogleFirestoreAdminV1ListIndexesResponse+ type+ Scopes FireStoreProjectsDatabasesCollectionGroupsIndexesList =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient+ FireStoreProjectsDatabasesCollectionGroupsIndexesList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesCollectionGroupsIndexesListResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Create.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Create+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Create a database.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.create@.+module Gogol.FireStore.Projects.Databases.Create+ ( -- * Resource+ FireStoreProjectsDatabasesCreateResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesCreate (..),+ newFireStoreProjectsDatabasesCreate,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.create@ method which the+-- 'FireStoreProjectsDatabasesCreate' request conforms to.+type FireStoreProjectsDatabasesCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "databases"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "databaseId" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] GoogleFirestoreAdminV1Database+ Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Create a database.+--+-- /See:/ 'newFireStoreProjectsDatabasesCreate' smart constructor.+data FireStoreProjectsDatabasesCreate = FireStoreProjectsDatabasesCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The ID to use for the database, which will become the final component of the database\'s resource name. This value should be 4-63 characters. Valid characters are \/a-z-\/ with first character a letter and the last a letter or a number. Must not be UUID-like \/[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\/. \"(default)\" database ID is also valid.+ databaseId :: (Core.Maybe Core.Text),+ -- | Required. A parent name of the form @projects\/{project_id}@+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleFirestoreAdminV1Database,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesCreate' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesCreate ::+ -- | Required. A parent name of the form @projects\/{project_id}@ See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleFirestoreAdminV1Database ->+ FireStoreProjectsDatabasesCreate+newFireStoreProjectsDatabasesCreate parent payload =+ FireStoreProjectsDatabasesCreate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ databaseId = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsDatabasesCreate where+ type+ Rs FireStoreProjectsDatabasesCreate =+ GoogleLongrunningOperation+ type+ Scopes FireStoreProjectsDatabasesCreate =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ databaseId+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy FireStoreProjectsDatabasesCreateResource)+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Delete.hs view
@@ -0,0 +1,116 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a database.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.delete@.+module Gogol.FireStore.Projects.Databases.Delete+ ( -- * Resource+ FireStoreProjectsDatabasesDeleteResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDelete (..),+ newFireStoreProjectsDatabasesDelete,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.delete@ method which the+-- 'FireStoreProjectsDatabasesDelete' request conforms to.+type FireStoreProjectsDatabasesDeleteResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "etag" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] GoogleLongrunningOperation++-- | Deletes a database.+--+-- /See:/ 'newFireStoreProjectsDatabasesDelete' smart constructor.+data FireStoreProjectsDatabasesDelete = FireStoreProjectsDatabasesDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The current etag of the Database. If an etag is provided and does not match the current etag of the database, deletion will be blocked and a FAILED_PRECONDITION error will be returned.+ etag :: (Core.Maybe Core.Text),+ -- | Required. A name of the form @projects\/{project_id}\/databases\/{database_id}@+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDelete' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDelete ::+ -- | Required. A name of the form @projects\/{project_id}\/databases\/{database_id}@ See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesDelete+newFireStoreProjectsDatabasesDelete name =+ FireStoreProjectsDatabasesDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ etag = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsDatabasesDelete where+ type+ Rs FireStoreProjectsDatabasesDelete =+ GoogleLongrunningOperation+ type+ Scopes FireStoreProjectsDatabasesDelete =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ etag+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy FireStoreProjectsDatabasesDeleteResource)+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/BatchGet.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.BatchGet+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets multiple documents. Documents returned by this method are not guaranteed to be returned in the same order that they were requested.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.batchGet@.+module Gogol.FireStore.Projects.Databases.Documents.BatchGet+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsBatchGetResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsBatchGet (..),+ newFireStoreProjectsDatabasesDocumentsBatchGet,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.batchGet@ method which the+-- 'FireStoreProjectsDatabasesDocumentsBatchGet' request conforms to.+type FireStoreProjectsDatabasesDocumentsBatchGetResource =+ "v1"+ Core.:> Core.Capture "database" Core.Text+ Core.:> "documents:batchGet"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] BatchGetDocumentsRequest+ Core.:> Core.Post '[Core.JSON] BatchGetDocumentsResponse++-- | Gets multiple documents. Documents returned by this method are not guaranteed to be returned in the same order that they were requested.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsBatchGet' smart constructor.+data FireStoreProjectsDatabasesDocumentsBatchGet = FireStoreProjectsDatabasesDocumentsBatchGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@.+ database :: Core.Text,+ -- | Multipart request metadata.+ payload :: BatchGetDocumentsRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsBatchGet' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsBatchGet ::+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@. See 'database'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ BatchGetDocumentsRequest ->+ FireStoreProjectsDatabasesDocumentsBatchGet+newFireStoreProjectsDatabasesDocumentsBatchGet database payload =+ FireStoreProjectsDatabasesDocumentsBatchGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ database = database,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsBatchGet+ where+ type+ Rs FireStoreProjectsDatabasesDocumentsBatchGet =+ BatchGetDocumentsResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsBatchGet =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsBatchGet {..} =+ go+ database+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsBatchGetResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/BatchWrite.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.BatchWrite+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Applies a batch of write operations. The BatchWrite method does not apply the write operations atomically and can apply them out of order. Method does not allow more than one write per document. Each write succeeds or fails independently. See the BatchWriteResponse for the success status of each write. If you require an atomically applied set of writes, use Commit instead.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.batchWrite@.+module Gogol.FireStore.Projects.Databases.Documents.BatchWrite+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsBatchWriteResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsBatchWrite (..),+ newFireStoreProjectsDatabasesDocumentsBatchWrite,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.batchWrite@ method which the+-- 'FireStoreProjectsDatabasesDocumentsBatchWrite' request conforms to.+type FireStoreProjectsDatabasesDocumentsBatchWriteResource =+ "v1"+ Core.:> Core.Capture "database" Core.Text+ Core.:> "documents:batchWrite"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] BatchWriteRequest+ Core.:> Core.Post '[Core.JSON] BatchWriteResponse++-- | Applies a batch of write operations. The BatchWrite method does not apply the write operations atomically and can apply them out of order. Method does not allow more than one write per document. Each write succeeds or fails independently. See the BatchWriteResponse for the success status of each write. If you require an atomically applied set of writes, use Commit instead.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsBatchWrite' smart constructor.+data FireStoreProjectsDatabasesDocumentsBatchWrite = FireStoreProjectsDatabasesDocumentsBatchWrite+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@.+ database :: Core.Text,+ -- | Multipart request metadata.+ payload :: BatchWriteRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsBatchWrite' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsBatchWrite ::+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@. See 'database'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ BatchWriteRequest ->+ FireStoreProjectsDatabasesDocumentsBatchWrite+newFireStoreProjectsDatabasesDocumentsBatchWrite database payload =+ FireStoreProjectsDatabasesDocumentsBatchWrite+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ database = database,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsBatchWrite+ where+ type+ Rs FireStoreProjectsDatabasesDocumentsBatchWrite =+ BatchWriteResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsBatchWrite =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsBatchWrite {..} =+ go+ database+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsBatchWriteResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/BeginTransaction.hs view
@@ -0,0 +1,129 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.BeginTransaction+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Starts a new transaction.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.beginTransaction@.+module Gogol.FireStore.Projects.Databases.Documents.BeginTransaction+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsBeginTransactionResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsBeginTransaction (..),+ newFireStoreProjectsDatabasesDocumentsBeginTransaction,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.beginTransaction@ method which the+-- 'FireStoreProjectsDatabasesDocumentsBeginTransaction' request conforms to.+type FireStoreProjectsDatabasesDocumentsBeginTransactionResource =+ "v1"+ Core.:> Core.Capture "database" Core.Text+ Core.:> "documents:beginTransaction"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] BeginTransactionRequest+ Core.:> Core.Post '[Core.JSON] BeginTransactionResponse++-- | Starts a new transaction.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsBeginTransaction' smart constructor.+data FireStoreProjectsDatabasesDocumentsBeginTransaction = FireStoreProjectsDatabasesDocumentsBeginTransaction+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@.+ database :: Core.Text,+ -- | Multipart request metadata.+ payload :: BeginTransactionRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsBeginTransaction' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsBeginTransaction ::+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@. See 'database'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ BeginTransactionRequest ->+ FireStoreProjectsDatabasesDocumentsBeginTransaction+newFireStoreProjectsDatabasesDocumentsBeginTransaction+ database+ payload =+ FireStoreProjectsDatabasesDocumentsBeginTransaction+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ database = database,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsBeginTransaction+ where+ type+ Rs FireStoreProjectsDatabasesDocumentsBeginTransaction =+ BeginTransactionResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsBeginTransaction =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient+ FireStoreProjectsDatabasesDocumentsBeginTransaction {..} =+ go+ database+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesDocumentsBeginTransactionResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/Commit.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.Commit+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Commits a transaction, while optionally updating documents.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.commit@.+module Gogol.FireStore.Projects.Databases.Documents.Commit+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsCommitResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsCommit (..),+ newFireStoreProjectsDatabasesDocumentsCommit,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.commit@ method which the+-- 'FireStoreProjectsDatabasesDocumentsCommit' request conforms to.+type FireStoreProjectsDatabasesDocumentsCommitResource =+ "v1"+ Core.:> Core.Capture "database" Core.Text+ Core.:> "documents:commit"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] CommitRequest+ Core.:> Core.Post '[Core.JSON] CommitResponse++-- | Commits a transaction, while optionally updating documents.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsCommit' smart constructor.+data FireStoreProjectsDatabasesDocumentsCommit = FireStoreProjectsDatabasesDocumentsCommit+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@.+ database :: Core.Text,+ -- | Multipart request metadata.+ payload :: CommitRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsCommit' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsCommit ::+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@. See 'database'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ CommitRequest ->+ FireStoreProjectsDatabasesDocumentsCommit+newFireStoreProjectsDatabasesDocumentsCommit database payload =+ FireStoreProjectsDatabasesDocumentsCommit+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ database = database,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsCommit+ where+ type Rs FireStoreProjectsDatabasesDocumentsCommit = CommitResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsCommit =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsCommit {..} =+ go+ database+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsCommitResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/CreateDocument.hs view
@@ -0,0 +1,145 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.CreateDocument+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new document.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.createDocument@.+module Gogol.FireStore.Projects.Databases.Documents.CreateDocument+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsCreateDocumentResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsCreateDocument (..),+ newFireStoreProjectsDatabasesDocumentsCreateDocument,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.createDocument@ method which the+-- 'FireStoreProjectsDatabasesDocumentsCreateDocument' request conforms to.+type FireStoreProjectsDatabasesDocumentsCreateDocumentResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> Core.Capture "collectionId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "documentId" Core.Text+ Core.:> Core.QueryParams "mask.fieldPaths" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] Document+ Core.:> Core.Post '[Core.JSON] Document++-- | Creates a new document.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsCreateDocument' smart constructor.+data FireStoreProjectsDatabasesDocumentsCreateDocument = FireStoreProjectsDatabasesDocumentsCreateDocument+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The collection ID, relative to @parent@, to list. For example: @chatrooms@.+ collectionId :: Core.Text,+ -- | The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service.+ documentId :: (Core.Maybe Core.Text),+ -- | The list of field paths in the mask. See Document.fields for a field path syntax reference.+ maskFieldPaths :: (Core.Maybe [Core.Text]),+ -- | Required. The parent resource. For example: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/chatrooms\/{chatroom_id}@+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: Document,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsCreateDocument' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsCreateDocument ::+ -- | Required. The collection ID, relative to @parent@, to list. For example: @chatrooms@. See 'collectionId'.+ Core.Text ->+ -- | Required. The parent resource. For example: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/chatrooms\/{chatroom_id}@ See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Document ->+ FireStoreProjectsDatabasesDocumentsCreateDocument+newFireStoreProjectsDatabasesDocumentsCreateDocument+ collectionId+ parent+ payload =+ FireStoreProjectsDatabasesDocumentsCreateDocument+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ collectionId = collectionId,+ documentId = Core.Nothing,+ maskFieldPaths = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsCreateDocument+ where+ type+ Rs FireStoreProjectsDatabasesDocumentsCreateDocument =+ Document+ type+ Scopes FireStoreProjectsDatabasesDocumentsCreateDocument =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsCreateDocument {..} =+ go+ parent+ collectionId+ xgafv+ accessToken+ callback+ documentId+ (maskFieldPaths Core.^. Core._Default)+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesDocumentsCreateDocumentResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/Delete.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a document.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.delete@.+module Gogol.FireStore.Projects.Databases.Documents.Delete+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsDeleteResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsDelete (..),+ newFireStoreProjectsDatabasesDocumentsDelete,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.delete@ method which the+-- 'FireStoreProjectsDatabasesDocumentsDelete' request conforms to.+type FireStoreProjectsDatabasesDocumentsDeleteResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "currentDocument.exists" Core.Bool+ Core.:> Core.QueryParam "currentDocument.updateTime" Core.DateTime+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] Empty++-- | Deletes a document.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsDelete' smart constructor.+data FireStoreProjectsDatabasesDocumentsDelete = FireStoreProjectsDatabasesDocumentsDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | When set to @true@, the target document must exist. When set to @false@, the target document must not exist.+ currentDocumentExists :: (Core.Maybe Core.Bool),+ -- | When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.+ currentDocumentUpdateTime :: (Core.Maybe Core.DateTime),+ -- | Required. The resource name of the Document to delete. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsDelete' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsDelete ::+ -- | Required. The resource name of the Document to delete. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesDocumentsDelete+newFireStoreProjectsDatabasesDocumentsDelete name =+ FireStoreProjectsDatabasesDocumentsDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ currentDocumentExists = Core.Nothing,+ currentDocumentUpdateTime = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsDelete+ where+ type Rs FireStoreProjectsDatabasesDocumentsDelete = Empty+ type+ Scopes FireStoreProjectsDatabasesDocumentsDelete =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ currentDocumentExists+ currentDocumentUpdateTime+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsDeleteResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/Get.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets a single document.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.get@.+module Gogol.FireStore.Projects.Databases.Documents.Get+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsGetResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsGet (..),+ newFireStoreProjectsDatabasesDocumentsGet,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.get@ method which the+-- 'FireStoreProjectsDatabasesDocumentsGet' request conforms to.+type FireStoreProjectsDatabasesDocumentsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParams "mask.fieldPaths" Core.Text+ Core.:> Core.QueryParam "readTime" Core.DateTime+ Core.:> Core.QueryParam "transaction" Core.Base64+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Document++-- | Gets a single document.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsGet' smart constructor.+data FireStoreProjectsDatabasesDocumentsGet = FireStoreProjectsDatabasesDocumentsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The list of field paths in the mask. See Document.fields for a field path syntax reference.+ maskFieldPaths :: (Core.Maybe [Core.Text]),+ -- | Required. The resource name of the Document to get. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@.+ name :: Core.Text,+ -- | Reads the version of the document at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.+ readTime :: (Core.Maybe Core.DateTime),+ -- | Reads the document in a transaction.+ transaction :: (Core.Maybe Core.Base64),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsGet' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsGet ::+ -- | Required. The resource name of the Document to get. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesDocumentsGet+newFireStoreProjectsDatabasesDocumentsGet name =+ FireStoreProjectsDatabasesDocumentsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ maskFieldPaths = Core.Nothing,+ name = name,+ readTime = Core.Nothing,+ transaction = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsDatabasesDocumentsGet where+ type Rs FireStoreProjectsDatabasesDocumentsGet = Document+ type+ Scopes FireStoreProjectsDatabasesDocumentsGet =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ (maskFieldPaths Core.^. Core._Default)+ readTime+ transaction+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsGetResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/List.hs view
@@ -0,0 +1,155 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists documents.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.list@.+module Gogol.FireStore.Projects.Databases.Documents.List+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsListResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsList (..),+ newFireStoreProjectsDatabasesDocumentsList,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.list@ method which the+-- 'FireStoreProjectsDatabasesDocumentsList' request conforms to.+type FireStoreProjectsDatabasesDocumentsListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> Core.Capture "collectionId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParams "mask.fieldPaths" Core.Text+ Core.:> Core.QueryParam "orderBy" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "readTime" Core.DateTime+ Core.:> Core.QueryParam "showMissing" Core.Bool+ Core.:> Core.QueryParam "transaction" Core.Base64+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListDocumentsResponse++-- | Lists documents.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsList' smart constructor.+data FireStoreProjectsDatabasesDocumentsList = FireStoreProjectsDatabasesDocumentsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. The collection ID, relative to @parent@, to list. For example: @chatrooms@ or @messages@. This is optional, and when not provided, Firestore will list documents from all collections under the provided @parent@.+ collectionId :: Core.Text,+ -- | The list of field paths in the mask. See Document.fields for a field path syntax reference.+ maskFieldPaths :: (Core.Maybe [Core.Text]),+ -- | Optional. The optional ordering of the documents to return. For example: @priority desc, __name__ desc@. This mirrors the @ORDER BY@ used in Firestore queries but in a string representation. When absent, documents are ordered based on @__name__ ASC@.+ orderBy :: (Core.Maybe Core.Text),+ -- | Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.+ pageSize :: (Core.Maybe Core.Int32),+ -- | Optional. A page token, received from a previous @ListDocuments@ response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of @page_size@) must match the values set in the request that generated the page token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents@ or @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@+ parent :: Core.Text,+ -- | Perform the read at the provided time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.+ readTime :: (Core.Maybe Core.DateTime),+ -- | If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, @create_time@, or @update_time@ set. Requests with @show_missing@ may not specify @where@ or @order_by@.+ showMissing :: (Core.Maybe Core.Bool),+ -- | Perform the read as part of an already active transaction.+ transaction :: (Core.Maybe Core.Base64),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsList' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsList ::+ -- | Optional. The collection ID, relative to @parent@, to list. For example: @chatrooms@ or @messages@. This is optional, and when not provided, Firestore will list documents from all collections under the provided @parent@. See 'collectionId'.+ Core.Text ->+ -- | Required. The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents@ or @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@ See 'parent'.+ Core.Text ->+ FireStoreProjectsDatabasesDocumentsList+newFireStoreProjectsDatabasesDocumentsList collectionId parent =+ FireStoreProjectsDatabasesDocumentsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ collectionId = collectionId,+ maskFieldPaths = Core.Nothing,+ orderBy = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ readTime = Core.Nothing,+ showMissing = Core.Nothing,+ transaction = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsDatabasesDocumentsList where+ type+ Rs FireStoreProjectsDatabasesDocumentsList =+ ListDocumentsResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsList =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsList {..} =+ go+ parent+ collectionId+ xgafv+ accessToken+ callback+ (maskFieldPaths Core.^. Core._Default)+ orderBy+ pageSize+ pageToken+ readTime+ showMissing+ transaction+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsListResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/ListCollectionIds.hs view
@@ -0,0 +1,128 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.ListCollectionIds+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists all the collection IDs underneath a document.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.listCollectionIds@.+module Gogol.FireStore.Projects.Databases.Documents.ListCollectionIds+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsListCollectionIdsResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsListCollectionIds (..),+ newFireStoreProjectsDatabasesDocumentsListCollectionIds,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.listCollectionIds@ method which the+-- 'FireStoreProjectsDatabasesDocumentsListCollectionIds' request conforms to.+type FireStoreProjectsDatabasesDocumentsListCollectionIdsResource =+ "v1"+ Core.:> Core.CaptureMode "parent" "listCollectionIds" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] ListCollectionIdsRequest+ Core.:> Core.Post '[Core.JSON] ListCollectionIdsResponse++-- | Lists all the collection IDs underneath a document.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsListCollectionIds' smart constructor.+data FireStoreProjectsDatabasesDocumentsListCollectionIds = FireStoreProjectsDatabasesDocumentsListCollectionIds+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The parent document. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: ListCollectionIdsRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsListCollectionIds' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsListCollectionIds ::+ -- | Required. The parent document. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@ See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ ListCollectionIdsRequest ->+ FireStoreProjectsDatabasesDocumentsListCollectionIds+newFireStoreProjectsDatabasesDocumentsListCollectionIds+ parent+ payload =+ FireStoreProjectsDatabasesDocumentsListCollectionIds+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsListCollectionIds+ where+ type+ Rs FireStoreProjectsDatabasesDocumentsListCollectionIds =+ ListCollectionIdsResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsListCollectionIds =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient+ FireStoreProjectsDatabasesDocumentsListCollectionIds {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesDocumentsListCollectionIdsResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/ListDocuments.hs view
@@ -0,0 +1,162 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.ListDocuments+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists documents.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.listDocuments@.+module Gogol.FireStore.Projects.Databases.Documents.ListDocuments+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsListDocumentsResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsListDocuments (..),+ newFireStoreProjectsDatabasesDocumentsListDocuments,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.listDocuments@ method which the+-- 'FireStoreProjectsDatabasesDocumentsListDocuments' request conforms to.+type FireStoreProjectsDatabasesDocumentsListDocumentsResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> Core.Capture "collectionId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParams "mask.fieldPaths" Core.Text+ Core.:> Core.QueryParam "orderBy" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "readTime" Core.DateTime+ Core.:> Core.QueryParam "showMissing" Core.Bool+ Core.:> Core.QueryParam "transaction" Core.Base64+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListDocumentsResponse++-- | Lists documents.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsListDocuments' smart constructor.+data FireStoreProjectsDatabasesDocumentsListDocuments = FireStoreProjectsDatabasesDocumentsListDocuments+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. The collection ID, relative to @parent@, to list. For example: @chatrooms@ or @messages@. This is optional, and when not provided, Firestore will list documents from all collections under the provided @parent@.+ collectionId :: Core.Text,+ -- | The list of field paths in the mask. See Document.fields for a field path syntax reference.+ maskFieldPaths :: (Core.Maybe [Core.Text]),+ -- | Optional. The optional ordering of the documents to return. For example: @priority desc, __name__ desc@. This mirrors the @ORDER BY@ used in Firestore queries but in a string representation. When absent, documents are ordered based on @__name__ ASC@.+ orderBy :: (Core.Maybe Core.Text),+ -- | Optional. The maximum number of documents to return in a single response. Firestore may return fewer than this value.+ pageSize :: (Core.Maybe Core.Int32),+ -- | Optional. A page token, received from a previous @ListDocuments@ response. Provide this to retrieve the subsequent page. When paginating, all other parameters (with the exception of @page_size@) must match the values set in the request that generated the page token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents@ or @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@+ parent :: Core.Text,+ -- | Perform the read at the provided time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.+ readTime :: (Core.Maybe Core.DateTime),+ -- | If the list should show missing documents. A document is missing if it does not exist, but there are sub-documents nested underneath it. When true, such missing documents will be returned with a key but will not have fields, @create_time@, or @update_time@ set. Requests with @show_missing@ may not specify @where@ or @order_by@.+ showMissing :: (Core.Maybe Core.Bool),+ -- | Perform the read as part of an already active transaction.+ transaction :: (Core.Maybe Core.Base64),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsListDocuments' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsListDocuments ::+ -- | Optional. The collection ID, relative to @parent@, to list. For example: @chatrooms@ or @messages@. This is optional, and when not provided, Firestore will list documents from all collections under the provided @parent@. See 'collectionId'.+ Core.Text ->+ -- | Required. The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents@ or @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@ See 'parent'.+ Core.Text ->+ FireStoreProjectsDatabasesDocumentsListDocuments+newFireStoreProjectsDatabasesDocumentsListDocuments+ collectionId+ parent =+ FireStoreProjectsDatabasesDocumentsListDocuments+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ collectionId = collectionId,+ maskFieldPaths = Core.Nothing,+ orderBy = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ readTime = Core.Nothing,+ showMissing = Core.Nothing,+ transaction = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsListDocuments+ where+ type+ Rs FireStoreProjectsDatabasesDocumentsListDocuments =+ ListDocumentsResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsListDocuments =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsListDocuments {..} =+ go+ parent+ collectionId+ xgafv+ accessToken+ callback+ (maskFieldPaths Core.^. Core._Default)+ orderBy+ pageSize+ pageToken+ readTime+ showMissing+ transaction+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesDocumentsListDocumentsResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/Listen.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.Listen+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Listens to changes. This method is only available via gRPC or WebChannel (not REST).+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.listen@.+module Gogol.FireStore.Projects.Databases.Documents.Listen+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsListenResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsListen (..),+ newFireStoreProjectsDatabasesDocumentsListen,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.listen@ method which the+-- 'FireStoreProjectsDatabasesDocumentsListen' request conforms to.+type FireStoreProjectsDatabasesDocumentsListenResource =+ "v1"+ Core.:> Core.Capture "database" Core.Text+ Core.:> "documents:listen"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] ListenRequest+ Core.:> Core.Post '[Core.JSON] ListenResponse++-- | Listens to changes. This method is only available via gRPC or WebChannel (not REST).+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsListen' smart constructor.+data FireStoreProjectsDatabasesDocumentsListen = FireStoreProjectsDatabasesDocumentsListen+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@.+ database :: Core.Text,+ -- | Multipart request metadata.+ payload :: ListenRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsListen' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsListen ::+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@. See 'database'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ ListenRequest ->+ FireStoreProjectsDatabasesDocumentsListen+newFireStoreProjectsDatabasesDocumentsListen database payload =+ FireStoreProjectsDatabasesDocumentsListen+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ database = database,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsListen+ where+ type Rs FireStoreProjectsDatabasesDocumentsListen = ListenResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsListen =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsListen {..} =+ go+ database+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsListenResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/PartitionQuery.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.PartitionQuery+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Partitions a query by returning partition cursors that can be used to run the query in parallel. The returned partition cursors are split points that can be used by RunQuery as starting\/end points for the query results.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.partitionQuery@.+module Gogol.FireStore.Projects.Databases.Documents.PartitionQuery+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsPartitionQueryResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsPartitionQuery (..),+ newFireStoreProjectsDatabasesDocumentsPartitionQuery,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.partitionQuery@ method which the+-- 'FireStoreProjectsDatabasesDocumentsPartitionQuery' request conforms to.+type FireStoreProjectsDatabasesDocumentsPartitionQueryResource =+ "v1"+ Core.:> Core.CaptureMode "parent" "partitionQuery" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] PartitionQueryRequest+ Core.:> Core.Post '[Core.JSON] PartitionQueryResponse++-- | Partitions a query by returning partition cursors that can be used to run the query in parallel. The returned partition cursors are split points that can be used by RunQuery as starting\/end points for the query results.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsPartitionQuery' smart constructor.+data FireStoreProjectsDatabasesDocumentsPartitionQuery = FireStoreProjectsDatabasesDocumentsPartitionQuery+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@. Document resource names are not supported; only database resource names can be specified.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: PartitionQueryRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsPartitionQuery' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsPartitionQuery ::+ -- | Required. The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@. Document resource names are not supported; only database resource names can be specified. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ PartitionQueryRequest ->+ FireStoreProjectsDatabasesDocumentsPartitionQuery+newFireStoreProjectsDatabasesDocumentsPartitionQuery parent payload =+ FireStoreProjectsDatabasesDocumentsPartitionQuery+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsPartitionQuery+ where+ type+ Rs FireStoreProjectsDatabasesDocumentsPartitionQuery =+ PartitionQueryResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsPartitionQuery =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsPartitionQuery {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesDocumentsPartitionQueryResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/Patch.hs view
@@ -0,0 +1,141 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.Patch+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates or inserts a document.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.patch@.+module Gogol.FireStore.Projects.Databases.Documents.Patch+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsPatchResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsPatch (..),+ newFireStoreProjectsDatabasesDocumentsPatch,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.patch@ method which the+-- 'FireStoreProjectsDatabasesDocumentsPatch' request conforms to.+type FireStoreProjectsDatabasesDocumentsPatchResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "currentDocument.exists" Core.Bool+ Core.:> Core.QueryParam "currentDocument.updateTime" Core.DateTime+ Core.:> Core.QueryParams "mask.fieldPaths" Core.Text+ Core.:> Core.QueryParams "updateMask.fieldPaths" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] Document+ Core.:> Core.Patch '[Core.JSON] Document++-- | Updates or inserts a document.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsPatch' smart constructor.+data FireStoreProjectsDatabasesDocumentsPatch = FireStoreProjectsDatabasesDocumentsPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | When set to @true@, the target document must exist. When set to @false@, the target document must not exist.+ currentDocumentExists :: (Core.Maybe Core.Bool),+ -- | When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.+ currentDocumentUpdateTime :: (Core.Maybe Core.DateTime),+ -- | The list of field paths in the mask. See Document.fields for a field path syntax reference.+ maskFieldPaths :: (Core.Maybe [Core.Text]),+ -- | The resource name of the document, for example @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: Document,+ -- | The list of field paths in the mask. See Document.fields for a field path syntax reference.+ updateMaskFieldPaths :: (Core.Maybe [Core.Text]),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsPatch' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsPatch ::+ -- | The resource name of the document, for example @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Document ->+ FireStoreProjectsDatabasesDocumentsPatch+newFireStoreProjectsDatabasesDocumentsPatch name payload =+ FireStoreProjectsDatabasesDocumentsPatch+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ currentDocumentExists = Core.Nothing,+ currentDocumentUpdateTime = Core.Nothing,+ maskFieldPaths = Core.Nothing,+ name = name,+ payload = payload,+ updateMaskFieldPaths = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsPatch+ where+ type Rs FireStoreProjectsDatabasesDocumentsPatch = Document+ type+ Scopes FireStoreProjectsDatabasesDocumentsPatch =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ currentDocumentExists+ currentDocumentUpdateTime+ (maskFieldPaths Core.^. Core._Default)+ (updateMaskFieldPaths Core.^. Core._Default)+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsPatchResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/Rollback.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.Rollback+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Rolls back a transaction.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.rollback@.+module Gogol.FireStore.Projects.Databases.Documents.Rollback+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsRollbackResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsRollback (..),+ newFireStoreProjectsDatabasesDocumentsRollback,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.rollback@ method which the+-- 'FireStoreProjectsDatabasesDocumentsRollback' request conforms to.+type FireStoreProjectsDatabasesDocumentsRollbackResource =+ "v1"+ Core.:> Core.Capture "database" Core.Text+ Core.:> "documents:rollback"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] RollbackRequest+ Core.:> Core.Post '[Core.JSON] Empty++-- | Rolls back a transaction.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsRollback' smart constructor.+data FireStoreProjectsDatabasesDocumentsRollback = FireStoreProjectsDatabasesDocumentsRollback+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@.+ database :: Core.Text,+ -- | Multipart request metadata.+ payload :: RollbackRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsRollback' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsRollback ::+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@. See 'database'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ RollbackRequest ->+ FireStoreProjectsDatabasesDocumentsRollback+newFireStoreProjectsDatabasesDocumentsRollback database payload =+ FireStoreProjectsDatabasesDocumentsRollback+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ database = database,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsRollback+ where+ type Rs FireStoreProjectsDatabasesDocumentsRollback = Empty+ type+ Scopes FireStoreProjectsDatabasesDocumentsRollback =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsRollback {..} =+ go+ database+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsRollbackResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/RunAggregationQuery.hs view
@@ -0,0 +1,128 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.RunAggregationQuery+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Runs an aggregation query. Rather than producing Document results like Firestore.RunQuery, this API allows running an aggregation to produce a series of AggregationResult server-side. High-Level Example: @-- Return the number of documents in table given a filter. SELECT COUNT(*) FROM ( SELECT * FROM k where a = true );@+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.runAggregationQuery@.+module Gogol.FireStore.Projects.Databases.Documents.RunAggregationQuery+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsRunAggregationQueryResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsRunAggregationQuery (..),+ newFireStoreProjectsDatabasesDocumentsRunAggregationQuery,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.runAggregationQuery@ method which the+-- 'FireStoreProjectsDatabasesDocumentsRunAggregationQuery' request conforms to.+type FireStoreProjectsDatabasesDocumentsRunAggregationQueryResource =+ "v1"+ Core.:> Core.CaptureMode "parent" "runAggregationQuery" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] RunAggregationQueryRequest+ Core.:> Core.Post '[Core.JSON] RunAggregationQueryResponse++-- | Runs an aggregation query. Rather than producing Document results like Firestore.RunQuery, this API allows running an aggregation to produce a series of AggregationResult server-side. High-Level Example: @-- Return the number of documents in table given a filter. SELECT COUNT(*) FROM ( SELECT * FROM k where a = true );@+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsRunAggregationQuery' smart constructor.+data FireStoreProjectsDatabasesDocumentsRunAggregationQuery = FireStoreProjectsDatabasesDocumentsRunAggregationQuery+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents@ or @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: RunAggregationQueryRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsRunAggregationQuery' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsRunAggregationQuery ::+ -- | Required. The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents@ or @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@ See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ RunAggregationQueryRequest ->+ FireStoreProjectsDatabasesDocumentsRunAggregationQuery+newFireStoreProjectsDatabasesDocumentsRunAggregationQuery+ parent+ payload =+ FireStoreProjectsDatabasesDocumentsRunAggregationQuery+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsRunAggregationQuery+ where+ type+ Rs FireStoreProjectsDatabasesDocumentsRunAggregationQuery =+ RunAggregationQueryResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsRunAggregationQuery =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient+ FireStoreProjectsDatabasesDocumentsRunAggregationQuery {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ FireStoreProjectsDatabasesDocumentsRunAggregationQueryResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/RunQuery.hs view
@@ -0,0 +1,123 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.RunQuery+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Runs a query.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.runQuery@.+module Gogol.FireStore.Projects.Databases.Documents.RunQuery+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsRunQueryResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsRunQuery (..),+ newFireStoreProjectsDatabasesDocumentsRunQuery,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.runQuery@ method which the+-- 'FireStoreProjectsDatabasesDocumentsRunQuery' request conforms to.+type FireStoreProjectsDatabasesDocumentsRunQueryResource =+ "v1"+ Core.:> Core.CaptureMode "parent" "runQuery" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] RunQueryRequest+ Core.:> Core.Post '[Core.JSON] RunQueryResponse++-- | Runs a query.+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsRunQuery' smart constructor.+data FireStoreProjectsDatabasesDocumentsRunQuery = FireStoreProjectsDatabasesDocumentsRunQuery+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents@ or @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: RunQueryRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsRunQuery' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsRunQuery ::+ -- | Required. The parent resource name. In the format: @projects\/{project_id}\/databases\/{database_id}\/documents@ or @projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}@. For example: @projects\/my-project\/databases\/my-database\/documents@ or @projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom@ See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ RunQueryRequest ->+ FireStoreProjectsDatabasesDocumentsRunQuery+newFireStoreProjectsDatabasesDocumentsRunQuery parent payload =+ FireStoreProjectsDatabasesDocumentsRunQuery+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsRunQuery+ where+ type+ Rs FireStoreProjectsDatabasesDocumentsRunQuery =+ RunQueryResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsRunQuery =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsRunQuery {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsRunQueryResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Documents/Write.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Documents.Write+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Streams batches of document updates and deletes, in order. This method is only available via gRPC or WebChannel (not REST).+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.write@.+module Gogol.FireStore.Projects.Databases.Documents.Write+ ( -- * Resource+ FireStoreProjectsDatabasesDocumentsWriteResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesDocumentsWrite (..),+ newFireStoreProjectsDatabasesDocumentsWrite,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.documents.write@ method which the+-- 'FireStoreProjectsDatabasesDocumentsWrite' request conforms to.+type FireStoreProjectsDatabasesDocumentsWriteResource =+ "v1"+ Core.:> Core.Capture "database" Core.Text+ Core.:> "documents:write"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] WriteRequest+ Core.:> Core.Post '[Core.JSON] WriteResponse++-- | Streams batches of document updates and deletes, in order. This method is only available via gRPC or WebChannel (not REST).+--+-- /See:/ 'newFireStoreProjectsDatabasesDocumentsWrite' smart constructor.+data FireStoreProjectsDatabasesDocumentsWrite = FireStoreProjectsDatabasesDocumentsWrite+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@. This is only required in the first message.+ database :: Core.Text,+ -- | Multipart request metadata.+ payload :: WriteRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesDocumentsWrite' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesDocumentsWrite ::+ -- | Required. The database name. In the format: @projects\/{project_id}\/databases\/{database_id}@. This is only required in the first message. See 'database'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ WriteRequest ->+ FireStoreProjectsDatabasesDocumentsWrite+newFireStoreProjectsDatabasesDocumentsWrite database payload =+ FireStoreProjectsDatabasesDocumentsWrite+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ database = database,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesDocumentsWrite+ where+ type Rs FireStoreProjectsDatabasesDocumentsWrite = WriteResponse+ type+ Scopes FireStoreProjectsDatabasesDocumentsWrite =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesDocumentsWrite {..} =+ go+ database+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesDocumentsWriteResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/ExportDocuments.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.ExportDocuments+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Exports a copy of all or a subset of documents from Google Cloud Firestore to another storage system, such as Google Cloud Storage. Recent updates to documents 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. For more details on export behavior and output format, refer to: https:\/\/cloud.google.com\/firestore\/docs\/manage-data\/export-import+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.exportDocuments@.+module Gogol.FireStore.Projects.Databases.ExportDocuments+ ( -- * Resource+ FireStoreProjectsDatabasesExportDocumentsResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesExportDocuments (..),+ newFireStoreProjectsDatabasesExportDocuments,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.exportDocuments@ method which the+-- 'FireStoreProjectsDatabasesExportDocuments' request conforms to.+type FireStoreProjectsDatabasesExportDocumentsResource =+ "v1"+ Core.:> Core.CaptureMode "name" "exportDocuments" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody+ '[Core.JSON]+ GoogleFirestoreAdminV1ExportDocumentsRequest+ Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Exports a copy of all or a subset of documents from Google Cloud Firestore to another storage system, such as Google Cloud Storage. Recent updates to documents 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. For more details on export behavior and output format, refer to: https:\/\/cloud.google.com\/firestore\/docs\/manage-data\/export-import+--+-- /See:/ 'newFireStoreProjectsDatabasesExportDocuments' smart constructor.+data FireStoreProjectsDatabasesExportDocuments = FireStoreProjectsDatabasesExportDocuments+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. Database to export. Should be of the form: @projects\/{project_id}\/databases\/{database_id}@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleFirestoreAdminV1ExportDocumentsRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesExportDocuments' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesExportDocuments ::+ -- | Required. Database to export. Should be of the form: @projects\/{project_id}\/databases\/{database_id}@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleFirestoreAdminV1ExportDocumentsRequest ->+ FireStoreProjectsDatabasesExportDocuments+newFireStoreProjectsDatabasesExportDocuments name payload =+ FireStoreProjectsDatabasesExportDocuments+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesExportDocuments+ where+ type+ Rs FireStoreProjectsDatabasesExportDocuments =+ GoogleLongrunningOperation+ type+ Scopes FireStoreProjectsDatabasesExportDocuments =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesExportDocuments {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesExportDocumentsResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Get.hs view
@@ -0,0 +1,111 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets information about a database.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.get@.+module Gogol.FireStore.Projects.Databases.Get+ ( -- * Resource+ FireStoreProjectsDatabasesGetResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesGet (..),+ newFireStoreProjectsDatabasesGet,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.get@ method which the+-- 'FireStoreProjectsDatabasesGet' request conforms to.+type FireStoreProjectsDatabasesGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleFirestoreAdminV1Database++-- | Gets information about a database.+--+-- /See:/ 'newFireStoreProjectsDatabasesGet' smart constructor.+data FireStoreProjectsDatabasesGet = FireStoreProjectsDatabasesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. A name of the form @projects\/{project_id}\/databases\/{database_id}@+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesGet' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesGet ::+ -- | Required. A name of the form @projects\/{project_id}\/databases\/{database_id}@ See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesGet+newFireStoreProjectsDatabasesGet name =+ FireStoreProjectsDatabasesGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsDatabasesGet where+ type+ Rs FireStoreProjectsDatabasesGet =+ GoogleFirestoreAdminV1Database+ type+ Scopes FireStoreProjectsDatabasesGet =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy FireStoreProjectsDatabasesGetResource)+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/ImportDocuments.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.ImportDocuments+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- 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:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.importDocuments@.+module Gogol.FireStore.Projects.Databases.ImportDocuments+ ( -- * Resource+ FireStoreProjectsDatabasesImportDocumentsResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesImportDocuments (..),+ newFireStoreProjectsDatabasesImportDocuments,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.importDocuments@ method which the+-- 'FireStoreProjectsDatabasesImportDocuments' request conforms to.+type FireStoreProjectsDatabasesImportDocumentsResource =+ "v1"+ Core.:> Core.CaptureMode "name" "importDocuments" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody+ '[Core.JSON]+ GoogleFirestoreAdminV1ImportDocumentsRequest+ Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | 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:/ 'newFireStoreProjectsDatabasesImportDocuments' smart constructor.+data FireStoreProjectsDatabasesImportDocuments = FireStoreProjectsDatabasesImportDocuments+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. Database to import into. Should be of the form: @projects\/{project_id}\/databases\/{database_id}@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleFirestoreAdminV1ImportDocumentsRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesImportDocuments' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesImportDocuments ::+ -- | Required. Database to import into. Should be of the form: @projects\/{project_id}\/databases\/{database_id}@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleFirestoreAdminV1ImportDocumentsRequest ->+ FireStoreProjectsDatabasesImportDocuments+newFireStoreProjectsDatabasesImportDocuments name payload =+ FireStoreProjectsDatabasesImportDocuments+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesImportDocuments+ where+ type+ Rs FireStoreProjectsDatabasesImportDocuments =+ GoogleLongrunningOperation+ type+ Scopes FireStoreProjectsDatabasesImportDocuments =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesImportDocuments {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesImportDocumentsResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/List.hs view
@@ -0,0 +1,117 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- List all the databases in the project.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.list@.+module Gogol.FireStore.Projects.Databases.List+ ( -- * Resource+ FireStoreProjectsDatabasesListResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesList (..),+ newFireStoreProjectsDatabasesList,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.list@ method which the+-- 'FireStoreProjectsDatabasesList' request conforms to.+type FireStoreProjectsDatabasesListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "databases"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "showDeleted" Core.Bool+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleFirestoreAdminV1ListDatabasesResponse++-- | List all the databases in the project.+--+-- /See:/ 'newFireStoreProjectsDatabasesList' smart constructor.+data FireStoreProjectsDatabasesList = FireStoreProjectsDatabasesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. A parent name of the form @projects\/{project_id}@+ parent :: Core.Text,+ -- | If true, also returns deleted resources.+ showDeleted :: (Core.Maybe Core.Bool),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesList' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesList ::+ -- | Required. A parent name of the form @projects\/{project_id}@ See 'parent'.+ Core.Text ->+ FireStoreProjectsDatabasesList+newFireStoreProjectsDatabasesList parent =+ FireStoreProjectsDatabasesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ showDeleted = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsDatabasesList where+ type+ Rs FireStoreProjectsDatabasesList =+ GoogleFirestoreAdminV1ListDatabasesResponse+ type+ Scopes FireStoreProjectsDatabasesList =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ showDeleted+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy FireStoreProjectsDatabasesListResource)+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Operations/Cancel.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Operations.Cancel+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn\'t support this method, it returns @google.rpc.Code.UNIMPLEMENTED@. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of @1@, corresponding to @Code.CANCELLED@.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.operations.cancel@.+module Gogol.FireStore.Projects.Databases.Operations.Cancel+ ( -- * Resource+ FireStoreProjectsDatabasesOperationsCancelResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesOperationsCancel (..),+ newFireStoreProjectsDatabasesOperationsCancel,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.operations.cancel@ method which the+-- 'FireStoreProjectsDatabasesOperationsCancel' request conforms to.+type FireStoreProjectsDatabasesOperationsCancelResource =+ "v1"+ Core.:> Core.CaptureMode "name" "cancel" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] GoogleLongrunningCancelOperationRequest+ Core.:> Core.Post '[Core.JSON] Empty++-- | Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn\'t support this method, it returns @google.rpc.Code.UNIMPLEMENTED@. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of @1@, corresponding to @Code.CANCELLED@.+--+-- /See:/ 'newFireStoreProjectsDatabasesOperationsCancel' smart constructor.+data FireStoreProjectsDatabasesOperationsCancel = FireStoreProjectsDatabasesOperationsCancel+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the operation resource to be cancelled.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleLongrunningCancelOperationRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesOperationsCancel' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesOperationsCancel ::+ -- | The name of the operation resource to be cancelled. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleLongrunningCancelOperationRequest ->+ FireStoreProjectsDatabasesOperationsCancel+newFireStoreProjectsDatabasesOperationsCancel name payload =+ FireStoreProjectsDatabasesOperationsCancel+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesOperationsCancel+ where+ type Rs FireStoreProjectsDatabasesOperationsCancel = Empty+ type+ Scopes FireStoreProjectsDatabasesOperationsCancel =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesOperationsCancel {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesOperationsCancelResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Operations/Delete.hs view
@@ -0,0 +1,114 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Operations.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn\'t support this method, it returns @google.rpc.Code.UNIMPLEMENTED@.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.operations.delete@.+module Gogol.FireStore.Projects.Databases.Operations.Delete+ ( -- * Resource+ FireStoreProjectsDatabasesOperationsDeleteResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesOperationsDelete (..),+ newFireStoreProjectsDatabasesOperationsDelete,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.operations.delete@ method which the+-- 'FireStoreProjectsDatabasesOperationsDelete' request conforms to.+type FireStoreProjectsDatabasesOperationsDeleteResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] Empty++-- | Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn\'t support this method, it returns @google.rpc.Code.UNIMPLEMENTED@.+--+-- /See:/ 'newFireStoreProjectsDatabasesOperationsDelete' smart constructor.+data FireStoreProjectsDatabasesOperationsDelete = FireStoreProjectsDatabasesOperationsDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the operation resource to be deleted.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesOperationsDelete' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesOperationsDelete ::+ -- | The name of the operation resource to be deleted. See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesOperationsDelete+newFireStoreProjectsDatabasesOperationsDelete name =+ FireStoreProjectsDatabasesOperationsDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesOperationsDelete+ where+ type Rs FireStoreProjectsDatabasesOperationsDelete = Empty+ type+ Scopes FireStoreProjectsDatabasesOperationsDelete =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesOperationsDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesOperationsDeleteResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Operations/Get.hs view
@@ -0,0 +1,113 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Operations.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.operations.get@.+module Gogol.FireStore.Projects.Databases.Operations.Get+ ( -- * Resource+ FireStoreProjectsDatabasesOperationsGetResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesOperationsGet (..),+ newFireStoreProjectsDatabasesOperationsGet,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.operations.get@ method which the+-- 'FireStoreProjectsDatabasesOperationsGet' request conforms to.+type FireStoreProjectsDatabasesOperationsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleLongrunningOperation++-- | Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.+--+-- /See:/ 'newFireStoreProjectsDatabasesOperationsGet' smart constructor.+data FireStoreProjectsDatabasesOperationsGet = FireStoreProjectsDatabasesOperationsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the operation resource.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesOperationsGet' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesOperationsGet ::+ -- | The name of the operation resource. See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesOperationsGet+newFireStoreProjectsDatabasesOperationsGet name =+ FireStoreProjectsDatabasesOperationsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsDatabasesOperationsGet where+ type+ Rs FireStoreProjectsDatabasesOperationsGet =+ GoogleLongrunningOperation+ type+ Scopes FireStoreProjectsDatabasesOperationsGet =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesOperationsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesOperationsGetResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Operations/List.hs view
@@ -0,0 +1,132 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Operations.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists operations that match the specified filter in the request. If the server doesn\'t support this method, it returns @UNIMPLEMENTED@.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.operations.list@.+module Gogol.FireStore.Projects.Databases.Operations.List+ ( -- * Resource+ FireStoreProjectsDatabasesOperationsListResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesOperationsList (..),+ newFireStoreProjectsDatabasesOperationsList,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.operations.list@ method which the+-- 'FireStoreProjectsDatabasesOperationsList' request conforms to.+type FireStoreProjectsDatabasesOperationsListResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> "operations"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleLongrunningListOperationsResponse++-- | Lists operations that match the specified filter in the request. If the server doesn\'t support this method, it returns @UNIMPLEMENTED@.+--+-- /See:/ 'newFireStoreProjectsDatabasesOperationsList' smart constructor.+data FireStoreProjectsDatabasesOperationsList = FireStoreProjectsDatabasesOperationsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The standard list filter.+ filter :: (Core.Maybe Core.Text),+ -- | The name of the operation\'s parent resource.+ name :: Core.Text,+ -- | The standard list page size.+ pageSize :: (Core.Maybe Core.Int32),+ -- | The standard list page token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesOperationsList' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesOperationsList ::+ -- | The name of the operation\'s parent resource. See 'name'.+ Core.Text ->+ FireStoreProjectsDatabasesOperationsList+newFireStoreProjectsDatabasesOperationsList name =+ FireStoreProjectsDatabasesOperationsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ name = name,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ FireStoreProjectsDatabasesOperationsList+ where+ type+ Rs FireStoreProjectsDatabasesOperationsList =+ GoogleLongrunningListOperationsResponse+ type+ Scopes FireStoreProjectsDatabasesOperationsList =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesOperationsList {..} =+ go+ name+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesOperationsListResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Patch.hs view
@@ -0,0 +1,123 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Patch+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a database.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.patch@.+module Gogol.FireStore.Projects.Databases.Patch+ ( -- * Resource+ FireStoreProjectsDatabasesPatchResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesPatch (..),+ newFireStoreProjectsDatabasesPatch,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.patch@ method which the+-- 'FireStoreProjectsDatabasesPatch' request conforms to.+type FireStoreProjectsDatabasesPatchResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "updateMask" Core.FieldMask+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] GoogleFirestoreAdminV1Database+ Core.:> Core.Patch '[Core.JSON] GoogleLongrunningOperation++-- | Updates a database.+--+-- /See:/ 'newFireStoreProjectsDatabasesPatch' smart constructor.+data FireStoreProjectsDatabasesPatch = FireStoreProjectsDatabasesPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The resource name of the Database. Format: @projects\/{project}\/databases\/{database}@+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleFirestoreAdminV1Database,+ -- | The list of fields to be updated.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesPatch' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesPatch ::+ -- | The resource name of the Database. Format: @projects\/{project}\/databases\/{database}@ See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleFirestoreAdminV1Database ->+ FireStoreProjectsDatabasesPatch+newFireStoreProjectsDatabasesPatch name payload =+ FireStoreProjectsDatabasesPatch+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsDatabasesPatch where+ type+ Rs FireStoreProjectsDatabasesPatch =+ GoogleLongrunningOperation+ type+ Scopes FireStoreProjectsDatabasesPatch =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy FireStoreProjectsDatabasesPatchResource)+ Core.mempty
+ gen/Gogol/FireStore/Projects/Databases/Restore.hs view
@@ -0,0 +1,123 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Databases.Restore+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new database by restoring from an existing backup. The new database must be in the same cloud region or multi-region location as the existing backup. This behaves similar to FirestoreAdmin.CreateDatabase except instead of creating a new empty database, a new database is created with the database type, index configuration, and documents from an existing backup. The long-running operation can be used to track the progress of the restore, with the Operation\'s metadata field type being the RestoreDatabaseMetadata. The response type is the Database if the restore was successful. The new database is not readable or writeable until the LRO has completed.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.restore@.+module Gogol.FireStore.Projects.Databases.Restore+ ( -- * Resource+ FireStoreProjectsDatabasesRestoreResource,++ -- ** Constructing a Request+ FireStoreProjectsDatabasesRestore (..),+ newFireStoreProjectsDatabasesRestore,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.databases.restore@ method which the+-- 'FireStoreProjectsDatabasesRestore' request conforms to.+type FireStoreProjectsDatabasesRestoreResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "databases:restore"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody+ '[Core.JSON]+ GoogleFirestoreAdminV1RestoreDatabaseRequest+ Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Creates a new database by restoring from an existing backup. The new database must be in the same cloud region or multi-region location as the existing backup. This behaves similar to FirestoreAdmin.CreateDatabase except instead of creating a new empty database, a new database is created with the database type, index configuration, and documents from an existing backup. The long-running operation can be used to track the progress of the restore, with the Operation\'s metadata field type being the RestoreDatabaseMetadata. The response type is the Database if the restore was successful. The new database is not readable or writeable until the LRO has completed.+--+-- /See:/ 'newFireStoreProjectsDatabasesRestore' smart constructor.+data FireStoreProjectsDatabasesRestore = FireStoreProjectsDatabasesRestore+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The project to restore the database in. Format is @projects\/{project_id}@.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: GoogleFirestoreAdminV1RestoreDatabaseRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsDatabasesRestore' with the minimum fields required to make a request.+newFireStoreProjectsDatabasesRestore ::+ -- | Required. The project to restore the database in. Format is @projects\/{project_id}@. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GoogleFirestoreAdminV1RestoreDatabaseRequest ->+ FireStoreProjectsDatabasesRestore+newFireStoreProjectsDatabasesRestore parent payload =+ FireStoreProjectsDatabasesRestore+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsDatabasesRestore where+ type+ Rs FireStoreProjectsDatabasesRestore =+ GoogleLongrunningOperation+ type+ Scopes FireStoreProjectsDatabasesRestore =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsDatabasesRestore {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsDatabasesRestoreResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Locations/Backups/Delete.hs view
@@ -0,0 +1,111 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Locations.Backups.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a backup.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.locations.backups.delete@.+module Gogol.FireStore.Projects.Locations.Backups.Delete+ ( -- * Resource+ FireStoreProjectsLocationsBackupsDeleteResource,++ -- ** Constructing a Request+ FireStoreProjectsLocationsBackupsDelete (..),+ newFireStoreProjectsLocationsBackupsDelete,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.locations.backups.delete@ method which the+-- 'FireStoreProjectsLocationsBackupsDelete' request conforms to.+type FireStoreProjectsLocationsBackupsDeleteResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] Empty++-- | Deletes a backup.+--+-- /See:/ 'newFireStoreProjectsLocationsBackupsDelete' smart constructor.+data FireStoreProjectsLocationsBackupsDelete = FireStoreProjectsLocationsBackupsDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. Name of the backup to delete. format is @projects\/{project}\/locations\/{location}\/backups\/{backup}@.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsLocationsBackupsDelete' with the minimum fields required to make a request.+newFireStoreProjectsLocationsBackupsDelete ::+ -- | Required. Name of the backup to delete. format is @projects\/{project}\/locations\/{location}\/backups\/{backup}@. See 'name'.+ Core.Text ->+ FireStoreProjectsLocationsBackupsDelete+newFireStoreProjectsLocationsBackupsDelete name =+ FireStoreProjectsLocationsBackupsDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsLocationsBackupsDelete where+ type Rs FireStoreProjectsLocationsBackupsDelete = Empty+ type+ Scopes FireStoreProjectsLocationsBackupsDelete =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsLocationsBackupsDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsLocationsBackupsDeleteResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Locations/Backups/Get.hs view
@@ -0,0 +1,113 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Locations.Backups.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets information about a backup.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.locations.backups.get@.+module Gogol.FireStore.Projects.Locations.Backups.Get+ ( -- * Resource+ FireStoreProjectsLocationsBackupsGetResource,++ -- ** Constructing a Request+ FireStoreProjectsLocationsBackupsGet (..),+ newFireStoreProjectsLocationsBackupsGet,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.locations.backups.get@ method which the+-- 'FireStoreProjectsLocationsBackupsGet' request conforms to.+type FireStoreProjectsLocationsBackupsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleFirestoreAdminV1Backup++-- | Gets information about a backup.+--+-- /See:/ 'newFireStoreProjectsLocationsBackupsGet' smart constructor.+data FireStoreProjectsLocationsBackupsGet = FireStoreProjectsLocationsBackupsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. Name of the backup to fetch. Format is @projects\/{project}\/locations\/{location}\/backups\/{backup}@.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsLocationsBackupsGet' with the minimum fields required to make a request.+newFireStoreProjectsLocationsBackupsGet ::+ -- | Required. Name of the backup to fetch. Format is @projects\/{project}\/locations\/{location}\/backups\/{backup}@. See 'name'.+ Core.Text ->+ FireStoreProjectsLocationsBackupsGet+newFireStoreProjectsLocationsBackupsGet name =+ FireStoreProjectsLocationsBackupsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsLocationsBackupsGet where+ type+ Rs FireStoreProjectsLocationsBackupsGet =+ GoogleFirestoreAdminV1Backup+ type+ Scopes FireStoreProjectsLocationsBackupsGet =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsLocationsBackupsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsLocationsBackupsGetResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Locations/Backups/List.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Locations.Backups.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists all the backups.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.locations.backups.list@.+module Gogol.FireStore.Projects.Locations.Backups.List+ ( -- * Resource+ FireStoreProjectsLocationsBackupsListResource,++ -- ** Constructing a Request+ FireStoreProjectsLocationsBackupsList (..),+ newFireStoreProjectsLocationsBackupsList,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.locations.backups.list@ method which the+-- 'FireStoreProjectsLocationsBackupsList' request conforms to.+type FireStoreProjectsLocationsBackupsListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "backups"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GoogleFirestoreAdminV1ListBackupsResponse++-- | Lists all the backups.+--+-- /See:/ 'newFireStoreProjectsLocationsBackupsList' smart constructor.+data FireStoreProjectsLocationsBackupsList = FireStoreProjectsLocationsBackupsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | An expression that filters the list of returned backups. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: @\<@, @>@, @\<=@, @>=@, @!=@, @=@, or @:@. Colon @:@ is the contains operator. Filter rules are not case sensitive. The following fields in the Backup are eligible for filtering: * @database_uid@ (supports @=@ only)+ filter :: (Core.Maybe Core.Text),+ -- | Required. The location to list backups from. Format is @projects\/{project}\/locations\/{location}@. Use @{location} = \'-\'@ to list backups from all locations for the given project. This allows listing backups from a single location or from all locations.+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsLocationsBackupsList' with the minimum fields required to make a request.+newFireStoreProjectsLocationsBackupsList ::+ -- | Required. The location to list backups from. Format is @projects\/{project}\/locations\/{location}@. Use @{location} = \'-\'@ to list backups from all locations for the given project. This allows listing backups from a single location or from all locations. See 'parent'.+ Core.Text ->+ FireStoreProjectsLocationsBackupsList+newFireStoreProjectsLocationsBackupsList parent =+ FireStoreProjectsLocationsBackupsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsLocationsBackupsList where+ type+ Rs FireStoreProjectsLocationsBackupsList =+ GoogleFirestoreAdminV1ListBackupsResponse+ type+ Scopes FireStoreProjectsLocationsBackupsList =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsLocationsBackupsList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy FireStoreProjectsLocationsBackupsListResource+ )+ Core.mempty
+ gen/Gogol/FireStore/Projects/Locations/Get.hs view
@@ -0,0 +1,109 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Locations.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets information about a location.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.locations.get@.+module Gogol.FireStore.Projects.Locations.Get+ ( -- * Resource+ FireStoreProjectsLocationsGetResource,++ -- ** Constructing a Request+ FireStoreProjectsLocationsGet (..),+ newFireStoreProjectsLocationsGet,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.locations.get@ method which the+-- 'FireStoreProjectsLocationsGet' request conforms to.+type FireStoreProjectsLocationsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Location++-- | Gets information about a location.+--+-- /See:/ 'newFireStoreProjectsLocationsGet' smart constructor.+data FireStoreProjectsLocationsGet = FireStoreProjectsLocationsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Resource name for the location.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsLocationsGet' with the minimum fields required to make a request.+newFireStoreProjectsLocationsGet ::+ -- | Resource name for the location. See 'name'.+ Core.Text ->+ FireStoreProjectsLocationsGet+newFireStoreProjectsLocationsGet name =+ FireStoreProjectsLocationsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsLocationsGet where+ type Rs FireStoreProjectsLocationsGet = Location+ type+ Scopes FireStoreProjectsLocationsGet =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsLocationsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy FireStoreProjectsLocationsGetResource)+ Core.mempty
+ gen/Gogol/FireStore/Projects/Locations/List.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Projects.Locations.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists information about the supported locations for this service.+--+-- /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.locations.list@.+module Gogol.FireStore.Projects.Locations.List+ ( -- * Resource+ FireStoreProjectsLocationsListResource,++ -- ** Constructing a Request+ FireStoreProjectsLocationsList (..),+ newFireStoreProjectsLocationsList,+ )+where++import Gogol.FireStore.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @firestore.projects.locations.list@ method which the+-- 'FireStoreProjectsLocationsList' request conforms to.+type FireStoreProjectsLocationsListResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> "locations"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListLocationsResponse++-- | Lists information about the supported locations for this service.+--+-- /See:/ 'newFireStoreProjectsLocationsList' smart constructor.+data FireStoreProjectsLocationsList = FireStoreProjectsLocationsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | A filter to narrow down results to a preferred subset. The filtering language accepts strings like @\"displayName=tokyo\"@, and is documented in more detail in <https://google.aip.dev/160 AIP-160>.+ filter :: (Core.Maybe Core.Text),+ -- | The resource that owns the locations collection, if applicable.+ name :: Core.Text,+ -- | The maximum number of results to return. If not set, the service selects a default.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A page token received from the @next_page_token@ field in the response. Send that page token to receive the subsequent page.+ pageToken :: (Core.Maybe Core.Text),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FireStoreProjectsLocationsList' with the minimum fields required to make a request.+newFireStoreProjectsLocationsList ::+ -- | The resource that owns the locations collection, if applicable. See 'name'.+ Core.Text ->+ FireStoreProjectsLocationsList+newFireStoreProjectsLocationsList name =+ FireStoreProjectsLocationsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ name = name,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest FireStoreProjectsLocationsList where+ type Rs FireStoreProjectsLocationsList = ListLocationsResponse+ type+ Scopes FireStoreProjectsLocationsList =+ '[CloudPlatform'FullControl, Datastore'FullControl]+ requestClient FireStoreProjectsLocationsList {..} =+ go+ name+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ fireStoreService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy FireStoreProjectsLocationsListResource)+ Core.mempty
+ gen/Gogol/FireStore/Types.hs view
@@ -0,0 +1,665 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.FireStore.Types+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Gogol.FireStore.Types+ ( -- * Configuration+ fireStoreService,++ -- * OAuth Scopes+ CloudPlatform'FullControl,+ Datastore'FullControl,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** Aggregation+ Aggregation (..),+ newAggregation,++ -- ** AggregationResult+ AggregationResult (..),+ newAggregationResult,++ -- ** AggregationResult_AggregateFields+ AggregationResult_AggregateFields (..),+ newAggregationResult_AggregateFields,++ -- ** ArrayValue+ ArrayValue (..),+ newArrayValue,++ -- ** Avg+ Avg (..),+ newAvg,++ -- ** BatchGetDocumentsRequest+ BatchGetDocumentsRequest (..),+ newBatchGetDocumentsRequest,++ -- ** BatchGetDocumentsResponse+ BatchGetDocumentsResponse (..),+ newBatchGetDocumentsResponse,++ -- ** BatchWriteRequest+ BatchWriteRequest (..),+ newBatchWriteRequest,++ -- ** BatchWriteRequest_Labels+ BatchWriteRequest_Labels (..),+ newBatchWriteRequest_Labels,++ -- ** BatchWriteResponse+ BatchWriteResponse (..),+ newBatchWriteResponse,++ -- ** BeginTransactionRequest+ BeginTransactionRequest (..),+ newBeginTransactionRequest,++ -- ** BeginTransactionResponse+ BeginTransactionResponse (..),+ newBeginTransactionResponse,++ -- ** BitSequence+ BitSequence (..),+ newBitSequence,++ -- ** BloomFilter+ BloomFilter (..),+ newBloomFilter,++ -- ** CollectionSelector+ CollectionSelector (..),+ newCollectionSelector,++ -- ** CommitRequest+ CommitRequest (..),+ newCommitRequest,++ -- ** CommitResponse+ CommitResponse (..),+ newCommitResponse,++ -- ** CompositeFilter+ CompositeFilter (..),+ newCompositeFilter,++ -- ** CompositeFilter_Op+ CompositeFilter_Op (..),++ -- ** Count+ Count (..),+ newCount,++ -- ** Cursor+ Cursor (..),+ newCursor,++ -- ** Document+ Document (..),+ newDocument,++ -- ** Document_Fields+ Document_Fields (..),+ newDocument_Fields,++ -- ** DocumentChange+ DocumentChange (..),+ newDocumentChange,++ -- ** DocumentDelete+ DocumentDelete (..),+ newDocumentDelete,++ -- ** DocumentMask+ DocumentMask (..),+ newDocumentMask,++ -- ** DocumentRemove+ DocumentRemove (..),+ newDocumentRemove,++ -- ** DocumentTransform+ DocumentTransform (..),+ newDocumentTransform,++ -- ** DocumentsTarget+ DocumentsTarget (..),+ newDocumentsTarget,++ -- ** Empty+ Empty (..),+ newEmpty,++ -- ** ExecutionStats+ ExecutionStats (..),+ newExecutionStats,++ -- ** ExecutionStats_DebugStats+ ExecutionStats_DebugStats (..),+ newExecutionStats_DebugStats,++ -- ** ExistenceFilter+ ExistenceFilter (..),+ newExistenceFilter,++ -- ** ExplainMetrics+ ExplainMetrics (..),+ newExplainMetrics,++ -- ** ExplainOptions+ ExplainOptions (..),+ newExplainOptions,++ -- ** FieldFilter+ FieldFilter (..),+ newFieldFilter,++ -- ** FieldFilter_Op+ FieldFilter_Op (..),++ -- ** FieldReference+ FieldReference (..),+ newFieldReference,++ -- ** FieldTransform+ FieldTransform (..),+ newFieldTransform,++ -- ** FieldTransform_SetToServerValue+ FieldTransform_SetToServerValue (..),++ -- ** Filter+ Filter (..),+ newFilter,++ -- ** FindNearest+ FindNearest (..),+ newFindNearest,++ -- ** FindNearest_DistanceMeasure+ FindNearest_DistanceMeasure (..),++ -- ** GoogleFirestoreAdminV1Backup+ GoogleFirestoreAdminV1Backup (..),+ newGoogleFirestoreAdminV1Backup,++ -- ** GoogleFirestoreAdminV1Backup_State+ GoogleFirestoreAdminV1Backup_State (..),++ -- ** GoogleFirestoreAdminV1BackupSchedule+ GoogleFirestoreAdminV1BackupSchedule (..),+ newGoogleFirestoreAdminV1BackupSchedule,++ -- ** GoogleFirestoreAdminV1BackupSource+ GoogleFirestoreAdminV1BackupSource (..),+ newGoogleFirestoreAdminV1BackupSource,++ -- ** GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata (..),+ newGoogleFirestoreAdminV1BulkDeleteDocumentsMetadata,++ -- ** GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState+ GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata_OperationState (..),++ -- ** GoogleFirestoreAdminV1BulkDeleteDocumentsRequest+ GoogleFirestoreAdminV1BulkDeleteDocumentsRequest (..),+ newGoogleFirestoreAdminV1BulkDeleteDocumentsRequest,++ -- ** GoogleFirestoreAdminV1CmekConfig+ GoogleFirestoreAdminV1CmekConfig (..),+ newGoogleFirestoreAdminV1CmekConfig,++ -- ** GoogleFirestoreAdminV1CreateDatabaseMetadata+ GoogleFirestoreAdminV1CreateDatabaseMetadata (..),+ newGoogleFirestoreAdminV1CreateDatabaseMetadata,++ -- ** GoogleFirestoreAdminV1CustomerManagedEncryptionOptions+ GoogleFirestoreAdminV1CustomerManagedEncryptionOptions (..),+ newGoogleFirestoreAdminV1CustomerManagedEncryptionOptions,++ -- ** GoogleFirestoreAdminV1DailyRecurrence+ GoogleFirestoreAdminV1DailyRecurrence (..),+ newGoogleFirestoreAdminV1DailyRecurrence,++ -- ** GoogleFirestoreAdminV1Database+ GoogleFirestoreAdminV1Database (..),+ newGoogleFirestoreAdminV1Database,++ -- ** GoogleFirestoreAdminV1Database_AppEngineIntegrationMode+ GoogleFirestoreAdminV1Database_AppEngineIntegrationMode (..),++ -- ** GoogleFirestoreAdminV1Database_ConcurrencyMode+ GoogleFirestoreAdminV1Database_ConcurrencyMode (..),++ -- ** GoogleFirestoreAdminV1Database_DeleteProtectionState+ GoogleFirestoreAdminV1Database_DeleteProtectionState (..),++ -- ** GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement+ GoogleFirestoreAdminV1Database_PointInTimeRecoveryEnablement (..),++ -- ** GoogleFirestoreAdminV1Database_Type+ GoogleFirestoreAdminV1Database_Type (..),++ -- ** GoogleFirestoreAdminV1DeleteDatabaseMetadata+ GoogleFirestoreAdminV1DeleteDatabaseMetadata (..),+ newGoogleFirestoreAdminV1DeleteDatabaseMetadata,++ -- ** GoogleFirestoreAdminV1EncryptionConfig+ GoogleFirestoreAdminV1EncryptionConfig (..),+ newGoogleFirestoreAdminV1EncryptionConfig,++ -- ** GoogleFirestoreAdminV1ExportDocumentsMetadata+ GoogleFirestoreAdminV1ExportDocumentsMetadata (..),+ newGoogleFirestoreAdminV1ExportDocumentsMetadata,++ -- ** GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState+ GoogleFirestoreAdminV1ExportDocumentsMetadata_OperationState (..),++ -- ** GoogleFirestoreAdminV1ExportDocumentsRequest+ GoogleFirestoreAdminV1ExportDocumentsRequest (..),+ newGoogleFirestoreAdminV1ExportDocumentsRequest,++ -- ** GoogleFirestoreAdminV1ExportDocumentsResponse+ GoogleFirestoreAdminV1ExportDocumentsResponse (..),+ newGoogleFirestoreAdminV1ExportDocumentsResponse,++ -- ** GoogleFirestoreAdminV1Field+ GoogleFirestoreAdminV1Field (..),+ newGoogleFirestoreAdminV1Field,++ -- ** GoogleFirestoreAdminV1FieldOperationMetadata+ GoogleFirestoreAdminV1FieldOperationMetadata (..),+ newGoogleFirestoreAdminV1FieldOperationMetadata,++ -- ** GoogleFirestoreAdminV1FieldOperationMetadata_State+ GoogleFirestoreAdminV1FieldOperationMetadata_State (..),++ -- ** GoogleFirestoreAdminV1FlatIndex+ GoogleFirestoreAdminV1FlatIndex (..),+ newGoogleFirestoreAdminV1FlatIndex,++ -- ** GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions+ GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions (..),+ newGoogleFirestoreAdminV1GoogleDefaultEncryptionOptions,++ -- ** GoogleFirestoreAdminV1ImportDocumentsMetadata+ GoogleFirestoreAdminV1ImportDocumentsMetadata (..),+ newGoogleFirestoreAdminV1ImportDocumentsMetadata,++ -- ** GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState+ GoogleFirestoreAdminV1ImportDocumentsMetadata_OperationState (..),++ -- ** GoogleFirestoreAdminV1ImportDocumentsRequest+ GoogleFirestoreAdminV1ImportDocumentsRequest (..),+ newGoogleFirestoreAdminV1ImportDocumentsRequest,++ -- ** GoogleFirestoreAdminV1Index+ GoogleFirestoreAdminV1Index (..),+ newGoogleFirestoreAdminV1Index,++ -- ** GoogleFirestoreAdminV1Index_ApiScope+ GoogleFirestoreAdminV1Index_ApiScope (..),++ -- ** GoogleFirestoreAdminV1Index_QueryScope+ GoogleFirestoreAdminV1Index_QueryScope (..),++ -- ** GoogleFirestoreAdminV1Index_State+ GoogleFirestoreAdminV1Index_State (..),++ -- ** GoogleFirestoreAdminV1IndexConfig+ GoogleFirestoreAdminV1IndexConfig (..),+ newGoogleFirestoreAdminV1IndexConfig,++ -- ** GoogleFirestoreAdminV1IndexConfigDelta+ GoogleFirestoreAdminV1IndexConfigDelta (..),+ newGoogleFirestoreAdminV1IndexConfigDelta,++ -- ** GoogleFirestoreAdminV1IndexConfigDelta_ChangeType+ GoogleFirestoreAdminV1IndexConfigDelta_ChangeType (..),++ -- ** GoogleFirestoreAdminV1IndexField+ GoogleFirestoreAdminV1IndexField (..),+ newGoogleFirestoreAdminV1IndexField,++ -- ** GoogleFirestoreAdminV1IndexField_ArrayConfig+ GoogleFirestoreAdminV1IndexField_ArrayConfig (..),++ -- ** GoogleFirestoreAdminV1IndexField_Order+ GoogleFirestoreAdminV1IndexField_Order (..),++ -- ** GoogleFirestoreAdminV1IndexOperationMetadata+ GoogleFirestoreAdminV1IndexOperationMetadata (..),+ newGoogleFirestoreAdminV1IndexOperationMetadata,++ -- ** GoogleFirestoreAdminV1IndexOperationMetadata_State+ GoogleFirestoreAdminV1IndexOperationMetadata_State (..),++ -- ** GoogleFirestoreAdminV1ListBackupSchedulesResponse+ GoogleFirestoreAdminV1ListBackupSchedulesResponse (..),+ newGoogleFirestoreAdminV1ListBackupSchedulesResponse,++ -- ** GoogleFirestoreAdminV1ListBackupsResponse+ GoogleFirestoreAdminV1ListBackupsResponse (..),+ newGoogleFirestoreAdminV1ListBackupsResponse,++ -- ** GoogleFirestoreAdminV1ListDatabasesResponse+ GoogleFirestoreAdminV1ListDatabasesResponse (..),+ newGoogleFirestoreAdminV1ListDatabasesResponse,++ -- ** GoogleFirestoreAdminV1ListFieldsResponse+ GoogleFirestoreAdminV1ListFieldsResponse (..),+ newGoogleFirestoreAdminV1ListFieldsResponse,++ -- ** GoogleFirestoreAdminV1ListIndexesResponse+ GoogleFirestoreAdminV1ListIndexesResponse (..),+ newGoogleFirestoreAdminV1ListIndexesResponse,++ -- ** GoogleFirestoreAdminV1LocationMetadata+ GoogleFirestoreAdminV1LocationMetadata (..),+ newGoogleFirestoreAdminV1LocationMetadata,++ -- ** GoogleFirestoreAdminV1Progress+ GoogleFirestoreAdminV1Progress (..),+ newGoogleFirestoreAdminV1Progress,++ -- ** GoogleFirestoreAdminV1RestoreDatabaseMetadata+ GoogleFirestoreAdminV1RestoreDatabaseMetadata (..),+ newGoogleFirestoreAdminV1RestoreDatabaseMetadata,++ -- ** GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState+ GoogleFirestoreAdminV1RestoreDatabaseMetadata_OperationState (..),++ -- ** GoogleFirestoreAdminV1RestoreDatabaseRequest+ GoogleFirestoreAdminV1RestoreDatabaseRequest (..),+ newGoogleFirestoreAdminV1RestoreDatabaseRequest,++ -- ** GoogleFirestoreAdminV1SourceEncryptionOptions+ GoogleFirestoreAdminV1SourceEncryptionOptions (..),+ newGoogleFirestoreAdminV1SourceEncryptionOptions,++ -- ** GoogleFirestoreAdminV1SourceInfo+ GoogleFirestoreAdminV1SourceInfo (..),+ newGoogleFirestoreAdminV1SourceInfo,++ -- ** GoogleFirestoreAdminV1Stats+ GoogleFirestoreAdminV1Stats (..),+ newGoogleFirestoreAdminV1Stats,++ -- ** GoogleFirestoreAdminV1TtlConfig+ GoogleFirestoreAdminV1TtlConfig (..),+ newGoogleFirestoreAdminV1TtlConfig,++ -- ** GoogleFirestoreAdminV1TtlConfig_State+ GoogleFirestoreAdminV1TtlConfig_State (..),++ -- ** GoogleFirestoreAdminV1TtlConfigDelta+ GoogleFirestoreAdminV1TtlConfigDelta (..),+ newGoogleFirestoreAdminV1TtlConfigDelta,++ -- ** GoogleFirestoreAdminV1TtlConfigDelta_ChangeType+ GoogleFirestoreAdminV1TtlConfigDelta_ChangeType (..),++ -- ** GoogleFirestoreAdminV1UpdateDatabaseMetadata+ GoogleFirestoreAdminV1UpdateDatabaseMetadata (..),+ newGoogleFirestoreAdminV1UpdateDatabaseMetadata,++ -- ** GoogleFirestoreAdminV1VectorConfig+ GoogleFirestoreAdminV1VectorConfig (..),+ newGoogleFirestoreAdminV1VectorConfig,++ -- ** GoogleFirestoreAdminV1WeeklyRecurrence+ GoogleFirestoreAdminV1WeeklyRecurrence (..),+ newGoogleFirestoreAdminV1WeeklyRecurrence,++ -- ** GoogleFirestoreAdminV1WeeklyRecurrence_Day+ GoogleFirestoreAdminV1WeeklyRecurrence_Day (..),++ -- ** GoogleLongrunningCancelOperationRequest+ GoogleLongrunningCancelOperationRequest (..),+ newGoogleLongrunningCancelOperationRequest,++ -- ** GoogleLongrunningListOperationsResponse+ GoogleLongrunningListOperationsResponse (..),+ newGoogleLongrunningListOperationsResponse,++ -- ** GoogleLongrunningOperation+ GoogleLongrunningOperation (..),+ newGoogleLongrunningOperation,++ -- ** GoogleLongrunningOperation_Metadata+ GoogleLongrunningOperation_Metadata (..),+ newGoogleLongrunningOperation_Metadata,++ -- ** GoogleLongrunningOperation_Response+ GoogleLongrunningOperation_Response (..),+ newGoogleLongrunningOperation_Response,++ -- ** LatLng+ LatLng (..),+ newLatLng,++ -- ** ListCollectionIdsRequest+ ListCollectionIdsRequest (..),+ newListCollectionIdsRequest,++ -- ** ListCollectionIdsResponse+ ListCollectionIdsResponse (..),+ newListCollectionIdsResponse,++ -- ** ListDocumentsResponse+ ListDocumentsResponse (..),+ newListDocumentsResponse,++ -- ** ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- ** ListenRequest+ ListenRequest (..),+ newListenRequest,++ -- ** ListenRequest_Labels+ ListenRequest_Labels (..),+ newListenRequest_Labels,++ -- ** ListenResponse+ ListenResponse (..),+ newListenResponse,++ -- ** Location+ Location (..),+ newLocation,++ -- ** Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- ** Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- ** MapValue+ MapValue (..),+ newMapValue,++ -- ** MapValue_Fields+ MapValue_Fields (..),+ newMapValue_Fields,++ -- ** Order+ Order (..),+ newOrder,++ -- ** Order_Direction+ Order_Direction (..),++ -- ** PartitionQueryRequest+ PartitionQueryRequest (..),+ newPartitionQueryRequest,++ -- ** PartitionQueryResponse+ PartitionQueryResponse (..),+ newPartitionQueryResponse,++ -- ** PlanSummary+ PlanSummary (..),+ newPlanSummary,++ -- ** PlanSummary_IndexesUsedItem+ PlanSummary_IndexesUsedItem (..),+ newPlanSummary_IndexesUsedItem,++ -- ** Precondition+ Precondition (..),+ newPrecondition,++ -- ** Projection+ Projection (..),+ newProjection,++ -- ** QueryTarget+ QueryTarget (..),+ newQueryTarget,++ -- ** ReadOnly+ ReadOnly (..),+ newReadOnly,++ -- ** ReadWrite+ ReadWrite (..),+ newReadWrite,++ -- ** RollbackRequest+ RollbackRequest (..),+ newRollbackRequest,++ -- ** RunAggregationQueryRequest+ RunAggregationQueryRequest (..),+ newRunAggregationQueryRequest,++ -- ** RunAggregationQueryResponse+ RunAggregationQueryResponse (..),+ newRunAggregationQueryResponse,++ -- ** RunQueryRequest+ RunQueryRequest (..),+ newRunQueryRequest,++ -- ** RunQueryResponse+ RunQueryResponse (..),+ newRunQueryResponse,++ -- ** Status+ Status (..),+ newStatus,++ -- ** Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- ** StructuredAggregationQuery+ StructuredAggregationQuery (..),+ newStructuredAggregationQuery,++ -- ** StructuredQuery+ StructuredQuery (..),+ newStructuredQuery,++ -- ** Sum+ Sum (..),+ newSum,++ -- ** Target+ Target (..),+ newTarget,++ -- ** TargetChange+ TargetChange (..),+ newTargetChange,++ -- ** TargetChange_TargetChangeType+ TargetChange_TargetChangeType (..),++ -- ** TransactionOptions+ TransactionOptions (..),+ newTransactionOptions,++ -- ** UnaryFilter+ UnaryFilter (..),+ newUnaryFilter,++ -- ** UnaryFilter_Op+ UnaryFilter_Op (..),++ -- ** Value+ Value (..),+ newValue,++ -- ** Value_NullValue+ Value_NullValue (..),++ -- ** Write+ Write (..),+ newWrite,++ -- ** WriteRequest+ WriteRequest (..),+ newWriteRequest,++ -- ** WriteRequest_Labels+ WriteRequest_Labels (..),+ newWriteRequest_Labels,++ -- ** WriteResponse+ WriteResponse (..),+ newWriteResponse,++ -- ** WriteResult+ WriteResult (..),+ newWriteResult,+ )+where++import Gogol.FireStore.Internal.Product+import Gogol.FireStore.Internal.Sum+import Gogol.Prelude qualified as Core++-- | Default request referring to version @v1@ of the Cloud Firestore API. This contains the host and root path used as a starting point for constructing service requests.+fireStoreService :: Core.ServiceConfig+fireStoreService =+ Core.defaultService+ (Core.ServiceId "firestore:v1")+ "firestore.googleapis.com"++-- | See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.+type CloudPlatform'FullControl =+ "https://www.googleapis.com/auth/cloud-platform"++-- | View and manage your Google Cloud Datastore data+type Datastore'FullControl =+ "https://www.googleapis.com/auth/datastore"
− gen/Network/Google/FireStore.hs
@@ -1,783 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}---- |--- Module : Network.Google.FireStore--- 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)------ Accesses the NoSQL document database built for automatic scaling, high--- performance, and ease of application development.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference>-module Network.Google.FireStore- (- -- * Service Configuration- fireStoreService-- -- * OAuth Scopes- , cloudPlatformScope- , datastoreScope-- -- * API Declaration- , FireStoreAPI-- -- * Resources-- -- ** firestore.projects.databases.collectionGroups.fields.get- , module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.Get-- -- ** firestore.projects.databases.collectionGroups.fields.list- , module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.List-- -- ** firestore.projects.databases.collectionGroups.fields.patch- , module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.Patch-- -- ** firestore.projects.databases.collectionGroups.indexes.create- , module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Create-- -- ** firestore.projects.databases.collectionGroups.indexes.delete- , module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Delete-- -- ** firestore.projects.databases.collectionGroups.indexes.get- , module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Get-- -- ** firestore.projects.databases.collectionGroups.indexes.list- , module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.List-- -- ** firestore.projects.databases.documents.batchGet- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.BatchGet-- -- ** firestore.projects.databases.documents.beginTransaction- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.BeginTransaction-- -- ** firestore.projects.databases.documents.commit- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.Commit-- -- ** firestore.projects.databases.documents.createDocument- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.CreateDocument-- -- ** firestore.projects.databases.documents.delete- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.Delete-- -- ** firestore.projects.databases.documents.get- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.Get-- -- ** firestore.projects.databases.documents.list- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.List-- -- ** firestore.projects.databases.documents.listCollectionIds- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.ListCollectionIds-- -- ** firestore.projects.databases.documents.listen- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.Listen-- -- ** firestore.projects.databases.documents.patch- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch-- -- ** firestore.projects.databases.documents.rollback- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.Rollback-- -- ** firestore.projects.databases.documents.runQuery- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.RunQuery-- -- ** firestore.projects.databases.documents.write- , module Network.Google.Resource.FireStore.Projects.Databases.Documents.Write-- -- ** firestore.projects.databases.exportDocuments- , module Network.Google.Resource.FireStore.Projects.Databases.ExportDocuments-- -- ** firestore.projects.databases.importDocuments- , module Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments-- -- ** firestore.projects.databases.operations.cancel- , module Network.Google.Resource.FireStore.Projects.Databases.Operations.Cancel-- -- ** firestore.projects.databases.operations.delete- , module Network.Google.Resource.FireStore.Projects.Databases.Operations.Delete-- -- ** firestore.projects.databases.operations.get- , module Network.Google.Resource.FireStore.Projects.Databases.Operations.Get-- -- ** firestore.projects.databases.operations.list- , module Network.Google.Resource.FireStore.Projects.Databases.Operations.List-- -- ** firestore.projects.locations.get- , module Network.Google.Resource.FireStore.Projects.Locations.Get-- -- ** firestore.projects.locations.list- , module Network.Google.Resource.FireStore.Projects.Locations.List-- -- * Types-- -- ** WriteRequest- , WriteRequest- , writeRequest- , wrStreamToken- , wrLabels- , wrWrites- , wrStreamId-- -- ** LatLng- , LatLng- , latLng- , llLatitude- , llLongitude-- -- ** GoogleFirestoreAdminV1IndexFieldOrder- , GoogleFirestoreAdminV1IndexFieldOrder (..)-- -- ** WriteResult- , WriteResult- , writeResult- , wrUpdateTime- , wrTransformResults-- -- ** GoogleFirestoreAdminV1Field- , GoogleFirestoreAdminV1Field- , googleFirestoreAdminV1Field- , gfavfIndexConfig- , gfavfName-- -- ** TransactionOptions- , TransactionOptions- , transactionOptions- , toReadWrite- , toReadOnly-- -- ** GoogleFirestoreAdminV1IndexConfigDeltaChangeType- , GoogleFirestoreAdminV1IndexConfigDeltaChangeType (..)-- -- ** Status- , Status- , status- , sDetails- , sCode- , sMessage-- -- ** GoogleLongrunningOperationMetadata- , GoogleLongrunningOperationMetadata- , googleLongrunningOperationMetadata- , glomAddtional-- -- ** Precondition- , Precondition- , precondition- , pExists- , pUpdateTime-- -- ** ReadWrite- , ReadWrite- , readWrite- , rwRetryTransaction-- -- ** RollbackRequest- , RollbackRequest- , rollbackRequest- , rrTransaction-- -- ** GoogleFirestoreAdminV1ExportDocumentsRequest- , GoogleFirestoreAdminV1ExportDocumentsRequest- , googleFirestoreAdminV1ExportDocumentsRequest- , gfavedrCollectionIds- , gfavedrOutputURIPrefix-- -- ** TargetChange- , TargetChange- , targetChange- , tcReadTime- , tcResumeToken- , tcCause- , tcTargetChangeType- , tcTargetIds-- -- ** ListLocationsResponse- , ListLocationsResponse- , listLocationsResponse- , llrNextPageToken- , llrLocations-- -- ** GoogleFirestoreAdminV1IndexState- , GoogleFirestoreAdminV1IndexState (..)-- -- ** CompositeFilterOp- , CompositeFilterOp (..)-- -- ** Cursor- , Cursor- , cursor- , cValues- , cBefore-- -- ** GoogleFirestoreAdminV1ImportDocumentsMetadata- , GoogleFirestoreAdminV1ImportDocumentsMetadata- , googleFirestoreAdminV1ImportDocumentsMetadata- , gfavidmProgressBytes- , gfavidmStartTime- , gfavidmInputURIPrefix- , gfavidmCollectionIds- , gfavidmProgressDocuments- , gfavidmEndTime- , gfavidmOperationState-- -- ** BeginTransactionRequest- , BeginTransactionRequest- , beginTransactionRequest- , btrOptions-- -- ** RunQueryRequest- , RunQueryRequest- , runQueryRequest- , rqrReadTime- , rqrNewTransaction- , rqrStructuredQuery- , rqrTransaction-- -- ** GoogleFirestoreAdminV1IndexConfigDelta- , GoogleFirestoreAdminV1IndexConfigDelta- , googleFirestoreAdminV1IndexConfigDelta- , gfavicdIndex- , gfavicdChangeType-- -- ** GoogleFirestoreAdminV1IndexConfig- , GoogleFirestoreAdminV1IndexConfig- , googleFirestoreAdminV1IndexConfig- , gfavicAncestorField- , gfavicReverting- , gfavicIndexes- , gfavicUsesAncestorConfig-- -- ** GoogleFirestoreAdminV1IndexField- , GoogleFirestoreAdminV1IndexField- , googleFirestoreAdminV1IndexField- , gfavifFieldPath- , gfavifArrayConfig- , gfavifOrder-- -- ** Write- , Write- , write- , wTransform- , wUpdateMask- , wCurrentDocument- , wDelete- , wUpdate-- -- ** Location- , Location- , location- , lName- , lMetadata- , lDisplayName- , lLabels- , lLocationId-- -- ** Empty- , Empty- , empty-- -- ** BatchGetDocumentsResponse- , BatchGetDocumentsResponse- , batchGetDocumentsResponse- , bgdrReadTime- , bgdrFound- , bgdrTransaction- , bgdrMissing-- -- ** CompositeFilter- , CompositeFilter- , compositeFilter- , cfOp- , cfFilters-- -- ** DocumentsTarget- , DocumentsTarget- , documentsTarget- , dtDocuments-- -- ** ListenRequestLabels- , ListenRequestLabels- , listenRequestLabels- , lrlAddtional-- -- ** GoogleFirestoreAdminV1Index- , GoogleFirestoreAdminV1Index- , googleFirestoreAdminV1Index- , gfaviState- , gfaviQueryScope- , gfaviName- , gfaviFields-- -- ** BeginTransactionResponse- , BeginTransactionResponse- , beginTransactionResponse- , btrTransaction-- -- ** RunQueryResponse- , RunQueryResponse- , runQueryResponse- , rReadTime- , rSkippedResults- , rTransaction- , rDocument-- -- ** GoogleFirestoreAdminV1IndexQueryScope- , GoogleFirestoreAdminV1IndexQueryScope (..)-- -- ** GoogleFirestoreAdminV1ExportDocumentsMetadata- , GoogleFirestoreAdminV1ExportDocumentsMetadata- , googleFirestoreAdminV1ExportDocumentsMetadata- , gfavedmProgressBytes- , gfavedmStartTime- , gfavedmCollectionIds- , gfavedmProgressDocuments- , gfavedmEndTime- , gfavedmOperationState- , gfavedmOutputURIPrefix-- -- ** GoogleFirestoreAdminV1Progress- , GoogleFirestoreAdminV1Progress- , googleFirestoreAdminV1Progress- , gfavpCompletedWork- , gfavpEstimatedWork-- -- ** DocumentMask- , DocumentMask- , documentMask- , dmFieldPaths-- -- ** QueryTarget- , QueryTarget- , queryTarget- , qtParent- , qtStructuredQuery-- -- ** Value- , Value- , value- , vGeoPointValue- , vBytesValue- , vIntegerValue- , vTimestampValue- , vDoubleValue- , vStringValue- , vBooleanValue- , vMapValue- , vArrayValue- , vReferenceValue- , vNullValue-- -- ** OrderDirection- , OrderDirection (..)-- -- ** ValueNullValue- , ValueNullValue (..)-- -- ** StatusDetailsItem- , StatusDetailsItem- , statusDetailsItem- , sdiAddtional-- -- ** DocumentTransform- , DocumentTransform- , documentTransform- , dtDocument- , dtFieldTransforms-- -- ** StructuredQuery- , StructuredQuery- , structuredQuery- , sqWhere- , sqOrderBy- , sqStartAt- , sqOffSet- , sqFrom- , sqEndAt- , sqLimit- , sqSelect-- -- ** ExistenceFilter- , ExistenceFilter- , existenceFilter- , efTargetId- , efCount-- -- ** GoogleFirestoreAdminV1ListFieldsResponse- , GoogleFirestoreAdminV1ListFieldsResponse- , googleFirestoreAdminV1ListFieldsResponse- , gfavlfrNextPageToken- , gfavlfrFields-- -- ** GoogleFirestoreAdminV1ImportDocumentsRequest- , GoogleFirestoreAdminV1ImportDocumentsRequest- , googleFirestoreAdminV1ImportDocumentsRequest- , gfavidrInputURIPrefix- , gfavidrCollectionIds-- -- ** GoogleFirestoreAdminV1LocationMetadata- , GoogleFirestoreAdminV1LocationMetadata- , googleFirestoreAdminV1LocationMetadata-- -- ** GoogleLongrunningCancelOperationRequest- , GoogleLongrunningCancelOperationRequest- , googleLongrunningCancelOperationRequest-- -- ** UnaryFilterOp- , UnaryFilterOp (..)-- -- ** ListCollectionIdsResponse- , ListCollectionIdsResponse- , listCollectionIdsResponse- , lcirNextPageToken- , lcirCollectionIds-- -- ** FieldReference- , FieldReference- , fieldReference- , frFieldPath-- -- ** DocumentRemove- , DocumentRemove- , documentRemove- , drReadTime- , drDocument- , drRemovedTargetIds-- -- ** GoogleFirestoreAdminV1IndexFieldArrayConfig- , GoogleFirestoreAdminV1IndexFieldArrayConfig (..)-- -- ** DocumentChange- , DocumentChange- , documentChange- , dcDocument- , dcTargetIds- , dcRemovedTargetIds-- -- ** GoogleFirestoreAdminV1FieldOperationMetadata- , GoogleFirestoreAdminV1FieldOperationMetadata- , googleFirestoreAdminV1FieldOperationMetadata- , gfavfomProgressBytes- , gfavfomState- , gfavfomField- , gfavfomStartTime- , gfavfomProgressDocuments- , gfavfomIndexConfigDeltas- , gfavfomEndTime-- -- ** GoogleFirestoreAdminV1ListIndexesResponse- , GoogleFirestoreAdminV1ListIndexesResponse- , googleFirestoreAdminV1ListIndexesResponse- , gfavlirNextPageToken- , gfavlirIndexes-- -- ** MapValue- , MapValue- , mapValue- , mvFields-- -- ** BatchGetDocumentsRequest- , BatchGetDocumentsRequest- , batchGetDocumentsRequest- , bReadTime- , bNewTransaction- , bTransaction- , bDocuments- , bMask-- -- ** Document- , Document- , document- , dUpdateTime- , dName- , dCreateTime- , dFields-- -- ** GoogleFirestoreAdminV1IndexOperationMetadataState- , GoogleFirestoreAdminV1IndexOperationMetadataState (..)-- -- ** ArrayValue- , ArrayValue- , arrayValue- , avValues-- -- ** Xgafv- , Xgafv (..)-- -- ** CommitResponse- , CommitResponse- , commitResponse- , crCommitTime- , crWriteResults-- -- ** ListenResponse- , ListenResponse- , listenResponse- , lrTargetChange- , lrDocumentRemove- , lrDocumentChange- , lrFilter- , lrDocumentDelete-- -- ** FieldFilter- , FieldFilter- , fieldFilter- , ffOp- , ffField- , ffValue-- -- ** GoogleLongrunningOperationResponse- , GoogleLongrunningOperationResponse- , googleLongrunningOperationResponse- , glorAddtional-- -- ** ListDocumentsResponse- , ListDocumentsResponse- , listDocumentsResponse- , ldrNextPageToken- , ldrDocuments-- -- ** GoogleFirestoreAdminV1ExportDocumentsResponse- , GoogleFirestoreAdminV1ExportDocumentsResponse- , googleFirestoreAdminV1ExportDocumentsResponse- , gOutputURIPrefix-- -- ** FieldFilterOp- , FieldFilterOp (..)-- -- ** Projection- , Projection- , projection- , pFields-- -- ** Filter- , Filter- , filter'- , fCompositeFilter- , fFieldFilter- , fUnaryFilter-- -- ** TargetChangeTargetChangeType- , TargetChangeTargetChangeType (..)-- -- ** GoogleFirestoreAdminV1IndexOperationMetadata- , GoogleFirestoreAdminV1IndexOperationMetadata- , googleFirestoreAdminV1IndexOperationMetadata- , gfaviomProgressBytes- , gfaviomState- , gfaviomStartTime- , gfaviomProgressDocuments- , gfaviomEndTime- , gfaviomIndex-- -- ** LocationLabels- , LocationLabels- , locationLabels- , llAddtional-- -- ** ListenRequest- , ListenRequest- , listenRequest- , lrRemoveTarget- , lrLabels- , lrAddTarget-- -- ** GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState- , GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState (..)-- -- ** CommitRequest- , CommitRequest- , commitRequest- , crTransaction- , crWrites-- -- ** LocationMetadata- , LocationMetadata- , locationMetadata- , lmAddtional-- -- ** GoogleLongrunningListOperationsResponse- , GoogleLongrunningListOperationsResponse- , googleLongrunningListOperationsResponse- , gllorNextPageToken- , gllorOperations-- -- ** GoogleFirestoreAdminV1FieldOperationMetadataState- , GoogleFirestoreAdminV1FieldOperationMetadataState (..)-- -- ** CollectionSelector- , CollectionSelector- , collectionSelector- , csAllDescendants- , csCollectionId-- -- ** ListCollectionIdsRequest- , ListCollectionIdsRequest- , listCollectionIdsRequest- , lcirPageToken- , lcirPageSize-- -- ** WriteResponse- , WriteResponse- , writeResponse- , wStreamToken- , wCommitTime- , wWriteResults- , wStreamId-- -- ** Order- , Order- , order- , oField- , oDirection-- -- ** DocumentDelete- , DocumentDelete- , documentDelete- , ddReadTime- , ddDocument- , ddRemovedTargetIds-- -- ** FieldTransform- , FieldTransform- , fieldTransform- , ftFieldPath- , ftAppendMissingElements- , ftMaximum- , ftMinimum- , ftSetToServerValue- , ftRemoveAllFromArray- , ftIncrement-- -- ** MapValueFields- , MapValueFields- , mapValueFields- , mvfAddtional-- -- ** DocumentFields- , DocumentFields- , documentFields- , dfAddtional-- -- ** ReadOnly- , ReadOnly- , readOnly- , roReadTime-- -- ** Target- , Target- , target- , tTargetId- , tOnce- , tReadTime- , tResumeToken- , tDocuments- , tQuery-- -- ** WriteRequestLabels- , WriteRequestLabels- , writeRequestLabels- , wrlAddtional-- -- ** FieldTransformSetToServerValue- , FieldTransformSetToServerValue (..)-- -- ** GoogleLongrunningOperation- , GoogleLongrunningOperation- , googleLongrunningOperation- , gloDone- , gloError- , gloResponse- , gloName- , gloMetadata-- -- ** GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState- , GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState (..)-- -- ** UnaryFilter- , UnaryFilter- , unaryFilter- , ufOp- , ufField- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude-import Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.Get-import Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.List-import Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.Patch-import Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Create-import Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Delete-import Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Get-import Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.List-import Network.Google.Resource.FireStore.Projects.Databases.Documents.BatchGet-import Network.Google.Resource.FireStore.Projects.Databases.Documents.BeginTransaction-import Network.Google.Resource.FireStore.Projects.Databases.Documents.Commit-import Network.Google.Resource.FireStore.Projects.Databases.Documents.CreateDocument-import Network.Google.Resource.FireStore.Projects.Databases.Documents.Delete-import Network.Google.Resource.FireStore.Projects.Databases.Documents.Get-import Network.Google.Resource.FireStore.Projects.Databases.Documents.List-import Network.Google.Resource.FireStore.Projects.Databases.Documents.ListCollectionIds-import Network.Google.Resource.FireStore.Projects.Databases.Documents.Listen-import Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch-import Network.Google.Resource.FireStore.Projects.Databases.Documents.Rollback-import Network.Google.Resource.FireStore.Projects.Databases.Documents.RunQuery-import Network.Google.Resource.FireStore.Projects.Databases.Documents.Write-import Network.Google.Resource.FireStore.Projects.Databases.ExportDocuments-import Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments-import Network.Google.Resource.FireStore.Projects.Databases.Operations.Cancel-import Network.Google.Resource.FireStore.Projects.Databases.Operations.Delete-import Network.Google.Resource.FireStore.Projects.Databases.Operations.Get-import Network.Google.Resource.FireStore.Projects.Databases.Operations.List-import Network.Google.Resource.FireStore.Projects.Locations.Get-import Network.Google.Resource.FireStore.Projects.Locations.List--{- $resources-TODO--}---- | Represents the entirety of the methods and resources available for the Cloud Firestore API service.-type FireStoreAPI =- ProjectsLocationsListResource :<|>- ProjectsLocationsGetResource- :<|>- ProjectsDatabasesDocumentsListCollectionIdsResource- :<|> ProjectsDatabasesDocumentsListResource- :<|> ProjectsDatabasesDocumentsWriteResource- :<|> ProjectsDatabasesDocumentsCreateDocumentResource- :<|>- ProjectsDatabasesDocumentsBeginTransactionResource- :<|> ProjectsDatabasesDocumentsRunQueryResource- :<|> ProjectsDatabasesDocumentsPatchResource- :<|> ProjectsDatabasesDocumentsGetResource- :<|> ProjectsDatabasesDocumentsRollbackResource- :<|> ProjectsDatabasesDocumentsBatchGetResource- :<|> ProjectsDatabasesDocumentsDeleteResource- :<|> ProjectsDatabasesDocumentsListenResource- :<|> ProjectsDatabasesDocumentsCommitResource- :<|>- ProjectsDatabasesCollectionGroupsIndexesListResource- :<|>- ProjectsDatabasesCollectionGroupsIndexesGetResource- :<|>- ProjectsDatabasesCollectionGroupsIndexesCreateResource- :<|>- ProjectsDatabasesCollectionGroupsIndexesDeleteResource- :<|>- ProjectsDatabasesCollectionGroupsFieldsListResource- :<|>- ProjectsDatabasesCollectionGroupsFieldsPatchResource- :<|>- ProjectsDatabasesCollectionGroupsFieldsGetResource- :<|> ProjectsDatabasesOperationsListResource- :<|> ProjectsDatabasesOperationsGetResource- :<|> ProjectsDatabasesOperationsCancelResource- :<|> ProjectsDatabasesOperationsDeleteResource- :<|> ProjectsDatabasesExportDocumentsResource- :<|> ProjectsDatabasesImportDocumentsResource
− gen/Network/Google/FireStore/Types.hs
@@ -1,632 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.FireStore.Types--- 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)----module Network.Google.FireStore.Types- (- -- * Service Configuration- fireStoreService-- -- * OAuth Scopes- , cloudPlatformScope- , datastoreScope-- -- * WriteRequest- , WriteRequest- , writeRequest- , wrStreamToken- , wrLabels- , wrWrites- , wrStreamId-- -- * LatLng- , LatLng- , latLng- , llLatitude- , llLongitude-- -- * GoogleFirestoreAdminV1IndexFieldOrder- , GoogleFirestoreAdminV1IndexFieldOrder (..)-- -- * WriteResult- , WriteResult- , writeResult- , wrUpdateTime- , wrTransformResults-- -- * GoogleFirestoreAdminV1Field- , GoogleFirestoreAdminV1Field- , googleFirestoreAdminV1Field- , gfavfIndexConfig- , gfavfName-- -- * TransactionOptions- , TransactionOptions- , transactionOptions- , toReadWrite- , toReadOnly-- -- * GoogleFirestoreAdminV1IndexConfigDeltaChangeType- , GoogleFirestoreAdminV1IndexConfigDeltaChangeType (..)-- -- * Status- , Status- , status- , sDetails- , sCode- , sMessage-- -- * GoogleLongrunningOperationMetadata- , GoogleLongrunningOperationMetadata- , googleLongrunningOperationMetadata- , glomAddtional-- -- * Precondition- , Precondition- , precondition- , pExists- , pUpdateTime-- -- * ReadWrite- , ReadWrite- , readWrite- , rwRetryTransaction-- -- * RollbackRequest- , RollbackRequest- , rollbackRequest- , rrTransaction-- -- * GoogleFirestoreAdminV1ExportDocumentsRequest- , GoogleFirestoreAdminV1ExportDocumentsRequest- , googleFirestoreAdminV1ExportDocumentsRequest- , gfavedrCollectionIds- , gfavedrOutputURIPrefix-- -- * TargetChange- , TargetChange- , targetChange- , tcReadTime- , tcResumeToken- , tcCause- , tcTargetChangeType- , tcTargetIds-- -- * ListLocationsResponse- , ListLocationsResponse- , listLocationsResponse- , llrNextPageToken- , llrLocations-- -- * GoogleFirestoreAdminV1IndexState- , GoogleFirestoreAdminV1IndexState (..)-- -- * CompositeFilterOp- , CompositeFilterOp (..)-- -- * Cursor- , Cursor- , cursor- , cValues- , cBefore-- -- * GoogleFirestoreAdminV1ImportDocumentsMetadata- , GoogleFirestoreAdminV1ImportDocumentsMetadata- , googleFirestoreAdminV1ImportDocumentsMetadata- , gfavidmProgressBytes- , gfavidmStartTime- , gfavidmInputURIPrefix- , gfavidmCollectionIds- , gfavidmProgressDocuments- , gfavidmEndTime- , gfavidmOperationState-- -- * BeginTransactionRequest- , BeginTransactionRequest- , beginTransactionRequest- , btrOptions-- -- * RunQueryRequest- , RunQueryRequest- , runQueryRequest- , rqrReadTime- , rqrNewTransaction- , rqrStructuredQuery- , rqrTransaction-- -- * GoogleFirestoreAdminV1IndexConfigDelta- , GoogleFirestoreAdminV1IndexConfigDelta- , googleFirestoreAdminV1IndexConfigDelta- , gfavicdIndex- , gfavicdChangeType-- -- * GoogleFirestoreAdminV1IndexConfig- , GoogleFirestoreAdminV1IndexConfig- , googleFirestoreAdminV1IndexConfig- , gfavicAncestorField- , gfavicReverting- , gfavicIndexes- , gfavicUsesAncestorConfig-- -- * GoogleFirestoreAdminV1IndexField- , GoogleFirestoreAdminV1IndexField- , googleFirestoreAdminV1IndexField- , gfavifFieldPath- , gfavifArrayConfig- , gfavifOrder-- -- * Write- , Write- , write- , wTransform- , wUpdateMask- , wCurrentDocument- , wDelete- , wUpdate-- -- * Location- , Location- , location- , lName- , lMetadata- , lDisplayName- , lLabels- , lLocationId-- -- * Empty- , Empty- , empty-- -- * BatchGetDocumentsResponse- , BatchGetDocumentsResponse- , batchGetDocumentsResponse- , bgdrReadTime- , bgdrFound- , bgdrTransaction- , bgdrMissing-- -- * CompositeFilter- , CompositeFilter- , compositeFilter- , cfOp- , cfFilters-- -- * DocumentsTarget- , DocumentsTarget- , documentsTarget- , dtDocuments-- -- * ListenRequestLabels- , ListenRequestLabels- , listenRequestLabels- , lrlAddtional-- -- * GoogleFirestoreAdminV1Index- , GoogleFirestoreAdminV1Index- , googleFirestoreAdminV1Index- , gfaviState- , gfaviQueryScope- , gfaviName- , gfaviFields-- -- * BeginTransactionResponse- , BeginTransactionResponse- , beginTransactionResponse- , btrTransaction-- -- * RunQueryResponse- , RunQueryResponse- , runQueryResponse- , rReadTime- , rSkippedResults- , rTransaction- , rDocument-- -- * GoogleFirestoreAdminV1IndexQueryScope- , GoogleFirestoreAdminV1IndexQueryScope (..)-- -- * GoogleFirestoreAdminV1ExportDocumentsMetadata- , GoogleFirestoreAdminV1ExportDocumentsMetadata- , googleFirestoreAdminV1ExportDocumentsMetadata- , gfavedmProgressBytes- , gfavedmStartTime- , gfavedmCollectionIds- , gfavedmProgressDocuments- , gfavedmEndTime- , gfavedmOperationState- , gfavedmOutputURIPrefix-- -- * GoogleFirestoreAdminV1Progress- , GoogleFirestoreAdminV1Progress- , googleFirestoreAdminV1Progress- , gfavpCompletedWork- , gfavpEstimatedWork-- -- * DocumentMask- , DocumentMask- , documentMask- , dmFieldPaths-- -- * QueryTarget- , QueryTarget- , queryTarget- , qtParent- , qtStructuredQuery-- -- * Value- , Value- , value- , vGeoPointValue- , vBytesValue- , vIntegerValue- , vTimestampValue- , vDoubleValue- , vStringValue- , vBooleanValue- , vMapValue- , vArrayValue- , vReferenceValue- , vNullValue-- -- * OrderDirection- , OrderDirection (..)-- -- * ValueNullValue- , ValueNullValue (..)-- -- * StatusDetailsItem- , StatusDetailsItem- , statusDetailsItem- , sdiAddtional-- -- * DocumentTransform- , DocumentTransform- , documentTransform- , dtDocument- , dtFieldTransforms-- -- * StructuredQuery- , StructuredQuery- , structuredQuery- , sqWhere- , sqOrderBy- , sqStartAt- , sqOffSet- , sqFrom- , sqEndAt- , sqLimit- , sqSelect-- -- * ExistenceFilter- , ExistenceFilter- , existenceFilter- , efTargetId- , efCount-- -- * GoogleFirestoreAdminV1ListFieldsResponse- , GoogleFirestoreAdminV1ListFieldsResponse- , googleFirestoreAdminV1ListFieldsResponse- , gfavlfrNextPageToken- , gfavlfrFields-- -- * GoogleFirestoreAdminV1ImportDocumentsRequest- , GoogleFirestoreAdminV1ImportDocumentsRequest- , googleFirestoreAdminV1ImportDocumentsRequest- , gfavidrInputURIPrefix- , gfavidrCollectionIds-- -- * GoogleFirestoreAdminV1LocationMetadata- , GoogleFirestoreAdminV1LocationMetadata- , googleFirestoreAdminV1LocationMetadata-- -- * GoogleLongrunningCancelOperationRequest- , GoogleLongrunningCancelOperationRequest- , googleLongrunningCancelOperationRequest-- -- * UnaryFilterOp- , UnaryFilterOp (..)-- -- * ListCollectionIdsResponse- , ListCollectionIdsResponse- , listCollectionIdsResponse- , lcirNextPageToken- , lcirCollectionIds-- -- * FieldReference- , FieldReference- , fieldReference- , frFieldPath-- -- * DocumentRemove- , DocumentRemove- , documentRemove- , drReadTime- , drDocument- , drRemovedTargetIds-- -- * GoogleFirestoreAdminV1IndexFieldArrayConfig- , GoogleFirestoreAdminV1IndexFieldArrayConfig (..)-- -- * DocumentChange- , DocumentChange- , documentChange- , dcDocument- , dcTargetIds- , dcRemovedTargetIds-- -- * GoogleFirestoreAdminV1FieldOperationMetadata- , GoogleFirestoreAdminV1FieldOperationMetadata- , googleFirestoreAdminV1FieldOperationMetadata- , gfavfomProgressBytes- , gfavfomState- , gfavfomField- , gfavfomStartTime- , gfavfomProgressDocuments- , gfavfomIndexConfigDeltas- , gfavfomEndTime-- -- * GoogleFirestoreAdminV1ListIndexesResponse- , GoogleFirestoreAdminV1ListIndexesResponse- , googleFirestoreAdminV1ListIndexesResponse- , gfavlirNextPageToken- , gfavlirIndexes-- -- * MapValue- , MapValue- , mapValue- , mvFields-- -- * BatchGetDocumentsRequest- , BatchGetDocumentsRequest- , batchGetDocumentsRequest- , bReadTime- , bNewTransaction- , bTransaction- , bDocuments- , bMask-- -- * Document- , Document- , document- , dUpdateTime- , dName- , dCreateTime- , dFields-- -- * GoogleFirestoreAdminV1IndexOperationMetadataState- , GoogleFirestoreAdminV1IndexOperationMetadataState (..)-- -- * ArrayValue- , ArrayValue- , arrayValue- , avValues-- -- * Xgafv- , Xgafv (..)-- -- * CommitResponse- , CommitResponse- , commitResponse- , crCommitTime- , crWriteResults-- -- * ListenResponse- , ListenResponse- , listenResponse- , lrTargetChange- , lrDocumentRemove- , lrDocumentChange- , lrFilter- , lrDocumentDelete-- -- * FieldFilter- , FieldFilter- , fieldFilter- , ffOp- , ffField- , ffValue-- -- * GoogleLongrunningOperationResponse- , GoogleLongrunningOperationResponse- , googleLongrunningOperationResponse- , glorAddtional-- -- * ListDocumentsResponse- , ListDocumentsResponse- , listDocumentsResponse- , ldrNextPageToken- , ldrDocuments-- -- * GoogleFirestoreAdminV1ExportDocumentsResponse- , GoogleFirestoreAdminV1ExportDocumentsResponse- , googleFirestoreAdminV1ExportDocumentsResponse- , gOutputURIPrefix-- -- * FieldFilterOp- , FieldFilterOp (..)-- -- * Projection- , Projection- , projection- , pFields-- -- * Filter- , Filter- , filter'- , fCompositeFilter- , fFieldFilter- , fUnaryFilter-- -- * TargetChangeTargetChangeType- , TargetChangeTargetChangeType (..)-- -- * GoogleFirestoreAdminV1IndexOperationMetadata- , GoogleFirestoreAdminV1IndexOperationMetadata- , googleFirestoreAdminV1IndexOperationMetadata- , gfaviomProgressBytes- , gfaviomState- , gfaviomStartTime- , gfaviomProgressDocuments- , gfaviomEndTime- , gfaviomIndex-- -- * LocationLabels- , LocationLabels- , locationLabels- , llAddtional-- -- * ListenRequest- , ListenRequest- , listenRequest- , lrRemoveTarget- , lrLabels- , lrAddTarget-- -- * GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState- , GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState (..)-- -- * CommitRequest- , CommitRequest- , commitRequest- , crTransaction- , crWrites-- -- * LocationMetadata- , LocationMetadata- , locationMetadata- , lmAddtional-- -- * GoogleLongrunningListOperationsResponse- , GoogleLongrunningListOperationsResponse- , googleLongrunningListOperationsResponse- , gllorNextPageToken- , gllorOperations-- -- * GoogleFirestoreAdminV1FieldOperationMetadataState- , GoogleFirestoreAdminV1FieldOperationMetadataState (..)-- -- * CollectionSelector- , CollectionSelector- , collectionSelector- , csAllDescendants- , csCollectionId-- -- * ListCollectionIdsRequest- , ListCollectionIdsRequest- , listCollectionIdsRequest- , lcirPageToken- , lcirPageSize-- -- * WriteResponse- , WriteResponse- , writeResponse- , wStreamToken- , wCommitTime- , wWriteResults- , wStreamId-- -- * Order- , Order- , order- , oField- , oDirection-- -- * DocumentDelete- , DocumentDelete- , documentDelete- , ddReadTime- , ddDocument- , ddRemovedTargetIds-- -- * FieldTransform- , FieldTransform- , fieldTransform- , ftFieldPath- , ftAppendMissingElements- , ftMaximum- , ftMinimum- , ftSetToServerValue- , ftRemoveAllFromArray- , ftIncrement-- -- * MapValueFields- , MapValueFields- , mapValueFields- , mvfAddtional-- -- * DocumentFields- , DocumentFields- , documentFields- , dfAddtional-- -- * ReadOnly- , ReadOnly- , readOnly- , roReadTime-- -- * Target- , Target- , target- , tTargetId- , tOnce- , tReadTime- , tResumeToken- , tDocuments- , tQuery-- -- * WriteRequestLabels- , WriteRequestLabels- , writeRequestLabels- , wrlAddtional-- -- * FieldTransformSetToServerValue- , FieldTransformSetToServerValue (..)-- -- * GoogleLongrunningOperation- , GoogleLongrunningOperation- , googleLongrunningOperation- , gloDone- , gloError- , gloResponse- , gloName- , gloMetadata-- -- * GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState- , GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState (..)-- -- * UnaryFilter- , UnaryFilter- , unaryFilter- , ufOp- , ufField- ) where--import Network.Google.FireStore.Types.Product-import Network.Google.FireStore.Types.Sum-import Network.Google.Prelude---- | Default request referring to version 'v1' of the Cloud Firestore API. This contains the host and root path used as a starting point for constructing service requests.-fireStoreService :: ServiceConfig-fireStoreService- = defaultService (ServiceId "firestore:v1")- "firestore.googleapis.com"---- | View and manage your data across Google Cloud Platform services-cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]-cloudPlatformScope = Proxy---- | View and manage your Google Cloud Datastore data-datastoreScope :: Proxy '["https://www.googleapis.com/auth/datastore"]-datastoreScope = Proxy
− gen/Network/Google/FireStore/Types/Product.hs
@@ -1,5181 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}--{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.FireStore.Types.Product--- 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)----module Network.Google.FireStore.Types.Product where--import Network.Google.FireStore.Types.Sum-import Network.Google.Prelude---- | The request for Firestore.Write. The first request creates a stream, or--- resumes an existing one from a token. When creating a new stream, the--- server replies with a response containing only an ID and a token, to use--- in the next request. When resuming a stream, the server first streams--- any responses later than the given token, then a response containing--- only an up-to-date token, to use in the next request.------ /See:/ 'writeRequest' smart constructor.-data WriteRequest =- WriteRequest'- { _wrStreamToken :: !(Maybe Bytes)- , _wrLabels :: !(Maybe WriteRequestLabels)- , _wrWrites :: !(Maybe [Write])- , _wrStreamId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WriteRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wrStreamToken'------ * 'wrLabels'------ * 'wrWrites'------ * 'wrStreamId'-writeRequest- :: WriteRequest-writeRequest =- WriteRequest'- { _wrStreamToken = Nothing- , _wrLabels = Nothing- , _wrWrites = Nothing- , _wrStreamId = Nothing- }----- | A stream token that was previously sent by the server. The client should--- set this field to the token from the most recent WriteResponse it has--- received. This acknowledges that the client has received responses up to--- this token. After sending this token, earlier tokens may not be used--- anymore. The server may close the stream if there are too many--- unacknowledged responses. Leave this field unset when creating a new--- stream. To resume a stream at a specific point, set this field and the--- \`stream_id\` field. Leave this field unset when creating a new stream.-wrStreamToken :: Lens' WriteRequest (Maybe ByteString)-wrStreamToken- = lens _wrStreamToken- (\ s a -> s{_wrStreamToken = a})- . mapping _Bytes---- | Labels associated with this write request.-wrLabels :: Lens' WriteRequest (Maybe WriteRequestLabels)-wrLabels = lens _wrLabels (\ s a -> s{_wrLabels = a})---- | The writes to apply. Always executed atomically and in order. This must--- be empty on the first request. This may be empty on the last request.--- This must not be empty on all other requests.-wrWrites :: Lens' WriteRequest [Write]-wrWrites- = lens _wrWrites (\ s a -> s{_wrWrites = a}) .- _Default- . _Coerce---- | The ID of the write stream to resume. This may only be set in the first--- message. When left empty, a new write stream will be created.-wrStreamId :: Lens' WriteRequest (Maybe Text)-wrStreamId- = lens _wrStreamId (\ s a -> s{_wrStreamId = a})--instance FromJSON WriteRequest where- parseJSON- = withObject "WriteRequest"- (\ o ->- WriteRequest' <$>- (o .:? "streamToken") <*> (o .:? "labels") <*>- (o .:? "writes" .!= mempty)- <*> (o .:? "streamId"))--instance ToJSON WriteRequest where- toJSON WriteRequest'{..}- = object- (catMaybes- [("streamToken" .=) <$> _wrStreamToken,- ("labels" .=) <$> _wrLabels,- ("writes" .=) <$> _wrWrites,- ("streamId" .=) <$> _wrStreamId])---- | An object representing a latitude\/longitude pair. This is expressed as--- a pair of doubles representing degrees latitude and degrees longitude.--- Unless specified otherwise, this must conform to the--- <http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf WGS84 standard>.--- Values must be within normalized ranges.------ /See:/ 'latLng' smart constructor.-data LatLng =- LatLng'- { _llLatitude :: !(Maybe (Textual Double))- , _llLongitude :: !(Maybe (Textual Double))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'LatLng' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'llLatitude'------ * 'llLongitude'-latLng- :: LatLng-latLng = LatLng' {_llLatitude = Nothing, _llLongitude = Nothing}----- | The latitude in degrees. It must be in the range [-90.0, +90.0].-llLatitude :: Lens' LatLng (Maybe Double)-llLatitude- = lens _llLatitude (\ s a -> s{_llLatitude = a}) .- mapping _Coerce---- | The longitude in degrees. It must be in the range [-180.0, +180.0].-llLongitude :: Lens' LatLng (Maybe Double)-llLongitude- = lens _llLongitude (\ s a -> s{_llLongitude = a}) .- mapping _Coerce--instance FromJSON LatLng where- parseJSON- = withObject "LatLng"- (\ o ->- LatLng' <$>- (o .:? "latitude") <*> (o .:? "longitude"))--instance ToJSON LatLng where- toJSON LatLng'{..}- = object- (catMaybes- [("latitude" .=) <$> _llLatitude,- ("longitude" .=) <$> _llLongitude])---- | The result of applying a write.------ /See:/ 'writeResult' smart constructor.-data WriteResult =- WriteResult'- { _wrUpdateTime :: !(Maybe DateTime')- , _wrTransformResults :: !(Maybe [Value])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WriteResult' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wrUpdateTime'------ * 'wrTransformResults'-writeResult- :: WriteResult-writeResult =- WriteResult' {_wrUpdateTime = Nothing, _wrTransformResults = Nothing}----- | The last update time of the document after applying the write. Not set--- after a \`delete\`. If the write did not actually change the document,--- this will be the previous update_time.-wrUpdateTime :: Lens' WriteResult (Maybe UTCTime)-wrUpdateTime- = lens _wrUpdateTime (\ s a -> s{_wrUpdateTime = a})- . mapping _DateTime---- | The results of applying each DocumentTransform.FieldTransform, in the--- same order.-wrTransformResults :: Lens' WriteResult [Value]-wrTransformResults- = lens _wrTransformResults- (\ s a -> s{_wrTransformResults = a})- . _Default- . _Coerce--instance FromJSON WriteResult where- parseJSON- = withObject "WriteResult"- (\ o ->- WriteResult' <$>- (o .:? "updateTime") <*>- (o .:? "transformResults" .!= mempty))--instance ToJSON WriteResult where- toJSON WriteResult'{..}- = object- (catMaybes- [("updateTime" .=) <$> _wrUpdateTime,- ("transformResults" .=) <$> _wrTransformResults])---- | Represents a single field in the database. Fields are grouped by their--- \"Collection Group\", which represent all collections in the database--- with the same id.------ /See:/ 'googleFirestoreAdminV1Field' smart constructor.-data GoogleFirestoreAdminV1Field =- GoogleFirestoreAdminV1Field'- { _gfavfIndexConfig :: !(Maybe GoogleFirestoreAdminV1IndexConfig)- , _gfavfName :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1Field' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavfIndexConfig'------ * 'gfavfName'-googleFirestoreAdminV1Field- :: GoogleFirestoreAdminV1Field-googleFirestoreAdminV1Field =- GoogleFirestoreAdminV1Field'- {_gfavfIndexConfig = Nothing, _gfavfName = Nothing}----- | The index configuration for this field. If unset, field indexing will--- revert to the configuration defined by the \`ancestor_field\`. To--- explicitly remove all indexes for this field, specify an index config--- with an empty list of indexes.-gfavfIndexConfig :: Lens' GoogleFirestoreAdminV1Field (Maybe GoogleFirestoreAdminV1IndexConfig)-gfavfIndexConfig- = lens _gfavfIndexConfig- (\ s a -> s{_gfavfIndexConfig = a})---- | A field name of the form--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/fields\/{field_path}\`--- A field path may be a simple field name, e.g. \`address\` or a path to--- fields within map_value , e.g. \`address.city\`, or a special field--- path. The only valid special field is \`*\`, which represents any field.--- Field paths may be quoted using \` (backtick). The only character that--- needs to be escaped within a quoted field path is the backtick character--- itself, escaped using a backslash. Special characters in field paths--- that must be quoted include: \`*\`, \`.\`, \`\`\` (backtick), \`[\`,--- \`]\`, as well as any ascii symbolic characters. Examples: (Note:--- Comments here are written in markdown syntax, so there is an additional--- layer of backticks to represent a code block) \`\\\`address.city\\\`\`--- represents a field named \`address.city\`, not the map key \`city\` in--- the field \`address\`. \`\\\`*\\\`\` represents a field named \`*\`, not--- any field. A special \`Field\` contains the default indexing settings--- for all fields. This field\'s resource name is:--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/__default__\/fields\/*\`--- Indexes defined on this \`Field\` will be applied to all fields which do--- not have their own \`Field\` index configuration.-gfavfName :: Lens' GoogleFirestoreAdminV1Field (Maybe Text)-gfavfName- = lens _gfavfName (\ s a -> s{_gfavfName = a})--instance FromJSON GoogleFirestoreAdminV1Field where- parseJSON- = withObject "GoogleFirestoreAdminV1Field"- (\ o ->- GoogleFirestoreAdminV1Field' <$>- (o .:? "indexConfig") <*> (o .:? "name"))--instance ToJSON GoogleFirestoreAdminV1Field where- toJSON GoogleFirestoreAdminV1Field'{..}- = object- (catMaybes- [("indexConfig" .=) <$> _gfavfIndexConfig,- ("name" .=) <$> _gfavfName])---- | Options for creating a new transaction.------ /See:/ 'transactionOptions' smart constructor.-data TransactionOptions =- TransactionOptions'- { _toReadWrite :: !(Maybe ReadWrite)- , _toReadOnly :: !(Maybe ReadOnly)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'TransactionOptions' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'toReadWrite'------ * 'toReadOnly'-transactionOptions- :: TransactionOptions-transactionOptions =- TransactionOptions' {_toReadWrite = Nothing, _toReadOnly = Nothing}----- | The transaction can be used for both read and write operations.-toReadWrite :: Lens' TransactionOptions (Maybe ReadWrite)-toReadWrite- = lens _toReadWrite (\ s a -> s{_toReadWrite = a})---- | The transaction can only be used for read operations.-toReadOnly :: Lens' TransactionOptions (Maybe ReadOnly)-toReadOnly- = lens _toReadOnly (\ s a -> s{_toReadOnly = a})--instance FromJSON TransactionOptions where- parseJSON- = withObject "TransactionOptions"- (\ o ->- TransactionOptions' <$>- (o .:? "readWrite") <*> (o .:? "readOnly"))--instance ToJSON TransactionOptions where- toJSON TransactionOptions'{..}- = object- (catMaybes- [("readWrite" .=) <$> _toReadWrite,- ("readOnly" .=) <$> _toReadOnly])---- | The \`Status\` type defines a logical error model that is suitable for--- different programming environments, including REST APIs and RPC APIs. It--- is used by [gRPC](https:\/\/github.com\/grpc). The error model is--- designed to be: - Simple to use and understand for most users - Flexible--- enough to meet unexpected needs # Overview The \`Status\` message--- contains three pieces of data: error code, error message, and error--- details. The error code should be an enum value of google.rpc.Code, but--- it may accept additional error codes if needed. The error message should--- be a developer-facing English message that helps developers *understand*--- and *resolve* the error. If a localized user-facing error message is--- needed, put the localized message in the error details or localize it in--- the client. The optional error details may contain arbitrary information--- about the error. There is a predefined set of error detail types in the--- package \`google.rpc\` that can be used for common error conditions. #--- Language mapping The \`Status\` message is the logical representation of--- the error model, but it is not necessarily the actual wire format. When--- the \`Status\` message is exposed in different client libraries and--- different wire protocols, it can be mapped differently. For example, it--- will likely be mapped to some exceptions in Java, but more likely mapped--- to some error codes in C. # Other uses The error model and the--- \`Status\` message can be used in a variety of environments, either with--- or without APIs, to provide a consistent developer experience across--- different environments. Example uses of this error model include: ---- Partial errors. If a service needs to return partial errors to the--- client, it may embed the \`Status\` in the normal response to indicate--- the partial errors. - Workflow errors. A typical workflow has multiple--- steps. Each step may have a \`Status\` message for error reporting. ---- Batch operations. If a client uses batch request and batch response, the--- \`Status\` message should be used directly inside batch response, one--- for each error sub-response. - Asynchronous operations. If an API call--- embeds asynchronous operation results in its response, the status of--- those operations should be represented directly using the \`Status\`--- message. - Logging. If some API errors are stored in logs, the message--- \`Status\` could be used directly after any stripping needed for--- security\/privacy reasons.------ /See:/ 'status' smart constructor.-data Status =- Status'- { _sDetails :: !(Maybe [StatusDetailsItem])- , _sCode :: !(Maybe (Textual Int32))- , _sMessage :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Status' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sDetails'------ * 'sCode'------ * 'sMessage'-status- :: Status-status = Status' {_sDetails = Nothing, _sCode = Nothing, _sMessage = Nothing}----- | A list of messages that carry the error details. There is a common set--- of message types for APIs to use.-sDetails :: Lens' Status [StatusDetailsItem]-sDetails- = lens _sDetails (\ s a -> s{_sDetails = a}) .- _Default- . _Coerce---- | The status code, which should be an enum value of google.rpc.Code.-sCode :: Lens' Status (Maybe Int32)-sCode- = lens _sCode (\ s a -> s{_sCode = a}) .- mapping _Coerce---- | A developer-facing error message, which should be in English. Any--- user-facing error message should be localized and sent in the--- google.rpc.Status.details field, or localized by the client.-sMessage :: Lens' Status (Maybe Text)-sMessage = lens _sMessage (\ s a -> s{_sMessage = a})--instance FromJSON Status where- parseJSON- = withObject "Status"- (\ o ->- Status' <$>- (o .:? "details" .!= mempty) <*> (o .:? "code") <*>- (o .:? "message"))--instance ToJSON Status where- toJSON Status'{..}- = object- (catMaybes- [("details" .=) <$> _sDetails,- ("code" .=) <$> _sCode,- ("message" .=) <$> _sMessage])---- | Service-specific metadata associated with the operation. It typically--- contains progress information and common metadata such as create time.--- Some services might not provide such metadata. Any method that returns a--- long-running operation should document the metadata type, if any.------ /See:/ 'googleLongrunningOperationMetadata' smart constructor.-newtype GoogleLongrunningOperationMetadata =- GoogleLongrunningOperationMetadata'- { _glomAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleLongrunningOperationMetadata' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'glomAddtional'-googleLongrunningOperationMetadata- :: HashMap Text JSONValue -- ^ 'glomAddtional'- -> GoogleLongrunningOperationMetadata-googleLongrunningOperationMetadata pGlomAddtional_ =- GoogleLongrunningOperationMetadata'- {_glomAddtional = _Coerce # pGlomAddtional_}----- | Properties of the object. Contains field \'type with type URL.-glomAddtional :: Lens' GoogleLongrunningOperationMetadata (HashMap Text JSONValue)-glomAddtional- = lens _glomAddtional- (\ s a -> s{_glomAddtional = a})- . _Coerce--instance FromJSON GoogleLongrunningOperationMetadata- where- parseJSON- = withObject "GoogleLongrunningOperationMetadata"- (\ o ->- GoogleLongrunningOperationMetadata' <$>- (parseJSONObject o))--instance ToJSON GoogleLongrunningOperationMetadata- where- toJSON = toJSON . _glomAddtional---- | A precondition on a document, used for conditional operations.------ /See:/ 'precondition' smart constructor.-data Precondition =- Precondition'- { _pExists :: !(Maybe Bool)- , _pUpdateTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Precondition' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pExists'------ * 'pUpdateTime'-precondition- :: Precondition-precondition = Precondition' {_pExists = Nothing, _pUpdateTime = Nothing}----- | When set to \`true\`, the target document must exist. When set to--- \`false\`, the target document must not exist.-pExists :: Lens' Precondition (Maybe Bool)-pExists = lens _pExists (\ s a -> s{_pExists = a})---- | When set, the target document must exist and have been last updated at--- that time.-pUpdateTime :: Lens' Precondition (Maybe UTCTime)-pUpdateTime- = lens _pUpdateTime (\ s a -> s{_pUpdateTime = a}) .- mapping _DateTime--instance FromJSON Precondition where- parseJSON- = withObject "Precondition"- (\ o ->- Precondition' <$>- (o .:? "exists") <*> (o .:? "updateTime"))--instance ToJSON Precondition where- toJSON Precondition'{..}- = object- (catMaybes- [("exists" .=) <$> _pExists,- ("updateTime" .=) <$> _pUpdateTime])---- | Options for a transaction that can be used to read and write documents.------ /See:/ 'readWrite' smart constructor.-newtype ReadWrite =- ReadWrite'- { _rwRetryTransaction :: Maybe Bytes- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ReadWrite' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rwRetryTransaction'-readWrite- :: ReadWrite-readWrite = ReadWrite' {_rwRetryTransaction = Nothing}----- | An optional transaction to retry.-rwRetryTransaction :: Lens' ReadWrite (Maybe ByteString)-rwRetryTransaction- = lens _rwRetryTransaction- (\ s a -> s{_rwRetryTransaction = a})- . mapping _Bytes--instance FromJSON ReadWrite where- parseJSON- = withObject "ReadWrite"- (\ o -> ReadWrite' <$> (o .:? "retryTransaction"))--instance ToJSON ReadWrite where- toJSON ReadWrite'{..}- = object- (catMaybes- [("retryTransaction" .=) <$> _rwRetryTransaction])---- | The request for Firestore.Rollback.------ /See:/ 'rollbackRequest' smart constructor.-newtype RollbackRequest =- RollbackRequest'- { _rrTransaction :: Maybe Bytes- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'RollbackRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rrTransaction'-rollbackRequest- :: RollbackRequest-rollbackRequest = RollbackRequest' {_rrTransaction = Nothing}----- | The transaction to roll back.-rrTransaction :: Lens' RollbackRequest (Maybe ByteString)-rrTransaction- = lens _rrTransaction- (\ s a -> s{_rrTransaction = a})- . mapping _Bytes--instance FromJSON RollbackRequest where- parseJSON- = withObject "RollbackRequest"- (\ o -> RollbackRequest' <$> (o .:? "transaction"))--instance ToJSON RollbackRequest where- toJSON RollbackRequest'{..}- = object- (catMaybes [("transaction" .=) <$> _rrTransaction])---- | The request for FirestoreAdmin.ExportDocuments.------ /See:/ 'googleFirestoreAdminV1ExportDocumentsRequest' smart constructor.-data GoogleFirestoreAdminV1ExportDocumentsRequest =- GoogleFirestoreAdminV1ExportDocumentsRequest'- { _gfavedrCollectionIds :: !(Maybe [Text])- , _gfavedrOutputURIPrefix :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1ExportDocumentsRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavedrCollectionIds'------ * 'gfavedrOutputURIPrefix'-googleFirestoreAdminV1ExportDocumentsRequest- :: GoogleFirestoreAdminV1ExportDocumentsRequest-googleFirestoreAdminV1ExportDocumentsRequest =- GoogleFirestoreAdminV1ExportDocumentsRequest'- {_gfavedrCollectionIds = Nothing, _gfavedrOutputURIPrefix = Nothing}----- | Which collection ids to export. Unspecified means all collections.-gfavedrCollectionIds :: Lens' GoogleFirestoreAdminV1ExportDocumentsRequest [Text]-gfavedrCollectionIds- = lens _gfavedrCollectionIds- (\ s a -> s{_gfavedrCollectionIds = a})- . _Default- . _Coerce---- | The output URI. Currently only supports Google Cloud Storage URIs of the--- form: \`gs:\/\/BUCKET_NAME[\/NAMESPACE_PATH]\`, where \`BUCKET_NAME\` is--- the name of the Google Cloud Storage bucket and \`NAMESPACE_PATH\` is an--- optional Google Cloud Storage namespace path. When choosing a name, be--- sure to consider Google Cloud Storage naming guidelines:--- https:\/\/cloud.google.com\/storage\/docs\/naming. If the URI is a--- bucket (without a namespace path), a prefix will be generated based on--- the start time.-gfavedrOutputURIPrefix :: Lens' GoogleFirestoreAdminV1ExportDocumentsRequest (Maybe Text)-gfavedrOutputURIPrefix- = lens _gfavedrOutputURIPrefix- (\ s a -> s{_gfavedrOutputURIPrefix = a})--instance FromJSON- GoogleFirestoreAdminV1ExportDocumentsRequest- where- parseJSON- = withObject- "GoogleFirestoreAdminV1ExportDocumentsRequest"- (\ o ->- GoogleFirestoreAdminV1ExportDocumentsRequest' <$>- (o .:? "collectionIds" .!= mempty) <*>- (o .:? "outputUriPrefix"))--instance ToJSON- GoogleFirestoreAdminV1ExportDocumentsRequest- where- toJSON- GoogleFirestoreAdminV1ExportDocumentsRequest'{..}- = object- (catMaybes- [("collectionIds" .=) <$> _gfavedrCollectionIds,- ("outputUriPrefix" .=) <$> _gfavedrOutputURIPrefix])---- | Targets being watched have changed.------ /See:/ 'targetChange' smart constructor.-data TargetChange =- TargetChange'- { _tcReadTime :: !(Maybe DateTime')- , _tcResumeToken :: !(Maybe Bytes)- , _tcCause :: !(Maybe Status)- , _tcTargetChangeType :: !(Maybe TargetChangeTargetChangeType)- , _tcTargetIds :: !(Maybe [Textual Int32])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'TargetChange' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tcReadTime'------ * 'tcResumeToken'------ * 'tcCause'------ * 'tcTargetChangeType'------ * 'tcTargetIds'-targetChange- :: TargetChange-targetChange =- TargetChange'- { _tcReadTime = Nothing- , _tcResumeToken = Nothing- , _tcCause = Nothing- , _tcTargetChangeType = Nothing- , _tcTargetIds = Nothing- }----- | The consistent \`read_time\` for the given \`target_ids\` (omitted when--- the target_ids are not at a consistent snapshot). The stream is--- guaranteed to send a \`read_time\` with \`target_ids\` empty whenever--- the entire stream reaches a new consistent snapshot. ADD, CURRENT, and--- RESET messages are guaranteed to (eventually) result in a new consistent--- snapshot (while NO_CHANGE and REMOVE messages are not). For a given--- stream, \`read_time\` is guaranteed to be monotonically increasing.-tcReadTime :: Lens' TargetChange (Maybe UTCTime)-tcReadTime- = lens _tcReadTime (\ s a -> s{_tcReadTime = a}) .- mapping _DateTime---- | A token that can be used to resume the stream for the given--- \`target_ids\`, or all targets if \`target_ids\` is empty. Not set on--- every target change.-tcResumeToken :: Lens' TargetChange (Maybe ByteString)-tcResumeToken- = lens _tcResumeToken- (\ s a -> s{_tcResumeToken = a})- . mapping _Bytes---- | The error that resulted in this change, if applicable.-tcCause :: Lens' TargetChange (Maybe Status)-tcCause = lens _tcCause (\ s a -> s{_tcCause = a})---- | The type of change that occurred.-tcTargetChangeType :: Lens' TargetChange (Maybe TargetChangeTargetChangeType)-tcTargetChangeType- = lens _tcTargetChangeType- (\ s a -> s{_tcTargetChangeType = a})---- | The target IDs of targets that have changed. If empty, the change--- applies to all targets. For \`target_change_type=ADD\`, the order of the--- target IDs matches the order of the requests to add the targets. This--- allows clients to unambiguously associate server-assigned target IDs--- with added targets. For other states, the order of the target IDs is not--- defined.-tcTargetIds :: Lens' TargetChange [Int32]-tcTargetIds- = lens _tcTargetIds (\ s a -> s{_tcTargetIds = a}) .- _Default- . _Coerce--instance FromJSON TargetChange where- parseJSON- = withObject "TargetChange"- (\ o ->- TargetChange' <$>- (o .:? "readTime") <*> (o .:? "resumeToken") <*>- (o .:? "cause")- <*> (o .:? "targetChangeType")- <*> (o .:? "targetIds" .!= mempty))--instance ToJSON TargetChange where- toJSON TargetChange'{..}- = object- (catMaybes- [("readTime" .=) <$> _tcReadTime,- ("resumeToken" .=) <$> _tcResumeToken,- ("cause" .=) <$> _tcCause,- ("targetChangeType" .=) <$> _tcTargetChangeType,- ("targetIds" .=) <$> _tcTargetIds])---- | The response message for Locations.ListLocations.------ /See:/ 'listLocationsResponse' smart constructor.-data ListLocationsResponse =- ListLocationsResponse'- { _llrNextPageToken :: !(Maybe Text)- , _llrLocations :: !(Maybe [Location])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListLocationsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'llrNextPageToken'------ * 'llrLocations'-listLocationsResponse- :: ListLocationsResponse-listLocationsResponse =- ListLocationsResponse' {_llrNextPageToken = Nothing, _llrLocations = Nothing}----- | The standard List next-page token.-llrNextPageToken :: Lens' ListLocationsResponse (Maybe Text)-llrNextPageToken- = lens _llrNextPageToken- (\ s a -> s{_llrNextPageToken = a})---- | A list of locations that matches the specified filter in the request.-llrLocations :: Lens' ListLocationsResponse [Location]-llrLocations- = lens _llrLocations (\ s a -> s{_llrLocations = a})- . _Default- . _Coerce--instance FromJSON ListLocationsResponse where- parseJSON- = withObject "ListLocationsResponse"- (\ o ->- ListLocationsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "locations" .!= mempty))--instance ToJSON ListLocationsResponse where- toJSON ListLocationsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _llrNextPageToken,- ("locations" .=) <$> _llrLocations])---- | A position in a query result set.------ /See:/ 'cursor' smart constructor.-data Cursor =- Cursor'- { _cValues :: !(Maybe [Value])- , _cBefore :: !(Maybe Bool)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Cursor' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cValues'------ * 'cBefore'-cursor- :: Cursor-cursor = Cursor' {_cValues = Nothing, _cBefore = Nothing}----- | The values that represent a position, in the order they appear in the--- order by clause of a query. Can contain fewer values than specified in--- the order by clause.-cValues :: Lens' Cursor [Value]-cValues- = lens _cValues (\ s a -> s{_cValues = a}) . _Default- . _Coerce---- | If the position is just before or just after the given values, relative--- to the sort order defined by the query.-cBefore :: Lens' Cursor (Maybe Bool)-cBefore = lens _cBefore (\ s a -> s{_cBefore = a})--instance FromJSON Cursor where- parseJSON- = withObject "Cursor"- (\ o ->- Cursor' <$>- (o .:? "values" .!= mempty) <*> (o .:? "before"))--instance ToJSON Cursor where- toJSON Cursor'{..}- = object- (catMaybes- [("values" .=) <$> _cValues,- ("before" .=) <$> _cBefore])---- | Metadata for google.longrunning.Operation results from--- FirestoreAdmin.ImportDocuments.------ /See:/ 'googleFirestoreAdminV1ImportDocumentsMetadata' smart constructor.-data GoogleFirestoreAdminV1ImportDocumentsMetadata =- GoogleFirestoreAdminV1ImportDocumentsMetadata'- { _gfavidmProgressBytes :: !(Maybe GoogleFirestoreAdminV1Progress)- , _gfavidmStartTime :: !(Maybe DateTime')- , _gfavidmInputURIPrefix :: !(Maybe Text)- , _gfavidmCollectionIds :: !(Maybe [Text])- , _gfavidmProgressDocuments :: !(Maybe GoogleFirestoreAdminV1Progress)- , _gfavidmEndTime :: !(Maybe DateTime')- , _gfavidmOperationState :: !(Maybe GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1ImportDocumentsMetadata' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavidmProgressBytes'------ * 'gfavidmStartTime'------ * 'gfavidmInputURIPrefix'------ * 'gfavidmCollectionIds'------ * 'gfavidmProgressDocuments'------ * 'gfavidmEndTime'------ * 'gfavidmOperationState'-googleFirestoreAdminV1ImportDocumentsMetadata- :: GoogleFirestoreAdminV1ImportDocumentsMetadata-googleFirestoreAdminV1ImportDocumentsMetadata =- GoogleFirestoreAdminV1ImportDocumentsMetadata'- { _gfavidmProgressBytes = Nothing- , _gfavidmStartTime = Nothing- , _gfavidmInputURIPrefix = Nothing- , _gfavidmCollectionIds = Nothing- , _gfavidmProgressDocuments = Nothing- , _gfavidmEndTime = Nothing- , _gfavidmOperationState = Nothing- }----- | The progress, in bytes, of this operation.-gfavidmProgressBytes :: Lens' GoogleFirestoreAdminV1ImportDocumentsMetadata (Maybe GoogleFirestoreAdminV1Progress)-gfavidmProgressBytes- = lens _gfavidmProgressBytes- (\ s a -> s{_gfavidmProgressBytes = a})---- | The time this operation started.-gfavidmStartTime :: Lens' GoogleFirestoreAdminV1ImportDocumentsMetadata (Maybe UTCTime)-gfavidmStartTime- = lens _gfavidmStartTime- (\ s a -> s{_gfavidmStartTime = a})- . mapping _DateTime---- | The location of the documents being imported.-gfavidmInputURIPrefix :: Lens' GoogleFirestoreAdminV1ImportDocumentsMetadata (Maybe Text)-gfavidmInputURIPrefix- = lens _gfavidmInputURIPrefix- (\ s a -> s{_gfavidmInputURIPrefix = a})---- | Which collection ids are being imported.-gfavidmCollectionIds :: Lens' GoogleFirestoreAdminV1ImportDocumentsMetadata [Text]-gfavidmCollectionIds- = lens _gfavidmCollectionIds- (\ s a -> s{_gfavidmCollectionIds = a})- . _Default- . _Coerce---- | The progress, in documents, of this operation.-gfavidmProgressDocuments :: Lens' GoogleFirestoreAdminV1ImportDocumentsMetadata (Maybe GoogleFirestoreAdminV1Progress)-gfavidmProgressDocuments- = lens _gfavidmProgressDocuments- (\ s a -> s{_gfavidmProgressDocuments = a})---- | The time this operation completed. Will be unset if operation still in--- progress.-gfavidmEndTime :: Lens' GoogleFirestoreAdminV1ImportDocumentsMetadata (Maybe UTCTime)-gfavidmEndTime- = lens _gfavidmEndTime- (\ s a -> s{_gfavidmEndTime = a})- . mapping _DateTime---- | The state of the import operation.-gfavidmOperationState :: Lens' GoogleFirestoreAdminV1ImportDocumentsMetadata (Maybe GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState)-gfavidmOperationState- = lens _gfavidmOperationState- (\ s a -> s{_gfavidmOperationState = a})--instance FromJSON- GoogleFirestoreAdminV1ImportDocumentsMetadata- where- parseJSON- = withObject- "GoogleFirestoreAdminV1ImportDocumentsMetadata"- (\ o ->- GoogleFirestoreAdminV1ImportDocumentsMetadata' <$>- (o .:? "progressBytes") <*> (o .:? "startTime") <*>- (o .:? "inputUriPrefix")- <*> (o .:? "collectionIds" .!= mempty)- <*> (o .:? "progressDocuments")- <*> (o .:? "endTime")- <*> (o .:? "operationState"))--instance ToJSON- GoogleFirestoreAdminV1ImportDocumentsMetadata- where- toJSON- GoogleFirestoreAdminV1ImportDocumentsMetadata'{..}- = object- (catMaybes- [("progressBytes" .=) <$> _gfavidmProgressBytes,- ("startTime" .=) <$> _gfavidmStartTime,- ("inputUriPrefix" .=) <$> _gfavidmInputURIPrefix,- ("collectionIds" .=) <$> _gfavidmCollectionIds,- ("progressDocuments" .=) <$>- _gfavidmProgressDocuments,- ("endTime" .=) <$> _gfavidmEndTime,- ("operationState" .=) <$> _gfavidmOperationState])---- | The request for Firestore.BeginTransaction.------ /See:/ 'beginTransactionRequest' smart constructor.-newtype BeginTransactionRequest =- BeginTransactionRequest'- { _btrOptions :: Maybe TransactionOptions- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'BeginTransactionRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'btrOptions'-beginTransactionRequest- :: BeginTransactionRequest-beginTransactionRequest = BeginTransactionRequest' {_btrOptions = Nothing}----- | The options for the transaction. Defaults to a read-write transaction.-btrOptions :: Lens' BeginTransactionRequest (Maybe TransactionOptions)-btrOptions- = lens _btrOptions (\ s a -> s{_btrOptions = a})--instance FromJSON BeginTransactionRequest where- parseJSON- = withObject "BeginTransactionRequest"- (\ o ->- BeginTransactionRequest' <$> (o .:? "options"))--instance ToJSON BeginTransactionRequest where- toJSON BeginTransactionRequest'{..}- = object (catMaybes [("options" .=) <$> _btrOptions])---- | The request for Firestore.RunQuery.------ /See:/ 'runQueryRequest' smart constructor.-data RunQueryRequest =- RunQueryRequest'- { _rqrReadTime :: !(Maybe DateTime')- , _rqrNewTransaction :: !(Maybe TransactionOptions)- , _rqrStructuredQuery :: !(Maybe StructuredQuery)- , _rqrTransaction :: !(Maybe Bytes)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'RunQueryRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rqrReadTime'------ * 'rqrNewTransaction'------ * 'rqrStructuredQuery'------ * 'rqrTransaction'-runQueryRequest- :: RunQueryRequest-runQueryRequest =- RunQueryRequest'- { _rqrReadTime = Nothing- , _rqrNewTransaction = Nothing- , _rqrStructuredQuery = Nothing- , _rqrTransaction = Nothing- }----- | Reads documents as they were at the given time. This may not be older--- than 60 seconds.-rqrReadTime :: Lens' RunQueryRequest (Maybe UTCTime)-rqrReadTime- = lens _rqrReadTime (\ s a -> s{_rqrReadTime = a}) .- mapping _DateTime---- | Starts a new transaction and reads the documents. Defaults to a--- read-only transaction. The new transaction ID will be returned as the--- first response in the stream.-rqrNewTransaction :: Lens' RunQueryRequest (Maybe TransactionOptions)-rqrNewTransaction- = lens _rqrNewTransaction- (\ s a -> s{_rqrNewTransaction = a})---- | A structured query.-rqrStructuredQuery :: Lens' RunQueryRequest (Maybe StructuredQuery)-rqrStructuredQuery- = lens _rqrStructuredQuery- (\ s a -> s{_rqrStructuredQuery = a})---- | Reads documents in a transaction.-rqrTransaction :: Lens' RunQueryRequest (Maybe ByteString)-rqrTransaction- = lens _rqrTransaction- (\ s a -> s{_rqrTransaction = a})- . mapping _Bytes--instance FromJSON RunQueryRequest where- parseJSON- = withObject "RunQueryRequest"- (\ o ->- RunQueryRequest' <$>- (o .:? "readTime") <*> (o .:? "newTransaction") <*>- (o .:? "structuredQuery")- <*> (o .:? "transaction"))--instance ToJSON RunQueryRequest where- toJSON RunQueryRequest'{..}- = object- (catMaybes- [("readTime" .=) <$> _rqrReadTime,- ("newTransaction" .=) <$> _rqrNewTransaction,- ("structuredQuery" .=) <$> _rqrStructuredQuery,- ("transaction" .=) <$> _rqrTransaction])---- | Information about an index configuration change.------ /See:/ 'googleFirestoreAdminV1IndexConfigDelta' smart constructor.-data GoogleFirestoreAdminV1IndexConfigDelta =- GoogleFirestoreAdminV1IndexConfigDelta'- { _gfavicdIndex :: !(Maybe GoogleFirestoreAdminV1Index)- , _gfavicdChangeType :: !(Maybe GoogleFirestoreAdminV1IndexConfigDeltaChangeType)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1IndexConfigDelta' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavicdIndex'------ * 'gfavicdChangeType'-googleFirestoreAdminV1IndexConfigDelta- :: GoogleFirestoreAdminV1IndexConfigDelta-googleFirestoreAdminV1IndexConfigDelta =- GoogleFirestoreAdminV1IndexConfigDelta'- {_gfavicdIndex = Nothing, _gfavicdChangeType = Nothing}----- | The index being changed.-gfavicdIndex :: Lens' GoogleFirestoreAdminV1IndexConfigDelta (Maybe GoogleFirestoreAdminV1Index)-gfavicdIndex- = lens _gfavicdIndex (\ s a -> s{_gfavicdIndex = a})---- | Specifies how the index is changing.-gfavicdChangeType :: Lens' GoogleFirestoreAdminV1IndexConfigDelta (Maybe GoogleFirestoreAdminV1IndexConfigDeltaChangeType)-gfavicdChangeType- = lens _gfavicdChangeType- (\ s a -> s{_gfavicdChangeType = a})--instance FromJSON- GoogleFirestoreAdminV1IndexConfigDelta- where- parseJSON- = withObject "GoogleFirestoreAdminV1IndexConfigDelta"- (\ o ->- GoogleFirestoreAdminV1IndexConfigDelta' <$>- (o .:? "index") <*> (o .:? "changeType"))--instance ToJSON- GoogleFirestoreAdminV1IndexConfigDelta- where- toJSON GoogleFirestoreAdminV1IndexConfigDelta'{..}- = object- (catMaybes- [("index" .=) <$> _gfavicdIndex,- ("changeType" .=) <$> _gfavicdChangeType])---- | The index configuration for this field.------ /See:/ 'googleFirestoreAdminV1IndexConfig' smart constructor.-data GoogleFirestoreAdminV1IndexConfig =- GoogleFirestoreAdminV1IndexConfig'- { _gfavicAncestorField :: !(Maybe Text)- , _gfavicReverting :: !(Maybe Bool)- , _gfavicIndexes :: !(Maybe [GoogleFirestoreAdminV1Index])- , _gfavicUsesAncestorConfig :: !(Maybe Bool)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1IndexConfig' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavicAncestorField'------ * 'gfavicReverting'------ * 'gfavicIndexes'------ * 'gfavicUsesAncestorConfig'-googleFirestoreAdminV1IndexConfig- :: GoogleFirestoreAdminV1IndexConfig-googleFirestoreAdminV1IndexConfig =- GoogleFirestoreAdminV1IndexConfig'- { _gfavicAncestorField = Nothing- , _gfavicReverting = Nothing- , _gfavicIndexes = Nothing- , _gfavicUsesAncestorConfig = Nothing- }----- | Output only. Specifies the resource name of the \`Field\` from which--- this field\'s index configuration is set (when \`uses_ancestor_config\`--- is true), or from which it *would* be set if this field had no index--- configuration (when \`uses_ancestor_config\` is false).-gfavicAncestorField :: Lens' GoogleFirestoreAdminV1IndexConfig (Maybe Text)-gfavicAncestorField- = lens _gfavicAncestorField- (\ s a -> s{_gfavicAncestorField = a})---- | Output only When true, the \`Field\`\'s index configuration is in the--- process of being reverted. Once complete, the index config will--- transition to the same state as the field specified by--- \`ancestor_field\`, at which point \`uses_ancestor_config\` will be--- \`true\` and \`reverting\` will be \`false\`.-gfavicReverting :: Lens' GoogleFirestoreAdminV1IndexConfig (Maybe Bool)-gfavicReverting- = lens _gfavicReverting- (\ s a -> s{_gfavicReverting = a})---- | The indexes supported for this field.-gfavicIndexes :: Lens' GoogleFirestoreAdminV1IndexConfig [GoogleFirestoreAdminV1Index]-gfavicIndexes- = lens _gfavicIndexes- (\ s a -> s{_gfavicIndexes = a})- . _Default- . _Coerce---- | Output only. When true, the \`Field\`\'s index configuration is set from--- the configuration specified by the \`ancestor_field\`. When false, the--- \`Field\`\'s index configuration is defined explicitly.-gfavicUsesAncestorConfig :: Lens' GoogleFirestoreAdminV1IndexConfig (Maybe Bool)-gfavicUsesAncestorConfig- = lens _gfavicUsesAncestorConfig- (\ s a -> s{_gfavicUsesAncestorConfig = a})--instance FromJSON GoogleFirestoreAdminV1IndexConfig- where- parseJSON- = withObject "GoogleFirestoreAdminV1IndexConfig"- (\ o ->- GoogleFirestoreAdminV1IndexConfig' <$>- (o .:? "ancestorField") <*> (o .:? "reverting") <*>- (o .:? "indexes" .!= mempty)- <*> (o .:? "usesAncestorConfig"))--instance ToJSON GoogleFirestoreAdminV1IndexConfig- where- toJSON GoogleFirestoreAdminV1IndexConfig'{..}- = object- (catMaybes- [("ancestorField" .=) <$> _gfavicAncestorField,- ("reverting" .=) <$> _gfavicReverting,- ("indexes" .=) <$> _gfavicIndexes,- ("usesAncestorConfig" .=) <$>- _gfavicUsesAncestorConfig])---- | A field in an index. The field_path describes which field is indexed,--- the value_mode describes how the field value is indexed.------ /See:/ 'googleFirestoreAdminV1IndexField' smart constructor.-data GoogleFirestoreAdminV1IndexField =- GoogleFirestoreAdminV1IndexField'- { _gfavifFieldPath :: !(Maybe Text)- , _gfavifArrayConfig :: !(Maybe GoogleFirestoreAdminV1IndexFieldArrayConfig)- , _gfavifOrder :: !(Maybe GoogleFirestoreAdminV1IndexFieldOrder)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1IndexField' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavifFieldPath'------ * 'gfavifArrayConfig'------ * 'gfavifOrder'-googleFirestoreAdminV1IndexField- :: GoogleFirestoreAdminV1IndexField-googleFirestoreAdminV1IndexField =- GoogleFirestoreAdminV1IndexField'- { _gfavifFieldPath = Nothing- , _gfavifArrayConfig = Nothing- , _gfavifOrder = Nothing- }----- | Can be __name__. For single field indexes, this must match the name of--- the field or may be omitted.-gfavifFieldPath :: Lens' GoogleFirestoreAdminV1IndexField (Maybe Text)-gfavifFieldPath- = lens _gfavifFieldPath- (\ s a -> s{_gfavifFieldPath = a})---- | Indicates that this field supports operations on \`array_value\`s.-gfavifArrayConfig :: Lens' GoogleFirestoreAdminV1IndexField (Maybe GoogleFirestoreAdminV1IndexFieldArrayConfig)-gfavifArrayConfig- = lens _gfavifArrayConfig- (\ s a -> s{_gfavifArrayConfig = a})---- | Indicates that this field supports ordering by the specified order or--- comparing using =, \<, \<=, >, >=.-gfavifOrder :: Lens' GoogleFirestoreAdminV1IndexField (Maybe GoogleFirestoreAdminV1IndexFieldOrder)-gfavifOrder- = lens _gfavifOrder (\ s a -> s{_gfavifOrder = a})--instance FromJSON GoogleFirestoreAdminV1IndexField- where- parseJSON- = withObject "GoogleFirestoreAdminV1IndexField"- (\ o ->- GoogleFirestoreAdminV1IndexField' <$>- (o .:? "fieldPath") <*> (o .:? "arrayConfig") <*>- (o .:? "order"))--instance ToJSON GoogleFirestoreAdminV1IndexField- where- toJSON GoogleFirestoreAdminV1IndexField'{..}- = object- (catMaybes- [("fieldPath" .=) <$> _gfavifFieldPath,- ("arrayConfig" .=) <$> _gfavifArrayConfig,- ("order" .=) <$> _gfavifOrder])---- | A write on a document.------ /See:/ 'write' smart constructor.-data Write =- Write'- { _wTransform :: !(Maybe DocumentTransform)- , _wUpdateMask :: !(Maybe DocumentMask)- , _wCurrentDocument :: !(Maybe Precondition)- , _wDelete :: !(Maybe Text)- , _wUpdate :: !(Maybe Document)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Write' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wTransform'------ * 'wUpdateMask'------ * 'wCurrentDocument'------ * 'wDelete'------ * 'wUpdate'-write- :: Write-write =- Write'- { _wTransform = Nothing- , _wUpdateMask = Nothing- , _wCurrentDocument = Nothing- , _wDelete = Nothing- , _wUpdate = Nothing- }----- | Applies a transformation to a document. At most one \`transform\` per--- document is allowed in a given request. An \`update\` cannot follow a--- \`transform\` on the same document in a given request.-wTransform :: Lens' Write (Maybe DocumentTransform)-wTransform- = lens _wTransform (\ s a -> s{_wTransform = a})---- | The fields to update in this write. This field can be set only when the--- operation is \`update\`. If the mask is not set for an \`update\` and--- the document exists, any existing data will be overwritten. If the mask--- is set and the document on the server has fields not covered by the--- mask, they are left unchanged. Fields referenced in the mask, but not--- present in the input document, are deleted from the document on the--- server. The field paths in this mask must not contain a reserved field--- name.-wUpdateMask :: Lens' Write (Maybe DocumentMask)-wUpdateMask- = lens _wUpdateMask (\ s a -> s{_wUpdateMask = a})---- | An optional precondition on the document. The write will fail if this is--- set and not met by the target document.-wCurrentDocument :: Lens' Write (Maybe Precondition)-wCurrentDocument- = lens _wCurrentDocument- (\ s a -> s{_wCurrentDocument = a})---- | A document name to delete. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.-wDelete :: Lens' Write (Maybe Text)-wDelete = lens _wDelete (\ s a -> s{_wDelete = a})---- | A document to write.-wUpdate :: Lens' Write (Maybe Document)-wUpdate = lens _wUpdate (\ s a -> s{_wUpdate = a})--instance FromJSON Write where- parseJSON- = withObject "Write"- (\ o ->- Write' <$>- (o .:? "transform") <*> (o .:? "updateMask") <*>- (o .:? "currentDocument")- <*> (o .:? "delete")- <*> (o .:? "update"))--instance ToJSON Write where- toJSON Write'{..}- = object- (catMaybes- [("transform" .=) <$> _wTransform,- ("updateMask" .=) <$> _wUpdateMask,- ("currentDocument" .=) <$> _wCurrentDocument,- ("delete" .=) <$> _wDelete,- ("update" .=) <$> _wUpdate])---- | A resource that represents Google Cloud Platform location.------ /See:/ 'location' smart constructor.-data Location =- Location'- { _lName :: !(Maybe Text)- , _lMetadata :: !(Maybe LocationMetadata)- , _lDisplayName :: !(Maybe Text)- , _lLabels :: !(Maybe LocationLabels)- , _lLocationId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Location' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lName'------ * 'lMetadata'------ * 'lDisplayName'------ * 'lLabels'------ * 'lLocationId'-location- :: Location-location =- Location'- { _lName = Nothing- , _lMetadata = Nothing- , _lDisplayName = Nothing- , _lLabels = Nothing- , _lLocationId = Nothing- }----- | Resource name for the location, which may vary between implementations.--- For example: \`\"projects\/example-project\/locations\/us-east1\"\`-lName :: Lens' Location (Maybe Text)-lName = lens _lName (\ s a -> s{_lName = a})---- | Service-specific metadata. For example the available capacity at the--- given location.-lMetadata :: Lens' Location (Maybe LocationMetadata)-lMetadata- = lens _lMetadata (\ s a -> s{_lMetadata = a})---- | The friendly name for this location, typically a nearby city name. For--- example, \"Tokyo\".-lDisplayName :: Lens' Location (Maybe Text)-lDisplayName- = lens _lDisplayName (\ s a -> s{_lDisplayName = a})---- | Cross-service attributes for the location. For example--- {\"cloud.googleapis.com\/region\": \"us-east1\"}-lLabels :: Lens' Location (Maybe LocationLabels)-lLabels = lens _lLabels (\ s a -> s{_lLabels = a})---- | The canonical id for this location. For example: \`\"us-east1\"\`.-lLocationId :: Lens' Location (Maybe Text)-lLocationId- = lens _lLocationId (\ s a -> s{_lLocationId = a})--instance FromJSON Location where- parseJSON- = withObject "Location"- (\ o ->- Location' <$>- (o .:? "name") <*> (o .:? "metadata") <*>- (o .:? "displayName")- <*> (o .:? "labels")- <*> (o .:? "locationId"))--instance ToJSON Location where- toJSON Location'{..}- = object- (catMaybes- [("name" .=) <$> _lName,- ("metadata" .=) <$> _lMetadata,- ("displayName" .=) <$> _lDisplayName,- ("labels" .=) <$> _lLabels,- ("locationId" .=) <$> _lLocationId])---- | A generic empty message that you can re-use to avoid defining duplicated--- empty messages in your APIs. A typical example is to use it as the--- request or the response type of an API method. For instance: service Foo--- { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The--- JSON representation for \`Empty\` is empty JSON object \`{}\`.------ /See:/ 'empty' smart constructor.-data Empty =- Empty'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Empty' with the minimum fields required to make a request.----empty- :: Empty-empty = Empty'---instance FromJSON Empty where- parseJSON = withObject "Empty" (\ o -> pure Empty')--instance ToJSON Empty where- toJSON = const emptyObject---- | The streamed response for Firestore.BatchGetDocuments.------ /See:/ 'batchGetDocumentsResponse' smart constructor.-data BatchGetDocumentsResponse =- BatchGetDocumentsResponse'- { _bgdrReadTime :: !(Maybe DateTime')- , _bgdrFound :: !(Maybe Document)- , _bgdrTransaction :: !(Maybe Bytes)- , _bgdrMissing :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'BatchGetDocumentsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'bgdrReadTime'------ * 'bgdrFound'------ * 'bgdrTransaction'------ * 'bgdrMissing'-batchGetDocumentsResponse- :: BatchGetDocumentsResponse-batchGetDocumentsResponse =- BatchGetDocumentsResponse'- { _bgdrReadTime = Nothing- , _bgdrFound = Nothing- , _bgdrTransaction = Nothing- , _bgdrMissing = Nothing- }----- | The time at which the document was read. This may be monotically--- increasing, in this case the previous documents in the result stream are--- guaranteed not to have changed between their read_time and this one.-bgdrReadTime :: Lens' BatchGetDocumentsResponse (Maybe UTCTime)-bgdrReadTime- = lens _bgdrReadTime (\ s a -> s{_bgdrReadTime = a})- . mapping _DateTime---- | A document that was requested.-bgdrFound :: Lens' BatchGetDocumentsResponse (Maybe Document)-bgdrFound- = lens _bgdrFound (\ s a -> s{_bgdrFound = a})---- | The transaction that was started as part of this request. Will only be--- set in the first response, and only if--- BatchGetDocumentsRequest.new_transaction was set in the request.-bgdrTransaction :: Lens' BatchGetDocumentsResponse (Maybe ByteString)-bgdrTransaction- = lens _bgdrTransaction- (\ s a -> s{_bgdrTransaction = a})- . mapping _Bytes---- | A document name that was requested but does not exist. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.-bgdrMissing :: Lens' BatchGetDocumentsResponse (Maybe Text)-bgdrMissing- = lens _bgdrMissing (\ s a -> s{_bgdrMissing = a})--instance FromJSON BatchGetDocumentsResponse where- parseJSON- = withObject "BatchGetDocumentsResponse"- (\ o ->- BatchGetDocumentsResponse' <$>- (o .:? "readTime") <*> (o .:? "found") <*>- (o .:? "transaction")- <*> (o .:? "missing"))--instance ToJSON BatchGetDocumentsResponse where- toJSON BatchGetDocumentsResponse'{..}- = object- (catMaybes- [("readTime" .=) <$> _bgdrReadTime,- ("found" .=) <$> _bgdrFound,- ("transaction" .=) <$> _bgdrTransaction,- ("missing" .=) <$> _bgdrMissing])---- | A filter that merges multiple other filters using the given operator.------ /See:/ 'compositeFilter' smart constructor.-data CompositeFilter =- CompositeFilter'- { _cfOp :: !(Maybe CompositeFilterOp)- , _cfFilters :: !(Maybe [Filter])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CompositeFilter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cfOp'------ * 'cfFilters'-compositeFilter- :: CompositeFilter-compositeFilter = CompositeFilter' {_cfOp = Nothing, _cfFilters = Nothing}----- | The operator for combining multiple filters.-cfOp :: Lens' CompositeFilter (Maybe CompositeFilterOp)-cfOp = lens _cfOp (\ s a -> s{_cfOp = a})---- | The list of filters to combine. Must contain at least one filter.-cfFilters :: Lens' CompositeFilter [Filter]-cfFilters- = lens _cfFilters (\ s a -> s{_cfFilters = a}) .- _Default- . _Coerce--instance FromJSON CompositeFilter where- parseJSON- = withObject "CompositeFilter"- (\ o ->- CompositeFilter' <$>- (o .:? "op") <*> (o .:? "filters" .!= mempty))--instance ToJSON CompositeFilter where- toJSON CompositeFilter'{..}- = object- (catMaybes- [("op" .=) <$> _cfOp, ("filters" .=) <$> _cfFilters])---- | A target specified by a set of documents names.------ /See:/ 'documentsTarget' smart constructor.-newtype DocumentsTarget =- DocumentsTarget'- { _dtDocuments :: Maybe [Text]- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DocumentsTarget' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dtDocuments'-documentsTarget- :: DocumentsTarget-documentsTarget = DocumentsTarget' {_dtDocuments = Nothing}----- | The names of the documents to retrieve. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.--- The request will fail if any of the document is not a child resource of--- the given \`database\`. Duplicate names will be elided.-dtDocuments :: Lens' DocumentsTarget [Text]-dtDocuments- = lens _dtDocuments (\ s a -> s{_dtDocuments = a}) .- _Default- . _Coerce--instance FromJSON DocumentsTarget where- parseJSON- = withObject "DocumentsTarget"- (\ o ->- DocumentsTarget' <$> (o .:? "documents" .!= mempty))--instance ToJSON DocumentsTarget where- toJSON DocumentsTarget'{..}- = object- (catMaybes [("documents" .=) <$> _dtDocuments])---- | Labels associated with this target change.------ /See:/ 'listenRequestLabels' smart constructor.-newtype ListenRequestLabels =- ListenRequestLabels'- { _lrlAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListenRequestLabels' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lrlAddtional'-listenRequestLabels- :: HashMap Text Text -- ^ 'lrlAddtional'- -> ListenRequestLabels-listenRequestLabels pLrlAddtional_ =- ListenRequestLabels' {_lrlAddtional = _Coerce # pLrlAddtional_}---lrlAddtional :: Lens' ListenRequestLabels (HashMap Text Text)-lrlAddtional- = lens _lrlAddtional (\ s a -> s{_lrlAddtional = a})- . _Coerce--instance FromJSON ListenRequestLabels where- parseJSON- = withObject "ListenRequestLabels"- (\ o -> ListenRequestLabels' <$> (parseJSONObject o))--instance ToJSON ListenRequestLabels where- toJSON = toJSON . _lrlAddtional---- | Cloud Firestore indexes enable simple and complex queries against--- documents in a database.------ /See:/ 'googleFirestoreAdminV1Index' smart constructor.-data GoogleFirestoreAdminV1Index =- GoogleFirestoreAdminV1Index'- { _gfaviState :: !(Maybe GoogleFirestoreAdminV1IndexState)- , _gfaviQueryScope :: !(Maybe GoogleFirestoreAdminV1IndexQueryScope)- , _gfaviName :: !(Maybe Text)- , _gfaviFields :: !(Maybe [GoogleFirestoreAdminV1IndexField])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1Index' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfaviState'------ * 'gfaviQueryScope'------ * 'gfaviName'------ * 'gfaviFields'-googleFirestoreAdminV1Index- :: GoogleFirestoreAdminV1Index-googleFirestoreAdminV1Index =- GoogleFirestoreAdminV1Index'- { _gfaviState = Nothing- , _gfaviQueryScope = Nothing- , _gfaviName = Nothing- , _gfaviFields = Nothing- }----- | Output only. The serving state of the index.-gfaviState :: Lens' GoogleFirestoreAdminV1Index (Maybe GoogleFirestoreAdminV1IndexState)-gfaviState- = lens _gfaviState (\ s a -> s{_gfaviState = a})---- | Indexes with a collection query scope specified allow queries against a--- collection that is the child of a specific document, specified at query--- time, and that has the same collection id. Indexes with a collection--- group query scope specified allow queries against all collections--- descended from a specific document, specified at query time, and that--- have the same collection id as this index.-gfaviQueryScope :: Lens' GoogleFirestoreAdminV1Index (Maybe GoogleFirestoreAdminV1IndexQueryScope)-gfaviQueryScope- = lens _gfaviQueryScope- (\ s a -> s{_gfaviQueryScope = a})---- | Output only. A server defined name for this index. The form of this name--- for composite indexes will be:--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/indexes\/{composite_index_id}\`--- For single field indexes, this field will be empty.-gfaviName :: Lens' GoogleFirestoreAdminV1Index (Maybe Text)-gfaviName- = lens _gfaviName (\ s a -> s{_gfaviName = a})---- | The fields supported by this index. For composite indexes, this is--- always 2 or more fields. The last field entry is always for the field--- path \`__name__\`. If, on creation, \`__name__\` was not specified as--- the last field, it will be added automatically with the same direction--- as that of the last field defined. If the final field in a composite--- index is not directional, the \`__name__\` will be ordered ASCENDING--- (unless explicitly specified). For single field indexes, this will--- always be exactly one entry with a field path equal to the field path of--- the associated field.-gfaviFields :: Lens' GoogleFirestoreAdminV1Index [GoogleFirestoreAdminV1IndexField]-gfaviFields- = lens _gfaviFields (\ s a -> s{_gfaviFields = a}) .- _Default- . _Coerce--instance FromJSON GoogleFirestoreAdminV1Index where- parseJSON- = withObject "GoogleFirestoreAdminV1Index"- (\ o ->- GoogleFirestoreAdminV1Index' <$>- (o .:? "state") <*> (o .:? "queryScope") <*>- (o .:? "name")- <*> (o .:? "fields" .!= mempty))--instance ToJSON GoogleFirestoreAdminV1Index where- toJSON GoogleFirestoreAdminV1Index'{..}- = object- (catMaybes- [("state" .=) <$> _gfaviState,- ("queryScope" .=) <$> _gfaviQueryScope,- ("name" .=) <$> _gfaviName,- ("fields" .=) <$> _gfaviFields])---- | The response for Firestore.BeginTransaction.------ /See:/ 'beginTransactionResponse' smart constructor.-newtype BeginTransactionResponse =- BeginTransactionResponse'- { _btrTransaction :: Maybe Bytes- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'BeginTransactionResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'btrTransaction'-beginTransactionResponse- :: BeginTransactionResponse-beginTransactionResponse = BeginTransactionResponse' {_btrTransaction = Nothing}----- | The transaction that was started.-btrTransaction :: Lens' BeginTransactionResponse (Maybe ByteString)-btrTransaction- = lens _btrTransaction- (\ s a -> s{_btrTransaction = a})- . mapping _Bytes--instance FromJSON BeginTransactionResponse where- parseJSON- = withObject "BeginTransactionResponse"- (\ o ->- BeginTransactionResponse' <$> (o .:? "transaction"))--instance ToJSON BeginTransactionResponse where- toJSON BeginTransactionResponse'{..}- = object- (catMaybes [("transaction" .=) <$> _btrTransaction])---- | The response for Firestore.RunQuery.------ /See:/ 'runQueryResponse' smart constructor.-data RunQueryResponse =- RunQueryResponse'- { _rReadTime :: !(Maybe DateTime')- , _rSkippedResults :: !(Maybe (Textual Int32))- , _rTransaction :: !(Maybe Bytes)- , _rDocument :: !(Maybe Document)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'RunQueryResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rReadTime'------ * 'rSkippedResults'------ * 'rTransaction'------ * 'rDocument'-runQueryResponse- :: RunQueryResponse-runQueryResponse =- RunQueryResponse'- { _rReadTime = Nothing- , _rSkippedResults = Nothing- , _rTransaction = Nothing- , _rDocument = Nothing- }----- | The time at which the document was read. This may be monotonically--- increasing; in this case, the previous documents in the result stream--- are guaranteed not to have changed between their \`read_time\` and this--- one. If the query returns no results, a response with \`read_time\` and--- no \`document\` will be sent, and this represents the time at which the--- query was run.-rReadTime :: Lens' RunQueryResponse (Maybe UTCTime)-rReadTime- = lens _rReadTime (\ s a -> s{_rReadTime = a}) .- mapping _DateTime---- | The number of results that have been skipped due to an offset between--- the last response and the current response.-rSkippedResults :: Lens' RunQueryResponse (Maybe Int32)-rSkippedResults- = lens _rSkippedResults- (\ s a -> s{_rSkippedResults = a})- . mapping _Coerce---- | The transaction that was started as part of this request. Can only be--- set in the first response, and only if RunQueryRequest.new_transaction--- was set in the request. If set, no other fields will be set in this--- response.-rTransaction :: Lens' RunQueryResponse (Maybe ByteString)-rTransaction- = lens _rTransaction (\ s a -> s{_rTransaction = a})- . mapping _Bytes---- | A query result. Not set when reporting partial progress.-rDocument :: Lens' RunQueryResponse (Maybe Document)-rDocument- = lens _rDocument (\ s a -> s{_rDocument = a})--instance FromJSON RunQueryResponse where- parseJSON- = withObject "RunQueryResponse"- (\ o ->- RunQueryResponse' <$>- (o .:? "readTime") <*> (o .:? "skippedResults") <*>- (o .:? "transaction")- <*> (o .:? "document"))--instance ToJSON RunQueryResponse where- toJSON RunQueryResponse'{..}- = object- (catMaybes- [("readTime" .=) <$> _rReadTime,- ("skippedResults" .=) <$> _rSkippedResults,- ("transaction" .=) <$> _rTransaction,- ("document" .=) <$> _rDocument])---- | Metadata for google.longrunning.Operation results from--- FirestoreAdmin.ExportDocuments.------ /See:/ 'googleFirestoreAdminV1ExportDocumentsMetadata' smart constructor.-data GoogleFirestoreAdminV1ExportDocumentsMetadata =- GoogleFirestoreAdminV1ExportDocumentsMetadata'- { _gfavedmProgressBytes :: !(Maybe GoogleFirestoreAdminV1Progress)- , _gfavedmStartTime :: !(Maybe DateTime')- , _gfavedmCollectionIds :: !(Maybe [Text])- , _gfavedmProgressDocuments :: !(Maybe GoogleFirestoreAdminV1Progress)- , _gfavedmEndTime :: !(Maybe DateTime')- , _gfavedmOperationState :: !(Maybe GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState)- , _gfavedmOutputURIPrefix :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1ExportDocumentsMetadata' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavedmProgressBytes'------ * 'gfavedmStartTime'------ * 'gfavedmCollectionIds'------ * 'gfavedmProgressDocuments'------ * 'gfavedmEndTime'------ * 'gfavedmOperationState'------ * 'gfavedmOutputURIPrefix'-googleFirestoreAdminV1ExportDocumentsMetadata- :: GoogleFirestoreAdminV1ExportDocumentsMetadata-googleFirestoreAdminV1ExportDocumentsMetadata =- GoogleFirestoreAdminV1ExportDocumentsMetadata'- { _gfavedmProgressBytes = Nothing- , _gfavedmStartTime = Nothing- , _gfavedmCollectionIds = Nothing- , _gfavedmProgressDocuments = Nothing- , _gfavedmEndTime = Nothing- , _gfavedmOperationState = Nothing- , _gfavedmOutputURIPrefix = Nothing- }----- | The progress, in bytes, of this operation.-gfavedmProgressBytes :: Lens' GoogleFirestoreAdminV1ExportDocumentsMetadata (Maybe GoogleFirestoreAdminV1Progress)-gfavedmProgressBytes- = lens _gfavedmProgressBytes- (\ s a -> s{_gfavedmProgressBytes = a})---- | The time this operation started.-gfavedmStartTime :: Lens' GoogleFirestoreAdminV1ExportDocumentsMetadata (Maybe UTCTime)-gfavedmStartTime- = lens _gfavedmStartTime- (\ s a -> s{_gfavedmStartTime = a})- . mapping _DateTime---- | Which collection ids are being exported.-gfavedmCollectionIds :: Lens' GoogleFirestoreAdminV1ExportDocumentsMetadata [Text]-gfavedmCollectionIds- = lens _gfavedmCollectionIds- (\ s a -> s{_gfavedmCollectionIds = a})- . _Default- . _Coerce---- | The progress, in documents, of this operation.-gfavedmProgressDocuments :: Lens' GoogleFirestoreAdminV1ExportDocumentsMetadata (Maybe GoogleFirestoreAdminV1Progress)-gfavedmProgressDocuments- = lens _gfavedmProgressDocuments- (\ s a -> s{_gfavedmProgressDocuments = a})---- | The time this operation completed. Will be unset if operation still in--- progress.-gfavedmEndTime :: Lens' GoogleFirestoreAdminV1ExportDocumentsMetadata (Maybe UTCTime)-gfavedmEndTime- = lens _gfavedmEndTime- (\ s a -> s{_gfavedmEndTime = a})- . mapping _DateTime---- | The state of the export operation.-gfavedmOperationState :: Lens' GoogleFirestoreAdminV1ExportDocumentsMetadata (Maybe GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState)-gfavedmOperationState- = lens _gfavedmOperationState- (\ s a -> s{_gfavedmOperationState = a})---- | Where the entities are being exported to.-gfavedmOutputURIPrefix :: Lens' GoogleFirestoreAdminV1ExportDocumentsMetadata (Maybe Text)-gfavedmOutputURIPrefix- = lens _gfavedmOutputURIPrefix- (\ s a -> s{_gfavedmOutputURIPrefix = a})--instance FromJSON- GoogleFirestoreAdminV1ExportDocumentsMetadata- where- parseJSON- = withObject- "GoogleFirestoreAdminV1ExportDocumentsMetadata"- (\ o ->- GoogleFirestoreAdminV1ExportDocumentsMetadata' <$>- (o .:? "progressBytes") <*> (o .:? "startTime") <*>- (o .:? "collectionIds" .!= mempty)- <*> (o .:? "progressDocuments")- <*> (o .:? "endTime")- <*> (o .:? "operationState")- <*> (o .:? "outputUriPrefix"))--instance ToJSON- GoogleFirestoreAdminV1ExportDocumentsMetadata- where- toJSON- GoogleFirestoreAdminV1ExportDocumentsMetadata'{..}- = object- (catMaybes- [("progressBytes" .=) <$> _gfavedmProgressBytes,- ("startTime" .=) <$> _gfavedmStartTime,- ("collectionIds" .=) <$> _gfavedmCollectionIds,- ("progressDocuments" .=) <$>- _gfavedmProgressDocuments,- ("endTime" .=) <$> _gfavedmEndTime,- ("operationState" .=) <$> _gfavedmOperationState,- ("outputUriPrefix" .=) <$> _gfavedmOutputURIPrefix])---- | Describes the progress of the operation. Unit of work is generic and--- must be interpreted based on where Progress is used.------ /See:/ 'googleFirestoreAdminV1Progress' smart constructor.-data GoogleFirestoreAdminV1Progress =- GoogleFirestoreAdminV1Progress'- { _gfavpCompletedWork :: !(Maybe (Textual Int64))- , _gfavpEstimatedWork :: !(Maybe (Textual Int64))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1Progress' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavpCompletedWork'------ * 'gfavpEstimatedWork'-googleFirestoreAdminV1Progress- :: GoogleFirestoreAdminV1Progress-googleFirestoreAdminV1Progress =- GoogleFirestoreAdminV1Progress'- {_gfavpCompletedWork = Nothing, _gfavpEstimatedWork = Nothing}----- | The amount of work completed.-gfavpCompletedWork :: Lens' GoogleFirestoreAdminV1Progress (Maybe Int64)-gfavpCompletedWork- = lens _gfavpCompletedWork- (\ s a -> s{_gfavpCompletedWork = a})- . mapping _Coerce---- | The amount of work estimated.-gfavpEstimatedWork :: Lens' GoogleFirestoreAdminV1Progress (Maybe Int64)-gfavpEstimatedWork- = lens _gfavpEstimatedWork- (\ s a -> s{_gfavpEstimatedWork = a})- . mapping _Coerce--instance FromJSON GoogleFirestoreAdminV1Progress- where- parseJSON- = withObject "GoogleFirestoreAdminV1Progress"- (\ o ->- GoogleFirestoreAdminV1Progress' <$>- (o .:? "completedWork") <*> (o .:? "estimatedWork"))--instance ToJSON GoogleFirestoreAdminV1Progress where- toJSON GoogleFirestoreAdminV1Progress'{..}- = object- (catMaybes- [("completedWork" .=) <$> _gfavpCompletedWork,- ("estimatedWork" .=) <$> _gfavpEstimatedWork])---- | A set of field paths on a document. Used to restrict a get or update--- operation on a document to a subset of its fields. This is different--- from standard field masks, as this is always scoped to a Document, and--- takes in account the dynamic nature of Value.------ /See:/ 'documentMask' smart constructor.-newtype DocumentMask =- DocumentMask'- { _dmFieldPaths :: Maybe [Text]- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DocumentMask' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dmFieldPaths'-documentMask- :: DocumentMask-documentMask = DocumentMask' {_dmFieldPaths = Nothing}----- | The list of field paths in the mask. See Document.fields for a field--- path syntax reference.-dmFieldPaths :: Lens' DocumentMask [Text]-dmFieldPaths- = lens _dmFieldPaths (\ s a -> s{_dmFieldPaths = a})- . _Default- . _Coerce--instance FromJSON DocumentMask where- parseJSON- = withObject "DocumentMask"- (\ o ->- DocumentMask' <$> (o .:? "fieldPaths" .!= mempty))--instance ToJSON DocumentMask where- toJSON DocumentMask'{..}- = object- (catMaybes [("fieldPaths" .=) <$> _dmFieldPaths])---- | A target specified by a query.------ /See:/ 'queryTarget' smart constructor.-data QueryTarget =- QueryTarget'- { _qtParent :: !(Maybe Text)- , _qtStructuredQuery :: !(Maybe StructuredQuery)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'QueryTarget' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'qtParent'------ * 'qtStructuredQuery'-queryTarget- :: QueryTarget-queryTarget = QueryTarget' {_qtParent = Nothing, _qtStructuredQuery = Nothing}----- | The parent resource name. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\` or--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.--- For example: \`projects\/my-project\/databases\/my-database\/documents\`--- or--- \`projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom\`-qtParent :: Lens' QueryTarget (Maybe Text)-qtParent = lens _qtParent (\ s a -> s{_qtParent = a})---- | A structured query.-qtStructuredQuery :: Lens' QueryTarget (Maybe StructuredQuery)-qtStructuredQuery- = lens _qtStructuredQuery- (\ s a -> s{_qtStructuredQuery = a})--instance FromJSON QueryTarget where- parseJSON- = withObject "QueryTarget"- (\ o ->- QueryTarget' <$>- (o .:? "parent") <*> (o .:? "structuredQuery"))--instance ToJSON QueryTarget where- toJSON QueryTarget'{..}- = object- (catMaybes- [("parent" .=) <$> _qtParent,- ("structuredQuery" .=) <$> _qtStructuredQuery])---- | A message that can hold any of the supported value types.------ /See:/ 'value' smart constructor.-data Value =- Value'- { _vGeoPointValue :: !(Maybe LatLng)- , _vBytesValue :: !(Maybe Bytes)- , _vIntegerValue :: !(Maybe (Textual Int64))- , _vTimestampValue :: !(Maybe DateTime')- , _vDoubleValue :: !(Maybe (Textual Double))- , _vStringValue :: !(Maybe Text)- , _vBooleanValue :: !(Maybe Bool)- , _vMapValue :: !(Maybe MapValue)- , _vArrayValue :: !(Maybe ArrayValue)- , _vReferenceValue :: !(Maybe Text)- , _vNullValue :: !(Maybe ValueNullValue)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Value' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'vGeoPointValue'------ * 'vBytesValue'------ * 'vIntegerValue'------ * 'vTimestampValue'------ * 'vDoubleValue'------ * 'vStringValue'------ * 'vBooleanValue'------ * 'vMapValue'------ * 'vArrayValue'------ * 'vReferenceValue'------ * 'vNullValue'-value- :: Value-value =- Value'- { _vGeoPointValue = Nothing- , _vBytesValue = Nothing- , _vIntegerValue = Nothing- , _vTimestampValue = Nothing- , _vDoubleValue = Nothing- , _vStringValue = Nothing- , _vBooleanValue = Nothing- , _vMapValue = Nothing- , _vArrayValue = Nothing- , _vReferenceValue = Nothing- , _vNullValue = Nothing- }----- | A geo point value representing a point on the surface of Earth.-vGeoPointValue :: Lens' Value (Maybe LatLng)-vGeoPointValue- = lens _vGeoPointValue- (\ s a -> s{_vGeoPointValue = a})---- | A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500--- bytes are considered by queries.-vBytesValue :: Lens' Value (Maybe ByteString)-vBytesValue- = lens _vBytesValue (\ s a -> s{_vBytesValue = a}) .- mapping _Bytes---- | An integer value.-vIntegerValue :: Lens' Value (Maybe Int64)-vIntegerValue- = lens _vIntegerValue- (\ s a -> s{_vIntegerValue = a})- . mapping _Coerce---- | A timestamp value. Precise only to microseconds. When stored, any--- additional precision is rounded down.-vTimestampValue :: Lens' Value (Maybe UTCTime)-vTimestampValue- = lens _vTimestampValue- (\ s a -> s{_vTimestampValue = a})- . mapping _DateTime---- | A double value.-vDoubleValue :: Lens' Value (Maybe Double)-vDoubleValue- = lens _vDoubleValue (\ s a -> s{_vDoubleValue = a})- . mapping _Coerce---- | A string value. The string, represented as UTF-8, must not exceed 1 MiB--- - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are--- considered by queries.-vStringValue :: Lens' Value (Maybe Text)-vStringValue- = lens _vStringValue (\ s a -> s{_vStringValue = a})---- | A boolean value.-vBooleanValue :: Lens' Value (Maybe Bool)-vBooleanValue- = lens _vBooleanValue- (\ s a -> s{_vBooleanValue = a})---- | A map value.-vMapValue :: Lens' Value (Maybe MapValue)-vMapValue- = lens _vMapValue (\ s a -> s{_vMapValue = a})---- | An array value. Cannot directly contain another array value, though can--- contain an map which contains another array.-vArrayValue :: Lens' Value (Maybe ArrayValue)-vArrayValue- = lens _vArrayValue (\ s a -> s{_vArrayValue = a})---- | A reference to a document. For example:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.-vReferenceValue :: Lens' Value (Maybe Text)-vReferenceValue- = lens _vReferenceValue- (\ s a -> s{_vReferenceValue = a})---- | A null value.-vNullValue :: Lens' Value (Maybe ValueNullValue)-vNullValue- = lens _vNullValue (\ s a -> s{_vNullValue = a})--instance FromJSON Value where- parseJSON- = withObject "Value"- (\ o ->- Value' <$>- (o .:? "geoPointValue") <*> (o .:? "bytesValue") <*>- (o .:? "integerValue")- <*> (o .:? "timestampValue")- <*> (o .:? "doubleValue")- <*> (o .:? "stringValue")- <*> (o .:? "booleanValue")- <*> (o .:? "mapValue")- <*> (o .:? "arrayValue")- <*> (o .:? "referenceValue")- <*> (o .:? "nullValue"))--instance ToJSON Value where- toJSON Value'{..}- = object- (catMaybes- [("geoPointValue" .=) <$> _vGeoPointValue,- ("bytesValue" .=) <$> _vBytesValue,- ("integerValue" .=) <$> _vIntegerValue,- ("timestampValue" .=) <$> _vTimestampValue,- ("doubleValue" .=) <$> _vDoubleValue,- ("stringValue" .=) <$> _vStringValue,- ("booleanValue" .=) <$> _vBooleanValue,- ("mapValue" .=) <$> _vMapValue,- ("arrayValue" .=) <$> _vArrayValue,- ("referenceValue" .=) <$> _vReferenceValue,- ("nullValue" .=) <$> _vNullValue])------- /See:/ 'statusDetailsItem' smart constructor.-newtype StatusDetailsItem =- StatusDetailsItem'- { _sdiAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StatusDetailsItem' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sdiAddtional'-statusDetailsItem- :: HashMap Text JSONValue -- ^ 'sdiAddtional'- -> StatusDetailsItem-statusDetailsItem pSdiAddtional_ =- StatusDetailsItem' {_sdiAddtional = _Coerce # pSdiAddtional_}----- | Properties of the object. Contains field \'type with type URL.-sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)-sdiAddtional- = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})- . _Coerce--instance FromJSON StatusDetailsItem where- parseJSON- = withObject "StatusDetailsItem"- (\ o -> StatusDetailsItem' <$> (parseJSONObject o))--instance ToJSON StatusDetailsItem where- toJSON = toJSON . _sdiAddtional---- | A transformation of a document.------ /See:/ 'documentTransform' smart constructor.-data DocumentTransform =- DocumentTransform'- { _dtDocument :: !(Maybe Text)- , _dtFieldTransforms :: !(Maybe [FieldTransform])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DocumentTransform' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dtDocument'------ * 'dtFieldTransforms'-documentTransform- :: DocumentTransform-documentTransform =- DocumentTransform' {_dtDocument = Nothing, _dtFieldTransforms = Nothing}----- | The name of the document to transform.-dtDocument :: Lens' DocumentTransform (Maybe Text)-dtDocument- = lens _dtDocument (\ s a -> s{_dtDocument = a})---- | The list of transformations to apply to the fields of the document, in--- order. This must not be empty.-dtFieldTransforms :: Lens' DocumentTransform [FieldTransform]-dtFieldTransforms- = lens _dtFieldTransforms- (\ s a -> s{_dtFieldTransforms = a})- . _Default- . _Coerce--instance FromJSON DocumentTransform where- parseJSON- = withObject "DocumentTransform"- (\ o ->- DocumentTransform' <$>- (o .:? "document") <*>- (o .:? "fieldTransforms" .!= mempty))--instance ToJSON DocumentTransform where- toJSON DocumentTransform'{..}- = object- (catMaybes- [("document" .=) <$> _dtDocument,- ("fieldTransforms" .=) <$> _dtFieldTransforms])---- | A Firestore query.------ /See:/ 'structuredQuery' smart constructor.-data StructuredQuery =- StructuredQuery'- { _sqWhere :: !(Maybe Filter)- , _sqOrderBy :: !(Maybe [Order])- , _sqStartAt :: !(Maybe Cursor)- , _sqOffSet :: !(Maybe (Textual Int32))- , _sqFrom :: !(Maybe [CollectionSelector])- , _sqEndAt :: !(Maybe Cursor)- , _sqLimit :: !(Maybe (Textual Int32))- , _sqSelect :: !(Maybe Projection)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StructuredQuery' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sqWhere'------ * 'sqOrderBy'------ * 'sqStartAt'------ * 'sqOffSet'------ * 'sqFrom'------ * 'sqEndAt'------ * 'sqLimit'------ * 'sqSelect'-structuredQuery- :: StructuredQuery-structuredQuery =- StructuredQuery'- { _sqWhere = Nothing- , _sqOrderBy = Nothing- , _sqStartAt = Nothing- , _sqOffSet = Nothing- , _sqFrom = Nothing- , _sqEndAt = Nothing- , _sqLimit = Nothing- , _sqSelect = Nothing- }----- | The filter to apply.-sqWhere :: Lens' StructuredQuery (Maybe Filter)-sqWhere = lens _sqWhere (\ s a -> s{_sqWhere = a})---- | The order to apply to the query results. Firestore guarantees a stable--- ordering through the following rules: * Any field required to appear in--- \`order_by\`, that is not already specified in \`order_by\`, is appended--- to the order in field name order by default. * If an order on--- \`__name__\` is not specified, it is appended by default. Fields are--- appended with the same sort direction as the last order specified, or--- \'ASCENDING\' if no order was specified. For example: * \`SELECT * FROM--- Foo ORDER BY A\` becomes \`SELECT * FROM Foo ORDER BY A, __name__\` *--- \`SELECT * FROM Foo ORDER BY A DESC\` becomes \`SELECT * FROM Foo ORDER--- BY A DESC, __name__ DESC\` * \`SELECT * FROM Foo WHERE A > 1\` becomes--- \`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__\`-sqOrderBy :: Lens' StructuredQuery [Order]-sqOrderBy- = lens _sqOrderBy (\ s a -> s{_sqOrderBy = a}) .- _Default- . _Coerce---- | A starting point for the query results.-sqStartAt :: Lens' StructuredQuery (Maybe Cursor)-sqStartAt- = lens _sqStartAt (\ s a -> s{_sqStartAt = a})---- | The number of results to skip. Applies before limit, but after all other--- constraints. Must be >= 0 if specified.-sqOffSet :: Lens' StructuredQuery (Maybe Int32)-sqOffSet- = lens _sqOffSet (\ s a -> s{_sqOffSet = a}) .- mapping _Coerce---- | The collections to query.-sqFrom :: Lens' StructuredQuery [CollectionSelector]-sqFrom- = lens _sqFrom (\ s a -> s{_sqFrom = a}) . _Default .- _Coerce---- | A end point for the query results.-sqEndAt :: Lens' StructuredQuery (Maybe Cursor)-sqEndAt = lens _sqEndAt (\ s a -> s{_sqEndAt = a})---- | The maximum number of results to return. Applies after all other--- constraints. Must be >= 0 if specified.-sqLimit :: Lens' StructuredQuery (Maybe Int32)-sqLimit- = lens _sqLimit (\ s a -> s{_sqLimit = a}) .- mapping _Coerce---- | The projection to return.-sqSelect :: Lens' StructuredQuery (Maybe Projection)-sqSelect = lens _sqSelect (\ s a -> s{_sqSelect = a})--instance FromJSON StructuredQuery where- parseJSON- = withObject "StructuredQuery"- (\ o ->- StructuredQuery' <$>- (o .:? "where") <*> (o .:? "orderBy" .!= mempty) <*>- (o .:? "startAt")- <*> (o .:? "offset")- <*> (o .:? "from" .!= mempty)- <*> (o .:? "endAt")- <*> (o .:? "limit")- <*> (o .:? "select"))--instance ToJSON StructuredQuery where- toJSON StructuredQuery'{..}- = object- (catMaybes- [("where" .=) <$> _sqWhere,- ("orderBy" .=) <$> _sqOrderBy,- ("startAt" .=) <$> _sqStartAt,- ("offset" .=) <$> _sqOffSet, ("from" .=) <$> _sqFrom,- ("endAt" .=) <$> _sqEndAt, ("limit" .=) <$> _sqLimit,- ("select" .=) <$> _sqSelect])---- | A digest of all the documents that match a given target.------ /See:/ 'existenceFilter' smart constructor.-data ExistenceFilter =- ExistenceFilter'- { _efTargetId :: !(Maybe (Textual Int32))- , _efCount :: !(Maybe (Textual Int32))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ExistenceFilter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'efTargetId'------ * 'efCount'-existenceFilter- :: ExistenceFilter-existenceFilter = ExistenceFilter' {_efTargetId = Nothing, _efCount = Nothing}----- | The target ID to which this filter applies.-efTargetId :: Lens' ExistenceFilter (Maybe Int32)-efTargetId- = lens _efTargetId (\ s a -> s{_efTargetId = a}) .- mapping _Coerce---- | The total count of documents that match target_id. If different from the--- count of documents in the client that match, the client must manually--- determine which documents no longer match the target.-efCount :: Lens' ExistenceFilter (Maybe Int32)-efCount- = lens _efCount (\ s a -> s{_efCount = a}) .- mapping _Coerce--instance FromJSON ExistenceFilter where- parseJSON- = withObject "ExistenceFilter"- (\ o ->- ExistenceFilter' <$>- (o .:? "targetId") <*> (o .:? "count"))--instance ToJSON ExistenceFilter where- toJSON ExistenceFilter'{..}- = object- (catMaybes- [("targetId" .=) <$> _efTargetId,- ("count" .=) <$> _efCount])---- | The response for FirestoreAdmin.ListFields.------ /See:/ 'googleFirestoreAdminV1ListFieldsResponse' smart constructor.-data GoogleFirestoreAdminV1ListFieldsResponse =- GoogleFirestoreAdminV1ListFieldsResponse'- { _gfavlfrNextPageToken :: !(Maybe Text)- , _gfavlfrFields :: !(Maybe [GoogleFirestoreAdminV1Field])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1ListFieldsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavlfrNextPageToken'------ * 'gfavlfrFields'-googleFirestoreAdminV1ListFieldsResponse- :: GoogleFirestoreAdminV1ListFieldsResponse-googleFirestoreAdminV1ListFieldsResponse =- GoogleFirestoreAdminV1ListFieldsResponse'- {_gfavlfrNextPageToken = Nothing, _gfavlfrFields = Nothing}----- | A page token that may be used to request another page of results. If--- blank, this is the last page.-gfavlfrNextPageToken :: Lens' GoogleFirestoreAdminV1ListFieldsResponse (Maybe Text)-gfavlfrNextPageToken- = lens _gfavlfrNextPageToken- (\ s a -> s{_gfavlfrNextPageToken = a})---- | The requested fields.-gfavlfrFields :: Lens' GoogleFirestoreAdminV1ListFieldsResponse [GoogleFirestoreAdminV1Field]-gfavlfrFields- = lens _gfavlfrFields- (\ s a -> s{_gfavlfrFields = a})- . _Default- . _Coerce--instance FromJSON- GoogleFirestoreAdminV1ListFieldsResponse- where- parseJSON- = withObject- "GoogleFirestoreAdminV1ListFieldsResponse"- (\ o ->- GoogleFirestoreAdminV1ListFieldsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "fields" .!= mempty))--instance ToJSON- GoogleFirestoreAdminV1ListFieldsResponse- where- toJSON GoogleFirestoreAdminV1ListFieldsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _gfavlfrNextPageToken,- ("fields" .=) <$> _gfavlfrFields])---- | The request for FirestoreAdmin.ImportDocuments.------ /See:/ 'googleFirestoreAdminV1ImportDocumentsRequest' smart constructor.-data GoogleFirestoreAdminV1ImportDocumentsRequest =- GoogleFirestoreAdminV1ImportDocumentsRequest'- { _gfavidrInputURIPrefix :: !(Maybe Text)- , _gfavidrCollectionIds :: !(Maybe [Text])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1ImportDocumentsRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavidrInputURIPrefix'------ * 'gfavidrCollectionIds'-googleFirestoreAdminV1ImportDocumentsRequest- :: GoogleFirestoreAdminV1ImportDocumentsRequest-googleFirestoreAdminV1ImportDocumentsRequest =- GoogleFirestoreAdminV1ImportDocumentsRequest'- {_gfavidrInputURIPrefix = Nothing, _gfavidrCollectionIds = Nothing}----- | Location of the exported files. This must match the output_uri_prefix of--- an ExportDocumentsResponse from an export that has completed--- successfully. See:--- google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix.-gfavidrInputURIPrefix :: Lens' GoogleFirestoreAdminV1ImportDocumentsRequest (Maybe Text)-gfavidrInputURIPrefix- = lens _gfavidrInputURIPrefix- (\ s a -> s{_gfavidrInputURIPrefix = a})---- | Which collection ids to import. Unspecified means all collections--- included in the import.-gfavidrCollectionIds :: Lens' GoogleFirestoreAdminV1ImportDocumentsRequest [Text]-gfavidrCollectionIds- = lens _gfavidrCollectionIds- (\ s a -> s{_gfavidrCollectionIds = a})- . _Default- . _Coerce--instance FromJSON- GoogleFirestoreAdminV1ImportDocumentsRequest- where- parseJSON- = withObject- "GoogleFirestoreAdminV1ImportDocumentsRequest"- (\ o ->- GoogleFirestoreAdminV1ImportDocumentsRequest' <$>- (o .:? "inputUriPrefix") <*>- (o .:? "collectionIds" .!= mempty))--instance ToJSON- GoogleFirestoreAdminV1ImportDocumentsRequest- where- toJSON- GoogleFirestoreAdminV1ImportDocumentsRequest'{..}- = object- (catMaybes- [("inputUriPrefix" .=) <$> _gfavidrInputURIPrefix,- ("collectionIds" .=) <$> _gfavidrCollectionIds])---- | The metadata message for google.cloud.location.Location.metadata.------ /See:/ 'googleFirestoreAdminV1LocationMetadata' smart constructor.-data GoogleFirestoreAdminV1LocationMetadata =- GoogleFirestoreAdminV1LocationMetadata'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1LocationMetadata' with the minimum fields required to make a request.----googleFirestoreAdminV1LocationMetadata- :: GoogleFirestoreAdminV1LocationMetadata-googleFirestoreAdminV1LocationMetadata = GoogleFirestoreAdminV1LocationMetadata'---instance FromJSON- GoogleFirestoreAdminV1LocationMetadata- where- parseJSON- = withObject "GoogleFirestoreAdminV1LocationMetadata"- (\ o -> pure GoogleFirestoreAdminV1LocationMetadata')--instance ToJSON- GoogleFirestoreAdminV1LocationMetadata- where- toJSON = const emptyObject---- | The request message for Operations.CancelOperation.------ /See:/ 'googleLongrunningCancelOperationRequest' smart constructor.-data GoogleLongrunningCancelOperationRequest =- GoogleLongrunningCancelOperationRequest'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleLongrunningCancelOperationRequest' with the minimum fields required to make a request.----googleLongrunningCancelOperationRequest- :: GoogleLongrunningCancelOperationRequest-googleLongrunningCancelOperationRequest =- GoogleLongrunningCancelOperationRequest'---instance FromJSON- GoogleLongrunningCancelOperationRequest- where- parseJSON- = withObject- "GoogleLongrunningCancelOperationRequest"- (\ o ->- pure GoogleLongrunningCancelOperationRequest')--instance ToJSON- GoogleLongrunningCancelOperationRequest- where- toJSON = const emptyObject---- | The response from Firestore.ListCollectionIds.------ /See:/ 'listCollectionIdsResponse' smart constructor.-data ListCollectionIdsResponse =- ListCollectionIdsResponse'- { _lcirNextPageToken :: !(Maybe Text)- , _lcirCollectionIds :: !(Maybe [Text])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListCollectionIdsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lcirNextPageToken'------ * 'lcirCollectionIds'-listCollectionIdsResponse- :: ListCollectionIdsResponse-listCollectionIdsResponse =- ListCollectionIdsResponse'- {_lcirNextPageToken = Nothing, _lcirCollectionIds = Nothing}----- | A page token that may be used to continue the list.-lcirNextPageToken :: Lens' ListCollectionIdsResponse (Maybe Text)-lcirNextPageToken- = lens _lcirNextPageToken- (\ s a -> s{_lcirNextPageToken = a})---- | The collection ids.-lcirCollectionIds :: Lens' ListCollectionIdsResponse [Text]-lcirCollectionIds- = lens _lcirCollectionIds- (\ s a -> s{_lcirCollectionIds = a})- . _Default- . _Coerce--instance FromJSON ListCollectionIdsResponse where- parseJSON- = withObject "ListCollectionIdsResponse"- (\ o ->- ListCollectionIdsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "collectionIds" .!= mempty))--instance ToJSON ListCollectionIdsResponse where- toJSON ListCollectionIdsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _lcirNextPageToken,- ("collectionIds" .=) <$> _lcirCollectionIds])---- | A reference to a field, such as \`max(messages.time) as max_time\`.------ /See:/ 'fieldReference' smart constructor.-newtype FieldReference =- FieldReference'- { _frFieldPath :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'FieldReference' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'frFieldPath'-fieldReference- :: FieldReference-fieldReference = FieldReference' {_frFieldPath = Nothing}---frFieldPath :: Lens' FieldReference (Maybe Text)-frFieldPath- = lens _frFieldPath (\ s a -> s{_frFieldPath = a})--instance FromJSON FieldReference where- parseJSON- = withObject "FieldReference"- (\ o -> FieldReference' <$> (o .:? "fieldPath"))--instance ToJSON FieldReference where- toJSON FieldReference'{..}- = object- (catMaybes [("fieldPath" .=) <$> _frFieldPath])---- | A Document has been removed from the view of the targets. Sent if the--- document is no longer relevant to a target and is out of view. Can be--- sent instead of a DocumentDelete or a DocumentChange if the server can--- not send the new value of the document. Multiple DocumentRemove messages--- may be returned for the same logical write or delete, if multiple--- targets are affected.------ /See:/ 'documentRemove' smart constructor.-data DocumentRemove =- DocumentRemove'- { _drReadTime :: !(Maybe DateTime')- , _drDocument :: !(Maybe Text)- , _drRemovedTargetIds :: !(Maybe [Textual Int32])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DocumentRemove' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'drReadTime'------ * 'drDocument'------ * 'drRemovedTargetIds'-documentRemove- :: DocumentRemove-documentRemove =- DocumentRemove'- { _drReadTime = Nothing- , _drDocument = Nothing- , _drRemovedTargetIds = Nothing- }----- | The read timestamp at which the remove was observed. Greater or equal to--- the \`commit_time\` of the change\/delete\/remove.-drReadTime :: Lens' DocumentRemove (Maybe UTCTime)-drReadTime- = lens _drReadTime (\ s a -> s{_drReadTime = a}) .- mapping _DateTime---- | The resource name of the Document that has gone out of view.-drDocument :: Lens' DocumentRemove (Maybe Text)-drDocument- = lens _drDocument (\ s a -> s{_drDocument = a})---- | A set of target IDs for targets that previously matched this document.-drRemovedTargetIds :: Lens' DocumentRemove [Int32]-drRemovedTargetIds- = lens _drRemovedTargetIds- (\ s a -> s{_drRemovedTargetIds = a})- . _Default- . _Coerce--instance FromJSON DocumentRemove where- parseJSON- = withObject "DocumentRemove"- (\ o ->- DocumentRemove' <$>- (o .:? "readTime") <*> (o .:? "document") <*>- (o .:? "removedTargetIds" .!= mempty))--instance ToJSON DocumentRemove where- toJSON DocumentRemove'{..}- = object- (catMaybes- [("readTime" .=) <$> _drReadTime,- ("document" .=) <$> _drDocument,- ("removedTargetIds" .=) <$> _drRemovedTargetIds])---- | A Document has changed. May be the result of multiple writes, including--- deletes, that ultimately resulted in a new value for the Document.--- Multiple DocumentChange messages may be returned for the same logical--- change, if multiple targets are affected.------ /See:/ 'documentChange' smart constructor.-data DocumentChange =- DocumentChange'- { _dcDocument :: !(Maybe Document)- , _dcTargetIds :: !(Maybe [Textual Int32])- , _dcRemovedTargetIds :: !(Maybe [Textual Int32])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DocumentChange' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dcDocument'------ * 'dcTargetIds'------ * 'dcRemovedTargetIds'-documentChange- :: DocumentChange-documentChange =- DocumentChange'- { _dcDocument = Nothing- , _dcTargetIds = Nothing- , _dcRemovedTargetIds = Nothing- }----- | The new state of the Document. If \`mask\` is set, contains only fields--- that were updated or added.-dcDocument :: Lens' DocumentChange (Maybe Document)-dcDocument- = lens _dcDocument (\ s a -> s{_dcDocument = a})---- | A set of target IDs of targets that match this document.-dcTargetIds :: Lens' DocumentChange [Int32]-dcTargetIds- = lens _dcTargetIds (\ s a -> s{_dcTargetIds = a}) .- _Default- . _Coerce---- | A set of target IDs for targets that no longer match this document.-dcRemovedTargetIds :: Lens' DocumentChange [Int32]-dcRemovedTargetIds- = lens _dcRemovedTargetIds- (\ s a -> s{_dcRemovedTargetIds = a})- . _Default- . _Coerce--instance FromJSON DocumentChange where- parseJSON- = withObject "DocumentChange"- (\ o ->- DocumentChange' <$>- (o .:? "document") <*> (o .:? "targetIds" .!= mempty)- <*> (o .:? "removedTargetIds" .!= mempty))--instance ToJSON DocumentChange where- toJSON DocumentChange'{..}- = object- (catMaybes- [("document" .=) <$> _dcDocument,- ("targetIds" .=) <$> _dcTargetIds,- ("removedTargetIds" .=) <$> _dcRemovedTargetIds])---- | Metadata for google.longrunning.Operation results from--- FirestoreAdmin.UpdateField.------ /See:/ 'googleFirestoreAdminV1FieldOperationMetadata' smart constructor.-data GoogleFirestoreAdminV1FieldOperationMetadata =- GoogleFirestoreAdminV1FieldOperationMetadata'- { _gfavfomProgressBytes :: !(Maybe GoogleFirestoreAdminV1Progress)- , _gfavfomState :: !(Maybe GoogleFirestoreAdminV1FieldOperationMetadataState)- , _gfavfomField :: !(Maybe Text)- , _gfavfomStartTime :: !(Maybe DateTime')- , _gfavfomProgressDocuments :: !(Maybe GoogleFirestoreAdminV1Progress)- , _gfavfomIndexConfigDeltas :: !(Maybe [GoogleFirestoreAdminV1IndexConfigDelta])- , _gfavfomEndTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1FieldOperationMetadata' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavfomProgressBytes'------ * 'gfavfomState'------ * 'gfavfomField'------ * 'gfavfomStartTime'------ * 'gfavfomProgressDocuments'------ * 'gfavfomIndexConfigDeltas'------ * 'gfavfomEndTime'-googleFirestoreAdminV1FieldOperationMetadata- :: GoogleFirestoreAdminV1FieldOperationMetadata-googleFirestoreAdminV1FieldOperationMetadata =- GoogleFirestoreAdminV1FieldOperationMetadata'- { _gfavfomProgressBytes = Nothing- , _gfavfomState = Nothing- , _gfavfomField = Nothing- , _gfavfomStartTime = Nothing- , _gfavfomProgressDocuments = Nothing- , _gfavfomIndexConfigDeltas = Nothing- , _gfavfomEndTime = Nothing- }----- | The progress, in bytes, of this operation.-gfavfomProgressBytes :: Lens' GoogleFirestoreAdminV1FieldOperationMetadata (Maybe GoogleFirestoreAdminV1Progress)-gfavfomProgressBytes- = lens _gfavfomProgressBytes- (\ s a -> s{_gfavfomProgressBytes = a})---- | The state of the operation.-gfavfomState :: Lens' GoogleFirestoreAdminV1FieldOperationMetadata (Maybe GoogleFirestoreAdminV1FieldOperationMetadataState)-gfavfomState- = lens _gfavfomState (\ s a -> s{_gfavfomState = a})---- | The field resource that this operation is acting on. For example:--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/fields\/{field_path}\`-gfavfomField :: Lens' GoogleFirestoreAdminV1FieldOperationMetadata (Maybe Text)-gfavfomField- = lens _gfavfomField (\ s a -> s{_gfavfomField = a})---- | The time this operation started.-gfavfomStartTime :: Lens' GoogleFirestoreAdminV1FieldOperationMetadata (Maybe UTCTime)-gfavfomStartTime- = lens _gfavfomStartTime- (\ s a -> s{_gfavfomStartTime = a})- . mapping _DateTime---- | The progress, in documents, of this operation.-gfavfomProgressDocuments :: Lens' GoogleFirestoreAdminV1FieldOperationMetadata (Maybe GoogleFirestoreAdminV1Progress)-gfavfomProgressDocuments- = lens _gfavfomProgressDocuments- (\ s a -> s{_gfavfomProgressDocuments = a})---- | A list of IndexConfigDelta, which describe the intent of this operation.-gfavfomIndexConfigDeltas :: Lens' GoogleFirestoreAdminV1FieldOperationMetadata [GoogleFirestoreAdminV1IndexConfigDelta]-gfavfomIndexConfigDeltas- = lens _gfavfomIndexConfigDeltas- (\ s a -> s{_gfavfomIndexConfigDeltas = a})- . _Default- . _Coerce---- | The time this operation completed. Will be unset if operation still in--- progress.-gfavfomEndTime :: Lens' GoogleFirestoreAdminV1FieldOperationMetadata (Maybe UTCTime)-gfavfomEndTime- = lens _gfavfomEndTime- (\ s a -> s{_gfavfomEndTime = a})- . mapping _DateTime--instance FromJSON- GoogleFirestoreAdminV1FieldOperationMetadata- where- parseJSON- = withObject- "GoogleFirestoreAdminV1FieldOperationMetadata"- (\ o ->- GoogleFirestoreAdminV1FieldOperationMetadata' <$>- (o .:? "progressBytes") <*> (o .:? "state") <*>- (o .:? "field")- <*> (o .:? "startTime")- <*> (o .:? "progressDocuments")- <*> (o .:? "indexConfigDeltas" .!= mempty)- <*> (o .:? "endTime"))--instance ToJSON- GoogleFirestoreAdminV1FieldOperationMetadata- where- toJSON- GoogleFirestoreAdminV1FieldOperationMetadata'{..}- = object- (catMaybes- [("progressBytes" .=) <$> _gfavfomProgressBytes,- ("state" .=) <$> _gfavfomState,- ("field" .=) <$> _gfavfomField,- ("startTime" .=) <$> _gfavfomStartTime,- ("progressDocuments" .=) <$>- _gfavfomProgressDocuments,- ("indexConfigDeltas" .=) <$>- _gfavfomIndexConfigDeltas,- ("endTime" .=) <$> _gfavfomEndTime])---- | The response for FirestoreAdmin.ListIndexes.------ /See:/ 'googleFirestoreAdminV1ListIndexesResponse' smart constructor.-data GoogleFirestoreAdminV1ListIndexesResponse =- GoogleFirestoreAdminV1ListIndexesResponse'- { _gfavlirNextPageToken :: !(Maybe Text)- , _gfavlirIndexes :: !(Maybe [GoogleFirestoreAdminV1Index])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1ListIndexesResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfavlirNextPageToken'------ * 'gfavlirIndexes'-googleFirestoreAdminV1ListIndexesResponse- :: GoogleFirestoreAdminV1ListIndexesResponse-googleFirestoreAdminV1ListIndexesResponse =- GoogleFirestoreAdminV1ListIndexesResponse'- {_gfavlirNextPageToken = Nothing, _gfavlirIndexes = Nothing}----- | A page token that may be used to request another page of results. If--- blank, this is the last page.-gfavlirNextPageToken :: Lens' GoogleFirestoreAdminV1ListIndexesResponse (Maybe Text)-gfavlirNextPageToken- = lens _gfavlirNextPageToken- (\ s a -> s{_gfavlirNextPageToken = a})---- | The requested indexes.-gfavlirIndexes :: Lens' GoogleFirestoreAdminV1ListIndexesResponse [GoogleFirestoreAdminV1Index]-gfavlirIndexes- = lens _gfavlirIndexes- (\ s a -> s{_gfavlirIndexes = a})- . _Default- . _Coerce--instance FromJSON- GoogleFirestoreAdminV1ListIndexesResponse- where- parseJSON- = withObject- "GoogleFirestoreAdminV1ListIndexesResponse"- (\ o ->- GoogleFirestoreAdminV1ListIndexesResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "indexes" .!= mempty))--instance ToJSON- GoogleFirestoreAdminV1ListIndexesResponse- where- toJSON GoogleFirestoreAdminV1ListIndexesResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _gfavlirNextPageToken,- ("indexes" .=) <$> _gfavlirIndexes])---- | A map value.------ /See:/ 'mapValue' smart constructor.-newtype MapValue =- MapValue'- { _mvFields :: Maybe MapValueFields- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'MapValue' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mvFields'-mapValue- :: MapValue-mapValue = MapValue' {_mvFields = Nothing}----- | The map\'s fields. The map keys represent field names. Field names--- matching the regular expression \`__.*__\` are reserved. Reserved field--- names are forbidden except in certain documented contexts. The map keys,--- represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.-mvFields :: Lens' MapValue (Maybe MapValueFields)-mvFields = lens _mvFields (\ s a -> s{_mvFields = a})--instance FromJSON MapValue where- parseJSON- = withObject "MapValue"- (\ o -> MapValue' <$> (o .:? "fields"))--instance ToJSON MapValue where- toJSON MapValue'{..}- = object (catMaybes [("fields" .=) <$> _mvFields])---- | The request for Firestore.BatchGetDocuments.------ /See:/ 'batchGetDocumentsRequest' smart constructor.-data BatchGetDocumentsRequest =- BatchGetDocumentsRequest'- { _bReadTime :: !(Maybe DateTime')- , _bNewTransaction :: !(Maybe TransactionOptions)- , _bTransaction :: !(Maybe Bytes)- , _bDocuments :: !(Maybe [Text])- , _bMask :: !(Maybe DocumentMask)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'BatchGetDocumentsRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'bReadTime'------ * 'bNewTransaction'------ * 'bTransaction'------ * 'bDocuments'------ * 'bMask'-batchGetDocumentsRequest- :: BatchGetDocumentsRequest-batchGetDocumentsRequest =- BatchGetDocumentsRequest'- { _bReadTime = Nothing- , _bNewTransaction = Nothing- , _bTransaction = Nothing- , _bDocuments = Nothing- , _bMask = Nothing- }----- | Reads documents as they were at the given time. This may not be older--- than 60 seconds.-bReadTime :: Lens' BatchGetDocumentsRequest (Maybe UTCTime)-bReadTime- = lens _bReadTime (\ s a -> s{_bReadTime = a}) .- mapping _DateTime---- | Starts a new transaction and reads the documents. Defaults to a--- read-only transaction. The new transaction ID will be returned as the--- first response in the stream.-bNewTransaction :: Lens' BatchGetDocumentsRequest (Maybe TransactionOptions)-bNewTransaction- = lens _bNewTransaction- (\ s a -> s{_bNewTransaction = a})---- | Reads documents in a transaction.-bTransaction :: Lens' BatchGetDocumentsRequest (Maybe ByteString)-bTransaction- = lens _bTransaction (\ s a -> s{_bTransaction = a})- . mapping _Bytes---- | The names of the documents to retrieve. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.--- The request will fail if any of the document is not a child resource of--- the given \`database\`. Duplicate names will be elided.-bDocuments :: Lens' BatchGetDocumentsRequest [Text]-bDocuments- = lens _bDocuments (\ s a -> s{_bDocuments = a}) .- _Default- . _Coerce---- | The fields to return. If not set, returns all fields. If a document has--- a field that is not present in this mask, that field will not be--- returned in the response.-bMask :: Lens' BatchGetDocumentsRequest (Maybe DocumentMask)-bMask = lens _bMask (\ s a -> s{_bMask = a})--instance FromJSON BatchGetDocumentsRequest where- parseJSON- = withObject "BatchGetDocumentsRequest"- (\ o ->- BatchGetDocumentsRequest' <$>- (o .:? "readTime") <*> (o .:? "newTransaction") <*>- (o .:? "transaction")- <*> (o .:? "documents" .!= mempty)- <*> (o .:? "mask"))--instance ToJSON BatchGetDocumentsRequest where- toJSON BatchGetDocumentsRequest'{..}- = object- (catMaybes- [("readTime" .=) <$> _bReadTime,- ("newTransaction" .=) <$> _bNewTransaction,- ("transaction" .=) <$> _bTransaction,- ("documents" .=) <$> _bDocuments,- ("mask" .=) <$> _bMask])---- | A Firestore document. Must not exceed 1 MiB - 4 bytes.------ /See:/ 'document' smart constructor.-data Document =- Document'- { _dUpdateTime :: !(Maybe DateTime')- , _dName :: !(Maybe Text)- , _dCreateTime :: !(Maybe DateTime')- , _dFields :: !(Maybe DocumentFields)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Document' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dUpdateTime'------ * 'dName'------ * 'dCreateTime'------ * 'dFields'-document- :: Document-document =- Document'- { _dUpdateTime = Nothing- , _dName = Nothing- , _dCreateTime = Nothing- , _dFields = Nothing- }----- | Output only. The time at which the document was last changed. This value--- is initially set to the \`create_time\` then increases monotonically--- with each change to the document. It can also be compared to values from--- other documents and the \`read_time\` of a query.-dUpdateTime :: Lens' Document (Maybe UTCTime)-dUpdateTime- = lens _dUpdateTime (\ s a -> s{_dUpdateTime = a}) .- mapping _DateTime---- | The resource name of the document, for example--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.-dName :: Lens' Document (Maybe Text)-dName = lens _dName (\ s a -> s{_dName = a})---- | Output only. The time at which the document was created. This value--- increases monotonically when a document is deleted then recreated. It--- can also be compared to values from other documents and the--- \`read_time\` of a query.-dCreateTime :: Lens' Document (Maybe UTCTime)-dCreateTime- = lens _dCreateTime (\ s a -> s{_dCreateTime = a}) .- mapping _DateTime---- | The document\'s fields. The map keys represent field names. A simple--- field name contains only characters \`a\` to \`z\`, \`A\` to \`Z\`,--- \`0\` to \`9\`, or \`_\`, and must not start with \`0\` to \`9\`. For--- example, \`foo_bar_17\`. Field names matching the regular expression--- \`__.*__\` are reserved. Reserved field names are forbidden except in--- certain documented contexts. The map keys, represented as UTF-8, must--- not exceed 1,500 bytes and cannot be empty. Field paths may be used in--- other contexts to refer to structured fields defined here. For--- \`map_value\`, the field path is represented by the simple or quoted--- field names of the containing fields, delimited by \`.\`. For example,--- the structured field \`\"foo\" : { map_value: { \"x&y\" : {--- string_value: \"hello\" }}}\` would be represented by the field path--- \`foo.x&y\`. Within a field path, a quoted field name starts and ends--- with \`\` \` \`\` and may contain any character. Some characters,--- including \`\` \` \`\`, must be escaped using a \`\\\`. For example,--- \`\` \`x&y\` \`\` represents \`x&y\` and \`\` \`bak\\\`tik\` \`\`--- represents \`\` bak\`tik \`\`.-dFields :: Lens' Document (Maybe DocumentFields)-dFields = lens _dFields (\ s a -> s{_dFields = a})--instance FromJSON Document where- parseJSON- = withObject "Document"- (\ o ->- Document' <$>- (o .:? "updateTime") <*> (o .:? "name") <*>- (o .:? "createTime")- <*> (o .:? "fields"))--instance ToJSON Document where- toJSON Document'{..}- = object- (catMaybes- [("updateTime" .=) <$> _dUpdateTime,- ("name" .=) <$> _dName,- ("createTime" .=) <$> _dCreateTime,- ("fields" .=) <$> _dFields])---- | An array value.------ /See:/ 'arrayValue' smart constructor.-newtype ArrayValue =- ArrayValue'- { _avValues :: Maybe [Value]- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ArrayValue' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'avValues'-arrayValue- :: ArrayValue-arrayValue = ArrayValue' {_avValues = Nothing}----- | Values in the array.-avValues :: Lens' ArrayValue [Value]-avValues- = lens _avValues (\ s a -> s{_avValues = a}) .- _Default- . _Coerce--instance FromJSON ArrayValue where- parseJSON- = withObject "ArrayValue"- (\ o -> ArrayValue' <$> (o .:? "values" .!= mempty))--instance ToJSON ArrayValue where- toJSON ArrayValue'{..}- = object (catMaybes [("values" .=) <$> _avValues])---- | The response for Firestore.Commit.------ /See:/ 'commitResponse' smart constructor.-data CommitResponse =- CommitResponse'- { _crCommitTime :: !(Maybe DateTime')- , _crWriteResults :: !(Maybe [WriteResult])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CommitResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'crCommitTime'------ * 'crWriteResults'-commitResponse- :: CommitResponse-commitResponse =- CommitResponse' {_crCommitTime = Nothing, _crWriteResults = Nothing}----- | The time at which the commit occurred.-crCommitTime :: Lens' CommitResponse (Maybe UTCTime)-crCommitTime- = lens _crCommitTime (\ s a -> s{_crCommitTime = a})- . mapping _DateTime---- | The result of applying the writes. This i-th write result corresponds to--- the i-th write in the request.-crWriteResults :: Lens' CommitResponse [WriteResult]-crWriteResults- = lens _crWriteResults- (\ s a -> s{_crWriteResults = a})- . _Default- . _Coerce--instance FromJSON CommitResponse where- parseJSON- = withObject "CommitResponse"- (\ o ->- CommitResponse' <$>- (o .:? "commitTime") <*>- (o .:? "writeResults" .!= mempty))--instance ToJSON CommitResponse where- toJSON CommitResponse'{..}- = object- (catMaybes- [("commitTime" .=) <$> _crCommitTime,- ("writeResults" .=) <$> _crWriteResults])---- | The response for Firestore.Listen.------ /See:/ 'listenResponse' smart constructor.-data ListenResponse =- ListenResponse'- { _lrTargetChange :: !(Maybe TargetChange)- , _lrDocumentRemove :: !(Maybe DocumentRemove)- , _lrDocumentChange :: !(Maybe DocumentChange)- , _lrFilter :: !(Maybe ExistenceFilter)- , _lrDocumentDelete :: !(Maybe DocumentDelete)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListenResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lrTargetChange'------ * 'lrDocumentRemove'------ * 'lrDocumentChange'------ * 'lrFilter'------ * 'lrDocumentDelete'-listenResponse- :: ListenResponse-listenResponse =- ListenResponse'- { _lrTargetChange = Nothing- , _lrDocumentRemove = Nothing- , _lrDocumentChange = Nothing- , _lrFilter = Nothing- , _lrDocumentDelete = Nothing- }----- | Targets have changed.-lrTargetChange :: Lens' ListenResponse (Maybe TargetChange)-lrTargetChange- = lens _lrTargetChange- (\ s a -> s{_lrTargetChange = a})---- | A Document has been removed from a target (because it is no longer--- relevant to that target).-lrDocumentRemove :: Lens' ListenResponse (Maybe DocumentRemove)-lrDocumentRemove- = lens _lrDocumentRemove- (\ s a -> s{_lrDocumentRemove = a})---- | A Document has changed.-lrDocumentChange :: Lens' ListenResponse (Maybe DocumentChange)-lrDocumentChange- = lens _lrDocumentChange- (\ s a -> s{_lrDocumentChange = a})---- | A filter to apply to the set of documents previously returned for the--- given target. Returned when documents may have been removed from the--- given target, but the exact documents are unknown.-lrFilter :: Lens' ListenResponse (Maybe ExistenceFilter)-lrFilter = lens _lrFilter (\ s a -> s{_lrFilter = a})---- | A Document has been deleted.-lrDocumentDelete :: Lens' ListenResponse (Maybe DocumentDelete)-lrDocumentDelete- = lens _lrDocumentDelete- (\ s a -> s{_lrDocumentDelete = a})--instance FromJSON ListenResponse where- parseJSON- = withObject "ListenResponse"- (\ o ->- ListenResponse' <$>- (o .:? "targetChange") <*> (o .:? "documentRemove")- <*> (o .:? "documentChange")- <*> (o .:? "filter")- <*> (o .:? "documentDelete"))--instance ToJSON ListenResponse where- toJSON ListenResponse'{..}- = object- (catMaybes- [("targetChange" .=) <$> _lrTargetChange,- ("documentRemove" .=) <$> _lrDocumentRemove,- ("documentChange" .=) <$> _lrDocumentChange,- ("filter" .=) <$> _lrFilter,- ("documentDelete" .=) <$> _lrDocumentDelete])---- | A filter on a specific field.------ /See:/ 'fieldFilter' smart constructor.-data FieldFilter =- FieldFilter'- { _ffOp :: !(Maybe FieldFilterOp)- , _ffField :: !(Maybe FieldReference)- , _ffValue :: !(Maybe Value)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'FieldFilter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ffOp'------ * 'ffField'------ * 'ffValue'-fieldFilter- :: FieldFilter-fieldFilter =- FieldFilter' {_ffOp = Nothing, _ffField = Nothing, _ffValue = Nothing}----- | The operator to filter by.-ffOp :: Lens' FieldFilter (Maybe FieldFilterOp)-ffOp = lens _ffOp (\ s a -> s{_ffOp = a})---- | The field to filter by.-ffField :: Lens' FieldFilter (Maybe FieldReference)-ffField = lens _ffField (\ s a -> s{_ffField = a})---- | The value to compare to.-ffValue :: Lens' FieldFilter (Maybe Value)-ffValue = lens _ffValue (\ s a -> s{_ffValue = a})--instance FromJSON FieldFilter where- parseJSON- = withObject "FieldFilter"- (\ o ->- FieldFilter' <$>- (o .:? "op") <*> (o .:? "field") <*> (o .:? "value"))--instance ToJSON FieldFilter where- toJSON FieldFilter'{..}- = object- (catMaybes- [("op" .=) <$> _ffOp, ("field" .=) <$> _ffField,- ("value" .=) <$> _ffValue])---- | The normal response of the operation in case of success. If the original--- method returns no data on success, such as \`Delete\`, the response is--- \`google.protobuf.Empty\`. If the original method is standard--- \`Get\`\/\`Create\`\/\`Update\`, the response should be the resource.--- For other methods, the response should have the type \`XxxResponse\`,--- where \`Xxx\` is the original method name. For example, if the original--- method name is \`TakeSnapshot()\`, the inferred response type is--- \`TakeSnapshotResponse\`.------ /See:/ 'googleLongrunningOperationResponse' smart constructor.-newtype GoogleLongrunningOperationResponse =- GoogleLongrunningOperationResponse'- { _glorAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleLongrunningOperationResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'glorAddtional'-googleLongrunningOperationResponse- :: HashMap Text JSONValue -- ^ 'glorAddtional'- -> GoogleLongrunningOperationResponse-googleLongrunningOperationResponse pGlorAddtional_ =- GoogleLongrunningOperationResponse'- {_glorAddtional = _Coerce # pGlorAddtional_}----- | Properties of the object. Contains field \'type with type URL.-glorAddtional :: Lens' GoogleLongrunningOperationResponse (HashMap Text JSONValue)-glorAddtional- = lens _glorAddtional- (\ s a -> s{_glorAddtional = a})- . _Coerce--instance FromJSON GoogleLongrunningOperationResponse- where- parseJSON- = withObject "GoogleLongrunningOperationResponse"- (\ o ->- GoogleLongrunningOperationResponse' <$>- (parseJSONObject o))--instance ToJSON GoogleLongrunningOperationResponse- where- toJSON = toJSON . _glorAddtional---- | The response for Firestore.ListDocuments.------ /See:/ 'listDocumentsResponse' smart constructor.-data ListDocumentsResponse =- ListDocumentsResponse'- { _ldrNextPageToken :: !(Maybe Text)- , _ldrDocuments :: !(Maybe [Document])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListDocumentsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ldrNextPageToken'------ * 'ldrDocuments'-listDocumentsResponse- :: ListDocumentsResponse-listDocumentsResponse =- ListDocumentsResponse' {_ldrNextPageToken = Nothing, _ldrDocuments = Nothing}----- | The next page token.-ldrNextPageToken :: Lens' ListDocumentsResponse (Maybe Text)-ldrNextPageToken- = lens _ldrNextPageToken- (\ s a -> s{_ldrNextPageToken = a})---- | The Documents found.-ldrDocuments :: Lens' ListDocumentsResponse [Document]-ldrDocuments- = lens _ldrDocuments (\ s a -> s{_ldrDocuments = a})- . _Default- . _Coerce--instance FromJSON ListDocumentsResponse where- parseJSON- = withObject "ListDocumentsResponse"- (\ o ->- ListDocumentsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "documents" .!= mempty))--instance ToJSON ListDocumentsResponse where- toJSON ListDocumentsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _ldrNextPageToken,- ("documents" .=) <$> _ldrDocuments])---- | Returned in the google.longrunning.Operation response field.------ /See:/ 'googleFirestoreAdminV1ExportDocumentsResponse' smart constructor.-newtype GoogleFirestoreAdminV1ExportDocumentsResponse =- GoogleFirestoreAdminV1ExportDocumentsResponse'- { _gOutputURIPrefix :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1ExportDocumentsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gOutputURIPrefix'-googleFirestoreAdminV1ExportDocumentsResponse- :: GoogleFirestoreAdminV1ExportDocumentsResponse-googleFirestoreAdminV1ExportDocumentsResponse =- GoogleFirestoreAdminV1ExportDocumentsResponse' {_gOutputURIPrefix = Nothing}----- | Location of the output files. This can be used to begin an import into--- Cloud Firestore (this project or another project) after the operation--- completes successfully.-gOutputURIPrefix :: Lens' GoogleFirestoreAdminV1ExportDocumentsResponse (Maybe Text)-gOutputURIPrefix- = lens _gOutputURIPrefix- (\ s a -> s{_gOutputURIPrefix = a})--instance FromJSON- GoogleFirestoreAdminV1ExportDocumentsResponse- where- parseJSON- = withObject- "GoogleFirestoreAdminV1ExportDocumentsResponse"- (\ o ->- GoogleFirestoreAdminV1ExportDocumentsResponse' <$>- (o .:? "outputUriPrefix"))--instance ToJSON- GoogleFirestoreAdminV1ExportDocumentsResponse- where- toJSON- GoogleFirestoreAdminV1ExportDocumentsResponse'{..}- = object- (catMaybes- [("outputUriPrefix" .=) <$> _gOutputURIPrefix])---- | The projection of document\'s fields to return.------ /See:/ 'projection' smart constructor.-newtype Projection =- Projection'- { _pFields :: Maybe [FieldReference]- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Projection' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pFields'-projection- :: Projection-projection = Projection' {_pFields = Nothing}----- | The fields to return. If empty, all fields are returned. To only return--- the name of the document, use \`[\'__name__\']\`.-pFields :: Lens' Projection [FieldReference]-pFields- = lens _pFields (\ s a -> s{_pFields = a}) . _Default- . _Coerce--instance FromJSON Projection where- parseJSON- = withObject "Projection"- (\ o -> Projection' <$> (o .:? "fields" .!= mempty))--instance ToJSON Projection where- toJSON Projection'{..}- = object (catMaybes [("fields" .=) <$> _pFields])---- | A filter.------ /See:/ 'filter'' smart constructor.-data Filter =- Filter'- { _fCompositeFilter :: !(Maybe CompositeFilter)- , _fFieldFilter :: !(Maybe FieldFilter)- , _fUnaryFilter :: !(Maybe UnaryFilter)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Filter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'fCompositeFilter'------ * 'fFieldFilter'------ * 'fUnaryFilter'-filter'- :: Filter-filter' =- Filter'- { _fCompositeFilter = Nothing- , _fFieldFilter = Nothing- , _fUnaryFilter = Nothing- }----- | A composite filter.-fCompositeFilter :: Lens' Filter (Maybe CompositeFilter)-fCompositeFilter- = lens _fCompositeFilter- (\ s a -> s{_fCompositeFilter = a})---- | A filter on a document field.-fFieldFilter :: Lens' Filter (Maybe FieldFilter)-fFieldFilter- = lens _fFieldFilter (\ s a -> s{_fFieldFilter = a})---- | A filter that takes exactly one argument.-fUnaryFilter :: Lens' Filter (Maybe UnaryFilter)-fUnaryFilter- = lens _fUnaryFilter (\ s a -> s{_fUnaryFilter = a})--instance FromJSON Filter where- parseJSON- = withObject "Filter"- (\ o ->- Filter' <$>- (o .:? "compositeFilter") <*> (o .:? "fieldFilter")- <*> (o .:? "unaryFilter"))--instance ToJSON Filter where- toJSON Filter'{..}- = object- (catMaybes- [("compositeFilter" .=) <$> _fCompositeFilter,- ("fieldFilter" .=) <$> _fFieldFilter,- ("unaryFilter" .=) <$> _fUnaryFilter])---- | Metadata for google.longrunning.Operation results from--- FirestoreAdmin.CreateIndex.------ /See:/ 'googleFirestoreAdminV1IndexOperationMetadata' smart constructor.-data GoogleFirestoreAdminV1IndexOperationMetadata =- GoogleFirestoreAdminV1IndexOperationMetadata'- { _gfaviomProgressBytes :: !(Maybe GoogleFirestoreAdminV1Progress)- , _gfaviomState :: !(Maybe GoogleFirestoreAdminV1IndexOperationMetadataState)- , _gfaviomStartTime :: !(Maybe DateTime')- , _gfaviomProgressDocuments :: !(Maybe GoogleFirestoreAdminV1Progress)- , _gfaviomEndTime :: !(Maybe DateTime')- , _gfaviomIndex :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleFirestoreAdminV1IndexOperationMetadata' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gfaviomProgressBytes'------ * 'gfaviomState'------ * 'gfaviomStartTime'------ * 'gfaviomProgressDocuments'------ * 'gfaviomEndTime'------ * 'gfaviomIndex'-googleFirestoreAdminV1IndexOperationMetadata- :: GoogleFirestoreAdminV1IndexOperationMetadata-googleFirestoreAdminV1IndexOperationMetadata =- GoogleFirestoreAdminV1IndexOperationMetadata'- { _gfaviomProgressBytes = Nothing- , _gfaviomState = Nothing- , _gfaviomStartTime = Nothing- , _gfaviomProgressDocuments = Nothing- , _gfaviomEndTime = Nothing- , _gfaviomIndex = Nothing- }----- | The progress, in bytes, of this operation.-gfaviomProgressBytes :: Lens' GoogleFirestoreAdminV1IndexOperationMetadata (Maybe GoogleFirestoreAdminV1Progress)-gfaviomProgressBytes- = lens _gfaviomProgressBytes- (\ s a -> s{_gfaviomProgressBytes = a})---- | The state of the operation.-gfaviomState :: Lens' GoogleFirestoreAdminV1IndexOperationMetadata (Maybe GoogleFirestoreAdminV1IndexOperationMetadataState)-gfaviomState- = lens _gfaviomState (\ s a -> s{_gfaviomState = a})---- | The time this operation started.-gfaviomStartTime :: Lens' GoogleFirestoreAdminV1IndexOperationMetadata (Maybe UTCTime)-gfaviomStartTime- = lens _gfaviomStartTime- (\ s a -> s{_gfaviomStartTime = a})- . mapping _DateTime---- | The progress, in documents, of this operation.-gfaviomProgressDocuments :: Lens' GoogleFirestoreAdminV1IndexOperationMetadata (Maybe GoogleFirestoreAdminV1Progress)-gfaviomProgressDocuments- = lens _gfaviomProgressDocuments- (\ s a -> s{_gfaviomProgressDocuments = a})---- | The time this operation completed. Will be unset if operation still in--- progress.-gfaviomEndTime :: Lens' GoogleFirestoreAdminV1IndexOperationMetadata (Maybe UTCTime)-gfaviomEndTime- = lens _gfaviomEndTime- (\ s a -> s{_gfaviomEndTime = a})- . mapping _DateTime---- | The index resource that this operation is acting on. For example:--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/indexes\/{index_id}\`-gfaviomIndex :: Lens' GoogleFirestoreAdminV1IndexOperationMetadata (Maybe Text)-gfaviomIndex- = lens _gfaviomIndex (\ s a -> s{_gfaviomIndex = a})--instance FromJSON- GoogleFirestoreAdminV1IndexOperationMetadata- where- parseJSON- = withObject- "GoogleFirestoreAdminV1IndexOperationMetadata"- (\ o ->- GoogleFirestoreAdminV1IndexOperationMetadata' <$>- (o .:? "progressBytes") <*> (o .:? "state") <*>- (o .:? "startTime")- <*> (o .:? "progressDocuments")- <*> (o .:? "endTime")- <*> (o .:? "index"))--instance ToJSON- GoogleFirestoreAdminV1IndexOperationMetadata- where- toJSON- GoogleFirestoreAdminV1IndexOperationMetadata'{..}- = object- (catMaybes- [("progressBytes" .=) <$> _gfaviomProgressBytes,- ("state" .=) <$> _gfaviomState,- ("startTime" .=) <$> _gfaviomStartTime,- ("progressDocuments" .=) <$>- _gfaviomProgressDocuments,- ("endTime" .=) <$> _gfaviomEndTime,- ("index" .=) <$> _gfaviomIndex])---- | Cross-service attributes for the location. For example--- {\"cloud.googleapis.com\/region\": \"us-east1\"}------ /See:/ 'locationLabels' smart constructor.-newtype LocationLabels =- LocationLabels'- { _llAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'LocationLabels' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'llAddtional'-locationLabels- :: HashMap Text Text -- ^ 'llAddtional'- -> LocationLabels-locationLabels pLlAddtional_ =- LocationLabels' {_llAddtional = _Coerce # pLlAddtional_}---llAddtional :: Lens' LocationLabels (HashMap Text Text)-llAddtional- = lens _llAddtional (\ s a -> s{_llAddtional = a}) .- _Coerce--instance FromJSON LocationLabels where- parseJSON- = withObject "LocationLabels"- (\ o -> LocationLabels' <$> (parseJSONObject o))--instance ToJSON LocationLabels where- toJSON = toJSON . _llAddtional---- | A request for Firestore.Listen------ /See:/ 'listenRequest' smart constructor.-data ListenRequest =- ListenRequest'- { _lrRemoveTarget :: !(Maybe (Textual Int32))- , _lrLabels :: !(Maybe ListenRequestLabels)- , _lrAddTarget :: !(Maybe Target)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListenRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lrRemoveTarget'------ * 'lrLabels'------ * 'lrAddTarget'-listenRequest- :: ListenRequest-listenRequest =- ListenRequest'- {_lrRemoveTarget = Nothing, _lrLabels = Nothing, _lrAddTarget = Nothing}----- | The ID of a target to remove from this stream.-lrRemoveTarget :: Lens' ListenRequest (Maybe Int32)-lrRemoveTarget- = lens _lrRemoveTarget- (\ s a -> s{_lrRemoveTarget = a})- . mapping _Coerce---- | Labels associated with this target change.-lrLabels :: Lens' ListenRequest (Maybe ListenRequestLabels)-lrLabels = lens _lrLabels (\ s a -> s{_lrLabels = a})---- | A target to add to this stream.-lrAddTarget :: Lens' ListenRequest (Maybe Target)-lrAddTarget- = lens _lrAddTarget (\ s a -> s{_lrAddTarget = a})--instance FromJSON ListenRequest where- parseJSON- = withObject "ListenRequest"- (\ o ->- ListenRequest' <$>- (o .:? "removeTarget") <*> (o .:? "labels") <*>- (o .:? "addTarget"))--instance ToJSON ListenRequest where- toJSON ListenRequest'{..}- = object- (catMaybes- [("removeTarget" .=) <$> _lrRemoveTarget,- ("labels" .=) <$> _lrLabels,- ("addTarget" .=) <$> _lrAddTarget])---- | The request for Firestore.Commit.------ /See:/ 'commitRequest' smart constructor.-data CommitRequest =- CommitRequest'- { _crTransaction :: !(Maybe Bytes)- , _crWrites :: !(Maybe [Write])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CommitRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'crTransaction'------ * 'crWrites'-commitRequest- :: CommitRequest-commitRequest = CommitRequest' {_crTransaction = Nothing, _crWrites = Nothing}----- | If set, applies all writes in this transaction, and commits it.-crTransaction :: Lens' CommitRequest (Maybe ByteString)-crTransaction- = lens _crTransaction- (\ s a -> s{_crTransaction = a})- . mapping _Bytes---- | The writes to apply. Always executed atomically and in order.-crWrites :: Lens' CommitRequest [Write]-crWrites- = lens _crWrites (\ s a -> s{_crWrites = a}) .- _Default- . _Coerce--instance FromJSON CommitRequest where- parseJSON- = withObject "CommitRequest"- (\ o ->- CommitRequest' <$>- (o .:? "transaction") <*>- (o .:? "writes" .!= mempty))--instance ToJSON CommitRequest where- toJSON CommitRequest'{..}- = object- (catMaybes- [("transaction" .=) <$> _crTransaction,- ("writes" .=) <$> _crWrites])---- | Service-specific metadata. For example the available capacity at the--- given location.------ /See:/ 'locationMetadata' smart constructor.-newtype LocationMetadata =- LocationMetadata'- { _lmAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'LocationMetadata' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lmAddtional'-locationMetadata- :: HashMap Text JSONValue -- ^ 'lmAddtional'- -> LocationMetadata-locationMetadata pLmAddtional_ =- LocationMetadata' {_lmAddtional = _Coerce # pLmAddtional_}----- | Properties of the object. Contains field \'type with type URL.-lmAddtional :: Lens' LocationMetadata (HashMap Text JSONValue)-lmAddtional- = lens _lmAddtional (\ s a -> s{_lmAddtional = a}) .- _Coerce--instance FromJSON LocationMetadata where- parseJSON- = withObject "LocationMetadata"- (\ o -> LocationMetadata' <$> (parseJSONObject o))--instance ToJSON LocationMetadata where- toJSON = toJSON . _lmAddtional---- | The response message for Operations.ListOperations.------ /See:/ 'googleLongrunningListOperationsResponse' smart constructor.-data GoogleLongrunningListOperationsResponse =- GoogleLongrunningListOperationsResponse'- { _gllorNextPageToken :: !(Maybe Text)- , _gllorOperations :: !(Maybe [GoogleLongrunningOperation])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleLongrunningListOperationsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gllorNextPageToken'------ * 'gllorOperations'-googleLongrunningListOperationsResponse- :: GoogleLongrunningListOperationsResponse-googleLongrunningListOperationsResponse =- GoogleLongrunningListOperationsResponse'- {_gllorNextPageToken = Nothing, _gllorOperations = Nothing}----- | The standard List next-page token.-gllorNextPageToken :: Lens' GoogleLongrunningListOperationsResponse (Maybe Text)-gllorNextPageToken- = lens _gllorNextPageToken- (\ s a -> s{_gllorNextPageToken = a})---- | A list of operations that matches the specified filter in the request.-gllorOperations :: Lens' GoogleLongrunningListOperationsResponse [GoogleLongrunningOperation]-gllorOperations- = lens _gllorOperations- (\ s a -> s{_gllorOperations = a})- . _Default- . _Coerce--instance FromJSON- GoogleLongrunningListOperationsResponse- where- parseJSON- = withObject- "GoogleLongrunningListOperationsResponse"- (\ o ->- GoogleLongrunningListOperationsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "operations" .!= mempty))--instance ToJSON- GoogleLongrunningListOperationsResponse- where- toJSON GoogleLongrunningListOperationsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _gllorNextPageToken,- ("operations" .=) <$> _gllorOperations])---- | A selection of a collection, such as \`messages as m1\`.------ /See:/ 'collectionSelector' smart constructor.-data CollectionSelector =- CollectionSelector'- { _csAllDescendants :: !(Maybe Bool)- , _csCollectionId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CollectionSelector' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'csAllDescendants'------ * 'csCollectionId'-collectionSelector- :: CollectionSelector-collectionSelector =- CollectionSelector' {_csAllDescendants = Nothing, _csCollectionId = Nothing}----- | When false, selects only collections that are immediate children of the--- \`parent\` specified in the containing \`RunQueryRequest\`. When true,--- selects all descendant collections.-csAllDescendants :: Lens' CollectionSelector (Maybe Bool)-csAllDescendants- = lens _csAllDescendants- (\ s a -> s{_csAllDescendants = a})---- | The collection ID. When set, selects only collections with this ID.-csCollectionId :: Lens' CollectionSelector (Maybe Text)-csCollectionId- = lens _csCollectionId- (\ s a -> s{_csCollectionId = a})--instance FromJSON CollectionSelector where- parseJSON- = withObject "CollectionSelector"- (\ o ->- CollectionSelector' <$>- (o .:? "allDescendants") <*> (o .:? "collectionId"))--instance ToJSON CollectionSelector where- toJSON CollectionSelector'{..}- = object- (catMaybes- [("allDescendants" .=) <$> _csAllDescendants,- ("collectionId" .=) <$> _csCollectionId])---- | The request for Firestore.ListCollectionIds.------ /See:/ 'listCollectionIdsRequest' smart constructor.-data ListCollectionIdsRequest =- ListCollectionIdsRequest'- { _lcirPageToken :: !(Maybe Text)- , _lcirPageSize :: !(Maybe (Textual Int32))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListCollectionIdsRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lcirPageToken'------ * 'lcirPageSize'-listCollectionIdsRequest- :: ListCollectionIdsRequest-listCollectionIdsRequest =- ListCollectionIdsRequest' {_lcirPageToken = Nothing, _lcirPageSize = Nothing}----- | A page token. Must be a value from ListCollectionIdsResponse.-lcirPageToken :: Lens' ListCollectionIdsRequest (Maybe Text)-lcirPageToken- = lens _lcirPageToken- (\ s a -> s{_lcirPageToken = a})---- | The maximum number of results to return.-lcirPageSize :: Lens' ListCollectionIdsRequest (Maybe Int32)-lcirPageSize- = lens _lcirPageSize (\ s a -> s{_lcirPageSize = a})- . mapping _Coerce--instance FromJSON ListCollectionIdsRequest where- parseJSON- = withObject "ListCollectionIdsRequest"- (\ o ->- ListCollectionIdsRequest' <$>- (o .:? "pageToken") <*> (o .:? "pageSize"))--instance ToJSON ListCollectionIdsRequest where- toJSON ListCollectionIdsRequest'{..}- = object- (catMaybes- [("pageToken" .=) <$> _lcirPageToken,- ("pageSize" .=) <$> _lcirPageSize])---- | The response for Firestore.Write.------ /See:/ 'writeResponse' smart constructor.-data WriteResponse =- WriteResponse'- { _wStreamToken :: !(Maybe Bytes)- , _wCommitTime :: !(Maybe DateTime')- , _wWriteResults :: !(Maybe [WriteResult])- , _wStreamId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WriteResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wStreamToken'------ * 'wCommitTime'------ * 'wWriteResults'------ * 'wStreamId'-writeResponse- :: WriteResponse-writeResponse =- WriteResponse'- { _wStreamToken = Nothing- , _wCommitTime = Nothing- , _wWriteResults = Nothing- , _wStreamId = Nothing- }----- | A token that represents the position of this response in the stream.--- This can be used by a client to resume the stream at this point. This--- field is always set.-wStreamToken :: Lens' WriteResponse (Maybe ByteString)-wStreamToken- = lens _wStreamToken (\ s a -> s{_wStreamToken = a})- . mapping _Bytes---- | The time at which the commit occurred.-wCommitTime :: Lens' WriteResponse (Maybe UTCTime)-wCommitTime- = lens _wCommitTime (\ s a -> s{_wCommitTime = a}) .- mapping _DateTime---- | The result of applying the writes. This i-th write result corresponds to--- the i-th write in the request.-wWriteResults :: Lens' WriteResponse [WriteResult]-wWriteResults- = lens _wWriteResults- (\ s a -> s{_wWriteResults = a})- . _Default- . _Coerce---- | The ID of the stream. Only set on the first message, when a new stream--- was created.-wStreamId :: Lens' WriteResponse (Maybe Text)-wStreamId- = lens _wStreamId (\ s a -> s{_wStreamId = a})--instance FromJSON WriteResponse where- parseJSON- = withObject "WriteResponse"- (\ o ->- WriteResponse' <$>- (o .:? "streamToken") <*> (o .:? "commitTime") <*>- (o .:? "writeResults" .!= mempty)- <*> (o .:? "streamId"))--instance ToJSON WriteResponse where- toJSON WriteResponse'{..}- = object- (catMaybes- [("streamToken" .=) <$> _wStreamToken,- ("commitTime" .=) <$> _wCommitTime,- ("writeResults" .=) <$> _wWriteResults,- ("streamId" .=) <$> _wStreamId])---- | An order on a field.------ /See:/ 'order' smart constructor.-data Order =- Order'- { _oField :: !(Maybe FieldReference)- , _oDirection :: !(Maybe OrderDirection)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Order' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'oField'------ * 'oDirection'-order- :: Order-order = Order' {_oField = Nothing, _oDirection = Nothing}----- | The field to order by.-oField :: Lens' Order (Maybe FieldReference)-oField = lens _oField (\ s a -> s{_oField = a})---- | The direction to order by. Defaults to \`ASCENDING\`.-oDirection :: Lens' Order (Maybe OrderDirection)-oDirection- = lens _oDirection (\ s a -> s{_oDirection = a})--instance FromJSON Order where- parseJSON- = withObject "Order"- (\ o ->- Order' <$> (o .:? "field") <*> (o .:? "direction"))--instance ToJSON Order where- toJSON Order'{..}- = object- (catMaybes- [("field" .=) <$> _oField,- ("direction" .=) <$> _oDirection])---- | A Document has been deleted. May be the result of multiple writes,--- including updates, the last of which deleted the Document. Multiple--- DocumentDelete messages may be returned for the same logical delete, if--- multiple targets are affected.------ /See:/ 'documentDelete' smart constructor.-data DocumentDelete =- DocumentDelete'- { _ddReadTime :: !(Maybe DateTime')- , _ddDocument :: !(Maybe Text)- , _ddRemovedTargetIds :: !(Maybe [Textual Int32])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DocumentDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ddReadTime'------ * 'ddDocument'------ * 'ddRemovedTargetIds'-documentDelete- :: DocumentDelete-documentDelete =- DocumentDelete'- { _ddReadTime = Nothing- , _ddDocument = Nothing- , _ddRemovedTargetIds = Nothing- }----- | The read timestamp at which the delete was observed. Greater or equal to--- the \`commit_time\` of the delete.-ddReadTime :: Lens' DocumentDelete (Maybe UTCTime)-ddReadTime- = lens _ddReadTime (\ s a -> s{_ddReadTime = a}) .- mapping _DateTime---- | The resource name of the Document that was deleted.-ddDocument :: Lens' DocumentDelete (Maybe Text)-ddDocument- = lens _ddDocument (\ s a -> s{_ddDocument = a})---- | A set of target IDs for targets that previously matched this entity.-ddRemovedTargetIds :: Lens' DocumentDelete [Int32]-ddRemovedTargetIds- = lens _ddRemovedTargetIds- (\ s a -> s{_ddRemovedTargetIds = a})- . _Default- . _Coerce--instance FromJSON DocumentDelete where- parseJSON- = withObject "DocumentDelete"- (\ o ->- DocumentDelete' <$>- (o .:? "readTime") <*> (o .:? "document") <*>- (o .:? "removedTargetIds" .!= mempty))--instance ToJSON DocumentDelete where- toJSON DocumentDelete'{..}- = object- (catMaybes- [("readTime" .=) <$> _ddReadTime,- ("document" .=) <$> _ddDocument,- ("removedTargetIds" .=) <$> _ddRemovedTargetIds])---- | A transformation of a field of the document.------ /See:/ 'fieldTransform' smart constructor.-data FieldTransform =- FieldTransform'- { _ftFieldPath :: !(Maybe Text)- , _ftAppendMissingElements :: !(Maybe ArrayValue)- , _ftMaximum :: !(Maybe Value)- , _ftMinimum :: !(Maybe Value)- , _ftSetToServerValue :: !(Maybe FieldTransformSetToServerValue)- , _ftRemoveAllFromArray :: !(Maybe ArrayValue)- , _ftIncrement :: !(Maybe Value)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'FieldTransform' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ftFieldPath'------ * 'ftAppendMissingElements'------ * 'ftMaximum'------ * 'ftMinimum'------ * 'ftSetToServerValue'------ * 'ftRemoveAllFromArray'------ * 'ftIncrement'-fieldTransform- :: FieldTransform-fieldTransform =- FieldTransform'- { _ftFieldPath = Nothing- , _ftAppendMissingElements = Nothing- , _ftMaximum = Nothing- , _ftMinimum = Nothing- , _ftSetToServerValue = Nothing- , _ftRemoveAllFromArray = Nothing- , _ftIncrement = Nothing- }----- | The path of the field. See Document.fields for the field path syntax--- reference.-ftFieldPath :: Lens' FieldTransform (Maybe Text)-ftFieldPath- = lens _ftFieldPath (\ s a -> s{_ftFieldPath = a})---- | Append the given elements in order if they are not already present in--- the current field value. If the field is not an array, or if the field--- does not yet exist, it is first set to the empty array. Equivalent--- numbers of different types (e.g. 3L and 3.0) are considered equal when--- checking if a value is missing. NaN is equal to NaN, and Null is equal--- to Null. If the input contains multiple equivalent values, only the--- first will be considered. The corresponding transform_result will be the--- null value.-ftAppendMissingElements :: Lens' FieldTransform (Maybe ArrayValue)-ftAppendMissingElements- = lens _ftAppendMissingElements- (\ s a -> s{_ftAppendMissingElements = a})---- | Sets the field to the maximum of its current value and the given value.--- This must be an integer or a double value. If the field is not an--- integer or double, or if the field does not yet exist, the--- transformation will set the field to the given value. If a maximum--- operation is applied where the field and the input value are of mixed--- types (that is - one is an integer and one is a double) the field takes--- on the type of the larger operand. If the operands are equivalent (e.g.--- 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero.--- The maximum of a zero stored value and zero input value is always the--- stored value. The maximum of any numeric value x and NaN is NaN.-ftMaximum :: Lens' FieldTransform (Maybe Value)-ftMaximum- = lens _ftMaximum (\ s a -> s{_ftMaximum = a})---- | Sets the field to the minimum of its current value and the given value.--- This must be an integer or a double value. If the field is not an--- integer or double, or if the field does not yet exist, the--- transformation will set the field to the input value. If a minimum--- operation is applied where the field and the input value are of mixed--- types (that is - one is an integer and one is a double) the field takes--- on the type of the smaller operand. If the operands are equivalent (e.g.--- 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero.--- The minimum of a zero stored value and zero input value is always the--- stored value. The minimum of any numeric value x and NaN is NaN.-ftMinimum :: Lens' FieldTransform (Maybe Value)-ftMinimum- = lens _ftMinimum (\ s a -> s{_ftMinimum = a})---- | Sets the field to the given server value.-ftSetToServerValue :: Lens' FieldTransform (Maybe FieldTransformSetToServerValue)-ftSetToServerValue- = lens _ftSetToServerValue- (\ s a -> s{_ftSetToServerValue = a})---- | Remove all of the given elements from the array in the field. If the--- field is not an array, or if the field does not yet exist, it is set to--- the empty array. Equivalent numbers of the different types (e.g. 3L and--- 3.0) are considered equal when deciding whether an element should be--- removed. NaN is equal to NaN, and Null is equal to Null. This will--- remove all equivalent values if there are duplicates. The corresponding--- transform_result will be the null value.-ftRemoveAllFromArray :: Lens' FieldTransform (Maybe ArrayValue)-ftRemoveAllFromArray- = lens _ftRemoveAllFromArray- (\ s a -> s{_ftRemoveAllFromArray = a})---- | Adds the given value to the field\'s current value. This must be an--- integer or a double value. If the field is not an integer or double, or--- if the field does not yet exist, the transformation will set the field--- to the given value. If either of the given value or the current field--- value are doubles, both values will be interpreted as doubles. Double--- arithmetic and representation of double values follow IEEE 754--- semantics. If there is positive\/negative integer overflow, the field is--- resolved to the largest magnitude positive\/negative integer.-ftIncrement :: Lens' FieldTransform (Maybe Value)-ftIncrement- = lens _ftIncrement (\ s a -> s{_ftIncrement = a})--instance FromJSON FieldTransform where- parseJSON- = withObject "FieldTransform"- (\ o ->- FieldTransform' <$>- (o .:? "fieldPath") <*>- (o .:? "appendMissingElements")- <*> (o .:? "maximum")- <*> (o .:? "minimum")- <*> (o .:? "setToServerValue")- <*> (o .:? "removeAllFromArray")- <*> (o .:? "increment"))--instance ToJSON FieldTransform where- toJSON FieldTransform'{..}- = object- (catMaybes- [("fieldPath" .=) <$> _ftFieldPath,- ("appendMissingElements" .=) <$>- _ftAppendMissingElements,- ("maximum" .=) <$> _ftMaximum,- ("minimum" .=) <$> _ftMinimum,- ("setToServerValue" .=) <$> _ftSetToServerValue,- ("removeAllFromArray" .=) <$> _ftRemoveAllFromArray,- ("increment" .=) <$> _ftIncrement])---- | The map\'s fields. The map keys represent field names. Field names--- matching the regular expression \`__.*__\` are reserved. Reserved field--- names are forbidden except in certain documented contexts. The map keys,--- represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.------ /See:/ 'mapValueFields' smart constructor.-newtype MapValueFields =- MapValueFields'- { _mvfAddtional :: HashMap Text Value- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'MapValueFields' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mvfAddtional'-mapValueFields- :: HashMap Text Value -- ^ 'mvfAddtional'- -> MapValueFields-mapValueFields pMvfAddtional_ =- MapValueFields' {_mvfAddtional = _Coerce # pMvfAddtional_}---mvfAddtional :: Lens' MapValueFields (HashMap Text Value)-mvfAddtional- = lens _mvfAddtional (\ s a -> s{_mvfAddtional = a})- . _Coerce--instance FromJSON MapValueFields where- parseJSON- = withObject "MapValueFields"- (\ o -> MapValueFields' <$> (parseJSONObject o))--instance ToJSON MapValueFields where- toJSON = toJSON . _mvfAddtional---- | The document\'s fields. The map keys represent field names. A simple--- field name contains only characters \`a\` to \`z\`, \`A\` to \`Z\`,--- \`0\` to \`9\`, or \`_\`, and must not start with \`0\` to \`9\`. For--- example, \`foo_bar_17\`. Field names matching the regular expression--- \`__.*__\` are reserved. Reserved field names are forbidden except in--- certain documented contexts. The map keys, represented as UTF-8, must--- not exceed 1,500 bytes and cannot be empty. Field paths may be used in--- other contexts to refer to structured fields defined here. For--- \`map_value\`, the field path is represented by the simple or quoted--- field names of the containing fields, delimited by \`.\`. For example,--- the structured field \`\"foo\" : { map_value: { \"x&y\" : {--- string_value: \"hello\" }}}\` would be represented by the field path--- \`foo.x&y\`. Within a field path, a quoted field name starts and ends--- with \`\` \` \`\` and may contain any character. Some characters,--- including \`\` \` \`\`, must be escaped using a \`\\\`. For example,--- \`\` \`x&y\` \`\` represents \`x&y\` and \`\` \`bak\\\`tik\` \`\`--- represents \`\` bak\`tik \`\`.------ /See:/ 'documentFields' smart constructor.-newtype DocumentFields =- DocumentFields'- { _dfAddtional :: HashMap Text Value- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DocumentFields' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dfAddtional'-documentFields- :: HashMap Text Value -- ^ 'dfAddtional'- -> DocumentFields-documentFields pDfAddtional_ =- DocumentFields' {_dfAddtional = _Coerce # pDfAddtional_}---dfAddtional :: Lens' DocumentFields (HashMap Text Value)-dfAddtional- = lens _dfAddtional (\ s a -> s{_dfAddtional = a}) .- _Coerce--instance FromJSON DocumentFields where- parseJSON- = withObject "DocumentFields"- (\ o -> DocumentFields' <$> (parseJSONObject o))--instance ToJSON DocumentFields where- toJSON = toJSON . _dfAddtional---- | Options for a transaction that can only be used to read documents.------ /See:/ 'readOnly' smart constructor.-newtype ReadOnly =- ReadOnly'- { _roReadTime :: Maybe DateTime'- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ReadOnly' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'roReadTime'-readOnly- :: ReadOnly-readOnly = ReadOnly' {_roReadTime = Nothing}----- | Reads documents at the given time. This may not be older than 60--- seconds.-roReadTime :: Lens' ReadOnly (Maybe UTCTime)-roReadTime- = lens _roReadTime (\ s a -> s{_roReadTime = a}) .- mapping _DateTime--instance FromJSON ReadOnly where- parseJSON- = withObject "ReadOnly"- (\ o -> ReadOnly' <$> (o .:? "readTime"))--instance ToJSON ReadOnly where- toJSON ReadOnly'{..}- = object- (catMaybes [("readTime" .=) <$> _roReadTime])---- | A specification of a set of documents to listen to.------ /See:/ 'target' smart constructor.-data Target =- Target'- { _tTargetId :: !(Maybe (Textual Int32))- , _tOnce :: !(Maybe Bool)- , _tReadTime :: !(Maybe DateTime')- , _tResumeToken :: !(Maybe Bytes)- , _tDocuments :: !(Maybe DocumentsTarget)- , _tQuery :: !(Maybe QueryTarget)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Target' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tTargetId'------ * 'tOnce'------ * 'tReadTime'------ * 'tResumeToken'------ * 'tDocuments'------ * 'tQuery'-target- :: Target-target =- Target'- { _tTargetId = Nothing- , _tOnce = Nothing- , _tReadTime = Nothing- , _tResumeToken = Nothing- , _tDocuments = Nothing- , _tQuery = Nothing- }----- | A client provided target ID. If not set, the server will assign an ID--- for the target. Used for resuming a target without changing IDs. The IDs--- can either be client-assigned or be server-assigned in a previous--- stream. All targets with client provided IDs must be added before adding--- a target that needs a server-assigned id.-tTargetId :: Lens' Target (Maybe Int32)-tTargetId- = lens _tTargetId (\ s a -> s{_tTargetId = a}) .- mapping _Coerce---- | If the target should be removed once it is current and consistent.-tOnce :: Lens' Target (Maybe Bool)-tOnce = lens _tOnce (\ s a -> s{_tOnce = a})---- | Start listening after a specific \`read_time\`. The client must know the--- state of matching documents at this time.-tReadTime :: Lens' Target (Maybe UTCTime)-tReadTime- = lens _tReadTime (\ s a -> s{_tReadTime = a}) .- mapping _DateTime---- | A resume token from a prior TargetChange for an identical target. Using--- a resume token with a different target is unsupported and may fail.-tResumeToken :: Lens' Target (Maybe ByteString)-tResumeToken- = lens _tResumeToken (\ s a -> s{_tResumeToken = a})- . mapping _Bytes---- | A target specified by a set of document names.-tDocuments :: Lens' Target (Maybe DocumentsTarget)-tDocuments- = lens _tDocuments (\ s a -> s{_tDocuments = a})---- | A target specified by a query.-tQuery :: Lens' Target (Maybe QueryTarget)-tQuery = lens _tQuery (\ s a -> s{_tQuery = a})--instance FromJSON Target where- parseJSON- = withObject "Target"- (\ o ->- Target' <$>- (o .:? "targetId") <*> (o .:? "once") <*>- (o .:? "readTime")- <*> (o .:? "resumeToken")- <*> (o .:? "documents")- <*> (o .:? "query"))--instance ToJSON Target where- toJSON Target'{..}- = object- (catMaybes- [("targetId" .=) <$> _tTargetId,- ("once" .=) <$> _tOnce,- ("readTime" .=) <$> _tReadTime,- ("resumeToken" .=) <$> _tResumeToken,- ("documents" .=) <$> _tDocuments,- ("query" .=) <$> _tQuery])---- | Labels associated with this write request.------ /See:/ 'writeRequestLabels' smart constructor.-newtype WriteRequestLabels =- WriteRequestLabels'- { _wrlAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WriteRequestLabels' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wrlAddtional'-writeRequestLabels- :: HashMap Text Text -- ^ 'wrlAddtional'- -> WriteRequestLabels-writeRequestLabels pWrlAddtional_ =- WriteRequestLabels' {_wrlAddtional = _Coerce # pWrlAddtional_}---wrlAddtional :: Lens' WriteRequestLabels (HashMap Text Text)-wrlAddtional- = lens _wrlAddtional (\ s a -> s{_wrlAddtional = a})- . _Coerce--instance FromJSON WriteRequestLabels where- parseJSON- = withObject "WriteRequestLabels"- (\ o -> WriteRequestLabels' <$> (parseJSONObject o))--instance ToJSON WriteRequestLabels where- toJSON = toJSON . _wrlAddtional---- | This resource represents a long-running operation that is the result of--- a network API call.------ /See:/ 'googleLongrunningOperation' smart constructor.-data GoogleLongrunningOperation =- GoogleLongrunningOperation'- { _gloDone :: !(Maybe Bool)- , _gloError :: !(Maybe Status)- , _gloResponse :: !(Maybe GoogleLongrunningOperationResponse)- , _gloName :: !(Maybe Text)- , _gloMetadata :: !(Maybe GoogleLongrunningOperationMetadata)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GoogleLongrunningOperation' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gloDone'------ * 'gloError'------ * 'gloResponse'------ * 'gloName'------ * 'gloMetadata'-googleLongrunningOperation- :: GoogleLongrunningOperation-googleLongrunningOperation =- GoogleLongrunningOperation'- { _gloDone = Nothing- , _gloError = Nothing- , _gloResponse = Nothing- , _gloName = Nothing- , _gloMetadata = Nothing- }----- | If the value is \`false\`, it means the operation is still in progress.--- If \`true\`, the operation is completed, and either \`error\` or--- \`response\` is available.-gloDone :: Lens' GoogleLongrunningOperation (Maybe Bool)-gloDone = lens _gloDone (\ s a -> s{_gloDone = a})---- | The error result of the operation in case of failure or cancellation.-gloError :: Lens' GoogleLongrunningOperation (Maybe Status)-gloError = lens _gloError (\ s a -> s{_gloError = a})---- | The normal response of the operation in case of success. If the original--- method returns no data on success, such as \`Delete\`, the response is--- \`google.protobuf.Empty\`. If the original method is standard--- \`Get\`\/\`Create\`\/\`Update\`, the response should be the resource.--- For other methods, the response should have the type \`XxxResponse\`,--- where \`Xxx\` is the original method name. For example, if the original--- method name is \`TakeSnapshot()\`, the inferred response type is--- \`TakeSnapshotResponse\`.-gloResponse :: Lens' GoogleLongrunningOperation (Maybe GoogleLongrunningOperationResponse)-gloResponse- = lens _gloResponse (\ s a -> s{_gloResponse = a})---- | The server-assigned name, which is only unique within the same service--- that originally returns it. If you use the default HTTP mapping, the--- \`name\` should have the format of \`operations\/some\/unique\/name\`.-gloName :: Lens' GoogleLongrunningOperation (Maybe Text)-gloName = lens _gloName (\ s a -> s{_gloName = a})---- | Service-specific metadata associated with the operation. It typically--- contains progress information and common metadata such as create time.--- Some services might not provide such metadata. Any method that returns a--- long-running operation should document the metadata type, if any.-gloMetadata :: Lens' GoogleLongrunningOperation (Maybe GoogleLongrunningOperationMetadata)-gloMetadata- = lens _gloMetadata (\ s a -> s{_gloMetadata = a})--instance FromJSON GoogleLongrunningOperation where- parseJSON- = withObject "GoogleLongrunningOperation"- (\ o ->- GoogleLongrunningOperation' <$>- (o .:? "done") <*> (o .:? "error") <*>- (o .:? "response")- <*> (o .:? "name")- <*> (o .:? "metadata"))--instance ToJSON GoogleLongrunningOperation where- toJSON GoogleLongrunningOperation'{..}- = object- (catMaybes- [("done" .=) <$> _gloDone,- ("error" .=) <$> _gloError,- ("response" .=) <$> _gloResponse,- ("name" .=) <$> _gloName,- ("metadata" .=) <$> _gloMetadata])---- | A filter with a single operand.------ /See:/ 'unaryFilter' smart constructor.-data UnaryFilter =- UnaryFilter'- { _ufOp :: !(Maybe UnaryFilterOp)- , _ufField :: !(Maybe FieldReference)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UnaryFilter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ufOp'------ * 'ufField'-unaryFilter- :: UnaryFilter-unaryFilter = UnaryFilter' {_ufOp = Nothing, _ufField = Nothing}----- | The unary operator to apply.-ufOp :: Lens' UnaryFilter (Maybe UnaryFilterOp)-ufOp = lens _ufOp (\ s a -> s{_ufOp = a})---- | The field to which to apply the operator.-ufField :: Lens' UnaryFilter (Maybe FieldReference)-ufField = lens _ufField (\ s a -> s{_ufField = a})--instance FromJSON UnaryFilter where- parseJSON- = withObject "UnaryFilter"- (\ o ->- UnaryFilter' <$> (o .:? "op") <*> (o .:? "field"))--instance ToJSON UnaryFilter where- toJSON UnaryFilter'{..}- = object- (catMaybes- [("op" .=) <$> _ufOp, ("field" .=) <$> _ufField])
− gen/Network/Google/FireStore/Types/Sum.hs
@@ -1,731 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.FireStore.Types.Sum--- 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)----module Network.Google.FireStore.Types.Sum where--import Network.Google.Prelude hiding (Bytes)---- | Indicates that this field supports ordering by the specified order or--- comparing using =, \<, \<=, >, >=.-data GoogleFirestoreAdminV1IndexFieldOrder- = OrderUnspecified- -- ^ @ORDER_UNSPECIFIED@- -- The ordering is unspecified. Not a valid option.- | Ascending- -- ^ @ASCENDING@- -- The field is ordered by ascending field value.- | Descending- -- ^ @DESCENDING@- -- The field is ordered by descending field value.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable GoogleFirestoreAdminV1IndexFieldOrder--instance FromHttpApiData GoogleFirestoreAdminV1IndexFieldOrder where- parseQueryParam = \case- "ORDER_UNSPECIFIED" -> Right OrderUnspecified- "ASCENDING" -> Right Ascending- "DESCENDING" -> Right Descending- x -> Left ("Unable to parse GoogleFirestoreAdminV1IndexFieldOrder from: " <> x)--instance ToHttpApiData GoogleFirestoreAdminV1IndexFieldOrder where- toQueryParam = \case- OrderUnspecified -> "ORDER_UNSPECIFIED"- Ascending -> "ASCENDING"- Descending -> "DESCENDING"--instance FromJSON GoogleFirestoreAdminV1IndexFieldOrder where- parseJSON = parseJSONText "GoogleFirestoreAdminV1IndexFieldOrder"--instance ToJSON GoogleFirestoreAdminV1IndexFieldOrder where- toJSON = toJSONText---- | Specifies how the index is changing.-data GoogleFirestoreAdminV1IndexConfigDeltaChangeType- = ChangeTypeUnspecified- -- ^ @CHANGE_TYPE_UNSPECIFIED@- -- The type of change is not specified or known.- | Add- -- ^ @ADD@- -- The single field index is being added.- | Remove- -- ^ @REMOVE@- -- The single field index is being removed.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable GoogleFirestoreAdminV1IndexConfigDeltaChangeType--instance FromHttpApiData GoogleFirestoreAdminV1IndexConfigDeltaChangeType where- parseQueryParam = \case- "CHANGE_TYPE_UNSPECIFIED" -> Right ChangeTypeUnspecified- "ADD" -> Right Add- "REMOVE" -> Right Remove- x -> Left ("Unable to parse GoogleFirestoreAdminV1IndexConfigDeltaChangeType from: " <> x)--instance ToHttpApiData GoogleFirestoreAdminV1IndexConfigDeltaChangeType where- toQueryParam = \case- ChangeTypeUnspecified -> "CHANGE_TYPE_UNSPECIFIED"- Add -> "ADD"- Remove -> "REMOVE"--instance FromJSON GoogleFirestoreAdminV1IndexConfigDeltaChangeType where- parseJSON = parseJSONText "GoogleFirestoreAdminV1IndexConfigDeltaChangeType"--instance ToJSON GoogleFirestoreAdminV1IndexConfigDeltaChangeType where- toJSON = toJSONText---- | Output only. The serving state of the index.-data GoogleFirestoreAdminV1IndexState- = StateUnspecified- -- ^ @STATE_UNSPECIFIED@- -- The state is unspecified.- | Creating- -- ^ @CREATING@- -- The index is being created. There is an active long-running operation- -- for the index. The index is updated when writing a document. Some index- -- data may exist.- | Ready- -- ^ @READY@- -- The index is ready to be used. The index is updated when writing a- -- document. The index is fully populated from all stored documents it- -- applies to.- | NeedsRepair- -- ^ @NEEDS_REPAIR@- -- The index was being created, but something went wrong. There is no- -- active long-running operation for the index, and the most recently- -- finished long-running operation failed. The index is not updated when- -- writing a document. Some index data may exist. Use the- -- google.longrunning.Operations API to determine why the operation that- -- last attempted to create this index failed, then re-create the index.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable GoogleFirestoreAdminV1IndexState--instance FromHttpApiData GoogleFirestoreAdminV1IndexState where- parseQueryParam = \case- "STATE_UNSPECIFIED" -> Right StateUnspecified- "CREATING" -> Right Creating- "READY" -> Right Ready- "NEEDS_REPAIR" -> Right NeedsRepair- x -> Left ("Unable to parse GoogleFirestoreAdminV1IndexState from: " <> x)--instance ToHttpApiData GoogleFirestoreAdminV1IndexState where- toQueryParam = \case- StateUnspecified -> "STATE_UNSPECIFIED"- Creating -> "CREATING"- Ready -> "READY"- NeedsRepair -> "NEEDS_REPAIR"--instance FromJSON GoogleFirestoreAdminV1IndexState where- parseJSON = parseJSONText "GoogleFirestoreAdminV1IndexState"--instance ToJSON GoogleFirestoreAdminV1IndexState where- toJSON = toJSONText---- | The operator for combining multiple filters.-data CompositeFilterOp- = OperatorUnspecified- -- ^ @OPERATOR_UNSPECIFIED@- -- Unspecified. This value must not be used.- | And- -- ^ @AND@- -- The results are required to satisfy each of the combined filters.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable CompositeFilterOp--instance FromHttpApiData CompositeFilterOp where- parseQueryParam = \case- "OPERATOR_UNSPECIFIED" -> Right OperatorUnspecified- "AND" -> Right And- x -> Left ("Unable to parse CompositeFilterOp from: " <> x)--instance ToHttpApiData CompositeFilterOp where- toQueryParam = \case- OperatorUnspecified -> "OPERATOR_UNSPECIFIED"- And -> "AND"--instance FromJSON CompositeFilterOp where- parseJSON = parseJSONText "CompositeFilterOp"--instance ToJSON CompositeFilterOp where- toJSON = toJSONText---- | Indexes with a collection query scope specified allow queries against a--- collection that is the child of a specific document, specified at query--- time, and that has the same collection id. Indexes with a collection--- group query scope specified allow queries against all collections--- descended from a specific document, specified at query time, and that--- have the same collection id as this index.-data GoogleFirestoreAdminV1IndexQueryScope- = QueryScopeUnspecified- -- ^ @QUERY_SCOPE_UNSPECIFIED@- -- The query scope is unspecified. Not a valid option.- | Collection- -- ^ @COLLECTION@- -- Indexes with a collection query scope specified allow queries against a- -- collection that is the child of a specific document, specified at query- -- time, and that has the collection id specified by the index.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable GoogleFirestoreAdminV1IndexQueryScope--instance FromHttpApiData GoogleFirestoreAdminV1IndexQueryScope where- parseQueryParam = \case- "QUERY_SCOPE_UNSPECIFIED" -> Right QueryScopeUnspecified- "COLLECTION" -> Right Collection- x -> Left ("Unable to parse GoogleFirestoreAdminV1IndexQueryScope from: " <> x)--instance ToHttpApiData GoogleFirestoreAdminV1IndexQueryScope where- toQueryParam = \case- QueryScopeUnspecified -> "QUERY_SCOPE_UNSPECIFIED"- Collection -> "COLLECTION"--instance FromJSON GoogleFirestoreAdminV1IndexQueryScope where- parseJSON = parseJSONText "GoogleFirestoreAdminV1IndexQueryScope"--instance ToJSON GoogleFirestoreAdminV1IndexQueryScope where- toJSON = toJSONText---- | The direction to order by. Defaults to \`ASCENDING\`.-data OrderDirection- = ODDirectionUnspecified- -- ^ @DIRECTION_UNSPECIFIED@- -- Unspecified.- | ODAscending- -- ^ @ASCENDING@- -- Ascending.- | ODDescending- -- ^ @DESCENDING@- -- Descending.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable OrderDirection--instance FromHttpApiData OrderDirection where- parseQueryParam = \case- "DIRECTION_UNSPECIFIED" -> Right ODDirectionUnspecified- "ASCENDING" -> Right ODAscending- "DESCENDING" -> Right ODDescending- x -> Left ("Unable to parse OrderDirection from: " <> x)--instance ToHttpApiData OrderDirection where- toQueryParam = \case- ODDirectionUnspecified -> "DIRECTION_UNSPECIFIED"- ODAscending -> "ASCENDING"- ODDescending -> "DESCENDING"--instance FromJSON OrderDirection where- parseJSON = parseJSONText "OrderDirection"--instance ToJSON OrderDirection where- toJSON = toJSONText---- | A null value.-data ValueNullValue- = NullValue- -- ^ @NULL_VALUE@- -- Null value.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable ValueNullValue--instance FromHttpApiData ValueNullValue where- parseQueryParam = \case- "NULL_VALUE" -> Right NullValue- x -> Left ("Unable to parse ValueNullValue from: " <> x)--instance ToHttpApiData ValueNullValue where- toQueryParam = \case- NullValue -> "NULL_VALUE"--instance FromJSON ValueNullValue where- parseJSON = parseJSONText "ValueNullValue"--instance ToJSON ValueNullValue where- toJSON = toJSONText---- | The unary operator to apply.-data UnaryFilterOp- = UFOOperatorUnspecified- -- ^ @OPERATOR_UNSPECIFIED@- -- Unspecified. This value must not be used.- | UFOIsNan- -- ^ @IS_NAN@- -- Test if a field is equal to NaN.- | UFOIsNull- -- ^ @IS_NULL@- -- Test if an exprestion evaluates to Null.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable UnaryFilterOp--instance FromHttpApiData UnaryFilterOp where- parseQueryParam = \case- "OPERATOR_UNSPECIFIED" -> Right UFOOperatorUnspecified- "IS_NAN" -> Right UFOIsNan- "IS_NULL" -> Right UFOIsNull- x -> Left ("Unable to parse UnaryFilterOp from: " <> x)--instance ToHttpApiData UnaryFilterOp where- toQueryParam = \case- UFOOperatorUnspecified -> "OPERATOR_UNSPECIFIED"- UFOIsNan -> "IS_NAN"- UFOIsNull -> "IS_NULL"--instance FromJSON UnaryFilterOp where- parseJSON = parseJSONText "UnaryFilterOp"--instance ToJSON UnaryFilterOp where- toJSON = toJSONText---- | Indicates that this field supports operations on \`array_value\`s.-data GoogleFirestoreAdminV1IndexFieldArrayConfig- = ArrayConfigUnspecified- -- ^ @ARRAY_CONFIG_UNSPECIFIED@- -- The index does not support additional array queries.- | Contains- -- ^ @CONTAINS@- -- The index supports array containment queries.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable GoogleFirestoreAdminV1IndexFieldArrayConfig--instance FromHttpApiData GoogleFirestoreAdminV1IndexFieldArrayConfig where- parseQueryParam = \case- "ARRAY_CONFIG_UNSPECIFIED" -> Right ArrayConfigUnspecified- "CONTAINS" -> Right Contains- x -> Left ("Unable to parse GoogleFirestoreAdminV1IndexFieldArrayConfig from: " <> x)--instance ToHttpApiData GoogleFirestoreAdminV1IndexFieldArrayConfig where- toQueryParam = \case- ArrayConfigUnspecified -> "ARRAY_CONFIG_UNSPECIFIED"- Contains -> "CONTAINS"--instance FromJSON GoogleFirestoreAdminV1IndexFieldArrayConfig where- parseJSON = parseJSONText "GoogleFirestoreAdminV1IndexFieldArrayConfig"--instance ToJSON GoogleFirestoreAdminV1IndexFieldArrayConfig where- toJSON = toJSONText---- | The state of the operation.-data GoogleFirestoreAdminV1IndexOperationMetadataState- = OperationStateUnspecified- -- ^ @OPERATION_STATE_UNSPECIFIED@- -- Unspecified.- | Initializing- -- ^ @INITIALIZING@- -- Request is being prepared for processing.- | Processing- -- ^ @PROCESSING@- -- Request is actively being processed.- | Cancelling- -- ^ @CANCELLING@- -- Request is in the process of being cancelled after user called- -- google.longrunning.Operations.CancelOperation on the operation.- | Finalizing- -- ^ @FINALIZING@- -- Request has been processed and is in its finalization stage.- | Successful- -- ^ @SUCCESSFUL@- -- Request has completed successfully.- | Failed- -- ^ @FAILED@- -- Request has finished being processed, but encountered an error.- | Cancelled- -- ^ @CANCELLED@- -- Request has finished being cancelled after user called- -- google.longrunning.Operations.CancelOperation.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable GoogleFirestoreAdminV1IndexOperationMetadataState--instance FromHttpApiData GoogleFirestoreAdminV1IndexOperationMetadataState where- parseQueryParam = \case- "OPERATION_STATE_UNSPECIFIED" -> Right OperationStateUnspecified- "INITIALIZING" -> Right Initializing- "PROCESSING" -> Right Processing- "CANCELLING" -> Right Cancelling- "FINALIZING" -> Right Finalizing- "SUCCESSFUL" -> Right Successful- "FAILED" -> Right Failed- "CANCELLED" -> Right Cancelled- x -> Left ("Unable to parse GoogleFirestoreAdminV1IndexOperationMetadataState from: " <> x)--instance ToHttpApiData GoogleFirestoreAdminV1IndexOperationMetadataState where- toQueryParam = \case- OperationStateUnspecified -> "OPERATION_STATE_UNSPECIFIED"- Initializing -> "INITIALIZING"- Processing -> "PROCESSING"- Cancelling -> "CANCELLING"- Finalizing -> "FINALIZING"- Successful -> "SUCCESSFUL"- Failed -> "FAILED"- Cancelled -> "CANCELLED"--instance FromJSON GoogleFirestoreAdminV1IndexOperationMetadataState where- parseJSON = parseJSONText "GoogleFirestoreAdminV1IndexOperationMetadataState"--instance ToJSON GoogleFirestoreAdminV1IndexOperationMetadataState where- toJSON = toJSONText---- | V1 error format.-data Xgafv- = X1- -- ^ @1@- -- v1 error format- | X2- -- ^ @2@- -- v2 error format- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable Xgafv--instance FromHttpApiData Xgafv where- parseQueryParam = \case- "1" -> Right X1- "2" -> Right X2- x -> Left ("Unable to parse Xgafv from: " <> x)--instance ToHttpApiData Xgafv where- toQueryParam = \case- X1 -> "1"- X2 -> "2"--instance FromJSON Xgafv where- parseJSON = parseJSONText "Xgafv"--instance ToJSON Xgafv where- toJSON = toJSONText---- | The operator to filter by.-data FieldFilterOp- = FFOOperatorUnspecified- -- ^ @OPERATOR_UNSPECIFIED@- -- Unspecified. This value must not be used.- | FFOLessThan- -- ^ @LESS_THAN@- -- Less than. Requires that the field come first in \`order_by\`.- | FFOLessThanOrEqual- -- ^ @LESS_THAN_OR_EQUAL@- -- Less than or equal. Requires that the field come first in \`order_by\`.- | FFOGreaterThan- -- ^ @GREATER_THAN@- -- Greater than. Requires that the field come first in \`order_by\`.- | FFOGreaterThanOrEqual- -- ^ @GREATER_THAN_OR_EQUAL@- -- Greater than or equal. Requires that the field come first in- -- \`order_by\`.- | FFOEqual- -- ^ @EQUAL@- -- Equal.- | FFOArrayContains- -- ^ @ARRAY_CONTAINS@- -- Contains. Requires that the field is an array.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable FieldFilterOp--instance FromHttpApiData FieldFilterOp where- parseQueryParam = \case- "OPERATOR_UNSPECIFIED" -> Right FFOOperatorUnspecified- "LESS_THAN" -> Right FFOLessThan- "LESS_THAN_OR_EQUAL" -> Right FFOLessThanOrEqual- "GREATER_THAN" -> Right FFOGreaterThan- "GREATER_THAN_OR_EQUAL" -> Right FFOGreaterThanOrEqual- "EQUAL" -> Right FFOEqual- "ARRAY_CONTAINS" -> Right FFOArrayContains- x -> Left ("Unable to parse FieldFilterOp from: " <> x)--instance ToHttpApiData FieldFilterOp where- toQueryParam = \case- FFOOperatorUnspecified -> "OPERATOR_UNSPECIFIED"- FFOLessThan -> "LESS_THAN"- FFOLessThanOrEqual -> "LESS_THAN_OR_EQUAL"- FFOGreaterThan -> "GREATER_THAN"- FFOGreaterThanOrEqual -> "GREATER_THAN_OR_EQUAL"- FFOEqual -> "EQUAL"- FFOArrayContains -> "ARRAY_CONTAINS"--instance FromJSON FieldFilterOp where- parseJSON = parseJSONText "FieldFilterOp"--instance ToJSON FieldFilterOp where- toJSON = toJSONText---- | The type of change that occurred.-data TargetChangeTargetChangeType- = TCTCTNoChange- -- ^ @NO_CHANGE@- -- No change has occurred. Used only to send an updated \`resume_token\`.- | TCTCTAdd- -- ^ @ADD@- -- The targets have been added.- | TCTCTRemove- -- ^ @REMOVE@- -- The targets have been removed.- | TCTCTCurrent- -- ^ @CURRENT@- -- The targets reflect all changes committed before the targets were added- -- to the stream. This will be sent after or with a \`read_time\` that is- -- greater than or equal to the time at which the targets were added.- -- Listeners can wait for this change if read-after-write semantics are- -- desired.- | TCTCTReset- -- ^ @RESET@- -- The targets have been reset, and a new initial state for the targets- -- will be returned in subsequent changes. After the initial state is- -- complete, \`CURRENT\` will be returned even if the target was previously- -- indicated to be \`CURRENT\`.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable TargetChangeTargetChangeType--instance FromHttpApiData TargetChangeTargetChangeType where- parseQueryParam = \case- "NO_CHANGE" -> Right TCTCTNoChange- "ADD" -> Right TCTCTAdd- "REMOVE" -> Right TCTCTRemove- "CURRENT" -> Right TCTCTCurrent- "RESET" -> Right TCTCTReset- x -> Left ("Unable to parse TargetChangeTargetChangeType from: " <> x)--instance ToHttpApiData TargetChangeTargetChangeType where- toQueryParam = \case- TCTCTNoChange -> "NO_CHANGE"- TCTCTAdd -> "ADD"- TCTCTRemove -> "REMOVE"- TCTCTCurrent -> "CURRENT"- TCTCTReset -> "RESET"--instance FromJSON TargetChangeTargetChangeType where- parseJSON = parseJSONText "TargetChangeTargetChangeType"--instance ToJSON TargetChangeTargetChangeType where- toJSON = toJSONText---- | The state of the import operation.-data GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState- = GFAVIDMOSOperationStateUnspecified- -- ^ @OPERATION_STATE_UNSPECIFIED@- -- Unspecified.- | GFAVIDMOSInitializing- -- ^ @INITIALIZING@- -- Request is being prepared for processing.- | GFAVIDMOSProcessing- -- ^ @PROCESSING@- -- Request is actively being processed.- | GFAVIDMOSCancelling- -- ^ @CANCELLING@- -- Request is in the process of being cancelled after user called- -- google.longrunning.Operations.CancelOperation on the operation.- | GFAVIDMOSFinalizing- -- ^ @FINALIZING@- -- Request has been processed and is in its finalization stage.- | GFAVIDMOSSuccessful- -- ^ @SUCCESSFUL@- -- Request has completed successfully.- | GFAVIDMOSFailed- -- ^ @FAILED@- -- Request has finished being processed, but encountered an error.- | GFAVIDMOSCancelled- -- ^ @CANCELLED@- -- Request has finished being cancelled after user called- -- google.longrunning.Operations.CancelOperation.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState--instance FromHttpApiData GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState where- parseQueryParam = \case- "OPERATION_STATE_UNSPECIFIED" -> Right GFAVIDMOSOperationStateUnspecified- "INITIALIZING" -> Right GFAVIDMOSInitializing- "PROCESSING" -> Right GFAVIDMOSProcessing- "CANCELLING" -> Right GFAVIDMOSCancelling- "FINALIZING" -> Right GFAVIDMOSFinalizing- "SUCCESSFUL" -> Right GFAVIDMOSSuccessful- "FAILED" -> Right GFAVIDMOSFailed- "CANCELLED" -> Right GFAVIDMOSCancelled- x -> Left ("Unable to parse GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState from: " <> x)--instance ToHttpApiData GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState where- toQueryParam = \case- GFAVIDMOSOperationStateUnspecified -> "OPERATION_STATE_UNSPECIFIED"- GFAVIDMOSInitializing -> "INITIALIZING"- GFAVIDMOSProcessing -> "PROCESSING"- GFAVIDMOSCancelling -> "CANCELLING"- GFAVIDMOSFinalizing -> "FINALIZING"- GFAVIDMOSSuccessful -> "SUCCESSFUL"- GFAVIDMOSFailed -> "FAILED"- GFAVIDMOSCancelled -> "CANCELLED"--instance FromJSON GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState where- parseJSON = parseJSONText "GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState"--instance ToJSON GoogleFirestoreAdminV1ImportDocumentsMetadataOperationState where- toJSON = toJSONText---- | The state of the operation.-data GoogleFirestoreAdminV1FieldOperationMetadataState- = GFAVFOMSOperationStateUnspecified- -- ^ @OPERATION_STATE_UNSPECIFIED@- -- Unspecified.- | GFAVFOMSInitializing- -- ^ @INITIALIZING@- -- Request is being prepared for processing.- | GFAVFOMSProcessing- -- ^ @PROCESSING@- -- Request is actively being processed.- | GFAVFOMSCancelling- -- ^ @CANCELLING@- -- Request is in the process of being cancelled after user called- -- google.longrunning.Operations.CancelOperation on the operation.- | GFAVFOMSFinalizing- -- ^ @FINALIZING@- -- Request has been processed and is in its finalization stage.- | GFAVFOMSSuccessful- -- ^ @SUCCESSFUL@- -- Request has completed successfully.- | GFAVFOMSFailed- -- ^ @FAILED@- -- Request has finished being processed, but encountered an error.- | GFAVFOMSCancelled- -- ^ @CANCELLED@- -- Request has finished being cancelled after user called- -- google.longrunning.Operations.CancelOperation.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable GoogleFirestoreAdminV1FieldOperationMetadataState--instance FromHttpApiData GoogleFirestoreAdminV1FieldOperationMetadataState where- parseQueryParam = \case- "OPERATION_STATE_UNSPECIFIED" -> Right GFAVFOMSOperationStateUnspecified- "INITIALIZING" -> Right GFAVFOMSInitializing- "PROCESSING" -> Right GFAVFOMSProcessing- "CANCELLING" -> Right GFAVFOMSCancelling- "FINALIZING" -> Right GFAVFOMSFinalizing- "SUCCESSFUL" -> Right GFAVFOMSSuccessful- "FAILED" -> Right GFAVFOMSFailed- "CANCELLED" -> Right GFAVFOMSCancelled- x -> Left ("Unable to parse GoogleFirestoreAdminV1FieldOperationMetadataState from: " <> x)--instance ToHttpApiData GoogleFirestoreAdminV1FieldOperationMetadataState where- toQueryParam = \case- GFAVFOMSOperationStateUnspecified -> "OPERATION_STATE_UNSPECIFIED"- GFAVFOMSInitializing -> "INITIALIZING"- GFAVFOMSProcessing -> "PROCESSING"- GFAVFOMSCancelling -> "CANCELLING"- GFAVFOMSFinalizing -> "FINALIZING"- GFAVFOMSSuccessful -> "SUCCESSFUL"- GFAVFOMSFailed -> "FAILED"- GFAVFOMSCancelled -> "CANCELLED"--instance FromJSON GoogleFirestoreAdminV1FieldOperationMetadataState where- parseJSON = parseJSONText "GoogleFirestoreAdminV1FieldOperationMetadataState"--instance ToJSON GoogleFirestoreAdminV1FieldOperationMetadataState where- toJSON = toJSONText---- | Sets the field to the given server value.-data FieldTransformSetToServerValue- = ServerValueUnspecified- -- ^ @SERVER_VALUE_UNSPECIFIED@- -- Unspecified. This value must not be used.- | RequestTime- -- ^ @REQUEST_TIME@- -- The time at which the server processed the request, with millisecond- -- precision.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable FieldTransformSetToServerValue--instance FromHttpApiData FieldTransformSetToServerValue where- parseQueryParam = \case- "SERVER_VALUE_UNSPECIFIED" -> Right ServerValueUnspecified- "REQUEST_TIME" -> Right RequestTime- x -> Left ("Unable to parse FieldTransformSetToServerValue from: " <> x)--instance ToHttpApiData FieldTransformSetToServerValue where- toQueryParam = \case- ServerValueUnspecified -> "SERVER_VALUE_UNSPECIFIED"- RequestTime -> "REQUEST_TIME"--instance FromJSON FieldTransformSetToServerValue where- parseJSON = parseJSONText "FieldTransformSetToServerValue"--instance ToJSON FieldTransformSetToServerValue where- toJSON = toJSONText---- | The state of the export operation.-data GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState- = GFAVEDMOSOperationStateUnspecified- -- ^ @OPERATION_STATE_UNSPECIFIED@- -- Unspecified.- | GFAVEDMOSInitializing- -- ^ @INITIALIZING@- -- Request is being prepared for processing.- | GFAVEDMOSProcessing- -- ^ @PROCESSING@- -- Request is actively being processed.- | GFAVEDMOSCancelling- -- ^ @CANCELLING@- -- Request is in the process of being cancelled after user called- -- google.longrunning.Operations.CancelOperation on the operation.- | GFAVEDMOSFinalizing- -- ^ @FINALIZING@- -- Request has been processed and is in its finalization stage.- | GFAVEDMOSSuccessful- -- ^ @SUCCESSFUL@- -- Request has completed successfully.- | GFAVEDMOSFailed- -- ^ @FAILED@- -- Request has finished being processed, but encountered an error.- | GFAVEDMOSCancelled- -- ^ @CANCELLED@- -- Request has finished being cancelled after user called- -- google.longrunning.Operations.CancelOperation.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState--instance FromHttpApiData GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState where- parseQueryParam = \case- "OPERATION_STATE_UNSPECIFIED" -> Right GFAVEDMOSOperationStateUnspecified- "INITIALIZING" -> Right GFAVEDMOSInitializing- "PROCESSING" -> Right GFAVEDMOSProcessing- "CANCELLING" -> Right GFAVEDMOSCancelling- "FINALIZING" -> Right GFAVEDMOSFinalizing- "SUCCESSFUL" -> Right GFAVEDMOSSuccessful- "FAILED" -> Right GFAVEDMOSFailed- "CANCELLED" -> Right GFAVEDMOSCancelled- x -> Left ("Unable to parse GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState from: " <> x)--instance ToHttpApiData GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState where- toQueryParam = \case- GFAVEDMOSOperationStateUnspecified -> "OPERATION_STATE_UNSPECIFIED"- GFAVEDMOSInitializing -> "INITIALIZING"- GFAVEDMOSProcessing -> "PROCESSING"- GFAVEDMOSCancelling -> "CANCELLING"- GFAVEDMOSFinalizing -> "FINALIZING"- GFAVEDMOSSuccessful -> "SUCCESSFUL"- GFAVEDMOSFailed -> "FAILED"- GFAVEDMOSCancelled -> "CANCELLED"--instance FromJSON GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState where- parseJSON = parseJSONText "GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState"--instance ToJSON GoogleFirestoreAdminV1ExportDocumentsMetadataOperationState where- toJSON = toJSONText
− gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Fields/Get.hs
@@ -1,163 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.Get--- 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)------ Gets the metadata and configuration for a Field.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.fields.get@.-module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.Get- (- -- * REST Resource- ProjectsDatabasesCollectionGroupsFieldsGetResource-- -- * Creating a Request- , projectsDatabasesCollectionGroupsFieldsGet- , ProjectsDatabasesCollectionGroupsFieldsGet-- -- * Request Lenses- , pdcgfgXgafv- , pdcgfgUploadProtocol- , pdcgfgAccessToken- , pdcgfgUploadType- , pdcgfgName- , pdcgfgCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.collectionGroups.fields.get@ method which the--- 'ProjectsDatabasesCollectionGroupsFieldsGet' request conforms to.-type ProjectsDatabasesCollectionGroupsFieldsGetResource- =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] GoogleFirestoreAdminV1Field---- | Gets the metadata and configuration for a Field.------ /See:/ 'projectsDatabasesCollectionGroupsFieldsGet' smart constructor.-data ProjectsDatabasesCollectionGroupsFieldsGet =- ProjectsDatabasesCollectionGroupsFieldsGet'- { _pdcgfgXgafv :: !(Maybe Xgafv)- , _pdcgfgUploadProtocol :: !(Maybe Text)- , _pdcgfgAccessToken :: !(Maybe Text)- , _pdcgfgUploadType :: !(Maybe Text)- , _pdcgfgName :: !Text- , _pdcgfgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesCollectionGroupsFieldsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdcgfgXgafv'------ * 'pdcgfgUploadProtocol'------ * 'pdcgfgAccessToken'------ * 'pdcgfgUploadType'------ * 'pdcgfgName'------ * 'pdcgfgCallback'-projectsDatabasesCollectionGroupsFieldsGet- :: Text -- ^ 'pdcgfgName'- -> ProjectsDatabasesCollectionGroupsFieldsGet-projectsDatabasesCollectionGroupsFieldsGet pPdcgfgName_ =- ProjectsDatabasesCollectionGroupsFieldsGet'- { _pdcgfgXgafv = Nothing- , _pdcgfgUploadProtocol = Nothing- , _pdcgfgAccessToken = Nothing- , _pdcgfgUploadType = Nothing- , _pdcgfgName = pPdcgfgName_- , _pdcgfgCallback = Nothing- }----- | V1 error format.-pdcgfgXgafv :: Lens' ProjectsDatabasesCollectionGroupsFieldsGet (Maybe Xgafv)-pdcgfgXgafv- = lens _pdcgfgXgafv (\ s a -> s{_pdcgfgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdcgfgUploadProtocol :: Lens' ProjectsDatabasesCollectionGroupsFieldsGet (Maybe Text)-pdcgfgUploadProtocol- = lens _pdcgfgUploadProtocol- (\ s a -> s{_pdcgfgUploadProtocol = a})---- | OAuth access token.-pdcgfgAccessToken :: Lens' ProjectsDatabasesCollectionGroupsFieldsGet (Maybe Text)-pdcgfgAccessToken- = lens _pdcgfgAccessToken- (\ s a -> s{_pdcgfgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdcgfgUploadType :: Lens' ProjectsDatabasesCollectionGroupsFieldsGet (Maybe Text)-pdcgfgUploadType- = lens _pdcgfgUploadType- (\ s a -> s{_pdcgfgUploadType = a})---- | A name of the form--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/fields\/{field_id}\`-pdcgfgName :: Lens' ProjectsDatabasesCollectionGroupsFieldsGet Text-pdcgfgName- = lens _pdcgfgName (\ s a -> s{_pdcgfgName = a})---- | JSONP-pdcgfgCallback :: Lens' ProjectsDatabasesCollectionGroupsFieldsGet (Maybe Text)-pdcgfgCallback- = lens _pdcgfgCallback- (\ s a -> s{_pdcgfgCallback = a})--instance GoogleRequest- ProjectsDatabasesCollectionGroupsFieldsGet- where- type Rs ProjectsDatabasesCollectionGroupsFieldsGet =- GoogleFirestoreAdminV1Field- type Scopes- ProjectsDatabasesCollectionGroupsFieldsGet- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient- ProjectsDatabasesCollectionGroupsFieldsGet'{..}- = go _pdcgfgName _pdcgfgXgafv _pdcgfgUploadProtocol- _pdcgfgAccessToken- _pdcgfgUploadType- _pdcgfgCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy- ProjectsDatabasesCollectionGroupsFieldsGetResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Fields/List.hs
@@ -1,218 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.List--- 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)------ Lists the field configuration and metadata for this database. Currently,--- FirestoreAdmin.ListFields only supports listing fields that have been--- explicitly overridden. To issue this query, call--- FirestoreAdmin.ListFields with the filter set to--- \`indexConfig.usesAncestorConfig:false\`.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.fields.list@.-module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.List- (- -- * REST Resource- ProjectsDatabasesCollectionGroupsFieldsListResource-- -- * Creating a Request- , projectsDatabasesCollectionGroupsFieldsList- , ProjectsDatabasesCollectionGroupsFieldsList-- -- * Request Lenses- , pdcgflParent- , pdcgflXgafv- , pdcgflUploadProtocol- , pdcgflAccessToken- , pdcgflUploadType- , pdcgflFilter- , pdcgflPageToken- , pdcgflPageSize- , pdcgflCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.collectionGroups.fields.list@ method which the--- 'ProjectsDatabasesCollectionGroupsFieldsList' request conforms to.-type ProjectsDatabasesCollectionGroupsFieldsListResource- =- "v1" :>- Capture "parent" Text :>- "fields" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "filter" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON]- GoogleFirestoreAdminV1ListFieldsResponse---- | Lists the field configuration and metadata for this database. Currently,--- FirestoreAdmin.ListFields only supports listing fields that have been--- explicitly overridden. To issue this query, call--- FirestoreAdmin.ListFields with the filter set to--- \`indexConfig.usesAncestorConfig:false\`.------ /See:/ 'projectsDatabasesCollectionGroupsFieldsList' smart constructor.-data ProjectsDatabasesCollectionGroupsFieldsList =- ProjectsDatabasesCollectionGroupsFieldsList'- { _pdcgflParent :: !Text- , _pdcgflXgafv :: !(Maybe Xgafv)- , _pdcgflUploadProtocol :: !(Maybe Text)- , _pdcgflAccessToken :: !(Maybe Text)- , _pdcgflUploadType :: !(Maybe Text)- , _pdcgflFilter :: !(Maybe Text)- , _pdcgflPageToken :: !(Maybe Text)- , _pdcgflPageSize :: !(Maybe (Textual Int32))- , _pdcgflCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesCollectionGroupsFieldsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdcgflParent'------ * 'pdcgflXgafv'------ * 'pdcgflUploadProtocol'------ * 'pdcgflAccessToken'------ * 'pdcgflUploadType'------ * 'pdcgflFilter'------ * 'pdcgflPageToken'------ * 'pdcgflPageSize'------ * 'pdcgflCallback'-projectsDatabasesCollectionGroupsFieldsList- :: Text -- ^ 'pdcgflParent'- -> ProjectsDatabasesCollectionGroupsFieldsList-projectsDatabasesCollectionGroupsFieldsList pPdcgflParent_ =- ProjectsDatabasesCollectionGroupsFieldsList'- { _pdcgflParent = pPdcgflParent_- , _pdcgflXgafv = Nothing- , _pdcgflUploadProtocol = Nothing- , _pdcgflAccessToken = Nothing- , _pdcgflUploadType = Nothing- , _pdcgflFilter = Nothing- , _pdcgflPageToken = Nothing- , _pdcgflPageSize = Nothing- , _pdcgflCallback = Nothing- }----- | A parent name of the form--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\`-pdcgflParent :: Lens' ProjectsDatabasesCollectionGroupsFieldsList Text-pdcgflParent- = lens _pdcgflParent (\ s a -> s{_pdcgflParent = a})---- | V1 error format.-pdcgflXgafv :: Lens' ProjectsDatabasesCollectionGroupsFieldsList (Maybe Xgafv)-pdcgflXgafv- = lens _pdcgflXgafv (\ s a -> s{_pdcgflXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdcgflUploadProtocol :: Lens' ProjectsDatabasesCollectionGroupsFieldsList (Maybe Text)-pdcgflUploadProtocol- = lens _pdcgflUploadProtocol- (\ s a -> s{_pdcgflUploadProtocol = a})---- | OAuth access token.-pdcgflAccessToken :: Lens' ProjectsDatabasesCollectionGroupsFieldsList (Maybe Text)-pdcgflAccessToken- = lens _pdcgflAccessToken- (\ s a -> s{_pdcgflAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdcgflUploadType :: Lens' ProjectsDatabasesCollectionGroupsFieldsList (Maybe Text)-pdcgflUploadType- = lens _pdcgflUploadType- (\ s a -> s{_pdcgflUploadType = a})---- | The filter to apply to list results. Currently,--- FirestoreAdmin.ListFields only supports listing fields that have been--- explicitly overridden. To issue this query, call--- FirestoreAdmin.ListFields with the filter set to--- \`indexConfig.usesAncestorConfig:false\`.-pdcgflFilter :: Lens' ProjectsDatabasesCollectionGroupsFieldsList (Maybe Text)-pdcgflFilter- = lens _pdcgflFilter (\ s a -> s{_pdcgflFilter = a})---- | A page token, returned from a previous call to--- FirestoreAdmin.ListFields, that may be used to get the next page of--- results.-pdcgflPageToken :: Lens' ProjectsDatabasesCollectionGroupsFieldsList (Maybe Text)-pdcgflPageToken- = lens _pdcgflPageToken- (\ s a -> s{_pdcgflPageToken = a})---- | The number of results to return.-pdcgflPageSize :: Lens' ProjectsDatabasesCollectionGroupsFieldsList (Maybe Int32)-pdcgflPageSize- = lens _pdcgflPageSize- (\ s a -> s{_pdcgflPageSize = a})- . mapping _Coerce---- | JSONP-pdcgflCallback :: Lens' ProjectsDatabasesCollectionGroupsFieldsList (Maybe Text)-pdcgflCallback- = lens _pdcgflCallback- (\ s a -> s{_pdcgflCallback = a})--instance GoogleRequest- ProjectsDatabasesCollectionGroupsFieldsList- where- type Rs ProjectsDatabasesCollectionGroupsFieldsList =- GoogleFirestoreAdminV1ListFieldsResponse- type Scopes- ProjectsDatabasesCollectionGroupsFieldsList- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient- ProjectsDatabasesCollectionGroupsFieldsList'{..}- = go _pdcgflParent _pdcgflXgafv _pdcgflUploadProtocol- _pdcgflAccessToken- _pdcgflUploadType- _pdcgflFilter- _pdcgflPageToken- _pdcgflPageSize- _pdcgflCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy- ProjectsDatabasesCollectionGroupsFieldsListResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Fields/Patch.hs
@@ -1,226 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.Patch--- 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)------ Updates a field configuration. Currently, field updates apply only to--- single field index configuration. However, calls to--- FirestoreAdmin.UpdateField should provide a field mask to avoid changing--- any configuration that the caller isn\'t aware of. The field mask should--- be specified as: \`{ paths: \"index_config\" }\`. This call returns a--- google.longrunning.Operation which may be used to track the status of--- the field update. The metadata for the operation will be the type--- FieldOperationMetadata. To configure the default field settings for the--- database, use the special \`Field\` with resource name:--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/__default__\/fields\/*\`.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.fields.patch@.-module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.Patch- (- -- * REST Resource- ProjectsDatabasesCollectionGroupsFieldsPatchResource-- -- * Creating a Request- , projectsDatabasesCollectionGroupsFieldsPatch- , ProjectsDatabasesCollectionGroupsFieldsPatch-- -- * Request Lenses- , pdcgfpXgafv- , pdcgfpUploadProtocol- , pdcgfpUpdateMask- , pdcgfpAccessToken- , pdcgfpUploadType- , pdcgfpPayload- , pdcgfpName- , pdcgfpCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.collectionGroups.fields.patch@ method which the--- 'ProjectsDatabasesCollectionGroupsFieldsPatch' request conforms to.-type ProjectsDatabasesCollectionGroupsFieldsPatchResource- =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "updateMask" GFieldMask :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] GoogleFirestoreAdminV1Field :>- Patch '[JSON] GoogleLongrunningOperation---- | Updates a field configuration. Currently, field updates apply only to--- single field index configuration. However, calls to--- FirestoreAdmin.UpdateField should provide a field mask to avoid changing--- any configuration that the caller isn\'t aware of. The field mask should--- be specified as: \`{ paths: \"index_config\" }\`. This call returns a--- google.longrunning.Operation which may be used to track the status of--- the field update. The metadata for the operation will be the type--- FieldOperationMetadata. To configure the default field settings for the--- database, use the special \`Field\` with resource name:--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/__default__\/fields\/*\`.------ /See:/ 'projectsDatabasesCollectionGroupsFieldsPatch' smart constructor.-data ProjectsDatabasesCollectionGroupsFieldsPatch =- ProjectsDatabasesCollectionGroupsFieldsPatch'- { _pdcgfpXgafv :: !(Maybe Xgafv)- , _pdcgfpUploadProtocol :: !(Maybe Text)- , _pdcgfpUpdateMask :: !(Maybe GFieldMask)- , _pdcgfpAccessToken :: !(Maybe Text)- , _pdcgfpUploadType :: !(Maybe Text)- , _pdcgfpPayload :: !GoogleFirestoreAdminV1Field- , _pdcgfpName :: !Text- , _pdcgfpCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesCollectionGroupsFieldsPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdcgfpXgafv'------ * 'pdcgfpUploadProtocol'------ * 'pdcgfpUpdateMask'------ * 'pdcgfpAccessToken'------ * 'pdcgfpUploadType'------ * 'pdcgfpPayload'------ * 'pdcgfpName'------ * 'pdcgfpCallback'-projectsDatabasesCollectionGroupsFieldsPatch- :: GoogleFirestoreAdminV1Field -- ^ 'pdcgfpPayload'- -> Text -- ^ 'pdcgfpName'- -> ProjectsDatabasesCollectionGroupsFieldsPatch-projectsDatabasesCollectionGroupsFieldsPatch pPdcgfpPayload_ pPdcgfpName_ =- ProjectsDatabasesCollectionGroupsFieldsPatch'- { _pdcgfpXgafv = Nothing- , _pdcgfpUploadProtocol = Nothing- , _pdcgfpUpdateMask = Nothing- , _pdcgfpAccessToken = Nothing- , _pdcgfpUploadType = Nothing- , _pdcgfpPayload = pPdcgfpPayload_- , _pdcgfpName = pPdcgfpName_- , _pdcgfpCallback = Nothing- }----- | V1 error format.-pdcgfpXgafv :: Lens' ProjectsDatabasesCollectionGroupsFieldsPatch (Maybe Xgafv)-pdcgfpXgafv- = lens _pdcgfpXgafv (\ s a -> s{_pdcgfpXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdcgfpUploadProtocol :: Lens' ProjectsDatabasesCollectionGroupsFieldsPatch (Maybe Text)-pdcgfpUploadProtocol- = lens _pdcgfpUploadProtocol- (\ s a -> s{_pdcgfpUploadProtocol = a})---- | A mask, relative to the field. If specified, only configuration--- specified by this field_mask will be updated in the field.-pdcgfpUpdateMask :: Lens' ProjectsDatabasesCollectionGroupsFieldsPatch (Maybe GFieldMask)-pdcgfpUpdateMask- = lens _pdcgfpUpdateMask- (\ s a -> s{_pdcgfpUpdateMask = a})---- | OAuth access token.-pdcgfpAccessToken :: Lens' ProjectsDatabasesCollectionGroupsFieldsPatch (Maybe Text)-pdcgfpAccessToken- = lens _pdcgfpAccessToken- (\ s a -> s{_pdcgfpAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdcgfpUploadType :: Lens' ProjectsDatabasesCollectionGroupsFieldsPatch (Maybe Text)-pdcgfpUploadType- = lens _pdcgfpUploadType- (\ s a -> s{_pdcgfpUploadType = a})---- | Multipart request metadata.-pdcgfpPayload :: Lens' ProjectsDatabasesCollectionGroupsFieldsPatch GoogleFirestoreAdminV1Field-pdcgfpPayload- = lens _pdcgfpPayload- (\ s a -> s{_pdcgfpPayload = a})---- | A field name of the form--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/fields\/{field_path}\`--- A field path may be a simple field name, e.g. \`address\` or a path to--- fields within map_value , e.g. \`address.city\`, or a special field--- path. The only valid special field is \`*\`, which represents any field.--- Field paths may be quoted using \` (backtick). The only character that--- needs to be escaped within a quoted field path is the backtick character--- itself, escaped using a backslash. Special characters in field paths--- that must be quoted include: \`*\`, \`.\`, \`\`\` (backtick), \`[\`,--- \`]\`, as well as any ascii symbolic characters. Examples: (Note:--- Comments here are written in markdown syntax, so there is an additional--- layer of backticks to represent a code block) \`\\\`address.city\\\`\`--- represents a field named \`address.city\`, not the map key \`city\` in--- the field \`address\`. \`\\\`*\\\`\` represents a field named \`*\`, not--- any field. A special \`Field\` contains the default indexing settings--- for all fields. This field\'s resource name is:--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/__default__\/fields\/*\`--- Indexes defined on this \`Field\` will be applied to all fields which do--- not have their own \`Field\` index configuration.-pdcgfpName :: Lens' ProjectsDatabasesCollectionGroupsFieldsPatch Text-pdcgfpName- = lens _pdcgfpName (\ s a -> s{_pdcgfpName = a})---- | JSONP-pdcgfpCallback :: Lens' ProjectsDatabasesCollectionGroupsFieldsPatch (Maybe Text)-pdcgfpCallback- = lens _pdcgfpCallback- (\ s a -> s{_pdcgfpCallback = a})--instance GoogleRequest- ProjectsDatabasesCollectionGroupsFieldsPatch- where- type Rs ProjectsDatabasesCollectionGroupsFieldsPatch- = GoogleLongrunningOperation- type Scopes- ProjectsDatabasesCollectionGroupsFieldsPatch- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient- ProjectsDatabasesCollectionGroupsFieldsPatch'{..}- = go _pdcgfpName _pdcgfpXgafv _pdcgfpUploadProtocol- _pdcgfpUpdateMask- _pdcgfpAccessToken- _pdcgfpUploadType- _pdcgfpCallback- (Just AltJSON)- _pdcgfpPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy- ProjectsDatabasesCollectionGroupsFieldsPatchResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Indexes/Create.hs
@@ -1,183 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Create--- 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)------ Creates a composite index. This returns a google.longrunning.Operation--- which may be used to track the status of the creation. The metadata for--- the operation will be the type IndexOperationMetadata.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.indexes.create@.-module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Create- (- -- * REST Resource- ProjectsDatabasesCollectionGroupsIndexesCreateResource-- -- * Creating a Request- , projectsDatabasesCollectionGroupsIndexesCreate- , ProjectsDatabasesCollectionGroupsIndexesCreate-- -- * Request Lenses- , pdcgicParent- , pdcgicXgafv- , pdcgicUploadProtocol- , pdcgicAccessToken- , pdcgicUploadType- , pdcgicPayload- , pdcgicCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.collectionGroups.indexes.create@ method which the--- 'ProjectsDatabasesCollectionGroupsIndexesCreate' request conforms to.-type ProjectsDatabasesCollectionGroupsIndexesCreateResource- =- "v1" :>- Capture "parent" Text :>- "indexes" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] GoogleFirestoreAdminV1Index :>- Post '[JSON] GoogleLongrunningOperation---- | Creates a composite index. This returns a google.longrunning.Operation--- which may be used to track the status of the creation. The metadata for--- the operation will be the type IndexOperationMetadata.------ /See:/ 'projectsDatabasesCollectionGroupsIndexesCreate' smart constructor.-data ProjectsDatabasesCollectionGroupsIndexesCreate =- ProjectsDatabasesCollectionGroupsIndexesCreate'- { _pdcgicParent :: !Text- , _pdcgicXgafv :: !(Maybe Xgafv)- , _pdcgicUploadProtocol :: !(Maybe Text)- , _pdcgicAccessToken :: !(Maybe Text)- , _pdcgicUploadType :: !(Maybe Text)- , _pdcgicPayload :: !GoogleFirestoreAdminV1Index- , _pdcgicCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesCollectionGroupsIndexesCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdcgicParent'------ * 'pdcgicXgafv'------ * 'pdcgicUploadProtocol'------ * 'pdcgicAccessToken'------ * 'pdcgicUploadType'------ * 'pdcgicPayload'------ * 'pdcgicCallback'-projectsDatabasesCollectionGroupsIndexesCreate- :: Text -- ^ 'pdcgicParent'- -> GoogleFirestoreAdminV1Index -- ^ 'pdcgicPayload'- -> ProjectsDatabasesCollectionGroupsIndexesCreate-projectsDatabasesCollectionGroupsIndexesCreate pPdcgicParent_ pPdcgicPayload_ =- ProjectsDatabasesCollectionGroupsIndexesCreate'- { _pdcgicParent = pPdcgicParent_- , _pdcgicXgafv = Nothing- , _pdcgicUploadProtocol = Nothing- , _pdcgicAccessToken = Nothing- , _pdcgicUploadType = Nothing- , _pdcgicPayload = pPdcgicPayload_- , _pdcgicCallback = Nothing- }----- | A parent name of the form--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\`-pdcgicParent :: Lens' ProjectsDatabasesCollectionGroupsIndexesCreate Text-pdcgicParent- = lens _pdcgicParent (\ s a -> s{_pdcgicParent = a})---- | V1 error format.-pdcgicXgafv :: Lens' ProjectsDatabasesCollectionGroupsIndexesCreate (Maybe Xgafv)-pdcgicXgafv- = lens _pdcgicXgafv (\ s a -> s{_pdcgicXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdcgicUploadProtocol :: Lens' ProjectsDatabasesCollectionGroupsIndexesCreate (Maybe Text)-pdcgicUploadProtocol- = lens _pdcgicUploadProtocol- (\ s a -> s{_pdcgicUploadProtocol = a})---- | OAuth access token.-pdcgicAccessToken :: Lens' ProjectsDatabasesCollectionGroupsIndexesCreate (Maybe Text)-pdcgicAccessToken- = lens _pdcgicAccessToken- (\ s a -> s{_pdcgicAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdcgicUploadType :: Lens' ProjectsDatabasesCollectionGroupsIndexesCreate (Maybe Text)-pdcgicUploadType- = lens _pdcgicUploadType- (\ s a -> s{_pdcgicUploadType = a})---- | Multipart request metadata.-pdcgicPayload :: Lens' ProjectsDatabasesCollectionGroupsIndexesCreate GoogleFirestoreAdminV1Index-pdcgicPayload- = lens _pdcgicPayload- (\ s a -> s{_pdcgicPayload = a})---- | JSONP-pdcgicCallback :: Lens' ProjectsDatabasesCollectionGroupsIndexesCreate (Maybe Text)-pdcgicCallback- = lens _pdcgicCallback- (\ s a -> s{_pdcgicCallback = a})--instance GoogleRequest- ProjectsDatabasesCollectionGroupsIndexesCreate- where- type Rs- ProjectsDatabasesCollectionGroupsIndexesCreate- = GoogleLongrunningOperation- type Scopes- ProjectsDatabasesCollectionGroupsIndexesCreate- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient- ProjectsDatabasesCollectionGroupsIndexesCreate'{..}- = go _pdcgicParent _pdcgicXgafv _pdcgicUploadProtocol- _pdcgicAccessToken- _pdcgicUploadType- _pdcgicCallback- (Just AltJSON)- _pdcgicPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy- ProjectsDatabasesCollectionGroupsIndexesCreateResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Indexes/Delete.hs
@@ -1,163 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Delete--- 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)------ Deletes a composite index.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.indexes.delete@.-module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Delete- (- -- * REST Resource- ProjectsDatabasesCollectionGroupsIndexesDeleteResource-- -- * Creating a Request- , projectsDatabasesCollectionGroupsIndexesDelete- , ProjectsDatabasesCollectionGroupsIndexesDelete-- -- * Request Lenses- , pdcgidXgafv- , pdcgidUploadProtocol- , pdcgidAccessToken- , pdcgidUploadType- , pdcgidName- , pdcgidCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.collectionGroups.indexes.delete@ method which the--- 'ProjectsDatabasesCollectionGroupsIndexesDelete' request conforms to.-type ProjectsDatabasesCollectionGroupsIndexesDeleteResource- =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] Empty---- | Deletes a composite index.------ /See:/ 'projectsDatabasesCollectionGroupsIndexesDelete' smart constructor.-data ProjectsDatabasesCollectionGroupsIndexesDelete =- ProjectsDatabasesCollectionGroupsIndexesDelete'- { _pdcgidXgafv :: !(Maybe Xgafv)- , _pdcgidUploadProtocol :: !(Maybe Text)- , _pdcgidAccessToken :: !(Maybe Text)- , _pdcgidUploadType :: !(Maybe Text)- , _pdcgidName :: !Text- , _pdcgidCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesCollectionGroupsIndexesDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdcgidXgafv'------ * 'pdcgidUploadProtocol'------ * 'pdcgidAccessToken'------ * 'pdcgidUploadType'------ * 'pdcgidName'------ * 'pdcgidCallback'-projectsDatabasesCollectionGroupsIndexesDelete- :: Text -- ^ 'pdcgidName'- -> ProjectsDatabasesCollectionGroupsIndexesDelete-projectsDatabasesCollectionGroupsIndexesDelete pPdcgidName_ =- ProjectsDatabasesCollectionGroupsIndexesDelete'- { _pdcgidXgafv = Nothing- , _pdcgidUploadProtocol = Nothing- , _pdcgidAccessToken = Nothing- , _pdcgidUploadType = Nothing- , _pdcgidName = pPdcgidName_- , _pdcgidCallback = Nothing- }----- | V1 error format.-pdcgidXgafv :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete (Maybe Xgafv)-pdcgidXgafv- = lens _pdcgidXgafv (\ s a -> s{_pdcgidXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdcgidUploadProtocol :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete (Maybe Text)-pdcgidUploadProtocol- = lens _pdcgidUploadProtocol- (\ s a -> s{_pdcgidUploadProtocol = a})---- | OAuth access token.-pdcgidAccessToken :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete (Maybe Text)-pdcgidAccessToken- = lens _pdcgidAccessToken- (\ s a -> s{_pdcgidAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdcgidUploadType :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete (Maybe Text)-pdcgidUploadType- = lens _pdcgidUploadType- (\ s a -> s{_pdcgidUploadType = a})---- | A name of the form--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/indexes\/{index_id}\`-pdcgidName :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete Text-pdcgidName- = lens _pdcgidName (\ s a -> s{_pdcgidName = a})---- | JSONP-pdcgidCallback :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete (Maybe Text)-pdcgidCallback- = lens _pdcgidCallback- (\ s a -> s{_pdcgidCallback = a})--instance GoogleRequest- ProjectsDatabasesCollectionGroupsIndexesDelete- where- type Rs- ProjectsDatabasesCollectionGroupsIndexesDelete- = Empty- type Scopes- ProjectsDatabasesCollectionGroupsIndexesDelete- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient- ProjectsDatabasesCollectionGroupsIndexesDelete'{..}- = go _pdcgidName _pdcgidXgafv _pdcgidUploadProtocol- _pdcgidAccessToken- _pdcgidUploadType- _pdcgidCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy- ProjectsDatabasesCollectionGroupsIndexesDeleteResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Indexes/Get.hs
@@ -1,163 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Get--- 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)------ Gets a composite index.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.indexes.get@.-module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Get- (- -- * REST Resource- ProjectsDatabasesCollectionGroupsIndexesGetResource-- -- * Creating a Request- , projectsDatabasesCollectionGroupsIndexesGet- , ProjectsDatabasesCollectionGroupsIndexesGet-- -- * Request Lenses- , pdcgigXgafv- , pdcgigUploadProtocol- , pdcgigAccessToken- , pdcgigUploadType- , pdcgigName- , pdcgigCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.collectionGroups.indexes.get@ method which the--- 'ProjectsDatabasesCollectionGroupsIndexesGet' request conforms to.-type ProjectsDatabasesCollectionGroupsIndexesGetResource- =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] GoogleFirestoreAdminV1Index---- | Gets a composite index.------ /See:/ 'projectsDatabasesCollectionGroupsIndexesGet' smart constructor.-data ProjectsDatabasesCollectionGroupsIndexesGet =- ProjectsDatabasesCollectionGroupsIndexesGet'- { _pdcgigXgafv :: !(Maybe Xgafv)- , _pdcgigUploadProtocol :: !(Maybe Text)- , _pdcgigAccessToken :: !(Maybe Text)- , _pdcgigUploadType :: !(Maybe Text)- , _pdcgigName :: !Text- , _pdcgigCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesCollectionGroupsIndexesGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdcgigXgafv'------ * 'pdcgigUploadProtocol'------ * 'pdcgigAccessToken'------ * 'pdcgigUploadType'------ * 'pdcgigName'------ * 'pdcgigCallback'-projectsDatabasesCollectionGroupsIndexesGet- :: Text -- ^ 'pdcgigName'- -> ProjectsDatabasesCollectionGroupsIndexesGet-projectsDatabasesCollectionGroupsIndexesGet pPdcgigName_ =- ProjectsDatabasesCollectionGroupsIndexesGet'- { _pdcgigXgafv = Nothing- , _pdcgigUploadProtocol = Nothing- , _pdcgigAccessToken = Nothing- , _pdcgigUploadType = Nothing- , _pdcgigName = pPdcgigName_- , _pdcgigCallback = Nothing- }----- | V1 error format.-pdcgigXgafv :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet (Maybe Xgafv)-pdcgigXgafv- = lens _pdcgigXgafv (\ s a -> s{_pdcgigXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdcgigUploadProtocol :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet (Maybe Text)-pdcgigUploadProtocol- = lens _pdcgigUploadProtocol- (\ s a -> s{_pdcgigUploadProtocol = a})---- | OAuth access token.-pdcgigAccessToken :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet (Maybe Text)-pdcgigAccessToken- = lens _pdcgigAccessToken- (\ s a -> s{_pdcgigAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdcgigUploadType :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet (Maybe Text)-pdcgigUploadType- = lens _pdcgigUploadType- (\ s a -> s{_pdcgigUploadType = a})---- | A name of the form--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\/indexes\/{index_id}\`-pdcgigName :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet Text-pdcgigName- = lens _pdcgigName (\ s a -> s{_pdcgigName = a})---- | JSONP-pdcgigCallback :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet (Maybe Text)-pdcgigCallback- = lens _pdcgigCallback- (\ s a -> s{_pdcgigCallback = a})--instance GoogleRequest- ProjectsDatabasesCollectionGroupsIndexesGet- where- type Rs ProjectsDatabasesCollectionGroupsIndexesGet =- GoogleFirestoreAdminV1Index- type Scopes- ProjectsDatabasesCollectionGroupsIndexesGet- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient- ProjectsDatabasesCollectionGroupsIndexesGet'{..}- = go _pdcgigName _pdcgigXgafv _pdcgigUploadProtocol- _pdcgigAccessToken- _pdcgigUploadType- _pdcgigCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy- ProjectsDatabasesCollectionGroupsIndexesGetResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/CollectionGroups/Indexes/List.hs
@@ -1,206 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.List--- 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)------ Lists composite indexes.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.collectionGroups.indexes.list@.-module Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.List- (- -- * REST Resource- ProjectsDatabasesCollectionGroupsIndexesListResource-- -- * Creating a Request- , projectsDatabasesCollectionGroupsIndexesList- , ProjectsDatabasesCollectionGroupsIndexesList-- -- * Request Lenses- , pdcgilParent- , pdcgilXgafv- , pdcgilUploadProtocol- , pdcgilAccessToken- , pdcgilUploadType- , pdcgilFilter- , pdcgilPageToken- , pdcgilPageSize- , pdcgilCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.collectionGroups.indexes.list@ method which the--- 'ProjectsDatabasesCollectionGroupsIndexesList' request conforms to.-type ProjectsDatabasesCollectionGroupsIndexesListResource- =- "v1" :>- Capture "parent" Text :>- "indexes" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "filter" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON]- GoogleFirestoreAdminV1ListIndexesResponse---- | Lists composite indexes.------ /See:/ 'projectsDatabasesCollectionGroupsIndexesList' smart constructor.-data ProjectsDatabasesCollectionGroupsIndexesList =- ProjectsDatabasesCollectionGroupsIndexesList'- { _pdcgilParent :: !Text- , _pdcgilXgafv :: !(Maybe Xgafv)- , _pdcgilUploadProtocol :: !(Maybe Text)- , _pdcgilAccessToken :: !(Maybe Text)- , _pdcgilUploadType :: !(Maybe Text)- , _pdcgilFilter :: !(Maybe Text)- , _pdcgilPageToken :: !(Maybe Text)- , _pdcgilPageSize :: !(Maybe (Textual Int32))- , _pdcgilCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesCollectionGroupsIndexesList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdcgilParent'------ * 'pdcgilXgafv'------ * 'pdcgilUploadProtocol'------ * 'pdcgilAccessToken'------ * 'pdcgilUploadType'------ * 'pdcgilFilter'------ * 'pdcgilPageToken'------ * 'pdcgilPageSize'------ * 'pdcgilCallback'-projectsDatabasesCollectionGroupsIndexesList- :: Text -- ^ 'pdcgilParent'- -> ProjectsDatabasesCollectionGroupsIndexesList-projectsDatabasesCollectionGroupsIndexesList pPdcgilParent_ =- ProjectsDatabasesCollectionGroupsIndexesList'- { _pdcgilParent = pPdcgilParent_- , _pdcgilXgafv = Nothing- , _pdcgilUploadProtocol = Nothing- , _pdcgilAccessToken = Nothing- , _pdcgilUploadType = Nothing- , _pdcgilFilter = Nothing- , _pdcgilPageToken = Nothing- , _pdcgilPageSize = Nothing- , _pdcgilCallback = Nothing- }----- | A parent name of the form--- \`projects\/{project_id}\/databases\/{database_id}\/collectionGroups\/{collection_id}\`-pdcgilParent :: Lens' ProjectsDatabasesCollectionGroupsIndexesList Text-pdcgilParent- = lens _pdcgilParent (\ s a -> s{_pdcgilParent = a})---- | V1 error format.-pdcgilXgafv :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Xgafv)-pdcgilXgafv- = lens _pdcgilXgafv (\ s a -> s{_pdcgilXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdcgilUploadProtocol :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)-pdcgilUploadProtocol- = lens _pdcgilUploadProtocol- (\ s a -> s{_pdcgilUploadProtocol = a})---- | OAuth access token.-pdcgilAccessToken :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)-pdcgilAccessToken- = lens _pdcgilAccessToken- (\ s a -> s{_pdcgilAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdcgilUploadType :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)-pdcgilUploadType- = lens _pdcgilUploadType- (\ s a -> s{_pdcgilUploadType = a})---- | The filter to apply to list results.-pdcgilFilter :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)-pdcgilFilter- = lens _pdcgilFilter (\ s a -> s{_pdcgilFilter = a})---- | A page token, returned from a previous call to--- FirestoreAdmin.ListIndexes, that may be used to get the next page of--- results.-pdcgilPageToken :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)-pdcgilPageToken- = lens _pdcgilPageToken- (\ s a -> s{_pdcgilPageToken = a})---- | The number of results to return.-pdcgilPageSize :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Int32)-pdcgilPageSize- = lens _pdcgilPageSize- (\ s a -> s{_pdcgilPageSize = a})- . mapping _Coerce---- | JSONP-pdcgilCallback :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)-pdcgilCallback- = lens _pdcgilCallback- (\ s a -> s{_pdcgilCallback = a})--instance GoogleRequest- ProjectsDatabasesCollectionGroupsIndexesList- where- type Rs ProjectsDatabasesCollectionGroupsIndexesList- = GoogleFirestoreAdminV1ListIndexesResponse- type Scopes- ProjectsDatabasesCollectionGroupsIndexesList- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient- ProjectsDatabasesCollectionGroupsIndexesList'{..}- = go _pdcgilParent _pdcgilXgafv _pdcgilUploadProtocol- _pdcgilAccessToken- _pdcgilUploadType- _pdcgilFilter- _pdcgilPageToken- _pdcgilPageSize- _pdcgilCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy- ProjectsDatabasesCollectionGroupsIndexesListResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/BatchGet.hs
@@ -1,175 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.BatchGet--- 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)------ Gets multiple documents. Documents returned by this method are not--- guaranteed to be returned in the same order that they were requested.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.batchGet@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.BatchGet- (- -- * REST Resource- ProjectsDatabasesDocumentsBatchGetResource-- -- * Creating a Request- , projectsDatabasesDocumentsBatchGet- , ProjectsDatabasesDocumentsBatchGet-- -- * Request Lenses- , pddbgXgafv- , pddbgUploadProtocol- , pddbgDatabase- , pddbgAccessToken- , pddbgUploadType- , pddbgPayload- , pddbgCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.batchGet@ method which the--- 'ProjectsDatabasesDocumentsBatchGet' request conforms to.-type ProjectsDatabasesDocumentsBatchGetResource =- "v1" :>- Capture "database" Text :>- "documents:batchGet" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] BatchGetDocumentsRequest :>- Post '[JSON] BatchGetDocumentsResponse---- | Gets multiple documents. Documents returned by this method are not--- guaranteed to be returned in the same order that they were requested.------ /See:/ 'projectsDatabasesDocumentsBatchGet' smart constructor.-data ProjectsDatabasesDocumentsBatchGet =- ProjectsDatabasesDocumentsBatchGet'- { _pddbgXgafv :: !(Maybe Xgafv)- , _pddbgUploadProtocol :: !(Maybe Text)- , _pddbgDatabase :: !Text- , _pddbgAccessToken :: !(Maybe Text)- , _pddbgUploadType :: !(Maybe Text)- , _pddbgPayload :: !BatchGetDocumentsRequest- , _pddbgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsBatchGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddbgXgafv'------ * 'pddbgUploadProtocol'------ * 'pddbgDatabase'------ * 'pddbgAccessToken'------ * 'pddbgUploadType'------ * 'pddbgPayload'------ * 'pddbgCallback'-projectsDatabasesDocumentsBatchGet- :: Text -- ^ 'pddbgDatabase'- -> BatchGetDocumentsRequest -- ^ 'pddbgPayload'- -> ProjectsDatabasesDocumentsBatchGet-projectsDatabasesDocumentsBatchGet pPddbgDatabase_ pPddbgPayload_ =- ProjectsDatabasesDocumentsBatchGet'- { _pddbgXgafv = Nothing- , _pddbgUploadProtocol = Nothing- , _pddbgDatabase = pPddbgDatabase_- , _pddbgAccessToken = Nothing- , _pddbgUploadType = Nothing- , _pddbgPayload = pPddbgPayload_- , _pddbgCallback = Nothing- }----- | V1 error format.-pddbgXgafv :: Lens' ProjectsDatabasesDocumentsBatchGet (Maybe Xgafv)-pddbgXgafv- = lens _pddbgXgafv (\ s a -> s{_pddbgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddbgUploadProtocol :: Lens' ProjectsDatabasesDocumentsBatchGet (Maybe Text)-pddbgUploadProtocol- = lens _pddbgUploadProtocol- (\ s a -> s{_pddbgUploadProtocol = a})---- | The database name. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\`.-pddbgDatabase :: Lens' ProjectsDatabasesDocumentsBatchGet Text-pddbgDatabase- = lens _pddbgDatabase- (\ s a -> s{_pddbgDatabase = a})---- | OAuth access token.-pddbgAccessToken :: Lens' ProjectsDatabasesDocumentsBatchGet (Maybe Text)-pddbgAccessToken- = lens _pddbgAccessToken- (\ s a -> s{_pddbgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddbgUploadType :: Lens' ProjectsDatabasesDocumentsBatchGet (Maybe Text)-pddbgUploadType- = lens _pddbgUploadType- (\ s a -> s{_pddbgUploadType = a})---- | Multipart request metadata.-pddbgPayload :: Lens' ProjectsDatabasesDocumentsBatchGet BatchGetDocumentsRequest-pddbgPayload- = lens _pddbgPayload (\ s a -> s{_pddbgPayload = a})---- | JSONP-pddbgCallback :: Lens' ProjectsDatabasesDocumentsBatchGet (Maybe Text)-pddbgCallback- = lens _pddbgCallback- (\ s a -> s{_pddbgCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsBatchGet- where- type Rs ProjectsDatabasesDocumentsBatchGet =- BatchGetDocumentsResponse- type Scopes ProjectsDatabasesDocumentsBatchGet =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesDocumentsBatchGet'{..}- = go _pddbgDatabase _pddbgXgafv _pddbgUploadProtocol- _pddbgAccessToken- _pddbgUploadType- _pddbgCallback- (Just AltJSON)- _pddbgPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesDocumentsBatchGetResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/BeginTransaction.hs
@@ -1,178 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.BeginTransaction--- 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)------ Starts a new transaction.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.beginTransaction@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.BeginTransaction- (- -- * REST Resource- ProjectsDatabasesDocumentsBeginTransactionResource-- -- * Creating a Request- , projectsDatabasesDocumentsBeginTransaction- , ProjectsDatabasesDocumentsBeginTransaction-- -- * Request Lenses- , pddbtXgafv- , pddbtUploadProtocol- , pddbtDatabase- , pddbtAccessToken- , pddbtUploadType- , pddbtPayload- , pddbtCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.beginTransaction@ method which the--- 'ProjectsDatabasesDocumentsBeginTransaction' request conforms to.-type ProjectsDatabasesDocumentsBeginTransactionResource- =- "v1" :>- Capture "database" Text :>- "documents:beginTransaction" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] BeginTransactionRequest :>- Post '[JSON] BeginTransactionResponse---- | Starts a new transaction.------ /See:/ 'projectsDatabasesDocumentsBeginTransaction' smart constructor.-data ProjectsDatabasesDocumentsBeginTransaction =- ProjectsDatabasesDocumentsBeginTransaction'- { _pddbtXgafv :: !(Maybe Xgafv)- , _pddbtUploadProtocol :: !(Maybe Text)- , _pddbtDatabase :: !Text- , _pddbtAccessToken :: !(Maybe Text)- , _pddbtUploadType :: !(Maybe Text)- , _pddbtPayload :: !BeginTransactionRequest- , _pddbtCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsBeginTransaction' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddbtXgafv'------ * 'pddbtUploadProtocol'------ * 'pddbtDatabase'------ * 'pddbtAccessToken'------ * 'pddbtUploadType'------ * 'pddbtPayload'------ * 'pddbtCallback'-projectsDatabasesDocumentsBeginTransaction- :: Text -- ^ 'pddbtDatabase'- -> BeginTransactionRequest -- ^ 'pddbtPayload'- -> ProjectsDatabasesDocumentsBeginTransaction-projectsDatabasesDocumentsBeginTransaction pPddbtDatabase_ pPddbtPayload_ =- ProjectsDatabasesDocumentsBeginTransaction'- { _pddbtXgafv = Nothing- , _pddbtUploadProtocol = Nothing- , _pddbtDatabase = pPddbtDatabase_- , _pddbtAccessToken = Nothing- , _pddbtUploadType = Nothing- , _pddbtPayload = pPddbtPayload_- , _pddbtCallback = Nothing- }----- | V1 error format.-pddbtXgafv :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Xgafv)-pddbtXgafv- = lens _pddbtXgafv (\ s a -> s{_pddbtXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddbtUploadProtocol :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text)-pddbtUploadProtocol- = lens _pddbtUploadProtocol- (\ s a -> s{_pddbtUploadProtocol = a})---- | The database name. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\`.-pddbtDatabase :: Lens' ProjectsDatabasesDocumentsBeginTransaction Text-pddbtDatabase- = lens _pddbtDatabase- (\ s a -> s{_pddbtDatabase = a})---- | OAuth access token.-pddbtAccessToken :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text)-pddbtAccessToken- = lens _pddbtAccessToken- (\ s a -> s{_pddbtAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddbtUploadType :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text)-pddbtUploadType- = lens _pddbtUploadType- (\ s a -> s{_pddbtUploadType = a})---- | Multipart request metadata.-pddbtPayload :: Lens' ProjectsDatabasesDocumentsBeginTransaction BeginTransactionRequest-pddbtPayload- = lens _pddbtPayload (\ s a -> s{_pddbtPayload = a})---- | JSONP-pddbtCallback :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text)-pddbtCallback- = lens _pddbtCallback- (\ s a -> s{_pddbtCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsBeginTransaction- where- type Rs ProjectsDatabasesDocumentsBeginTransaction =- BeginTransactionResponse- type Scopes- ProjectsDatabasesDocumentsBeginTransaction- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient- ProjectsDatabasesDocumentsBeginTransaction'{..}- = go _pddbtDatabase _pddbtXgafv _pddbtUploadProtocol- _pddbtAccessToken- _pddbtUploadType- _pddbtCallback- (Just AltJSON)- _pddbtPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy- ProjectsDatabasesDocumentsBeginTransactionResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Commit.hs
@@ -1,171 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.Commit--- 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)------ Commits a transaction, while optionally updating documents.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.commit@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.Commit- (- -- * REST Resource- ProjectsDatabasesDocumentsCommitResource-- -- * Creating a Request- , projectsDatabasesDocumentsCommit- , ProjectsDatabasesDocumentsCommit-- -- * Request Lenses- , pddcXgafv- , pddcUploadProtocol- , pddcDatabase- , pddcAccessToken- , pddcUploadType- , pddcPayload- , pddcCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.commit@ method which the--- 'ProjectsDatabasesDocumentsCommit' request conforms to.-type ProjectsDatabasesDocumentsCommitResource =- "v1" :>- Capture "database" Text :>- "documents:commit" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] CommitRequest :>- Post '[JSON] CommitResponse---- | Commits a transaction, while optionally updating documents.------ /See:/ 'projectsDatabasesDocumentsCommit' smart constructor.-data ProjectsDatabasesDocumentsCommit =- ProjectsDatabasesDocumentsCommit'- { _pddcXgafv :: !(Maybe Xgafv)- , _pddcUploadProtocol :: !(Maybe Text)- , _pddcDatabase :: !Text- , _pddcAccessToken :: !(Maybe Text)- , _pddcUploadType :: !(Maybe Text)- , _pddcPayload :: !CommitRequest- , _pddcCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsCommit' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddcXgafv'------ * 'pddcUploadProtocol'------ * 'pddcDatabase'------ * 'pddcAccessToken'------ * 'pddcUploadType'------ * 'pddcPayload'------ * 'pddcCallback'-projectsDatabasesDocumentsCommit- :: Text -- ^ 'pddcDatabase'- -> CommitRequest -- ^ 'pddcPayload'- -> ProjectsDatabasesDocumentsCommit-projectsDatabasesDocumentsCommit pPddcDatabase_ pPddcPayload_ =- ProjectsDatabasesDocumentsCommit'- { _pddcXgafv = Nothing- , _pddcUploadProtocol = Nothing- , _pddcDatabase = pPddcDatabase_- , _pddcAccessToken = Nothing- , _pddcUploadType = Nothing- , _pddcPayload = pPddcPayload_- , _pddcCallback = Nothing- }----- | V1 error format.-pddcXgafv :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Xgafv)-pddcXgafv- = lens _pddcXgafv (\ s a -> s{_pddcXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddcUploadProtocol :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text)-pddcUploadProtocol- = lens _pddcUploadProtocol- (\ s a -> s{_pddcUploadProtocol = a})---- | The database name. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\`.-pddcDatabase :: Lens' ProjectsDatabasesDocumentsCommit Text-pddcDatabase- = lens _pddcDatabase (\ s a -> s{_pddcDatabase = a})---- | OAuth access token.-pddcAccessToken :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text)-pddcAccessToken- = lens _pddcAccessToken- (\ s a -> s{_pddcAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddcUploadType :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text)-pddcUploadType- = lens _pddcUploadType- (\ s a -> s{_pddcUploadType = a})---- | Multipart request metadata.-pddcPayload :: Lens' ProjectsDatabasesDocumentsCommit CommitRequest-pddcPayload- = lens _pddcPayload (\ s a -> s{_pddcPayload = a})---- | JSONP-pddcCallback :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text)-pddcCallback- = lens _pddcCallback (\ s a -> s{_pddcCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsCommit- where- type Rs ProjectsDatabasesDocumentsCommit =- CommitResponse- type Scopes ProjectsDatabasesDocumentsCommit =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesDocumentsCommit'{..}- = go _pddcDatabase _pddcXgafv _pddcUploadProtocol- _pddcAccessToken- _pddcUploadType- _pddcCallback- (Just AltJSON)- _pddcPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesDocumentsCommitResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/CreateDocument.hs
@@ -1,220 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.CreateDocument--- 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)------ Creates a new document.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.createDocument@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.CreateDocument- (- -- * REST Resource- ProjectsDatabasesDocumentsCreateDocumentResource-- -- * Creating a Request- , projectsDatabasesDocumentsCreateDocument- , ProjectsDatabasesDocumentsCreateDocument-- -- * Request Lenses- , pddcdParent- , pddcdXgafv- , pddcdDocumentId- , pddcdUploadProtocol- , pddcdAccessToken- , pddcdCollectionId- , pddcdUploadType- , pddcdPayload- , pddcdMaskFieldPaths- , pddcdCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.createDocument@ method which the--- 'ProjectsDatabasesDocumentsCreateDocument' request conforms to.-type ProjectsDatabasesDocumentsCreateDocumentResource- =- "v1" :>- Capture "parent" Text :>- Capture "collectionId" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "documentId" Text :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParams "mask.fieldPaths" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Document :> Post '[JSON] Document---- | Creates a new document.------ /See:/ 'projectsDatabasesDocumentsCreateDocument' smart constructor.-data ProjectsDatabasesDocumentsCreateDocument =- ProjectsDatabasesDocumentsCreateDocument'- { _pddcdParent :: !Text- , _pddcdXgafv :: !(Maybe Xgafv)- , _pddcdDocumentId :: !(Maybe Text)- , _pddcdUploadProtocol :: !(Maybe Text)- , _pddcdAccessToken :: !(Maybe Text)- , _pddcdCollectionId :: !Text- , _pddcdUploadType :: !(Maybe Text)- , _pddcdPayload :: !Document- , _pddcdMaskFieldPaths :: !(Maybe [Text])- , _pddcdCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsCreateDocument' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddcdParent'------ * 'pddcdXgafv'------ * 'pddcdDocumentId'------ * 'pddcdUploadProtocol'------ * 'pddcdAccessToken'------ * 'pddcdCollectionId'------ * 'pddcdUploadType'------ * 'pddcdPayload'------ * 'pddcdMaskFieldPaths'------ * 'pddcdCallback'-projectsDatabasesDocumentsCreateDocument- :: Text -- ^ 'pddcdParent'- -> Text -- ^ 'pddcdCollectionId'- -> Document -- ^ 'pddcdPayload'- -> ProjectsDatabasesDocumentsCreateDocument-projectsDatabasesDocumentsCreateDocument pPddcdParent_ pPddcdCollectionId_ pPddcdPayload_ =- ProjectsDatabasesDocumentsCreateDocument'- { _pddcdParent = pPddcdParent_- , _pddcdXgafv = Nothing- , _pddcdDocumentId = Nothing- , _pddcdUploadProtocol = Nothing- , _pddcdAccessToken = Nothing- , _pddcdCollectionId = pPddcdCollectionId_- , _pddcdUploadType = Nothing- , _pddcdPayload = pPddcdPayload_- , _pddcdMaskFieldPaths = Nothing- , _pddcdCallback = Nothing- }----- | The parent resource. For example:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\` or--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/chatrooms\/{chatroom_id}\`-pddcdParent :: Lens' ProjectsDatabasesDocumentsCreateDocument Text-pddcdParent- = lens _pddcdParent (\ s a -> s{_pddcdParent = a})---- | V1 error format.-pddcdXgafv :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Xgafv)-pddcdXgafv- = lens _pddcdXgafv (\ s a -> s{_pddcdXgafv = a})---- | The client-assigned document ID to use for this document. Optional. If--- not specified, an ID will be assigned by the service.-pddcdDocumentId :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text)-pddcdDocumentId- = lens _pddcdDocumentId- (\ s a -> s{_pddcdDocumentId = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddcdUploadProtocol :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text)-pddcdUploadProtocol- = lens _pddcdUploadProtocol- (\ s a -> s{_pddcdUploadProtocol = a})---- | OAuth access token.-pddcdAccessToken :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text)-pddcdAccessToken- = lens _pddcdAccessToken- (\ s a -> s{_pddcdAccessToken = a})---- | The collection ID, relative to \`parent\`, to list. For example:--- \`chatrooms\`.-pddcdCollectionId :: Lens' ProjectsDatabasesDocumentsCreateDocument Text-pddcdCollectionId- = lens _pddcdCollectionId- (\ s a -> s{_pddcdCollectionId = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddcdUploadType :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text)-pddcdUploadType- = lens _pddcdUploadType- (\ s a -> s{_pddcdUploadType = a})---- | Multipart request metadata.-pddcdPayload :: Lens' ProjectsDatabasesDocumentsCreateDocument Document-pddcdPayload- = lens _pddcdPayload (\ s a -> s{_pddcdPayload = a})---- | The list of field paths in the mask. See Document.fields for a field--- path syntax reference.-pddcdMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsCreateDocument [Text]-pddcdMaskFieldPaths- = lens _pddcdMaskFieldPaths- (\ s a -> s{_pddcdMaskFieldPaths = a})- . _Default- . _Coerce---- | JSONP-pddcdCallback :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text)-pddcdCallback- = lens _pddcdCallback- (\ s a -> s{_pddcdCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsCreateDocument- where- type Rs ProjectsDatabasesDocumentsCreateDocument =- Document- type Scopes ProjectsDatabasesDocumentsCreateDocument- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient- ProjectsDatabasesDocumentsCreateDocument'{..}- = go _pddcdParent _pddcdCollectionId _pddcdXgafv- _pddcdDocumentId- _pddcdUploadProtocol- _pddcdAccessToken- _pddcdUploadType- (_pddcdMaskFieldPaths ^. _Default)- _pddcdCallback- (Just AltJSON)- _pddcdPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy- ProjectsDatabasesDocumentsCreateDocumentResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Delete.hs
@@ -1,183 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.Delete--- 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)------ Deletes a document.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.delete@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.Delete- (- -- * REST Resource- ProjectsDatabasesDocumentsDeleteResource-- -- * Creating a Request- , projectsDatabasesDocumentsDelete- , ProjectsDatabasesDocumentsDelete-- -- * Request Lenses- , pdddXgafv- , pdddUploadProtocol- , pdddCurrentDocumentExists- , pdddAccessToken- , pdddUploadType- , pdddCurrentDocumentUpdateTime- , pdddName- , pdddCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.delete@ method which the--- 'ProjectsDatabasesDocumentsDelete' request conforms to.-type ProjectsDatabasesDocumentsDeleteResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "currentDocument.exists" Bool :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "currentDocument.updateTime" DateTime' :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] Empty---- | Deletes a document.------ /See:/ 'projectsDatabasesDocumentsDelete' smart constructor.-data ProjectsDatabasesDocumentsDelete =- ProjectsDatabasesDocumentsDelete'- { _pdddXgafv :: !(Maybe Xgafv)- , _pdddUploadProtocol :: !(Maybe Text)- , _pdddCurrentDocumentExists :: !(Maybe Bool)- , _pdddAccessToken :: !(Maybe Text)- , _pdddUploadType :: !(Maybe Text)- , _pdddCurrentDocumentUpdateTime :: !(Maybe DateTime')- , _pdddName :: !Text- , _pdddCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdddXgafv'------ * 'pdddUploadProtocol'------ * 'pdddCurrentDocumentExists'------ * 'pdddAccessToken'------ * 'pdddUploadType'------ * 'pdddCurrentDocumentUpdateTime'------ * 'pdddName'------ * 'pdddCallback'-projectsDatabasesDocumentsDelete- :: Text -- ^ 'pdddName'- -> ProjectsDatabasesDocumentsDelete-projectsDatabasesDocumentsDelete pPdddName_ =- ProjectsDatabasesDocumentsDelete'- { _pdddXgafv = Nothing- , _pdddUploadProtocol = Nothing- , _pdddCurrentDocumentExists = Nothing- , _pdddAccessToken = Nothing- , _pdddUploadType = Nothing- , _pdddCurrentDocumentUpdateTime = Nothing- , _pdddName = pPdddName_- , _pdddCallback = Nothing- }----- | V1 error format.-pdddXgafv :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Xgafv)-pdddXgafv- = lens _pdddXgafv (\ s a -> s{_pdddXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdddUploadProtocol :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)-pdddUploadProtocol- = lens _pdddUploadProtocol- (\ s a -> s{_pdddUploadProtocol = a})---- | When set to \`true\`, the target document must exist. When set to--- \`false\`, the target document must not exist.-pdddCurrentDocumentExists :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Bool)-pdddCurrentDocumentExists- = lens _pdddCurrentDocumentExists- (\ s a -> s{_pdddCurrentDocumentExists = a})---- | OAuth access token.-pdddAccessToken :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)-pdddAccessToken- = lens _pdddAccessToken- (\ s a -> s{_pdddAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdddUploadType :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)-pdddUploadType- = lens _pdddUploadType- (\ s a -> s{_pdddUploadType = a})---- | When set, the target document must exist and have been last updated at--- that time.-pdddCurrentDocumentUpdateTime :: Lens' ProjectsDatabasesDocumentsDelete (Maybe UTCTime)-pdddCurrentDocumentUpdateTime- = lens _pdddCurrentDocumentUpdateTime- (\ s a -> s{_pdddCurrentDocumentUpdateTime = a})- . mapping _DateTime---- | The resource name of the Document to delete. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.-pdddName :: Lens' ProjectsDatabasesDocumentsDelete Text-pdddName = lens _pdddName (\ s a -> s{_pdddName = a})---- | JSONP-pdddCallback :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)-pdddCallback- = lens _pdddCallback (\ s a -> s{_pdddCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsDelete- where- type Rs ProjectsDatabasesDocumentsDelete = Empty- type Scopes ProjectsDatabasesDocumentsDelete =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesDocumentsDelete'{..}- = go _pdddName _pdddXgafv _pdddUploadProtocol- _pdddCurrentDocumentExists- _pdddAccessToken- _pdddUploadType- _pdddCurrentDocumentUpdateTime- _pdddCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesDocumentsDeleteResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Get.hs
@@ -1,197 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.Get--- 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)------ Gets a single document.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.get@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.Get- (- -- * REST Resource- ProjectsDatabasesDocumentsGetResource-- -- * Creating a Request- , projectsDatabasesDocumentsGet- , ProjectsDatabasesDocumentsGet-- -- * Request Lenses- , pddgXgafv- , pddgReadTime- , pddgUploadProtocol- , pddgAccessToken- , pddgUploadType- , pddgTransaction- , pddgName- , pddgMaskFieldPaths- , pddgCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.get@ method which the--- 'ProjectsDatabasesDocumentsGet' request conforms to.-type ProjectsDatabasesDocumentsGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "readTime" DateTime' :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "transaction" Bytes :>- QueryParams "mask.fieldPaths" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Document---- | Gets a single document.------ /See:/ 'projectsDatabasesDocumentsGet' smart constructor.-data ProjectsDatabasesDocumentsGet =- ProjectsDatabasesDocumentsGet'- { _pddgXgafv :: !(Maybe Xgafv)- , _pddgReadTime :: !(Maybe DateTime')- , _pddgUploadProtocol :: !(Maybe Text)- , _pddgAccessToken :: !(Maybe Text)- , _pddgUploadType :: !(Maybe Text)- , _pddgTransaction :: !(Maybe Bytes)- , _pddgName :: !Text- , _pddgMaskFieldPaths :: !(Maybe [Text])- , _pddgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddgXgafv'------ * 'pddgReadTime'------ * 'pddgUploadProtocol'------ * 'pddgAccessToken'------ * 'pddgUploadType'------ * 'pddgTransaction'------ * 'pddgName'------ * 'pddgMaskFieldPaths'------ * 'pddgCallback'-projectsDatabasesDocumentsGet- :: Text -- ^ 'pddgName'- -> ProjectsDatabasesDocumentsGet-projectsDatabasesDocumentsGet pPddgName_ =- ProjectsDatabasesDocumentsGet'- { _pddgXgafv = Nothing- , _pddgReadTime = Nothing- , _pddgUploadProtocol = Nothing- , _pddgAccessToken = Nothing- , _pddgUploadType = Nothing- , _pddgTransaction = Nothing- , _pddgName = pPddgName_- , _pddgMaskFieldPaths = Nothing- , _pddgCallback = Nothing- }----- | V1 error format.-pddgXgafv :: Lens' ProjectsDatabasesDocumentsGet (Maybe Xgafv)-pddgXgafv- = lens _pddgXgafv (\ s a -> s{_pddgXgafv = a})---- | Reads the version of the document at the given time. This may not be--- older than 60 seconds.-pddgReadTime :: Lens' ProjectsDatabasesDocumentsGet (Maybe UTCTime)-pddgReadTime- = lens _pddgReadTime (\ s a -> s{_pddgReadTime = a})- . mapping _DateTime---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddgUploadProtocol :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text)-pddgUploadProtocol- = lens _pddgUploadProtocol- (\ s a -> s{_pddgUploadProtocol = a})---- | OAuth access token.-pddgAccessToken :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text)-pddgAccessToken- = lens _pddgAccessToken- (\ s a -> s{_pddgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddgUploadType :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text)-pddgUploadType- = lens _pddgUploadType- (\ s a -> s{_pddgUploadType = a})---- | Reads the document in a transaction.-pddgTransaction :: Lens' ProjectsDatabasesDocumentsGet (Maybe ByteString)-pddgTransaction- = lens _pddgTransaction- (\ s a -> s{_pddgTransaction = a})- . mapping _Bytes---- | The resource name of the Document to get. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.-pddgName :: Lens' ProjectsDatabasesDocumentsGet Text-pddgName = lens _pddgName (\ s a -> s{_pddgName = a})---- | The list of field paths in the mask. See Document.fields for a field--- path syntax reference.-pddgMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsGet [Text]-pddgMaskFieldPaths- = lens _pddgMaskFieldPaths- (\ s a -> s{_pddgMaskFieldPaths = a})- . _Default- . _Coerce---- | JSONP-pddgCallback :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text)-pddgCallback- = lens _pddgCallback (\ s a -> s{_pddgCallback = a})--instance GoogleRequest ProjectsDatabasesDocumentsGet- where- type Rs ProjectsDatabasesDocumentsGet = Document- type Scopes ProjectsDatabasesDocumentsGet =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesDocumentsGet'{..}- = go _pddgName _pddgXgafv _pddgReadTime- _pddgUploadProtocol- _pddgAccessToken- _pddgUploadType- _pddgTransaction- (_pddgMaskFieldPaths ^. _Default)- _pddgCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesDocumentsGetResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/List.hs
@@ -1,266 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.List--- 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)------ Lists documents.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.list@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.List- (- -- * REST Resource- ProjectsDatabasesDocumentsListResource-- -- * Creating a Request- , projectsDatabasesDocumentsList- , ProjectsDatabasesDocumentsList-- -- * Request Lenses- , pParent- , pXgafv- , pReadTime- , pUploadProtocol- , pOrderBy- , pAccessToken- , pCollectionId- , pUploadType- , pTransaction- , pShowMissing- , pPageToken- , pPageSize- , pMaskFieldPaths- , pCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.list@ method which the--- 'ProjectsDatabasesDocumentsList' request conforms to.-type ProjectsDatabasesDocumentsListResource =- "v1" :>- Capture "parent" Text :>- Capture "collectionId" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "readTime" DateTime' :>- QueryParam "upload_protocol" Text :>- QueryParam "orderBy" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "transaction" Bytes :>- QueryParam "showMissing" Bool :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParams "mask.fieldPaths" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListDocumentsResponse---- | Lists documents.------ /See:/ 'projectsDatabasesDocumentsList' smart constructor.-data ProjectsDatabasesDocumentsList =- ProjectsDatabasesDocumentsList'- { _pParent :: !Text- , _pXgafv :: !(Maybe Xgafv)- , _pReadTime :: !(Maybe DateTime')- , _pUploadProtocol :: !(Maybe Text)- , _pOrderBy :: !(Maybe Text)- , _pAccessToken :: !(Maybe Text)- , _pCollectionId :: !Text- , _pUploadType :: !(Maybe Text)- , _pTransaction :: !(Maybe Bytes)- , _pShowMissing :: !(Maybe Bool)- , _pPageToken :: !(Maybe Text)- , _pPageSize :: !(Maybe (Textual Int32))- , _pMaskFieldPaths :: !(Maybe [Text])- , _pCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pParent'------ * 'pXgafv'------ * 'pReadTime'------ * 'pUploadProtocol'------ * 'pOrderBy'------ * 'pAccessToken'------ * 'pCollectionId'------ * 'pUploadType'------ * 'pTransaction'------ * 'pShowMissing'------ * 'pPageToken'------ * 'pPageSize'------ * 'pMaskFieldPaths'------ * 'pCallback'-projectsDatabasesDocumentsList- :: Text -- ^ 'pParent'- -> Text -- ^ 'pCollectionId'- -> ProjectsDatabasesDocumentsList-projectsDatabasesDocumentsList pPParent_ pPCollectionId_ =- ProjectsDatabasesDocumentsList'- { _pParent = pPParent_- , _pXgafv = Nothing- , _pReadTime = Nothing- , _pUploadProtocol = Nothing- , _pOrderBy = Nothing- , _pAccessToken = Nothing- , _pCollectionId = pPCollectionId_- , _pUploadType = Nothing- , _pTransaction = Nothing- , _pShowMissing = Nothing- , _pPageToken = Nothing- , _pPageSize = Nothing- , _pMaskFieldPaths = Nothing- , _pCallback = Nothing- }----- | The parent resource name. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\` or--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.--- For example: \`projects\/my-project\/databases\/my-database\/documents\`--- or--- \`projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom\`-pParent :: Lens' ProjectsDatabasesDocumentsList Text-pParent = lens _pParent (\ s a -> s{_pParent = a})---- | V1 error format.-pXgafv :: Lens' ProjectsDatabasesDocumentsList (Maybe Xgafv)-pXgafv = lens _pXgafv (\ s a -> s{_pXgafv = a})---- | Reads documents as they were at the given time. This may not be older--- than 60 seconds.-pReadTime :: Lens' ProjectsDatabasesDocumentsList (Maybe UTCTime)-pReadTime- = lens _pReadTime (\ s a -> s{_pReadTime = a}) .- mapping _DateTime---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pUploadProtocol :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)-pUploadProtocol- = lens _pUploadProtocol- (\ s a -> s{_pUploadProtocol = a})---- | The order to sort results by. For example: \`priority desc, name\`.-pOrderBy :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)-pOrderBy = lens _pOrderBy (\ s a -> s{_pOrderBy = a})---- | OAuth access token.-pAccessToken :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)-pAccessToken- = lens _pAccessToken (\ s a -> s{_pAccessToken = a})---- | The collection ID, relative to \`parent\`, to list. For example:--- \`chatrooms\` or \`messages\`.-pCollectionId :: Lens' ProjectsDatabasesDocumentsList Text-pCollectionId- = lens _pCollectionId- (\ s a -> s{_pCollectionId = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pUploadType :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)-pUploadType- = lens _pUploadType (\ s a -> s{_pUploadType = a})---- | Reads documents in a transaction.-pTransaction :: Lens' ProjectsDatabasesDocumentsList (Maybe ByteString)-pTransaction- = lens _pTransaction (\ s a -> s{_pTransaction = a})- . mapping _Bytes---- | If the list should show missing documents. A missing document is a--- document that does not exist but has sub-documents. These documents will--- be returned with a key but will not have fields, Document.create_time,--- or Document.update_time set. Requests with \`show_missing\` may not--- specify \`where\` or \`order_by\`.-pShowMissing :: Lens' ProjectsDatabasesDocumentsList (Maybe Bool)-pShowMissing- = lens _pShowMissing (\ s a -> s{_pShowMissing = a})---- | The \`next_page_token\` value returned from a previous List request, if--- any.-pPageToken :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)-pPageToken- = lens _pPageToken (\ s a -> s{_pPageToken = a})---- | The maximum number of documents to return.-pPageSize :: Lens' ProjectsDatabasesDocumentsList (Maybe Int32)-pPageSize- = lens _pPageSize (\ s a -> s{_pPageSize = a}) .- mapping _Coerce---- | The list of field paths in the mask. See Document.fields for a field--- path syntax reference.-pMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsList [Text]-pMaskFieldPaths- = lens _pMaskFieldPaths- (\ s a -> s{_pMaskFieldPaths = a})- . _Default- . _Coerce---- | JSONP-pCallback :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)-pCallback- = lens _pCallback (\ s a -> s{_pCallback = a})--instance GoogleRequest ProjectsDatabasesDocumentsList- where- type Rs ProjectsDatabasesDocumentsList =- ListDocumentsResponse- type Scopes ProjectsDatabasesDocumentsList =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesDocumentsList'{..}- = go _pParent _pCollectionId _pXgafv _pReadTime- _pUploadProtocol- _pOrderBy- _pAccessToken- _pUploadType- _pTransaction- _pShowMissing- _pPageToken- _pPageSize- (_pMaskFieldPaths ^. _Default)- _pCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesDocumentsListResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/ListCollectionIds.hs
@@ -1,179 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.ListCollectionIds--- 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)------ Lists all the collection IDs underneath a document.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.listCollectionIds@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.ListCollectionIds- (- -- * REST Resource- ProjectsDatabasesDocumentsListCollectionIdsResource-- -- * Creating a Request- , projectsDatabasesDocumentsListCollectionIds- , ProjectsDatabasesDocumentsListCollectionIds-- -- * Request Lenses- , pddlciParent- , pddlciXgafv- , pddlciUploadProtocol- , pddlciAccessToken- , pddlciUploadType- , pddlciPayload- , pddlciCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.listCollectionIds@ method which the--- 'ProjectsDatabasesDocumentsListCollectionIds' request conforms to.-type ProjectsDatabasesDocumentsListCollectionIdsResource- =- "v1" :>- CaptureMode "parent" "listCollectionIds" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ListCollectionIdsRequest :>- Post '[JSON] ListCollectionIdsResponse---- | Lists all the collection IDs underneath a document.------ /See:/ 'projectsDatabasesDocumentsListCollectionIds' smart constructor.-data ProjectsDatabasesDocumentsListCollectionIds =- ProjectsDatabasesDocumentsListCollectionIds'- { _pddlciParent :: !Text- , _pddlciXgafv :: !(Maybe Xgafv)- , _pddlciUploadProtocol :: !(Maybe Text)- , _pddlciAccessToken :: !(Maybe Text)- , _pddlciUploadType :: !(Maybe Text)- , _pddlciPayload :: !ListCollectionIdsRequest- , _pddlciCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsListCollectionIds' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddlciParent'------ * 'pddlciXgafv'------ * 'pddlciUploadProtocol'------ * 'pddlciAccessToken'------ * 'pddlciUploadType'------ * 'pddlciPayload'------ * 'pddlciCallback'-projectsDatabasesDocumentsListCollectionIds- :: Text -- ^ 'pddlciParent'- -> ListCollectionIdsRequest -- ^ 'pddlciPayload'- -> ProjectsDatabasesDocumentsListCollectionIds-projectsDatabasesDocumentsListCollectionIds pPddlciParent_ pPddlciPayload_ =- ProjectsDatabasesDocumentsListCollectionIds'- { _pddlciParent = pPddlciParent_- , _pddlciXgafv = Nothing- , _pddlciUploadProtocol = Nothing- , _pddlciAccessToken = Nothing- , _pddlciUploadType = Nothing- , _pddlciPayload = pPddlciPayload_- , _pddlciCallback = Nothing- }----- | The parent document. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.--- For example:--- \`projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom\`-pddlciParent :: Lens' ProjectsDatabasesDocumentsListCollectionIds Text-pddlciParent- = lens _pddlciParent (\ s a -> s{_pddlciParent = a})---- | V1 error format.-pddlciXgafv :: Lens' ProjectsDatabasesDocumentsListCollectionIds (Maybe Xgafv)-pddlciXgafv- = lens _pddlciXgafv (\ s a -> s{_pddlciXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddlciUploadProtocol :: Lens' ProjectsDatabasesDocumentsListCollectionIds (Maybe Text)-pddlciUploadProtocol- = lens _pddlciUploadProtocol- (\ s a -> s{_pddlciUploadProtocol = a})---- | OAuth access token.-pddlciAccessToken :: Lens' ProjectsDatabasesDocumentsListCollectionIds (Maybe Text)-pddlciAccessToken- = lens _pddlciAccessToken- (\ s a -> s{_pddlciAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddlciUploadType :: Lens' ProjectsDatabasesDocumentsListCollectionIds (Maybe Text)-pddlciUploadType- = lens _pddlciUploadType- (\ s a -> s{_pddlciUploadType = a})---- | Multipart request metadata.-pddlciPayload :: Lens' ProjectsDatabasesDocumentsListCollectionIds ListCollectionIdsRequest-pddlciPayload- = lens _pddlciPayload- (\ s a -> s{_pddlciPayload = a})---- | JSONP-pddlciCallback :: Lens' ProjectsDatabasesDocumentsListCollectionIds (Maybe Text)-pddlciCallback- = lens _pddlciCallback- (\ s a -> s{_pddlciCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsListCollectionIds- where- type Rs ProjectsDatabasesDocumentsListCollectionIds =- ListCollectionIdsResponse- type Scopes- ProjectsDatabasesDocumentsListCollectionIds- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient- ProjectsDatabasesDocumentsListCollectionIds'{..}- = go _pddlciParent _pddlciXgafv _pddlciUploadProtocol- _pddlciAccessToken- _pddlciUploadType- _pddlciCallback- (Just AltJSON)- _pddlciPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy- ProjectsDatabasesDocumentsListCollectionIdsResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Listen.hs
@@ -1,171 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.Listen--- 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)------ Listens to changes.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.listen@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.Listen- (- -- * REST Resource- ProjectsDatabasesDocumentsListenResource-- -- * Creating a Request- , projectsDatabasesDocumentsListen- , ProjectsDatabasesDocumentsListen-- -- * Request Lenses- , pddlXgafv- , pddlUploadProtocol- , pddlDatabase- , pddlAccessToken- , pddlUploadType- , pddlPayload- , pddlCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.listen@ method which the--- 'ProjectsDatabasesDocumentsListen' request conforms to.-type ProjectsDatabasesDocumentsListenResource =- "v1" :>- Capture "database" Text :>- "documents:listen" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ListenRequest :>- Post '[JSON] ListenResponse---- | Listens to changes.------ /See:/ 'projectsDatabasesDocumentsListen' smart constructor.-data ProjectsDatabasesDocumentsListen =- ProjectsDatabasesDocumentsListen'- { _pddlXgafv :: !(Maybe Xgafv)- , _pddlUploadProtocol :: !(Maybe Text)- , _pddlDatabase :: !Text- , _pddlAccessToken :: !(Maybe Text)- , _pddlUploadType :: !(Maybe Text)- , _pddlPayload :: !ListenRequest- , _pddlCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsListen' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddlXgafv'------ * 'pddlUploadProtocol'------ * 'pddlDatabase'------ * 'pddlAccessToken'------ * 'pddlUploadType'------ * 'pddlPayload'------ * 'pddlCallback'-projectsDatabasesDocumentsListen- :: Text -- ^ 'pddlDatabase'- -> ListenRequest -- ^ 'pddlPayload'- -> ProjectsDatabasesDocumentsListen-projectsDatabasesDocumentsListen pPddlDatabase_ pPddlPayload_ =- ProjectsDatabasesDocumentsListen'- { _pddlXgafv = Nothing- , _pddlUploadProtocol = Nothing- , _pddlDatabase = pPddlDatabase_- , _pddlAccessToken = Nothing- , _pddlUploadType = Nothing- , _pddlPayload = pPddlPayload_- , _pddlCallback = Nothing- }----- | V1 error format.-pddlXgafv :: Lens' ProjectsDatabasesDocumentsListen (Maybe Xgafv)-pddlXgafv- = lens _pddlXgafv (\ s a -> s{_pddlXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddlUploadProtocol :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text)-pddlUploadProtocol- = lens _pddlUploadProtocol- (\ s a -> s{_pddlUploadProtocol = a})---- | The database name. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\`.-pddlDatabase :: Lens' ProjectsDatabasesDocumentsListen Text-pddlDatabase- = lens _pddlDatabase (\ s a -> s{_pddlDatabase = a})---- | OAuth access token.-pddlAccessToken :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text)-pddlAccessToken- = lens _pddlAccessToken- (\ s a -> s{_pddlAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddlUploadType :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text)-pddlUploadType- = lens _pddlUploadType- (\ s a -> s{_pddlUploadType = a})---- | Multipart request metadata.-pddlPayload :: Lens' ProjectsDatabasesDocumentsListen ListenRequest-pddlPayload- = lens _pddlPayload (\ s a -> s{_pddlPayload = a})---- | JSONP-pddlCallback :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text)-pddlCallback- = lens _pddlCallback (\ s a -> s{_pddlCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsListen- where- type Rs ProjectsDatabasesDocumentsListen =- ListenResponse- type Scopes ProjectsDatabasesDocumentsListen =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesDocumentsListen'{..}- = go _pddlDatabase _pddlXgafv _pddlUploadProtocol- _pddlAccessToken- _pddlUploadType- _pddlCallback- (Just AltJSON)- _pddlPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesDocumentsListenResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Patch.hs
@@ -1,229 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch--- 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)------ Updates or inserts a document.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.patch@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch- (- -- * REST Resource- ProjectsDatabasesDocumentsPatchResource-- -- * Creating a Request- , projectsDatabasesDocumentsPatch- , ProjectsDatabasesDocumentsPatch-- -- * Request Lenses- , pddpXgafv- , pddpUpdateMaskFieldPaths- , pddpUploadProtocol- , pddpCurrentDocumentExists- , pddpAccessToken- , pddpUploadType- , pddpPayload- , pddpCurrentDocumentUpdateTime- , pddpName- , pddpMaskFieldPaths- , pddpCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.patch@ method which the--- 'ProjectsDatabasesDocumentsPatch' request conforms to.-type ProjectsDatabasesDocumentsPatchResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParams "updateMask.fieldPaths" Text :>- QueryParam "upload_protocol" Text :>- QueryParam "currentDocument.exists" Bool :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "currentDocument.updateTime" DateTime' :>- QueryParams "mask.fieldPaths" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Document :> Patch '[JSON] Document---- | Updates or inserts a document.------ /See:/ 'projectsDatabasesDocumentsPatch' smart constructor.-data ProjectsDatabasesDocumentsPatch =- ProjectsDatabasesDocumentsPatch'- { _pddpXgafv :: !(Maybe Xgafv)- , _pddpUpdateMaskFieldPaths :: !(Maybe [Text])- , _pddpUploadProtocol :: !(Maybe Text)- , _pddpCurrentDocumentExists :: !(Maybe Bool)- , _pddpAccessToken :: !(Maybe Text)- , _pddpUploadType :: !(Maybe Text)- , _pddpPayload :: !Document- , _pddpCurrentDocumentUpdateTime :: !(Maybe DateTime')- , _pddpName :: !Text- , _pddpMaskFieldPaths :: !(Maybe [Text])- , _pddpCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddpXgafv'------ * 'pddpUpdateMaskFieldPaths'------ * 'pddpUploadProtocol'------ * 'pddpCurrentDocumentExists'------ * 'pddpAccessToken'------ * 'pddpUploadType'------ * 'pddpPayload'------ * 'pddpCurrentDocumentUpdateTime'------ * 'pddpName'------ * 'pddpMaskFieldPaths'------ * 'pddpCallback'-projectsDatabasesDocumentsPatch- :: Document -- ^ 'pddpPayload'- -> Text -- ^ 'pddpName'- -> ProjectsDatabasesDocumentsPatch-projectsDatabasesDocumentsPatch pPddpPayload_ pPddpName_ =- ProjectsDatabasesDocumentsPatch'- { _pddpXgafv = Nothing- , _pddpUpdateMaskFieldPaths = Nothing- , _pddpUploadProtocol = Nothing- , _pddpCurrentDocumentExists = Nothing- , _pddpAccessToken = Nothing- , _pddpUploadType = Nothing- , _pddpPayload = pPddpPayload_- , _pddpCurrentDocumentUpdateTime = Nothing- , _pddpName = pPddpName_- , _pddpMaskFieldPaths = Nothing- , _pddpCallback = Nothing- }----- | V1 error format.-pddpXgafv :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Xgafv)-pddpXgafv- = lens _pddpXgafv (\ s a -> s{_pddpXgafv = a})---- | The list of field paths in the mask. See Document.fields for a field--- path syntax reference.-pddpUpdateMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsPatch [Text]-pddpUpdateMaskFieldPaths- = lens _pddpUpdateMaskFieldPaths- (\ s a -> s{_pddpUpdateMaskFieldPaths = a})- . _Default- . _Coerce---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddpUploadProtocol :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text)-pddpUploadProtocol- = lens _pddpUploadProtocol- (\ s a -> s{_pddpUploadProtocol = a})---- | When set to \`true\`, the target document must exist. When set to--- \`false\`, the target document must not exist.-pddpCurrentDocumentExists :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Bool)-pddpCurrentDocumentExists- = lens _pddpCurrentDocumentExists- (\ s a -> s{_pddpCurrentDocumentExists = a})---- | OAuth access token.-pddpAccessToken :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text)-pddpAccessToken- = lens _pddpAccessToken- (\ s a -> s{_pddpAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddpUploadType :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text)-pddpUploadType- = lens _pddpUploadType- (\ s a -> s{_pddpUploadType = a})---- | Multipart request metadata.-pddpPayload :: Lens' ProjectsDatabasesDocumentsPatch Document-pddpPayload- = lens _pddpPayload (\ s a -> s{_pddpPayload = a})---- | When set, the target document must exist and have been last updated at--- that time.-pddpCurrentDocumentUpdateTime :: Lens' ProjectsDatabasesDocumentsPatch (Maybe UTCTime)-pddpCurrentDocumentUpdateTime- = lens _pddpCurrentDocumentUpdateTime- (\ s a -> s{_pddpCurrentDocumentUpdateTime = a})- . mapping _DateTime---- | The resource name of the document, for example--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.-pddpName :: Lens' ProjectsDatabasesDocumentsPatch Text-pddpName = lens _pddpName (\ s a -> s{_pddpName = a})---- | The list of field paths in the mask. See Document.fields for a field--- path syntax reference.-pddpMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsPatch [Text]-pddpMaskFieldPaths- = lens _pddpMaskFieldPaths- (\ s a -> s{_pddpMaskFieldPaths = a})- . _Default- . _Coerce---- | JSONP-pddpCallback :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text)-pddpCallback- = lens _pddpCallback (\ s a -> s{_pddpCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsPatch- where- type Rs ProjectsDatabasesDocumentsPatch = Document- type Scopes ProjectsDatabasesDocumentsPatch =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesDocumentsPatch'{..}- = go _pddpName _pddpXgafv- (_pddpUpdateMaskFieldPaths ^. _Default)- _pddpUploadProtocol- _pddpCurrentDocumentExists- _pddpAccessToken- _pddpUploadType- _pddpCurrentDocumentUpdateTime- (_pddpMaskFieldPaths ^. _Default)- _pddpCallback- (Just AltJSON)- _pddpPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesDocumentsPatchResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Rollback.hs
@@ -1,169 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.Rollback--- 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)------ Rolls back a transaction.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.rollback@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.Rollback- (- -- * REST Resource- ProjectsDatabasesDocumentsRollbackResource-- -- * Creating a Request- , projectsDatabasesDocumentsRollback- , ProjectsDatabasesDocumentsRollback-- -- * Request Lenses- , pddrXgafv- , pddrUploadProtocol- , pddrDatabase- , pddrAccessToken- , pddrUploadType- , pddrPayload- , pddrCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.rollback@ method which the--- 'ProjectsDatabasesDocumentsRollback' request conforms to.-type ProjectsDatabasesDocumentsRollbackResource =- "v1" :>- Capture "database" Text :>- "documents:rollback" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] RollbackRequest :> Post '[JSON] Empty---- | Rolls back a transaction.------ /See:/ 'projectsDatabasesDocumentsRollback' smart constructor.-data ProjectsDatabasesDocumentsRollback =- ProjectsDatabasesDocumentsRollback'- { _pddrXgafv :: !(Maybe Xgafv)- , _pddrUploadProtocol :: !(Maybe Text)- , _pddrDatabase :: !Text- , _pddrAccessToken :: !(Maybe Text)- , _pddrUploadType :: !(Maybe Text)- , _pddrPayload :: !RollbackRequest- , _pddrCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsRollback' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddrXgafv'------ * 'pddrUploadProtocol'------ * 'pddrDatabase'------ * 'pddrAccessToken'------ * 'pddrUploadType'------ * 'pddrPayload'------ * 'pddrCallback'-projectsDatabasesDocumentsRollback- :: Text -- ^ 'pddrDatabase'- -> RollbackRequest -- ^ 'pddrPayload'- -> ProjectsDatabasesDocumentsRollback-projectsDatabasesDocumentsRollback pPddrDatabase_ pPddrPayload_ =- ProjectsDatabasesDocumentsRollback'- { _pddrXgafv = Nothing- , _pddrUploadProtocol = Nothing- , _pddrDatabase = pPddrDatabase_- , _pddrAccessToken = Nothing- , _pddrUploadType = Nothing- , _pddrPayload = pPddrPayload_- , _pddrCallback = Nothing- }----- | V1 error format.-pddrXgafv :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Xgafv)-pddrXgafv- = lens _pddrXgafv (\ s a -> s{_pddrXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddrUploadProtocol :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text)-pddrUploadProtocol- = lens _pddrUploadProtocol- (\ s a -> s{_pddrUploadProtocol = a})---- | The database name. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\`.-pddrDatabase :: Lens' ProjectsDatabasesDocumentsRollback Text-pddrDatabase- = lens _pddrDatabase (\ s a -> s{_pddrDatabase = a})---- | OAuth access token.-pddrAccessToken :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text)-pddrAccessToken- = lens _pddrAccessToken- (\ s a -> s{_pddrAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddrUploadType :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text)-pddrUploadType- = lens _pddrUploadType- (\ s a -> s{_pddrUploadType = a})---- | Multipart request metadata.-pddrPayload :: Lens' ProjectsDatabasesDocumentsRollback RollbackRequest-pddrPayload- = lens _pddrPayload (\ s a -> s{_pddrPayload = a})---- | JSONP-pddrCallback :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text)-pddrCallback- = lens _pddrCallback (\ s a -> s{_pddrCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsRollback- where- type Rs ProjectsDatabasesDocumentsRollback = Empty- type Scopes ProjectsDatabasesDocumentsRollback =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesDocumentsRollback'{..}- = go _pddrDatabase _pddrXgafv _pddrUploadProtocol- _pddrAccessToken- _pddrUploadType- _pddrCallback- (Just AltJSON)- _pddrPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesDocumentsRollbackResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/RunQuery.hs
@@ -1,175 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.RunQuery--- 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)------ Runs a query.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.runQuery@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.RunQuery- (- -- * REST Resource- ProjectsDatabasesDocumentsRunQueryResource-- -- * Creating a Request- , projectsDatabasesDocumentsRunQuery- , ProjectsDatabasesDocumentsRunQuery-- -- * Request Lenses- , pddrqParent- , pddrqXgafv- , pddrqUploadProtocol- , pddrqAccessToken- , pddrqUploadType- , pddrqPayload- , pddrqCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.runQuery@ method which the--- 'ProjectsDatabasesDocumentsRunQuery' request conforms to.-type ProjectsDatabasesDocumentsRunQueryResource =- "v1" :>- CaptureMode "parent" "runQuery" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] RunQueryRequest :>- Post '[JSON] RunQueryResponse---- | Runs a query.------ /See:/ 'projectsDatabasesDocumentsRunQuery' smart constructor.-data ProjectsDatabasesDocumentsRunQuery =- ProjectsDatabasesDocumentsRunQuery'- { _pddrqParent :: !Text- , _pddrqXgafv :: !(Maybe Xgafv)- , _pddrqUploadProtocol :: !(Maybe Text)- , _pddrqAccessToken :: !(Maybe Text)- , _pddrqUploadType :: !(Maybe Text)- , _pddrqPayload :: !RunQueryRequest- , _pddrqCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsRunQuery' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddrqParent'------ * 'pddrqXgafv'------ * 'pddrqUploadProtocol'------ * 'pddrqAccessToken'------ * 'pddrqUploadType'------ * 'pddrqPayload'------ * 'pddrqCallback'-projectsDatabasesDocumentsRunQuery- :: Text -- ^ 'pddrqParent'- -> RunQueryRequest -- ^ 'pddrqPayload'- -> ProjectsDatabasesDocumentsRunQuery-projectsDatabasesDocumentsRunQuery pPddrqParent_ pPddrqPayload_ =- ProjectsDatabasesDocumentsRunQuery'- { _pddrqParent = pPddrqParent_- , _pddrqXgafv = Nothing- , _pddrqUploadProtocol = Nothing- , _pddrqAccessToken = Nothing- , _pddrqUploadType = Nothing- , _pddrqPayload = pPddrqPayload_- , _pddrqCallback = Nothing- }----- | The parent resource name. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\/documents\` or--- \`projects\/{project_id}\/databases\/{database_id}\/documents\/{document_path}\`.--- For example: \`projects\/my-project\/databases\/my-database\/documents\`--- or--- \`projects\/my-project\/databases\/my-database\/documents\/chatrooms\/my-chatroom\`-pddrqParent :: Lens' ProjectsDatabasesDocumentsRunQuery Text-pddrqParent- = lens _pddrqParent (\ s a -> s{_pddrqParent = a})---- | V1 error format.-pddrqXgafv :: Lens' ProjectsDatabasesDocumentsRunQuery (Maybe Xgafv)-pddrqXgafv- = lens _pddrqXgafv (\ s a -> s{_pddrqXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddrqUploadProtocol :: Lens' ProjectsDatabasesDocumentsRunQuery (Maybe Text)-pddrqUploadProtocol- = lens _pddrqUploadProtocol- (\ s a -> s{_pddrqUploadProtocol = a})---- | OAuth access token.-pddrqAccessToken :: Lens' ProjectsDatabasesDocumentsRunQuery (Maybe Text)-pddrqAccessToken- = lens _pddrqAccessToken- (\ s a -> s{_pddrqAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddrqUploadType :: Lens' ProjectsDatabasesDocumentsRunQuery (Maybe Text)-pddrqUploadType- = lens _pddrqUploadType- (\ s a -> s{_pddrqUploadType = a})---- | Multipart request metadata.-pddrqPayload :: Lens' ProjectsDatabasesDocumentsRunQuery RunQueryRequest-pddrqPayload- = lens _pddrqPayload (\ s a -> s{_pddrqPayload = a})---- | JSONP-pddrqCallback :: Lens' ProjectsDatabasesDocumentsRunQuery (Maybe Text)-pddrqCallback- = lens _pddrqCallback- (\ s a -> s{_pddrqCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsRunQuery- where- type Rs ProjectsDatabasesDocumentsRunQuery =- RunQueryResponse- type Scopes ProjectsDatabasesDocumentsRunQuery =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesDocumentsRunQuery'{..}- = go _pddrqParent _pddrqXgafv _pddrqUploadProtocol- _pddrqAccessToken- _pddrqUploadType- _pddrqCallback- (Just AltJSON)- _pddrqPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesDocumentsRunQueryResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Write.hs
@@ -1,172 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Documents.Write--- 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)------ Streams batches of document updates and deletes, in order.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.documents.write@.-module Network.Google.Resource.FireStore.Projects.Databases.Documents.Write- (- -- * REST Resource- ProjectsDatabasesDocumentsWriteResource-- -- * Creating a Request- , projectsDatabasesDocumentsWrite- , ProjectsDatabasesDocumentsWrite-- -- * Request Lenses- , pddwXgafv- , pddwUploadProtocol- , pddwDatabase- , pddwAccessToken- , pddwUploadType- , pddwPayload- , pddwCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.documents.write@ method which the--- 'ProjectsDatabasesDocumentsWrite' request conforms to.-type ProjectsDatabasesDocumentsWriteResource =- "v1" :>- Capture "database" Text :>- "documents:write" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] WriteRequest :>- Post '[JSON] WriteResponse---- | Streams batches of document updates and deletes, in order.------ /See:/ 'projectsDatabasesDocumentsWrite' smart constructor.-data ProjectsDatabasesDocumentsWrite =- ProjectsDatabasesDocumentsWrite'- { _pddwXgafv :: !(Maybe Xgafv)- , _pddwUploadProtocol :: !(Maybe Text)- , _pddwDatabase :: !Text- , _pddwAccessToken :: !(Maybe Text)- , _pddwUploadType :: !(Maybe Text)- , _pddwPayload :: !WriteRequest- , _pddwCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesDocumentsWrite' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pddwXgafv'------ * 'pddwUploadProtocol'------ * 'pddwDatabase'------ * 'pddwAccessToken'------ * 'pddwUploadType'------ * 'pddwPayload'------ * 'pddwCallback'-projectsDatabasesDocumentsWrite- :: Text -- ^ 'pddwDatabase'- -> WriteRequest -- ^ 'pddwPayload'- -> ProjectsDatabasesDocumentsWrite-projectsDatabasesDocumentsWrite pPddwDatabase_ pPddwPayload_ =- ProjectsDatabasesDocumentsWrite'- { _pddwXgafv = Nothing- , _pddwUploadProtocol = Nothing- , _pddwDatabase = pPddwDatabase_- , _pddwAccessToken = Nothing- , _pddwUploadType = Nothing- , _pddwPayload = pPddwPayload_- , _pddwCallback = Nothing- }----- | V1 error format.-pddwXgafv :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Xgafv)-pddwXgafv- = lens _pddwXgafv (\ s a -> s{_pddwXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pddwUploadProtocol :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text)-pddwUploadProtocol- = lens _pddwUploadProtocol- (\ s a -> s{_pddwUploadProtocol = a})---- | The database name. In the format:--- \`projects\/{project_id}\/databases\/{database_id}\`. This is only--- required in the first message.-pddwDatabase :: Lens' ProjectsDatabasesDocumentsWrite Text-pddwDatabase- = lens _pddwDatabase (\ s a -> s{_pddwDatabase = a})---- | OAuth access token.-pddwAccessToken :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text)-pddwAccessToken- = lens _pddwAccessToken- (\ s a -> s{_pddwAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pddwUploadType :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text)-pddwUploadType- = lens _pddwUploadType- (\ s a -> s{_pddwUploadType = a})---- | Multipart request metadata.-pddwPayload :: Lens' ProjectsDatabasesDocumentsWrite WriteRequest-pddwPayload- = lens _pddwPayload (\ s a -> s{_pddwPayload = a})---- | JSONP-pddwCallback :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text)-pddwCallback- = lens _pddwCallback (\ s a -> s{_pddwCallback = a})--instance GoogleRequest- ProjectsDatabasesDocumentsWrite- where- type Rs ProjectsDatabasesDocumentsWrite =- WriteResponse- type Scopes ProjectsDatabasesDocumentsWrite =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesDocumentsWrite'{..}- = go _pddwDatabase _pddwXgafv _pddwUploadProtocol- _pddwAccessToken- _pddwUploadType- _pddwCallback- (Just AltJSON)- _pddwPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesDocumentsWriteResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/ExportDocuments.hs
@@ -1,184 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.ExportDocuments--- 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)------ Exports a copy of all or a subset of documents from Google Cloud--- Firestore to another storage system, such as Google Cloud Storage.--- Recent updates to documents 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:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.exportDocuments@.-module Network.Google.Resource.FireStore.Projects.Databases.ExportDocuments- (- -- * REST Resource- ProjectsDatabasesExportDocumentsResource-- -- * Creating a Request- , projectsDatabasesExportDocuments- , ProjectsDatabasesExportDocuments-- -- * Request Lenses- , pdedXgafv- , pdedUploadProtocol- , pdedAccessToken- , pdedUploadType- , pdedPayload- , pdedName- , pdedCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.exportDocuments@ method which the--- 'ProjectsDatabasesExportDocuments' request conforms to.-type ProjectsDatabasesExportDocumentsResource =- "v1" :>- CaptureMode "name" "exportDocuments" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON]- GoogleFirestoreAdminV1ExportDocumentsRequest- :> Post '[JSON] GoogleLongrunningOperation---- | Exports a copy of all or a subset of documents from Google Cloud--- Firestore to another storage system, such as Google Cloud Storage.--- Recent updates to documents 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:/ 'projectsDatabasesExportDocuments' smart constructor.-data ProjectsDatabasesExportDocuments =- ProjectsDatabasesExportDocuments'- { _pdedXgafv :: !(Maybe Xgafv)- , _pdedUploadProtocol :: !(Maybe Text)- , _pdedAccessToken :: !(Maybe Text)- , _pdedUploadType :: !(Maybe Text)- , _pdedPayload :: !GoogleFirestoreAdminV1ExportDocumentsRequest- , _pdedName :: !Text- , _pdedCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesExportDocuments' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdedXgafv'------ * 'pdedUploadProtocol'------ * 'pdedAccessToken'------ * 'pdedUploadType'------ * 'pdedPayload'------ * 'pdedName'------ * 'pdedCallback'-projectsDatabasesExportDocuments- :: GoogleFirestoreAdminV1ExportDocumentsRequest -- ^ 'pdedPayload'- -> Text -- ^ 'pdedName'- -> ProjectsDatabasesExportDocuments-projectsDatabasesExportDocuments pPdedPayload_ pPdedName_ =- ProjectsDatabasesExportDocuments'- { _pdedXgafv = Nothing- , _pdedUploadProtocol = Nothing- , _pdedAccessToken = Nothing- , _pdedUploadType = Nothing- , _pdedPayload = pPdedPayload_- , _pdedName = pPdedName_- , _pdedCallback = Nothing- }----- | V1 error format.-pdedXgafv :: Lens' ProjectsDatabasesExportDocuments (Maybe Xgafv)-pdedXgafv- = lens _pdedXgafv (\ s a -> s{_pdedXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdedUploadProtocol :: Lens' ProjectsDatabasesExportDocuments (Maybe Text)-pdedUploadProtocol- = lens _pdedUploadProtocol- (\ s a -> s{_pdedUploadProtocol = a})---- | OAuth access token.-pdedAccessToken :: Lens' ProjectsDatabasesExportDocuments (Maybe Text)-pdedAccessToken- = lens _pdedAccessToken- (\ s a -> s{_pdedAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdedUploadType :: Lens' ProjectsDatabasesExportDocuments (Maybe Text)-pdedUploadType- = lens _pdedUploadType- (\ s a -> s{_pdedUploadType = a})---- | Multipart request metadata.-pdedPayload :: Lens' ProjectsDatabasesExportDocuments GoogleFirestoreAdminV1ExportDocumentsRequest-pdedPayload- = lens _pdedPayload (\ s a -> s{_pdedPayload = a})---- | Database to export. Should be of the form:--- \`projects\/{project_id}\/databases\/{database_id}\`.-pdedName :: Lens' ProjectsDatabasesExportDocuments Text-pdedName = lens _pdedName (\ s a -> s{_pdedName = a})---- | JSONP-pdedCallback :: Lens' ProjectsDatabasesExportDocuments (Maybe Text)-pdedCallback- = lens _pdedCallback (\ s a -> s{_pdedCallback = a})--instance GoogleRequest- ProjectsDatabasesExportDocuments- where- type Rs ProjectsDatabasesExportDocuments =- GoogleLongrunningOperation- type Scopes ProjectsDatabasesExportDocuments =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesExportDocuments'{..}- = go _pdedName _pdedXgafv _pdedUploadProtocol- _pdedAccessToken- _pdedUploadType- _pdedCallback- (Just AltJSON)- _pdedPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesExportDocumentsResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/ImportDocuments.hs
@@ -1,180 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments--- 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)------ 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:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.importDocuments@.-module Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments- (- -- * REST Resource- ProjectsDatabasesImportDocumentsResource-- -- * Creating a Request- , projectsDatabasesImportDocuments- , ProjectsDatabasesImportDocuments-- -- * Request Lenses- , pdidXgafv- , pdidUploadProtocol- , pdidAccessToken- , pdidUploadType- , pdidPayload- , pdidName- , pdidCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.importDocuments@ method which the--- 'ProjectsDatabasesImportDocuments' request conforms to.-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---- | 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.-data ProjectsDatabasesImportDocuments =- ProjectsDatabasesImportDocuments'- { _pdidXgafv :: !(Maybe Xgafv)- , _pdidUploadProtocol :: !(Maybe Text)- , _pdidAccessToken :: !(Maybe Text)- , _pdidUploadType :: !(Maybe Text)- , _pdidPayload :: !GoogleFirestoreAdminV1ImportDocumentsRequest- , _pdidName :: !Text- , _pdidCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | 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:------ * 'pdidXgafv'------ * 'pdidUploadProtocol'------ * 'pdidAccessToken'------ * 'pdidUploadType'------ * 'pdidPayload'------ * 'pdidName'------ * 'pdidCallback'-projectsDatabasesImportDocuments- :: GoogleFirestoreAdminV1ImportDocumentsRequest -- ^ 'pdidPayload'- -> Text -- ^ 'pdidName'- -> ProjectsDatabasesImportDocuments-projectsDatabasesImportDocuments pPdidPayload_ pPdidName_ =- ProjectsDatabasesImportDocuments'- { _pdidXgafv = Nothing- , _pdidUploadProtocol = Nothing- , _pdidAccessToken = Nothing- , _pdidUploadType = Nothing- , _pdidPayload = pPdidPayload_- , _pdidName = pPdidName_- , _pdidCallback = Nothing- }----- | V1 error format.-pdidXgafv :: Lens' ProjectsDatabasesImportDocuments (Maybe Xgafv)-pdidXgafv- = lens _pdidXgafv (\ s a -> s{_pdidXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdidUploadProtocol :: Lens' ProjectsDatabasesImportDocuments (Maybe Text)-pdidUploadProtocol- = lens _pdidUploadProtocol- (\ s a -> s{_pdidUploadProtocol = a})---- | OAuth access token.-pdidAccessToken :: Lens' ProjectsDatabasesImportDocuments (Maybe Text)-pdidAccessToken- = lens _pdidAccessToken- (\ s a -> s{_pdidAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdidUploadType :: Lens' ProjectsDatabasesImportDocuments (Maybe Text)-pdidUploadType- = lens _pdidUploadType- (\ s a -> s{_pdidUploadType = a})---- | Multipart request metadata.-pdidPayload :: Lens' ProjectsDatabasesImportDocuments GoogleFirestoreAdminV1ImportDocumentsRequest-pdidPayload- = lens _pdidPayload (\ s a -> s{_pdidPayload = a})---- | Database to import into. Should be of the form:--- \`projects\/{project_id}\/databases\/{database_id}\`.-pdidName :: Lens' ProjectsDatabasesImportDocuments Text-pdidName = lens _pdidName (\ s a -> s{_pdidName = a})---- | JSONP-pdidCallback :: Lens' ProjectsDatabasesImportDocuments (Maybe Text)-pdidCallback- = lens _pdidCallback (\ s a -> s{_pdidCallback = a})--instance GoogleRequest- ProjectsDatabasesImportDocuments- where- type Rs ProjectsDatabasesImportDocuments =- GoogleLongrunningOperation- type Scopes ProjectsDatabasesImportDocuments =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesImportDocuments'{..}- = go _pdidName _pdidXgafv _pdidUploadProtocol- _pdidAccessToken- _pdidUploadType- _pdidCallback- (Just AltJSON)- _pdidPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesImportDocumentsResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Operations/Cancel.hs
@@ -1,184 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Operations.Cancel--- 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)------ Starts asynchronous cancellation on a long-running operation. The server--- makes a best effort to cancel the operation, but success is not--- guaranteed. If the server doesn\'t support this method, it returns--- \`google.rpc.Code.UNIMPLEMENTED\`. Clients can use--- Operations.GetOperation or other methods to check whether the--- cancellation succeeded or whether the operation completed despite--- cancellation. On successful cancellation, the operation is not deleted;--- instead, it becomes an operation with an Operation.error value with a--- google.rpc.Status.code of 1, corresponding to \`Code.CANCELLED\`.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.operations.cancel@.-module Network.Google.Resource.FireStore.Projects.Databases.Operations.Cancel- (- -- * REST Resource- ProjectsDatabasesOperationsCancelResource-- -- * Creating a Request- , projectsDatabasesOperationsCancel- , ProjectsDatabasesOperationsCancel-- -- * Request Lenses- , pdocXgafv- , pdocUploadProtocol- , pdocAccessToken- , pdocUploadType- , pdocPayload- , pdocName- , pdocCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.operations.cancel@ method which the--- 'ProjectsDatabasesOperationsCancel' request conforms to.-type ProjectsDatabasesOperationsCancelResource =- "v1" :>- CaptureMode "name" "cancel" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON]- GoogleLongrunningCancelOperationRequest- :> Post '[JSON] Empty---- | Starts asynchronous cancellation on a long-running operation. The server--- makes a best effort to cancel the operation, but success is not--- guaranteed. If the server doesn\'t support this method, it returns--- \`google.rpc.Code.UNIMPLEMENTED\`. Clients can use--- Operations.GetOperation or other methods to check whether the--- cancellation succeeded or whether the operation completed despite--- cancellation. On successful cancellation, the operation is not deleted;--- instead, it becomes an operation with an Operation.error value with a--- google.rpc.Status.code of 1, corresponding to \`Code.CANCELLED\`.------ /See:/ 'projectsDatabasesOperationsCancel' smart constructor.-data ProjectsDatabasesOperationsCancel =- ProjectsDatabasesOperationsCancel'- { _pdocXgafv :: !(Maybe Xgafv)- , _pdocUploadProtocol :: !(Maybe Text)- , _pdocAccessToken :: !(Maybe Text)- , _pdocUploadType :: !(Maybe Text)- , _pdocPayload :: !GoogleLongrunningCancelOperationRequest- , _pdocName :: !Text- , _pdocCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesOperationsCancel' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdocXgafv'------ * 'pdocUploadProtocol'------ * 'pdocAccessToken'------ * 'pdocUploadType'------ * 'pdocPayload'------ * 'pdocName'------ * 'pdocCallback'-projectsDatabasesOperationsCancel- :: GoogleLongrunningCancelOperationRequest -- ^ 'pdocPayload'- -> Text -- ^ 'pdocName'- -> ProjectsDatabasesOperationsCancel-projectsDatabasesOperationsCancel pPdocPayload_ pPdocName_ =- ProjectsDatabasesOperationsCancel'- { _pdocXgafv = Nothing- , _pdocUploadProtocol = Nothing- , _pdocAccessToken = Nothing- , _pdocUploadType = Nothing- , _pdocPayload = pPdocPayload_- , _pdocName = pPdocName_- , _pdocCallback = Nothing- }----- | V1 error format.-pdocXgafv :: Lens' ProjectsDatabasesOperationsCancel (Maybe Xgafv)-pdocXgafv- = lens _pdocXgafv (\ s a -> s{_pdocXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdocUploadProtocol :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)-pdocUploadProtocol- = lens _pdocUploadProtocol- (\ s a -> s{_pdocUploadProtocol = a})---- | OAuth access token.-pdocAccessToken :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)-pdocAccessToken- = lens _pdocAccessToken- (\ s a -> s{_pdocAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdocUploadType :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)-pdocUploadType- = lens _pdocUploadType- (\ s a -> s{_pdocUploadType = a})---- | Multipart request metadata.-pdocPayload :: Lens' ProjectsDatabasesOperationsCancel GoogleLongrunningCancelOperationRequest-pdocPayload- = lens _pdocPayload (\ s a -> s{_pdocPayload = a})---- | The name of the operation resource to be cancelled.-pdocName :: Lens' ProjectsDatabasesOperationsCancel Text-pdocName = lens _pdocName (\ s a -> s{_pdocName = a})---- | JSONP-pdocCallback :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)-pdocCallback- = lens _pdocCallback (\ s a -> s{_pdocCallback = a})--instance GoogleRequest- ProjectsDatabasesOperationsCancel- where- type Rs ProjectsDatabasesOperationsCancel = Empty- type Scopes ProjectsDatabasesOperationsCancel =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesOperationsCancel'{..}- = go _pdocName _pdocXgafv _pdocUploadProtocol- _pdocAccessToken- _pdocUploadType- _pdocCallback- (Just AltJSON)- _pdocPayload- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesOperationsCancelResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Operations/Delete.hs
@@ -1,159 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Operations.Delete--- 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)------ Deletes a long-running operation. This method indicates that the client--- is no longer interested in the operation result. It does not cancel the--- operation. If the server doesn\'t support this method, it returns--- \`google.rpc.Code.UNIMPLEMENTED\`.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.operations.delete@.-module Network.Google.Resource.FireStore.Projects.Databases.Operations.Delete- (- -- * REST Resource- ProjectsDatabasesOperationsDeleteResource-- -- * Creating a Request- , projectsDatabasesOperationsDelete- , ProjectsDatabasesOperationsDelete-- -- * Request Lenses- , pdodXgafv- , pdodUploadProtocol- , pdodAccessToken- , pdodUploadType- , pdodName- , pdodCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.operations.delete@ method which the--- 'ProjectsDatabasesOperationsDelete' request conforms to.-type ProjectsDatabasesOperationsDeleteResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] Empty---- | Deletes a long-running operation. This method indicates that the client--- is no longer interested in the operation result. It does not cancel the--- operation. If the server doesn\'t support this method, it returns--- \`google.rpc.Code.UNIMPLEMENTED\`.------ /See:/ 'projectsDatabasesOperationsDelete' smart constructor.-data ProjectsDatabasesOperationsDelete =- ProjectsDatabasesOperationsDelete'- { _pdodXgafv :: !(Maybe Xgafv)- , _pdodUploadProtocol :: !(Maybe Text)- , _pdodAccessToken :: !(Maybe Text)- , _pdodUploadType :: !(Maybe Text)- , _pdodName :: !Text- , _pdodCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesOperationsDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdodXgafv'------ * 'pdodUploadProtocol'------ * 'pdodAccessToken'------ * 'pdodUploadType'------ * 'pdodName'------ * 'pdodCallback'-projectsDatabasesOperationsDelete- :: Text -- ^ 'pdodName'- -> ProjectsDatabasesOperationsDelete-projectsDatabasesOperationsDelete pPdodName_ =- ProjectsDatabasesOperationsDelete'- { _pdodXgafv = Nothing- , _pdodUploadProtocol = Nothing- , _pdodAccessToken = Nothing- , _pdodUploadType = Nothing- , _pdodName = pPdodName_- , _pdodCallback = Nothing- }----- | V1 error format.-pdodXgafv :: Lens' ProjectsDatabasesOperationsDelete (Maybe Xgafv)-pdodXgafv- = lens _pdodXgafv (\ s a -> s{_pdodXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdodUploadProtocol :: Lens' ProjectsDatabasesOperationsDelete (Maybe Text)-pdodUploadProtocol- = lens _pdodUploadProtocol- (\ s a -> s{_pdodUploadProtocol = a})---- | OAuth access token.-pdodAccessToken :: Lens' ProjectsDatabasesOperationsDelete (Maybe Text)-pdodAccessToken- = lens _pdodAccessToken- (\ s a -> s{_pdodAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdodUploadType :: Lens' ProjectsDatabasesOperationsDelete (Maybe Text)-pdodUploadType- = lens _pdodUploadType- (\ s a -> s{_pdodUploadType = a})---- | The name of the operation resource to be deleted.-pdodName :: Lens' ProjectsDatabasesOperationsDelete Text-pdodName = lens _pdodName (\ s a -> s{_pdodName = a})---- | JSONP-pdodCallback :: Lens' ProjectsDatabasesOperationsDelete (Maybe Text)-pdodCallback- = lens _pdodCallback (\ s a -> s{_pdodCallback = a})--instance GoogleRequest- ProjectsDatabasesOperationsDelete- where- type Rs ProjectsDatabasesOperationsDelete = Empty- type Scopes ProjectsDatabasesOperationsDelete =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesOperationsDelete'{..}- = go _pdodName _pdodXgafv _pdodUploadProtocol- _pdodAccessToken- _pdodUploadType- _pdodCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesOperationsDeleteResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Operations/Get.hs
@@ -1,158 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Operations.Get--- 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)------ Gets the latest state of a long-running operation. Clients can use this--- method to poll the operation result at intervals as recommended by the--- API service.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.operations.get@.-module Network.Google.Resource.FireStore.Projects.Databases.Operations.Get- (- -- * REST Resource- ProjectsDatabasesOperationsGetResource-- -- * Creating a Request- , projectsDatabasesOperationsGet- , ProjectsDatabasesOperationsGet-- -- * Request Lenses- , pdogXgafv- , pdogUploadProtocol- , pdogAccessToken- , pdogUploadType- , pdogName- , pdogCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.operations.get@ method which the--- 'ProjectsDatabasesOperationsGet' request conforms to.-type ProjectsDatabasesOperationsGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] GoogleLongrunningOperation---- | Gets the latest state of a long-running operation. Clients can use this--- method to poll the operation result at intervals as recommended by the--- API service.------ /See:/ 'projectsDatabasesOperationsGet' smart constructor.-data ProjectsDatabasesOperationsGet =- ProjectsDatabasesOperationsGet'- { _pdogXgafv :: !(Maybe Xgafv)- , _pdogUploadProtocol :: !(Maybe Text)- , _pdogAccessToken :: !(Maybe Text)- , _pdogUploadType :: !(Maybe Text)- , _pdogName :: !Text- , _pdogCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesOperationsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdogXgafv'------ * 'pdogUploadProtocol'------ * 'pdogAccessToken'------ * 'pdogUploadType'------ * 'pdogName'------ * 'pdogCallback'-projectsDatabasesOperationsGet- :: Text -- ^ 'pdogName'- -> ProjectsDatabasesOperationsGet-projectsDatabasesOperationsGet pPdogName_ =- ProjectsDatabasesOperationsGet'- { _pdogXgafv = Nothing- , _pdogUploadProtocol = Nothing- , _pdogAccessToken = Nothing- , _pdogUploadType = Nothing- , _pdogName = pPdogName_- , _pdogCallback = Nothing- }----- | V1 error format.-pdogXgafv :: Lens' ProjectsDatabasesOperationsGet (Maybe Xgafv)-pdogXgafv- = lens _pdogXgafv (\ s a -> s{_pdogXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdogUploadProtocol :: Lens' ProjectsDatabasesOperationsGet (Maybe Text)-pdogUploadProtocol- = lens _pdogUploadProtocol- (\ s a -> s{_pdogUploadProtocol = a})---- | OAuth access token.-pdogAccessToken :: Lens' ProjectsDatabasesOperationsGet (Maybe Text)-pdogAccessToken- = lens _pdogAccessToken- (\ s a -> s{_pdogAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdogUploadType :: Lens' ProjectsDatabasesOperationsGet (Maybe Text)-pdogUploadType- = lens _pdogUploadType- (\ s a -> s{_pdogUploadType = a})---- | The name of the operation resource.-pdogName :: Lens' ProjectsDatabasesOperationsGet Text-pdogName = lens _pdogName (\ s a -> s{_pdogName = a})---- | JSONP-pdogCallback :: Lens' ProjectsDatabasesOperationsGet (Maybe Text)-pdogCallback- = lens _pdogCallback (\ s a -> s{_pdogCallback = a})--instance GoogleRequest ProjectsDatabasesOperationsGet- where- type Rs ProjectsDatabasesOperationsGet =- GoogleLongrunningOperation- type Scopes ProjectsDatabasesOperationsGet =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesOperationsGet'{..}- = go _pdogName _pdogXgafv _pdogUploadProtocol- _pdogAccessToken- _pdogUploadType- _pdogCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesOperationsGetResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Databases/Operations/List.hs
@@ -1,212 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Databases.Operations.List--- 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)------ Lists operations that match the specified filter in the request. If the--- server doesn\'t support this method, it returns \`UNIMPLEMENTED\`. NOTE:--- the \`name\` binding allows API services to override the binding to use--- different resource name schemes, such as \`users\/*\/operations\`. To--- override the binding, API services can add a binding such as--- \`\"\/v1\/{name=users\/*}\/operations\"\` to their service--- configuration. For backwards compatibility, the default name includes--- the operations collection id, however overriding users must ensure the--- name binding is the parent resource, without the operations collection--- id.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.databases.operations.list@.-module Network.Google.Resource.FireStore.Projects.Databases.Operations.List- (- -- * REST Resource- ProjectsDatabasesOperationsListResource-- -- * Creating a Request- , projectsDatabasesOperationsList- , ProjectsDatabasesOperationsList-- -- * Request Lenses- , pdolXgafv- , pdolUploadProtocol- , pdolAccessToken- , pdolUploadType- , pdolName- , pdolFilter- , pdolPageToken- , pdolPageSize- , pdolCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.databases.operations.list@ method which the--- 'ProjectsDatabasesOperationsList' request conforms to.-type ProjectsDatabasesOperationsListResource =- "v1" :>- Capture "name" Text :>- "operations" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "filter" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] GoogleLongrunningListOperationsResponse---- | Lists operations that match the specified filter in the request. If the--- server doesn\'t support this method, it returns \`UNIMPLEMENTED\`. NOTE:--- the \`name\` binding allows API services to override the binding to use--- different resource name schemes, such as \`users\/*\/operations\`. To--- override the binding, API services can add a binding such as--- \`\"\/v1\/{name=users\/*}\/operations\"\` to their service--- configuration. For backwards compatibility, the default name includes--- the operations collection id, however overriding users must ensure the--- name binding is the parent resource, without the operations collection--- id.------ /See:/ 'projectsDatabasesOperationsList' smart constructor.-data ProjectsDatabasesOperationsList =- ProjectsDatabasesOperationsList'- { _pdolXgafv :: !(Maybe Xgafv)- , _pdolUploadProtocol :: !(Maybe Text)- , _pdolAccessToken :: !(Maybe Text)- , _pdolUploadType :: !(Maybe Text)- , _pdolName :: !Text- , _pdolFilter :: !(Maybe Text)- , _pdolPageToken :: !(Maybe Text)- , _pdolPageSize :: !(Maybe (Textual Int32))- , _pdolCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsDatabasesOperationsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdolXgafv'------ * 'pdolUploadProtocol'------ * 'pdolAccessToken'------ * 'pdolUploadType'------ * 'pdolName'------ * 'pdolFilter'------ * 'pdolPageToken'------ * 'pdolPageSize'------ * 'pdolCallback'-projectsDatabasesOperationsList- :: Text -- ^ 'pdolName'- -> ProjectsDatabasesOperationsList-projectsDatabasesOperationsList pPdolName_ =- ProjectsDatabasesOperationsList'- { _pdolXgafv = Nothing- , _pdolUploadProtocol = Nothing- , _pdolAccessToken = Nothing- , _pdolUploadType = Nothing- , _pdolName = pPdolName_- , _pdolFilter = Nothing- , _pdolPageToken = Nothing- , _pdolPageSize = Nothing- , _pdolCallback = Nothing- }----- | V1 error format.-pdolXgafv :: Lens' ProjectsDatabasesOperationsList (Maybe Xgafv)-pdolXgafv- = lens _pdolXgafv (\ s a -> s{_pdolXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pdolUploadProtocol :: Lens' ProjectsDatabasesOperationsList (Maybe Text)-pdolUploadProtocol- = lens _pdolUploadProtocol- (\ s a -> s{_pdolUploadProtocol = a})---- | OAuth access token.-pdolAccessToken :: Lens' ProjectsDatabasesOperationsList (Maybe Text)-pdolAccessToken- = lens _pdolAccessToken- (\ s a -> s{_pdolAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pdolUploadType :: Lens' ProjectsDatabasesOperationsList (Maybe Text)-pdolUploadType- = lens _pdolUploadType- (\ s a -> s{_pdolUploadType = a})---- | The name of the operation\'s parent resource.-pdolName :: Lens' ProjectsDatabasesOperationsList Text-pdolName = lens _pdolName (\ s a -> s{_pdolName = a})---- | The standard list filter.-pdolFilter :: Lens' ProjectsDatabasesOperationsList (Maybe Text)-pdolFilter- = lens _pdolFilter (\ s a -> s{_pdolFilter = a})---- | The standard list page token.-pdolPageToken :: Lens' ProjectsDatabasesOperationsList (Maybe Text)-pdolPageToken- = lens _pdolPageToken- (\ s a -> s{_pdolPageToken = a})---- | The standard list page size.-pdolPageSize :: Lens' ProjectsDatabasesOperationsList (Maybe Int32)-pdolPageSize- = lens _pdolPageSize (\ s a -> s{_pdolPageSize = a})- . mapping _Coerce---- | JSONP-pdolCallback :: Lens' ProjectsDatabasesOperationsList (Maybe Text)-pdolCallback- = lens _pdolCallback (\ s a -> s{_pdolCallback = a})--instance GoogleRequest- ProjectsDatabasesOperationsList- where- type Rs ProjectsDatabasesOperationsList =- GoogleLongrunningListOperationsResponse- type Scopes ProjectsDatabasesOperationsList =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsDatabasesOperationsList'{..}- = go _pdolName _pdolXgafv _pdolUploadProtocol- _pdolAccessToken- _pdolUploadType- _pdolFilter- _pdolPageToken- _pdolPageSize- _pdolCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy ::- Proxy ProjectsDatabasesOperationsListResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Locations/Get.hs
@@ -1,149 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Locations.Get--- 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)------ Gets information about a location.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.locations.get@.-module Network.Google.Resource.FireStore.Projects.Locations.Get- (- -- * REST Resource- ProjectsLocationsGetResource-- -- * Creating a Request- , projectsLocationsGet- , ProjectsLocationsGet-- -- * Request Lenses- , plgXgafv- , plgUploadProtocol- , plgAccessToken- , plgUploadType- , plgName- , plgCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.locations.get@ method which the--- 'ProjectsLocationsGet' request conforms to.-type ProjectsLocationsGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Location---- | Gets information about a location.------ /See:/ 'projectsLocationsGet' smart constructor.-data ProjectsLocationsGet =- ProjectsLocationsGet'- { _plgXgafv :: !(Maybe Xgafv)- , _plgUploadProtocol :: !(Maybe Text)- , _plgAccessToken :: !(Maybe Text)- , _plgUploadType :: !(Maybe Text)- , _plgName :: !Text- , _plgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plgXgafv'------ * 'plgUploadProtocol'------ * 'plgAccessToken'------ * 'plgUploadType'------ * 'plgName'------ * 'plgCallback'-projectsLocationsGet- :: Text -- ^ 'plgName'- -> ProjectsLocationsGet-projectsLocationsGet pPlgName_ =- ProjectsLocationsGet'- { _plgXgafv = Nothing- , _plgUploadProtocol = Nothing- , _plgAccessToken = Nothing- , _plgUploadType = Nothing- , _plgName = pPlgName_- , _plgCallback = Nothing- }----- | V1 error format.-plgXgafv :: Lens' ProjectsLocationsGet (Maybe Xgafv)-plgXgafv = lens _plgXgafv (\ s a -> s{_plgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plgUploadProtocol :: Lens' ProjectsLocationsGet (Maybe Text)-plgUploadProtocol- = lens _plgUploadProtocol- (\ s a -> s{_plgUploadProtocol = a})---- | OAuth access token.-plgAccessToken :: Lens' ProjectsLocationsGet (Maybe Text)-plgAccessToken- = lens _plgAccessToken- (\ s a -> s{_plgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plgUploadType :: Lens' ProjectsLocationsGet (Maybe Text)-plgUploadType- = lens _plgUploadType- (\ s a -> s{_plgUploadType = a})---- | Resource name for the location.-plgName :: Lens' ProjectsLocationsGet Text-plgName = lens _plgName (\ s a -> s{_plgName = a})---- | JSONP-plgCallback :: Lens' ProjectsLocationsGet (Maybe Text)-plgCallback- = lens _plgCallback (\ s a -> s{_plgCallback = a})--instance GoogleRequest ProjectsLocationsGet where- type Rs ProjectsLocationsGet = Location- type Scopes ProjectsLocationsGet =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsLocationsGet'{..}- = go _plgName _plgXgafv _plgUploadProtocol- _plgAccessToken- _plgUploadType- _plgCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsGetResource)- mempty
− gen/Network/Google/Resource/FireStore/Projects/Locations/List.hs
@@ -1,188 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.FireStore.Projects.Locations.List--- 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)------ Lists information about the supported locations for this service.------ /See:/ <https://cloud.google.com/firestore Cloud Firestore API Reference> for @firestore.projects.locations.list@.-module Network.Google.Resource.FireStore.Projects.Locations.List- (- -- * REST Resource- ProjectsLocationsListResource-- -- * Creating a Request- , projectsLocationsList- , ProjectsLocationsList-- -- * Request Lenses- , pllXgafv- , pllUploadProtocol- , pllAccessToken- , pllUploadType- , pllName- , pllFilter- , pllPageToken- , pllPageSize- , pllCallback- ) where--import Network.Google.FireStore.Types-import Network.Google.Prelude---- | A resource alias for @firestore.projects.locations.list@ method which the--- 'ProjectsLocationsList' request conforms to.-type ProjectsLocationsListResource =- "v1" :>- Capture "name" Text :>- "locations" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "filter" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListLocationsResponse---- | Lists information about the supported locations for this service.------ /See:/ 'projectsLocationsList' smart constructor.-data ProjectsLocationsList =- ProjectsLocationsList'- { _pllXgafv :: !(Maybe Xgafv)- , _pllUploadProtocol :: !(Maybe Text)- , _pllAccessToken :: !(Maybe Text)- , _pllUploadType :: !(Maybe Text)- , _pllName :: !Text- , _pllFilter :: !(Maybe Text)- , _pllPageToken :: !(Maybe Text)- , _pllPageSize :: !(Maybe (Textual Int32))- , _pllCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pllXgafv'------ * 'pllUploadProtocol'------ * 'pllAccessToken'------ * 'pllUploadType'------ * 'pllName'------ * 'pllFilter'------ * 'pllPageToken'------ * 'pllPageSize'------ * 'pllCallback'-projectsLocationsList- :: Text -- ^ 'pllName'- -> ProjectsLocationsList-projectsLocationsList pPllName_ =- ProjectsLocationsList'- { _pllXgafv = Nothing- , _pllUploadProtocol = Nothing- , _pllAccessToken = Nothing- , _pllUploadType = Nothing- , _pllName = pPllName_- , _pllFilter = Nothing- , _pllPageToken = Nothing- , _pllPageSize = Nothing- , _pllCallback = Nothing- }----- | V1 error format.-pllXgafv :: Lens' ProjectsLocationsList (Maybe Xgafv)-pllXgafv = lens _pllXgafv (\ s a -> s{_pllXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pllUploadProtocol :: Lens' ProjectsLocationsList (Maybe Text)-pllUploadProtocol- = lens _pllUploadProtocol- (\ s a -> s{_pllUploadProtocol = a})---- | OAuth access token.-pllAccessToken :: Lens' ProjectsLocationsList (Maybe Text)-pllAccessToken- = lens _pllAccessToken- (\ s a -> s{_pllAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pllUploadType :: Lens' ProjectsLocationsList (Maybe Text)-pllUploadType- = lens _pllUploadType- (\ s a -> s{_pllUploadType = a})---- | The resource that owns the locations collection, if applicable.-pllName :: Lens' ProjectsLocationsList Text-pllName = lens _pllName (\ s a -> s{_pllName = a})---- | The standard list filter.-pllFilter :: Lens' ProjectsLocationsList (Maybe Text)-pllFilter- = lens _pllFilter (\ s a -> s{_pllFilter = a})---- | The standard list page token.-pllPageToken :: Lens' ProjectsLocationsList (Maybe Text)-pllPageToken- = lens _pllPageToken (\ s a -> s{_pllPageToken = a})---- | The standard list page size.-pllPageSize :: Lens' ProjectsLocationsList (Maybe Int32)-pllPageSize- = lens _pllPageSize (\ s a -> s{_pllPageSize = a}) .- mapping _Coerce---- | JSONP-pllCallback :: Lens' ProjectsLocationsList (Maybe Text)-pllCallback- = lens _pllCallback (\ s a -> s{_pllCallback = a})--instance GoogleRequest ProjectsLocationsList where- type Rs ProjectsLocationsList = ListLocationsResponse- type Scopes ProjectsLocationsList =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/datastore"]- requestClient ProjectsLocationsList'{..}- = go _pllName _pllXgafv _pllUploadProtocol- _pllAccessToken- _pllUploadType- _pllFilter- _pllPageToken- _pllPageSize- _pllCallback- (Just AltJSON)- fireStoreService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsListResource)- mempty
gogol-firestore.cabal view
@@ -1,74 +1,107 @@-name: gogol-firestore-version: 0.5.0-synopsis: Google Cloud Firestore SDK.-homepage: https://github.com/brendanhay/gogol-bug-reports: https://github.com/brendanhay/gogol/issues-license: OtherLicense-license-file: LICENSE-author: Brendan Hay-maintainer: Brendan Hay <brendan.g.hay@gmail.com>-copyright: Copyright (c) 2015-2016 Brendan Hay-category: Network, Google, Cloud-build-type: Simple-cabal-version: >= 1.10-extra-source-files: README.md src/.gitkeep+cabal-version: 2.2+name: gogol-firestore+version: 1.0.0+synopsis: Google Cloud Firestore SDK.+homepage: https://github.com/brendanhay/gogol+bug-reports: https://github.com/brendanhay/gogol/issues+license: MPL-2.0+license-file: LICENSE+author: Brendan Hay+maintainer:+ Brendan Hay <brendan.g.hay+gogol@gmail.com>, Toni Cebrián <toni@tonicebrian.com> +copyright: Copyright (c) 2015-2025 Brendan Hay+category: Google+build-type: Simple+extra-source-files:+ README.md+ src/.gitkeep+ description:- Accesses the NoSQL document database built for automatic scaling, high- performance, and ease of application development.- .- /Warning:/ This is an experimental prototype/preview release which is still- under exploratory development and not intended for public use, caveat emptor!- .- This library is compatible with version @v1@- of the API.+ Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.+ .+ /Warning:/ This is an experimental prototype/preview release which is still+ under exploratory development and not intended for public use, caveat emptor!+ .+ This library is compatible with version @v1@+ of the API. source-repository head- type: git- location: git://github.com/brendanhay/gogol.git+ type: git+ location: git://github.com/brendanhay/gogol.git+ subdir: gogol-firestore +flag field-selectors+ description:+ If record field selectors should be enabled. Disabling this requires GHC >=9.2 and the NoFieldSelectors extension.++ default: False+ manual: True+ library- default-language: Haskell2010- hs-source-dirs: src gen+ default-language: GHC2021+ hs-source-dirs: src gen+ ghc-options:+ -Wall -fwarn-incomplete-uni-patterns+ -fwarn-incomplete-record-updates -funbox-strict-fields+ -fwarn-unused-packages - ghc-options: -Wall+ if (!flag(field-selectors) && impl(ghc >=9.2))+ default-extensions: NoFieldSelectors - exposed-modules:- Network.Google.FireStore- , Network.Google.FireStore.Types- , Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.Get- , Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.List- , Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Fields.Patch- , Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Create- , Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Delete- , Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.Get- , Network.Google.Resource.FireStore.Projects.Databases.CollectionGroups.Indexes.List- , Network.Google.Resource.FireStore.Projects.Databases.Documents.BatchGet- , Network.Google.Resource.FireStore.Projects.Databases.Documents.BeginTransaction- , Network.Google.Resource.FireStore.Projects.Databases.Documents.Commit- , Network.Google.Resource.FireStore.Projects.Databases.Documents.CreateDocument- , Network.Google.Resource.FireStore.Projects.Databases.Documents.Delete- , Network.Google.Resource.FireStore.Projects.Databases.Documents.Get- , Network.Google.Resource.FireStore.Projects.Databases.Documents.List- , Network.Google.Resource.FireStore.Projects.Databases.Documents.ListCollectionIds- , Network.Google.Resource.FireStore.Projects.Databases.Documents.Listen- , Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch- , Network.Google.Resource.FireStore.Projects.Databases.Documents.Rollback- , Network.Google.Resource.FireStore.Projects.Databases.Documents.RunQuery- , Network.Google.Resource.FireStore.Projects.Databases.Documents.Write- , Network.Google.Resource.FireStore.Projects.Databases.ExportDocuments- , Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments- , Network.Google.Resource.FireStore.Projects.Databases.Operations.Cancel- , Network.Google.Resource.FireStore.Projects.Databases.Operations.Delete- , Network.Google.Resource.FireStore.Projects.Databases.Operations.Get- , Network.Google.Resource.FireStore.Projects.Databases.Operations.List- , Network.Google.Resource.FireStore.Projects.Locations.Get- , Network.Google.Resource.FireStore.Projects.Locations.List+ exposed-modules:+ Gogol.FireStore+ Gogol.FireStore.Projects.Databases.BackupSchedules.Create+ Gogol.FireStore.Projects.Databases.BackupSchedules.Delete+ Gogol.FireStore.Projects.Databases.BackupSchedules.Get+ Gogol.FireStore.Projects.Databases.BackupSchedules.List+ Gogol.FireStore.Projects.Databases.BackupSchedules.Patch+ Gogol.FireStore.Projects.Databases.BulkDeleteDocuments+ Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.Get+ Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.List+ Gogol.FireStore.Projects.Databases.CollectionGroups.Fields.Patch+ Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Create+ Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Delete+ Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.Get+ Gogol.FireStore.Projects.Databases.CollectionGroups.Indexes.List+ Gogol.FireStore.Projects.Databases.Create+ Gogol.FireStore.Projects.Databases.Delete+ Gogol.FireStore.Projects.Databases.Documents.BatchGet+ Gogol.FireStore.Projects.Databases.Documents.BatchWrite+ Gogol.FireStore.Projects.Databases.Documents.BeginTransaction+ Gogol.FireStore.Projects.Databases.Documents.Commit+ Gogol.FireStore.Projects.Databases.Documents.CreateDocument+ Gogol.FireStore.Projects.Databases.Documents.Delete+ Gogol.FireStore.Projects.Databases.Documents.Get+ Gogol.FireStore.Projects.Databases.Documents.List+ Gogol.FireStore.Projects.Databases.Documents.ListCollectionIds+ Gogol.FireStore.Projects.Databases.Documents.ListDocuments+ Gogol.FireStore.Projects.Databases.Documents.Listen+ Gogol.FireStore.Projects.Databases.Documents.PartitionQuery+ Gogol.FireStore.Projects.Databases.Documents.Patch+ Gogol.FireStore.Projects.Databases.Documents.Rollback+ Gogol.FireStore.Projects.Databases.Documents.RunAggregationQuery+ Gogol.FireStore.Projects.Databases.Documents.RunQuery+ Gogol.FireStore.Projects.Databases.Documents.Write+ Gogol.FireStore.Projects.Databases.ExportDocuments+ Gogol.FireStore.Projects.Databases.Get+ Gogol.FireStore.Projects.Databases.ImportDocuments+ Gogol.FireStore.Projects.Databases.List+ Gogol.FireStore.Projects.Databases.Operations.Cancel+ Gogol.FireStore.Projects.Databases.Operations.Delete+ Gogol.FireStore.Projects.Databases.Operations.Get+ Gogol.FireStore.Projects.Databases.Operations.List+ Gogol.FireStore.Projects.Databases.Patch+ Gogol.FireStore.Projects.Databases.Restore+ Gogol.FireStore.Projects.Locations.Backups.Delete+ Gogol.FireStore.Projects.Locations.Backups.Get+ Gogol.FireStore.Projects.Locations.Backups.List+ Gogol.FireStore.Projects.Locations.Get+ Gogol.FireStore.Projects.Locations.List+ Gogol.FireStore.Types - other-modules:- Network.Google.FireStore.Types.Product- , Network.Google.FireStore.Types.Sum+ other-modules:+ Gogol.FireStore.Internal.Product+ Gogol.FireStore.Internal.Sum - build-depends:- gogol-core == 0.5.0.*- , base >= 4.7 && < 5+ build-depends: gogol-core ^>=1.0.0