{-# 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
(
ProjectsDatabasesCollectionGroupsIndexesListResource
, projectsDatabasesCollectionGroupsIndexesList
, ProjectsDatabasesCollectionGroupsIndexesList
, pdcgilParent
, pdcgilXgafv
, pdcgilUploadProtocol
, pdcgilAccessToken
, pdcgilUploadType
, pdcgilFilter
, pdcgilPageToken
, pdcgilPageSize
, pdcgilCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
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
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)
projectsDatabasesCollectionGroupsIndexesList
:: Text
-> ProjectsDatabasesCollectionGroupsIndexesList
projectsDatabasesCollectionGroupsIndexesList pPdcgilParent_ =
ProjectsDatabasesCollectionGroupsIndexesList'
{ _pdcgilParent = pPdcgilParent_
, _pdcgilXgafv = Nothing
, _pdcgilUploadProtocol = Nothing
, _pdcgilAccessToken = Nothing
, _pdcgilUploadType = Nothing
, _pdcgilFilter = Nothing
, _pdcgilPageToken = Nothing
, _pdcgilPageSize = Nothing
, _pdcgilCallback = Nothing
}
pdcgilParent :: Lens' ProjectsDatabasesCollectionGroupsIndexesList Text
pdcgilParent
= lens _pdcgilParent (\ s a -> s{_pdcgilParent = a})
pdcgilXgafv :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Xgafv)
pdcgilXgafv
= lens _pdcgilXgafv (\ s a -> s{_pdcgilXgafv = a})
pdcgilUploadProtocol :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)
pdcgilUploadProtocol
= lens _pdcgilUploadProtocol
(\ s a -> s{_pdcgilUploadProtocol = a})
pdcgilAccessToken :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)
pdcgilAccessToken
= lens _pdcgilAccessToken
(\ s a -> s{_pdcgilAccessToken = a})
pdcgilUploadType :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)
pdcgilUploadType
= lens _pdcgilUploadType
(\ s a -> s{_pdcgilUploadType = a})
pdcgilFilter :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)
pdcgilFilter
= lens _pdcgilFilter (\ s a -> s{_pdcgilFilter = a})
pdcgilPageToken :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Text)
pdcgilPageToken
= lens _pdcgilPageToken
(\ s a -> s{_pdcgilPageToken = a})
pdcgilPageSize :: Lens' ProjectsDatabasesCollectionGroupsIndexesList (Maybe Int32)
pdcgilPageSize
= lens _pdcgilPageSize
(\ s a -> s{_pdcgilPageSize = a})
. mapping _Coerce
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