{-# 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.Delete
(
VPNTunnelsDeleteResource
, vpnTunnelsDelete
, VPNTunnelsDelete
, vtdRequestId
, vtdProject
, vtdVPNTunnel
, vtdRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type VPNTunnelsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"vpnTunnels" :>
Capture "vpnTunnel" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data VPNTunnelsDelete = VPNTunnelsDelete'
{ _vtdRequestId :: !(Maybe Text)
, _vtdProject :: !Text
, _vtdVPNTunnel :: !Text
, _vtdRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
vpnTunnelsDelete
:: Text
-> Text
-> Text
-> VPNTunnelsDelete
vpnTunnelsDelete pVtdProject_ pVtdVPNTunnel_ pVtdRegion_ =
VPNTunnelsDelete'
{ _vtdRequestId = Nothing
, _vtdProject = pVtdProject_
, _vtdVPNTunnel = pVtdVPNTunnel_
, _vtdRegion = pVtdRegion_
}
vtdRequestId :: Lens' VPNTunnelsDelete (Maybe Text)
vtdRequestId
= lens _vtdRequestId (\ s a -> s{_vtdRequestId = a})
vtdProject :: Lens' VPNTunnelsDelete Text
vtdProject
= lens _vtdProject (\ s a -> s{_vtdProject = a})
vtdVPNTunnel :: Lens' VPNTunnelsDelete Text
vtdVPNTunnel
= lens _vtdVPNTunnel (\ s a -> s{_vtdVPNTunnel = a})
vtdRegion :: Lens' VPNTunnelsDelete Text
vtdRegion
= lens _vtdRegion (\ s a -> s{_vtdRegion = a})
instance GoogleRequest VPNTunnelsDelete where
type Rs VPNTunnelsDelete = Operation
type Scopes VPNTunnelsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient VPNTunnelsDelete'{..}
= go _vtdProject _vtdRegion _vtdVPNTunnel
_vtdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy VPNTunnelsDeleteResource)
mempty