{-# 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.TargetHTTPProxies.Get
(
TargetHTTPProxiesGetResource
, targetHTTPProxiesGet
, TargetHTTPProxiesGet
, thttppgProject
, thttppgTargetHTTPProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetHTTPProxiesGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetHttpProxies" :>
Capture "targetHttpProxy" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] TargetHTTPProxy
data TargetHTTPProxiesGet = TargetHTTPProxiesGet'
{ _thttppgProject :: !Text
, _thttppgTargetHTTPProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetHTTPProxiesGet
:: Text
-> Text
-> TargetHTTPProxiesGet
targetHTTPProxiesGet pThttppgProject_ pThttppgTargetHTTPProxy_ =
TargetHTTPProxiesGet'
{ _thttppgProject = pThttppgProject_
, _thttppgTargetHTTPProxy = pThttppgTargetHTTPProxy_
}
thttppgProject :: Lens' TargetHTTPProxiesGet Text
thttppgProject
= lens _thttppgProject
(\ s a -> s{_thttppgProject = a})
thttppgTargetHTTPProxy :: Lens' TargetHTTPProxiesGet Text
thttppgTargetHTTPProxy
= lens _thttppgTargetHTTPProxy
(\ s a -> s{_thttppgTargetHTTPProxy = a})
instance GoogleRequest TargetHTTPProxiesGet where
type Rs TargetHTTPProxiesGet = TargetHTTPProxy
type Scopes TargetHTTPProxiesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient TargetHTTPProxiesGet'{..}
= go _thttppgProject _thttppgTargetHTTPProxy
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetHTTPProxiesGetResource)
mempty