{-# 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.Edits.Listings.Deleteall
(
EditsListingsDeleteallResource
, editsListingsDeleteall
, EditsListingsDeleteall
, eldlPackageName
, eldlEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsListingsDeleteallResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"listings" :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data EditsListingsDeleteall = EditsListingsDeleteall'
{ _eldlPackageName :: !Text
, _eldlEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsListingsDeleteall
:: Text
-> Text
-> EditsListingsDeleteall
editsListingsDeleteall pEldlPackageName_ pEldlEditId_ =
EditsListingsDeleteall'
{ _eldlPackageName = pEldlPackageName_
, _eldlEditId = pEldlEditId_
}
eldlPackageName :: Lens' EditsListingsDeleteall Text
eldlPackageName
= lens _eldlPackageName
(\ s a -> s{_eldlPackageName = a})
eldlEditId :: Lens' EditsListingsDeleteall Text
eldlEditId
= lens _eldlEditId (\ s a -> s{_eldlEditId = a})
instance GoogleRequest EditsListingsDeleteall where
type Rs EditsListingsDeleteall = ()
type Scopes EditsListingsDeleteall =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsListingsDeleteall'{..}
= go _eldlPackageName _eldlEditId (Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsListingsDeleteallResource)
mempty