{-# 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.TargetTCPProxies.Get
(
TargetTCPProxiesGetResource
, targetTCPProxiesGet
, TargetTCPProxiesGet
, ttpgProject
, ttpgTargetTCPProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetTCPProxiesGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetTcpProxies" :>
Capture "targetTcpProxy" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] TargetTCPProxy
data TargetTCPProxiesGet = TargetTCPProxiesGet'
{ _ttpgProject :: !Text
, _ttpgTargetTCPProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetTCPProxiesGet
:: Text
-> Text
-> TargetTCPProxiesGet
targetTCPProxiesGet pTtpgProject_ pTtpgTargetTCPProxy_ =
TargetTCPProxiesGet'
{ _ttpgProject = pTtpgProject_
, _ttpgTargetTCPProxy = pTtpgTargetTCPProxy_
}
ttpgProject :: Lens' TargetTCPProxiesGet Text
ttpgProject
= lens _ttpgProject (\ s a -> s{_ttpgProject = a})
ttpgTargetTCPProxy :: Lens' TargetTCPProxiesGet Text
ttpgTargetTCPProxy
= lens _ttpgTargetTCPProxy
(\ s a -> s{_ttpgTargetTCPProxy = a})
instance GoogleRequest TargetTCPProxiesGet where
type Rs TargetTCPProxiesGet = TargetTCPProxy
type Scopes TargetTCPProxiesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient TargetTCPProxiesGet'{..}
= go _ttpgProject _ttpgTargetTCPProxy (Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetTCPProxiesGetResource)
mempty