{-# 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.VPNTunnels.Get
(
VPNTunnelsGetResource
, vpnTunnelsGet
, VPNTunnelsGet
, vtgProject
, vtgVPNTunnel
, vtgRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type VPNTunnelsGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"vpnTunnels" :>
Capture "vpnTunnel" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] VPNTunnel
data VPNTunnelsGet = VPNTunnelsGet'
{ _vtgProject :: !Text
, _vtgVPNTunnel :: !Text
, _vtgRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
vpnTunnelsGet
:: Text
-> Text
-> Text
-> VPNTunnelsGet
vpnTunnelsGet pVtgProject_ pVtgVPNTunnel_ pVtgRegion_ =
VPNTunnelsGet'
{ _vtgProject = pVtgProject_
, _vtgVPNTunnel = pVtgVPNTunnel_
, _vtgRegion = pVtgRegion_
}
vtgProject :: Lens' VPNTunnelsGet Text
vtgProject
= lens _vtgProject (\ s a -> s{_vtgProject = a})
vtgVPNTunnel :: Lens' VPNTunnelsGet Text
vtgVPNTunnel
= lens _vtgVPNTunnel (\ s a -> s{_vtgVPNTunnel = a})
vtgRegion :: Lens' VPNTunnelsGet Text
vtgRegion
= lens _vtgRegion (\ s a -> s{_vtgRegion = a})
instance GoogleRequest VPNTunnelsGet where
type Rs VPNTunnelsGet = VPNTunnel
type Scopes VPNTunnelsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient VPNTunnelsGet'{..}
= go _vtgProject _vtgRegion _vtgVPNTunnel
(Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy VPNTunnelsGetResource)
mempty