{-# 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.Testers.Update
(
EditsTestersUpdateResource
, editsTestersUpdate
, EditsTestersUpdate
, etutTrack
, etutPackageName
, etutPayload
, etutEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsTestersUpdateResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"testers" :>
Capture "track" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Testers :> Put '[JSON] Testers
data EditsTestersUpdate = EditsTestersUpdate'
{ _etutTrack :: !Text
, _etutPackageName :: !Text
, _etutPayload :: !Testers
, _etutEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsTestersUpdate
:: Text
-> Text
-> Testers
-> Text
-> EditsTestersUpdate
editsTestersUpdate pEtutTrack_ pEtutPackageName_ pEtutPayload_ pEtutEditId_ =
EditsTestersUpdate'
{ _etutTrack = pEtutTrack_
, _etutPackageName = pEtutPackageName_
, _etutPayload = pEtutPayload_
, _etutEditId = pEtutEditId_
}
etutTrack :: Lens' EditsTestersUpdate Text
etutTrack
= lens _etutTrack (\ s a -> s{_etutTrack = a})
etutPackageName :: Lens' EditsTestersUpdate Text
etutPackageName
= lens _etutPackageName
(\ s a -> s{_etutPackageName = a})
etutPayload :: Lens' EditsTestersUpdate Testers
etutPayload
= lens _etutPayload (\ s a -> s{_etutPayload = a})
etutEditId :: Lens' EditsTestersUpdate Text
etutEditId
= lens _etutEditId (\ s a -> s{_etutEditId = a})
instance GoogleRequest EditsTestersUpdate where
type Rs EditsTestersUpdate = Testers
type Scopes EditsTestersUpdate =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsTestersUpdate'{..}
= go _etutPackageName _etutEditId _etutTrack
(Just AltJSON)
_etutPayload
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsTestersUpdateResource)
mempty