{-# 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.Analytics.Management.UnSampledReports.Delete
(
ManagementUnSampledReportsDeleteResource
, managementUnSampledReportsDelete
, ManagementUnSampledReportsDelete
, musrdWebPropertyId
, musrdProFileId
, musrdAccountId
, musrdUnSampledReportId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementUnSampledReportsDeleteResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"profiles" :>
Capture "profileId" Text :>
"unsampledReports" :>
Capture "unsampledReportId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ManagementUnSampledReportsDelete = ManagementUnSampledReportsDelete'
{ _musrdWebPropertyId :: !Text
, _musrdProFileId :: !Text
, _musrdAccountId :: !Text
, _musrdUnSampledReportId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementUnSampledReportsDelete
:: Text
-> Text
-> Text
-> Text
-> ManagementUnSampledReportsDelete
managementUnSampledReportsDelete pMusrdWebPropertyId_ pMusrdProFileId_ pMusrdAccountId_ pMusrdUnSampledReportId_ =
ManagementUnSampledReportsDelete'
{ _musrdWebPropertyId = pMusrdWebPropertyId_
, _musrdProFileId = pMusrdProFileId_
, _musrdAccountId = pMusrdAccountId_
, _musrdUnSampledReportId = pMusrdUnSampledReportId_
}
musrdWebPropertyId :: Lens' ManagementUnSampledReportsDelete Text
musrdWebPropertyId
= lens _musrdWebPropertyId
(\ s a -> s{_musrdWebPropertyId = a})
musrdProFileId :: Lens' ManagementUnSampledReportsDelete Text
musrdProFileId
= lens _musrdProFileId
(\ s a -> s{_musrdProFileId = a})
musrdAccountId :: Lens' ManagementUnSampledReportsDelete Text
musrdAccountId
= lens _musrdAccountId
(\ s a -> s{_musrdAccountId = a})
musrdUnSampledReportId :: Lens' ManagementUnSampledReportsDelete Text
musrdUnSampledReportId
= lens _musrdUnSampledReportId
(\ s a -> s{_musrdUnSampledReportId = a})
instance GoogleRequest
ManagementUnSampledReportsDelete where
type Rs ManagementUnSampledReportsDelete = ()
type Scopes ManagementUnSampledReportsDelete =
'["https://www.googleapis.com/auth/analytics.edit"]
requestClient ManagementUnSampledReportsDelete'{..}
= go _musrdAccountId _musrdWebPropertyId
_musrdProFileId
_musrdUnSampledReportId
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementUnSampledReportsDeleteResource)
mempty