Class: Google::Apis::AndroidenterpriseV1::DeviceReport
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::DeviceReport
- 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
Device report updated with the latest app states for managed apps on the device.
Instance Attribute Summary collapse
-
#app_state ⇒ Array<Google::Apis::AndroidenterpriseV1::AppState>
List of app states set by managed apps on the device.
-
#last_updated_timestamp_millis ⇒ Fixnum
The timestamp of the last report update in milliseconds since epoch.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceReport
constructor
A new instance of DeviceReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DeviceReport
Returns a new instance of DeviceReport.
735 736 737 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 735 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_state ⇒ Array<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
727 728 729 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 727 def app_state @app_state end |
#last_updated_timestamp_millis ⇒ Fixnum
The timestamp of the last report update in milliseconds since epoch. This
field will always be present.
Corresponds to the JSON property lastUpdatedTimestampMillis
733 734 735 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 733 def @last_updated_timestamp_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
740 741 742 743 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 740 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 |