{-# 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.AccessApproval.Folders.ApprovalRequests.List
(
FoldersApprovalRequestsListResource
, foldersApprovalRequestsList
, FoldersApprovalRequestsList
, farlParent
, farlXgafv
, farlUploadProtocol
, farlAccessToken
, farlUploadType
, farlFilter
, farlPageToken
, farlPageSize
, farlCallback
) where
import Network.Google.AccessApproval.Types
import Network.Google.Prelude
type FoldersApprovalRequestsListResource =
"v1beta1" :>
Capture "parent" Text :>
"approvalRequests" :>
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] ListApprovalRequestsResponse
data FoldersApprovalRequestsList =
FoldersApprovalRequestsList'
{ _farlParent :: !Text
, _farlXgafv :: !(Maybe Xgafv)
, _farlUploadProtocol :: !(Maybe Text)
, _farlAccessToken :: !(Maybe Text)
, _farlUploadType :: !(Maybe Text)
, _farlFilter :: !(Maybe Text)
, _farlPageToken :: !(Maybe Text)
, _farlPageSize :: !(Maybe (Textual Int32))
, _farlCallback :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
foldersApprovalRequestsList
:: Text
-> FoldersApprovalRequestsList
foldersApprovalRequestsList pFarlParent_ =
FoldersApprovalRequestsList'
{ _farlParent = pFarlParent_
, _farlXgafv = Nothing
, _farlUploadProtocol = Nothing
, _farlAccessToken = Nothing
, _farlUploadType = Nothing
, _farlFilter = Nothing
, _farlPageToken = Nothing
, _farlPageSize = Nothing
, _farlCallback = Nothing
}
farlParent :: Lens' FoldersApprovalRequestsList Text
farlParent
= lens _farlParent (\ s a -> s{_farlParent = a})
farlXgafv :: Lens' FoldersApprovalRequestsList (Maybe Xgafv)
farlXgafv
= lens _farlXgafv (\ s a -> s{_farlXgafv = a})
farlUploadProtocol :: Lens' FoldersApprovalRequestsList (Maybe Text)
farlUploadProtocol
= lens _farlUploadProtocol
(\ s a -> s{_farlUploadProtocol = a})
farlAccessToken :: Lens' FoldersApprovalRequestsList (Maybe Text)
farlAccessToken
= lens _farlAccessToken
(\ s a -> s{_farlAccessToken = a})
farlUploadType :: Lens' FoldersApprovalRequestsList (Maybe Text)
farlUploadType
= lens _farlUploadType
(\ s a -> s{_farlUploadType = a})
farlFilter :: Lens' FoldersApprovalRequestsList (Maybe Text)
farlFilter
= lens _farlFilter (\ s a -> s{_farlFilter = a})
farlPageToken :: Lens' FoldersApprovalRequestsList (Maybe Text)
farlPageToken
= lens _farlPageToken
(\ s a -> s{_farlPageToken = a})
farlPageSize :: Lens' FoldersApprovalRequestsList (Maybe Int32)
farlPageSize
= lens _farlPageSize (\ s a -> s{_farlPageSize = a})
. mapping _Coerce
farlCallback :: Lens' FoldersApprovalRequestsList (Maybe Text)
farlCallback
= lens _farlCallback (\ s a -> s{_farlCallback = a})
instance GoogleRequest FoldersApprovalRequestsList
where
type Rs FoldersApprovalRequestsList =
ListApprovalRequestsResponse
type Scopes FoldersApprovalRequestsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient FoldersApprovalRequestsList'{..}
= go _farlParent _farlXgafv _farlUploadProtocol
_farlAccessToken
_farlUploadType
_farlFilter
_farlPageToken
_farlPageSize
_farlCallback
(Just AltJSON)
accessApprovalService
where go
= buildClient
(Proxy :: Proxy FoldersApprovalRequestsListResource)
mempty