Class: Google::Apis::AndroidmanagementV1::Device
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::Device
- 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 can't be modified by enterprises.devices.patch.
Instance Attribute Summary collapse
-
#api_level ⇒ Fixnum
The API level of the Android platform version running on the device.
-
#application_reports ⇒ Array<Google::Apis::AndroidmanagementV1::ApplicationReport>
Reports for apps installed on the device.
-
#applied_policy_name ⇒ String
The name of the policy currently applied to the device.
-
#applied_policy_version ⇒ Fixnum
The version of the policy currently applied to the device.
-
#applied_state ⇒ String
The state currently applied to the device.
-
#device_settings ⇒ Google::Apis::AndroidmanagementV1::DeviceSettings
Information about security related device settings on device.
-
#disabled_reason ⇒ Google::Apis::AndroidmanagementV1::UserFacingMessage
Provides a user-facing message with locale info.
-
#displays ⇒ Array<Google::Apis::AndroidmanagementV1::DisplayProp>
Detailed information about displays on the device.
-
#enrollment_time ⇒ String
The time of device enrollment.
-
#enrollment_token_data ⇒ String
If the device was enrolled with an enrollment token with additional data provided, this field contains that data.
-
#enrollment_token_name ⇒ String
If the device was enrolled with an enrollment token, this field contains the name of the token.
-
#hardware_info ⇒ Google::Apis::AndroidmanagementV1::HardwareInfo
Information about device hardware.
-
#hardware_status_samples ⇒ Array<Google::Apis::AndroidmanagementV1::HardwareStatus>
Hardware status samples in chronological order.
-
#last_policy_compliance_report_time ⇒ String
The last time the device sent a policy compliance report.
-
#last_policy_sync_time ⇒ String
The last time the device fetched its policy.
-
#last_status_report_time ⇒ String
The last time the device sent a status report.
-
#memory_events ⇒ Array<Google::Apis::AndroidmanagementV1::MemoryEvent>
Events related to memory and storage measurements in chronological order.
-
#memory_info ⇒ Google::Apis::AndroidmanagementV1::MemoryInfo
Information about device memory and storage.
-
#name ⇒ String
The name of the device in the form enterprises/
enterpriseId
/devices/deviceId
. -
#network_info ⇒ Google::Apis::AndroidmanagementV1::NetworkInfo
Device network info.
-
#non_compliance_details ⇒ Array<Google::Apis::AndroidmanagementV1::NonComplianceDetail>
Details about policy settings that the device is not compliant with.
-
#policy_compliant ⇒ Boolean
(also: #policy_compliant?)
Whether the device is compliant with its policy.
-
#policy_name ⇒ String
The name of the policy applied to the device, in the form enterprises/
enterpriseId
/policies/policyId
. -
#power_management_events ⇒ Array<Google::Apis::AndroidmanagementV1::PowerManagementEvent>
Power management events on the device in chronological order.
-
#previous_device_names ⇒ Array<String>
If the same physical device has been enrolled multiple times, this field contains its previous device names.
-
#software_info ⇒ Google::Apis::AndroidmanagementV1::SoftwareInfo
Information about device software.
-
#state ⇒ String
The state to be applied to the device.
-
#user_name ⇒ String
The resource name of the user that owns this device in the form enterprises/
enterpriseId
/users/userId
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Device
constructor
A new instance of Device.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Device
Returns a new instance of Device
654 655 656 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 654 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_level ⇒ Fixnum
The API level of the Android platform version running on the device.
Corresponds to the JSON property apiLevel
488 489 490 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 488 def api_level @api_level end |
#application_reports ⇒ Array<Google::Apis::AndroidmanagementV1::ApplicationReport>
Reports for apps installed on the device. This information is only available
when application_reports_enabled is true in the device's policy.
Corresponds to the JSON property applicationReports
494 495 496 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 494 def application_reports @application_reports end |
#applied_policy_name ⇒ String
The name of the policy currently applied to the device.
Corresponds to the JSON property appliedPolicyName
499 500 501 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 499 def applied_policy_name @applied_policy_name end |
#applied_policy_version ⇒ Fixnum
The version of the policy currently applied to the device.
Corresponds to the JSON property appliedPolicyVersion
504 505 506 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 504 def applied_policy_version @applied_policy_version end |
#applied_state ⇒ String
The state currently applied to the device.
Corresponds to the JSON property appliedState
509 510 511 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 509 def applied_state @applied_state end |
#device_settings ⇒ Google::Apis::AndroidmanagementV1::DeviceSettings
Information about security related device settings on device.
Corresponds to the JSON property deviceSettings
514 515 516 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 514 def device_settings @device_settings end |
#disabled_reason ⇒ Google::Apis::AndroidmanagementV1::UserFacingMessage
Provides a user-facing message with locale info. The maximum message length is
4096 characters.
Corresponds to the JSON property disabledReason
520 521 522 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 520 def disabled_reason @disabled_reason end |
#displays ⇒ Array<Google::Apis::AndroidmanagementV1::DisplayProp>
Detailed information about displays on the device. This information is only
available if displayInfoEnabled is true in the device's policy.
Corresponds to the JSON property displays
526 527 528 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 526 def displays @displays end |
#enrollment_time ⇒ String
The time of device enrollment.
Corresponds to the JSON property enrollmentTime
531 532 533 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 531 def enrollment_time @enrollment_time end |
#enrollment_token_data ⇒ String
If the device was enrolled with an enrollment token with additional data
provided, this field contains that data.
Corresponds to the JSON property enrollmentTokenData
537 538 539 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 537 def enrollment_token_data @enrollment_token_data end |
#enrollment_token_name ⇒ String
If the device was enrolled with an enrollment token, this field contains the
name of the token.
Corresponds to the JSON property enrollmentTokenName
543 544 545 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 543 def enrollment_token_name @enrollment_token_name end |
#hardware_info ⇒ Google::Apis::AndroidmanagementV1::HardwareInfo
Information about device hardware. The fields related to temperature
thresholds are only available if hardwareStatusEnabled is true in the device's
policy.
Corresponds to the JSON property hardwareInfo
550 551 552 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 550 def hardware_info @hardware_info end |
#hardware_status_samples ⇒ Array<Google::Apis::AndroidmanagementV1::HardwareStatus>
Hardware status samples in chronological order. This information is only
available if hardwareStatusEnabled is true in the device's policy.
Corresponds to the JSON property hardwareStatusSamples
556 557 558 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 556 def hardware_status_samples @hardware_status_samples end |
#last_policy_compliance_report_time ⇒ String
The last time the device sent a policy compliance report. Important: This
field is deprecated. The timestamp will be on last_status_report_time field,
and last_status_report_time will be used for both status report and compliance
report.
Corresponds to the JSON property lastPolicyComplianceReportTime
564 565 566 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 564 def last_policy_compliance_report_time @last_policy_compliance_report_time end |
#last_policy_sync_time ⇒ String
The last time the device fetched its policy.
Corresponds to the JSON property lastPolicySyncTime
569 570 571 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 569 def last_policy_sync_time @last_policy_sync_time end |
#last_status_report_time ⇒ String
The last time the device sent a status report.
Corresponds to the JSON property lastStatusReportTime
574 575 576 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 574 def last_status_report_time @last_status_report_time end |
#memory_events ⇒ Array<Google::Apis::AndroidmanagementV1::MemoryEvent>
Events related to memory and storage measurements in chronological order. This
information is only available if memoryInfoEnabled is true in the device's
policy.
Corresponds to the JSON property memoryEvents
581 582 583 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 581 def memory_events @memory_events end |
#memory_info ⇒ Google::Apis::AndroidmanagementV1::MemoryInfo
Information about device memory and storage.
Corresponds to the JSON property memoryInfo
586 587 588 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 586 def memory_info @memory_info end |
#name ⇒ String
The name of the device in the form enterprises/enterpriseId
/devices/
deviceId
.
Corresponds to the JSON property name
592 593 594 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 592 def name @name end |
#network_info ⇒ Google::Apis::AndroidmanagementV1::NetworkInfo
Device network info.
Corresponds to the JSON property networkInfo
597 598 599 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 597 def network_info @network_info end |
#non_compliance_details ⇒ Array<Google::Apis::AndroidmanagementV1::NonComplianceDetail>
Details about policy settings that the device is not compliant with.
Corresponds to the JSON property nonComplianceDetails
602 603 604 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 602 def non_compliance_details @non_compliance_details end |
#policy_compliant ⇒ Boolean Also known as: policy_compliant?
Whether the device is compliant with its policy.
Corresponds to the JSON property policyCompliant
607 608 609 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 607 def policy_compliant @policy_compliant end |
#policy_name ⇒ String
The name of the policy applied to the device, in the form enterprises/
enterpriseId
/policies/policyId
. If not specified, the policy_name for the
device's user is applied. This field can be modified by a patch request. You
can specify only the policyId when calling enterprises.devices.patch, as long
as the policyId doesn’t contain any slashes. The rest of the policy name is
inferred.
Corresponds to the JSON property policyName
618 619 620 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 618 def policy_name @policy_name end |
#power_management_events ⇒ Array<Google::Apis::AndroidmanagementV1::PowerManagementEvent>
Power management events on the device in chronological order. This information
is only available if powerManagementEventsEnabled is true in the device's
policy.
Corresponds to the JSON property powerManagementEvents
625 626 627 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 625 def power_management_events @power_management_events end |
#previous_device_names ⇒ Array<String>
If the same physical device has been enrolled multiple times, this field
contains its previous device names. 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
633 634 635 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 633 def previous_device_names @previous_device_names end |
#software_info ⇒ Google::Apis::AndroidmanagementV1::SoftwareInfo
Information about device software.
Corresponds to the JSON property softwareInfo
638 639 640 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 638 def software_info @software_info end |
#state ⇒ String
The state to be applied to the device. This field can be modified by a patch
request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED
are the only allowable values. To enter the device into a DELETED state, call
enterprises.devices.delete.
Corresponds to the JSON property state
646 647 648 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 646 def state @state end |
#user_name ⇒ String
The resource name of the user that owns this device in the form enterprises/
enterpriseId
/users/userId
.
Corresponds to the JSON property userName
652 653 654 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 652 def user_name @user_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 659 def update!(**args) @api_level = args[:api_level] if args.key?(:api_level) @application_reports = args[:application_reports] if args.key?(:application_reports) @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) @device_settings = args[:device_settings] if args.key?(:device_settings) @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 |