{-# 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
(
RollingUpdatesResumeResource
, rollingUpdatesResume
, RollingUpdatesResume
, rRollingUpdate
, rProject
, rZone
) where
import Network.Google.Prelude
import Network.Google.ReplicaPoolUpdater.Types
type RollingUpdatesResumeResource =
"replicapoolupdater" :>
"v1beta1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"rollingUpdates" :>
Capture "rollingUpdate" Text :>
"resume" :>
QueryParam "alt" AltJSON :> Post '[JSON] Operation
data RollingUpdatesResume = RollingUpdatesResume'
{ _rRollingUpdate :: !Text
, _rProject :: !Text
, _rZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
rollingUpdatesResume
:: Text
-> Text
-> Text
-> RollingUpdatesResume
rollingUpdatesResume pRRollingUpdate_ pRProject_ pRZone_ =
RollingUpdatesResume'
{ _rRollingUpdate = pRRollingUpdate_
, _rProject = pRProject_
, _rZone = pRZone_
}
rRollingUpdate :: Lens' RollingUpdatesResume Text
rRollingUpdate
= lens _rRollingUpdate
(\ s a -> s{_rRollingUpdate = a})
rProject :: Lens' RollingUpdatesResume Text
rProject = lens _rProject (\ s a -> s{_rProject = a})
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