{-# 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.CloudFunctions.Projects.Locations.Functions.List
(
ProjectsLocationsFunctionsListResource
, projectsLocationsFunctionsList
, ProjectsLocationsFunctionsList
, plflParent
, plflXgafv
, plflUploadProtocol
, plflAccessToken
, plflUploadType
, plflPageToken
, plflPageSize
, plflCallback
) where
import Network.Google.CloudFunctions.Types
import Network.Google.Prelude
type ProjectsLocationsFunctionsListResource =
"v1" :>
Capture "parent" Text :>
"functions" :>
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] ListFunctionsResponse
data ProjectsLocationsFunctionsList = ProjectsLocationsFunctionsList'
{ _plflParent :: !Text
, _plflXgafv :: !(Maybe Xgafv)
, _plflUploadProtocol :: !(Maybe Text)
, _plflAccessToken :: !(Maybe Text)
, _plflUploadType :: !(Maybe Text)
, _plflPageToken :: !(Maybe Text)
, _plflPageSize :: !(Maybe (Textual Int32))
, _plflCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsFunctionsList
:: Text
-> ProjectsLocationsFunctionsList
projectsLocationsFunctionsList pPlflParent_ =
ProjectsLocationsFunctionsList'
{ _plflParent = pPlflParent_
, _plflXgafv = Nothing
, _plflUploadProtocol = Nothing
, _plflAccessToken = Nothing
, _plflUploadType = Nothing
, _plflPageToken = Nothing
, _plflPageSize = Nothing
, _plflCallback = Nothing
}
plflParent :: Lens' ProjectsLocationsFunctionsList Text
plflParent
= lens _plflParent (\ s a -> s{_plflParent = a})
plflXgafv :: Lens' ProjectsLocationsFunctionsList (Maybe Xgafv)
plflXgafv
= lens _plflXgafv (\ s a -> s{_plflXgafv = a})
plflUploadProtocol :: Lens' ProjectsLocationsFunctionsList (Maybe Text)
plflUploadProtocol
= lens _plflUploadProtocol
(\ s a -> s{_plflUploadProtocol = a})
plflAccessToken :: Lens' ProjectsLocationsFunctionsList (Maybe Text)
plflAccessToken
= lens _plflAccessToken
(\ s a -> s{_plflAccessToken = a})
plflUploadType :: Lens' ProjectsLocationsFunctionsList (Maybe Text)
plflUploadType
= lens _plflUploadType
(\ s a -> s{_plflUploadType = a})
plflPageToken :: Lens' ProjectsLocationsFunctionsList (Maybe Text)
plflPageToken
= lens _plflPageToken
(\ s a -> s{_plflPageToken = a})
plflPageSize :: Lens' ProjectsLocationsFunctionsList (Maybe Int32)
plflPageSize
= lens _plflPageSize (\ s a -> s{_plflPageSize = a})
. mapping _Coerce
plflCallback :: Lens' ProjectsLocationsFunctionsList (Maybe Text)
plflCallback
= lens _plflCallback (\ s a -> s{_plflCallback = a})
instance GoogleRequest ProjectsLocationsFunctionsList
where
type Rs ProjectsLocationsFunctionsList =
ListFunctionsResponse
type Scopes ProjectsLocationsFunctionsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsFunctionsList'{..}
= go _plflParent _plflXgafv _plflUploadProtocol
_plflAccessToken
_plflUploadType
_plflPageToken
_plflPageSize
_plflCallback
(Just AltJSON)
cloudFunctionsService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsFunctionsListResource)
mempty