{-# 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.Zones.Clusters.SetMasterAuth
(
ProjectsZonesClustersSetMasterAuthResource
, projectsZonesClustersSetMasterAuth
, ProjectsZonesClustersSetMasterAuth
, pzcsmaXgafv
, pzcsmaUploadProtocol
, pzcsmaAccessToken
, pzcsmaUploadType
, pzcsmaZone
, pzcsmaPayload
, pzcsmaClusterId
, pzcsmaProjectId
, pzcsmaCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersSetMasterAuthResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
CaptureMode "clusterId" "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 ProjectsZonesClustersSetMasterAuth = ProjectsZonesClustersSetMasterAuth'
{ _pzcsmaXgafv :: !(Maybe Xgafv)
, _pzcsmaUploadProtocol :: !(Maybe Text)
, _pzcsmaAccessToken :: !(Maybe Text)
, _pzcsmaUploadType :: !(Maybe Text)
, _pzcsmaZone :: !Text
, _pzcsmaPayload :: !SetMasterAuthRequest
, _pzcsmaClusterId :: !Text
, _pzcsmaProjectId :: !Text
, _pzcsmaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersSetMasterAuth
:: Text
-> SetMasterAuthRequest
-> Text
-> Text
-> ProjectsZonesClustersSetMasterAuth
projectsZonesClustersSetMasterAuth pPzcsmaZone_ pPzcsmaPayload_ pPzcsmaClusterId_ pPzcsmaProjectId_ =
ProjectsZonesClustersSetMasterAuth'
{ _pzcsmaXgafv = Nothing
, _pzcsmaUploadProtocol = Nothing
, _pzcsmaAccessToken = Nothing
, _pzcsmaUploadType = Nothing
, _pzcsmaZone = pPzcsmaZone_
, _pzcsmaPayload = pPzcsmaPayload_
, _pzcsmaClusterId = pPzcsmaClusterId_
, _pzcsmaProjectId = pPzcsmaProjectId_
, _pzcsmaCallback = Nothing
}
pzcsmaXgafv :: Lens' ProjectsZonesClustersSetMasterAuth (Maybe Xgafv)
pzcsmaXgafv
= lens _pzcsmaXgafv (\ s a -> s{_pzcsmaXgafv = a})
pzcsmaUploadProtocol :: Lens' ProjectsZonesClustersSetMasterAuth (Maybe Text)
pzcsmaUploadProtocol
= lens _pzcsmaUploadProtocol
(\ s a -> s{_pzcsmaUploadProtocol = a})
pzcsmaAccessToken :: Lens' ProjectsZonesClustersSetMasterAuth (Maybe Text)
pzcsmaAccessToken
= lens _pzcsmaAccessToken
(\ s a -> s{_pzcsmaAccessToken = a})
pzcsmaUploadType :: Lens' ProjectsZonesClustersSetMasterAuth (Maybe Text)
pzcsmaUploadType
= lens _pzcsmaUploadType
(\ s a -> s{_pzcsmaUploadType = a})
pzcsmaZone :: Lens' ProjectsZonesClustersSetMasterAuth Text
pzcsmaZone
= lens _pzcsmaZone (\ s a -> s{_pzcsmaZone = a})
pzcsmaPayload :: Lens' ProjectsZonesClustersSetMasterAuth SetMasterAuthRequest
pzcsmaPayload
= lens _pzcsmaPayload
(\ s a -> s{_pzcsmaPayload = a})
pzcsmaClusterId :: Lens' ProjectsZonesClustersSetMasterAuth Text
pzcsmaClusterId
= lens _pzcsmaClusterId
(\ s a -> s{_pzcsmaClusterId = a})
pzcsmaProjectId :: Lens' ProjectsZonesClustersSetMasterAuth Text
pzcsmaProjectId
= lens _pzcsmaProjectId
(\ s a -> s{_pzcsmaProjectId = a})
pzcsmaCallback :: Lens' ProjectsZonesClustersSetMasterAuth (Maybe Text)
pzcsmaCallback
= lens _pzcsmaCallback
(\ s a -> s{_pzcsmaCallback = a})
instance GoogleRequest
ProjectsZonesClustersSetMasterAuth where
type Rs ProjectsZonesClustersSetMasterAuth =
Operation
type Scopes ProjectsZonesClustersSetMasterAuth =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesClustersSetMasterAuth'{..}
= go _pzcsmaProjectId _pzcsmaZone _pzcsmaClusterId
_pzcsmaXgafv
_pzcsmaUploadProtocol
_pzcsmaAccessToken
_pzcsmaUploadType
_pzcsmaCallback
(Just AltJSON)
_pzcsmaPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesClustersSetMasterAuthResource)
mempty