{-# 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.Ml.Projects.Jobs.Patch
(
ProjectsJobsPatchResource
, projectsJobsPatch
, ProjectsJobsPatch
, pjpXgafv
, pjpUploadProtocol
, pjpUpdateMask
, pjpAccessToken
, pjpUploadType
, pjpPayload
, pjpName
, pjpCallback
) where
import Network.Google.MachineLearning.Types
import Network.Google.Prelude
type ProjectsJobsPatchResource =
"v1" :>
Capture "name" 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] GoogleCloudMlV1__Job :>
Patch '[JSON] GoogleCloudMlV1__Job
data ProjectsJobsPatch = ProjectsJobsPatch'
{ _pjpXgafv :: !(Maybe Xgafv)
, _pjpUploadProtocol :: !(Maybe Text)
, _pjpUpdateMask :: !(Maybe GFieldMask)
, _pjpAccessToken :: !(Maybe Text)
, _pjpUploadType :: !(Maybe Text)
, _pjpPayload :: !GoogleCloudMlV1__Job
, _pjpName :: !Text
, _pjpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsJobsPatch
:: GoogleCloudMlV1__Job
-> Text
-> ProjectsJobsPatch
projectsJobsPatch pPjpPayload_ pPjpName_ =
ProjectsJobsPatch'
{ _pjpXgafv = Nothing
, _pjpUploadProtocol = Nothing
, _pjpUpdateMask = Nothing
, _pjpAccessToken = Nothing
, _pjpUploadType = Nothing
, _pjpPayload = pPjpPayload_
, _pjpName = pPjpName_
, _pjpCallback = Nothing
}
pjpXgafv :: Lens' ProjectsJobsPatch (Maybe Xgafv)
pjpXgafv = lens _pjpXgafv (\ s a -> s{_pjpXgafv = a})
pjpUploadProtocol :: Lens' ProjectsJobsPatch (Maybe Text)
pjpUploadProtocol
= lens _pjpUploadProtocol
(\ s a -> s{_pjpUploadProtocol = a})
pjpUpdateMask :: Lens' ProjectsJobsPatch (Maybe GFieldMask)
pjpUpdateMask
= lens _pjpUpdateMask
(\ s a -> s{_pjpUpdateMask = a})
pjpAccessToken :: Lens' ProjectsJobsPatch (Maybe Text)
pjpAccessToken
= lens _pjpAccessToken
(\ s a -> s{_pjpAccessToken = a})
pjpUploadType :: Lens' ProjectsJobsPatch (Maybe Text)
pjpUploadType
= lens _pjpUploadType
(\ s a -> s{_pjpUploadType = a})
pjpPayload :: Lens' ProjectsJobsPatch GoogleCloudMlV1__Job
pjpPayload
= lens _pjpPayload (\ s a -> s{_pjpPayload = a})
pjpName :: Lens' ProjectsJobsPatch Text
pjpName = lens _pjpName (\ s a -> s{_pjpName = a})
pjpCallback :: Lens' ProjectsJobsPatch (Maybe Text)
pjpCallback
= lens _pjpCallback (\ s a -> s{_pjpCallback = a})
instance GoogleRequest ProjectsJobsPatch where
type Rs ProjectsJobsPatch = GoogleCloudMlV1__Job
type Scopes ProjectsJobsPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsJobsPatch'{..}
= go _pjpName _pjpXgafv _pjpUploadProtocol
_pjpUpdateMask
_pjpAccessToken
_pjpUploadType
_pjpCallback
(Just AltJSON)
_pjpPayload
machineLearningService
where go
= buildClient
(Proxy :: Proxy ProjectsJobsPatchResource)
mempty