{-# 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.Dataproc.Projects.Locations.WorkflowTemplates.Get
(
ProjectsLocationsWorkflowTemplatesGetResource
, projectsLocationsWorkflowTemplatesGet
, ProjectsLocationsWorkflowTemplatesGet
, plwtgXgafv
, plwtgUploadProtocol
, plwtgAccessToken
, plwtgUploadType
, plwtgName
, plwtgVersion
, plwtgCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsLocationsWorkflowTemplatesGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "version" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] WorkflowTemplate
data ProjectsLocationsWorkflowTemplatesGet = ProjectsLocationsWorkflowTemplatesGet'
{ _plwtgXgafv :: !(Maybe Xgafv)
, _plwtgUploadProtocol :: !(Maybe Text)
, _plwtgAccessToken :: !(Maybe Text)
, _plwtgUploadType :: !(Maybe Text)
, _plwtgName :: !Text
, _plwtgVersion :: !(Maybe (Textual Int32))
, _plwtgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsWorkflowTemplatesGet
:: Text
-> ProjectsLocationsWorkflowTemplatesGet
projectsLocationsWorkflowTemplatesGet pPlwtgName_ =
ProjectsLocationsWorkflowTemplatesGet'
{ _plwtgXgafv = Nothing
, _plwtgUploadProtocol = Nothing
, _plwtgAccessToken = Nothing
, _plwtgUploadType = Nothing
, _plwtgName = pPlwtgName_
, _plwtgVersion = Nothing
, _plwtgCallback = Nothing
}
plwtgXgafv :: Lens' ProjectsLocationsWorkflowTemplatesGet (Maybe Xgafv)
plwtgXgafv
= lens _plwtgXgafv (\ s a -> s{_plwtgXgafv = a})
plwtgUploadProtocol :: Lens' ProjectsLocationsWorkflowTemplatesGet (Maybe Text)
plwtgUploadProtocol
= lens _plwtgUploadProtocol
(\ s a -> s{_plwtgUploadProtocol = a})
plwtgAccessToken :: Lens' ProjectsLocationsWorkflowTemplatesGet (Maybe Text)
plwtgAccessToken
= lens _plwtgAccessToken
(\ s a -> s{_plwtgAccessToken = a})
plwtgUploadType :: Lens' ProjectsLocationsWorkflowTemplatesGet (Maybe Text)
plwtgUploadType
= lens _plwtgUploadType
(\ s a -> s{_plwtgUploadType = a})
plwtgName :: Lens' ProjectsLocationsWorkflowTemplatesGet Text
plwtgName
= lens _plwtgName (\ s a -> s{_plwtgName = a})
plwtgVersion :: Lens' ProjectsLocationsWorkflowTemplatesGet (Maybe Int32)
plwtgVersion
= lens _plwtgVersion (\ s a -> s{_plwtgVersion = a})
. mapping _Coerce
plwtgCallback :: Lens' ProjectsLocationsWorkflowTemplatesGet (Maybe Text)
plwtgCallback
= lens _plwtgCallback
(\ s a -> s{_plwtgCallback = a})
instance GoogleRequest
ProjectsLocationsWorkflowTemplatesGet where
type Rs ProjectsLocationsWorkflowTemplatesGet =
WorkflowTemplate
type Scopes ProjectsLocationsWorkflowTemplatesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsWorkflowTemplatesGet'{..}
= go _plwtgName _plwtgXgafv _plwtgUploadProtocol
_plwtgAccessToken
_plwtgUploadType
_plwtgVersion
_plwtgCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsWorkflowTemplatesGetResource)
mempty