Class: Google::Apis::AndroidmanagementV1::Device

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb

Overview

A device owned by an enterprise. Unless otherwise noted, all fields are read- only and cannot be modified by an update device request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Device

Returns a new instance of Device



435
436
437
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 435

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

Instance Attribute Details

#api_levelFixnum

The API level of the Android platform version running on the device. Corresponds to the JSON property apiLevel

Returns:

  • (Fixnum)


282
283
284
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 282

def api_level
  @api_level
end

#applied_policy_nameString

The name of the policy that is currently applied by the device. Corresponds to the JSON property appliedPolicyName

Returns:

  • (String)


287
288
289
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 287

def applied_policy_name
  @applied_policy_name
end

#applied_policy_versionFixnum

The version of the policy that is currently applied by the device. Corresponds to the JSON property appliedPolicyVersion

Returns:

  • (Fixnum)


292
293
294
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 292

def applied_policy_version
  @applied_policy_version
end

#applied_stateString

The state that is currently applied by the device. Corresponds to the JSON property appliedState

Returns:

  • (String)


297
298
299
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 297

def applied_state
  @applied_state
end

#disabled_reasonGoogle::Apis::AndroidmanagementV1::UserFacingMessage

Provides user facing message with locale info. The maximum message length is 4096 characters. Corresponds to the JSON property disabledReason



303
304
305
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 303

def disabled_reason
  @disabled_reason
end

#displaysArray<Google::Apis::AndroidmanagementV1::DisplayProp>

Displays on the device. This information is only available when displayInfoEnabled is true in the device's policy. Corresponds to the JSON property displays



309
310
311
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 309

def displays
  @displays
end

#enrollment_timeString

The time of device enrollment. Corresponds to the JSON property enrollmentTime

Returns:

  • (String)


314
315
316
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 314

def enrollment_time
  @enrollment_time
end

#enrollment_token_dataString

If this device was enrolled with an enrollment token with additional data provided, this field contains that data. Corresponds to the JSON property enrollmentTokenData

Returns:

  • (String)


320
321
322
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 320

def enrollment_token_data
  @enrollment_token_data
end

#enrollment_token_nameString

If this device was enrolled with an enrollment token, this field contains the name of the token. Corresponds to the JSON property enrollmentTokenName

Returns:

  • (String)


326
327
328
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 326

def enrollment_token_name
  @enrollment_token_name
end

#hardware_infoGoogle::Apis::AndroidmanagementV1::HardwareInfo

Information about device hardware. The fields related to temperature thresholds are only available when hardwareStatusEnabled is true in the device' s policy. Corresponds to the JSON property hardwareInfo



333
334
335
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 333

def hardware_info
  @hardware_info
end

#hardware_status_samplesArray<Google::Apis::AndroidmanagementV1::HardwareStatus>

Hardware status samples in chronological order. This information is only available when hardwareStatusEnabled is true in the device's policy. Corresponds to the JSON property hardwareStatusSamples



339
340
341
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 339

def hardware_status_samples
  @hardware_status_samples
end

#last_policy_compliance_report_timeString

The last time the device sent a policy compliance report. Corresponds to the JSON property lastPolicyComplianceReportTime

Returns:

  • (String)


344
345
346
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 344

def last_policy_compliance_report_time
  @last_policy_compliance_report_time
end

#last_policy_sync_timeString

The last time the device fetched its policy. Corresponds to the JSON property lastPolicySyncTime

Returns:

  • (String)


349
350
351
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 349

def last_policy_sync_time
  @last_policy_sync_time
end

#last_status_report_timeString

The last time the device sent a status report. Corresponds to the JSON property lastStatusReportTime

Returns:

  • (String)


354
355
356
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 354

def last_status_report_time
  @last_status_report_time
end

#memory_eventsArray<Google::Apis::AndroidmanagementV1::MemoryEvent>

Events related to memory and storage measurements in chronological order. This information is only available when memoryInfoEnabled is true in the device's policy. Corresponds to the JSON property memoryEvents



361
362
363
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 361

def memory_events
  @memory_events
end

#memory_infoGoogle::Apis::AndroidmanagementV1::MemoryInfo

Information about device memory and storage. Corresponds to the JSON property memoryInfo



366
367
368
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 366

def memory_info
  @memory_info
end

#nameString

The name of the device in the form enterprises/enterpriseId/devices/ deviceId Corresponds to the JSON property name

Returns:

  • (String)


372
373
374
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 372

def name
  @name
end

#network_infoGoogle::Apis::AndroidmanagementV1::NetworkInfo

Device network info. Corresponds to the JSON property networkInfo



377
378
379
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 377

def network_info
  @network_info
end

#non_compliance_detailsArray<Google::Apis::AndroidmanagementV1::NonComplianceDetail>

Details about policy settings for which the device is not in compliance. Corresponds to the JSON property nonComplianceDetails



382
383
384
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 382

def non_compliance_details
  @non_compliance_details
end

#policy_compliantBoolean Also known as: policy_compliant?

Whether the device is compliant with its policy. Corresponds to the JSON property policyCompliant

Returns:

  • (Boolean)


387
388
389
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 387

def policy_compliant
  @policy_compliant
end

#policy_nameString

The name of the policy that is intended to be applied to the device. If empty, the policy with id default is applied. This field may be modified by an update request. The name of the policy is in the form enterprises/enterpriseId/ policies/policyId. It is also permissible to only specify the policyId when updating this field as long as the policyId contains no slashes since the rest of the policy name can be inferred from context. Corresponds to the JSON property policyName

Returns:

  • (String)


398
399
400
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 398

def policy_name
  @policy_name
end

#power_management_eventsArray<Google::Apis::AndroidmanagementV1::PowerManagementEvent>

Power management events on the device in chronological order. This information is only available when powerManagementEventsEnabled is true in the device's policy. Corresponds to the JSON property powerManagementEvents



405
406
407
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 405

def power_management_events
  @power_management_events
end

#previous_device_namesArray<String>

The previous device names used for the same physical device when it has been enrolled multiple times. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order. Corresponds to the JSON property previousDeviceNames

Returns:

  • (Array<String>)


413
414
415
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 413

def previous_device_names
  @previous_device_names
end

#software_infoGoogle::Apis::AndroidmanagementV1::SoftwareInfo

Information about device software. Corresponds to the JSON property softwareInfo



418
419
420
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 418

def software_info
  @software_info
end

#stateString

The state that is intended to be applied to the device. This field may be modified by an update request. Note that UpdateDevice only handles toggling between ACTIVE and DISABLED states. Use the delete device method to cause the device to enter the DELETED state. Corresponds to the JSON property state

Returns:

  • (String)


426
427
428
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 426

def state
  @state
end

#user_nameString

The resource name of the user of the device in the form enterprises/ enterpriseId/users/userId. This is the name of the device account automatically created for this device. Corresponds to the JSON property userName

Returns:

  • (String)


433
434
435
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 433

def user_name
  @user_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 440

def update!(**args)
  @api_level = args[:api_level] if args.key?(:api_level)
  @applied_policy_name = args[:applied_policy_name] if args.key?(:applied_policy_name)
  @applied_policy_version = args[:applied_policy_version] if args.key?(:applied_policy_version)
  @applied_state = args[:applied_state] if args.key?(:applied_state)
  @disabled_reason = args[:disabled_reason] if args.key?(:disabled_reason)
  @displays = args[:displays] if args.key?(:displays)
  @enrollment_time = args[:enrollment_time] if args.key?(:enrollment_time)
  @enrollment_token_data = args[:enrollment_token_data] if args.key?(:enrollment_token_data)
  @enrollment_token_name = args[:enrollment_token_name] if args.key?(:enrollment_token_name)
  @hardware_info = args[:hardware_info] if args.key?(:hardware_info)
  @hardware_status_samples = args[:hardware_status_samples] if args.key?(:hardware_status_samples)
  @last_policy_compliance_report_time = args[:last_policy_compliance_report_time] if args.key?(:last_policy_compliance_report_time)
  @last_policy_sync_time = args[:last_policy_sync_time] if args.key?(:last_policy_sync_time)
  @last_status_report_time = args[:last_status_report_time] if args.key?(:last_status_report_time)
  @memory_events = args[:memory_events] if args.key?(:memory_events)
  @memory_info = args[:memory_info] if args.key?(:memory_info)
  @name = args[:name] if args.key?(:name)
  @network_info = args[:network_info] if args.key?(:network_info)
  @non_compliance_details = args[:non_compliance_details] if args.key?(:non_compliance_details)
  @policy_compliant = args[:policy_compliant] if args.key?(:policy_compliant)
  @policy_name = args[:policy_name] if args.key?(:policy_name)
  @power_management_events = args[:power_management_events] if args.key?(:power_management_events)
  @previous_device_names = args[:previous_device_names] if args.key?(:previous_device_names)
  @software_info = args[:software_info] if args.key?(:software_info)
  @state = args[:state] if args.key?(:state)
  @user_name = args[:user_name] if args.key?(:user_name)
end