{-# 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.Routes.Delete
(
RoutesDeleteResource
, routesDelete
, RoutesDelete
, rdRequestId
, rdProject
, rdRoute
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RoutesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"routes" :>
Capture "route" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data RoutesDelete = RoutesDelete'
{ _rdRequestId :: !(Maybe Text)
, _rdProject :: !Text
, _rdRoute :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
routesDelete
:: Text
-> Text
-> RoutesDelete
routesDelete pRdProject_ pRdRoute_ =
RoutesDelete'
{ _rdRequestId = Nothing
, _rdProject = pRdProject_
, _rdRoute = pRdRoute_
}
rdRequestId :: Lens' RoutesDelete (Maybe Text)
rdRequestId
= lens _rdRequestId (\ s a -> s{_rdRequestId = a})
rdProject :: Lens' RoutesDelete Text
rdProject
= lens _rdProject (\ s a -> s{_rdProject = a})
rdRoute :: Lens' RoutesDelete Text
rdRoute = lens _rdRoute (\ s a -> s{_rdRoute = a})
instance GoogleRequest RoutesDelete where
type Rs RoutesDelete = Operation
type Scopes RoutesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient RoutesDelete'{..}
= go _rdProject _rdRoute _rdRequestId (Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy RoutesDeleteResource)
mempty