{-# 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.TargetSSLProxies.Get
(
TargetSSLProxiesGetResource
, targetSSLProxiesGet
, TargetSSLProxiesGet
, tspgProject
, tspgTargetSSLProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetSSLProxiesGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetSslProxies" :>
Capture "targetSslProxy" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] TargetSSLProxy
data TargetSSLProxiesGet = TargetSSLProxiesGet'
{ _tspgProject :: !Text
, _tspgTargetSSLProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetSSLProxiesGet
:: Text
-> Text
-> TargetSSLProxiesGet
targetSSLProxiesGet pTspgProject_ pTspgTargetSSLProxy_ =
TargetSSLProxiesGet'
{ _tspgProject = pTspgProject_
, _tspgTargetSSLProxy = pTspgTargetSSLProxy_
}
tspgProject :: Lens' TargetSSLProxiesGet Text
tspgProject
= lens _tspgProject (\ s a -> s{_tspgProject = a})
tspgTargetSSLProxy :: Lens' TargetSSLProxiesGet Text
tspgTargetSSLProxy
= lens _tspgTargetSSLProxy
(\ s a -> s{_tspgTargetSSLProxy = a})
instance GoogleRequest TargetSSLProxiesGet where
type Rs TargetSSLProxiesGet = TargetSSLProxy
type Scopes TargetSSLProxiesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient TargetSSLProxiesGet'{..}
= go _tspgProject _tspgTargetSSLProxy (Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetSSLProxiesGetResource)
mempty