{-# 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.Organizations.Sinks.Delete
(
OrganizationsSinksDeleteResource
, organizationsSinksDelete
, OrganizationsSinksDelete
, osdXgafv
, osdUploadProtocol
, osdAccessToken
, osdUploadType
, osdSinkName
, osdCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type OrganizationsSinksDeleteResource =
"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 OrganizationsSinksDelete = OrganizationsSinksDelete'
{ _osdXgafv :: !(Maybe Xgafv)
, _osdUploadProtocol :: !(Maybe Text)
, _osdAccessToken :: !(Maybe Text)
, _osdUploadType :: !(Maybe Text)
, _osdSinkName :: !Text
, _osdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsSinksDelete
:: Text
-> OrganizationsSinksDelete
organizationsSinksDelete pOsdSinkName_ =
OrganizationsSinksDelete'
{ _osdXgafv = Nothing
, _osdUploadProtocol = Nothing
, _osdAccessToken = Nothing
, _osdUploadType = Nothing
, _osdSinkName = pOsdSinkName_
, _osdCallback = Nothing
}
osdXgafv :: Lens' OrganizationsSinksDelete (Maybe Xgafv)
osdXgafv = lens _osdXgafv (\ s a -> s{_osdXgafv = a})
osdUploadProtocol :: Lens' OrganizationsSinksDelete (Maybe Text)
osdUploadProtocol
= lens _osdUploadProtocol
(\ s a -> s{_osdUploadProtocol = a})
osdAccessToken :: Lens' OrganizationsSinksDelete (Maybe Text)
osdAccessToken
= lens _osdAccessToken
(\ s a -> s{_osdAccessToken = a})
osdUploadType :: Lens' OrganizationsSinksDelete (Maybe Text)
osdUploadType
= lens _osdUploadType
(\ s a -> s{_osdUploadType = a})
osdSinkName :: Lens' OrganizationsSinksDelete Text
osdSinkName
= lens _osdSinkName (\ s a -> s{_osdSinkName = a})
osdCallback :: Lens' OrganizationsSinksDelete (Maybe Text)
osdCallback
= lens _osdCallback (\ s a -> s{_osdCallback = a})
instance GoogleRequest OrganizationsSinksDelete where
type Rs OrganizationsSinksDelete = Empty
type Scopes OrganizationsSinksDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient OrganizationsSinksDelete'{..}
= go _osdSinkName _osdXgafv _osdUploadProtocol
_osdAccessToken
_osdUploadType
_osdCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy OrganizationsSinksDeleteResource)
mempty