{-# 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.Master
(
ProjectsZonesClustersMasterResource
, projectsZonesClustersMaster
, ProjectsZonesClustersMaster
, pzcmXgafv
, pzcmUploadProtocol
, pzcmAccessToken
, pzcmUploadType
, pzcmZone
, pzcmPayload
, pzcmClusterId
, pzcmProjectId
, pzcmCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersMasterResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"master" :>
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 ProjectsZonesClustersMaster = ProjectsZonesClustersMaster'
{ _pzcmXgafv :: !(Maybe Xgafv)
, _pzcmUploadProtocol :: !(Maybe Text)
, _pzcmAccessToken :: !(Maybe Text)
, _pzcmUploadType :: !(Maybe Text)
, _pzcmZone :: !Text
, _pzcmPayload :: !UpdateMasterRequest
, _pzcmClusterId :: !Text
, _pzcmProjectId :: !Text
, _pzcmCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersMaster
:: Text
-> UpdateMasterRequest
-> Text
-> Text
-> ProjectsZonesClustersMaster
projectsZonesClustersMaster pPzcmZone_ pPzcmPayload_ pPzcmClusterId_ pPzcmProjectId_ =
ProjectsZonesClustersMaster'
{ _pzcmXgafv = Nothing
, _pzcmUploadProtocol = Nothing
, _pzcmAccessToken = Nothing
, _pzcmUploadType = Nothing
, _pzcmZone = pPzcmZone_
, _pzcmPayload = pPzcmPayload_
, _pzcmClusterId = pPzcmClusterId_
, _pzcmProjectId = pPzcmProjectId_
, _pzcmCallback = Nothing
}
pzcmXgafv :: Lens' ProjectsZonesClustersMaster (Maybe Xgafv)
pzcmXgafv
= lens _pzcmXgafv (\ s a -> s{_pzcmXgafv = a})
pzcmUploadProtocol :: Lens' ProjectsZonesClustersMaster (Maybe Text)
pzcmUploadProtocol
= lens _pzcmUploadProtocol
(\ s a -> s{_pzcmUploadProtocol = a})
pzcmAccessToken :: Lens' ProjectsZonesClustersMaster (Maybe Text)
pzcmAccessToken
= lens _pzcmAccessToken
(\ s a -> s{_pzcmAccessToken = a})
pzcmUploadType :: Lens' ProjectsZonesClustersMaster (Maybe Text)
pzcmUploadType
= lens _pzcmUploadType
(\ s a -> s{_pzcmUploadType = a})
pzcmZone :: Lens' ProjectsZonesClustersMaster Text
pzcmZone = lens _pzcmZone (\ s a -> s{_pzcmZone = a})
pzcmPayload :: Lens' ProjectsZonesClustersMaster UpdateMasterRequest
pzcmPayload
= lens _pzcmPayload (\ s a -> s{_pzcmPayload = a})
pzcmClusterId :: Lens' ProjectsZonesClustersMaster Text
pzcmClusterId
= lens _pzcmClusterId
(\ s a -> s{_pzcmClusterId = a})
pzcmProjectId :: Lens' ProjectsZonesClustersMaster Text
pzcmProjectId
= lens _pzcmProjectId
(\ s a -> s{_pzcmProjectId = a})
pzcmCallback :: Lens' ProjectsZonesClustersMaster (Maybe Text)
pzcmCallback
= lens _pzcmCallback (\ s a -> s{_pzcmCallback = a})
instance GoogleRequest ProjectsZonesClustersMaster
where
type Rs ProjectsZonesClustersMaster = Operation
type Scopes ProjectsZonesClustersMaster =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesClustersMaster'{..}
= go _pzcmProjectId _pzcmZone _pzcmClusterId
_pzcmXgafv
_pzcmUploadProtocol
_pzcmAccessToken
_pzcmUploadType
_pzcmCallback
(Just AltJSON)
_pzcmPayload
containerService
where go
= buildClient
(Proxy :: Proxy ProjectsZonesClustersMasterResource)
mempty