{-# 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.Experiments.Delete
(
ManagementExperimentsDeleteResource
, managementExperimentsDelete
, ManagementExperimentsDelete
, medWebPropertyId
, medProFileId
, medAccountId
, medExperimentId
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementExperimentsDeleteResource =
"analytics" :>
"v3" :>
"management" :>
"accounts" :>
Capture "accountId" Text :>
"webproperties" :>
Capture "webPropertyId" Text :>
"profiles" :>
Capture "profileId" Text :>
"experiments" :>
Capture "experimentId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ManagementExperimentsDelete = ManagementExperimentsDelete'
{ _medWebPropertyId :: !Text
, _medProFileId :: !Text
, _medAccountId :: !Text
, _medExperimentId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managementExperimentsDelete
:: Text
-> Text
-> Text
-> Text
-> ManagementExperimentsDelete
managementExperimentsDelete pMedWebPropertyId_ pMedProFileId_ pMedAccountId_ pMedExperimentId_ =
ManagementExperimentsDelete'
{ _medWebPropertyId = pMedWebPropertyId_
, _medProFileId = pMedProFileId_
, _medAccountId = pMedAccountId_
, _medExperimentId = pMedExperimentId_
}
medWebPropertyId :: Lens' ManagementExperimentsDelete Text
medWebPropertyId
= lens _medWebPropertyId
(\ s a -> s{_medWebPropertyId = a})
medProFileId :: Lens' ManagementExperimentsDelete Text
medProFileId
= lens _medProFileId (\ s a -> s{_medProFileId = a})
medAccountId :: Lens' ManagementExperimentsDelete Text
medAccountId
= lens _medAccountId (\ s a -> s{_medAccountId = a})
medExperimentId :: Lens' ManagementExperimentsDelete Text
medExperimentId
= lens _medExperimentId
(\ s a -> s{_medExperimentId = a})
instance GoogleRequest ManagementExperimentsDelete
where
type Rs ManagementExperimentsDelete = ()
type Scopes ManagementExperimentsDelete =
'["https://www.googleapis.com/auth/analytics",
"https://www.googleapis.com/auth/analytics.edit"]
requestClient ManagementExperimentsDelete'{..}
= go _medAccountId _medWebPropertyId _medProFileId
_medExperimentId
(Just AltJSON)
analyticsService
where go
= buildClient
(Proxy :: Proxy ManagementExperimentsDeleteResource)
mempty