{-# 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.Container.Projects.Zones.Clusters.NodePools.Rollback
(
ProjectsZonesClustersNodePoolsRollbackResource
, projectsZonesClustersNodePoolsRollback
, ProjectsZonesClustersNodePoolsRollback
, pzcnprXgafv
, pzcnprUploadProtocol
, pzcnprAccessToken
, pzcnprUploadType
, pzcnprZone
, pzcnprPayload
, pzcnprNodePoolId
, pzcnprClusterId
, pzcnprProjectId
, pzcnprCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersNodePoolsRollbackResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"nodePools" :>
CaptureMode "nodePoolId" "rollback" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
RollbackNodePoolUpgradeRequest
:> Post '[JSON] Operation
data ProjectsZonesClustersNodePoolsRollback = ProjectsZonesClustersNodePoolsRollback'
{ _pzcnprXgafv :: !(Maybe Xgafv)
, _pzcnprUploadProtocol :: !(Maybe Text)
, _pzcnprAccessToken :: !(Maybe Text)
, _pzcnprUploadType :: !(Maybe Text)
, _pzcnprZone :: !Text
, _pzcnprPayload :: !RollbackNodePoolUpgradeRequest
, _pzcnprNodePoolId :: !Text
, _pzcnprClusterId :: !Text
, _pzcnprProjectId :: !Text
, _pzcnprCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersNodePoolsRollback
:: Text
-> RollbackNodePoolUpgradeRequest
-> Text
-> Text
-> Text
-> ProjectsZonesClustersNodePoolsRollback
projectsZonesClustersNodePoolsRollback pPzcnprZone_ pPzcnprPayload_ pPzcnprNodePoolId_ pPzcnprClusterId_ pPzcnprProjectId_ =
ProjectsZonesClustersNodePoolsRollback'
{ _pzcnprXgafv = Nothing
, _pzcnprUploadProtocol = Nothing
, _pzcnprAccessToken = Nothing
, _pzcnprUploadType = Nothing
, _pzcnprZone = pPzcnprZone_
, _pzcnprPayload = pPzcnprPayload_
, _pzcnprNodePoolId = pPzcnprNodePoolId_
, _pzcnprClusterId = pPzcnprClusterId_
, _pzcnprProjectId = pPzcnprProjectId_
, _pzcnprCallback = Nothing
}
pzcnprXgafv :: Lens' ProjectsZonesClustersNodePoolsRollback (Maybe Xgafv)
pzcnprXgafv
= lens _pzcnprXgafv (\ s a -> s{_pzcnprXgafv = a})
pzcnprUploadProtocol :: Lens' ProjectsZonesClustersNodePoolsRollback (Maybe Text)
pzcnprUploadProtocol
= lens _pzcnprUploadProtocol
(\ s a -> s{_pzcnprUploadProtocol = a})
pzcnprAccessToken :: Lens' ProjectsZonesClustersNodePoolsRollback (Maybe Text)
pzcnprAccessToken
= lens _pzcnprAccessToken
(\ s a -> s{_pzcnprAccessToken = a})
pzcnprUploadType :: Lens' ProjectsZonesClustersNodePoolsRollback (Maybe Text)
pzcnprUploadType
= lens _pzcnprUploadType
(\ s a -> s{_pzcnprUploadType = a})
pzcnprZone :: Lens' ProjectsZonesClustersNodePoolsRollback Text
pzcnprZone
= lens _pzcnprZone (\ s a -> s{_pzcnprZone = a})
pzcnprPayload :: Lens' ProjectsZonesClustersNodePoolsRollback RollbackNodePoolUpgradeRequest
pzcnprPayload
= lens _pzcnprPayload
(\ s a -> s{_pzcnprPayload = a})
pzcnprNodePoolId :: Lens' ProjectsZonesClustersNodePoolsRollback Text
pzcnprNodePoolId
= lens _pzcnprNodePoolId
(\ s a -> s{_pzcnprNodePoolId = a})
pzcnprClusterId :: Lens' ProjectsZonesClustersNodePoolsRollback Text
pzcnprClusterId
= lens _pzcnprClusterId
(\ s a -> s{_pzcnprClusterId = a})
pzcnprProjectId :: Lens' ProjectsZonesClustersNodePoolsRollback Text
pzcnprProjectId
= lens _pzcnprProjectId
(\ s a -> s{_pzcnprProjectId = a})
pzcnprCallback :: Lens' ProjectsZonesClustersNodePoolsRollback (Maybe Text)
pzcnprCallback
= lens _pzcnprCallback
(\ s a -> s{_pzcnprCallback = a})
instance GoogleRequest
ProjectsZonesClustersNodePoolsRollback where
type Rs ProjectsZonesClustersNodePoolsRollback =
Operation
type Scopes ProjectsZonesClustersNodePoolsRollback =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsZonesClustersNodePoolsRollback'{..}
= go _pzcnprProjectId _pzcnprZone _pzcnprClusterId
_pzcnprNodePoolId
_pzcnprXgafv
_pzcnprUploadProtocol
_pzcnprAccessToken
_pzcnprUploadType
_pzcnprCallback
(Just AltJSON)
_pzcnprPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesClustersNodePoolsRollbackResource)
mempty