{-# 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.NotificationChannelDescriptors.List
(
ProjectsNotificationChannelDescriptorsListResource
, projectsNotificationChannelDescriptorsList
, ProjectsNotificationChannelDescriptorsList
, pncdlXgafv
, pncdlUploadProtocol
, pncdlAccessToken
, pncdlUploadType
, pncdlName
, pncdlPageToken
, pncdlPageSize
, pncdlCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type ProjectsNotificationChannelDescriptorsListResource
=
"v3" :>
Capture "name" Text :>
"notificationChannelDescriptors" :>
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]
ListNotificationChannelDescriptorsResponse
data ProjectsNotificationChannelDescriptorsList = ProjectsNotificationChannelDescriptorsList'
{ _pncdlXgafv :: !(Maybe Xgafv)
, _pncdlUploadProtocol :: !(Maybe Text)
, _pncdlAccessToken :: !(Maybe Text)
, _pncdlUploadType :: !(Maybe Text)
, _pncdlName :: !Text
, _pncdlPageToken :: !(Maybe Text)
, _pncdlPageSize :: !(Maybe (Textual Int32))
, _pncdlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotificationChannelDescriptorsList
:: Text
-> ProjectsNotificationChannelDescriptorsList
projectsNotificationChannelDescriptorsList pPncdlName_ =
ProjectsNotificationChannelDescriptorsList'
{ _pncdlXgafv = Nothing
, _pncdlUploadProtocol = Nothing
, _pncdlAccessToken = Nothing
, _pncdlUploadType = Nothing
, _pncdlName = pPncdlName_
, _pncdlPageToken = Nothing
, _pncdlPageSize = Nothing
, _pncdlCallback = Nothing
}
pncdlXgafv :: Lens' ProjectsNotificationChannelDescriptorsList (Maybe Xgafv)
pncdlXgafv
= lens _pncdlXgafv (\ s a -> s{_pncdlXgafv = a})
pncdlUploadProtocol :: Lens' ProjectsNotificationChannelDescriptorsList (Maybe Text)
pncdlUploadProtocol
= lens _pncdlUploadProtocol
(\ s a -> s{_pncdlUploadProtocol = a})
pncdlAccessToken :: Lens' ProjectsNotificationChannelDescriptorsList (Maybe Text)
pncdlAccessToken
= lens _pncdlAccessToken
(\ s a -> s{_pncdlAccessToken = a})
pncdlUploadType :: Lens' ProjectsNotificationChannelDescriptorsList (Maybe Text)
pncdlUploadType
= lens _pncdlUploadType
(\ s a -> s{_pncdlUploadType = a})
pncdlName :: Lens' ProjectsNotificationChannelDescriptorsList Text
pncdlName
= lens _pncdlName (\ s a -> s{_pncdlName = a})
pncdlPageToken :: Lens' ProjectsNotificationChannelDescriptorsList (Maybe Text)
pncdlPageToken
= lens _pncdlPageToken
(\ s a -> s{_pncdlPageToken = a})
pncdlPageSize :: Lens' ProjectsNotificationChannelDescriptorsList (Maybe Int32)
pncdlPageSize
= lens _pncdlPageSize
(\ s a -> s{_pncdlPageSize = a})
. mapping _Coerce
pncdlCallback :: Lens' ProjectsNotificationChannelDescriptorsList (Maybe Text)
pncdlCallback
= lens _pncdlCallback
(\ s a -> s{_pncdlCallback = a})
instance GoogleRequest
ProjectsNotificationChannelDescriptorsList where
type Rs ProjectsNotificationChannelDescriptorsList =
ListNotificationChannelDescriptorsResponse
type Scopes
ProjectsNotificationChannelDescriptorsList
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/monitoring.read"]
requestClient
ProjectsNotificationChannelDescriptorsList'{..}
= go _pncdlName _pncdlXgafv _pncdlUploadProtocol
_pncdlAccessToken
_pncdlUploadType
_pncdlPageToken
_pncdlPageSize
_pncdlCallback
(Just AltJSON)
monitoringService
where go
= buildClient
(Proxy ::
Proxy
ProjectsNotificationChannelDescriptorsListResource)
mempty