{-# 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.Operations.List
(
ProjectsInstancesOperationsListResource
, projectsInstancesOperationsList
, ProjectsInstancesOperationsList
, piolXgafv
, piolUploadProtocol
, piolAccessToken
, piolUploadType
, piolName
, piolFilter
, piolPageToken
, piolPageSize
, piolCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesOperationsListResource =
"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 ProjectsInstancesOperationsList = ProjectsInstancesOperationsList'
{ _piolXgafv :: !(Maybe Xgafv)
, _piolUploadProtocol :: !(Maybe Text)
, _piolAccessToken :: !(Maybe Text)
, _piolUploadType :: !(Maybe Text)
, _piolName :: !Text
, _piolFilter :: !(Maybe Text)
, _piolPageToken :: !(Maybe Text)
, _piolPageSize :: !(Maybe (Textual Int32))
, _piolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesOperationsList
:: Text
-> ProjectsInstancesOperationsList
projectsInstancesOperationsList pPiolName_ =
ProjectsInstancesOperationsList'
{ _piolXgafv = Nothing
, _piolUploadProtocol = Nothing
, _piolAccessToken = Nothing
, _piolUploadType = Nothing
, _piolName = pPiolName_
, _piolFilter = Nothing
, _piolPageToken = Nothing
, _piolPageSize = Nothing
, _piolCallback = Nothing
}
piolXgafv :: Lens' ProjectsInstancesOperationsList (Maybe Xgafv)
piolXgafv
= lens _piolXgafv (\ s a -> s{_piolXgafv = a})
piolUploadProtocol :: Lens' ProjectsInstancesOperationsList (Maybe Text)
piolUploadProtocol
= lens _piolUploadProtocol
(\ s a -> s{_piolUploadProtocol = a})
piolAccessToken :: Lens' ProjectsInstancesOperationsList (Maybe Text)
piolAccessToken
= lens _piolAccessToken
(\ s a -> s{_piolAccessToken = a})
piolUploadType :: Lens' ProjectsInstancesOperationsList (Maybe Text)
piolUploadType
= lens _piolUploadType
(\ s a -> s{_piolUploadType = a})
piolName :: Lens' ProjectsInstancesOperationsList Text
piolName = lens _piolName (\ s a -> s{_piolName = a})
piolFilter :: Lens' ProjectsInstancesOperationsList (Maybe Text)
piolFilter
= lens _piolFilter (\ s a -> s{_piolFilter = a})
piolPageToken :: Lens' ProjectsInstancesOperationsList (Maybe Text)
piolPageToken
= lens _piolPageToken
(\ s a -> s{_piolPageToken = a})
piolPageSize :: Lens' ProjectsInstancesOperationsList (Maybe Int32)
piolPageSize
= lens _piolPageSize (\ s a -> s{_piolPageSize = a})
. mapping _Coerce
piolCallback :: Lens' ProjectsInstancesOperationsList (Maybe Text)
piolCallback
= lens _piolCallback (\ s a -> s{_piolCallback = a})
instance GoogleRequest
ProjectsInstancesOperationsList where
type Rs ProjectsInstancesOperationsList =
ListOperationsResponse
type Scopes ProjectsInstancesOperationsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient ProjectsInstancesOperationsList'{..}
= go _piolName _piolXgafv _piolUploadProtocol
_piolAccessToken
_piolUploadType
_piolFilter
_piolPageToken
_piolPageSize
_piolCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesOperationsListResource)
mempty