{-# 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.TargetHTTPSProxies.Get
(
TargetHTTPSProxiesGetResource
, targetHTTPSProxiesGet
, TargetHTTPSProxiesGet
, thpgProject
, thpgTargetHTTPSProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetHTTPSProxiesGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetHttpsProxies" :>
Capture "targetHttpsProxy" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] TargetHTTPSProxy
data TargetHTTPSProxiesGet = TargetHTTPSProxiesGet'
{ _thpgProject :: !Text
, _thpgTargetHTTPSProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetHTTPSProxiesGet
:: Text
-> Text
-> TargetHTTPSProxiesGet
targetHTTPSProxiesGet pThpgProject_ pThpgTargetHTTPSProxy_ =
TargetHTTPSProxiesGet'
{ _thpgProject = pThpgProject_
, _thpgTargetHTTPSProxy = pThpgTargetHTTPSProxy_
}
thpgProject :: Lens' TargetHTTPSProxiesGet Text
thpgProject
= lens _thpgProject (\ s a -> s{_thpgProject = a})
thpgTargetHTTPSProxy :: Lens' TargetHTTPSProxiesGet Text
thpgTargetHTTPSProxy
= lens _thpgTargetHTTPSProxy
(\ s a -> s{_thpgTargetHTTPSProxy = a})
instance GoogleRequest TargetHTTPSProxiesGet where
type Rs TargetHTTPSProxiesGet = TargetHTTPSProxy
type Scopes TargetHTTPSProxiesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient TargetHTTPSProxiesGet'{..}
= go _thpgProject _thpgTargetHTTPSProxy
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetHTTPSProxiesGetResource)
mempty