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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidmanagement_v1/classes.rb,
lib/google/apis/androidmanagement_v1/representations.rb,
lib/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Device

Returns a new instance of Device.



1090
1091
1092
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1090

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)


882
883
884
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 882

def api_level
  @api_level
end

#application_reportsArray<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



888
889
890
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 888

def application_reports
  @application_reports
end

#applied_password_policiesArray<Google::Apis::AndroidmanagementV1::PasswordRequirements>

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



895
896
897
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 895

def applied_password_policies
  @applied_password_policies
end

#applied_policy_nameString

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

Returns:

  • (String)


900
901
902
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 900

def applied_policy_name
  @applied_policy_name
end

#applied_policy_versionFixnum

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

Returns:

  • (Fixnum)


905
906
907
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 905

def applied_policy_version
  @applied_policy_version
end

#applied_stateString

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

Returns:

  • (String)


910
911
912
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 910

def applied_state
  @applied_state
end

#common_criteria_mode_infoGoogle::Apis::AndroidmanagementV1::CommonCriteriaModeInfo

Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://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



919
920
921
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 919

def common_criteria_mode_info
  @common_criteria_mode_info
end

#device_settingsGoogle::Apis::AndroidmanagementV1::DeviceSettings

Information about security related device settings on device. Corresponds to the JSON property deviceSettings



924
925
926
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 924

def device_settings
  @device_settings
end

#disabled_reasonGoogle::Apis::AndroidmanagementV1::UserFacingMessage

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



930
931
932
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 930

def disabled_reason
  @disabled_reason
end

#displaysArray<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



936
937
938
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 936

def displays
  @displays
end

#enrollment_timeString

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

Returns:

  • (String)


941
942
943
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 941

def enrollment_time
  @enrollment_time
end

#enrollment_token_dataString

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

Returns:

  • (String)


947
948
949
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 947

def enrollment_token_data
  @enrollment_token_data
end

#enrollment_token_nameString

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

Returns:

  • (String)


953
954
955
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 953

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 if hardwareStatusEnabled is true in the device's policy. Corresponds to the JSON property hardwareInfo



960
961
962
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 960

def hardware_info
  @hardware_info
end

#hardware_status_samplesArray<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



966
967
968
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 966

def hardware_status_samples
  @hardware_status_samples
end

#last_policy_compliance_report_timeString

Deprecated. Corresponds to the JSON property lastPolicyComplianceReportTime

Returns:

  • (String)


971
972
973
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 971

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)


976
977
978
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 976

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)


981
982
983
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 981

def last_status_report_time
  @last_status_report_time
end

#management_modeString

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

Returns:

  • (String)


987
988
989
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 987

def management_mode
  @management_mode
end

#memory_eventsArray<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



994
995
996
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 994

def memory_events
  @memory_events
end

#memory_infoGoogle::Apis::AndroidmanagementV1::MemoryInfo

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



999
1000
1001
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 999

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)


1005
1006
1007
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1005

def name
  @name
end

#network_infoGoogle::Apis::AndroidmanagementV1::NetworkInfo

Device network info. Corresponds to the JSON property networkInfo



1010
1011
1012
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1010

def network_info
  @network_info
end

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

Details about policy settings that the device is not compliant with. Corresponds to the JSON property nonComplianceDetails



1015
1016
1017
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1015

def non_compliance_details
  @non_compliance_details
end

#ownershipString

Ownership of the managed device. Corresponds to the JSON property ownership

Returns:

  • (String)


1020
1021
1022
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1020

def ownership
  @ownership
end

#policy_compliantBoolean Also known as: policy_compliant?

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

Returns:

  • (Boolean)


1025
1026
1027
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1025

def policy_compliant
  @policy_compliant
end

#policy_nameString

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

Returns:

  • (String)


1036
1037
1038
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1036

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 if powerManagementEventsEnabled is true in the device's policy. Corresponds to the JSON property powerManagementEvents



1043
1044
1045
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1043

def power_management_events
  @power_management_events
end

#previous_device_namesArray<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

Returns:

  • (Array<String>)


1051
1052
1053
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1051

def previous_device_names
  @previous_device_names
end

#security_postureGoogle::Apis::AndroidmanagementV1::SecurityPosture

The security posture of the device, as determined by the current device state and the policies applied. Corresponds to the JSON property securityPosture



1057
1058
1059
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1057

def security_posture
  @security_posture
end

#software_infoGoogle::Apis::AndroidmanagementV1::SoftwareInfo

Information about device software. Corresponds to the JSON property softwareInfo



1062
1063
1064
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1062

def software_info
  @software_info
end

#stateString

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

Returns:

  • (String)


1070
1071
1072
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1070

def state
  @state
end

#system_propertiesHash<String,String>

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

Returns:

  • (Hash<String,String>)


1077
1078
1079
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1077

def system_properties
  @system_properties
end

#userGoogle::Apis::AndroidmanagementV1::User

A user belonging to an enterprise. Corresponds to the JSON property user



1082
1083
1084
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1082

def user
  @user
end

#user_nameString

The resource name of the user that owns this device in the form enterprises/ enterpriseId/users/userId. Corresponds to the JSON property userName

Returns:

  • (String)


1088
1089
1090
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1088

def user_name
  @user_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
# 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