{-# 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.SSLCertificates.Delete
(
SSLCertificatesDeleteResource
, sslCertificatesDelete
, SSLCertificatesDelete
, scdRequestId
, scdProject
, scdSSLCertificate
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type SSLCertificatesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"sslCertificates" :>
Capture "sslCertificate" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data SSLCertificatesDelete = SSLCertificatesDelete'
{ _scdRequestId :: !(Maybe Text)
, _scdProject :: !Text
, _scdSSLCertificate :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
sslCertificatesDelete
:: Text
-> Text
-> SSLCertificatesDelete
sslCertificatesDelete pScdProject_ pScdSSLCertificate_ =
SSLCertificatesDelete'
{ _scdRequestId = Nothing
, _scdProject = pScdProject_
, _scdSSLCertificate = pScdSSLCertificate_
}
scdRequestId :: Lens' SSLCertificatesDelete (Maybe Text)
scdRequestId
= lens _scdRequestId (\ s a -> s{_scdRequestId = a})
scdProject :: Lens' SSLCertificatesDelete Text
scdProject
= lens _scdProject (\ s a -> s{_scdProject = a})
scdSSLCertificate :: Lens' SSLCertificatesDelete Text
scdSSLCertificate
= lens _scdSSLCertificate
(\ s a -> s{_scdSSLCertificate = a})
instance GoogleRequest SSLCertificatesDelete where
type Rs SSLCertificatesDelete = Operation
type Scopes SSLCertificatesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient SSLCertificatesDelete'{..}
= go _scdProject _scdSSLCertificate _scdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy SSLCertificatesDeleteResource)
mempty