{-# 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.Update
(
EditsListingsUpdateResource
, editsListingsUpdate
, EditsListingsUpdate
, eluPackageName
, eluPayload
, eluLanguage
, eluEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsListingsUpdateResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"listings" :>
Capture "language" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Listing :> Put '[JSON] Listing
data EditsListingsUpdate = EditsListingsUpdate'
{ _eluPackageName :: !Text
, _eluPayload :: !Listing
, _eluLanguage :: !Text
, _eluEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsListingsUpdate
:: Text
-> Listing
-> Text
-> Text
-> EditsListingsUpdate
editsListingsUpdate pEluPackageName_ pEluPayload_ pEluLanguage_ pEluEditId_ =
EditsListingsUpdate'
{ _eluPackageName = pEluPackageName_
, _eluPayload = pEluPayload_
, _eluLanguage = pEluLanguage_
, _eluEditId = pEluEditId_
}
eluPackageName :: Lens' EditsListingsUpdate Text
eluPackageName
= lens _eluPackageName
(\ s a -> s{_eluPackageName = a})
eluPayload :: Lens' EditsListingsUpdate Listing
eluPayload
= lens _eluPayload (\ s a -> s{_eluPayload = a})
eluLanguage :: Lens' EditsListingsUpdate Text
eluLanguage
= lens _eluLanguage (\ s a -> s{_eluLanguage = a})
eluEditId :: Lens' EditsListingsUpdate Text
eluEditId
= lens _eluEditId (\ s a -> s{_eluEditId = a})
instance GoogleRequest EditsListingsUpdate where
type Rs EditsListingsUpdate = Listing
type Scopes EditsListingsUpdate =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsListingsUpdate'{..}
= go _eluPackageName _eluEditId _eluLanguage
(Just AltJSON)
_eluPayload
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsListingsUpdateResource)
mempty