{-# 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.Roles.Delete
(
RolesDeleteResource
, rolesDelete
, RolesDelete
, rdRoleId
, rdCustomer
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type RolesDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"customer" :>
Capture "customer" Text :>
"roles" :>
Capture "roleId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data RolesDelete = RolesDelete'
{ _rdRoleId :: !Text
, _rdCustomer :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
rolesDelete
:: Text
-> Text
-> RolesDelete
rolesDelete pRdRoleId_ pRdCustomer_ =
RolesDelete'
{ _rdRoleId = pRdRoleId_
, _rdCustomer = pRdCustomer_
}
rdRoleId :: Lens' RolesDelete Text
rdRoleId = lens _rdRoleId (\ s a -> s{_rdRoleId = a})
rdCustomer :: Lens' RolesDelete Text
rdCustomer
= lens _rdCustomer (\ s a -> s{_rdCustomer = a})
instance GoogleRequest RolesDelete where
type Rs RolesDelete = ()
type Scopes RolesDelete =
'["https://www.googleapis.com/auth/admin.directory.rolemanagement"]
requestClient RolesDelete'{..}
= go _rdCustomer _rdRoleId (Just AltJSON)
directoryService
where go
= buildClient (Proxy :: Proxy RolesDeleteResource)
mempty