{-# 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.SecurityPolicies.Delete
(
SecurityPoliciesDeleteResource
, securityPoliciesDelete
, SecurityPoliciesDelete
, spdpRequestId
, spdpProject
, spdpSecurityPolicy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type SecurityPoliciesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"securityPolicies" :>
Capture "securityPolicy" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data SecurityPoliciesDelete = SecurityPoliciesDelete'
{ _spdpRequestId :: !(Maybe Text)
, _spdpProject :: !Text
, _spdpSecurityPolicy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
securityPoliciesDelete
:: Text
-> Text
-> SecurityPoliciesDelete
securityPoliciesDelete pSpdpProject_ pSpdpSecurityPolicy_ =
SecurityPoliciesDelete'
{ _spdpRequestId = Nothing
, _spdpProject = pSpdpProject_
, _spdpSecurityPolicy = pSpdpSecurityPolicy_
}
spdpRequestId :: Lens' SecurityPoliciesDelete (Maybe Text)
spdpRequestId
= lens _spdpRequestId
(\ s a -> s{_spdpRequestId = a})
spdpProject :: Lens' SecurityPoliciesDelete Text
spdpProject
= lens _spdpProject (\ s a -> s{_spdpProject = a})
spdpSecurityPolicy :: Lens' SecurityPoliciesDelete Text
spdpSecurityPolicy
= lens _spdpSecurityPolicy
(\ s a -> s{_spdpSecurityPolicy = a})
instance GoogleRequest SecurityPoliciesDelete where
type Rs SecurityPoliciesDelete = Operation
type Scopes SecurityPoliciesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient SecurityPoliciesDelete'{..}
= go _spdpProject _spdpSecurityPolicy _spdpRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy SecurityPoliciesDeleteResource)
mempty