{-# 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.Documents.List
(
ProjectsDatabasesDocumentsListResource
, projectsDatabasesDocumentsList
, ProjectsDatabasesDocumentsList
, pParent
, pXgafv
, pReadTime
, pUploadProtocol
, pOrderBy
, pAccessToken
, pCollectionId
, pUploadType
, pTransaction
, pShowMissing
, pPageToken
, pPageSize
, pMaskFieldPaths
, pCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
type ProjectsDatabasesDocumentsListResource =
"v1" :>
Capture "parent" Text :>
Capture "collectionId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "readTime" DateTime' :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "transaction" Bytes :>
QueryParam "showMissing" Bool :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParams "mask.fieldPaths" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListDocumentsResponse
data ProjectsDatabasesDocumentsList = ProjectsDatabasesDocumentsList'
{ _pParent :: !Text
, _pXgafv :: !(Maybe Xgafv)
, _pReadTime :: !(Maybe DateTime')
, _pUploadProtocol :: !(Maybe Text)
, _pOrderBy :: !(Maybe Text)
, _pAccessToken :: !(Maybe Text)
, _pCollectionId :: !Text
, _pUploadType :: !(Maybe Text)
, _pTransaction :: !(Maybe Bytes)
, _pShowMissing :: !(Maybe Bool)
, _pPageToken :: !(Maybe Text)
, _pPageSize :: !(Maybe (Textual Int32))
, _pMaskFieldPaths :: !(Maybe [Text])
, _pCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDatabasesDocumentsList
:: Text
-> Text
-> ProjectsDatabasesDocumentsList
projectsDatabasesDocumentsList pPParent_ pPCollectionId_ =
ProjectsDatabasesDocumentsList'
{ _pParent = pPParent_
, _pXgafv = Nothing
, _pReadTime = Nothing
, _pUploadProtocol = Nothing
, _pOrderBy = Nothing
, _pAccessToken = Nothing
, _pCollectionId = pPCollectionId_
, _pUploadType = Nothing
, _pTransaction = Nothing
, _pShowMissing = Nothing
, _pPageToken = Nothing
, _pPageSize = Nothing
, _pMaskFieldPaths = Nothing
, _pCallback = Nothing
}
pParent :: Lens' ProjectsDatabasesDocumentsList Text
pParent = lens _pParent (\ s a -> s{_pParent = a})
pXgafv :: Lens' ProjectsDatabasesDocumentsList (Maybe Xgafv)
pXgafv = lens _pXgafv (\ s a -> s{_pXgafv = a})
pReadTime :: Lens' ProjectsDatabasesDocumentsList (Maybe UTCTime)
pReadTime
= lens _pReadTime (\ s a -> s{_pReadTime = a}) .
mapping _DateTime
pUploadProtocol :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)
pUploadProtocol
= lens _pUploadProtocol
(\ s a -> s{_pUploadProtocol = a})
pOrderBy :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)
pOrderBy = lens _pOrderBy (\ s a -> s{_pOrderBy = a})
pAccessToken :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)
pAccessToken
= lens _pAccessToken (\ s a -> s{_pAccessToken = a})
pCollectionId :: Lens' ProjectsDatabasesDocumentsList Text
pCollectionId
= lens _pCollectionId
(\ s a -> s{_pCollectionId = a})
pUploadType :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)
pUploadType
= lens _pUploadType (\ s a -> s{_pUploadType = a})
pTransaction :: Lens' ProjectsDatabasesDocumentsList (Maybe ByteString)
pTransaction
= lens _pTransaction (\ s a -> s{_pTransaction = a})
. mapping _Bytes
pShowMissing :: Lens' ProjectsDatabasesDocumentsList (Maybe Bool)
pShowMissing
= lens _pShowMissing (\ s a -> s{_pShowMissing = a})
pPageToken :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)
pPageToken
= lens _pPageToken (\ s a -> s{_pPageToken = a})
pPageSize :: Lens' ProjectsDatabasesDocumentsList (Maybe Int32)
pPageSize
= lens _pPageSize (\ s a -> s{_pPageSize = a}) .
mapping _Coerce
pMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsList [Text]
pMaskFieldPaths
= lens _pMaskFieldPaths
(\ s a -> s{_pMaskFieldPaths = a})
. _Default
. _Coerce
pCallback :: Lens' ProjectsDatabasesDocumentsList (Maybe Text)
pCallback
= lens _pCallback (\ s a -> s{_pCallback = a})
instance GoogleRequest ProjectsDatabasesDocumentsList
where
type Rs ProjectsDatabasesDocumentsList =
ListDocumentsResponse
type Scopes ProjectsDatabasesDocumentsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"]
requestClient ProjectsDatabasesDocumentsList'{..}
= go _pParent _pCollectionId _pXgafv _pReadTime
_pUploadProtocol
_pOrderBy
_pAccessToken
_pUploadType
_pTransaction
_pShowMissing
_pPageToken
_pPageSize
(_pMaskFieldPaths ^. _Default)
_pCallback
(Just AltJSON)
fireStoreService
where go
= buildClient
(Proxy ::
Proxy ProjectsDatabasesDocumentsListResource)
mempty