{-# 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.Patch
(
EditsListingsPatchResource
, editsListingsPatch
, EditsListingsPatch
, elpPackageName
, elpPayload
, elpLanguage
, elpEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsListingsPatchResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"listings" :>
Capture "language" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Listing :> Patch '[JSON] Listing
data EditsListingsPatch = EditsListingsPatch'
{ _elpPackageName :: !Text
, _elpPayload :: !Listing
, _elpLanguage :: !Text
, _elpEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsListingsPatch
:: Text
-> Listing
-> Text
-> Text
-> EditsListingsPatch
editsListingsPatch pElpPackageName_ pElpPayload_ pElpLanguage_ pElpEditId_ =
EditsListingsPatch'
{ _elpPackageName = pElpPackageName_
, _elpPayload = pElpPayload_
, _elpLanguage = pElpLanguage_
, _elpEditId = pElpEditId_
}
elpPackageName :: Lens' EditsListingsPatch Text
elpPackageName
= lens _elpPackageName
(\ s a -> s{_elpPackageName = a})
elpPayload :: Lens' EditsListingsPatch Listing
elpPayload
= lens _elpPayload (\ s a -> s{_elpPayload = a})
elpLanguage :: Lens' EditsListingsPatch Text
elpLanguage
= lens _elpLanguage (\ s a -> s{_elpLanguage = a})
elpEditId :: Lens' EditsListingsPatch Text
elpEditId
= lens _elpEditId (\ s a -> s{_elpEditId = a})
instance GoogleRequest EditsListingsPatch where
type Rs EditsListingsPatch = Listing
type Scopes EditsListingsPatch =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsListingsPatch'{..}
= go _elpPackageName _elpEditId _elpLanguage
(Just AltJSON)
_elpPayload
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsListingsPatchResource)
mempty