{-# 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.Spanner.Projects.Instances.Databases.Operations.List
(
ProjectsInstancesDatabasesOperationsListResource
, projectsInstancesDatabasesOperationsList
, ProjectsInstancesDatabasesOperationsList
, pidolXgafv
, pidolUploadProtocol
, pidolAccessToken
, pidolUploadType
, pidolName
, pidolFilter
, pidolPageToken
, pidolPageSize
, pidolCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesDatabasesOperationsListResource
=
"v1" :>
Capture "name" Text :>
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] ListOperationsResponse
data ProjectsInstancesDatabasesOperationsList = ProjectsInstancesDatabasesOperationsList'
{ _pidolXgafv :: !(Maybe Xgafv)
, _pidolUploadProtocol :: !(Maybe Text)
, _pidolAccessToken :: !(Maybe Text)
, _pidolUploadType :: !(Maybe Text)
, _pidolName :: !Text
, _pidolFilter :: !(Maybe Text)
, _pidolPageToken :: !(Maybe Text)
, _pidolPageSize :: !(Maybe (Textual Int32))
, _pidolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesDatabasesOperationsList
:: Text
-> ProjectsInstancesDatabasesOperationsList
projectsInstancesDatabasesOperationsList pPidolName_ =
ProjectsInstancesDatabasesOperationsList'
{ _pidolXgafv = Nothing
, _pidolUploadProtocol = Nothing
, _pidolAccessToken = Nothing
, _pidolUploadType = Nothing
, _pidolName = pPidolName_
, _pidolFilter = Nothing
, _pidolPageToken = Nothing
, _pidolPageSize = Nothing
, _pidolCallback = Nothing
}
pidolXgafv :: Lens' ProjectsInstancesDatabasesOperationsList (Maybe Xgafv)
pidolXgafv
= lens _pidolXgafv (\ s a -> s{_pidolXgafv = a})
pidolUploadProtocol :: Lens' ProjectsInstancesDatabasesOperationsList (Maybe Text)
pidolUploadProtocol
= lens _pidolUploadProtocol
(\ s a -> s{_pidolUploadProtocol = a})
pidolAccessToken :: Lens' ProjectsInstancesDatabasesOperationsList (Maybe Text)
pidolAccessToken
= lens _pidolAccessToken
(\ s a -> s{_pidolAccessToken = a})
pidolUploadType :: Lens' ProjectsInstancesDatabasesOperationsList (Maybe Text)
pidolUploadType
= lens _pidolUploadType
(\ s a -> s{_pidolUploadType = a})
pidolName :: Lens' ProjectsInstancesDatabasesOperationsList Text
pidolName
= lens _pidolName (\ s a -> s{_pidolName = a})
pidolFilter :: Lens' ProjectsInstancesDatabasesOperationsList (Maybe Text)
pidolFilter
= lens _pidolFilter (\ s a -> s{_pidolFilter = a})
pidolPageToken :: Lens' ProjectsInstancesDatabasesOperationsList (Maybe Text)
pidolPageToken
= lens _pidolPageToken
(\ s a -> s{_pidolPageToken = a})
pidolPageSize :: Lens' ProjectsInstancesDatabasesOperationsList (Maybe Int32)
pidolPageSize
= lens _pidolPageSize
(\ s a -> s{_pidolPageSize = a})
. mapping _Coerce
pidolCallback :: Lens' ProjectsInstancesDatabasesOperationsList (Maybe Text)
pidolCallback
= lens _pidolCallback
(\ s a -> s{_pidolCallback = a})
instance GoogleRequest
ProjectsInstancesDatabasesOperationsList where
type Rs ProjectsInstancesDatabasesOperationsList =
ListOperationsResponse
type Scopes ProjectsInstancesDatabasesOperationsList
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient
ProjectsInstancesDatabasesOperationsList'{..}
= go _pidolName _pidolXgafv _pidolUploadProtocol
_pidolAccessToken
_pidolUploadType
_pidolFilter
_pidolPageToken
_pidolPageSize
_pidolCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsInstancesDatabasesOperationsListResource)
mempty