{-# 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.ReplicaPoolUpdater.RollingUpdates.Resume -- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Continues an update in PAUSED state. Has no effect if invoked when the -- state of the update is ROLLED_OUT. -- -- /See:/ for @replicapoolupdater.rollingUpdates.resume@. module Network.Google.Resource.ReplicaPoolUpdater.RollingUpdates.Resume ( -- * REST Resource RollingUpdatesResumeResource -- * Creating a Request , rollingUpdatesResume , RollingUpdatesResume -- * Request Lenses , rRollingUpdate , rProject , rZone ) where import Network.Google.Prelude import Network.Google.ReplicaPoolUpdater.Types -- | A resource alias for @replicapoolupdater.rollingUpdates.resume@ method which the -- 'RollingUpdatesResume' request conforms to. type RollingUpdatesResumeResource = "replicapoolupdater" :> "v1beta1" :> "projects" :> Capture "project" Text :> "zones" :> Capture "zone" Text :> "rollingUpdates" :> Capture "rollingUpdate" Text :> "resume" :> QueryParam "alt" AltJSON :> Post '[JSON] Operation -- | Continues an update in PAUSED state. Has no effect if invoked when the -- state of the update is ROLLED_OUT. -- -- /See:/ 'rollingUpdatesResume' smart constructor. data RollingUpdatesResume = RollingUpdatesResume' { _rRollingUpdate :: !Text , _rProject :: !Text , _rZone :: !Text } deriving (Eq,Show,Data,Typeable,Generic) -- | Creates a value of 'RollingUpdatesResume' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'rRollingUpdate' -- -- * 'rProject' -- -- * 'rZone' rollingUpdatesResume :: Text -- ^ 'rRollingUpdate' -> Text -- ^ 'rProject' -> Text -- ^ 'rZone' -> RollingUpdatesResume rollingUpdatesResume pRRollingUpdate_ pRProject_ pRZone_ = RollingUpdatesResume' { _rRollingUpdate = pRRollingUpdate_ , _rProject = pRProject_ , _rZone = pRZone_ } -- | The name of the update. rRollingUpdate :: Lens' RollingUpdatesResume Text rRollingUpdate = lens _rRollingUpdate (\ s a -> s{_rRollingUpdate = a}) -- | The Google Developers Console project name. rProject :: Lens' RollingUpdatesResume Text rProject = lens _rProject (\ s a -> s{_rProject = a}) -- | The name of the zone in which the update\'s target resides. rZone :: Lens' RollingUpdatesResume Text rZone = lens _rZone (\ s a -> s{_rZone = a}) instance GoogleRequest RollingUpdatesResume where type Rs RollingUpdatesResume = Operation type Scopes RollingUpdatesResume = '["https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/replicapool"] requestClient RollingUpdatesResume'{..} = go _rProject _rZone _rRollingUpdate (Just AltJSON) replicaPoolUpdaterService where go = buildClient (Proxy :: Proxy RollingUpdatesResumeResource) mempty