{-# 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.List
(
RollingUpdatesListResource
, rollingUpdatesList
, RollingUpdatesList
, rulProject
, rulZone
, rulFilter
, rulPageToken
, rulMaxResults
) where
import Network.Google.Prelude
import Network.Google.ReplicaPoolUpdater.Types
type RollingUpdatesListResource =
"replicapoolupdater" :>
"v1beta1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"rollingUpdates" :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] RollingUpdateList
data RollingUpdatesList = RollingUpdatesList'
{ _rulProject :: !Text
, _rulZone :: !Text
, _rulFilter :: !(Maybe Text)
, _rulPageToken :: !(Maybe Text)
, _rulMaxResults :: !(Textual Word32)
} deriving (Eq,Show,Data,Typeable,Generic)
rollingUpdatesList
:: Text
-> Text
-> RollingUpdatesList
rollingUpdatesList pRulProject_ pRulZone_ =
RollingUpdatesList'
{ _rulProject = pRulProject_
, _rulZone = pRulZone_
, _rulFilter = Nothing
, _rulPageToken = Nothing
, _rulMaxResults = 500
}
rulProject :: Lens' RollingUpdatesList Text
rulProject
= lens _rulProject (\ s a -> s{_rulProject = a})
rulZone :: Lens' RollingUpdatesList Text
rulZone = lens _rulZone (\ s a -> s{_rulZone = a})
rulFilter :: Lens' RollingUpdatesList (Maybe Text)
rulFilter
= lens _rulFilter (\ s a -> s{_rulFilter = a})
rulPageToken :: Lens' RollingUpdatesList (Maybe Text)
rulPageToken
= lens _rulPageToken (\ s a -> s{_rulPageToken = a})
rulMaxResults :: Lens' RollingUpdatesList Word32
rulMaxResults
= lens _rulMaxResults
(\ s a -> s{_rulMaxResults = a})
. _Coerce
instance GoogleRequest RollingUpdatesList where
type Rs RollingUpdatesList = RollingUpdateList
type Scopes RollingUpdatesList =
'["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 RollingUpdatesList'{..}
= go _rulProject _rulZone _rulFilter _rulPageToken
(Just _rulMaxResults)
(Just AltJSON)
replicaPoolUpdaterService
where go
= buildClient
(Proxy :: Proxy RollingUpdatesListResource)
mempty