module Network.Google.Resource.Compute.TargetHTTPProxies.Delete
(
TargetHTTPProxiesDeleteResource
, targetHTTPProxiesDelete
, TargetHTTPProxiesDelete
, 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 "alt" AltJSON :> Delete '[JSON] Operation
data TargetHTTPProxiesDelete = TargetHTTPProxiesDelete'
{ _thttppdProject :: !Text
, _thttppdTargetHTTPProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetHTTPProxiesDelete
:: Text
-> Text
-> TargetHTTPProxiesDelete
targetHTTPProxiesDelete pThttppdProject_ pThttppdTargetHTTPProxy_ =
TargetHTTPProxiesDelete'
{ _thttppdProject = pThttppdProject_
, _thttppdTargetHTTPProxy = pThttppdTargetHTTPProxy_
}
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
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetHTTPProxiesDeleteResource)
mempty