Struct google_androidmanagement1::Device[][src]

pub struct Device {
    pub hardware_info: Option<HardwareInfo>,
    pub applied_policy_name: Option<String>,
    pub network_info: Option<NetworkInfo>,
    pub memory_events: Option<Vec<MemoryEvent>>,
    pub power_management_events: Option<Vec<PowerManagementEvent>>,
    pub enrollment_token_name: Option<String>,
    pub displays: Option<Vec<Display>>,
    pub non_compliance_details: Option<Vec<NonComplianceDetail>>,
    pub hardware_status_samples: Option<Vec<HardwareStatus>>,
    pub api_level: Option<i32>,
    pub applied_policy_version: Option<String>,
    pub user_name: Option<String>,
    pub policy_name: Option<String>,
    pub disabled_reason: Option<UserFacingMessage>,
    pub enrollment_token_data: Option<String>,
    pub name: Option<String>,
    pub previous_device_names: Option<Vec<String>>,
    pub last_policy_sync_time: Option<String>,
    pub software_info: Option<SoftwareInfo>,
    pub applied_state: Option<String>,
    pub policy_compliant: Option<bool>,
    pub state: Option<String>,
    pub memory_info: Option<MemoryInfo>,
    pub last_policy_compliance_report_time: Option<String>,
    pub enrollment_time: Option<String>,
    pub last_status_report_time: Option<String>,
}

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

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

Detailed information about the device hardware.

The name of the policy that is currently applied by the device.

Device network information. This information is only available when networkInfoEnabled is true in the device's policy.

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

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

If this device was enrolled with an enrollment token, this field contains the name of the token.

Displays on the device. This information is only available when displayInfoEnabled is true in the device's policy.

Details about policy settings for which the device is not in compliance.

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

The API level of the Android platform version running on the device.

The version of the policy that is currently applied by the device.

The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.

The name of the policy that is intended to be applied to the device. If empty, the policy_name for the user that owns this device 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.

If the device state is DISABLED, an optional message that is displayed on the device indicating the reason the device is disabled. This field may be modified by an update request.

If this device was enrolled with an enrollment token with additional data provided, this field contains that data.

The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}

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.

The last time the device fetched its policy.

Detailed information about the device software. This information is only available when softwareInfoEnabled is true in the device's policy.

The state that is currently applied by the device.

Whether the device is compliant with its policy.

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.

Memory information. This information is only available when memoryInfoEnabled is true in the device's policy.

The last time the device sent a policy compliance report.

The time of device enrollment.

The last time the device sent a status report.

Trait Implementations

impl Default for Device
[src]

Returns the "default value" for a type. Read more

impl Clone for Device
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Device
[src]

Formats the value using the given formatter. Read more

impl RequestValue for Device
[src]

impl ResponseResult for Device
[src]

Auto Trait Implementations

impl Send for Device

impl Sync for Device