{-# 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.SQL.SSLCerts.Delete
(
SSLCertsDeleteResource
, sslCertsDelete
, SSLCertsDelete
, scdProject
, scdSha1Fingerprint
, scdInstance
) where
import Network.Google.Prelude
import Network.Google.SQLAdmin.Types
type SSLCertsDeleteResource =
"sql" :>
"v1beta4" :>
"projects" :>
Capture "project" Text :>
"instances" :>
Capture "instance" Text :>
"sslCerts" :>
Capture "sha1Fingerprint" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data SSLCertsDelete = SSLCertsDelete'
{ _scdProject :: !Text
, _scdSha1Fingerprint :: !Text
, _scdInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
sslCertsDelete
:: Text
-> Text
-> Text
-> SSLCertsDelete
sslCertsDelete pScdProject_ pScdSha1Fingerprint_ pScdInstance_ =
SSLCertsDelete'
{ _scdProject = pScdProject_
, _scdSha1Fingerprint = pScdSha1Fingerprint_
, _scdInstance = pScdInstance_
}
scdProject :: Lens' SSLCertsDelete Text
scdProject
= lens _scdProject (\ s a -> s{_scdProject = a})
scdSha1Fingerprint :: Lens' SSLCertsDelete Text
scdSha1Fingerprint
= lens _scdSha1Fingerprint
(\ s a -> s{_scdSha1Fingerprint = a})
scdInstance :: Lens' SSLCertsDelete Text
scdInstance
= lens _scdInstance (\ s a -> s{_scdInstance = a})
instance GoogleRequest SSLCertsDelete where
type Rs SSLCertsDelete = Operation
type Scopes SSLCertsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"]
requestClient SSLCertsDelete'{..}
= go _scdProject _scdInstance _scdSha1Fingerprint
(Just AltJSON)
sQLAdminService
where go
= buildClient (Proxy :: Proxy SSLCertsDeleteResource)
mempty