{-# 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.RoleAssignments.Delete
(
RoleAssignmentsDeleteResource
, roleAssignmentsDelete
, RoleAssignmentsDelete
, radCustomer
, radRoleAssignmentId
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type RoleAssignmentsDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"customer" :>
Capture "customer" Text :>
"roleassignments" :>
Capture "roleAssignmentId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data RoleAssignmentsDelete = RoleAssignmentsDelete'
{ _radCustomer :: !Text
, _radRoleAssignmentId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
roleAssignmentsDelete
:: Text
-> Text
-> RoleAssignmentsDelete
roleAssignmentsDelete pRadCustomer_ pRadRoleAssignmentId_ =
RoleAssignmentsDelete'
{ _radCustomer = pRadCustomer_
, _radRoleAssignmentId = pRadRoleAssignmentId_
}
radCustomer :: Lens' RoleAssignmentsDelete Text
radCustomer
= lens _radCustomer (\ s a -> s{_radCustomer = a})
radRoleAssignmentId :: Lens' RoleAssignmentsDelete Text
radRoleAssignmentId
= lens _radRoleAssignmentId
(\ s a -> s{_radRoleAssignmentId = a})
instance GoogleRequest RoleAssignmentsDelete where
type Rs RoleAssignmentsDelete = ()
type Scopes RoleAssignmentsDelete =
'["https://www.googleapis.com/auth/admin.directory.rolemanagement"]
requestClient RoleAssignmentsDelete'{..}
= go _radCustomer _radRoleAssignmentId (Just AltJSON)
directoryService
where go
= buildClient
(Proxy :: Proxy RoleAssignmentsDeleteResource)
mempty