{-# 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.Update
(
ProjectsLocationsWorkflowTemplatesUpdateResource
, projectsLocationsWorkflowTemplatesUpdate
, ProjectsLocationsWorkflowTemplatesUpdate
, plwtuXgafv
, plwtuUploadProtocol
, plwtuAccessToken
, plwtuUploadType
, plwtuPayload
, plwtuName
, plwtuCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsLocationsWorkflowTemplatesUpdateResource
=
"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 ProjectsLocationsWorkflowTemplatesUpdate = ProjectsLocationsWorkflowTemplatesUpdate'
{ _plwtuXgafv :: !(Maybe Xgafv)
, _plwtuUploadProtocol :: !(Maybe Text)
, _plwtuAccessToken :: !(Maybe Text)
, _plwtuUploadType :: !(Maybe Text)
, _plwtuPayload :: !WorkflowTemplate
, _plwtuName :: !Text
, _plwtuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsWorkflowTemplatesUpdate
:: WorkflowTemplate
-> Text
-> ProjectsLocationsWorkflowTemplatesUpdate
projectsLocationsWorkflowTemplatesUpdate pPlwtuPayload_ pPlwtuName_ =
ProjectsLocationsWorkflowTemplatesUpdate'
{ _plwtuXgafv = Nothing
, _plwtuUploadProtocol = Nothing
, _plwtuAccessToken = Nothing
, _plwtuUploadType = Nothing
, _plwtuPayload = pPlwtuPayload_
, _plwtuName = pPlwtuName_
, _plwtuCallback = Nothing
}
plwtuXgafv :: Lens' ProjectsLocationsWorkflowTemplatesUpdate (Maybe Xgafv)
plwtuXgafv
= lens _plwtuXgafv (\ s a -> s{_plwtuXgafv = a})
plwtuUploadProtocol :: Lens' ProjectsLocationsWorkflowTemplatesUpdate (Maybe Text)
plwtuUploadProtocol
= lens _plwtuUploadProtocol
(\ s a -> s{_plwtuUploadProtocol = a})
plwtuAccessToken :: Lens' ProjectsLocationsWorkflowTemplatesUpdate (Maybe Text)
plwtuAccessToken
= lens _plwtuAccessToken
(\ s a -> s{_plwtuAccessToken = a})
plwtuUploadType :: Lens' ProjectsLocationsWorkflowTemplatesUpdate (Maybe Text)
plwtuUploadType
= lens _plwtuUploadType
(\ s a -> s{_plwtuUploadType = a})
plwtuPayload :: Lens' ProjectsLocationsWorkflowTemplatesUpdate WorkflowTemplate
plwtuPayload
= lens _plwtuPayload (\ s a -> s{_plwtuPayload = a})
plwtuName :: Lens' ProjectsLocationsWorkflowTemplatesUpdate Text
plwtuName
= lens _plwtuName (\ s a -> s{_plwtuName = a})
plwtuCallback :: Lens' ProjectsLocationsWorkflowTemplatesUpdate (Maybe Text)
plwtuCallback
= lens _plwtuCallback
(\ s a -> s{_plwtuCallback = a})
instance GoogleRequest
ProjectsLocationsWorkflowTemplatesUpdate where
type Rs ProjectsLocationsWorkflowTemplatesUpdate =
WorkflowTemplate
type Scopes ProjectsLocationsWorkflowTemplatesUpdate
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsWorkflowTemplatesUpdate'{..}
= go _plwtuName _plwtuXgafv _plwtuUploadProtocol
_plwtuAccessToken
_plwtuUploadType
_plwtuCallback
(Just AltJSON)
_plwtuPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsWorkflowTemplatesUpdateResource)
mempty