Class EnterprisesResource.PullNotificationSetRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class EnterprisesResource.PullNotificationSetRequest : AndroidEnterpriseBaseServiceRequest<NotificationSet>, IClientServiceRequest<NotificationSet>, IClientServiceRequest
Constructors
PullNotificationSetRequest(IClientService)
Constructs a new PullNotificationSet request.
Declaration
public PullNotificationSetRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RequestMode
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. Specifying 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.
Declaration
[RequestParameter("requestMode", RequestParameterType.Query)]
public virtual EnterprisesResource.PullNotificationSetRequest.RequestModeEnum? RequestMode { get; set; }
Property Value
Type | Description |
---|---|
EnterprisesResource.PullNotificationSetRequest.RequestModeEnum? |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes PullNotificationSet parameter list.
Declaration
protected override void InitParameters()