{-# 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.FirebaseHosting.Sites.Versions.PopulateFiles
(
SitesVersionsPopulateFilesResource
, sitesVersionsPopulateFiles
, SitesVersionsPopulateFiles
, svpfParent
, svpfXgafv
, svpfUploadProtocol
, svpfAccessToken
, svpfUploadType
, svpfPayload
, svpfCallback
) where
import Network.Google.FirebaseHosting.Types
import Network.Google.Prelude
type SitesVersionsPopulateFilesResource =
"v1beta1" :>
CaptureMode "parent" "populateFiles" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] PopulateVersionFilesRequest :>
Post '[JSON] PopulateVersionFilesResponse
data SitesVersionsPopulateFiles = SitesVersionsPopulateFiles'
{ _svpfParent :: !Text
, _svpfXgafv :: !(Maybe Xgafv)
, _svpfUploadProtocol :: !(Maybe Text)
, _svpfAccessToken :: !(Maybe Text)
, _svpfUploadType :: !(Maybe Text)
, _svpfPayload :: !PopulateVersionFilesRequest
, _svpfCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
sitesVersionsPopulateFiles
:: Text
-> PopulateVersionFilesRequest
-> SitesVersionsPopulateFiles
sitesVersionsPopulateFiles pSvpfParent_ pSvpfPayload_ =
SitesVersionsPopulateFiles'
{ _svpfParent = pSvpfParent_
, _svpfXgafv = Nothing
, _svpfUploadProtocol = Nothing
, _svpfAccessToken = Nothing
, _svpfUploadType = Nothing
, _svpfPayload = pSvpfPayload_
, _svpfCallback = Nothing
}
svpfParent :: Lens' SitesVersionsPopulateFiles Text
svpfParent
= lens _svpfParent (\ s a -> s{_svpfParent = a})
svpfXgafv :: Lens' SitesVersionsPopulateFiles (Maybe Xgafv)
svpfXgafv
= lens _svpfXgafv (\ s a -> s{_svpfXgafv = a})
svpfUploadProtocol :: Lens' SitesVersionsPopulateFiles (Maybe Text)
svpfUploadProtocol
= lens _svpfUploadProtocol
(\ s a -> s{_svpfUploadProtocol = a})
svpfAccessToken :: Lens' SitesVersionsPopulateFiles (Maybe Text)
svpfAccessToken
= lens _svpfAccessToken
(\ s a -> s{_svpfAccessToken = a})
svpfUploadType :: Lens' SitesVersionsPopulateFiles (Maybe Text)
svpfUploadType
= lens _svpfUploadType
(\ s a -> s{_svpfUploadType = a})
svpfPayload :: Lens' SitesVersionsPopulateFiles PopulateVersionFilesRequest
svpfPayload
= lens _svpfPayload (\ s a -> s{_svpfPayload = a})
svpfCallback :: Lens' SitesVersionsPopulateFiles (Maybe Text)
svpfCallback
= lens _svpfCallback (\ s a -> s{_svpfCallback = a})
instance GoogleRequest SitesVersionsPopulateFiles
where
type Rs SitesVersionsPopulateFiles =
PopulateVersionFilesResponse
type Scopes SitesVersionsPopulateFiles =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/firebase"]
requestClient SitesVersionsPopulateFiles'{..}
= go _svpfParent _svpfXgafv _svpfUploadProtocol
_svpfAccessToken
_svpfUploadType
_svpfCallback
(Just AltJSON)
_svpfPayload
firebaseHostingService
where go
= buildClient
(Proxy :: Proxy SitesVersionsPopulateFilesResource)
mempty