{-# 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.Monitoring.Projects.NotificationChannels.List
(
ProjectsNotificationChannelsListResource
, projectsNotificationChannelsList
, ProjectsNotificationChannelsList
, pnclXgafv
, pnclUploadProtocol
, pnclOrderBy
, pnclAccessToken
, pnclUploadType
, pnclName
, pnclFilter
, pnclPageToken
, pnclPageSize
, pnclCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type ProjectsNotificationChannelsListResource =
"v3" :>
Capture "name" Text :>
"notificationChannels" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" 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] ListNotificationChannelsResponse
data ProjectsNotificationChannelsList = ProjectsNotificationChannelsList'
{ _pnclXgafv :: !(Maybe Xgafv)
, _pnclUploadProtocol :: !(Maybe Text)
, _pnclOrderBy :: !(Maybe Text)
, _pnclAccessToken :: !(Maybe Text)
, _pnclUploadType :: !(Maybe Text)
, _pnclName :: !Text
, _pnclFilter :: !(Maybe Text)
, _pnclPageToken :: !(Maybe Text)
, _pnclPageSize :: !(Maybe (Textual Int32))
, _pnclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotificationChannelsList
:: Text
-> ProjectsNotificationChannelsList
projectsNotificationChannelsList pPnclName_ =
ProjectsNotificationChannelsList'
{ _pnclXgafv = Nothing
, _pnclUploadProtocol = Nothing
, _pnclOrderBy = Nothing
, _pnclAccessToken = Nothing
, _pnclUploadType = Nothing
, _pnclName = pPnclName_
, _pnclFilter = Nothing
, _pnclPageToken = Nothing
, _pnclPageSize = Nothing
, _pnclCallback = Nothing
}
pnclXgafv :: Lens' ProjectsNotificationChannelsList (Maybe Xgafv)
pnclXgafv
= lens _pnclXgafv (\ s a -> s{_pnclXgafv = a})
pnclUploadProtocol :: Lens' ProjectsNotificationChannelsList (Maybe Text)
pnclUploadProtocol
= lens _pnclUploadProtocol
(\ s a -> s{_pnclUploadProtocol = a})
pnclOrderBy :: Lens' ProjectsNotificationChannelsList (Maybe Text)
pnclOrderBy
= lens _pnclOrderBy (\ s a -> s{_pnclOrderBy = a})
pnclAccessToken :: Lens' ProjectsNotificationChannelsList (Maybe Text)
pnclAccessToken
= lens _pnclAccessToken
(\ s a -> s{_pnclAccessToken = a})
pnclUploadType :: Lens' ProjectsNotificationChannelsList (Maybe Text)
pnclUploadType
= lens _pnclUploadType
(\ s a -> s{_pnclUploadType = a})
pnclName :: Lens' ProjectsNotificationChannelsList Text
pnclName = lens _pnclName (\ s a -> s{_pnclName = a})
pnclFilter :: Lens' ProjectsNotificationChannelsList (Maybe Text)
pnclFilter
= lens _pnclFilter (\ s a -> s{_pnclFilter = a})
pnclPageToken :: Lens' ProjectsNotificationChannelsList (Maybe Text)
pnclPageToken
= lens _pnclPageToken
(\ s a -> s{_pnclPageToken = a})
pnclPageSize :: Lens' ProjectsNotificationChannelsList (Maybe Int32)
pnclPageSize
= lens _pnclPageSize (\ s a -> s{_pnclPageSize = a})
. mapping _Coerce
pnclCallback :: Lens' ProjectsNotificationChannelsList (Maybe Text)
pnclCallback
= lens _pnclCallback (\ s a -> s{_pnclCallback = a})
instance GoogleRequest
ProjectsNotificationChannelsList where
type Rs ProjectsNotificationChannelsList =
ListNotificationChannelsResponse
type Scopes ProjectsNotificationChannelsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/monitoring.read"]
requestClient ProjectsNotificationChannelsList'{..}
= go _pnclName _pnclXgafv _pnclUploadProtocol
_pnclOrderBy
_pnclAccessToken
_pnclUploadType
_pnclFilter
_pnclPageToken
_pnclPageSize
_pnclCallback
(Just AltJSON)
monitoringService
where go
= buildClient
(Proxy ::
Proxy ProjectsNotificationChannelsListResource)
mempty