{-# 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.SetManagement
(
ProjectsZonesClustersNodePoolsSetManagementResource
, projectsZonesClustersNodePoolsSetManagement
, ProjectsZonesClustersNodePoolsSetManagement
, pzcnpsmXgafv
, pzcnpsmUploadProtocol
, pzcnpsmAccessToken
, pzcnpsmUploadType
, pzcnpsmZone
, pzcnpsmPayload
, pzcnpsmNodePoolId
, pzcnpsmClusterId
, pzcnpsmProjectId
, pzcnpsmCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersNodePoolsSetManagementResource
=
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"nodePools" :>
Capture "nodePoolId" Text :>
"setManagement" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
SetNodePoolManagementRequest
:> Post '[JSON] Operation
data ProjectsZonesClustersNodePoolsSetManagement = ProjectsZonesClustersNodePoolsSetManagement'
{ _pzcnpsmXgafv :: !(Maybe Xgafv)
, _pzcnpsmUploadProtocol :: !(Maybe Text)
, _pzcnpsmAccessToken :: !(Maybe Text)
, _pzcnpsmUploadType :: !(Maybe Text)
, _pzcnpsmZone :: !Text
, _pzcnpsmPayload :: !SetNodePoolManagementRequest
, _pzcnpsmNodePoolId :: !Text
, _pzcnpsmClusterId :: !Text
, _pzcnpsmProjectId :: !Text
, _pzcnpsmCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersNodePoolsSetManagement
:: Text
-> SetNodePoolManagementRequest
-> Text
-> Text
-> Text
-> ProjectsZonesClustersNodePoolsSetManagement
projectsZonesClustersNodePoolsSetManagement pPzcnpsmZone_ pPzcnpsmPayload_ pPzcnpsmNodePoolId_ pPzcnpsmClusterId_ pPzcnpsmProjectId_ =
ProjectsZonesClustersNodePoolsSetManagement'
{ _pzcnpsmXgafv = Nothing
, _pzcnpsmUploadProtocol = Nothing
, _pzcnpsmAccessToken = Nothing
, _pzcnpsmUploadType = Nothing
, _pzcnpsmZone = pPzcnpsmZone_
, _pzcnpsmPayload = pPzcnpsmPayload_
, _pzcnpsmNodePoolId = pPzcnpsmNodePoolId_
, _pzcnpsmClusterId = pPzcnpsmClusterId_
, _pzcnpsmProjectId = pPzcnpsmProjectId_
, _pzcnpsmCallback = Nothing
}
pzcnpsmXgafv :: Lens' ProjectsZonesClustersNodePoolsSetManagement (Maybe Xgafv)
pzcnpsmXgafv
= lens _pzcnpsmXgafv (\ s a -> s{_pzcnpsmXgafv = a})
pzcnpsmUploadProtocol :: Lens' ProjectsZonesClustersNodePoolsSetManagement (Maybe Text)
pzcnpsmUploadProtocol
= lens _pzcnpsmUploadProtocol
(\ s a -> s{_pzcnpsmUploadProtocol = a})
pzcnpsmAccessToken :: Lens' ProjectsZonesClustersNodePoolsSetManagement (Maybe Text)
pzcnpsmAccessToken
= lens _pzcnpsmAccessToken
(\ s a -> s{_pzcnpsmAccessToken = a})
pzcnpsmUploadType :: Lens' ProjectsZonesClustersNodePoolsSetManagement (Maybe Text)
pzcnpsmUploadType
= lens _pzcnpsmUploadType
(\ s a -> s{_pzcnpsmUploadType = a})
pzcnpsmZone :: Lens' ProjectsZonesClustersNodePoolsSetManagement Text
pzcnpsmZone
= lens _pzcnpsmZone (\ s a -> s{_pzcnpsmZone = a})
pzcnpsmPayload :: Lens' ProjectsZonesClustersNodePoolsSetManagement SetNodePoolManagementRequest
pzcnpsmPayload
= lens _pzcnpsmPayload
(\ s a -> s{_pzcnpsmPayload = a})
pzcnpsmNodePoolId :: Lens' ProjectsZonesClustersNodePoolsSetManagement Text
pzcnpsmNodePoolId
= lens _pzcnpsmNodePoolId
(\ s a -> s{_pzcnpsmNodePoolId = a})
pzcnpsmClusterId :: Lens' ProjectsZonesClustersNodePoolsSetManagement Text
pzcnpsmClusterId
= lens _pzcnpsmClusterId
(\ s a -> s{_pzcnpsmClusterId = a})
pzcnpsmProjectId :: Lens' ProjectsZonesClustersNodePoolsSetManagement Text
pzcnpsmProjectId
= lens _pzcnpsmProjectId
(\ s a -> s{_pzcnpsmProjectId = a})
pzcnpsmCallback :: Lens' ProjectsZonesClustersNodePoolsSetManagement (Maybe Text)
pzcnpsmCallback
= lens _pzcnpsmCallback
(\ s a -> s{_pzcnpsmCallback = a})
instance GoogleRequest
ProjectsZonesClustersNodePoolsSetManagement where
type Rs ProjectsZonesClustersNodePoolsSetManagement =
Operation
type Scopes
ProjectsZonesClustersNodePoolsSetManagement
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsZonesClustersNodePoolsSetManagement'{..}
= go _pzcnpsmProjectId _pzcnpsmZone _pzcnpsmClusterId
_pzcnpsmNodePoolId
_pzcnpsmXgafv
_pzcnpsmUploadProtocol
_pzcnpsmAccessToken
_pzcnpsmUploadType
_pzcnpsmCallback
(Just AltJSON)
_pzcnpsmPayload
containerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsZonesClustersNodePoolsSetManagementResource)
mempty