{-# 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
(
ProjectsDatabasesOperationsGetResource
, projectsDatabasesOperationsGet
, ProjectsDatabasesOperationsGet
, pdogXgafv
, pdogUploadProtocol
, pdogAccessToken
, pdogUploadType
, pdogName
, pdogCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
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
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)
projectsDatabasesOperationsGet
:: Text
-> ProjectsDatabasesOperationsGet
projectsDatabasesOperationsGet pPdogName_ =
ProjectsDatabasesOperationsGet'
{ _pdogXgafv = Nothing
, _pdogUploadProtocol = Nothing
, _pdogAccessToken = Nothing
, _pdogUploadType = Nothing
, _pdogName = pPdogName_
, _pdogCallback = Nothing
}
pdogXgafv :: Lens' ProjectsDatabasesOperationsGet (Maybe Xgafv)
pdogXgafv
= lens _pdogXgafv (\ s a -> s{_pdogXgafv = a})
pdogUploadProtocol :: Lens' ProjectsDatabasesOperationsGet (Maybe Text)
pdogUploadProtocol
= lens _pdogUploadProtocol
(\ s a -> s{_pdogUploadProtocol = a})
pdogAccessToken :: Lens' ProjectsDatabasesOperationsGet (Maybe Text)
pdogAccessToken
= lens _pdogAccessToken
(\ s a -> s{_pdogAccessToken = a})
pdogUploadType :: Lens' ProjectsDatabasesOperationsGet (Maybe Text)
pdogUploadType
= lens _pdogUploadType
(\ s a -> s{_pdogUploadType = a})
pdogName :: Lens' ProjectsDatabasesOperationsGet Text
pdogName = lens _pdogName (\ s a -> s{_pdogName = a})
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