{-# 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.APKs.List
(
EditsAPKsListResource
, editsAPKsList
, EditsAPKsList
, eapklPackageName
, eapklEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsAPKsListResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"apks" :>
QueryParam "alt" AltJSON :>
Get '[JSON] APKsListResponse
data EditsAPKsList = EditsAPKsList'
{ _eapklPackageName :: !Text
, _eapklEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsAPKsList
:: Text
-> Text
-> EditsAPKsList
editsAPKsList pEapklPackageName_ pEapklEditId_ =
EditsAPKsList'
{ _eapklPackageName = pEapklPackageName_
, _eapklEditId = pEapklEditId_
}
eapklPackageName :: Lens' EditsAPKsList Text
eapklPackageName
= lens _eapklPackageName
(\ s a -> s{_eapklPackageName = a})
eapklEditId :: Lens' EditsAPKsList Text
eapklEditId
= lens _eapklEditId (\ s a -> s{_eapklEditId = a})
instance GoogleRequest EditsAPKsList where
type Rs EditsAPKsList = APKsListResponse
type Scopes EditsAPKsList =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsAPKsList'{..}
= go _eapklPackageName _eapklEditId (Just AltJSON)
androidPublisherService
where go
= buildClient (Proxy :: Proxy EditsAPKsListResource)
mempty