{-# 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.Delete
(
EditsDeleteResource
, editsDelete
, EditsDelete
, edPackageName
, edEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsDeleteResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data EditsDelete = EditsDelete'
{ _edPackageName :: !Text
, _edEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsDelete
:: Text
-> Text
-> EditsDelete
editsDelete pEdPackageName_ pEdEditId_ =
EditsDelete'
{ _edPackageName = pEdPackageName_
, _edEditId = pEdEditId_
}
edPackageName :: Lens' EditsDelete Text
edPackageName
= lens _edPackageName
(\ s a -> s{_edPackageName = a})
edEditId :: Lens' EditsDelete Text
edEditId = lens _edEditId (\ s a -> s{_edEditId = a})
instance GoogleRequest EditsDelete where
type Rs EditsDelete = ()
type Scopes EditsDelete =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsDelete'{..}
= go _edPackageName _edEditId (Just AltJSON)
androidPublisherService
where go
= buildClient (Proxy :: Proxy EditsDeleteResource)
mempty