{-# 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.Members.Delete
(
MembersDeleteResource
, membersDelete
, MembersDelete
, mdMemberKey
, mdGroupKey
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type MembersDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"groups" :>
Capture "groupKey" Text :>
"members" :>
Capture "memberKey" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data MembersDelete = MembersDelete'
{ _mdMemberKey :: !Text
, _mdGroupKey :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
membersDelete
:: Text
-> Text
-> MembersDelete
membersDelete pMdMemberKey_ pMdGroupKey_ =
MembersDelete'
{ _mdMemberKey = pMdMemberKey_
, _mdGroupKey = pMdGroupKey_
}
mdMemberKey :: Lens' MembersDelete Text
mdMemberKey
= lens _mdMemberKey (\ s a -> s{_mdMemberKey = a})
mdGroupKey :: Lens' MembersDelete Text
mdGroupKey
= lens _mdGroupKey (\ s a -> s{_mdGroupKey = a})
instance GoogleRequest MembersDelete where
type Rs MembersDelete = ()
type Scopes MembersDelete =
'["https://www.googleapis.com/auth/admin.directory.group",
"https://www.googleapis.com/auth/admin.directory.group.member"]
requestClient MembersDelete'{..}
= go _mdGroupKey _mdMemberKey (Just AltJSON)
directoryService
where go
= buildClient (Proxy :: Proxy MembersDeleteResource)
mempty