{-# 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.Get -- 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) -- -- Returns information about an update. -- -- /See:/ for @replicapoolupdater.rollingUpdates.get@. module Gogol.ReplicaPoolUpdater.RollingUpdates.Get ( -- * Resource ReplicaPoolUpdaterRollingUpdatesGetResource, -- ** Constructing a Request ReplicaPoolUpdaterRollingUpdatesGet (..), newReplicaPoolUpdaterRollingUpdatesGet, ) where import Gogol.Prelude qualified as Core import Gogol.ReplicaPoolUpdater.Types -- | A resource alias for @replicapoolupdater.rollingUpdates.get@ method which the -- 'ReplicaPoolUpdaterRollingUpdatesGet' request conforms to. type ReplicaPoolUpdaterRollingUpdatesGetResource = "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.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.Get '[Core.JSON] RollingUpdate -- | Returns information about an update. -- -- /See:/ 'newReplicaPoolUpdaterRollingUpdatesGet' smart constructor. data ReplicaPoolUpdaterRollingUpdatesGet = ReplicaPoolUpdaterRollingUpdatesGet { -- | 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 'ReplicaPoolUpdaterRollingUpdatesGet' with the minimum fields required to make a request. newReplicaPoolUpdaterRollingUpdatesGet :: -- | 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 -> ReplicaPoolUpdaterRollingUpdatesGet newReplicaPoolUpdaterRollingUpdatesGet project rollingUpdate zone = ReplicaPoolUpdaterRollingUpdatesGet { project = project, rollingUpdate = rollingUpdate, zone = zone } instance Core.GoogleRequest ReplicaPoolUpdaterRollingUpdatesGet where type Rs ReplicaPoolUpdaterRollingUpdatesGet = RollingUpdate type Scopes ReplicaPoolUpdaterRollingUpdatesGet = '[ CloudPlatform'FullControl, CloudPlatform'ReadOnly, Replicapool'FullControl, Replicapool'Readonly ] requestClient ReplicaPoolUpdaterRollingUpdatesGet {..} = go project zone rollingUpdate (Core.Just Core.AltJSON) replicaPoolUpdaterService where go = Core.buildClient ( Core.Proxy :: Core.Proxy ReplicaPoolUpdaterRollingUpdatesGetResource ) Core.mempty