{-# 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.Update
(
EditsExpansionFilesUpdateResource
, editsExpansionFilesUpdate
, EditsExpansionFilesUpdate
, eefuPackageName
, eefuAPKVersionCode
, eefuPayload
, eefuExpansionFileType
, eefuEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsExpansionFilesUpdateResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"apks" :>
Capture "apkVersionCode" (Textual Int32) :>
"expansionFiles" :>
Capture "expansionFileType"
EditsExpansionFilesUpdateExpansionFileType
:>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ExpansionFile :>
Put '[JSON] ExpansionFile
data EditsExpansionFilesUpdate = EditsExpansionFilesUpdate'
{ _eefuPackageName :: !Text
, _eefuAPKVersionCode :: !(Textual Int32)
, _eefuPayload :: !ExpansionFile
, _eefuExpansionFileType :: !EditsExpansionFilesUpdateExpansionFileType
, _eefuEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsExpansionFilesUpdate
:: Text
-> Int32
-> ExpansionFile
-> EditsExpansionFilesUpdateExpansionFileType
-> Text
-> EditsExpansionFilesUpdate
editsExpansionFilesUpdate pEefuPackageName_ pEefuAPKVersionCode_ pEefuPayload_ pEefuExpansionFileType_ pEefuEditId_ =
EditsExpansionFilesUpdate'
{ _eefuPackageName = pEefuPackageName_
, _eefuAPKVersionCode = _Coerce # pEefuAPKVersionCode_
, _eefuPayload = pEefuPayload_
, _eefuExpansionFileType = pEefuExpansionFileType_
, _eefuEditId = pEefuEditId_
}
eefuPackageName :: Lens' EditsExpansionFilesUpdate Text
eefuPackageName
= lens _eefuPackageName
(\ s a -> s{_eefuPackageName = a})
eefuAPKVersionCode :: Lens' EditsExpansionFilesUpdate Int32
eefuAPKVersionCode
= lens _eefuAPKVersionCode
(\ s a -> s{_eefuAPKVersionCode = a})
. _Coerce
eefuPayload :: Lens' EditsExpansionFilesUpdate ExpansionFile
eefuPayload
= lens _eefuPayload (\ s a -> s{_eefuPayload = a})
eefuExpansionFileType :: Lens' EditsExpansionFilesUpdate EditsExpansionFilesUpdateExpansionFileType
eefuExpansionFileType
= lens _eefuExpansionFileType
(\ s a -> s{_eefuExpansionFileType = a})
eefuEditId :: Lens' EditsExpansionFilesUpdate Text
eefuEditId
= lens _eefuEditId (\ s a -> s{_eefuEditId = a})
instance GoogleRequest EditsExpansionFilesUpdate
where
type Rs EditsExpansionFilesUpdate = ExpansionFile
type Scopes EditsExpansionFilesUpdate =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsExpansionFilesUpdate'{..}
= go _eefuPackageName _eefuEditId _eefuAPKVersionCode
_eefuExpansionFileType
(Just AltJSON)
_eefuPayload
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsExpansionFilesUpdateResource)
mempty