{-# 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.Projects.Exclusions.List
(
ProjectsExclusionsListResource
, projectsExclusionsList
, ProjectsExclusionsList
, pelParent
, pelXgafv
, pelUploadProtocol
, pelAccessToken
, pelUploadType
, pelPageToken
, pelPageSize
, pelCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type ProjectsExclusionsListResource =
"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 ProjectsExclusionsList = ProjectsExclusionsList'
{ _pelParent :: !Text
, _pelXgafv :: !(Maybe Xgafv)
, _pelUploadProtocol :: !(Maybe Text)
, _pelAccessToken :: !(Maybe Text)
, _pelUploadType :: !(Maybe Text)
, _pelPageToken :: !(Maybe Text)
, _pelPageSize :: !(Maybe (Textual Int32))
, _pelCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsExclusionsList
:: Text
-> ProjectsExclusionsList
projectsExclusionsList pPelParent_ =
ProjectsExclusionsList'
{ _pelParent = pPelParent_
, _pelXgafv = Nothing
, _pelUploadProtocol = Nothing
, _pelAccessToken = Nothing
, _pelUploadType = Nothing
, _pelPageToken = Nothing
, _pelPageSize = Nothing
, _pelCallback = Nothing
}
pelParent :: Lens' ProjectsExclusionsList Text
pelParent
= lens _pelParent (\ s a -> s{_pelParent = a})
pelXgafv :: Lens' ProjectsExclusionsList (Maybe Xgafv)
pelXgafv = lens _pelXgafv (\ s a -> s{_pelXgafv = a})
pelUploadProtocol :: Lens' ProjectsExclusionsList (Maybe Text)
pelUploadProtocol
= lens _pelUploadProtocol
(\ s a -> s{_pelUploadProtocol = a})
pelAccessToken :: Lens' ProjectsExclusionsList (Maybe Text)
pelAccessToken
= lens _pelAccessToken
(\ s a -> s{_pelAccessToken = a})
pelUploadType :: Lens' ProjectsExclusionsList (Maybe Text)
pelUploadType
= lens _pelUploadType
(\ s a -> s{_pelUploadType = a})
pelPageToken :: Lens' ProjectsExclusionsList (Maybe Text)
pelPageToken
= lens _pelPageToken (\ s a -> s{_pelPageToken = a})
pelPageSize :: Lens' ProjectsExclusionsList (Maybe Int32)
pelPageSize
= lens _pelPageSize (\ s a -> s{_pelPageSize = a}) .
mapping _Coerce
pelCallback :: Lens' ProjectsExclusionsList (Maybe Text)
pelCallback
= lens _pelCallback (\ s a -> s{_pelCallback = a})
instance GoogleRequest ProjectsExclusionsList where
type Rs ProjectsExclusionsList =
ListExclusionsResponse
type Scopes ProjectsExclusionsList =
'["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 ProjectsExclusionsList'{..}
= go _pelParent _pelXgafv _pelUploadProtocol
_pelAccessToken
_pelUploadType
_pelPageToken
_pelPageSize
_pelCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy ProjectsExclusionsListResource)
mempty