{-# 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.Clusters.Patch
(
ProjectsRegionsClustersPatchResource
, projectsRegionsClustersPatch
, ProjectsRegionsClustersPatch
, prcpXgafv
, prcpRequestId
, prcpUploadProtocol
, prcpUpdateMask
, prcpAccessToken
, prcpUploadType
, prcpPayload
, prcpGracefulDecommissionTimeout
, prcpClusterName
, prcpRegion
, prcpProjectId
, prcpCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsClustersPatchResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"regions" :>
Capture "region" Text :>
"clusters" :>
Capture "clusterName" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "requestId" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "updateMask" GFieldMask :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "gracefulDecommissionTimeout"
GDuration
:>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Cluster :>
Patch '[JSON] Operation
data ProjectsRegionsClustersPatch = ProjectsRegionsClustersPatch'
{ _prcpXgafv :: !(Maybe Xgafv)
, _prcpRequestId :: !(Maybe Text)
, _prcpUploadProtocol :: !(Maybe Text)
, _prcpUpdateMask :: !(Maybe GFieldMask)
, _prcpAccessToken :: !(Maybe Text)
, _prcpUploadType :: !(Maybe Text)
, _prcpPayload :: !Cluster
, _prcpGracefulDecommissionTimeout :: !(Maybe GDuration)
, _prcpClusterName :: !Text
, _prcpRegion :: !Text
, _prcpProjectId :: !Text
, _prcpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsClustersPatch
:: Cluster
-> Text
-> Text
-> Text
-> ProjectsRegionsClustersPatch
projectsRegionsClustersPatch pPrcpPayload_ pPrcpClusterName_ pPrcpRegion_ pPrcpProjectId_ =
ProjectsRegionsClustersPatch'
{ _prcpXgafv = Nothing
, _prcpRequestId = Nothing
, _prcpUploadProtocol = Nothing
, _prcpUpdateMask = Nothing
, _prcpAccessToken = Nothing
, _prcpUploadType = Nothing
, _prcpPayload = pPrcpPayload_
, _prcpGracefulDecommissionTimeout = Nothing
, _prcpClusterName = pPrcpClusterName_
, _prcpRegion = pPrcpRegion_
, _prcpProjectId = pPrcpProjectId_
, _prcpCallback = Nothing
}
prcpXgafv :: Lens' ProjectsRegionsClustersPatch (Maybe Xgafv)
prcpXgafv
= lens _prcpXgafv (\ s a -> s{_prcpXgafv = a})
prcpRequestId :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
prcpRequestId
= lens _prcpRequestId
(\ s a -> s{_prcpRequestId = a})
prcpUploadProtocol :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
prcpUploadProtocol
= lens _prcpUploadProtocol
(\ s a -> s{_prcpUploadProtocol = a})
prcpUpdateMask :: Lens' ProjectsRegionsClustersPatch (Maybe GFieldMask)
prcpUpdateMask
= lens _prcpUpdateMask
(\ s a -> s{_prcpUpdateMask = a})
prcpAccessToken :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
prcpAccessToken
= lens _prcpAccessToken
(\ s a -> s{_prcpAccessToken = a})
prcpUploadType :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
prcpUploadType
= lens _prcpUploadType
(\ s a -> s{_prcpUploadType = a})
prcpPayload :: Lens' ProjectsRegionsClustersPatch Cluster
prcpPayload
= lens _prcpPayload (\ s a -> s{_prcpPayload = a})
prcpGracefulDecommissionTimeout :: Lens' ProjectsRegionsClustersPatch (Maybe Scientific)
prcpGracefulDecommissionTimeout
= lens _prcpGracefulDecommissionTimeout
(\ s a -> s{_prcpGracefulDecommissionTimeout = a})
. mapping _GDuration
prcpClusterName :: Lens' ProjectsRegionsClustersPatch Text
prcpClusterName
= lens _prcpClusterName
(\ s a -> s{_prcpClusterName = a})
prcpRegion :: Lens' ProjectsRegionsClustersPatch Text
prcpRegion
= lens _prcpRegion (\ s a -> s{_prcpRegion = a})
prcpProjectId :: Lens' ProjectsRegionsClustersPatch Text
prcpProjectId
= lens _prcpProjectId
(\ s a -> s{_prcpProjectId = a})
prcpCallback :: Lens' ProjectsRegionsClustersPatch (Maybe Text)
prcpCallback
= lens _prcpCallback (\ s a -> s{_prcpCallback = a})
instance GoogleRequest ProjectsRegionsClustersPatch
where
type Rs ProjectsRegionsClustersPatch = Operation
type Scopes ProjectsRegionsClustersPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsClustersPatch'{..}
= go _prcpProjectId _prcpRegion _prcpClusterName
_prcpXgafv
_prcpRequestId
_prcpUploadProtocol
_prcpUpdateMask
_prcpAccessToken
_prcpUploadType
_prcpGracefulDecommissionTimeout
_prcpCallback
(Just AltJSON)
_prcpPayload
dataprocService
where go
= buildClient
(Proxy :: Proxy ProjectsRegionsClustersPatchResource)
mempty