{-# 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.Products.Delete
(
ProductsDeleteResource
, productsDelete
, ProductsDelete
, proMerchantId
, proProductId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type ProductsDeleteResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"products" :>
Capture "productId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ProductsDelete = ProductsDelete'
{ _proMerchantId :: !(Textual Word64)
, _proProductId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
productsDelete
:: Word64
-> Text
-> ProductsDelete
productsDelete pProMerchantId_ pProProductId_ =
ProductsDelete'
{ _proMerchantId = _Coerce # pProMerchantId_
, _proProductId = pProProductId_
}
proMerchantId :: Lens' ProductsDelete Word64
proMerchantId
= lens _proMerchantId
(\ s a -> s{_proMerchantId = a})
. _Coerce
proProductId :: Lens' ProductsDelete Text
proProductId
= lens _proProductId (\ s a -> s{_proProductId = a})
instance GoogleRequest ProductsDelete where
type Rs ProductsDelete = ()
type Scopes ProductsDelete =
'["https://www.googleapis.com/auth/content"]
requestClient ProductsDelete'{..}
= go _proMerchantId _proProductId (Just AltJSON)
shoppingContentService
where go
= buildClient (Proxy :: Proxy ProductsDeleteResource)
mempty