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 |
Pulls and returns a notification set for the enterprises associated with the service account authenticated for the request. The notification set may be empty if no notification are pending. A notification set returned needs to be acknowledged within 20 seconds by calling Enterprises.AcknowledgeNotificationSet, unless the notification set is empty. Notifications that are not acknowledged within the 20 seconds will eventually be included again in the response to another PullNotificationSet request, and those that are never acknowledged will ultimately be deleted according to the Google Cloud Platform Pub/Sub system policy. Multiple requests might be performed concurrently to retrieve notifications, in which case the pending notifications (if any) will be split among each caller, if any are pending. If no notifications are present, an empty notification list is returned. Subsequent requests may return more notifications once they become available.
See: Google Play EMM API Reference for androidenterprise.enterprises.pullNotificationSet
.
Synopsis
- type EnterprisesPullNotificationSetResource = "androidenterprise" :> ("v1" :> ("enterprises" :> ("pullNotificationSet" :> (QueryParam "requestMode" EnterprisesPullNotificationSetRequestMode :> (QueryParam "alt" AltJSON :> Post '[JSON] NotificationSet)))))
- enterprisesPullNotificationSet :: EnterprisesPullNotificationSet
- data EnterprisesPullNotificationSet
- epnsRequestMode :: Lens' EnterprisesPullNotificationSet (Maybe EnterprisesPullNotificationSetRequestMode)
REST Resource
type EnterprisesPullNotificationSetResource = "androidenterprise" :> ("v1" :> ("enterprises" :> ("pullNotificationSet" :> (QueryParam "requestMode" EnterprisesPullNotificationSetRequestMode :> (QueryParam "alt" AltJSON :> Post '[JSON] NotificationSet))))) Source #
A resource alias for androidenterprise.enterprises.pullNotificationSet
method which the
EnterprisesPullNotificationSet
request conforms to.
Creating a Request
enterprisesPullNotificationSet :: EnterprisesPullNotificationSet Source #
Creates a value of EnterprisesPullNotificationSet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnterprisesPullNotificationSet Source #
Pulls and returns a notification set for the enterprises associated with the service account authenticated for the request. The notification set may be empty if no notification are pending. A notification set returned needs to be acknowledged within 20 seconds by calling Enterprises.AcknowledgeNotificationSet, unless the notification set is empty. Notifications that are not acknowledged within the 20 seconds will eventually be included again in the response to another PullNotificationSet request, and those that are never acknowledged will ultimately be deleted according to the Google Cloud Platform Pub/Sub system policy. Multiple requests might be performed concurrently to retrieve notifications, in which case the pending notifications (if any) will be split among each caller, if any are pending. If no notifications are present, an empty notification list is returned. Subsequent requests may return more notifications once they become available.
See: enterprisesPullNotificationSet
smart constructor.
Instances
Request Lenses
epnsRequestMode :: Lens' EnterprisesPullNotificationSet (Maybe EnterprisesPullNotificationSetRequestMode) Source #
The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Speciying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.