Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1AppUsageData

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

Instance Method Summary collapse

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_idString

App id. Corresponds to the JSON property appId

Returns:

  • (String)


236
237
238
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 236

def app_id
  @app_id
end

#app_instance_idString

Application instance id. This will be unique per window/instance. Corresponds to the JSON property appInstanceId

Returns:

  • (String)


241
242
243
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 241

def app_instance_id
  @app_instance_id
end

#app_typeString

Type of app. Corresponds to the JSON property appType

Returns:

  • (String)


246
247
248
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 246

def app_type
  @app_type
end

#running_durationString

App foreground running time. Corresponds to the JSON property runningDuration

Returns:

  • (String)


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