Class: Google::Apis::AndroidenterpriseV1::Notification
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::Notification
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidenterprise_v1/classes.rb,
lib/google/apis/androidenterprise_v1/representations.rb,
lib/google/apis/androidenterprise_v1/representations.rb
Overview
A notification of one event relating to an enterprise.
Instance Attribute Summary collapse
-
#app_restrictions_schema_change_event ⇒ Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent
An event generated when a new app version is uploaded to Google Play and its app restrictions schema changed.
-
#app_update_event ⇒ Google::Apis::AndroidenterpriseV1::AppUpdateEvent
An event generated when a new version of an app is uploaded to Google Play.
-
#device_report_update_event ⇒ Google::Apis::AndroidenterpriseV1::DeviceReportUpdateEvent
An event generated when an updated device report is available.
-
#enterprise_id ⇒ String
The ID of the enterprise for which the notification is sent.
-
#install_failure_event ⇒ Google::Apis::AndroidenterpriseV1::InstallFailureEvent
An event generated when an app installation failed on a device Corresponds to the JSON property
installFailureEvent
. -
#new_device_event ⇒ Google::Apis::AndroidenterpriseV1::NewDeviceEvent
An event generated when a new device is ready to be managed.
-
#new_permissions_event ⇒ Google::Apis::AndroidenterpriseV1::NewPermissionsEvent
An event generated when new permissions are added to an app.
-
#notification_type ⇒ String
Type of the notification.
-
#product_approval_event ⇒ Google::Apis::AndroidenterpriseV1::ProductApprovalEvent
An event generated when a product's approval status is changed.
-
#product_availability_change_event ⇒ Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent
An event generated whenever a product's availability changes.
-
#timestamp_millis ⇒ Fixnum
The time when the notification was published in milliseconds since 1970-01- 01T00:00:00Z.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Notification
constructor
A new instance of Notification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Notification
Returns a new instance of Notification.
1776 1777 1778 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1776 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_restrictions_schema_change_event ⇒ Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent
An event generated when a new app version is uploaded to Google Play and its
app restrictions schema changed. To fetch the app restrictions schema for an
app, use Products.getAppRestrictionsSchema on the EMM API.
Corresponds to the JSON property appRestrictionsSchemaChangeEvent
1719 1720 1721 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1719 def app_restrictions_schema_change_event @app_restrictions_schema_change_event end |
#app_update_event ⇒ Google::Apis::AndroidenterpriseV1::AppUpdateEvent
An event generated when a new version of an app is uploaded to Google Play.
Notifications are sent for new public versions only: alpha, beta, or canary
versions do not generate this event. To fetch up-to-date version history for
an app, use Products.Get on the EMM API.
Corresponds to the JSON property appUpdateEvent
1727 1728 1729 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1727 def app_update_event @app_update_event end |
#device_report_update_event ⇒ Google::Apis::AndroidenterpriseV1::DeviceReportUpdateEvent
An event generated when an updated device report is available.
Corresponds to the JSON property deviceReportUpdateEvent
1732 1733 1734 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1732 def device_report_update_event @device_report_update_event end |
#enterprise_id ⇒ String
The ID of the enterprise for which the notification is sent. This will always
be present.
Corresponds to the JSON property enterpriseId
1738 1739 1740 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1738 def enterprise_id @enterprise_id end |
#install_failure_event ⇒ Google::Apis::AndroidenterpriseV1::InstallFailureEvent
An event generated when an app installation failed on a device
Corresponds to the JSON property installFailureEvent
1743 1744 1745 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1743 def install_failure_event @install_failure_event end |
#new_device_event ⇒ Google::Apis::AndroidenterpriseV1::NewDeviceEvent
An event generated when a new device is ready to be managed.
Corresponds to the JSON property newDeviceEvent
1748 1749 1750 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1748 def new_device_event @new_device_event end |
#new_permissions_event ⇒ Google::Apis::AndroidenterpriseV1::NewPermissionsEvent
An event generated when new permissions are added to an app.
Corresponds to the JSON property newPermissionsEvent
1753 1754 1755 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1753 def @new_permissions_event end |
#notification_type ⇒ String
Type of the notification.
Corresponds to the JSON property notificationType
1758 1759 1760 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1758 def notification_type @notification_type end |
#product_approval_event ⇒ Google::Apis::AndroidenterpriseV1::ProductApprovalEvent
An event generated when a product's approval status is changed.
Corresponds to the JSON property productApprovalEvent
1763 1764 1765 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1763 def product_approval_event @product_approval_event end |
#product_availability_change_event ⇒ Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent
An event generated whenever a product's availability changes.
Corresponds to the JSON property productAvailabilityChangeEvent
1768 1769 1770 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1768 def product_availability_change_event @product_availability_change_event end |
#timestamp_millis ⇒ Fixnum
The time when the notification was published in milliseconds since 1970-01-
01T00:00:00Z. This will always be present.
Corresponds to the JSON property timestampMillis
1774 1775 1776 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1774 def @timestamp_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1781 def update!(**args) @app_restrictions_schema_change_event = args[:app_restrictions_schema_change_event] if args.key?(:app_restrictions_schema_change_event) @app_update_event = args[:app_update_event] if args.key?(:app_update_event) @device_report_update_event = args[:device_report_update_event] if args.key?(:device_report_update_event) @enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id) @install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event) @new_device_event = args[:new_device_event] if args.key?(:new_device_event) @new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event) @notification_type = args[:notification_type] if args.key?(:notification_type) @product_approval_event = args[:product_approval_event] if args.key?(:product_approval_event) @product_availability_change_event = args[:product_availability_change_event] if args.key?(:product_availability_change_event) @timestamp_millis = args[:timestamp_millis] if args.key?(:timestamp_millis) end |