{-# 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.Update
(
ProjectsLocationsClustersNodePoolsUpdateResource
, projectsLocationsClustersNodePoolsUpdate
, ProjectsLocationsClustersNodePoolsUpdate
, plcnpuXgafv
, plcnpuUploadProtocol
, plcnpuAccessToken
, plcnpuUploadType
, plcnpuPayload
, plcnpuName
, plcnpuCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersNodePoolsUpdateResource
=
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] UpdateNodePoolRequest :>
Put '[JSON] Operation
data ProjectsLocationsClustersNodePoolsUpdate = ProjectsLocationsClustersNodePoolsUpdate'
{ _plcnpuXgafv :: !(Maybe Xgafv)
, _plcnpuUploadProtocol :: !(Maybe Text)
, _plcnpuAccessToken :: !(Maybe Text)
, _plcnpuUploadType :: !(Maybe Text)
, _plcnpuPayload :: !UpdateNodePoolRequest
, _plcnpuName :: !Text
, _plcnpuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersNodePoolsUpdate
:: UpdateNodePoolRequest
-> Text
-> ProjectsLocationsClustersNodePoolsUpdate
projectsLocationsClustersNodePoolsUpdate pPlcnpuPayload_ pPlcnpuName_ =
ProjectsLocationsClustersNodePoolsUpdate'
{ _plcnpuXgafv = Nothing
, _plcnpuUploadProtocol = Nothing
, _plcnpuAccessToken = Nothing
, _plcnpuUploadType = Nothing
, _plcnpuPayload = pPlcnpuPayload_
, _plcnpuName = pPlcnpuName_
, _plcnpuCallback = Nothing
}
plcnpuXgafv :: Lens' ProjectsLocationsClustersNodePoolsUpdate (Maybe Xgafv)
plcnpuXgafv
= lens _plcnpuXgafv (\ s a -> s{_plcnpuXgafv = a})
plcnpuUploadProtocol :: Lens' ProjectsLocationsClustersNodePoolsUpdate (Maybe Text)
plcnpuUploadProtocol
= lens _plcnpuUploadProtocol
(\ s a -> s{_plcnpuUploadProtocol = a})
plcnpuAccessToken :: Lens' ProjectsLocationsClustersNodePoolsUpdate (Maybe Text)
plcnpuAccessToken
= lens _plcnpuAccessToken
(\ s a -> s{_plcnpuAccessToken = a})
plcnpuUploadType :: Lens' ProjectsLocationsClustersNodePoolsUpdate (Maybe Text)
plcnpuUploadType
= lens _plcnpuUploadType
(\ s a -> s{_plcnpuUploadType = a})
plcnpuPayload :: Lens' ProjectsLocationsClustersNodePoolsUpdate UpdateNodePoolRequest
plcnpuPayload
= lens _plcnpuPayload
(\ s a -> s{_plcnpuPayload = a})
plcnpuName :: Lens' ProjectsLocationsClustersNodePoolsUpdate Text
plcnpuName
= lens _plcnpuName (\ s a -> s{_plcnpuName = a})
plcnpuCallback :: Lens' ProjectsLocationsClustersNodePoolsUpdate (Maybe Text)
plcnpuCallback
= lens _plcnpuCallback
(\ s a -> s{_plcnpuCallback = a})
instance GoogleRequest
ProjectsLocationsClustersNodePoolsUpdate where
type Rs ProjectsLocationsClustersNodePoolsUpdate =
Operation
type Scopes ProjectsLocationsClustersNodePoolsUpdate
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersNodePoolsUpdate'{..}
= go _plcnpuName _plcnpuXgafv _plcnpuUploadProtocol
_plcnpuAccessToken
_plcnpuUploadType
_plcnpuCallback
(Just AltJSON)
_plcnpuPayload
containerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsClustersNodePoolsUpdateResource)
mempty