Class: Google::Apis::AndroidenterpriseV1::NotificationSet
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::NotificationSet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidenterprise_v1/classes.rb,
generated/google/apis/androidenterprise_v1/representations.rb,
generated/google/apis/androidenterprise_v1/representations.rb
Overview
A resource returned by the PullNotificationSet API, which contains a collection of notifications for enterprises associated with the service account authenticated for the request.
Instance Attribute Summary collapse
-
#kind ⇒ String
Corresponds to the JSON property
kind
. -
#notification ⇒ Array<Google::Apis::AndroidenterpriseV1::Notification>
The notifications received, or empty if no notifications are present.
-
#notification_set_id ⇒ String
The notification set ID, required to mark the notification as received with the Enterprises.AcknowledgeNotification API.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NotificationSet
constructor
A new instance of NotificationSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NotificationSet
Returns a new instance of NotificationSet.
1852 1853 1854 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1852 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Corresponds to the JSON property kind
1838 1839 1840 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1838 def kind @kind end |
#notification ⇒ Array<Google::Apis::AndroidenterpriseV1::Notification>
The notifications received, or empty if no notifications are present.
Corresponds to the JSON property notification
1843 1844 1845 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1843 def notification @notification end |
#notification_set_id ⇒ String
The notification set ID, required to mark the notification as received with
the Enterprises.AcknowledgeNotification API. This will be omitted if no
notifications are present.
Corresponds to the JSON property notificationSetId
1850 1851 1852 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1850 def notification_set_id @notification_set_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1857 1858 1859 1860 1861 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1857 def update!(**args) @kind = args[:kind] if args.key?(:kind) @notification = args[:notification] if args.key?(:notification) @notification_set_id = args[:notification_set_id] if args.key?(:notification_set_id) end |