{-# 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.Storage.Notifications.Delete
(
NotificationsDeleteResource
, notificationsDelete
, NotificationsDelete
, ndNotification
, ndBucket
, ndUserProject
) where
import Network.Google.Prelude
import Network.Google.Storage.Types
type NotificationsDeleteResource =
"storage" :>
"v1" :>
"b" :>
Capture "bucket" Text :>
"notificationConfigs" :>
Capture "notification" Text :>
QueryParam "userProject" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data NotificationsDelete = NotificationsDelete'
{ _ndNotification :: !Text
, _ndBucket :: !Text
, _ndUserProject :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
notificationsDelete
:: Text
-> Text
-> NotificationsDelete
notificationsDelete pNdNotification_ pNdBucket_ =
NotificationsDelete'
{ _ndNotification = pNdNotification_
, _ndBucket = pNdBucket_
, _ndUserProject = Nothing
}
ndNotification :: Lens' NotificationsDelete Text
ndNotification
= lens _ndNotification
(\ s a -> s{_ndNotification = a})
ndBucket :: Lens' NotificationsDelete Text
ndBucket = lens _ndBucket (\ s a -> s{_ndBucket = a})
ndUserProject :: Lens' NotificationsDelete (Maybe Text)
ndUserProject
= lens _ndUserProject
(\ s a -> s{_ndUserProject = a})
instance GoogleRequest NotificationsDelete where
type Rs NotificationsDelete = ()
type Scopes NotificationsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/devstorage.full_control",
"https://www.googleapis.com/auth/devstorage.read_write"]
requestClient NotificationsDelete'{..}
= go _ndBucket _ndNotification _ndUserProject
(Just AltJSON)
storageService
where go
= buildClient
(Proxy :: Proxy NotificationsDeleteResource)
mempty