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 |
Updates a notification.
See: Admin Directory API Reference for directory.notifications.update
.
Synopsis
- type NotificationsUpdateResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("notifications" :> (Capture "notificationId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Notification :> Put '[JSON] Notification))))))))
- notificationsUpdate :: Notification -> Text -> Text -> NotificationsUpdate
- data NotificationsUpdate
- nuPayload :: Lens' NotificationsUpdate Notification
- nuCustomer :: Lens' NotificationsUpdate Text
- nuNotificationId :: Lens' NotificationsUpdate Text
REST Resource
type NotificationsUpdateResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("notifications" :> (Capture "notificationId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Notification :> Put '[JSON] Notification)))))))) Source #
A resource alias for directory.notifications.update
method which the
NotificationsUpdate
request conforms to.
Creating a Request
Creates a value of NotificationsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data NotificationsUpdate Source #
Updates a notification.
See: notificationsUpdate
smart constructor.
Instances
Request Lenses
nuPayload :: Lens' NotificationsUpdate Notification Source #
Multipart request metadata.
nuCustomer :: Lens' NotificationsUpdate Text Source #
The unique ID for the customer's G Suite account.
nuNotificationId :: Lens' NotificationsUpdate Text Source #
The unique ID of the notification.