{-# 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.List
(
ProjectsDatabasesOperationsListResource
, projectsDatabasesOperationsList
, ProjectsDatabasesOperationsList
, pdolXgafv
, pdolUploadProtocol
, pdolAccessToken
, pdolUploadType
, pdolName
, pdolFilter
, pdolPageToken
, pdolPageSize
, pdolCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
type ProjectsDatabasesOperationsListResource =
"v1" :>
Capture "name" Text :>
"operations" :>
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] GoogleLongrunningListOperationsResponse
data ProjectsDatabasesOperationsList = ProjectsDatabasesOperationsList'
{ _pdolXgafv :: !(Maybe Xgafv)
, _pdolUploadProtocol :: !(Maybe Text)
, _pdolAccessToken :: !(Maybe Text)
, _pdolUploadType :: !(Maybe Text)
, _pdolName :: !Text
, _pdolFilter :: !(Maybe Text)
, _pdolPageToken :: !(Maybe Text)
, _pdolPageSize :: !(Maybe (Textual Int32))
, _pdolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDatabasesOperationsList
:: Text
-> ProjectsDatabasesOperationsList
projectsDatabasesOperationsList pPdolName_ =
ProjectsDatabasesOperationsList'
{ _pdolXgafv = Nothing
, _pdolUploadProtocol = Nothing
, _pdolAccessToken = Nothing
, _pdolUploadType = Nothing
, _pdolName = pPdolName_
, _pdolFilter = Nothing
, _pdolPageToken = Nothing
, _pdolPageSize = Nothing
, _pdolCallback = Nothing
}
pdolXgafv :: Lens' ProjectsDatabasesOperationsList (Maybe Xgafv)
pdolXgafv
= lens _pdolXgafv (\ s a -> s{_pdolXgafv = a})
pdolUploadProtocol :: Lens' ProjectsDatabasesOperationsList (Maybe Text)
pdolUploadProtocol
= lens _pdolUploadProtocol
(\ s a -> s{_pdolUploadProtocol = a})
pdolAccessToken :: Lens' ProjectsDatabasesOperationsList (Maybe Text)
pdolAccessToken
= lens _pdolAccessToken
(\ s a -> s{_pdolAccessToken = a})
pdolUploadType :: Lens' ProjectsDatabasesOperationsList (Maybe Text)
pdolUploadType
= lens _pdolUploadType
(\ s a -> s{_pdolUploadType = a})
pdolName :: Lens' ProjectsDatabasesOperationsList Text
pdolName = lens _pdolName (\ s a -> s{_pdolName = a})
pdolFilter :: Lens' ProjectsDatabasesOperationsList (Maybe Text)
pdolFilter
= lens _pdolFilter (\ s a -> s{_pdolFilter = a})
pdolPageToken :: Lens' ProjectsDatabasesOperationsList (Maybe Text)
pdolPageToken
= lens _pdolPageToken
(\ s a -> s{_pdolPageToken = a})
pdolPageSize :: Lens' ProjectsDatabasesOperationsList (Maybe Int32)
pdolPageSize
= lens _pdolPageSize (\ s a -> s{_pdolPageSize = a})
. mapping _Coerce
pdolCallback :: Lens' ProjectsDatabasesOperationsList (Maybe Text)
pdolCallback
= lens _pdolCallback (\ s a -> s{_pdolCallback = a})
instance GoogleRequest
ProjectsDatabasesOperationsList where
type Rs ProjectsDatabasesOperationsList =
GoogleLongrunningListOperationsResponse
type Scopes ProjectsDatabasesOperationsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"]
requestClient ProjectsDatabasesOperationsList'{..}
= go _pdolName _pdolXgafv _pdolUploadProtocol
_pdolAccessToken
_pdolUploadType
_pdolFilter
_pdolPageToken
_pdolPageSize
_pdolCallback
(Just AltJSON)
fireStoreService
where go
= buildClient
(Proxy ::
Proxy ProjectsDatabasesOperationsListResource)
mempty