{-# 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.Groups.Aliases.Delete
(
GroupsAliasesDeleteResource
, groupsAliasesDelete
, GroupsAliasesDelete
, gadGroupKey
, gadAlias
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type GroupsAliasesDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"groups" :>
Capture "groupKey" Text :>
"aliases" :>
Capture "alias" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data GroupsAliasesDelete = GroupsAliasesDelete'
{ _gadGroupKey :: !Text
, _gadAlias :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
groupsAliasesDelete
:: Text
-> Text
-> GroupsAliasesDelete
groupsAliasesDelete pGadGroupKey_ pGadAlias_ =
GroupsAliasesDelete'
{ _gadGroupKey = pGadGroupKey_
, _gadAlias = pGadAlias_
}
gadGroupKey :: Lens' GroupsAliasesDelete Text
gadGroupKey
= lens _gadGroupKey (\ s a -> s{_gadGroupKey = a})
gadAlias :: Lens' GroupsAliasesDelete Text
gadAlias = lens _gadAlias (\ s a -> s{_gadAlias = a})
instance GoogleRequest GroupsAliasesDelete where
type Rs GroupsAliasesDelete = ()
type Scopes GroupsAliasesDelete =
'["https://www.googleapis.com/auth/admin.directory.group"]
requestClient GroupsAliasesDelete'{..}
= go _gadGroupKey _gadAlias (Just AltJSON)
directoryService
where go
= buildClient
(Proxy :: Proxy GroupsAliasesDeleteResource)
mempty