{-# 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.AndroidPublisher.InAppProducts.Delete
(
InAppProductsDeleteResource
, inAppProductsDelete
, InAppProductsDelete
, iapdPackageName
, iapdSKU
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type InAppProductsDeleteResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"inappproducts" :>
Capture "sku" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data InAppProductsDelete = InAppProductsDelete'
{ _iapdPackageName :: !Text
, _iapdSKU :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
inAppProductsDelete
:: Text
-> Text
-> InAppProductsDelete
inAppProductsDelete pIapdPackageName_ pIapdSKU_ =
InAppProductsDelete'
{ _iapdPackageName = pIapdPackageName_
, _iapdSKU = pIapdSKU_
}
iapdPackageName :: Lens' InAppProductsDelete Text
iapdPackageName
= lens _iapdPackageName
(\ s a -> s{_iapdPackageName = a})
iapdSKU :: Lens' InAppProductsDelete Text
iapdSKU = lens _iapdSKU (\ s a -> s{_iapdSKU = a})
instance GoogleRequest InAppProductsDelete where
type Rs InAppProductsDelete = ()
type Scopes InAppProductsDelete =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient InAppProductsDelete'{..}
= go _iapdPackageName _iapdSKU (Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy InAppProductsDeleteResource)
mempty