{-# 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.SetMasterAuth
(
ProjectsLocationsClustersSetMasterAuthResource
, projectsLocationsClustersSetMasterAuth
, ProjectsLocationsClustersSetMasterAuth
, plcsmaXgafv
, plcsmaUploadProtocol
, plcsmaAccessToken
, plcsmaUploadType
, plcsmaPayload
, plcsmaName
, plcsmaCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersSetMasterAuthResource =
"v1" :>
CaptureMode "name" "setMasterAuth" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SetMasterAuthRequest :>
Post '[JSON] Operation
data ProjectsLocationsClustersSetMasterAuth = ProjectsLocationsClustersSetMasterAuth'
{ _plcsmaXgafv :: !(Maybe Xgafv)
, _plcsmaUploadProtocol :: !(Maybe Text)
, _plcsmaAccessToken :: !(Maybe Text)
, _plcsmaUploadType :: !(Maybe Text)
, _plcsmaPayload :: !SetMasterAuthRequest
, _plcsmaName :: !Text
, _plcsmaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersSetMasterAuth
:: SetMasterAuthRequest
-> Text
-> ProjectsLocationsClustersSetMasterAuth
projectsLocationsClustersSetMasterAuth pPlcsmaPayload_ pPlcsmaName_ =
ProjectsLocationsClustersSetMasterAuth'
{ _plcsmaXgafv = Nothing
, _plcsmaUploadProtocol = Nothing
, _plcsmaAccessToken = Nothing
, _plcsmaUploadType = Nothing
, _plcsmaPayload = pPlcsmaPayload_
, _plcsmaName = pPlcsmaName_
, _plcsmaCallback = Nothing
}
plcsmaXgafv :: Lens' ProjectsLocationsClustersSetMasterAuth (Maybe Xgafv)
plcsmaXgafv
= lens _plcsmaXgafv (\ s a -> s{_plcsmaXgafv = a})
plcsmaUploadProtocol :: Lens' ProjectsLocationsClustersSetMasterAuth (Maybe Text)
plcsmaUploadProtocol
= lens _plcsmaUploadProtocol
(\ s a -> s{_plcsmaUploadProtocol = a})
plcsmaAccessToken :: Lens' ProjectsLocationsClustersSetMasterAuth (Maybe Text)
plcsmaAccessToken
= lens _plcsmaAccessToken
(\ s a -> s{_plcsmaAccessToken = a})
plcsmaUploadType :: Lens' ProjectsLocationsClustersSetMasterAuth (Maybe Text)
plcsmaUploadType
= lens _plcsmaUploadType
(\ s a -> s{_plcsmaUploadType = a})
plcsmaPayload :: Lens' ProjectsLocationsClustersSetMasterAuth SetMasterAuthRequest
plcsmaPayload
= lens _plcsmaPayload
(\ s a -> s{_plcsmaPayload = a})
plcsmaName :: Lens' ProjectsLocationsClustersSetMasterAuth Text
plcsmaName
= lens _plcsmaName (\ s a -> s{_plcsmaName = a})
plcsmaCallback :: Lens' ProjectsLocationsClustersSetMasterAuth (Maybe Text)
plcsmaCallback
= lens _plcsmaCallback
(\ s a -> s{_plcsmaCallback = a})
instance GoogleRequest
ProjectsLocationsClustersSetMasterAuth where
type Rs ProjectsLocationsClustersSetMasterAuth =
Operation
type Scopes ProjectsLocationsClustersSetMasterAuth =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersSetMasterAuth'{..}
= go _plcsmaName _plcsmaXgafv _plcsmaUploadProtocol
_plcsmaAccessToken
_plcsmaUploadType
_plcsmaCallback
(Just AltJSON)
_plcsmaPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsClustersSetMasterAuthResource)
mempty