module Network.Google.Resource.Logging.Folders.Logs.Delete
(
FoldersLogsDeleteResource
, foldersLogsDelete
, FoldersLogsDelete
, fldXgafv
, fldUploadProtocol
, fldPp
, fldAccessToken
, fldUploadType
, fldBearerToken
, fldLogName
, fldCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type FoldersLogsDeleteResource =
"v2" :>
Capture "logName" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "pp" Bool :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "bearer_token" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data FoldersLogsDelete = FoldersLogsDelete'
{ _fldXgafv :: !(Maybe Xgafv)
, _fldUploadProtocol :: !(Maybe Text)
, _fldPp :: !Bool
, _fldAccessToken :: !(Maybe Text)
, _fldUploadType :: !(Maybe Text)
, _fldBearerToken :: !(Maybe Text)
, _fldLogName :: !Text
, _fldCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
foldersLogsDelete
:: Text
-> FoldersLogsDelete
foldersLogsDelete pFldLogName_ =
FoldersLogsDelete'
{ _fldXgafv = Nothing
, _fldUploadProtocol = Nothing
, _fldPp = True
, _fldAccessToken = Nothing
, _fldUploadType = Nothing
, _fldBearerToken = Nothing
, _fldLogName = pFldLogName_
, _fldCallback = Nothing
}
fldXgafv :: Lens' FoldersLogsDelete (Maybe Xgafv)
fldXgafv = lens _fldXgafv (\ s a -> s{_fldXgafv = a})
fldUploadProtocol :: Lens' FoldersLogsDelete (Maybe Text)
fldUploadProtocol
= lens _fldUploadProtocol
(\ s a -> s{_fldUploadProtocol = a})
fldPp :: Lens' FoldersLogsDelete Bool
fldPp = lens _fldPp (\ s a -> s{_fldPp = a})
fldAccessToken :: Lens' FoldersLogsDelete (Maybe Text)
fldAccessToken
= lens _fldAccessToken
(\ s a -> s{_fldAccessToken = a})
fldUploadType :: Lens' FoldersLogsDelete (Maybe Text)
fldUploadType
= lens _fldUploadType
(\ s a -> s{_fldUploadType = a})
fldBearerToken :: Lens' FoldersLogsDelete (Maybe Text)
fldBearerToken
= lens _fldBearerToken
(\ s a -> s{_fldBearerToken = a})
fldLogName :: Lens' FoldersLogsDelete Text
fldLogName
= lens _fldLogName (\ s a -> s{_fldLogName = a})
fldCallback :: Lens' FoldersLogsDelete (Maybe Text)
fldCallback
= lens _fldCallback (\ s a -> s{_fldCallback = a})
instance GoogleRequest FoldersLogsDelete where
type Rs FoldersLogsDelete = Empty
type Scopes FoldersLogsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient FoldersLogsDelete'{..}
= go _fldLogName _fldXgafv _fldUploadProtocol
(Just _fldPp)
_fldAccessToken
_fldUploadType
_fldBearerToken
_fldCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy FoldersLogsDeleteResource)
mempty