{-# 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.AlertCenter.Alerts.Feedback.List
(
AlertsFeedbackListResource
, alertsFeedbackList
, AlertsFeedbackList
, aflXgafv
, aflUploadProtocol
, aflAccessToken
, aflAlertId
, aflUploadType
, aflCustomerId
, aflFilter
, aflCallback
) where
import Network.Google.AlertCenter.Types
import Network.Google.Prelude
type AlertsFeedbackListResource =
"v1beta1" :>
"alerts" :>
Capture "alertId" Text :>
"feedback" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "customerId" Text :>
QueryParam "filter" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListAlertFeedbackResponse
data AlertsFeedbackList = AlertsFeedbackList'
{ _aflXgafv :: !(Maybe Xgafv)
, _aflUploadProtocol :: !(Maybe Text)
, _aflAccessToken :: !(Maybe Text)
, _aflAlertId :: !Text
, _aflUploadType :: !(Maybe Text)
, _aflCustomerId :: !(Maybe Text)
, _aflFilter :: !(Maybe Text)
, _aflCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
alertsFeedbackList
:: Text
-> AlertsFeedbackList
alertsFeedbackList pAflAlertId_ =
AlertsFeedbackList'
{ _aflXgafv = Nothing
, _aflUploadProtocol = Nothing
, _aflAccessToken = Nothing
, _aflAlertId = pAflAlertId_
, _aflUploadType = Nothing
, _aflCustomerId = Nothing
, _aflFilter = Nothing
, _aflCallback = Nothing
}
aflXgafv :: Lens' AlertsFeedbackList (Maybe Xgafv)
aflXgafv = lens _aflXgafv (\ s a -> s{_aflXgafv = a})
aflUploadProtocol :: Lens' AlertsFeedbackList (Maybe Text)
aflUploadProtocol
= lens _aflUploadProtocol
(\ s a -> s{_aflUploadProtocol = a})
aflAccessToken :: Lens' AlertsFeedbackList (Maybe Text)
aflAccessToken
= lens _aflAccessToken
(\ s a -> s{_aflAccessToken = a})
aflAlertId :: Lens' AlertsFeedbackList Text
aflAlertId
= lens _aflAlertId (\ s a -> s{_aflAlertId = a})
aflUploadType :: Lens' AlertsFeedbackList (Maybe Text)
aflUploadType
= lens _aflUploadType
(\ s a -> s{_aflUploadType = a})
aflCustomerId :: Lens' AlertsFeedbackList (Maybe Text)
aflCustomerId
= lens _aflCustomerId
(\ s a -> s{_aflCustomerId = a})
aflFilter :: Lens' AlertsFeedbackList (Maybe Text)
aflFilter
= lens _aflFilter (\ s a -> s{_aflFilter = a})
aflCallback :: Lens' AlertsFeedbackList (Maybe Text)
aflCallback
= lens _aflCallback (\ s a -> s{_aflCallback = a})
instance GoogleRequest AlertsFeedbackList where
type Rs AlertsFeedbackList =
ListAlertFeedbackResponse
type Scopes AlertsFeedbackList =
'["https://www.googleapis.com/auth/apps.alerts"]
requestClient AlertsFeedbackList'{..}
= go _aflAlertId _aflXgafv _aflUploadProtocol
_aflAccessToken
_aflUploadType
_aflCustomerId
_aflFilter
_aflCallback
(Just AltJSON)
alertCenterService
where go
= buildClient
(Proxy :: Proxy AlertsFeedbackListResource)
mempty