{-# 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.List
(
AlertsListResource
, alertsList
, AlertsList
, alXgafv
, alUploadProtocol
, alOrderBy
, alAccessToken
, alUploadType
, alCustomerId
, alFilter
, alPageToken
, alPageSize
, alCallback
) where
import Network.Google.AlertCenter.Types
import Network.Google.Prelude
type AlertsListResource =
"v1beta1" :>
"alerts" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "customerId" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListAlertsResponse
data AlertsList = AlertsList'
{ _alXgafv :: !(Maybe Xgafv)
, _alUploadProtocol :: !(Maybe Text)
, _alOrderBy :: !(Maybe Text)
, _alAccessToken :: !(Maybe Text)
, _alUploadType :: !(Maybe Text)
, _alCustomerId :: !(Maybe Text)
, _alFilter :: !(Maybe Text)
, _alPageToken :: !(Maybe Text)
, _alPageSize :: !(Maybe (Textual Int32))
, _alCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
alertsList
:: AlertsList
alertsList =
AlertsList'
{ _alXgafv = Nothing
, _alUploadProtocol = Nothing
, _alOrderBy = Nothing
, _alAccessToken = Nothing
, _alUploadType = Nothing
, _alCustomerId = Nothing
, _alFilter = Nothing
, _alPageToken = Nothing
, _alPageSize = Nothing
, _alCallback = Nothing
}
alXgafv :: Lens' AlertsList (Maybe Xgafv)
alXgafv = lens _alXgafv (\ s a -> s{_alXgafv = a})
alUploadProtocol :: Lens' AlertsList (Maybe Text)
alUploadProtocol
= lens _alUploadProtocol
(\ s a -> s{_alUploadProtocol = a})
alOrderBy :: Lens' AlertsList (Maybe Text)
alOrderBy
= lens _alOrderBy (\ s a -> s{_alOrderBy = a})
alAccessToken :: Lens' AlertsList (Maybe Text)
alAccessToken
= lens _alAccessToken
(\ s a -> s{_alAccessToken = a})
alUploadType :: Lens' AlertsList (Maybe Text)
alUploadType
= lens _alUploadType (\ s a -> s{_alUploadType = a})
alCustomerId :: Lens' AlertsList (Maybe Text)
alCustomerId
= lens _alCustomerId (\ s a -> s{_alCustomerId = a})
alFilter :: Lens' AlertsList (Maybe Text)
alFilter = lens _alFilter (\ s a -> s{_alFilter = a})
alPageToken :: Lens' AlertsList (Maybe Text)
alPageToken
= lens _alPageToken (\ s a -> s{_alPageToken = a})
alPageSize :: Lens' AlertsList (Maybe Int32)
alPageSize
= lens _alPageSize (\ s a -> s{_alPageSize = a}) .
mapping _Coerce
alCallback :: Lens' AlertsList (Maybe Text)
alCallback
= lens _alCallback (\ s a -> s{_alCallback = a})
instance GoogleRequest AlertsList where
type Rs AlertsList = ListAlertsResponse
type Scopes AlertsList =
'["https://www.googleapis.com/auth/apps.alerts"]
requestClient AlertsList'{..}
= go _alXgafv _alUploadProtocol _alOrderBy
_alAccessToken
_alUploadType
_alCustomerId
_alFilter
_alPageToken
_alPageSize
_alCallback
(Just AltJSON)
alertCenterService
where go
= buildClient (Proxy :: Proxy AlertsListResource)
mempty