{-# 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.Content.Datafeeds.Delete
(
DatafeedsDeleteResource
, datafeedsDelete
, DatafeedsDelete
, ddMerchantId
, ddDatafeedId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type DatafeedsDeleteResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"datafeeds" :>
Capture "datafeedId" (Textual Word64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data DatafeedsDelete = DatafeedsDelete'
{ _ddMerchantId :: !(Textual Word64)
, _ddDatafeedId :: !(Textual Word64)
} deriving (Eq,Show,Data,Typeable,Generic)
datafeedsDelete
:: Word64
-> Word64
-> DatafeedsDelete
datafeedsDelete pDdMerchantId_ pDdDatafeedId_ =
DatafeedsDelete'
{ _ddMerchantId = _Coerce # pDdMerchantId_
, _ddDatafeedId = _Coerce # pDdDatafeedId_
}
ddMerchantId :: Lens' DatafeedsDelete Word64
ddMerchantId
= lens _ddMerchantId (\ s a -> s{_ddMerchantId = a})
. _Coerce
ddDatafeedId :: Lens' DatafeedsDelete Word64
ddDatafeedId
= lens _ddDatafeedId (\ s a -> s{_ddDatafeedId = a})
. _Coerce
instance GoogleRequest DatafeedsDelete where
type Rs DatafeedsDelete = ()
type Scopes DatafeedsDelete =
'["https://www.googleapis.com/auth/content"]
requestClient DatafeedsDelete'{..}
= go _ddMerchantId _ddDatafeedId (Just AltJSON)
shoppingContentService
where go
= buildClient
(Proxy :: Proxy DatafeedsDeleteResource)
mempty