{-# 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.ListInstanceUpdates
(
RollingUpdatesListInstanceUpdatesResource
, rollingUpdatesListInstanceUpdates
, RollingUpdatesListInstanceUpdates
, ruliuRollingUpdate
, ruliuProject
, ruliuZone
, ruliuFilter
, ruliuPageToken
, ruliuMaxResults
) where
import Network.Google.Prelude
import Network.Google.ReplicaPoolUpdater.Types
type RollingUpdatesListInstanceUpdatesResource =
"replicapoolupdater" :>
"v1beta1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"rollingUpdates" :>
Capture "rollingUpdate" Text :>
"instanceUpdates" :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] InstanceUpdateList
data RollingUpdatesListInstanceUpdates = RollingUpdatesListInstanceUpdates'
{ _ruliuRollingUpdate :: !Text
, _ruliuProject :: !Text
, _ruliuZone :: !Text
, _ruliuFilter :: !(Maybe Text)
, _ruliuPageToken :: !(Maybe Text)
, _ruliuMaxResults :: !(Textual Word32)
} deriving (Eq,Show,Data,Typeable,Generic)
rollingUpdatesListInstanceUpdates
:: Text
-> Text
-> Text
-> RollingUpdatesListInstanceUpdates
rollingUpdatesListInstanceUpdates pRuliuRollingUpdate_ pRuliuProject_ pRuliuZone_ =
RollingUpdatesListInstanceUpdates'
{ _ruliuRollingUpdate = pRuliuRollingUpdate_
, _ruliuProject = pRuliuProject_
, _ruliuZone = pRuliuZone_
, _ruliuFilter = Nothing
, _ruliuPageToken = Nothing
, _ruliuMaxResults = 500
}
ruliuRollingUpdate :: Lens' RollingUpdatesListInstanceUpdates Text
ruliuRollingUpdate
= lens _ruliuRollingUpdate
(\ s a -> s{_ruliuRollingUpdate = a})
ruliuProject :: Lens' RollingUpdatesListInstanceUpdates Text
ruliuProject
= lens _ruliuProject (\ s a -> s{_ruliuProject = a})
ruliuZone :: Lens' RollingUpdatesListInstanceUpdates Text
ruliuZone
= lens _ruliuZone (\ s a -> s{_ruliuZone = a})
ruliuFilter :: Lens' RollingUpdatesListInstanceUpdates (Maybe Text)
ruliuFilter
= lens _ruliuFilter (\ s a -> s{_ruliuFilter = a})
ruliuPageToken :: Lens' RollingUpdatesListInstanceUpdates (Maybe Text)
ruliuPageToken
= lens _ruliuPageToken
(\ s a -> s{_ruliuPageToken = a})
ruliuMaxResults :: Lens' RollingUpdatesListInstanceUpdates Word32
ruliuMaxResults
= lens _ruliuMaxResults
(\ s a -> s{_ruliuMaxResults = a})
. _Coerce
instance GoogleRequest
RollingUpdatesListInstanceUpdates where
type Rs RollingUpdatesListInstanceUpdates =
InstanceUpdateList
type Scopes RollingUpdatesListInstanceUpdates =
'["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 RollingUpdatesListInstanceUpdates'{..}
= go _ruliuProject _ruliuZone _ruliuRollingUpdate
_ruliuFilter
_ruliuPageToken
(Just _ruliuMaxResults)
(Just AltJSON)
replicaPoolUpdaterService
where go
= buildClient
(Proxy ::
Proxy RollingUpdatesListInstanceUpdatesResource)
mempty