{-# 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.List
(
EditsListingsListResource
, editsListingsList
, EditsListingsList
, ellPackageName
, ellEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsListingsListResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"listings" :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListingsListResponse
data EditsListingsList = EditsListingsList'
{ _ellPackageName :: !Text
, _ellEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsListingsList
:: Text
-> Text
-> EditsListingsList
editsListingsList pEllPackageName_ pEllEditId_ =
EditsListingsList'
{ _ellPackageName = pEllPackageName_
, _ellEditId = pEllEditId_
}
ellPackageName :: Lens' EditsListingsList Text
ellPackageName
= lens _ellPackageName
(\ s a -> s{_ellPackageName = a})
ellEditId :: Lens' EditsListingsList Text
ellEditId
= lens _ellEditId (\ s a -> s{_ellEditId = a})
instance GoogleRequest EditsListingsList where
type Rs EditsListingsList = ListingsListResponse
type Scopes EditsListingsList =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsListingsList'{..}
= go _ellPackageName _ellEditId (Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsListingsListResource)
mempty