{-# 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.Images.Deleteall
(
EditsImagesDeleteallResource
, editsImagesDeleteall
, EditsImagesDeleteall
, ediPackageName
, ediImageType
, ediLanguage
, ediEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsImagesDeleteallResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"listings" :>
Capture "language" Text :>
Capture "imageType" EditsImagesDeleteallImageType :>
QueryParam "alt" AltJSON :>
Delete '[JSON] ImagesDeleteAllResponse
data EditsImagesDeleteall = EditsImagesDeleteall'
{ _ediPackageName :: !Text
, _ediImageType :: !EditsImagesDeleteallImageType
, _ediLanguage :: !Text
, _ediEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsImagesDeleteall
:: Text
-> EditsImagesDeleteallImageType
-> Text
-> Text
-> EditsImagesDeleteall
editsImagesDeleteall pEdiPackageName_ pEdiImageType_ pEdiLanguage_ pEdiEditId_ =
EditsImagesDeleteall'
{ _ediPackageName = pEdiPackageName_
, _ediImageType = pEdiImageType_
, _ediLanguage = pEdiLanguage_
, _ediEditId = pEdiEditId_
}
ediPackageName :: Lens' EditsImagesDeleteall Text
ediPackageName
= lens _ediPackageName
(\ s a -> s{_ediPackageName = a})
ediImageType :: Lens' EditsImagesDeleteall EditsImagesDeleteallImageType
ediImageType
= lens _ediImageType (\ s a -> s{_ediImageType = a})
ediLanguage :: Lens' EditsImagesDeleteall Text
ediLanguage
= lens _ediLanguage (\ s a -> s{_ediLanguage = a})
ediEditId :: Lens' EditsImagesDeleteall Text
ediEditId
= lens _ediEditId (\ s a -> s{_ediEditId = a})
instance GoogleRequest EditsImagesDeleteall where
type Rs EditsImagesDeleteall =
ImagesDeleteAllResponse
type Scopes EditsImagesDeleteall =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsImagesDeleteall'{..}
= go _ediPackageName _ediEditId _ediLanguage
_ediImageType
(Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsImagesDeleteallResource)
mempty