{-# 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.Delete
(
UsersSettingsSendAsSmimeInfoDeleteResource
, usersSettingsSendAsSmimeInfoDelete
, UsersSettingsSendAsSmimeInfoDelete
, ussasidUserId
, ussasidSendAsEmail
, ussasidId
) where
import Network.Google.Gmail.Types
import Network.Google.Prelude
type UsersSettingsSendAsSmimeInfoDeleteResource =
"gmail" :>
"v1" :>
"users" :>
Capture "userId" Text :>
"settings" :>
"sendAs" :>
Capture "sendAsEmail" Text :>
"smimeInfo" :>
Capture "id" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data UsersSettingsSendAsSmimeInfoDelete = UsersSettingsSendAsSmimeInfoDelete'
{ _ussasidUserId :: !Text
, _ussasidSendAsEmail :: !Text
, _ussasidId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
usersSettingsSendAsSmimeInfoDelete
:: Text
-> Text
-> UsersSettingsSendAsSmimeInfoDelete
usersSettingsSendAsSmimeInfoDelete pUssasidSendAsEmail_ pUssasidId_ =
UsersSettingsSendAsSmimeInfoDelete'
{ _ussasidUserId = "me"
, _ussasidSendAsEmail = pUssasidSendAsEmail_
, _ussasidId = pUssasidId_
}
ussasidUserId :: Lens' UsersSettingsSendAsSmimeInfoDelete Text
ussasidUserId
= lens _ussasidUserId
(\ s a -> s{_ussasidUserId = a})
ussasidSendAsEmail :: Lens' UsersSettingsSendAsSmimeInfoDelete Text
ussasidSendAsEmail
= lens _ussasidSendAsEmail
(\ s a -> s{_ussasidSendAsEmail = a})
ussasidId :: Lens' UsersSettingsSendAsSmimeInfoDelete Text
ussasidId
= lens _ussasidId (\ s a -> s{_ussasidId = a})
instance GoogleRequest
UsersSettingsSendAsSmimeInfoDelete where
type Rs UsersSettingsSendAsSmimeInfoDelete = ()
type Scopes UsersSettingsSendAsSmimeInfoDelete =
'["https://www.googleapis.com/auth/gmail.settings.basic",
"https://www.googleapis.com/auth/gmail.settings.sharing"]
requestClient UsersSettingsSendAsSmimeInfoDelete'{..}
= go _ussasidUserId _ussasidSendAsEmail _ussasidId
(Just AltJSON)
gmailService
where go
= buildClient
(Proxy ::
Proxy UsersSettingsSendAsSmimeInfoDeleteResource)
mempty