Class: Google::Apis::AndroidenterpriseV1::DeviceReport

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

Device report updated with the latest app states for managed apps on the device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceReport

Returns a new instance of DeviceReport.



794
795
796
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 794

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

Instance Attribute Details

#app_stateArray<Google::Apis::AndroidenterpriseV1::AppState>

List of app states set by managed apps on the device. App states are defined by the app's developers. This field will always be present. Corresponds to the JSON property appState



786
787
788
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 786

def app_state
  @app_state
end

#last_updated_timestamp_millisFixnum

The timestamp of the last report update in milliseconds since epoch. This field will always be present. Corresponds to the JSON property lastUpdatedTimestampMillis

Returns:

  • (Fixnum)


792
793
794
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 792

def last_updated_timestamp_millis
  @last_updated_timestamp_millis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



799
800
801
802
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 799

def update!(**args)
  @app_state = args[:app_state] if args.key?(:app_state)
  @last_updated_timestamp_millis = args[:last_updated_timestamp_millis] if args.key?(:last_updated_timestamp_millis)
end