{-# 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.Accounts.Delete
(
AccountsDeleteResource
, accountsDelete
, AccountsDelete
, adMerchantId
, adForce
, adAccountId
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type AccountsDeleteResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"accounts" :>
Capture "accountId" (Textual Word64) :>
QueryParam "force" Bool :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data AccountsDelete = AccountsDelete'
{ _adMerchantId :: !(Textual Word64)
, _adForce :: !Bool
, _adAccountId :: !(Textual Word64)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsDelete
:: Word64
-> Word64
-> AccountsDelete
accountsDelete pAdMerchantId_ pAdAccountId_ =
AccountsDelete'
{ _adMerchantId = _Coerce # pAdMerchantId_
, _adForce = False
, _adAccountId = _Coerce # pAdAccountId_
}
adMerchantId :: Lens' AccountsDelete Word64
adMerchantId
= lens _adMerchantId (\ s a -> s{_adMerchantId = a})
. _Coerce
adForce :: Lens' AccountsDelete Bool
adForce = lens _adForce (\ s a -> s{_adForce = a})
adAccountId :: Lens' AccountsDelete Word64
adAccountId
= lens _adAccountId (\ s a -> s{_adAccountId = a}) .
_Coerce
instance GoogleRequest AccountsDelete where
type Rs AccountsDelete = ()
type Scopes AccountsDelete =
'["https://www.googleapis.com/auth/content"]
requestClient AccountsDelete'{..}
= go _adMerchantId _adAccountId (Just _adForce)
(Just AltJSON)
shoppingContentService
where go
= buildClient (Proxy :: Proxy AccountsDeleteResource)
mempty