{-# 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.Releases.List
(
SitesReleasesListResource
, sitesReleasesList
, SitesReleasesList
, srlParent
, srlXgafv
, srlUploadProtocol
, srlAccessToken
, srlUploadType
, srlPageToken
, srlPageSize
, srlCallback
) where
import Network.Google.FirebaseHosting.Types
import Network.Google.Prelude
type SitesReleasesListResource =
"v1beta1" :>
Capture "parent" Text :>
"releases" :>
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] ListReleasesResponse
data SitesReleasesList = SitesReleasesList'
{ _srlParent :: !Text
, _srlXgafv :: !(Maybe Xgafv)
, _srlUploadProtocol :: !(Maybe Text)
, _srlAccessToken :: !(Maybe Text)
, _srlUploadType :: !(Maybe Text)
, _srlPageToken :: !(Maybe Text)
, _srlPageSize :: !(Maybe (Textual Int32))
, _srlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
sitesReleasesList
:: Text
-> SitesReleasesList
sitesReleasesList pSrlParent_ =
SitesReleasesList'
{ _srlParent = pSrlParent_
, _srlXgafv = Nothing
, _srlUploadProtocol = Nothing
, _srlAccessToken = Nothing
, _srlUploadType = Nothing
, _srlPageToken = Nothing
, _srlPageSize = Nothing
, _srlCallback = Nothing
}
srlParent :: Lens' SitesReleasesList Text
srlParent
= lens _srlParent (\ s a -> s{_srlParent = a})
srlXgafv :: Lens' SitesReleasesList (Maybe Xgafv)
srlXgafv = lens _srlXgafv (\ s a -> s{_srlXgafv = a})
srlUploadProtocol :: Lens' SitesReleasesList (Maybe Text)
srlUploadProtocol
= lens _srlUploadProtocol
(\ s a -> s{_srlUploadProtocol = a})
srlAccessToken :: Lens' SitesReleasesList (Maybe Text)
srlAccessToken
= lens _srlAccessToken
(\ s a -> s{_srlAccessToken = a})
srlUploadType :: Lens' SitesReleasesList (Maybe Text)
srlUploadType
= lens _srlUploadType
(\ s a -> s{_srlUploadType = a})
srlPageToken :: Lens' SitesReleasesList (Maybe Text)
srlPageToken
= lens _srlPageToken (\ s a -> s{_srlPageToken = a})
srlPageSize :: Lens' SitesReleasesList (Maybe Int32)
srlPageSize
= lens _srlPageSize (\ s a -> s{_srlPageSize = a}) .
mapping _Coerce
srlCallback :: Lens' SitesReleasesList (Maybe Text)
srlCallback
= lens _srlCallback (\ s a -> s{_srlCallback = a})
instance GoogleRequest SitesReleasesList where
type Rs SitesReleasesList = ListReleasesResponse
type Scopes SitesReleasesList =
'["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 SitesReleasesList'{..}
= go _srlParent _srlXgafv _srlUploadProtocol
_srlAccessToken
_srlUploadType
_srlPageToken
_srlPageSize
_srlCallback
(Just AltJSON)
firebaseHostingService
where go
= buildClient
(Proxy :: Proxy SitesReleasesListResource)
mempty