{-# 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
(
ProjectsDatabasesExportDocumentsResource
, projectsDatabasesExportDocuments
, ProjectsDatabasesExportDocuments
, pdedXgafv
, pdedUploadProtocol
, pdedAccessToken
, pdedUploadType
, pdedPayload
, pdedName
, pdedCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
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
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)
projectsDatabasesExportDocuments
:: GoogleFirestoreAdminV1ExportDocumentsRequest
-> Text
-> ProjectsDatabasesExportDocuments
projectsDatabasesExportDocuments pPdedPayload_ pPdedName_ =
ProjectsDatabasesExportDocuments'
{ _pdedXgafv = Nothing
, _pdedUploadProtocol = Nothing
, _pdedAccessToken = Nothing
, _pdedUploadType = Nothing
, _pdedPayload = pPdedPayload_
, _pdedName = pPdedName_
, _pdedCallback = Nothing
}
pdedXgafv :: Lens' ProjectsDatabasesExportDocuments (Maybe Xgafv)
pdedXgafv
= lens _pdedXgafv (\ s a -> s{_pdedXgafv = a})
pdedUploadProtocol :: Lens' ProjectsDatabasesExportDocuments (Maybe Text)
pdedUploadProtocol
= lens _pdedUploadProtocol
(\ s a -> s{_pdedUploadProtocol = a})
pdedAccessToken :: Lens' ProjectsDatabasesExportDocuments (Maybe Text)
pdedAccessToken
= lens _pdedAccessToken
(\ s a -> s{_pdedAccessToken = a})
pdedUploadType :: Lens' ProjectsDatabasesExportDocuments (Maybe Text)
pdedUploadType
= lens _pdedUploadType
(\ s a -> s{_pdedUploadType = a})
pdedPayload :: Lens' ProjectsDatabasesExportDocuments GoogleFirestoreAdminV1ExportDocumentsRequest
pdedPayload
= lens _pdedPayload (\ s a -> s{_pdedPayload = a})
pdedName :: Lens' ProjectsDatabasesExportDocuments Text
pdedName = lens _pdedName (\ s a -> s{_pdedName = a})
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