{-# 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.DFAReporting.UserRoles.Delete
(
UserRolesDeleteResource
, userRolesDelete
, UserRolesDelete
, urdProFileId
, urdId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type UserRolesDeleteResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"userRoles" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data UserRolesDelete = UserRolesDelete'
{ _urdProFileId :: !(Textual Int64)
, _urdId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
userRolesDelete
:: Int64
-> Int64
-> UserRolesDelete
userRolesDelete pUrdProFileId_ pUrdId_ =
UserRolesDelete'
{ _urdProFileId = _Coerce # pUrdProFileId_
, _urdId = _Coerce # pUrdId_
}
urdProFileId :: Lens' UserRolesDelete Int64
urdProFileId
= lens _urdProFileId (\ s a -> s{_urdProFileId = a})
. _Coerce
urdId :: Lens' UserRolesDelete Int64
urdId
= lens _urdId (\ s a -> s{_urdId = a}) . _Coerce
instance GoogleRequest UserRolesDelete where
type Rs UserRolesDelete = ()
type Scopes UserRolesDelete =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient UserRolesDelete'{..}
= go _urdProFileId _urdId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy UserRolesDeleteResource)
mempty