Class: Google::Apis::AndroidenterpriseV1::DeviceReportUpdateEvent

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

An event generated when an updated device report is available.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceReportUpdateEvent

Returns a new instance of DeviceReportUpdateEvent.



727
728
729
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 727

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

Instance Attribute Details

#device_idString

The Android ID of the device. This field will always be present. Corresponds to the JSON property deviceId

Returns:

  • (String)


714
715
716
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 714

def device_id
  @device_id
end

#reportGoogle::Apis::AndroidenterpriseV1::DeviceReport

Device report updated with the latest app states for managed apps on the device. Corresponds to the JSON property report



720
721
722
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 720

def report
  @report
end

#user_idString

The ID of the user. This field will always be present. Corresponds to the JSON property userId

Returns:

  • (String)


725
726
727
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 725

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



732
733
734
735
736
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 732

def update!(**args)
  @device_id = args[:device_id] if args.key?(:device_id)
  @report = args[:report] if args.key?(:report)
  @user_id = args[:user_id] if args.key?(:user_id)
end