{-# 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.Get
(
EditsListingsGetResource
, editsListingsGet
, EditsListingsGet
, elgPackageName
, elgLanguage
, elgEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsListingsGetResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"listings" :>
Capture "language" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Listing
data EditsListingsGet = EditsListingsGet'
{ _elgPackageName :: !Text
, _elgLanguage :: !Text
, _elgEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsListingsGet
:: Text
-> Text
-> Text
-> EditsListingsGet
editsListingsGet pElgPackageName_ pElgLanguage_ pElgEditId_ =
EditsListingsGet'
{ _elgPackageName = pElgPackageName_
, _elgLanguage = pElgLanguage_
, _elgEditId = pElgEditId_
}
elgPackageName :: Lens' EditsListingsGet Text
elgPackageName
= lens _elgPackageName
(\ s a -> s{_elgPackageName = a})
elgLanguage :: Lens' EditsListingsGet Text
elgLanguage
= lens _elgLanguage (\ s a -> s{_elgLanguage = a})
elgEditId :: Lens' EditsListingsGet Text
elgEditId
= lens _elgEditId (\ s a -> s{_elgEditId = a})
instance GoogleRequest EditsListingsGet where
type Rs EditsListingsGet = Listing
type Scopes EditsListingsGet =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsListingsGet'{..}
= go _elgPackageName _elgEditId _elgLanguage
(Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsListingsGetResource)
mempty