{-# 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.Filters.Delete
(
UsersSettingsFiltersDeleteResource
, usersSettingsFiltersDelete
, UsersSettingsFiltersDelete
, usfdUserId
, usfdId
) where
import Network.Google.Gmail.Types
import Network.Google.Prelude
type UsersSettingsFiltersDeleteResource =
"gmail" :>
"v1" :>
"users" :>
Capture "userId" Text :>
"settings" :>
"filters" :>
Capture "id" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data UsersSettingsFiltersDelete = UsersSettingsFiltersDelete'
{ _usfdUserId :: !Text
, _usfdId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
usersSettingsFiltersDelete
:: Text
-> UsersSettingsFiltersDelete
usersSettingsFiltersDelete pUsfdId_ =
UsersSettingsFiltersDelete'
{ _usfdUserId = "me"
, _usfdId = pUsfdId_
}
usfdUserId :: Lens' UsersSettingsFiltersDelete Text
usfdUserId
= lens _usfdUserId (\ s a -> s{_usfdUserId = a})
usfdId :: Lens' UsersSettingsFiltersDelete Text
usfdId = lens _usfdId (\ s a -> s{_usfdId = a})
instance GoogleRequest UsersSettingsFiltersDelete
where
type Rs UsersSettingsFiltersDelete = ()
type Scopes UsersSettingsFiltersDelete =
'["https://www.googleapis.com/auth/gmail.settings.basic"]
requestClient UsersSettingsFiltersDelete'{..}
= go _usfdUserId _usfdId (Just AltJSON) gmailService
where go
= buildClient
(Proxy :: Proxy UsersSettingsFiltersDeleteResource)
mempty