{-# 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.Sinks.Delete
(
SinksDeleteResource
, sinksDelete
, SinksDelete
, sdXgafv
, sdUploadProtocol
, sdAccessToken
, sdUploadType
, sdSinkName
, sdCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type SinksDeleteResource =
"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 SinksDelete = SinksDelete'
{ _sdXgafv :: !(Maybe Xgafv)
, _sdUploadProtocol :: !(Maybe Text)
, _sdAccessToken :: !(Maybe Text)
, _sdUploadType :: !(Maybe Text)
, _sdSinkName :: !Text
, _sdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
sinksDelete
:: Text
-> SinksDelete
sinksDelete pSdSinkName_ =
SinksDelete'
{ _sdXgafv = Nothing
, _sdUploadProtocol = Nothing
, _sdAccessToken = Nothing
, _sdUploadType = Nothing
, _sdSinkName = pSdSinkName_
, _sdCallback = Nothing
}
sdXgafv :: Lens' SinksDelete (Maybe Xgafv)
sdXgafv = lens _sdXgafv (\ s a -> s{_sdXgafv = a})
sdUploadProtocol :: Lens' SinksDelete (Maybe Text)
sdUploadProtocol
= lens _sdUploadProtocol
(\ s a -> s{_sdUploadProtocol = a})
sdAccessToken :: Lens' SinksDelete (Maybe Text)
sdAccessToken
= lens _sdAccessToken
(\ s a -> s{_sdAccessToken = a})
sdUploadType :: Lens' SinksDelete (Maybe Text)
sdUploadType
= lens _sdUploadType (\ s a -> s{_sdUploadType = a})
sdSinkName :: Lens' SinksDelete Text
sdSinkName
= lens _sdSinkName (\ s a -> s{_sdSinkName = a})
sdCallback :: Lens' SinksDelete (Maybe Text)
sdCallback
= lens _sdCallback (\ s a -> s{_sdCallback = a})
instance GoogleRequest SinksDelete where
type Rs SinksDelete = Empty
type Scopes SinksDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient SinksDelete'{..}
= go _sdSinkName _sdXgafv _sdUploadProtocol
_sdAccessToken
_sdUploadType
_sdCallback
(Just AltJSON)
loggingService
where go
= buildClient (Proxy :: Proxy SinksDeleteResource)
mempty