{-# 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.Models.Versions.Patch
(
ProjectsModelsVersionsPatchResource
, projectsModelsVersionsPatch
, ProjectsModelsVersionsPatch
, pmvpXgafv
, pmvpUploadProtocol
, pmvpUpdateMask
, pmvpAccessToken
, pmvpUploadType
, pmvpPayload
, pmvpName
, pmvpCallback
) where
import Network.Google.MachineLearning.Types
import Network.Google.Prelude
type ProjectsModelsVersionsPatchResource =
"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__Version :>
Patch '[JSON] GoogleLongrunning__Operation
data ProjectsModelsVersionsPatch = ProjectsModelsVersionsPatch'
{ _pmvpXgafv :: !(Maybe Xgafv)
, _pmvpUploadProtocol :: !(Maybe Text)
, _pmvpUpdateMask :: !(Maybe GFieldMask)
, _pmvpAccessToken :: !(Maybe Text)
, _pmvpUploadType :: !(Maybe Text)
, _pmvpPayload :: !GoogleCloudMlV1__Version
, _pmvpName :: !Text
, _pmvpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsModelsVersionsPatch
:: GoogleCloudMlV1__Version
-> Text
-> ProjectsModelsVersionsPatch
projectsModelsVersionsPatch pPmvpPayload_ pPmvpName_ =
ProjectsModelsVersionsPatch'
{ _pmvpXgafv = Nothing
, _pmvpUploadProtocol = Nothing
, _pmvpUpdateMask = Nothing
, _pmvpAccessToken = Nothing
, _pmvpUploadType = Nothing
, _pmvpPayload = pPmvpPayload_
, _pmvpName = pPmvpName_
, _pmvpCallback = Nothing
}
pmvpXgafv :: Lens' ProjectsModelsVersionsPatch (Maybe Xgafv)
pmvpXgafv
= lens _pmvpXgafv (\ s a -> s{_pmvpXgafv = a})
pmvpUploadProtocol :: Lens' ProjectsModelsVersionsPatch (Maybe Text)
pmvpUploadProtocol
= lens _pmvpUploadProtocol
(\ s a -> s{_pmvpUploadProtocol = a})
pmvpUpdateMask :: Lens' ProjectsModelsVersionsPatch (Maybe GFieldMask)
pmvpUpdateMask
= lens _pmvpUpdateMask
(\ s a -> s{_pmvpUpdateMask = a})
pmvpAccessToken :: Lens' ProjectsModelsVersionsPatch (Maybe Text)
pmvpAccessToken
= lens _pmvpAccessToken
(\ s a -> s{_pmvpAccessToken = a})
pmvpUploadType :: Lens' ProjectsModelsVersionsPatch (Maybe Text)
pmvpUploadType
= lens _pmvpUploadType
(\ s a -> s{_pmvpUploadType = a})
pmvpPayload :: Lens' ProjectsModelsVersionsPatch GoogleCloudMlV1__Version
pmvpPayload
= lens _pmvpPayload (\ s a -> s{_pmvpPayload = a})
pmvpName :: Lens' ProjectsModelsVersionsPatch Text
pmvpName = lens _pmvpName (\ s a -> s{_pmvpName = a})
pmvpCallback :: Lens' ProjectsModelsVersionsPatch (Maybe Text)
pmvpCallback
= lens _pmvpCallback (\ s a -> s{_pmvpCallback = a})
instance GoogleRequest ProjectsModelsVersionsPatch
where
type Rs ProjectsModelsVersionsPatch =
GoogleLongrunning__Operation
type Scopes ProjectsModelsVersionsPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsModelsVersionsPatch'{..}
= go _pmvpName _pmvpXgafv _pmvpUploadProtocol
_pmvpUpdateMask
_pmvpAccessToken
_pmvpUploadType
_pmvpCallback
(Just AltJSON)
_pmvpPayload
machineLearningService
where go
= buildClient
(Proxy :: Proxy ProjectsModelsVersionsPatchResource)
mempty