{-# 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.Get
(
RollingUpdatesGetResource
, rollingUpdatesGet
, RollingUpdatesGet
, rugRollingUpdate
, rugProject
, rugZone
) where
import Network.Google.Prelude
import Network.Google.ReplicaPoolUpdater.Types
type RollingUpdatesGetResource =
"replicapoolupdater" :>
"v1beta1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"rollingUpdates" :>
Capture "rollingUpdate" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] RollingUpdate
data RollingUpdatesGet = RollingUpdatesGet'
{ _rugRollingUpdate :: !Text
, _rugProject :: !Text
, _rugZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
rollingUpdatesGet
:: Text
-> Text
-> Text
-> RollingUpdatesGet
rollingUpdatesGet pRugRollingUpdate_ pRugProject_ pRugZone_ =
RollingUpdatesGet'
{ _rugRollingUpdate = pRugRollingUpdate_
, _rugProject = pRugProject_
, _rugZone = pRugZone_
}
rugRollingUpdate :: Lens' RollingUpdatesGet Text
rugRollingUpdate
= lens _rugRollingUpdate
(\ s a -> s{_rugRollingUpdate = a})
rugProject :: Lens' RollingUpdatesGet Text
rugProject
= lens _rugProject (\ s a -> s{_rugProject = a})
rugZone :: Lens' RollingUpdatesGet Text
rugZone = lens _rugZone (\ s a -> s{_rugZone = a})
instance GoogleRequest RollingUpdatesGet where
type Rs RollingUpdatesGet = RollingUpdate
type Scopes RollingUpdatesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/replicapool",
"https://www.googleapis.com/auth/replicapool.readonly"]
requestClient RollingUpdatesGet'{..}
= go _rugProject _rugZone _rugRollingUpdate
(Just AltJSON)
replicaPoolUpdaterService
where go
= buildClient
(Proxy :: Proxy RollingUpdatesGetResource)
mempty