{-# 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.WebSecurityScanner.Projects.ScanConfigs.Delete
(
ProjectsScanConfigsDeleteResource
, projectsScanConfigsDelete
, ProjectsScanConfigsDelete
, pscdXgafv
, pscdUploadProtocol
, pscdAccessToken
, pscdUploadType
, pscdName
, pscdCallback
) where
import Network.Google.Prelude
import Network.Google.WebSecurityScanner.Types
type ProjectsScanConfigsDeleteResource =
"v1alpha" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data ProjectsScanConfigsDelete = ProjectsScanConfigsDelete'
{ _pscdXgafv :: !(Maybe Xgafv)
, _pscdUploadProtocol :: !(Maybe Text)
, _pscdAccessToken :: !(Maybe Text)
, _pscdUploadType :: !(Maybe Text)
, _pscdName :: !Text
, _pscdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsScanConfigsDelete
:: Text
-> ProjectsScanConfigsDelete
projectsScanConfigsDelete pPscdName_ =
ProjectsScanConfigsDelete'
{ _pscdXgafv = Nothing
, _pscdUploadProtocol = Nothing
, _pscdAccessToken = Nothing
, _pscdUploadType = Nothing
, _pscdName = pPscdName_
, _pscdCallback = Nothing
}
pscdXgafv :: Lens' ProjectsScanConfigsDelete (Maybe Xgafv)
pscdXgafv
= lens _pscdXgafv (\ s a -> s{_pscdXgafv = a})
pscdUploadProtocol :: Lens' ProjectsScanConfigsDelete (Maybe Text)
pscdUploadProtocol
= lens _pscdUploadProtocol
(\ s a -> s{_pscdUploadProtocol = a})
pscdAccessToken :: Lens' ProjectsScanConfigsDelete (Maybe Text)
pscdAccessToken
= lens _pscdAccessToken
(\ s a -> s{_pscdAccessToken = a})
pscdUploadType :: Lens' ProjectsScanConfigsDelete (Maybe Text)
pscdUploadType
= lens _pscdUploadType
(\ s a -> s{_pscdUploadType = a})
pscdName :: Lens' ProjectsScanConfigsDelete Text
pscdName = lens _pscdName (\ s a -> s{_pscdName = a})
pscdCallback :: Lens' ProjectsScanConfigsDelete (Maybe Text)
pscdCallback
= lens _pscdCallback (\ s a -> s{_pscdCallback = a})
instance GoogleRequest ProjectsScanConfigsDelete
where
type Rs ProjectsScanConfigsDelete = Empty
type Scopes ProjectsScanConfigsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsScanConfigsDelete'{..}
= go _pscdName _pscdXgafv _pscdUploadProtocol
_pscdAccessToken
_pscdUploadType
_pscdCallback
(Just AltJSON)
webSecurityScannerService
where go
= buildClient
(Proxy :: Proxy ProjectsScanConfigsDeleteResource)
mempty