{-# 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.Locations.Clusters.NodePools.SetManagement
(
ProjectsLocationsClustersNodePoolsSetManagementResource
, projectsLocationsClustersNodePoolsSetManagement
, ProjectsLocationsClustersNodePoolsSetManagement
, plcnpsmXgafv
, plcnpsmUploadProtocol
, plcnpsmAccessToken
, plcnpsmUploadType
, plcnpsmPayload
, plcnpsmName
, plcnpsmCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersNodePoolsSetManagementResource
=
"v1" :>
CaptureMode "name" "setManagement" Text :>
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 ProjectsLocationsClustersNodePoolsSetManagement = ProjectsLocationsClustersNodePoolsSetManagement'
{ _plcnpsmXgafv :: !(Maybe Xgafv)
, _plcnpsmUploadProtocol :: !(Maybe Text)
, _plcnpsmAccessToken :: !(Maybe Text)
, _plcnpsmUploadType :: !(Maybe Text)
, _plcnpsmPayload :: !SetNodePoolManagementRequest
, _plcnpsmName :: !Text
, _plcnpsmCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersNodePoolsSetManagement
:: SetNodePoolManagementRequest
-> Text
-> ProjectsLocationsClustersNodePoolsSetManagement
projectsLocationsClustersNodePoolsSetManagement pPlcnpsmPayload_ pPlcnpsmName_ =
ProjectsLocationsClustersNodePoolsSetManagement'
{ _plcnpsmXgafv = Nothing
, _plcnpsmUploadProtocol = Nothing
, _plcnpsmAccessToken = Nothing
, _plcnpsmUploadType = Nothing
, _plcnpsmPayload = pPlcnpsmPayload_
, _plcnpsmName = pPlcnpsmName_
, _plcnpsmCallback = Nothing
}
plcnpsmXgafv :: Lens' ProjectsLocationsClustersNodePoolsSetManagement (Maybe Xgafv)
plcnpsmXgafv
= lens _plcnpsmXgafv (\ s a -> s{_plcnpsmXgafv = a})
plcnpsmUploadProtocol :: Lens' ProjectsLocationsClustersNodePoolsSetManagement (Maybe Text)
plcnpsmUploadProtocol
= lens _plcnpsmUploadProtocol
(\ s a -> s{_plcnpsmUploadProtocol = a})
plcnpsmAccessToken :: Lens' ProjectsLocationsClustersNodePoolsSetManagement (Maybe Text)
plcnpsmAccessToken
= lens _plcnpsmAccessToken
(\ s a -> s{_plcnpsmAccessToken = a})
plcnpsmUploadType :: Lens' ProjectsLocationsClustersNodePoolsSetManagement (Maybe Text)
plcnpsmUploadType
= lens _plcnpsmUploadType
(\ s a -> s{_plcnpsmUploadType = a})
plcnpsmPayload :: Lens' ProjectsLocationsClustersNodePoolsSetManagement SetNodePoolManagementRequest
plcnpsmPayload
= lens _plcnpsmPayload
(\ s a -> s{_plcnpsmPayload = a})
plcnpsmName :: Lens' ProjectsLocationsClustersNodePoolsSetManagement Text
plcnpsmName
= lens _plcnpsmName (\ s a -> s{_plcnpsmName = a})
plcnpsmCallback :: Lens' ProjectsLocationsClustersNodePoolsSetManagement (Maybe Text)
plcnpsmCallback
= lens _plcnpsmCallback
(\ s a -> s{_plcnpsmCallback = a})
instance GoogleRequest
ProjectsLocationsClustersNodePoolsSetManagement where
type Rs
ProjectsLocationsClustersNodePoolsSetManagement
= Operation
type Scopes
ProjectsLocationsClustersNodePoolsSetManagement
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersNodePoolsSetManagement'{..}
= go _plcnpsmName _plcnpsmXgafv
_plcnpsmUploadProtocol
_plcnpsmAccessToken
_plcnpsmUploadType
_plcnpsmCallback
(Just AltJSON)
_plcnpsmPayload
containerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsClustersNodePoolsSetManagementResource)
mempty