{-# 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.ExpansionFiles.Get
(
EditsExpansionFilesGetResource
, editsExpansionFilesGet
, EditsExpansionFilesGet
, eefgPackageName
, eefgAPKVersionCode
, eefgExpansionFileType
, eefgEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsExpansionFilesGetResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"apks" :>
Capture "apkVersionCode" (Textual Int32) :>
"expansionFiles" :>
Capture "expansionFileType"
EditsExpansionFilesGetExpansionFileType
:>
QueryParam "alt" AltJSON :> Get '[JSON] ExpansionFile
data EditsExpansionFilesGet = EditsExpansionFilesGet'
{ _eefgPackageName :: !Text
, _eefgAPKVersionCode :: !(Textual Int32)
, _eefgExpansionFileType :: !EditsExpansionFilesGetExpansionFileType
, _eefgEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsExpansionFilesGet
:: Text
-> Int32
-> EditsExpansionFilesGetExpansionFileType
-> Text
-> EditsExpansionFilesGet
editsExpansionFilesGet pEefgPackageName_ pEefgAPKVersionCode_ pEefgExpansionFileType_ pEefgEditId_ =
EditsExpansionFilesGet'
{ _eefgPackageName = pEefgPackageName_
, _eefgAPKVersionCode = _Coerce # pEefgAPKVersionCode_
, _eefgExpansionFileType = pEefgExpansionFileType_
, _eefgEditId = pEefgEditId_
}
eefgPackageName :: Lens' EditsExpansionFilesGet Text
eefgPackageName
= lens _eefgPackageName
(\ s a -> s{_eefgPackageName = a})
eefgAPKVersionCode :: Lens' EditsExpansionFilesGet Int32
eefgAPKVersionCode
= lens _eefgAPKVersionCode
(\ s a -> s{_eefgAPKVersionCode = a})
. _Coerce
eefgExpansionFileType :: Lens' EditsExpansionFilesGet EditsExpansionFilesGetExpansionFileType
eefgExpansionFileType
= lens _eefgExpansionFileType
(\ s a -> s{_eefgExpansionFileType = a})
eefgEditId :: Lens' EditsExpansionFilesGet Text
eefgEditId
= lens _eefgEditId (\ s a -> s{_eefgEditId = a})
instance GoogleRequest EditsExpansionFilesGet where
type Rs EditsExpansionFilesGet = ExpansionFile
type Scopes EditsExpansionFilesGet =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsExpansionFilesGet'{..}
= go _eefgPackageName _eefgEditId _eefgAPKVersionCode
_eefgExpansionFileType
(Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsExpansionFilesGetResource)
mempty