{-# 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.SetAutoscaling
(
ProjectsLocationsClustersNodePoolsSetAutoscalingResource
, projectsLocationsClustersNodePoolsSetAutoscaling
, ProjectsLocationsClustersNodePoolsSetAutoscaling
, plcnpsaXgafv
, plcnpsaUploadProtocol
, plcnpsaAccessToken
, plcnpsaUploadType
, plcnpsaPayload
, plcnpsaName
, plcnpsaCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersNodePoolsSetAutoscalingResource
=
"v1" :>
CaptureMode "name" "setAutoscaling" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SetNodePoolAutoscalingRequest :>
Post '[JSON] Operation
data ProjectsLocationsClustersNodePoolsSetAutoscaling = ProjectsLocationsClustersNodePoolsSetAutoscaling'
{ _plcnpsaXgafv :: !(Maybe Xgafv)
, _plcnpsaUploadProtocol :: !(Maybe Text)
, _plcnpsaAccessToken :: !(Maybe Text)
, _plcnpsaUploadType :: !(Maybe Text)
, _plcnpsaPayload :: !SetNodePoolAutoscalingRequest
, _plcnpsaName :: !Text
, _plcnpsaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersNodePoolsSetAutoscaling
:: SetNodePoolAutoscalingRequest
-> Text
-> ProjectsLocationsClustersNodePoolsSetAutoscaling
projectsLocationsClustersNodePoolsSetAutoscaling pPlcnpsaPayload_ pPlcnpsaName_ =
ProjectsLocationsClustersNodePoolsSetAutoscaling'
{ _plcnpsaXgafv = Nothing
, _plcnpsaUploadProtocol = Nothing
, _plcnpsaAccessToken = Nothing
, _plcnpsaUploadType = Nothing
, _plcnpsaPayload = pPlcnpsaPayload_
, _plcnpsaName = pPlcnpsaName_
, _plcnpsaCallback = Nothing
}
plcnpsaXgafv :: Lens' ProjectsLocationsClustersNodePoolsSetAutoscaling (Maybe Xgafv)
plcnpsaXgafv
= lens _plcnpsaXgafv (\ s a -> s{_plcnpsaXgafv = a})
plcnpsaUploadProtocol :: Lens' ProjectsLocationsClustersNodePoolsSetAutoscaling (Maybe Text)
plcnpsaUploadProtocol
= lens _plcnpsaUploadProtocol
(\ s a -> s{_plcnpsaUploadProtocol = a})
plcnpsaAccessToken :: Lens' ProjectsLocationsClustersNodePoolsSetAutoscaling (Maybe Text)
plcnpsaAccessToken
= lens _plcnpsaAccessToken
(\ s a -> s{_plcnpsaAccessToken = a})
plcnpsaUploadType :: Lens' ProjectsLocationsClustersNodePoolsSetAutoscaling (Maybe Text)
plcnpsaUploadType
= lens _plcnpsaUploadType
(\ s a -> s{_plcnpsaUploadType = a})
plcnpsaPayload :: Lens' ProjectsLocationsClustersNodePoolsSetAutoscaling SetNodePoolAutoscalingRequest
plcnpsaPayload
= lens _plcnpsaPayload
(\ s a -> s{_plcnpsaPayload = a})
plcnpsaName :: Lens' ProjectsLocationsClustersNodePoolsSetAutoscaling Text
plcnpsaName
= lens _plcnpsaName (\ s a -> s{_plcnpsaName = a})
plcnpsaCallback :: Lens' ProjectsLocationsClustersNodePoolsSetAutoscaling (Maybe Text)
plcnpsaCallback
= lens _plcnpsaCallback
(\ s a -> s{_plcnpsaCallback = a})
instance GoogleRequest
ProjectsLocationsClustersNodePoolsSetAutoscaling
where
type Rs
ProjectsLocationsClustersNodePoolsSetAutoscaling
= Operation
type Scopes
ProjectsLocationsClustersNodePoolsSetAutoscaling
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersNodePoolsSetAutoscaling'{..}
= go _plcnpsaName _plcnpsaXgafv
_plcnpsaUploadProtocol
_plcnpsaAccessToken
_plcnpsaUploadType
_plcnpsaCallback
(Just AltJSON)
_plcnpsaPayload
containerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsClustersNodePoolsSetAutoscalingResource)
mempty