{-# 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.Delete
(
TargetVPNGatewaysDeleteResource
, targetVPNGatewaysDelete
, TargetVPNGatewaysDelete
, tvgdRequestId
, tvgdProject
, tvgdTargetVPNGateway
, tvgdRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetVPNGatewaysDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"targetVpnGateways" :>
Capture "targetVpnGateway" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data TargetVPNGatewaysDelete = TargetVPNGatewaysDelete'
{ _tvgdRequestId :: !(Maybe Text)
, _tvgdProject :: !Text
, _tvgdTargetVPNGateway :: !Text
, _tvgdRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetVPNGatewaysDelete
:: Text
-> Text
-> Text
-> TargetVPNGatewaysDelete
targetVPNGatewaysDelete pTvgdProject_ pTvgdTargetVPNGateway_ pTvgdRegion_ =
TargetVPNGatewaysDelete'
{ _tvgdRequestId = Nothing
, _tvgdProject = pTvgdProject_
, _tvgdTargetVPNGateway = pTvgdTargetVPNGateway_
, _tvgdRegion = pTvgdRegion_
}
tvgdRequestId :: Lens' TargetVPNGatewaysDelete (Maybe Text)
tvgdRequestId
= lens _tvgdRequestId
(\ s a -> s{_tvgdRequestId = a})
tvgdProject :: Lens' TargetVPNGatewaysDelete Text
tvgdProject
= lens _tvgdProject (\ s a -> s{_tvgdProject = a})
tvgdTargetVPNGateway :: Lens' TargetVPNGatewaysDelete Text
tvgdTargetVPNGateway
= lens _tvgdTargetVPNGateway
(\ s a -> s{_tvgdTargetVPNGateway = a})
tvgdRegion :: Lens' TargetVPNGatewaysDelete Text
tvgdRegion
= lens _tvgdRegion (\ s a -> s{_tvgdRegion = a})
instance GoogleRequest TargetVPNGatewaysDelete where
type Rs TargetVPNGatewaysDelete = Operation
type Scopes TargetVPNGatewaysDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetVPNGatewaysDelete'{..}
= go _tvgdProject _tvgdRegion _tvgdTargetVPNGateway
_tvgdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetVPNGatewaysDeleteResource)
mempty