{-# 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.Firewalls.Delete
(
FirewallsDeleteResource
, firewallsDelete
, FirewallsDelete
, fdRequestId
, fdProject
, fdFirewall
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type FirewallsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"firewalls" :>
Capture "firewall" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data FirewallsDelete = FirewallsDelete'
{ _fdRequestId :: !(Maybe Text)
, _fdProject :: !Text
, _fdFirewall :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
firewallsDelete
:: Text
-> Text
-> FirewallsDelete
firewallsDelete pFdProject_ pFdFirewall_ =
FirewallsDelete'
{ _fdRequestId = Nothing
, _fdProject = pFdProject_
, _fdFirewall = pFdFirewall_
}
fdRequestId :: Lens' FirewallsDelete (Maybe Text)
fdRequestId
= lens _fdRequestId (\ s a -> s{_fdRequestId = a})
fdProject :: Lens' FirewallsDelete Text
fdProject
= lens _fdProject (\ s a -> s{_fdProject = a})
fdFirewall :: Lens' FirewallsDelete Text
fdFirewall
= lens _fdFirewall (\ s a -> s{_fdFirewall = a})
instance GoogleRequest FirewallsDelete where
type Rs FirewallsDelete = Operation
type Scopes FirewallsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient FirewallsDelete'{..}
= go _fdProject _fdFirewall _fdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy FirewallsDeleteResource)
mempty