{-# 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.TargetVPNGateways.Get
(
TargetVPNGatewaysGetResource
, targetVPNGatewaysGet
, TargetVPNGatewaysGet
, tvggProject
, tvggTargetVPNGateway
, tvggRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetVPNGatewaysGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"targetVpnGateways" :>
Capture "targetVpnGateway" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] TargetVPNGateway
data TargetVPNGatewaysGet = TargetVPNGatewaysGet'
{ _tvggProject :: !Text
, _tvggTargetVPNGateway :: !Text
, _tvggRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetVPNGatewaysGet
:: Text
-> Text
-> Text
-> TargetVPNGatewaysGet
targetVPNGatewaysGet pTvggProject_ pTvggTargetVPNGateway_ pTvggRegion_ =
TargetVPNGatewaysGet'
{ _tvggProject = pTvggProject_
, _tvggTargetVPNGateway = pTvggTargetVPNGateway_
, _tvggRegion = pTvggRegion_
}
tvggProject :: Lens' TargetVPNGatewaysGet Text
tvggProject
= lens _tvggProject (\ s a -> s{_tvggProject = a})
tvggTargetVPNGateway :: Lens' TargetVPNGatewaysGet Text
tvggTargetVPNGateway
= lens _tvggTargetVPNGateway
(\ s a -> s{_tvggTargetVPNGateway = a})
tvggRegion :: Lens' TargetVPNGatewaysGet Text
tvggRegion
= lens _tvggRegion (\ s a -> s{_tvggRegion = a})
instance GoogleRequest TargetVPNGatewaysGet where
type Rs TargetVPNGatewaysGet = TargetVPNGateway
type Scopes TargetVPNGatewaysGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient TargetVPNGatewaysGet'{..}
= go _tvggProject _tvggRegion _tvggTargetVPNGateway
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetVPNGatewaysGetResource)
mempty