Class: Google::Apis::AndroidenterpriseV1::NotificationSet

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NotificationSet

Returns a new instance of NotificationSet



1334
1335
1336
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1334

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string " androidenterprise#notificationSet". Corresponds to the JSON property kind

Returns:

  • (String)


1320
1321
1322
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1320

def kind
  @kind
end

#notificationArray<Google::Apis::AndroidenterpriseV1::Notification>

The notifications received, or empty if no notifications are present. Corresponds to the JSON property notification



1325
1326
1327
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1325

def notification
  @notification
end

#notification_set_idString

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

Returns:

  • (String)


1332
1333
1334
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1332

def notification_set_id
  @notification_set_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1339
1340
1341
1342
1343
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1339

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