{-# 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.Monitoring
(
ProjectsZonesClustersMonitoringResource
, projectsZonesClustersMonitoring
, ProjectsZonesClustersMonitoring
, pzcmzXgafv
, pzcmzUploadProtocol
, pzcmzAccessToken
, pzcmzUploadType
, pzcmzZone
, pzcmzPayload
, pzcmzClusterId
, pzcmzProjectId
, pzcmzCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersMonitoringResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"monitoring" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SetMonitoringServiceRequest :>
Post '[JSON] Operation
data ProjectsZonesClustersMonitoring = ProjectsZonesClustersMonitoring'
{ _pzcmzXgafv :: !(Maybe Xgafv)
, _pzcmzUploadProtocol :: !(Maybe Text)
, _pzcmzAccessToken :: !(Maybe Text)
, _pzcmzUploadType :: !(Maybe Text)
, _pzcmzZone :: !Text
, _pzcmzPayload :: !SetMonitoringServiceRequest
, _pzcmzClusterId :: !Text
, _pzcmzProjectId :: !Text
, _pzcmzCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersMonitoring
:: Text
-> SetMonitoringServiceRequest
-> Text
-> Text
-> ProjectsZonesClustersMonitoring
projectsZonesClustersMonitoring pPzcmzZone_ pPzcmzPayload_ pPzcmzClusterId_ pPzcmzProjectId_ =
ProjectsZonesClustersMonitoring'
{ _pzcmzXgafv = Nothing
, _pzcmzUploadProtocol = Nothing
, _pzcmzAccessToken = Nothing
, _pzcmzUploadType = Nothing
, _pzcmzZone = pPzcmzZone_
, _pzcmzPayload = pPzcmzPayload_
, _pzcmzClusterId = pPzcmzClusterId_
, _pzcmzProjectId = pPzcmzProjectId_
, _pzcmzCallback = Nothing
}
pzcmzXgafv :: Lens' ProjectsZonesClustersMonitoring (Maybe Xgafv)
pzcmzXgafv
= lens _pzcmzXgafv (\ s a -> s{_pzcmzXgafv = a})
pzcmzUploadProtocol :: Lens' ProjectsZonesClustersMonitoring (Maybe Text)
pzcmzUploadProtocol
= lens _pzcmzUploadProtocol
(\ s a -> s{_pzcmzUploadProtocol = a})
pzcmzAccessToken :: Lens' ProjectsZonesClustersMonitoring (Maybe Text)
pzcmzAccessToken
= lens _pzcmzAccessToken
(\ s a -> s{_pzcmzAccessToken = a})
pzcmzUploadType :: Lens' ProjectsZonesClustersMonitoring (Maybe Text)
pzcmzUploadType
= lens _pzcmzUploadType
(\ s a -> s{_pzcmzUploadType = a})
pzcmzZone :: Lens' ProjectsZonesClustersMonitoring Text
pzcmzZone
= lens _pzcmzZone (\ s a -> s{_pzcmzZone = a})
pzcmzPayload :: Lens' ProjectsZonesClustersMonitoring SetMonitoringServiceRequest
pzcmzPayload
= lens _pzcmzPayload (\ s a -> s{_pzcmzPayload = a})
pzcmzClusterId :: Lens' ProjectsZonesClustersMonitoring Text
pzcmzClusterId
= lens _pzcmzClusterId
(\ s a -> s{_pzcmzClusterId = a})
pzcmzProjectId :: Lens' ProjectsZonesClustersMonitoring Text
pzcmzProjectId
= lens _pzcmzProjectId
(\ s a -> s{_pzcmzProjectId = a})
pzcmzCallback :: Lens' ProjectsZonesClustersMonitoring (Maybe Text)
pzcmzCallback
= lens _pzcmzCallback
(\ s a -> s{_pzcmzCallback = a})
instance GoogleRequest
ProjectsZonesClustersMonitoring where
type Rs ProjectsZonesClustersMonitoring = Operation
type Scopes ProjectsZonesClustersMonitoring =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesClustersMonitoring'{..}
= go _pzcmzProjectId _pzcmzZone _pzcmzClusterId
_pzcmzXgafv
_pzcmzUploadProtocol
_pzcmzAccessToken
_pzcmzUploadType
_pzcmzCallback
(Just AltJSON)
_pzcmzPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesClustersMonitoringResource)
mempty