{-# 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.Mirror.Subscriptions.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) -- -- Deletes a subscription. -- -- /See:/ for @mirror.subscriptions.delete@. module Gogol.Mirror.Subscriptions.Delete ( -- * Resource MirrorSubscriptionsDeleteResource, -- ** Constructing a Request MirrorSubscriptionsDelete (..), newMirrorSubscriptionsDelete, ) where import Gogol.Mirror.Types import Gogol.Prelude qualified as Core -- | A resource alias for @mirror.subscriptions.delete@ method which the -- 'MirrorSubscriptionsDelete' request conforms to. type MirrorSubscriptionsDeleteResource = "mirror" Core.:> "v1" Core.:> "subscriptions" Core.:> Core.Capture "id" Core.Text Core.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.Delete '[Core.JSON] () -- | Deletes a subscription. -- -- /See:/ 'newMirrorSubscriptionsDelete' smart constructor. newtype MirrorSubscriptionsDelete = MirrorSubscriptionsDelete { -- | The ID of the subscription. id :: Core.Text } deriving (Core.Eq, Core.Show, Core.Generic) -- | Creates a value of 'MirrorSubscriptionsDelete' with the minimum fields required to make a request. newMirrorSubscriptionsDelete :: -- | The ID of the subscription. See 'id'. Core.Text -> MirrorSubscriptionsDelete newMirrorSubscriptionsDelete id = MirrorSubscriptionsDelete {id = id} instance Core.GoogleRequest MirrorSubscriptionsDelete where type Rs MirrorSubscriptionsDelete = () type Scopes MirrorSubscriptionsDelete = '[Glass'Timeline] requestClient MirrorSubscriptionsDelete {..} = go id (Core.Just Core.AltJSON) mirrorService where go = Core.buildClient (Core.Proxy :: Core.Proxy MirrorSubscriptionsDeleteResource) Core.mempty