{-# 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.Files.List
(
SitesVersionsFilesListResource
, sitesVersionsFilesList
, SitesVersionsFilesList
, svflParent
, svflStatus
, svflXgafv
, svflUploadProtocol
, svflAccessToken
, svflUploadType
, svflPageToken
, svflPageSize
, svflCallback
) where
import Network.Google.FirebaseHosting.Types
import Network.Google.Prelude
type SitesVersionsFilesListResource =
"v1beta1" :>
Capture "parent" Text :>
"files" :>
QueryParam "status" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListVersionFilesResponse
data SitesVersionsFilesList = SitesVersionsFilesList'
{ _svflParent :: !Text
, _svflStatus :: !(Maybe Text)
, _svflXgafv :: !(Maybe Xgafv)
, _svflUploadProtocol :: !(Maybe Text)
, _svflAccessToken :: !(Maybe Text)
, _svflUploadType :: !(Maybe Text)
, _svflPageToken :: !(Maybe Text)
, _svflPageSize :: !(Maybe (Textual Int32))
, _svflCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
sitesVersionsFilesList
:: Text
-> SitesVersionsFilesList
sitesVersionsFilesList pSvflParent_ =
SitesVersionsFilesList'
{ _svflParent = pSvflParent_
, _svflStatus = Nothing
, _svflXgafv = Nothing
, _svflUploadProtocol = Nothing
, _svflAccessToken = Nothing
, _svflUploadType = Nothing
, _svflPageToken = Nothing
, _svflPageSize = Nothing
, _svflCallback = Nothing
}
svflParent :: Lens' SitesVersionsFilesList Text
svflParent
= lens _svflParent (\ s a -> s{_svflParent = a})
svflStatus :: Lens' SitesVersionsFilesList (Maybe Text)
svflStatus
= lens _svflStatus (\ s a -> s{_svflStatus = a})
svflXgafv :: Lens' SitesVersionsFilesList (Maybe Xgafv)
svflXgafv
= lens _svflXgafv (\ s a -> s{_svflXgafv = a})
svflUploadProtocol :: Lens' SitesVersionsFilesList (Maybe Text)
svflUploadProtocol
= lens _svflUploadProtocol
(\ s a -> s{_svflUploadProtocol = a})
svflAccessToken :: Lens' SitesVersionsFilesList (Maybe Text)
svflAccessToken
= lens _svflAccessToken
(\ s a -> s{_svflAccessToken = a})
svflUploadType :: Lens' SitesVersionsFilesList (Maybe Text)
svflUploadType
= lens _svflUploadType
(\ s a -> s{_svflUploadType = a})
svflPageToken :: Lens' SitesVersionsFilesList (Maybe Text)
svflPageToken
= lens _svflPageToken
(\ s a -> s{_svflPageToken = a})
svflPageSize :: Lens' SitesVersionsFilesList (Maybe Int32)
svflPageSize
= lens _svflPageSize (\ s a -> s{_svflPageSize = a})
. mapping _Coerce
svflCallback :: Lens' SitesVersionsFilesList (Maybe Text)
svflCallback
= lens _svflCallback (\ s a -> s{_svflCallback = a})
instance GoogleRequest SitesVersionsFilesList where
type Rs SitesVersionsFilesList =
ListVersionFilesResponse
type Scopes SitesVersionsFilesList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/firebase",
"https://www.googleapis.com/auth/firebase.readonly"]
requestClient SitesVersionsFilesList'{..}
= go _svflParent _svflStatus _svflXgafv
_svflUploadProtocol
_svflAccessToken
_svflUploadType
_svflPageToken
_svflPageSize
_svflCallback
(Just AltJSON)
firebaseHostingService
where go
= buildClient
(Proxy :: Proxy SitesVersionsFilesListResource)
mempty