{-# 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.Gmail.Users.Settings.SendAs.SmimeInfo.List
(
UsersSettingsSendAsSmimeInfoListResource
, usersSettingsSendAsSmimeInfoList
, UsersSettingsSendAsSmimeInfoList
, ussasilUserId
, ussasilSendAsEmail
) where
import Network.Google.Gmail.Types
import Network.Google.Prelude
type UsersSettingsSendAsSmimeInfoListResource =
"gmail" :>
"v1" :>
"users" :>
Capture "userId" Text :>
"settings" :>
"sendAs" :>
Capture "sendAsEmail" Text :>
"smimeInfo" :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListSmimeInfoResponse
data UsersSettingsSendAsSmimeInfoList = UsersSettingsSendAsSmimeInfoList'
{ _ussasilUserId :: !Text
, _ussasilSendAsEmail :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
usersSettingsSendAsSmimeInfoList
:: Text
-> UsersSettingsSendAsSmimeInfoList
usersSettingsSendAsSmimeInfoList pUssasilSendAsEmail_ =
UsersSettingsSendAsSmimeInfoList'
{ _ussasilUserId = "me"
, _ussasilSendAsEmail = pUssasilSendAsEmail_
}
ussasilUserId :: Lens' UsersSettingsSendAsSmimeInfoList Text
ussasilUserId
= lens _ussasilUserId
(\ s a -> s{_ussasilUserId = a})
ussasilSendAsEmail :: Lens' UsersSettingsSendAsSmimeInfoList Text
ussasilSendAsEmail
= lens _ussasilSendAsEmail
(\ s a -> s{_ussasilSendAsEmail = a})
instance GoogleRequest
UsersSettingsSendAsSmimeInfoList where
type Rs UsersSettingsSendAsSmimeInfoList =
ListSmimeInfoResponse
type Scopes UsersSettingsSendAsSmimeInfoList =
'["https://mail.google.com/",
"https://www.googleapis.com/auth/gmail.modify",
"https://www.googleapis.com/auth/gmail.readonly",
"https://www.googleapis.com/auth/gmail.settings.basic",
"https://www.googleapis.com/auth/gmail.settings.sharing"]
requestClient UsersSettingsSendAsSmimeInfoList'{..}
= go _ussasilUserId _ussasilSendAsEmail
(Just AltJSON)
gmailService
where go
= buildClient
(Proxy ::
Proxy UsersSettingsSendAsSmimeInfoListResource)
mempty