{-# 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.ContentCategories.Delete
(
ContentCategoriesDeleteResource
, contentCategoriesDelete
, ContentCategoriesDelete
, ccdProFileId
, ccdId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type ContentCategoriesDeleteResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"contentCategories" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ContentCategoriesDelete = ContentCategoriesDelete'
{ _ccdProFileId :: !(Textual Int64)
, _ccdId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
contentCategoriesDelete
:: Int64
-> Int64
-> ContentCategoriesDelete
contentCategoriesDelete pCcdProFileId_ pCcdId_ =
ContentCategoriesDelete'
{ _ccdProFileId = _Coerce # pCcdProFileId_
, _ccdId = _Coerce # pCcdId_
}
ccdProFileId :: Lens' ContentCategoriesDelete Int64
ccdProFileId
= lens _ccdProFileId (\ s a -> s{_ccdProFileId = a})
. _Coerce
ccdId :: Lens' ContentCategoriesDelete Int64
ccdId
= lens _ccdId (\ s a -> s{_ccdId = a}) . _Coerce
instance GoogleRequest ContentCategoriesDelete where
type Rs ContentCategoriesDelete = ()
type Scopes ContentCategoriesDelete =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient ContentCategoriesDelete'{..}
= go _ccdProFileId _ccdId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy ContentCategoriesDeleteResource)
mempty