{-# 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.Delete
(
EditsImagesDeleteResource
, editsImagesDelete
, EditsImagesDelete
, eidPackageName
, eidImageType
, eidImageId
, eidLanguage
, eidEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsImagesDeleteResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"listings" :>
Capture "language" Text :>
Capture "imageType" EditsImagesDeleteImageType :>
Capture "imageId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data EditsImagesDelete = EditsImagesDelete'
{ _eidPackageName :: !Text
, _eidImageType :: !EditsImagesDeleteImageType
, _eidImageId :: !Text
, _eidLanguage :: !Text
, _eidEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsImagesDelete
:: Text
-> EditsImagesDeleteImageType
-> Text
-> Text
-> Text
-> EditsImagesDelete
editsImagesDelete pEidPackageName_ pEidImageType_ pEidImageId_ pEidLanguage_ pEidEditId_ =
EditsImagesDelete'
{ _eidPackageName = pEidPackageName_
, _eidImageType = pEidImageType_
, _eidImageId = pEidImageId_
, _eidLanguage = pEidLanguage_
, _eidEditId = pEidEditId_
}
eidPackageName :: Lens' EditsImagesDelete Text
eidPackageName
= lens _eidPackageName
(\ s a -> s{_eidPackageName = a})
eidImageType :: Lens' EditsImagesDelete EditsImagesDeleteImageType
eidImageType
= lens _eidImageType (\ s a -> s{_eidImageType = a})
eidImageId :: Lens' EditsImagesDelete Text
eidImageId
= lens _eidImageId (\ s a -> s{_eidImageId = a})
eidLanguage :: Lens' EditsImagesDelete Text
eidLanguage
= lens _eidLanguage (\ s a -> s{_eidLanguage = a})
eidEditId :: Lens' EditsImagesDelete Text
eidEditId
= lens _eidEditId (\ s a -> s{_eidEditId = a})
instance GoogleRequest EditsImagesDelete where
type Rs EditsImagesDelete = ()
type Scopes EditsImagesDelete =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsImagesDelete'{..}
= go _eidPackageName _eidEditId _eidLanguage
_eidImageType
_eidImageId
(Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsImagesDeleteResource)
mempty