{-# 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.SetMonitoring
(
ProjectsLocationsClustersSetMonitoringResource
, projectsLocationsClustersSetMonitoring
, ProjectsLocationsClustersSetMonitoring
, plcsmXgafv
, plcsmUploadProtocol
, plcsmAccessToken
, plcsmUploadType
, plcsmPayload
, plcsmName
, plcsmCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersSetMonitoringResource =
"v1" :>
CaptureMode "name" "setMonitoring" Text :>
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 ProjectsLocationsClustersSetMonitoring = ProjectsLocationsClustersSetMonitoring'
{ _plcsmXgafv :: !(Maybe Xgafv)
, _plcsmUploadProtocol :: !(Maybe Text)
, _plcsmAccessToken :: !(Maybe Text)
, _plcsmUploadType :: !(Maybe Text)
, _plcsmPayload :: !SetMonitoringServiceRequest
, _plcsmName :: !Text
, _plcsmCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersSetMonitoring
:: SetMonitoringServiceRequest
-> Text
-> ProjectsLocationsClustersSetMonitoring
projectsLocationsClustersSetMonitoring pPlcsmPayload_ pPlcsmName_ =
ProjectsLocationsClustersSetMonitoring'
{ _plcsmXgafv = Nothing
, _plcsmUploadProtocol = Nothing
, _plcsmAccessToken = Nothing
, _plcsmUploadType = Nothing
, _plcsmPayload = pPlcsmPayload_
, _plcsmName = pPlcsmName_
, _plcsmCallback = Nothing
}
plcsmXgafv :: Lens' ProjectsLocationsClustersSetMonitoring (Maybe Xgafv)
plcsmXgafv
= lens _plcsmXgafv (\ s a -> s{_plcsmXgafv = a})
plcsmUploadProtocol :: Lens' ProjectsLocationsClustersSetMonitoring (Maybe Text)
plcsmUploadProtocol
= lens _plcsmUploadProtocol
(\ s a -> s{_plcsmUploadProtocol = a})
plcsmAccessToken :: Lens' ProjectsLocationsClustersSetMonitoring (Maybe Text)
plcsmAccessToken
= lens _plcsmAccessToken
(\ s a -> s{_plcsmAccessToken = a})
plcsmUploadType :: Lens' ProjectsLocationsClustersSetMonitoring (Maybe Text)
plcsmUploadType
= lens _plcsmUploadType
(\ s a -> s{_plcsmUploadType = a})
plcsmPayload :: Lens' ProjectsLocationsClustersSetMonitoring SetMonitoringServiceRequest
plcsmPayload
= lens _plcsmPayload (\ s a -> s{_plcsmPayload = a})
plcsmName :: Lens' ProjectsLocationsClustersSetMonitoring Text
plcsmName
= lens _plcsmName (\ s a -> s{_plcsmName = a})
plcsmCallback :: Lens' ProjectsLocationsClustersSetMonitoring (Maybe Text)
plcsmCallback
= lens _plcsmCallback
(\ s a -> s{_plcsmCallback = a})
instance GoogleRequest
ProjectsLocationsClustersSetMonitoring where
type Rs ProjectsLocationsClustersSetMonitoring =
Operation
type Scopes ProjectsLocationsClustersSetMonitoring =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersSetMonitoring'{..}
= go _plcsmName _plcsmXgafv _plcsmUploadProtocol
_plcsmAccessToken
_plcsmUploadType
_plcsmCallback
(Just AltJSON)
_plcsmPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsClustersSetMonitoringResource)
mempty