{-# 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.Logging.Folders.Exclusions.List
(
FoldersExclusionsListResource
, foldersExclusionsList
, FoldersExclusionsList
, felParent
, felXgafv
, felUploadProtocol
, felAccessToken
, felUploadType
, felPageToken
, felPageSize
, felCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type FoldersExclusionsListResource =
"v2" :>
Capture "parent" Text :>
"exclusions" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListExclusionsResponse
data FoldersExclusionsList = FoldersExclusionsList'
{ _felParent :: !Text
, _felXgafv :: !(Maybe Xgafv)
, _felUploadProtocol :: !(Maybe Text)
, _felAccessToken :: !(Maybe Text)
, _felUploadType :: !(Maybe Text)
, _felPageToken :: !(Maybe Text)
, _felPageSize :: !(Maybe (Textual Int32))
, _felCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
foldersExclusionsList
:: Text
-> FoldersExclusionsList
foldersExclusionsList pFelParent_ =
FoldersExclusionsList'
{ _felParent = pFelParent_
, _felXgafv = Nothing
, _felUploadProtocol = Nothing
, _felAccessToken = Nothing
, _felUploadType = Nothing
, _felPageToken = Nothing
, _felPageSize = Nothing
, _felCallback = Nothing
}
felParent :: Lens' FoldersExclusionsList Text
felParent
= lens _felParent (\ s a -> s{_felParent = a})
felXgafv :: Lens' FoldersExclusionsList (Maybe Xgafv)
felXgafv = lens _felXgafv (\ s a -> s{_felXgafv = a})
felUploadProtocol :: Lens' FoldersExclusionsList (Maybe Text)
felUploadProtocol
= lens _felUploadProtocol
(\ s a -> s{_felUploadProtocol = a})
felAccessToken :: Lens' FoldersExclusionsList (Maybe Text)
felAccessToken
= lens _felAccessToken
(\ s a -> s{_felAccessToken = a})
felUploadType :: Lens' FoldersExclusionsList (Maybe Text)
felUploadType
= lens _felUploadType
(\ s a -> s{_felUploadType = a})
felPageToken :: Lens' FoldersExclusionsList (Maybe Text)
felPageToken
= lens _felPageToken (\ s a -> s{_felPageToken = a})
felPageSize :: Lens' FoldersExclusionsList (Maybe Int32)
felPageSize
= lens _felPageSize (\ s a -> s{_felPageSize = a}) .
mapping _Coerce
felCallback :: Lens' FoldersExclusionsList (Maybe Text)
felCallback
= lens _felCallback (\ s a -> s{_felCallback = a})
instance GoogleRequest FoldersExclusionsList where
type Rs FoldersExclusionsList =
ListExclusionsResponse
type Scopes FoldersExclusionsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/logging.admin",
"https://www.googleapis.com/auth/logging.read"]
requestClient FoldersExclusionsList'{..}
= go _felParent _felXgafv _felUploadProtocol
_felAccessToken
_felUploadType
_felPageToken
_felPageSize
_felCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy FoldersExclusionsListResource)
mempty