{-# 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.ZoneOperations.Get
(
ZoneOperationsGetResource
, zoneOperationsGet
, ZoneOperationsGet
, zogProject
, zogOperation
, zogZone
) where
import Network.Google.Prelude
import Network.Google.ReplicaPoolUpdater.Types
type ZoneOperationsGetResource =
"replicapoolupdater" :>
"v1beta1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"operations" :>
Capture "operation" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Operation
data ZoneOperationsGet = ZoneOperationsGet'
{ _zogProject :: !Text
, _zogOperation :: !Text
, _zogZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
zoneOperationsGet
:: Text
-> Text
-> Text
-> ZoneOperationsGet
zoneOperationsGet pZogProject_ pZogOperation_ pZogZone_ =
ZoneOperationsGet'
{ _zogProject = pZogProject_
, _zogOperation = pZogOperation_
, _zogZone = pZogZone_
}
zogProject :: Lens' ZoneOperationsGet Text
zogProject
= lens _zogProject (\ s a -> s{_zogProject = a})
zogOperation :: Lens' ZoneOperationsGet Text
zogOperation
= lens _zogOperation (\ s a -> s{_zogOperation = a})
zogZone :: Lens' ZoneOperationsGet Text
zogZone = lens _zogZone (\ s a -> s{_zogZone = a})
instance GoogleRequest ZoneOperationsGet where
type Rs ZoneOperationsGet = Operation
type Scopes ZoneOperationsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/replicapool"]
requestClient ZoneOperationsGet'{..}
= go _zogProject _zogZone _zogOperation
(Just AltJSON)
replicaPoolUpdaterService
where go
= buildClient
(Proxy :: Proxy ZoneOperationsGetResource)
mempty