{-# 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.Logging.Folders.Sinks.Delete
(
FoldersSinksDeleteResource
, foldersSinksDelete
, FoldersSinksDelete
, fsdXgafv
, fsdUploadProtocol
, fsdAccessToken
, fsdUploadType
, fsdSinkName
, fsdCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type FoldersSinksDeleteResource =
"v2" :>
Capture "sinkName" 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 FoldersSinksDelete = FoldersSinksDelete'
{ _fsdXgafv :: !(Maybe Xgafv)
, _fsdUploadProtocol :: !(Maybe Text)
, _fsdAccessToken :: !(Maybe Text)
, _fsdUploadType :: !(Maybe Text)
, _fsdSinkName :: !Text
, _fsdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
foldersSinksDelete
:: Text
-> FoldersSinksDelete
foldersSinksDelete pFsdSinkName_ =
FoldersSinksDelete'
{ _fsdXgafv = Nothing
, _fsdUploadProtocol = Nothing
, _fsdAccessToken = Nothing
, _fsdUploadType = Nothing
, _fsdSinkName = pFsdSinkName_
, _fsdCallback = Nothing
}
fsdXgafv :: Lens' FoldersSinksDelete (Maybe Xgafv)
fsdXgafv = lens _fsdXgafv (\ s a -> s{_fsdXgafv = a})
fsdUploadProtocol :: Lens' FoldersSinksDelete (Maybe Text)
fsdUploadProtocol
= lens _fsdUploadProtocol
(\ s a -> s{_fsdUploadProtocol = a})
fsdAccessToken :: Lens' FoldersSinksDelete (Maybe Text)
fsdAccessToken
= lens _fsdAccessToken
(\ s a -> s{_fsdAccessToken = a})
fsdUploadType :: Lens' FoldersSinksDelete (Maybe Text)
fsdUploadType
= lens _fsdUploadType
(\ s a -> s{_fsdUploadType = a})
fsdSinkName :: Lens' FoldersSinksDelete Text
fsdSinkName
= lens _fsdSinkName (\ s a -> s{_fsdSinkName = a})
fsdCallback :: Lens' FoldersSinksDelete (Maybe Text)
fsdCallback
= lens _fsdCallback (\ s a -> s{_fsdCallback = a})
instance GoogleRequest FoldersSinksDelete where
type Rs FoldersSinksDelete = Empty
type Scopes FoldersSinksDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient FoldersSinksDelete'{..}
= go _fsdSinkName _fsdXgafv _fsdUploadProtocol
_fsdAccessToken
_fsdUploadType
_fsdCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy FoldersSinksDeleteResource)
mempty