{-# 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.ReplicaPoolUpdater.RollingUpdates.Cancel -- 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) -- -- Cancels an update. The update must be PAUSED before it can be cancelled. This has no effect if the update is already CANCELLED. -- -- /See:/ for @replicapoolupdater.rollingUpdates.cancel@. module Gogol.ReplicaPoolUpdater.RollingUpdates.Cancel ( -- * Resource ReplicaPoolUpdaterRollingUpdatesCancelResource, -- ** Constructing a Request ReplicaPoolUpdaterRollingUpdatesCancel (..), newReplicaPoolUpdaterRollingUpdatesCancel, ) where import Gogol.Prelude qualified as Core import Gogol.ReplicaPoolUpdater.Types -- | A resource alias for @replicapoolupdater.rollingUpdates.cancel@ method which the -- 'ReplicaPoolUpdaterRollingUpdatesCancel' request conforms to. type ReplicaPoolUpdaterRollingUpdatesCancelResource = "replicapoolupdater" Core.:> "v1beta1" Core.:> "projects" Core.:> Core.Capture "project" Core.Text Core.:> "zones" Core.:> Core.Capture "zone" Core.Text Core.:> "rollingUpdates" Core.:> Core.Capture "rollingUpdate" Core.Text Core.:> "cancel" Core.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.Post '[Core.JSON] Operation -- | Cancels an update. The update must be PAUSED before it can be cancelled. This has no effect if the update is already CANCELLED. -- -- /See:/ 'newReplicaPoolUpdaterRollingUpdatesCancel' smart constructor. data ReplicaPoolUpdaterRollingUpdatesCancel = ReplicaPoolUpdaterRollingUpdatesCancel { -- | The Google Developers Console project name. project :: Core.Text, -- | The name of the update. rollingUpdate :: Core.Text, -- | The name of the zone in which the update\'s target resides. zone :: Core.Text } deriving (Core.Eq, Core.Show, Core.Generic) -- | Creates a value of 'ReplicaPoolUpdaterRollingUpdatesCancel' with the minimum fields required to make a request. newReplicaPoolUpdaterRollingUpdatesCancel :: -- | The Google Developers Console project name. See 'project'. Core.Text -> -- | The name of the update. See 'rollingUpdate'. Core.Text -> -- | The name of the zone in which the update\'s target resides. See 'zone'. Core.Text -> ReplicaPoolUpdaterRollingUpdatesCancel newReplicaPoolUpdaterRollingUpdatesCancel project rollingUpdate zone = ReplicaPoolUpdaterRollingUpdatesCancel { project = project, rollingUpdate = rollingUpdate, zone = zone } instance Core.GoogleRequest ReplicaPoolUpdaterRollingUpdatesCancel where type Rs ReplicaPoolUpdaterRollingUpdatesCancel = Operation type Scopes ReplicaPoolUpdaterRollingUpdatesCancel = '[CloudPlatform'FullControl, Replicapool'FullControl] requestClient ReplicaPoolUpdaterRollingUpdatesCancel {..} = go project zone rollingUpdate (Core.Just Core.AltJSON) replicaPoolUpdaterService where go = Core.buildClient ( Core.Proxy :: Core.Proxy ReplicaPoolUpdaterRollingUpdatesCancelResource ) Core.mempty