Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a notification subscription for a given bucket.
See: Cloud Storage JSON API Reference for storage.notifications.insert
.
Synopsis
- type NotificationsInsertResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("notificationConfigs" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Notification :> Post '[JSON] Notification)))))))
- notificationsInsert :: Text -> Notification -> NotificationsInsert
- data NotificationsInsert
- niBucket :: Lens' NotificationsInsert Text
- niPayload :: Lens' NotificationsInsert Notification
- niUserProject :: Lens' NotificationsInsert (Maybe Text)
REST Resource
type NotificationsInsertResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("notificationConfigs" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Notification :> Post '[JSON] Notification))))))) Source #
A resource alias for storage.notifications.insert
method which the
NotificationsInsert
request conforms to.
Creating a Request
Creates a value of NotificationsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data NotificationsInsert Source #
Creates a notification subscription for a given bucket.
See: notificationsInsert
smart constructor.
Instances
Request Lenses
niPayload :: Lens' NotificationsInsert Notification Source #
Multipart request metadata.
niUserProject :: Lens' NotificationsInsert (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.