{-# 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.Jobs.Patch
(
ProjectsRegionsJobsPatchResource
, projectsRegionsJobsPatch
, ProjectsRegionsJobsPatch
, prjpXgafv
, prjpJobId
, prjpUploadProtocol
, prjpUpdateMask
, prjpAccessToken
, prjpUploadType
, prjpPayload
, prjpRegion
, prjpProjectId
, prjpCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsJobsPatchResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"regions" :>
Capture "region" Text :>
"jobs" :>
Capture "jobId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "updateMask" GFieldMask :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Job :> Patch '[JSON] Job
data ProjectsRegionsJobsPatch = ProjectsRegionsJobsPatch'
{ _prjpXgafv :: !(Maybe Xgafv)
, _prjpJobId :: !Text
, _prjpUploadProtocol :: !(Maybe Text)
, _prjpUpdateMask :: !(Maybe GFieldMask)
, _prjpAccessToken :: !(Maybe Text)
, _prjpUploadType :: !(Maybe Text)
, _prjpPayload :: !Job
, _prjpRegion :: !Text
, _prjpProjectId :: !Text
, _prjpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsJobsPatch
:: Text
-> Job
-> Text
-> Text
-> ProjectsRegionsJobsPatch
projectsRegionsJobsPatch pPrjpJobId_ pPrjpPayload_ pPrjpRegion_ pPrjpProjectId_ =
ProjectsRegionsJobsPatch'
{ _prjpXgafv = Nothing
, _prjpJobId = pPrjpJobId_
, _prjpUploadProtocol = Nothing
, _prjpUpdateMask = Nothing
, _prjpAccessToken = Nothing
, _prjpUploadType = Nothing
, _prjpPayload = pPrjpPayload_
, _prjpRegion = pPrjpRegion_
, _prjpProjectId = pPrjpProjectId_
, _prjpCallback = Nothing
}
prjpXgafv :: Lens' ProjectsRegionsJobsPatch (Maybe Xgafv)
prjpXgafv
= lens _prjpXgafv (\ s a -> s{_prjpXgafv = a})
prjpJobId :: Lens' ProjectsRegionsJobsPatch Text
prjpJobId
= lens _prjpJobId (\ s a -> s{_prjpJobId = a})
prjpUploadProtocol :: Lens' ProjectsRegionsJobsPatch (Maybe Text)
prjpUploadProtocol
= lens _prjpUploadProtocol
(\ s a -> s{_prjpUploadProtocol = a})
prjpUpdateMask :: Lens' ProjectsRegionsJobsPatch (Maybe GFieldMask)
prjpUpdateMask
= lens _prjpUpdateMask
(\ s a -> s{_prjpUpdateMask = a})
prjpAccessToken :: Lens' ProjectsRegionsJobsPatch (Maybe Text)
prjpAccessToken
= lens _prjpAccessToken
(\ s a -> s{_prjpAccessToken = a})
prjpUploadType :: Lens' ProjectsRegionsJobsPatch (Maybe Text)
prjpUploadType
= lens _prjpUploadType
(\ s a -> s{_prjpUploadType = a})
prjpPayload :: Lens' ProjectsRegionsJobsPatch Job
prjpPayload
= lens _prjpPayload (\ s a -> s{_prjpPayload = a})
prjpRegion :: Lens' ProjectsRegionsJobsPatch Text
prjpRegion
= lens _prjpRegion (\ s a -> s{_prjpRegion = a})
prjpProjectId :: Lens' ProjectsRegionsJobsPatch Text
prjpProjectId
= lens _prjpProjectId
(\ s a -> s{_prjpProjectId = a})
prjpCallback :: Lens' ProjectsRegionsJobsPatch (Maybe Text)
prjpCallback
= lens _prjpCallback (\ s a -> s{_prjpCallback = a})
instance GoogleRequest ProjectsRegionsJobsPatch where
type Rs ProjectsRegionsJobsPatch = Job
type Scopes ProjectsRegionsJobsPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsJobsPatch'{..}
= go _prjpProjectId _prjpRegion _prjpJobId _prjpXgafv
_prjpUploadProtocol
_prjpUpdateMask
_prjpAccessToken
_prjpUploadType
_prjpCallback
(Just AltJSON)
_prjpPayload
dataprocService
where go
= buildClient
(Proxy :: Proxy ProjectsRegionsJobsPatchResource)
mempty