{-# 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.Logging.Projects.Metrics.Delete
(
ProjectsMetricsDeleteResource
, projectsMetricsDelete
, ProjectsMetricsDelete
, pmdXgafv
, pmdUploadProtocol
, pmdAccessToken
, pmdMetricName
, pmdUploadType
, pmdCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type ProjectsMetricsDeleteResource =
"v2" :>
Capture "metricName" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data ProjectsMetricsDelete = ProjectsMetricsDelete'
{ _pmdXgafv :: !(Maybe Xgafv)
, _pmdUploadProtocol :: !(Maybe Text)
, _pmdAccessToken :: !(Maybe Text)
, _pmdMetricName :: !Text
, _pmdUploadType :: !(Maybe Text)
, _pmdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsMetricsDelete
:: Text
-> ProjectsMetricsDelete
projectsMetricsDelete pPmdMetricName_ =
ProjectsMetricsDelete'
{ _pmdXgafv = Nothing
, _pmdUploadProtocol = Nothing
, _pmdAccessToken = Nothing
, _pmdMetricName = pPmdMetricName_
, _pmdUploadType = Nothing
, _pmdCallback = Nothing
}
pmdXgafv :: Lens' ProjectsMetricsDelete (Maybe Xgafv)
pmdXgafv = lens _pmdXgafv (\ s a -> s{_pmdXgafv = a})
pmdUploadProtocol :: Lens' ProjectsMetricsDelete (Maybe Text)
pmdUploadProtocol
= lens _pmdUploadProtocol
(\ s a -> s{_pmdUploadProtocol = a})
pmdAccessToken :: Lens' ProjectsMetricsDelete (Maybe Text)
pmdAccessToken
= lens _pmdAccessToken
(\ s a -> s{_pmdAccessToken = a})
pmdMetricName :: Lens' ProjectsMetricsDelete Text
pmdMetricName
= lens _pmdMetricName
(\ s a -> s{_pmdMetricName = a})
pmdUploadType :: Lens' ProjectsMetricsDelete (Maybe Text)
pmdUploadType
= lens _pmdUploadType
(\ s a -> s{_pmdUploadType = a})
pmdCallback :: Lens' ProjectsMetricsDelete (Maybe Text)
pmdCallback
= lens _pmdCallback (\ s a -> s{_pmdCallback = a})
instance GoogleRequest ProjectsMetricsDelete where
type Rs ProjectsMetricsDelete = Empty
type Scopes ProjectsMetricsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin",
"https://www.googleapis.com/auth/logging.write"]
requestClient ProjectsMetricsDelete'{..}
= go _pmdMetricName _pmdXgafv _pmdUploadProtocol
_pmdAccessToken
_pmdUploadType
_pmdCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy ProjectsMetricsDeleteResource)
mempty