{-# 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.Manufacturers.Accounts.Products.Delete
(
AccountsProductsDeleteResource
, accountsProductsDelete
, AccountsProductsDelete
, apdParent
, apdXgafv
, apdUploadProtocol
, apdAccessToken
, apdUploadType
, apdName
, apdCallback
) where
import Network.Google.Manufacturers.Types
import Network.Google.Prelude
type AccountsProductsDeleteResource =
"v1" :>
Capture "parent" Text :>
"products" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data AccountsProductsDelete = AccountsProductsDelete'
{ _apdParent :: !Text
, _apdXgafv :: !(Maybe Xgafv)
, _apdUploadProtocol :: !(Maybe Text)
, _apdAccessToken :: !(Maybe Text)
, _apdUploadType :: !(Maybe Text)
, _apdName :: !Text
, _apdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsProductsDelete
:: Text
-> Text
-> AccountsProductsDelete
accountsProductsDelete pApdParent_ pApdName_ =
AccountsProductsDelete'
{ _apdParent = pApdParent_
, _apdXgafv = Nothing
, _apdUploadProtocol = Nothing
, _apdAccessToken = Nothing
, _apdUploadType = Nothing
, _apdName = pApdName_
, _apdCallback = Nothing
}
apdParent :: Lens' AccountsProductsDelete Text
apdParent
= lens _apdParent (\ s a -> s{_apdParent = a})
apdXgafv :: Lens' AccountsProductsDelete (Maybe Xgafv)
apdXgafv = lens _apdXgafv (\ s a -> s{_apdXgafv = a})
apdUploadProtocol :: Lens' AccountsProductsDelete (Maybe Text)
apdUploadProtocol
= lens _apdUploadProtocol
(\ s a -> s{_apdUploadProtocol = a})
apdAccessToken :: Lens' AccountsProductsDelete (Maybe Text)
apdAccessToken
= lens _apdAccessToken
(\ s a -> s{_apdAccessToken = a})
apdUploadType :: Lens' AccountsProductsDelete (Maybe Text)
apdUploadType
= lens _apdUploadType
(\ s a -> s{_apdUploadType = a})
apdName :: Lens' AccountsProductsDelete Text
apdName = lens _apdName (\ s a -> s{_apdName = a})
apdCallback :: Lens' AccountsProductsDelete (Maybe Text)
apdCallback
= lens _apdCallback (\ s a -> s{_apdCallback = a})
instance GoogleRequest AccountsProductsDelete where
type Rs AccountsProductsDelete = Empty
type Scopes AccountsProductsDelete =
'["https://www.googleapis.com/auth/manufacturercenter"]
requestClient AccountsProductsDelete'{..}
= go _apdParent _apdName _apdXgafv _apdUploadProtocol
_apdAccessToken
_apdUploadType
_apdCallback
(Just AltJSON)
manufacturersService
where go
= buildClient
(Proxy :: Proxy AccountsProductsDeleteResource)
mempty