{-# 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.HasMember
(
MembersHasMemberResource
, membersHasMember'
, MembersHasMember'
, mhmMemberKey
, mhmGroupKey
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type MembersHasMemberResource =
"admin" :>
"directory" :>
"v1" :>
"groups" :>
Capture "groupKey" Text :>
"hasMember" :>
Capture "memberKey" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] MembersHasMember
data MembersHasMember' = MembersHasMember''
{ _mhmMemberKey :: !Text
, _mhmGroupKey :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
membersHasMember'
:: Text
-> Text
-> MembersHasMember'
membersHasMember' pMhmMemberKey_ pMhmGroupKey_ =
MembersHasMember''
{ _mhmMemberKey = pMhmMemberKey_
, _mhmGroupKey = pMhmGroupKey_
}
mhmMemberKey :: Lens' MembersHasMember' Text
mhmMemberKey
= lens _mhmMemberKey (\ s a -> s{_mhmMemberKey = a})
mhmGroupKey :: Lens' MembersHasMember' Text
mhmGroupKey
= lens _mhmGroupKey (\ s a -> s{_mhmGroupKey = a})
instance GoogleRequest MembersHasMember' where
type Rs MembersHasMember' = MembersHasMember
type Scopes MembersHasMember' =
'["https://www.googleapis.com/auth/admin.directory.group",
"https://www.googleapis.com/auth/admin.directory.group.member",
"https://www.googleapis.com/auth/admin.directory.group.member.readonly",
"https://www.googleapis.com/auth/admin.directory.group.readonly"]
requestClient MembersHasMember''{..}
= go _mhmGroupKey _mhmMemberKey (Just AltJSON)
directoryService
where go
= buildClient
(Proxy :: Proxy MembersHasMemberResource)
mempty