{-# 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.SetLogging
(
ProjectsLocationsClustersSetLoggingResource
, projectsLocationsClustersSetLogging
, ProjectsLocationsClustersSetLogging
, plcslXgafv
, plcslUploadProtocol
, plcslAccessToken
, plcslUploadType
, plcslPayload
, plcslName
, plcslCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersSetLoggingResource =
"v1" :>
CaptureMode "name" "setLogging" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SetLoggingServiceRequest :>
Post '[JSON] Operation
data ProjectsLocationsClustersSetLogging = ProjectsLocationsClustersSetLogging'
{ _plcslXgafv :: !(Maybe Xgafv)
, _plcslUploadProtocol :: !(Maybe Text)
, _plcslAccessToken :: !(Maybe Text)
, _plcslUploadType :: !(Maybe Text)
, _plcslPayload :: !SetLoggingServiceRequest
, _plcslName :: !Text
, _plcslCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersSetLogging
:: SetLoggingServiceRequest
-> Text
-> ProjectsLocationsClustersSetLogging
projectsLocationsClustersSetLogging pPlcslPayload_ pPlcslName_ =
ProjectsLocationsClustersSetLogging'
{ _plcslXgafv = Nothing
, _plcslUploadProtocol = Nothing
, _plcslAccessToken = Nothing
, _plcslUploadType = Nothing
, _plcslPayload = pPlcslPayload_
, _plcslName = pPlcslName_
, _plcslCallback = Nothing
}
plcslXgafv :: Lens' ProjectsLocationsClustersSetLogging (Maybe Xgafv)
plcslXgafv
= lens _plcslXgafv (\ s a -> s{_plcslXgafv = a})
plcslUploadProtocol :: Lens' ProjectsLocationsClustersSetLogging (Maybe Text)
plcslUploadProtocol
= lens _plcslUploadProtocol
(\ s a -> s{_plcslUploadProtocol = a})
plcslAccessToken :: Lens' ProjectsLocationsClustersSetLogging (Maybe Text)
plcslAccessToken
= lens _plcslAccessToken
(\ s a -> s{_plcslAccessToken = a})
plcslUploadType :: Lens' ProjectsLocationsClustersSetLogging (Maybe Text)
plcslUploadType
= lens _plcslUploadType
(\ s a -> s{_plcslUploadType = a})
plcslPayload :: Lens' ProjectsLocationsClustersSetLogging SetLoggingServiceRequest
plcslPayload
= lens _plcslPayload (\ s a -> s{_plcslPayload = a})
plcslName :: Lens' ProjectsLocationsClustersSetLogging Text
plcslName
= lens _plcslName (\ s a -> s{_plcslName = a})
plcslCallback :: Lens' ProjectsLocationsClustersSetLogging (Maybe Text)
plcslCallback
= lens _plcslCallback
(\ s a -> s{_plcslCallback = a})
instance GoogleRequest
ProjectsLocationsClustersSetLogging where
type Rs ProjectsLocationsClustersSetLogging =
Operation
type Scopes ProjectsLocationsClustersSetLogging =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersSetLogging'{..}
= go _plcslName _plcslXgafv _plcslUploadProtocol
_plcslAccessToken
_plcslUploadType
_plcslCallback
(Just AltJSON)
_plcslPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsClustersSetLoggingResource)
mempty