{-# 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.Delete
(
EditsListingsDeleteResource
, editsListingsDelete
, EditsListingsDelete
, eldPackageName
, eldLanguage
, eldEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsListingsDeleteResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"listings" :>
Capture "language" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data EditsListingsDelete = EditsListingsDelete'
{ _eldPackageName :: !Text
, _eldLanguage :: !Text
, _eldEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsListingsDelete
:: Text
-> Text
-> Text
-> EditsListingsDelete
editsListingsDelete pEldPackageName_ pEldLanguage_ pEldEditId_ =
EditsListingsDelete'
{ _eldPackageName = pEldPackageName_
, _eldLanguage = pEldLanguage_
, _eldEditId = pEldEditId_
}
eldPackageName :: Lens' EditsListingsDelete Text
eldPackageName
= lens _eldPackageName
(\ s a -> s{_eldPackageName = a})
eldLanguage :: Lens' EditsListingsDelete Text
eldLanguage
= lens _eldLanguage (\ s a -> s{_eldLanguage = a})
eldEditId :: Lens' EditsListingsDelete Text
eldEditId
= lens _eldEditId (\ s a -> s{_eldEditId = a})
instance GoogleRequest EditsListingsDelete where
type Rs EditsListingsDelete = ()
type Scopes EditsListingsDelete =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsListingsDelete'{..}
= go _eldPackageName _eldEditId _eldLanguage
(Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsListingsDeleteResource)
mempty