{-# 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.Get
(
ProjectsLocationsFunctionsGetResource
, projectsLocationsFunctionsGet
, ProjectsLocationsFunctionsGet
, plfgXgafv
, plfgUploadProtocol
, plfgAccessToken
, plfgUploadType
, plfgName
, plfgCallback
) where
import Network.Google.CloudFunctions.Types
import Network.Google.Prelude
type ProjectsLocationsFunctionsGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] CloudFunction
data ProjectsLocationsFunctionsGet = ProjectsLocationsFunctionsGet'
{ _plfgXgafv :: !(Maybe Xgafv)
, _plfgUploadProtocol :: !(Maybe Text)
, _plfgAccessToken :: !(Maybe Text)
, _plfgUploadType :: !(Maybe Text)
, _plfgName :: !Text
, _plfgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsFunctionsGet
:: Text
-> ProjectsLocationsFunctionsGet
projectsLocationsFunctionsGet pPlfgName_ =
ProjectsLocationsFunctionsGet'
{ _plfgXgafv = Nothing
, _plfgUploadProtocol = Nothing
, _plfgAccessToken = Nothing
, _plfgUploadType = Nothing
, _plfgName = pPlfgName_
, _plfgCallback = Nothing
}
plfgXgafv :: Lens' ProjectsLocationsFunctionsGet (Maybe Xgafv)
plfgXgafv
= lens _plfgXgafv (\ s a -> s{_plfgXgafv = a})
plfgUploadProtocol :: Lens' ProjectsLocationsFunctionsGet (Maybe Text)
plfgUploadProtocol
= lens _plfgUploadProtocol
(\ s a -> s{_plfgUploadProtocol = a})
plfgAccessToken :: Lens' ProjectsLocationsFunctionsGet (Maybe Text)
plfgAccessToken
= lens _plfgAccessToken
(\ s a -> s{_plfgAccessToken = a})
plfgUploadType :: Lens' ProjectsLocationsFunctionsGet (Maybe Text)
plfgUploadType
= lens _plfgUploadType
(\ s a -> s{_plfgUploadType = a})
plfgName :: Lens' ProjectsLocationsFunctionsGet Text
plfgName = lens _plfgName (\ s a -> s{_plfgName = a})
plfgCallback :: Lens' ProjectsLocationsFunctionsGet (Maybe Text)
plfgCallback
= lens _plfgCallback (\ s a -> s{_plfgCallback = a})
instance GoogleRequest ProjectsLocationsFunctionsGet
where
type Rs ProjectsLocationsFunctionsGet = CloudFunction
type Scopes ProjectsLocationsFunctionsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsFunctionsGet'{..}
= go _plfgName _plfgXgafv _plfgUploadProtocol
_plfgAccessToken
_plfgUploadType
_plfgCallback
(Just AltJSON)
cloudFunctionsService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsFunctionsGetResource)
mempty