{-# 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.URLMaps.Delete
(
URLMapsDeleteResource
, urlMapsDelete
, URLMapsDelete
, umdRequestId
, umdURLMap
, umdProject
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type URLMapsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"urlMaps" :>
Capture "urlMap" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data URLMapsDelete = URLMapsDelete'
{ _umdRequestId :: !(Maybe Text)
, _umdURLMap :: !Text
, _umdProject :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
urlMapsDelete
:: Text
-> Text
-> URLMapsDelete
urlMapsDelete pUmdURLMap_ pUmdProject_ =
URLMapsDelete'
{ _umdRequestId = Nothing
, _umdURLMap = pUmdURLMap_
, _umdProject = pUmdProject_
}
umdRequestId :: Lens' URLMapsDelete (Maybe Text)
umdRequestId
= lens _umdRequestId (\ s a -> s{_umdRequestId = a})
umdURLMap :: Lens' URLMapsDelete Text
umdURLMap
= lens _umdURLMap (\ s a -> s{_umdURLMap = a})
umdProject :: Lens' URLMapsDelete Text
umdProject
= lens _umdProject (\ s a -> s{_umdProject = a})
instance GoogleRequest URLMapsDelete where
type Rs URLMapsDelete = Operation
type Scopes URLMapsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient URLMapsDelete'{..}
= go _umdProject _umdURLMap _umdRequestId
(Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy URLMapsDeleteResource)
mempty