{-# 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.Bundles.List
(
EditsBundlesListResource
, editsBundlesList
, EditsBundlesList
, eblPackageName
, eblEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsBundlesListResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"bundles" :>
QueryParam "alt" AltJSON :>
Get '[JSON] BundlesListResponse
data EditsBundlesList = EditsBundlesList'
{ _eblPackageName :: !Text
, _eblEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsBundlesList
:: Text
-> Text
-> EditsBundlesList
editsBundlesList pEblPackageName_ pEblEditId_ =
EditsBundlesList'
{ _eblPackageName = pEblPackageName_
, _eblEditId = pEblEditId_
}
eblPackageName :: Lens' EditsBundlesList Text
eblPackageName
= lens _eblPackageName
(\ s a -> s{_eblPackageName = a})
eblEditId :: Lens' EditsBundlesList Text
eblEditId
= lens _eblEditId (\ s a -> s{_eblEditId = a})
instance GoogleRequest EditsBundlesList where
type Rs EditsBundlesList = BundlesListResponse
type Scopes EditsBundlesList =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsBundlesList'{..}
= go _eblPackageName _eblEditId (Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsBundlesListResource)
mempty