{-# 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.Cancel
(
RollingUpdatesCancelResource
, rollingUpdatesCancel
, RollingUpdatesCancel
, rucRollingUpdate
, rucProject
, rucZone
) where
import Network.Google.Prelude
import Network.Google.ReplicaPoolUpdater.Types
type RollingUpdatesCancelResource =
"replicapoolupdater" :>
"v1beta1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"rollingUpdates" :>
Capture "rollingUpdate" Text :>
"cancel" :>
QueryParam "alt" AltJSON :> Post '[JSON] Operation
data RollingUpdatesCancel = RollingUpdatesCancel'
{ _rucRollingUpdate :: !Text
, _rucProject :: !Text
, _rucZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
rollingUpdatesCancel
:: Text
-> Text
-> Text
-> RollingUpdatesCancel
rollingUpdatesCancel pRucRollingUpdate_ pRucProject_ pRucZone_ =
RollingUpdatesCancel'
{ _rucRollingUpdate = pRucRollingUpdate_
, _rucProject = pRucProject_
, _rucZone = pRucZone_
}
rucRollingUpdate :: Lens' RollingUpdatesCancel Text
rucRollingUpdate
= lens _rucRollingUpdate
(\ s a -> s{_rucRollingUpdate = a})
rucProject :: Lens' RollingUpdatesCancel Text
rucProject
= lens _rucProject (\ s a -> s{_rucProject = a})
rucZone :: Lens' RollingUpdatesCancel Text
rucZone = lens _rucZone (\ s a -> s{_rucZone = a})
instance GoogleRequest RollingUpdatesCancel where
type Rs RollingUpdatesCancel = Operation
type Scopes RollingUpdatesCancel =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/replicapool"]
requestClient RollingUpdatesCancel'{..}
= go _rucProject _rucZone _rucRollingUpdate
(Just AltJSON)
replicaPoolUpdaterService
where go
= buildClient
(Proxy :: Proxy RollingUpdatesCancelResource)
mempty