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