{-# 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.Logging
(
ProjectsZonesClustersLoggingResource
, projectsZonesClustersLogging
, ProjectsZonesClustersLogging
, pzclXgafv
, pzclUploadProtocol
, pzclAccessToken
, pzclUploadType
, pzclZone
, pzclPayload
, pzclClusterId
, pzclProjectId
, pzclCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersLoggingResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"logging" :>
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 ProjectsZonesClustersLogging = ProjectsZonesClustersLogging'
{ _pzclXgafv :: !(Maybe Xgafv)
, _pzclUploadProtocol :: !(Maybe Text)
, _pzclAccessToken :: !(Maybe Text)
, _pzclUploadType :: !(Maybe Text)
, _pzclZone :: !Text
, _pzclPayload :: !SetLoggingServiceRequest
, _pzclClusterId :: !Text
, _pzclProjectId :: !Text
, _pzclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersLogging
:: Text
-> SetLoggingServiceRequest
-> Text
-> Text
-> ProjectsZonesClustersLogging
projectsZonesClustersLogging pPzclZone_ pPzclPayload_ pPzclClusterId_ pPzclProjectId_ =
ProjectsZonesClustersLogging'
{ _pzclXgafv = Nothing
, _pzclUploadProtocol = Nothing
, _pzclAccessToken = Nothing
, _pzclUploadType = Nothing
, _pzclZone = pPzclZone_
, _pzclPayload = pPzclPayload_
, _pzclClusterId = pPzclClusterId_
, _pzclProjectId = pPzclProjectId_
, _pzclCallback = Nothing
}
pzclXgafv :: Lens' ProjectsZonesClustersLogging (Maybe Xgafv)
pzclXgafv
= lens _pzclXgafv (\ s a -> s{_pzclXgafv = a})
pzclUploadProtocol :: Lens' ProjectsZonesClustersLogging (Maybe Text)
pzclUploadProtocol
= lens _pzclUploadProtocol
(\ s a -> s{_pzclUploadProtocol = a})
pzclAccessToken :: Lens' ProjectsZonesClustersLogging (Maybe Text)
pzclAccessToken
= lens _pzclAccessToken
(\ s a -> s{_pzclAccessToken = a})
pzclUploadType :: Lens' ProjectsZonesClustersLogging (Maybe Text)
pzclUploadType
= lens _pzclUploadType
(\ s a -> s{_pzclUploadType = a})
pzclZone :: Lens' ProjectsZonesClustersLogging Text
pzclZone = lens _pzclZone (\ s a -> s{_pzclZone = a})
pzclPayload :: Lens' ProjectsZonesClustersLogging SetLoggingServiceRequest
pzclPayload
= lens _pzclPayload (\ s a -> s{_pzclPayload = a})
pzclClusterId :: Lens' ProjectsZonesClustersLogging Text
pzclClusterId
= lens _pzclClusterId
(\ s a -> s{_pzclClusterId = a})
pzclProjectId :: Lens' ProjectsZonesClustersLogging Text
pzclProjectId
= lens _pzclProjectId
(\ s a -> s{_pzclProjectId = a})
pzclCallback :: Lens' ProjectsZonesClustersLogging (Maybe Text)
pzclCallback
= lens _pzclCallback (\ s a -> s{_pzclCallback = a})
instance GoogleRequest ProjectsZonesClustersLogging
where
type Rs ProjectsZonesClustersLogging = Operation
type Scopes ProjectsZonesClustersLogging =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesClustersLogging'{..}
= go _pzclProjectId _pzclZone _pzclClusterId
_pzclXgafv
_pzclUploadProtocol
_pzclAccessToken
_pzclUploadType
_pzclCallback
(Just AltJSON)
_pzclPayload
containerService
where go
= buildClient
(Proxy :: Proxy ProjectsZonesClustersLoggingResource)
mempty