{-# 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.Routers.Delete
(
RoutersDeleteResource
, routersDelete
, RoutersDelete
, rouoRequestId
, rouoProject
, rouoRouter
, rouoRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RoutersDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"routers" :>
Capture "router" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data RoutersDelete = RoutersDelete'
{ _rouoRequestId :: !(Maybe Text)
, _rouoProject :: !Text
, _rouoRouter :: !Text
, _rouoRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
routersDelete
:: Text
-> Text
-> Text
-> RoutersDelete
routersDelete pRouoProject_ pRouoRouter_ pRouoRegion_ =
RoutersDelete'
{ _rouoRequestId = Nothing
, _rouoProject = pRouoProject_
, _rouoRouter = pRouoRouter_
, _rouoRegion = pRouoRegion_
}
rouoRequestId :: Lens' RoutersDelete (Maybe Text)
rouoRequestId
= lens _rouoRequestId
(\ s a -> s{_rouoRequestId = a})
rouoProject :: Lens' RoutersDelete Text
rouoProject
= lens _rouoProject (\ s a -> s{_rouoProject = a})
rouoRouter :: Lens' RoutersDelete Text
rouoRouter
= lens _rouoRouter (\ s a -> s{_rouoRouter = a})
rouoRegion :: Lens' RoutersDelete Text
rouoRegion
= lens _rouoRegion (\ s a -> s{_rouoRegion = a})
instance GoogleRequest RoutersDelete where
type Rs RoutersDelete = Operation
type Scopes RoutersDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient RoutersDelete'{..}
= go _rouoProject _rouoRegion _rouoRouter
_rouoRequestId
(Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy RoutersDeleteResource)
mempty