{-# 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.SendVerificationCode
(
ProjectsNotificationChannelsSendVerificationCodeResource
, projectsNotificationChannelsSendVerificationCode
, ProjectsNotificationChannelsSendVerificationCode
, pncsvcXgafv
, pncsvcUploadProtocol
, pncsvcAccessToken
, pncsvcUploadType
, pncsvcPayload
, pncsvcName
, pncsvcCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type ProjectsNotificationChannelsSendVerificationCodeResource
=
"v3" :>
CaptureMode "name" "sendVerificationCode" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
SendNotificationChannelVerificationCodeRequest
:> Post '[JSON] Empty
data ProjectsNotificationChannelsSendVerificationCode = ProjectsNotificationChannelsSendVerificationCode'
{ _pncsvcXgafv :: !(Maybe Xgafv)
, _pncsvcUploadProtocol :: !(Maybe Text)
, _pncsvcAccessToken :: !(Maybe Text)
, _pncsvcUploadType :: !(Maybe Text)
, _pncsvcPayload :: !SendNotificationChannelVerificationCodeRequest
, _pncsvcName :: !Text
, _pncsvcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotificationChannelsSendVerificationCode
:: SendNotificationChannelVerificationCodeRequest
-> Text
-> ProjectsNotificationChannelsSendVerificationCode
projectsNotificationChannelsSendVerificationCode pPncsvcPayload_ pPncsvcName_ =
ProjectsNotificationChannelsSendVerificationCode'
{ _pncsvcXgafv = Nothing
, _pncsvcUploadProtocol = Nothing
, _pncsvcAccessToken = Nothing
, _pncsvcUploadType = Nothing
, _pncsvcPayload = pPncsvcPayload_
, _pncsvcName = pPncsvcName_
, _pncsvcCallback = Nothing
}
pncsvcXgafv :: Lens' ProjectsNotificationChannelsSendVerificationCode (Maybe Xgafv)
pncsvcXgafv
= lens _pncsvcXgafv (\ s a -> s{_pncsvcXgafv = a})
pncsvcUploadProtocol :: Lens' ProjectsNotificationChannelsSendVerificationCode (Maybe Text)
pncsvcUploadProtocol
= lens _pncsvcUploadProtocol
(\ s a -> s{_pncsvcUploadProtocol = a})
pncsvcAccessToken :: Lens' ProjectsNotificationChannelsSendVerificationCode (Maybe Text)
pncsvcAccessToken
= lens _pncsvcAccessToken
(\ s a -> s{_pncsvcAccessToken = a})
pncsvcUploadType :: Lens' ProjectsNotificationChannelsSendVerificationCode (Maybe Text)
pncsvcUploadType
= lens _pncsvcUploadType
(\ s a -> s{_pncsvcUploadType = a})
pncsvcPayload :: Lens' ProjectsNotificationChannelsSendVerificationCode SendNotificationChannelVerificationCodeRequest
pncsvcPayload
= lens _pncsvcPayload
(\ s a -> s{_pncsvcPayload = a})
pncsvcName :: Lens' ProjectsNotificationChannelsSendVerificationCode Text
pncsvcName
= lens _pncsvcName (\ s a -> s{_pncsvcName = a})
pncsvcCallback :: Lens' ProjectsNotificationChannelsSendVerificationCode (Maybe Text)
pncsvcCallback
= lens _pncsvcCallback
(\ s a -> s{_pncsvcCallback = a})
instance GoogleRequest
ProjectsNotificationChannelsSendVerificationCode
where
type Rs
ProjectsNotificationChannelsSendVerificationCode
= Empty
type Scopes
ProjectsNotificationChannelsSendVerificationCode
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring"]
requestClient
ProjectsNotificationChannelsSendVerificationCode'{..}
= go _pncsvcName _pncsvcXgafv _pncsvcUploadProtocol
_pncsvcAccessToken
_pncsvcUploadType
_pncsvcCallback
(Just AltJSON)
_pncsvcPayload
monitoringService
where go
= buildClient
(Proxy ::
Proxy
ProjectsNotificationChannelsSendVerificationCodeResource)
mempty