{-# 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.SetSize
(
ProjectsZonesClustersNodePoolsSetSizeResource
, projectsZonesClustersNodePoolsSetSize
, ProjectsZonesClustersNodePoolsSetSize
, pzcnpssXgafv
, pzcnpssUploadProtocol
, pzcnpssAccessToken
, pzcnpssUploadType
, pzcnpssZone
, pzcnpssPayload
, pzcnpssNodePoolId
, pzcnpssClusterId
, pzcnpssProjectId
, pzcnpssCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersNodePoolsSetSizeResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"nodePools" :>
Capture "nodePoolId" Text :>
"setSize" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SetNodePoolSizeRequest :>
Post '[JSON] Operation
data ProjectsZonesClustersNodePoolsSetSize = ProjectsZonesClustersNodePoolsSetSize'
{ _pzcnpssXgafv :: !(Maybe Xgafv)
, _pzcnpssUploadProtocol :: !(Maybe Text)
, _pzcnpssAccessToken :: !(Maybe Text)
, _pzcnpssUploadType :: !(Maybe Text)
, _pzcnpssZone :: !Text
, _pzcnpssPayload :: !SetNodePoolSizeRequest
, _pzcnpssNodePoolId :: !Text
, _pzcnpssClusterId :: !Text
, _pzcnpssProjectId :: !Text
, _pzcnpssCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersNodePoolsSetSize
:: Text
-> SetNodePoolSizeRequest
-> Text
-> Text
-> Text
-> ProjectsZonesClustersNodePoolsSetSize
projectsZonesClustersNodePoolsSetSize pPzcnpssZone_ pPzcnpssPayload_ pPzcnpssNodePoolId_ pPzcnpssClusterId_ pPzcnpssProjectId_ =
ProjectsZonesClustersNodePoolsSetSize'
{ _pzcnpssXgafv = Nothing
, _pzcnpssUploadProtocol = Nothing
, _pzcnpssAccessToken = Nothing
, _pzcnpssUploadType = Nothing
, _pzcnpssZone = pPzcnpssZone_
, _pzcnpssPayload = pPzcnpssPayload_
, _pzcnpssNodePoolId = pPzcnpssNodePoolId_
, _pzcnpssClusterId = pPzcnpssClusterId_
, _pzcnpssProjectId = pPzcnpssProjectId_
, _pzcnpssCallback = Nothing
}
pzcnpssXgafv :: Lens' ProjectsZonesClustersNodePoolsSetSize (Maybe Xgafv)
pzcnpssXgafv
= lens _pzcnpssXgafv (\ s a -> s{_pzcnpssXgafv = a})
pzcnpssUploadProtocol :: Lens' ProjectsZonesClustersNodePoolsSetSize (Maybe Text)
pzcnpssUploadProtocol
= lens _pzcnpssUploadProtocol
(\ s a -> s{_pzcnpssUploadProtocol = a})
pzcnpssAccessToken :: Lens' ProjectsZonesClustersNodePoolsSetSize (Maybe Text)
pzcnpssAccessToken
= lens _pzcnpssAccessToken
(\ s a -> s{_pzcnpssAccessToken = a})
pzcnpssUploadType :: Lens' ProjectsZonesClustersNodePoolsSetSize (Maybe Text)
pzcnpssUploadType
= lens _pzcnpssUploadType
(\ s a -> s{_pzcnpssUploadType = a})
pzcnpssZone :: Lens' ProjectsZonesClustersNodePoolsSetSize Text
pzcnpssZone
= lens _pzcnpssZone (\ s a -> s{_pzcnpssZone = a})
pzcnpssPayload :: Lens' ProjectsZonesClustersNodePoolsSetSize SetNodePoolSizeRequest
pzcnpssPayload
= lens _pzcnpssPayload
(\ s a -> s{_pzcnpssPayload = a})
pzcnpssNodePoolId :: Lens' ProjectsZonesClustersNodePoolsSetSize Text
pzcnpssNodePoolId
= lens _pzcnpssNodePoolId
(\ s a -> s{_pzcnpssNodePoolId = a})
pzcnpssClusterId :: Lens' ProjectsZonesClustersNodePoolsSetSize Text
pzcnpssClusterId
= lens _pzcnpssClusterId
(\ s a -> s{_pzcnpssClusterId = a})
pzcnpssProjectId :: Lens' ProjectsZonesClustersNodePoolsSetSize Text
pzcnpssProjectId
= lens _pzcnpssProjectId
(\ s a -> s{_pzcnpssProjectId = a})
pzcnpssCallback :: Lens' ProjectsZonesClustersNodePoolsSetSize (Maybe Text)
pzcnpssCallback
= lens _pzcnpssCallback
(\ s a -> s{_pzcnpssCallback = a})
instance GoogleRequest
ProjectsZonesClustersNodePoolsSetSize where
type Rs ProjectsZonesClustersNodePoolsSetSize =
Operation
type Scopes ProjectsZonesClustersNodePoolsSetSize =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsZonesClustersNodePoolsSetSize'{..}
= go _pzcnpssProjectId _pzcnpssZone _pzcnpssClusterId
_pzcnpssNodePoolId
_pzcnpssXgafv
_pzcnpssUploadProtocol
_pzcnpssAccessToken
_pzcnpssUploadType
_pzcnpssCallback
(Just AltJSON)
_pzcnpssPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesClustersNodePoolsSetSizeResource)
mempty