{-# 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.TargetSSLProxies.Delete
(
TargetSSLProxiesDeleteResource
, targetSSLProxiesDelete
, TargetSSLProxiesDelete
, tspdRequestId
, tspdProject
, tspdTargetSSLProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetSSLProxiesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetSslProxies" :>
Capture "targetSslProxy" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data TargetSSLProxiesDelete = TargetSSLProxiesDelete'
{ _tspdRequestId :: !(Maybe Text)
, _tspdProject :: !Text
, _tspdTargetSSLProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetSSLProxiesDelete
:: Text
-> Text
-> TargetSSLProxiesDelete
targetSSLProxiesDelete pTspdProject_ pTspdTargetSSLProxy_ =
TargetSSLProxiesDelete'
{ _tspdRequestId = Nothing
, _tspdProject = pTspdProject_
, _tspdTargetSSLProxy = pTspdTargetSSLProxy_
}
tspdRequestId :: Lens' TargetSSLProxiesDelete (Maybe Text)
tspdRequestId
= lens _tspdRequestId
(\ s a -> s{_tspdRequestId = a})
tspdProject :: Lens' TargetSSLProxiesDelete Text
tspdProject
= lens _tspdProject (\ s a -> s{_tspdProject = a})
tspdTargetSSLProxy :: Lens' TargetSSLProxiesDelete Text
tspdTargetSSLProxy
= lens _tspdTargetSSLProxy
(\ s a -> s{_tspdTargetSSLProxy = a})
instance GoogleRequest TargetSSLProxiesDelete where
type Rs TargetSSLProxiesDelete = Operation
type Scopes TargetSSLProxiesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetSSLProxiesDelete'{..}
= go _tspdProject _tspdTargetSSLProxy _tspdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetSSLProxiesDeleteResource)
mempty