gogol-firestore-0.4.0: Google Cloud Firestore SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments

Contents

Description

Imports documents into Google Cloud Firestore. Existing documents with the same name are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportDocuments operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Firestore.

See: Cloud Firestore API Reference for firestore.projects.databases.importDocuments.

Synopsis

REST Resource

type ProjectsDatabasesImportDocumentsResource = "v1" :> (CaptureMode "name" "importDocuments" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleFirestoreAdminV1ImportDocumentsRequest :> Post '[JSON] GoogleLongrunningOperation)))))))) Source #

A resource alias for firestore.projects.databases.importDocuments method which the ProjectsDatabasesImportDocuments request conforms to.

Creating a Request

data ProjectsDatabasesImportDocuments Source #

Imports documents into Google Cloud Firestore. Existing documents with the same name are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportDocuments operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Firestore.

See: projectsDatabasesImportDocuments smart constructor.

Instances
Eq ProjectsDatabasesImportDocuments Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments

Data ProjectsDatabasesImportDocuments Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsDatabasesImportDocuments -> c ProjectsDatabasesImportDocuments #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsDatabasesImportDocuments #

toConstr :: ProjectsDatabasesImportDocuments -> Constr #

dataTypeOf :: ProjectsDatabasesImportDocuments -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsDatabasesImportDocuments) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsDatabasesImportDocuments) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsDatabasesImportDocuments -> ProjectsDatabasesImportDocuments #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsDatabasesImportDocuments -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsDatabasesImportDocuments -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsDatabasesImportDocuments -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsDatabasesImportDocuments -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsDatabasesImportDocuments -> m ProjectsDatabasesImportDocuments #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsDatabasesImportDocuments -> m ProjectsDatabasesImportDocuments #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsDatabasesImportDocuments -> m ProjectsDatabasesImportDocuments #

Show ProjectsDatabasesImportDocuments Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments

Generic ProjectsDatabasesImportDocuments Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments

Associated Types

type Rep ProjectsDatabasesImportDocuments :: Type -> Type #

GoogleRequest ProjectsDatabasesImportDocuments Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments

type Rep ProjectsDatabasesImportDocuments Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments

type Rep ProjectsDatabasesImportDocuments = D1 (MetaData "ProjectsDatabasesImportDocuments" "Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments" "gogol-firestore-0.4.0-GW3AvKXkpND5rISC8pKhKY" False) (C1 (MetaCons "ProjectsDatabasesImportDocuments'" PrefixI True) ((S1 (MetaSel (Just "_pdidXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pdidUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pdidAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pdidUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pdidPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleFirestoreAdminV1ImportDocumentsRequest)) :*: (S1 (MetaSel (Just "_pdidName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pdidCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsDatabasesImportDocuments Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments

type Scopes ProjectsDatabasesImportDocuments = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/datastore" ': ([] :: [Symbol]))
type Rs ProjectsDatabasesImportDocuments Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.ImportDocuments

Request Lenses

pdidUploadProtocol :: Lens' ProjectsDatabasesImportDocuments (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pdidUploadType :: Lens' ProjectsDatabasesImportDocuments (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pdidName :: Lens' ProjectsDatabasesImportDocuments Text Source #

Database to import into. Should be of the form: `projects/{project_id}/databases/{database_id}`.