class Google::Apis::AndroidmanagementV1::Device

A device owned by an enterprise. Unless otherwise noted, all fields are read- only and can't be modified by enterprises.devices.patch.

Attributes

api_level[RW]

The API level of the Android platform version running on the device. Corresponds to the JSON property `apiLevel` @return [Fixnum]

application_reports[RW]

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` @return [Array<Google::Apis::AndroidmanagementV1::ApplicationReport>]

applied_password_policies[RW]

The password requirements currently applied to the device. The applied requirements may be slightly different from those specified in passwordPolicies in some cases. fieldPath is set based on passwordPolicies. Corresponds to the JSON property `appliedPasswordPolicies` @return [Array<Google::Apis::AndroidmanagementV1::PasswordRequirements>]

applied_policy_name[RW]

The name of the policy currently applied to the device. Corresponds to the JSON property `appliedPolicyName` @return [String]

applied_policy_version[RW]

The version of the policy currently applied to the device. Corresponds to the JSON property `appliedPolicyVersion` @return [Fixnum]

applied_state[RW]

The state currently applied to the device. Corresponds to the JSON property `appliedState` @return [String]

common_criteria_mode_info[RW]

Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (www. commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy. Corresponds to the JSON property `commonCriteriaModeInfo` @return [Google::Apis::AndroidmanagementV1::CommonCriteriaModeInfo]

device_settings[RW]

Information about security related device settings on device. Corresponds to the JSON property `deviceSettings` @return [Google::Apis::AndroidmanagementV1::DeviceSettings]

disabled_reason[RW]

Provides a user-facing message with locale info. The maximum message length is 4096 characters. Corresponds to the JSON property `disabledReason` @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]

displays[RW]

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` @return [Array<Google::Apis::AndroidmanagementV1::DisplayProp>]

enrollment_time[RW]

The time of device enrollment. Corresponds to the JSON property `enrollmentTime` @return [String]

enrollment_token_data[RW]

If the device was enrolled with an enrollment token with additional data provided, this field contains that data. Corresponds to the JSON property `enrollmentTokenData` @return [String]

enrollment_token_name[RW]

If the device was enrolled with an enrollment token, this field contains the name of the token. Corresponds to the JSON property `enrollmentTokenName` @return [String]

hardware_info[RW]

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` @return [Google::Apis::AndroidmanagementV1::HardwareInfo]

hardware_status_samples[RW]

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` @return [Array<Google::Apis::AndroidmanagementV1::HardwareStatus>]

last_policy_compliance_report_time[RW]

Deprecated. Corresponds to the JSON property `lastPolicyComplianceReportTime` @return [String]

last_policy_sync_time[RW]

The last time the device fetched its policy. Corresponds to the JSON property `lastPolicySyncTime` @return [String]

last_status_report_time[RW]

The last time the device sent a status report. Corresponds to the JSON property `lastStatusReportTime` @return [String]

management_mode[RW]

The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. Corresponds to the JSON property `managementMode` @return [String]

memory_events[RW]

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` @return [Array<Google::Apis::AndroidmanagementV1::MemoryEvent>]

memory_info[RW]

Information about device memory and storage. Corresponds to the JSON property `memoryInfo` @return [Google::Apis::AndroidmanagementV1::MemoryInfo]

name[RW]

The name of the device in the form enterprises/`enterpriseId`/devices/` deviceId`. Corresponds to the JSON property `name` @return [String]

network_info[RW]

Device network info. Corresponds to the JSON property `networkInfo` @return [Google::Apis::AndroidmanagementV1::NetworkInfo]

non_compliance_details[RW]

Details about policy settings that the device is not compliant with. Corresponds to the JSON property `nonComplianceDetails` @return [Array<Google::Apis::AndroidmanagementV1::NonComplianceDetail>]

ownership[RW]

Ownership of the managed device. Corresponds to the JSON property `ownership` @return [String]

policy_compliant[RW]

Whether the device is compliant with its policy. Corresponds to the JSON property `policyCompliant` @return [Boolean]

policy_compliant?[RW]

Whether the device is compliant with its policy. Corresponds to the JSON property `policyCompliant` @return [Boolean]

policy_name[RW]

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` @return [String]

power_management_events[RW]

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` @return [Array<Google::Apis::AndroidmanagementV1::PowerManagementEvent>]

previous_device_names[RW]

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` @return [Array<String>]

security_posture[RW]

The security posture of the device, as determined by the current device state and the policies applied. Corresponds to the JSON property `securityPosture` @return [Google::Apis::AndroidmanagementV1::SecurityPosture]

software_info[RW]

Information about device software. Corresponds to the JSON property `softwareInfo` @return [Google::Apis::AndroidmanagementV1::SoftwareInfo]

state[RW]

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` @return [String]

system_properties[RW]

Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device' s policy. Corresponds to the JSON property `systemProperties` @return [Hash<String,String>]

user[RW]

A user belonging to an enterprise. Corresponds to the JSON property `user` @return [Google::Apis::AndroidmanagementV1::User]

user_name[RW]

The resource name of the user that owns this device in the form enterprises/` enterpriseId`/users/`userId`. Corresponds to the JSON property `userName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/androidmanagement_v1/classes.rb, line 1090
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/androidmanagement_v1/classes.rb, line 1095
def update!(**args)
  @api_level = args[:api_level] if args.key?(:api_level)
  @application_reports = args[:application_reports] if args.key?(:application_reports)
  @applied_password_policies = args[:applied_password_policies] if args.key?(:applied_password_policies)
  @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)
  @common_criteria_mode_info = args[:common_criteria_mode_info] if args.key?(:common_criteria_mode_info)
  @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)
  @management_mode = args[:management_mode] if args.key?(:management_mode)
  @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)
  @ownership = args[:ownership] if args.key?(:ownership)
  @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)
  @security_posture = args[:security_posture] if args.key?(:security_posture)
  @software_info = args[:software_info] if args.key?(:software_info)
  @state = args[:state] if args.key?(:state)
  @system_properties = args[:system_properties] if args.key?(:system_properties)
  @user = args[:user] if args.key?(:user)
  @user_name = args[:user_name] if args.key?(:user_name)
end