{-# 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.Get
(
EditsTestersGetResource
, editsTestersGet
, EditsTestersGet
, etgTrack
, etgPackageName
, etgEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsTestersGetResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"testers" :>
Capture "track" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Testers
data EditsTestersGet = EditsTestersGet'
{ _etgTrack :: !Text
, _etgPackageName :: !Text
, _etgEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsTestersGet
:: Text
-> Text
-> Text
-> EditsTestersGet
editsTestersGet pEtgTrack_ pEtgPackageName_ pEtgEditId_ =
EditsTestersGet'
{ _etgTrack = pEtgTrack_
, _etgPackageName = pEtgPackageName_
, _etgEditId = pEtgEditId_
}
etgTrack :: Lens' EditsTestersGet Text
etgTrack = lens _etgTrack (\ s a -> s{_etgTrack = a})
etgPackageName :: Lens' EditsTestersGet Text
etgPackageName
= lens _etgPackageName
(\ s a -> s{_etgPackageName = a})
etgEditId :: Lens' EditsTestersGet Text
etgEditId
= lens _etgEditId (\ s a -> s{_etgEditId = a})
instance GoogleRequest EditsTestersGet where
type Rs EditsTestersGet = Testers
type Scopes EditsTestersGet =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsTestersGet'{..}
= go _etgPackageName _etgEditId _etgTrack
(Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsTestersGetResource)
mempty