{-# 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.Update
(
ProjectsRegionsWorkflowTemplatesUpdateResource
, projectsRegionsWorkflowTemplatesUpdate
, ProjectsRegionsWorkflowTemplatesUpdate
, prwtuXgafv
, prwtuUploadProtocol
, prwtuAccessToken
, prwtuUploadType
, prwtuPayload
, prwtuName
, prwtuCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsWorkflowTemplatesUpdateResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] WorkflowTemplate :>
Put '[JSON] WorkflowTemplate
data ProjectsRegionsWorkflowTemplatesUpdate = ProjectsRegionsWorkflowTemplatesUpdate'
{ _prwtuXgafv :: !(Maybe Xgafv)
, _prwtuUploadProtocol :: !(Maybe Text)
, _prwtuAccessToken :: !(Maybe Text)
, _prwtuUploadType :: !(Maybe Text)
, _prwtuPayload :: !WorkflowTemplate
, _prwtuName :: !Text
, _prwtuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsWorkflowTemplatesUpdate
:: WorkflowTemplate
-> Text
-> ProjectsRegionsWorkflowTemplatesUpdate
projectsRegionsWorkflowTemplatesUpdate pPrwtuPayload_ pPrwtuName_ =
ProjectsRegionsWorkflowTemplatesUpdate'
{ _prwtuXgafv = Nothing
, _prwtuUploadProtocol = Nothing
, _prwtuAccessToken = Nothing
, _prwtuUploadType = Nothing
, _prwtuPayload = pPrwtuPayload_
, _prwtuName = pPrwtuName_
, _prwtuCallback = Nothing
}
prwtuXgafv :: Lens' ProjectsRegionsWorkflowTemplatesUpdate (Maybe Xgafv)
prwtuXgafv
= lens _prwtuXgafv (\ s a -> s{_prwtuXgafv = a})
prwtuUploadProtocol :: Lens' ProjectsRegionsWorkflowTemplatesUpdate (Maybe Text)
prwtuUploadProtocol
= lens _prwtuUploadProtocol
(\ s a -> s{_prwtuUploadProtocol = a})
prwtuAccessToken :: Lens' ProjectsRegionsWorkflowTemplatesUpdate (Maybe Text)
prwtuAccessToken
= lens _prwtuAccessToken
(\ s a -> s{_prwtuAccessToken = a})
prwtuUploadType :: Lens' ProjectsRegionsWorkflowTemplatesUpdate (Maybe Text)
prwtuUploadType
= lens _prwtuUploadType
(\ s a -> s{_prwtuUploadType = a})
prwtuPayload :: Lens' ProjectsRegionsWorkflowTemplatesUpdate WorkflowTemplate
prwtuPayload
= lens _prwtuPayload (\ s a -> s{_prwtuPayload = a})
prwtuName :: Lens' ProjectsRegionsWorkflowTemplatesUpdate Text
prwtuName
= lens _prwtuName (\ s a -> s{_prwtuName = a})
prwtuCallback :: Lens' ProjectsRegionsWorkflowTemplatesUpdate (Maybe Text)
prwtuCallback
= lens _prwtuCallback
(\ s a -> s{_prwtuCallback = a})
instance GoogleRequest
ProjectsRegionsWorkflowTemplatesUpdate where
type Rs ProjectsRegionsWorkflowTemplatesUpdate =
WorkflowTemplate
type Scopes ProjectsRegionsWorkflowTemplatesUpdate =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsRegionsWorkflowTemplatesUpdate'{..}
= go _prwtuName _prwtuXgafv _prwtuUploadProtocol
_prwtuAccessToken
_prwtuUploadType
_prwtuCallback
(Just AltJSON)
_prwtuPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsRegionsWorkflowTemplatesUpdateResource)
mempty