{-# 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.Update
(
ProjectsLocationsClustersUpdateResource
, projectsLocationsClustersUpdate
, ProjectsLocationsClustersUpdate
, plcuXgafv
, plcuUploadProtocol
, plcuAccessToken
, plcuUploadType
, plcuPayload
, plcuName
, plcuCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersUpdateResource =
"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] UpdateClusterRequest :>
Put '[JSON] Operation
data ProjectsLocationsClustersUpdate = ProjectsLocationsClustersUpdate'
{ _plcuXgafv :: !(Maybe Xgafv)
, _plcuUploadProtocol :: !(Maybe Text)
, _plcuAccessToken :: !(Maybe Text)
, _plcuUploadType :: !(Maybe Text)
, _plcuPayload :: !UpdateClusterRequest
, _plcuName :: !Text
, _plcuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersUpdate
:: UpdateClusterRequest
-> Text
-> ProjectsLocationsClustersUpdate
projectsLocationsClustersUpdate pPlcuPayload_ pPlcuName_ =
ProjectsLocationsClustersUpdate'
{ _plcuXgafv = Nothing
, _plcuUploadProtocol = Nothing
, _plcuAccessToken = Nothing
, _plcuUploadType = Nothing
, _plcuPayload = pPlcuPayload_
, _plcuName = pPlcuName_
, _plcuCallback = Nothing
}
plcuXgafv :: Lens' ProjectsLocationsClustersUpdate (Maybe Xgafv)
plcuXgafv
= lens _plcuXgafv (\ s a -> s{_plcuXgafv = a})
plcuUploadProtocol :: Lens' ProjectsLocationsClustersUpdate (Maybe Text)
plcuUploadProtocol
= lens _plcuUploadProtocol
(\ s a -> s{_plcuUploadProtocol = a})
plcuAccessToken :: Lens' ProjectsLocationsClustersUpdate (Maybe Text)
plcuAccessToken
= lens _plcuAccessToken
(\ s a -> s{_plcuAccessToken = a})
plcuUploadType :: Lens' ProjectsLocationsClustersUpdate (Maybe Text)
plcuUploadType
= lens _plcuUploadType
(\ s a -> s{_plcuUploadType = a})
plcuPayload :: Lens' ProjectsLocationsClustersUpdate UpdateClusterRequest
plcuPayload
= lens _plcuPayload (\ s a -> s{_plcuPayload = a})
plcuName :: Lens' ProjectsLocationsClustersUpdate Text
plcuName = lens _plcuName (\ s a -> s{_plcuName = a})
plcuCallback :: Lens' ProjectsLocationsClustersUpdate (Maybe Text)
plcuCallback
= lens _plcuCallback (\ s a -> s{_plcuCallback = a})
instance GoogleRequest
ProjectsLocationsClustersUpdate where
type Rs ProjectsLocationsClustersUpdate = Operation
type Scopes ProjectsLocationsClustersUpdate =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsClustersUpdate'{..}
= go _plcuName _plcuXgafv _plcuUploadProtocol
_plcuAccessToken
_plcuUploadType
_plcuCallback
(Just AltJSON)
_plcuPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsClustersUpdateResource)
mempty