{-# 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.Delete
(
GroupsDeleteResource
, groupsDelete
, GroupsDelete
, gdGroupKey
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type GroupsDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"groups" :>
Capture "groupKey" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype GroupsDelete = GroupsDelete'
{ _gdGroupKey :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
groupsDelete
:: Text
-> GroupsDelete
groupsDelete pGdGroupKey_ =
GroupsDelete'
{ _gdGroupKey = pGdGroupKey_
}
gdGroupKey :: Lens' GroupsDelete Text
gdGroupKey
= lens _gdGroupKey (\ s a -> s{_gdGroupKey = a})
instance GoogleRequest GroupsDelete where
type Rs GroupsDelete = ()
type Scopes GroupsDelete =
'["https://www.googleapis.com/auth/admin.directory.group"]
requestClient GroupsDelete'{..}
= go _gdGroupKey (Just AltJSON) directoryService
where go
= buildClient (Proxy :: Proxy GroupsDeleteResource)
mempty