{-# LANGUAGE DataKinds #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE ImportQualifiedPost #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-duplicate-exports #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- | -- Module : Gogol.Analytics.Management.Experiments.Delete -- Copyright : (c) 2015-2025 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Toni Cebrián -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Delete an experiment. -- -- /See:/ for @analytics.management.experiments.delete@. module Gogol.Analytics.Management.Experiments.Delete ( -- * Resource AnalyticsManagementExperimentsDeleteResource, -- ** Constructing a Request AnalyticsManagementExperimentsDelete (..), newAnalyticsManagementExperimentsDelete, ) where import Gogol.Analytics.Types import Gogol.Prelude qualified as Core -- | A resource alias for @analytics.management.experiments.delete@ method which the -- 'AnalyticsManagementExperimentsDelete' request conforms to. type AnalyticsManagementExperimentsDeleteResource = "analytics" Core.:> "v3" Core.:> "management" Core.:> "accounts" Core.:> Core.Capture "accountId" Core.Text Core.:> "webproperties" Core.:> Core.Capture "webPropertyId" Core.Text Core.:> "profiles" Core.:> Core.Capture "profileId" Core.Text Core.:> "experiments" Core.:> Core.Capture "experimentId" Core.Text Core.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.Delete '[Core.JSON] () -- | Delete an experiment. -- -- /See:/ 'newAnalyticsManagementExperimentsDelete' smart constructor. data AnalyticsManagementExperimentsDelete = AnalyticsManagementExperimentsDelete { -- | Account ID to which the experiment belongs accountId :: Core.Text, -- | ID of the experiment to delete experimentId :: Core.Text, -- | View (Profile) ID to which the experiment belongs profileId :: Core.Text, -- | Web property ID to which the experiment belongs webPropertyId :: Core.Text } deriving (Core.Eq, Core.Show, Core.Generic) -- | Creates a value of 'AnalyticsManagementExperimentsDelete' with the minimum fields required to make a request. newAnalyticsManagementExperimentsDelete :: -- | Account ID to which the experiment belongs See 'accountId'. Core.Text -> -- | ID of the experiment to delete See 'experimentId'. Core.Text -> -- | View (Profile) ID to which the experiment belongs See 'profileId'. Core.Text -> -- | Web property ID to which the experiment belongs See 'webPropertyId'. Core.Text -> AnalyticsManagementExperimentsDelete newAnalyticsManagementExperimentsDelete accountId experimentId profileId webPropertyId = AnalyticsManagementExperimentsDelete { accountId = accountId, experimentId = experimentId, profileId = profileId, webPropertyId = webPropertyId } instance Core.GoogleRequest AnalyticsManagementExperimentsDelete where type Rs AnalyticsManagementExperimentsDelete = () type Scopes AnalyticsManagementExperimentsDelete = '[Analytics'FullControl, Analytics'Edit] requestClient AnalyticsManagementExperimentsDelete {..} = go accountId webPropertyId profileId experimentId (Core.Just Core.AltJSON) analyticsService where go = Core.buildClient ( Core.Proxy :: Core.Proxy AnalyticsManagementExperimentsDeleteResource ) Core.mempty