{-# 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.Regions.WorkflowTemplates.Get
(
ProjectsRegionsWorkflowTemplatesGetResource
, projectsRegionsWorkflowTemplatesGet
, ProjectsRegionsWorkflowTemplatesGet
, prwtgXgafv
, prwtgUploadProtocol
, prwtgAccessToken
, prwtgUploadType
, prwtgName
, prwtgVersion
, prwtgCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsWorkflowTemplatesGetResource =
"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 ProjectsRegionsWorkflowTemplatesGet = ProjectsRegionsWorkflowTemplatesGet'
{ _prwtgXgafv :: !(Maybe Xgafv)
, _prwtgUploadProtocol :: !(Maybe Text)
, _prwtgAccessToken :: !(Maybe Text)
, _prwtgUploadType :: !(Maybe Text)
, _prwtgName :: !Text
, _prwtgVersion :: !(Maybe (Textual Int32))
, _prwtgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsWorkflowTemplatesGet
:: Text
-> ProjectsRegionsWorkflowTemplatesGet
projectsRegionsWorkflowTemplatesGet pPrwtgName_ =
ProjectsRegionsWorkflowTemplatesGet'
{ _prwtgXgafv = Nothing
, _prwtgUploadProtocol = Nothing
, _prwtgAccessToken = Nothing
, _prwtgUploadType = Nothing
, _prwtgName = pPrwtgName_
, _prwtgVersion = Nothing
, _prwtgCallback = Nothing
}
prwtgXgafv :: Lens' ProjectsRegionsWorkflowTemplatesGet (Maybe Xgafv)
prwtgXgafv
= lens _prwtgXgafv (\ s a -> s{_prwtgXgafv = a})
prwtgUploadProtocol :: Lens' ProjectsRegionsWorkflowTemplatesGet (Maybe Text)
prwtgUploadProtocol
= lens _prwtgUploadProtocol
(\ s a -> s{_prwtgUploadProtocol = a})
prwtgAccessToken :: Lens' ProjectsRegionsWorkflowTemplatesGet (Maybe Text)
prwtgAccessToken
= lens _prwtgAccessToken
(\ s a -> s{_prwtgAccessToken = a})
prwtgUploadType :: Lens' ProjectsRegionsWorkflowTemplatesGet (Maybe Text)
prwtgUploadType
= lens _prwtgUploadType
(\ s a -> s{_prwtgUploadType = a})
prwtgName :: Lens' ProjectsRegionsWorkflowTemplatesGet Text
prwtgName
= lens _prwtgName (\ s a -> s{_prwtgName = a})
prwtgVersion :: Lens' ProjectsRegionsWorkflowTemplatesGet (Maybe Int32)
prwtgVersion
= lens _prwtgVersion (\ s a -> s{_prwtgVersion = a})
. mapping _Coerce
prwtgCallback :: Lens' ProjectsRegionsWorkflowTemplatesGet (Maybe Text)
prwtgCallback
= lens _prwtgCallback
(\ s a -> s{_prwtgCallback = a})
instance GoogleRequest
ProjectsRegionsWorkflowTemplatesGet where
type Rs ProjectsRegionsWorkflowTemplatesGet =
WorkflowTemplate
type Scopes ProjectsRegionsWorkflowTemplatesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsRegionsWorkflowTemplatesGet'{..}
= go _prwtgName _prwtgXgafv _prwtgUploadProtocol
_prwtgAccessToken
_prwtgUploadType
_prwtgVersion
_prwtgCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsRegionsWorkflowTemplatesGetResource)
mempty