{-# 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.UpdateMaster
(
ProjectsLocationsClustersUpdateMasterResource
, projectsLocationsClustersUpdateMaster
, ProjectsLocationsClustersUpdateMaster
, plcumXgafv
, plcumUploadProtocol
, plcumAccessToken
, plcumUploadType
, plcumPayload
, plcumName
, plcumCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersUpdateMasterResource =
"v1" :>
CaptureMode "name" "updateMaster" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] UpdateMasterRequest :>
Post '[JSON] Operation
data ProjectsLocationsClustersUpdateMaster = ProjectsLocationsClustersUpdateMaster'
{ _plcumXgafv :: !(Maybe Xgafv)
, _plcumUploadProtocol :: !(Maybe Text)
, _plcumAccessToken :: !(Maybe Text)
, _plcumUploadType :: !(Maybe Text)
, _plcumPayload :: !UpdateMasterRequest
, _plcumName :: !Text
, _plcumCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersUpdateMaster
:: UpdateMasterRequest
-> Text
-> ProjectsLocationsClustersUpdateMaster
projectsLocationsClustersUpdateMaster pPlcumPayload_ pPlcumName_ =
ProjectsLocationsClustersUpdateMaster'
{ _plcumXgafv = Nothing
, _plcumUploadProtocol = Nothing
, _plcumAccessToken = Nothing
, _plcumUploadType = Nothing
, _plcumPayload = pPlcumPayload_
, _plcumName = pPlcumName_
, _plcumCallback = Nothing
}
plcumXgafv :: Lens' ProjectsLocationsClustersUpdateMaster (Maybe Xgafv)
plcumXgafv
= lens _plcumXgafv (\ s a -> s{_plcumXgafv = a})
plcumUploadProtocol :: Lens' ProjectsLocationsClustersUpdateMaster (Maybe Text)
plcumUploadProtocol
= lens _plcumUploadProtocol
(\ s a -> s{_plcumUploadProtocol = a})
plcumAccessToken :: Lens' ProjectsLocationsClustersUpdateMaster (Maybe Text)
plcumAccessToken
= lens _plcumAccessToken
(\ s a -> s{_plcumAccessToken = a})
plcumUploadType :: Lens' ProjectsLocationsClustersUpdateMaster (Maybe Text)
plcumUploadType
= lens _plcumUploadType
(\ s a -> s{_plcumUploadType = a})
plcumPayload :: Lens' ProjectsLocationsClustersUpdateMaster UpdateMasterRequest
plcumPayload
= lens _plcumPayload (\ s a -> s{_plcumPayload = a})
plcumName :: Lens' ProjectsLocationsClustersUpdateMaster Text
plcumName
= lens _plcumName (\ s a -> s{_plcumName = a})
plcumCallback :: Lens' ProjectsLocationsClustersUpdateMaster (Maybe Text)
plcumCallback
= lens _plcumCallback
(\ s a -> s{_plcumCallback = a})
instance GoogleRequest
ProjectsLocationsClustersUpdateMaster where
type Rs ProjectsLocationsClustersUpdateMaster =
Operation
type Scopes ProjectsLocationsClustersUpdateMaster =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersUpdateMaster'{..}
= go _plcumName _plcumXgafv _plcumUploadProtocol
_plcumAccessToken
_plcumUploadType
_plcumCallback
(Just AltJSON)
_plcumPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsClustersUpdateMasterResource)
mempty