{-# 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.Compute.ZoneOperations.Get
(
ZoneOperationsGetResource
, zoneOperationsGet
, ZoneOperationsGet
, zogProject
, zogOperation
, zogZone
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type ZoneOperationsGetResource =
"compute" :>
"v1" :>
"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/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient ZoneOperationsGet'{..}
= go _zogProject _zogZone _zogOperation
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy ZoneOperationsGetResource)
mempty