google_api_android_management v0.6.0 GoogleApi.AndroidManagement.V1.Model.Device View Source

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

Attributes

  • apiLevel (integer()): The API level of the Android platform version running on the device. Defaults to: null.
  • applicationReports ([ApplicationReport]): Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device's policy. Defaults to: null.
  • appliedPolicyName (String.t): The name of the policy currently applied to the device. Defaults to: null.
  • appliedPolicyVersion (String.t): The version of the policy currently applied to the device. Defaults to: null.
  • appliedState (String.t): The state currently applied to the device. Defaults to: null.

    • Enum - one of [DEVICE_STATE_UNSPECIFIED, ACTIVE, DISABLED, DELETED, PROVISIONING]
  • deviceSettings (DeviceSettings): Device settings information. This information is only available if deviceSettingsEnabled is true in the device's policy. Defaults to: null.
  • disabledReason (UserFacingMessage): If the device state is DISABLED, an optional message that is displayed on the device indicating the reason the device is disabled. This field can be modified by a patch request. Defaults to: null.
  • displays ([Display]): Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device's policy. Defaults to: null.
  • enrollmentTime (DateTime.t): The time of device enrollment. Defaults to: null.
  • enrollmentTokenData (String.t): If the device was enrolled with an enrollment token with additional data provided, this field contains that data. Defaults to: null.
  • enrollmentTokenName (String.t): If the device was enrolled with an enrollment token, this field contains the name of the token. Defaults to: null.
  • hardwareInfo (HardwareInfo): Detailed information about the device hardware. Defaults to: null.
  • hardwareStatusSamples ([HardwareStatus]): Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device's policy. Defaults to: null.
  • lastPolicyComplianceReportTime (DateTime.t): Deprecated. Defaults to: null.
  • lastPolicySyncTime (DateTime.t): The last time the device fetched its policy. Defaults to: null.
  • lastStatusReportTime (DateTime.t): The last time the device sent a status report. Defaults to: null.
  • managementMode (String.t): The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. Defaults to: null.

    • Enum - one of [MANAGEMENT_MODE_UNSPECIFIED, DEVICE_OWNER, PROFILE_OWNER]
  • memoryEvents ([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. Defaults to: null.
  • memoryInfo (MemoryInfo): Memory information. This information is only available if memoryInfoEnabled is true in the device's policy. Defaults to: null.
  • name (String.t): The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. Defaults to: null.
  • networkInfo (NetworkInfo): Device network information. This information is only available if networkInfoEnabled is true in the device's policy. Defaults to: null.
  • nonComplianceDetails ([NonComplianceDetail]): Details about policy settings that the device is not compliant with. Defaults to: null.
  • policyCompliant (boolean()): Whether the device is compliant with its policy. Defaults to: null.
  • policyName (String.t): 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. Defaults to: null.
  • powerManagementEvents ([PowerManagementEvent]): Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device's policy. Defaults to: null.
  • previousDeviceNames ([String.t]): 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. Defaults to: null.
  • softwareInfo (SoftwareInfo): Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device's policy. Defaults to: null.
  • state (String.t): 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. Defaults to: null.

    • Enum - one of [DEVICE_STATE_UNSPECIFIED, ACTIVE, DISABLED, DELETED, PROVISIONING]
  • user (User): The user who owns the device. Defaults to: null.
  • userName (String.t): The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.AndroidManagement.V1.Model.Device{
  apiLevel: any(),
  applicationReports: [
    GoogleApi.AndroidManagement.V1.Model.ApplicationReport.t()
  ],
  appliedPolicyName: any(),
  appliedPolicyVersion: any(),
  appliedState: any(),
  deviceSettings: GoogleApi.AndroidManagement.V1.Model.DeviceSettings.t(),
  disabledReason: GoogleApi.AndroidManagement.V1.Model.UserFacingMessage.t(),
  displays: [GoogleApi.AndroidManagement.V1.Model.Display.t()],
  enrollmentTime: DateTime.t(),
  enrollmentTokenData: any(),
  enrollmentTokenName: any(),
  hardwareInfo: GoogleApi.AndroidManagement.V1.Model.HardwareInfo.t(),
  hardwareStatusSamples: [
    GoogleApi.AndroidManagement.V1.Model.HardwareStatus.t()
  ],
  lastPolicyComplianceReportTime: DateTime.t(),
  lastPolicySyncTime: DateTime.t(),
  lastStatusReportTime: DateTime.t(),
  managementMode: any(),
  memoryEvents: [GoogleApi.AndroidManagement.V1.Model.MemoryEvent.t()],
  memoryInfo: GoogleApi.AndroidManagement.V1.Model.MemoryInfo.t(),
  name: any(),
  networkInfo: GoogleApi.AndroidManagement.V1.Model.NetworkInfo.t(),
  nonComplianceDetails: [
    GoogleApi.AndroidManagement.V1.Model.NonComplianceDetail.t()
  ],
  policyCompliant: any(),
  policyName: any(),
  powerManagementEvents: [
    GoogleApi.AndroidManagement.V1.Model.PowerManagementEvent.t()
  ],
  previousDeviceNames: [any()],
  softwareInfo: GoogleApi.AndroidManagement.V1.Model.SoftwareInfo.t(),
  state: any(),
  user: GoogleApi.AndroidManagement.V1.Model.User.t(),
  userName: any()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.