Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1AppUsageData
- Inherits:
-
Object
- Object
- Google::Apis::ChromemanagementV1::GoogleChromeManagementV1AppUsageData
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chromemanagement_v1/classes.rb,
lib/google/apis/chromemanagement_v1/representations.rb,
lib/google/apis/chromemanagement_v1/representations.rb
Overview
App usage data.
Instance Attribute Summary collapse
-
#app_id ⇒ String
App id.
-
#app_instance_id ⇒ String
Application instance id.
-
#app_type ⇒ String
Type of app.
-
#running_duration ⇒ String
App foreground running time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromeManagementV1AppUsageData
constructor
A new instance of GoogleChromeManagementV1AppUsageData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromeManagementV1AppUsageData
Returns a new instance of GoogleChromeManagementV1AppUsageData.
253 254 255 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 253 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_id ⇒ String
App id.
Corresponds to the JSON property appId
236 237 238 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 236 def app_id @app_id end |
#app_instance_id ⇒ String
Application instance id. This will be unique per window/instance.
Corresponds to the JSON property appInstanceId
241 242 243 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 241 def app_instance_id @app_instance_id end |
#app_type ⇒ String
Type of app.
Corresponds to the JSON property appType
246 247 248 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 246 def app_type @app_type end |
#running_duration ⇒ String
App foreground running time.
Corresponds to the JSON property runningDuration
251 252 253 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 251 def running_duration @running_duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
258 259 260 261 262 263 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 258 def update!(**args) @app_id = args[:app_id] if args.key?(:app_id) @app_instance_id = args[:app_instance_id] if args.key?(:app_instance_id) @app_type = args[:app_type] if args.key?(:app_type) @running_duration = args[:running_duration] if args.key?(:running_duration) end |