Class: Google::Apis::AndroidenterpriseV1::Notification

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 notification of one event relating to an enterprise.

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) ⇒ Notification

Returns a new instance of Notification.


1354
1355
1356
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1354

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

Instance Attribute Details

#app_restrictions_schema_change_eventGoogle::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


1312
1313
1314
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1312

def app_restrictions_schema_change_event
  @app_restrictions_schema_change_event
end

#app_update_eventGoogle::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


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

def app_update_event
  @app_update_event
end

#enterprise_idString

The ID of the enterprise for which the notification is sent. This will always be present. Corresponds to the JSON property enterpriseId

Returns:

  • (String)

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

def enterprise_id
  @enterprise_id
end

#install_failure_eventGoogle::Apis::AndroidenterpriseV1::InstallFailureEvent

An event generated when an app installation failed on a device Corresponds to the JSON property installFailureEvent


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

def install_failure_event
  @install_failure_event
end

#new_permissions_eventGoogle::Apis::AndroidenterpriseV1::NewPermissionsEvent

An event generated when new permissions are added to an app. Corresponds to the JSON property newPermissionsEvent


1336
1337
1338
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1336

def new_permissions_event
  @new_permissions_event
end

#product_approval_eventGoogle::Apis::AndroidenterpriseV1::ProductApprovalEvent

An event generated when a product's approval status is changed. Corresponds to the JSON property productApprovalEvent


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

def product_approval_event
  @product_approval_event
end

#product_availability_change_eventGoogle::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent

An event generated whenever a product's availability changes. Corresponds to the JSON property productAvailabilityChangeEvent


1346
1347
1348
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1346

def product_availability_change_event
  @product_availability_change_event
end

#timestamp_millisString

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

Returns:

  • (String)

1352
1353
1354
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1352

def timestamp_millis
  @timestamp_millis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1359

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)
  @enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
  @install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
  @new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
  @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