{-# 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.FirebaseRules.Projects.Releases.List
(
ProjectsReleasesListResource
, projectsReleasesList
, ProjectsReleasesList
, prlrXgafv
, prlrUploadProtocol
, prlrAccessToken
, prlrUploadType
, prlrName
, prlrFilter
, prlrPageToken
, prlrPageSize
, prlrCallback
) where
import Network.Google.FirebaseRules.Types
import Network.Google.Prelude
type ProjectsReleasesListResource =
"v1" :>
Capture "name" Text :>
"releases" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListReleasesResponse
data ProjectsReleasesList = ProjectsReleasesList'
{ _prlrXgafv :: !(Maybe Xgafv)
, _prlrUploadProtocol :: !(Maybe Text)
, _prlrAccessToken :: !(Maybe Text)
, _prlrUploadType :: !(Maybe Text)
, _prlrName :: !Text
, _prlrFilter :: !(Maybe Text)
, _prlrPageToken :: !(Maybe Text)
, _prlrPageSize :: !(Maybe (Textual Int32))
, _prlrCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsReleasesList
:: Text
-> ProjectsReleasesList
projectsReleasesList pPrlrName_ =
ProjectsReleasesList'
{ _prlrXgafv = Nothing
, _prlrUploadProtocol = Nothing
, _prlrAccessToken = Nothing
, _prlrUploadType = Nothing
, _prlrName = pPrlrName_
, _prlrFilter = Nothing
, _prlrPageToken = Nothing
, _prlrPageSize = Nothing
, _prlrCallback = Nothing
}
prlrXgafv :: Lens' ProjectsReleasesList (Maybe Xgafv)
prlrXgafv
= lens _prlrXgafv (\ s a -> s{_prlrXgafv = a})
prlrUploadProtocol :: Lens' ProjectsReleasesList (Maybe Text)
prlrUploadProtocol
= lens _prlrUploadProtocol
(\ s a -> s{_prlrUploadProtocol = a})
prlrAccessToken :: Lens' ProjectsReleasesList (Maybe Text)
prlrAccessToken
= lens _prlrAccessToken
(\ s a -> s{_prlrAccessToken = a})
prlrUploadType :: Lens' ProjectsReleasesList (Maybe Text)
prlrUploadType
= lens _prlrUploadType
(\ s a -> s{_prlrUploadType = a})
prlrName :: Lens' ProjectsReleasesList Text
prlrName = lens _prlrName (\ s a -> s{_prlrName = a})
prlrFilter :: Lens' ProjectsReleasesList (Maybe Text)
prlrFilter
= lens _prlrFilter (\ s a -> s{_prlrFilter = a})
prlrPageToken :: Lens' ProjectsReleasesList (Maybe Text)
prlrPageToken
= lens _prlrPageToken
(\ s a -> s{_prlrPageToken = a})
prlrPageSize :: Lens' ProjectsReleasesList (Maybe Int32)
prlrPageSize
= lens _prlrPageSize (\ s a -> s{_prlrPageSize = a})
. mapping _Coerce
prlrCallback :: Lens' ProjectsReleasesList (Maybe Text)
prlrCallback
= lens _prlrCallback (\ s a -> s{_prlrCallback = a})
instance GoogleRequest ProjectsReleasesList where
type Rs ProjectsReleasesList = ListReleasesResponse
type Scopes ProjectsReleasesList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/firebase",
"https://www.googleapis.com/auth/firebase.readonly"]
requestClient ProjectsReleasesList'{..}
= go _prlrName _prlrXgafv _prlrUploadProtocol
_prlrAccessToken
_prlrUploadType
_prlrFilter
_prlrPageToken
_prlrPageSize
_prlrCallback
(Just AltJSON)
firebaseRulesService
where go
= buildClient
(Proxy :: Proxy ProjectsReleasesListResource)
mempty