{-# 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.TargetHTTPProxies.Delete
(
TargetHTTPProxiesDeleteResource
, targetHTTPProxiesDelete
, TargetHTTPProxiesDelete
, thttppdRequestId
, thttppdProject
, thttppdTargetHTTPProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetHTTPProxiesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetHttpProxies" :>
Capture "targetHttpProxy" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data TargetHTTPProxiesDelete = TargetHTTPProxiesDelete'
{ _thttppdRequestId :: !(Maybe Text)
, _thttppdProject :: !Text
, _thttppdTargetHTTPProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetHTTPProxiesDelete
:: Text
-> Text
-> TargetHTTPProxiesDelete
targetHTTPProxiesDelete pThttppdProject_ pThttppdTargetHTTPProxy_ =
TargetHTTPProxiesDelete'
{ _thttppdRequestId = Nothing
, _thttppdProject = pThttppdProject_
, _thttppdTargetHTTPProxy = pThttppdTargetHTTPProxy_
}
thttppdRequestId :: Lens' TargetHTTPProxiesDelete (Maybe Text)
thttppdRequestId
= lens _thttppdRequestId
(\ s a -> s{_thttppdRequestId = a})
thttppdProject :: Lens' TargetHTTPProxiesDelete Text
thttppdProject
= lens _thttppdProject
(\ s a -> s{_thttppdProject = a})
thttppdTargetHTTPProxy :: Lens' TargetHTTPProxiesDelete Text
thttppdTargetHTTPProxy
= lens _thttppdTargetHTTPProxy
(\ s a -> s{_thttppdTargetHTTPProxy = a})
instance GoogleRequest TargetHTTPProxiesDelete where
type Rs TargetHTTPProxiesDelete = Operation
type Scopes TargetHTTPProxiesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetHTTPProxiesDelete'{..}
= go _thttppdProject _thttppdTargetHTTPProxy
_thttppdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetHTTPProxiesDeleteResource)
mempty