{-# 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.Projects.Sinks.Delete
(
ProjectsSinksDeleteResource
, projectsSinksDelete
, ProjectsSinksDelete
, psdXgafv
, psdUploadProtocol
, psdAccessToken
, psdUploadType
, psdSinkName
, psdCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type ProjectsSinksDeleteResource =
"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 ProjectsSinksDelete = ProjectsSinksDelete'
{ _psdXgafv :: !(Maybe Xgafv)
, _psdUploadProtocol :: !(Maybe Text)
, _psdAccessToken :: !(Maybe Text)
, _psdUploadType :: !(Maybe Text)
, _psdSinkName :: !Text
, _psdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsSinksDelete
:: Text
-> ProjectsSinksDelete
projectsSinksDelete pPsdSinkName_ =
ProjectsSinksDelete'
{ _psdXgafv = Nothing
, _psdUploadProtocol = Nothing
, _psdAccessToken = Nothing
, _psdUploadType = Nothing
, _psdSinkName = pPsdSinkName_
, _psdCallback = Nothing
}
psdXgafv :: Lens' ProjectsSinksDelete (Maybe Xgafv)
psdXgafv = lens _psdXgafv (\ s a -> s{_psdXgafv = a})
psdUploadProtocol :: Lens' ProjectsSinksDelete (Maybe Text)
psdUploadProtocol
= lens _psdUploadProtocol
(\ s a -> s{_psdUploadProtocol = a})
psdAccessToken :: Lens' ProjectsSinksDelete (Maybe Text)
psdAccessToken
= lens _psdAccessToken
(\ s a -> s{_psdAccessToken = a})
psdUploadType :: Lens' ProjectsSinksDelete (Maybe Text)
psdUploadType
= lens _psdUploadType
(\ s a -> s{_psdUploadType = a})
psdSinkName :: Lens' ProjectsSinksDelete Text
psdSinkName
= lens _psdSinkName (\ s a -> s{_psdSinkName = a})
psdCallback :: Lens' ProjectsSinksDelete (Maybe Text)
psdCallback
= lens _psdCallback (\ s a -> s{_psdCallback = a})
instance GoogleRequest ProjectsSinksDelete where
type Rs ProjectsSinksDelete = Empty
type Scopes ProjectsSinksDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient ProjectsSinksDelete'{..}
= go _psdSinkName _psdXgafv _psdUploadProtocol
_psdAccessToken
_psdUploadType
_psdCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy ProjectsSinksDeleteResource)
mempty