{-# 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.Update
(
ProjectsZonesClustersNodePoolsUpdateResource
, projectsZonesClustersNodePoolsUpdate
, ProjectsZonesClustersNodePoolsUpdate
, pzcnpuXgafv
, pzcnpuUploadProtocol
, pzcnpuAccessToken
, pzcnpuUploadType
, pzcnpuZone
, pzcnpuPayload
, pzcnpuNodePoolId
, pzcnpuClusterId
, pzcnpuProjectId
, pzcnpuCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersNodePoolsUpdateResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"nodePools" :>
Capture "nodePoolId" Text :>
"update" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] UpdateNodePoolRequest :>
Post '[JSON] Operation
data ProjectsZonesClustersNodePoolsUpdate = ProjectsZonesClustersNodePoolsUpdate'
{ _pzcnpuXgafv :: !(Maybe Xgafv)
, _pzcnpuUploadProtocol :: !(Maybe Text)
, _pzcnpuAccessToken :: !(Maybe Text)
, _pzcnpuUploadType :: !(Maybe Text)
, _pzcnpuZone :: !Text
, _pzcnpuPayload :: !UpdateNodePoolRequest
, _pzcnpuNodePoolId :: !Text
, _pzcnpuClusterId :: !Text
, _pzcnpuProjectId :: !Text
, _pzcnpuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersNodePoolsUpdate
:: Text
-> UpdateNodePoolRequest
-> Text
-> Text
-> Text
-> ProjectsZonesClustersNodePoolsUpdate
projectsZonesClustersNodePoolsUpdate pPzcnpuZone_ pPzcnpuPayload_ pPzcnpuNodePoolId_ pPzcnpuClusterId_ pPzcnpuProjectId_ =
ProjectsZonesClustersNodePoolsUpdate'
{ _pzcnpuXgafv = Nothing
, _pzcnpuUploadProtocol = Nothing
, _pzcnpuAccessToken = Nothing
, _pzcnpuUploadType = Nothing
, _pzcnpuZone = pPzcnpuZone_
, _pzcnpuPayload = pPzcnpuPayload_
, _pzcnpuNodePoolId = pPzcnpuNodePoolId_
, _pzcnpuClusterId = pPzcnpuClusterId_
, _pzcnpuProjectId = pPzcnpuProjectId_
, _pzcnpuCallback = Nothing
}
pzcnpuXgafv :: Lens' ProjectsZonesClustersNodePoolsUpdate (Maybe Xgafv)
pzcnpuXgafv
= lens _pzcnpuXgafv (\ s a -> s{_pzcnpuXgafv = a})
pzcnpuUploadProtocol :: Lens' ProjectsZonesClustersNodePoolsUpdate (Maybe Text)
pzcnpuUploadProtocol
= lens _pzcnpuUploadProtocol
(\ s a -> s{_pzcnpuUploadProtocol = a})
pzcnpuAccessToken :: Lens' ProjectsZonesClustersNodePoolsUpdate (Maybe Text)
pzcnpuAccessToken
= lens _pzcnpuAccessToken
(\ s a -> s{_pzcnpuAccessToken = a})
pzcnpuUploadType :: Lens' ProjectsZonesClustersNodePoolsUpdate (Maybe Text)
pzcnpuUploadType
= lens _pzcnpuUploadType
(\ s a -> s{_pzcnpuUploadType = a})
pzcnpuZone :: Lens' ProjectsZonesClustersNodePoolsUpdate Text
pzcnpuZone
= lens _pzcnpuZone (\ s a -> s{_pzcnpuZone = a})
pzcnpuPayload :: Lens' ProjectsZonesClustersNodePoolsUpdate UpdateNodePoolRequest
pzcnpuPayload
= lens _pzcnpuPayload
(\ s a -> s{_pzcnpuPayload = a})
pzcnpuNodePoolId :: Lens' ProjectsZonesClustersNodePoolsUpdate Text
pzcnpuNodePoolId
= lens _pzcnpuNodePoolId
(\ s a -> s{_pzcnpuNodePoolId = a})
pzcnpuClusterId :: Lens' ProjectsZonesClustersNodePoolsUpdate Text
pzcnpuClusterId
= lens _pzcnpuClusterId
(\ s a -> s{_pzcnpuClusterId = a})
pzcnpuProjectId :: Lens' ProjectsZonesClustersNodePoolsUpdate Text
pzcnpuProjectId
= lens _pzcnpuProjectId
(\ s a -> s{_pzcnpuProjectId = a})
pzcnpuCallback :: Lens' ProjectsZonesClustersNodePoolsUpdate (Maybe Text)
pzcnpuCallback
= lens _pzcnpuCallback
(\ s a -> s{_pzcnpuCallback = a})
instance GoogleRequest
ProjectsZonesClustersNodePoolsUpdate where
type Rs ProjectsZonesClustersNodePoolsUpdate =
Operation
type Scopes ProjectsZonesClustersNodePoolsUpdate =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsZonesClustersNodePoolsUpdate'{..}
= go _pzcnpuProjectId _pzcnpuZone _pzcnpuClusterId
_pzcnpuNodePoolId
_pzcnpuXgafv
_pzcnpuUploadProtocol
_pzcnpuAccessToken
_pzcnpuUploadType
_pzcnpuCallback
(Just AltJSON)
_pzcnpuPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesClustersNodePoolsUpdateResource)
mempty