{-# 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.Directory.Users.Aliases.Delete
(
UsersAliasesDeleteResource
, usersAliasesDelete
, UsersAliasesDelete
, uadAlias
, uadUserKey
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type UsersAliasesDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"users" :>
Capture "userKey" Text :>
"aliases" :>
Capture "alias" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data UsersAliasesDelete = UsersAliasesDelete'
{ _uadAlias :: !Text
, _uadUserKey :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
usersAliasesDelete
:: Text
-> Text
-> UsersAliasesDelete
usersAliasesDelete pUadAlias_ pUadUserKey_ =
UsersAliasesDelete'
{ _uadAlias = pUadAlias_
, _uadUserKey = pUadUserKey_
}
uadAlias :: Lens' UsersAliasesDelete Text
uadAlias = lens _uadAlias (\ s a -> s{_uadAlias = a})
uadUserKey :: Lens' UsersAliasesDelete Text
uadUserKey
= lens _uadUserKey (\ s a -> s{_uadUserKey = a})
instance GoogleRequest UsersAliasesDelete where
type Rs UsersAliasesDelete = ()
type Scopes UsersAliasesDelete =
'["https://www.googleapis.com/auth/admin.directory.user",
"https://www.googleapis.com/auth/admin.directory.user.alias"]
requestClient UsersAliasesDelete'{..}
= go _uadUserKey _uadAlias (Just AltJSON)
directoryService
where go
= buildClient
(Proxy :: Proxy UsersAliasesDeleteResource)
mempty