{-# 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.Images.List
(
EditsImagesListResource
, editsImagesList
, EditsImagesList
, eilPackageName
, eilImageType
, eilLanguage
, eilEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsImagesListResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"listings" :>
Capture "language" Text :>
Capture "imageType" EditsImagesListImageType :>
QueryParam "alt" AltJSON :>
Get '[JSON] ImagesListResponse
data EditsImagesList = EditsImagesList'
{ _eilPackageName :: !Text
, _eilImageType :: !EditsImagesListImageType
, _eilLanguage :: !Text
, _eilEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsImagesList
:: Text
-> EditsImagesListImageType
-> Text
-> Text
-> EditsImagesList
editsImagesList pEilPackageName_ pEilImageType_ pEilLanguage_ pEilEditId_ =
EditsImagesList'
{ _eilPackageName = pEilPackageName_
, _eilImageType = pEilImageType_
, _eilLanguage = pEilLanguage_
, _eilEditId = pEilEditId_
}
eilPackageName :: Lens' EditsImagesList Text
eilPackageName
= lens _eilPackageName
(\ s a -> s{_eilPackageName = a})
eilImageType :: Lens' EditsImagesList EditsImagesListImageType
eilImageType
= lens _eilImageType (\ s a -> s{_eilImageType = a})
eilLanguage :: Lens' EditsImagesList Text
eilLanguage
= lens _eilLanguage (\ s a -> s{_eilLanguage = a})
eilEditId :: Lens' EditsImagesList Text
eilEditId
= lens _eilEditId (\ s a -> s{_eilEditId = a})
instance GoogleRequest EditsImagesList where
type Rs EditsImagesList = ImagesListResponse
type Scopes EditsImagesList =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsImagesList'{..}
= go _eilPackageName _eilEditId _eilLanguage
_eilImageType
(Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsImagesListResource)
mempty