{-# 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
(
ProjectsDatabasesCollectionGroupsIndexesGetResource
, projectsDatabasesCollectionGroupsIndexesGet
, ProjectsDatabasesCollectionGroupsIndexesGet
, pdcgigXgafv
, pdcgigUploadProtocol
, pdcgigAccessToken
, pdcgigUploadType
, pdcgigName
, pdcgigCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
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
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)
projectsDatabasesCollectionGroupsIndexesGet
:: Text
-> ProjectsDatabasesCollectionGroupsIndexesGet
projectsDatabasesCollectionGroupsIndexesGet pPdcgigName_ =
ProjectsDatabasesCollectionGroupsIndexesGet'
{ _pdcgigXgafv = Nothing
, _pdcgigUploadProtocol = Nothing
, _pdcgigAccessToken = Nothing
, _pdcgigUploadType = Nothing
, _pdcgigName = pPdcgigName_
, _pdcgigCallback = Nothing
}
pdcgigXgafv :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet (Maybe Xgafv)
pdcgigXgafv
= lens _pdcgigXgafv (\ s a -> s{_pdcgigXgafv = a})
pdcgigUploadProtocol :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet (Maybe Text)
pdcgigUploadProtocol
= lens _pdcgigUploadProtocol
(\ s a -> s{_pdcgigUploadProtocol = a})
pdcgigAccessToken :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet (Maybe Text)
pdcgigAccessToken
= lens _pdcgigAccessToken
(\ s a -> s{_pdcgigAccessToken = a})
pdcgigUploadType :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet (Maybe Text)
pdcgigUploadType
= lens _pdcgigUploadType
(\ s a -> s{_pdcgigUploadType = a})
pdcgigName :: Lens' ProjectsDatabasesCollectionGroupsIndexesGet Text
pdcgigName
= lens _pdcgigName (\ s a -> s{_pdcgigName = a})
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