{-# 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.GetSettings
(
GetSettingsResource
, getSettings
, GetSettings
, gsXgafv
, gsUploadProtocol
, gsAccessToken
, gsUploadType
, gsCustomerId
, gsCallback
) where
import Network.Google.AlertCenter.Types
import Network.Google.Prelude
type GetSettingsResource =
"v1beta1" :>
"settings" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "customerId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Settings
data GetSettings = GetSettings'
{ _gsXgafv :: !(Maybe Xgafv)
, _gsUploadProtocol :: !(Maybe Text)
, _gsAccessToken :: !(Maybe Text)
, _gsUploadType :: !(Maybe Text)
, _gsCustomerId :: !(Maybe Text)
, _gsCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
getSettings
:: GetSettings
getSettings =
GetSettings'
{ _gsXgafv = Nothing
, _gsUploadProtocol = Nothing
, _gsAccessToken = Nothing
, _gsUploadType = Nothing
, _gsCustomerId = Nothing
, _gsCallback = Nothing
}
gsXgafv :: Lens' GetSettings (Maybe Xgafv)
gsXgafv = lens _gsXgafv (\ s a -> s{_gsXgafv = a})
gsUploadProtocol :: Lens' GetSettings (Maybe Text)
gsUploadProtocol
= lens _gsUploadProtocol
(\ s a -> s{_gsUploadProtocol = a})
gsAccessToken :: Lens' GetSettings (Maybe Text)
gsAccessToken
= lens _gsAccessToken
(\ s a -> s{_gsAccessToken = a})
gsUploadType :: Lens' GetSettings (Maybe Text)
gsUploadType
= lens _gsUploadType (\ s a -> s{_gsUploadType = a})
gsCustomerId :: Lens' GetSettings (Maybe Text)
gsCustomerId
= lens _gsCustomerId (\ s a -> s{_gsCustomerId = a})
gsCallback :: Lens' GetSettings (Maybe Text)
gsCallback
= lens _gsCallback (\ s a -> s{_gsCallback = a})
instance GoogleRequest GetSettings where
type Rs GetSettings = Settings
type Scopes GetSettings =
'["https://www.googleapis.com/auth/apps.alerts"]
requestClient GetSettings'{..}
= go _gsXgafv _gsUploadProtocol _gsAccessToken
_gsUploadType
_gsCustomerId
_gsCallback
(Just AltJSON)
alertCenterService
where go
= buildClient (Proxy :: Proxy GetSettingsResource)
mempty