Show / Hide Table of Contents

Class Device

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

Inheritance
object
Device
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.AndroidManagement.v1.Data
Assembly: Google.Apis.AndroidManagement.v1.dll
Syntax
public class Device : IDirectResponseSchema

Properties

ApiLevel

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

Declaration
[JsonProperty("apiLevel")]
public virtual int? ApiLevel { get; set; }
Property Value
Type Description
int?

ApplicationReports

Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device's policy.

Declaration
[JsonProperty("applicationReports")]
public virtual IList<ApplicationReport> ApplicationReports { get; set; }
Property Value
Type Description
IList<ApplicationReport>

AppliedPasswordPolicies

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.

Declaration
[JsonProperty("appliedPasswordPolicies")]
public virtual IList<PasswordRequirements> AppliedPasswordPolicies { get; set; }
Property Value
Type Description
IList<PasswordRequirements>

AppliedPolicyName

The name of the policy currently applied to the device.

Declaration
[JsonProperty("appliedPolicyName")]
public virtual string AppliedPolicyName { get; set; }
Property Value
Type Description
string

AppliedPolicyVersion

The version of the policy currently applied to the device.

Declaration
[JsonProperty("appliedPolicyVersion")]
public virtual long? AppliedPolicyVersion { get; set; }
Property Value
Type Description
long?

AppliedState

The state currently applied to the device.

Declaration
[JsonProperty("appliedState")]
public virtual string AppliedState { get; set; }
Property Value
Type Description
string

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 the device is company-owned.

Declaration
[JsonProperty("commonCriteriaModeInfo")]
public virtual CommonCriteriaModeInfo CommonCriteriaModeInfo { get; set; }
Property Value
Type Description
CommonCriteriaModeInfo

DeviceSettings

Device settings information. This information is only available if deviceSettingsEnabled is true in the device's policy.

Declaration
[JsonProperty("deviceSettings")]
public virtual DeviceSettings DeviceSettings { get; set; }
Property Value
Type Description
DeviceSettings

DisabledReason

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.

Declaration
[JsonProperty("disabledReason")]
public virtual UserFacingMessage DisabledReason { get; set; }
Property Value
Type Description
UserFacingMessage

Displays

Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device's policy.

Declaration
[JsonProperty("displays")]
public virtual IList<Display> Displays { get; set; }
Property Value
Type Description
IList<Display>

DpcMigrationInfo

Output only. Information related to whether this device was migrated from being managed by another Device Policy Controller (DPC).

Declaration
[JsonProperty("dpcMigrationInfo")]
public virtual DpcMigrationInfo DpcMigrationInfo { get; set; }
Property Value
Type Description
DpcMigrationInfo

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

EnrollmentTime

object representation of EnrollmentTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use EnrollmentTimeDateTimeOffset instead.")]
public virtual object EnrollmentTime { get; set; }
Property Value
Type Description
object

EnrollmentTimeDateTimeOffset

DateTimeOffset representation of EnrollmentTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? EnrollmentTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

EnrollmentTimeRaw

The time of device enrollment.

Declaration
[JsonProperty("enrollmentTime")]
public virtual string EnrollmentTimeRaw { get; set; }
Property Value
Type Description
string

EnrollmentTokenData

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

Declaration
[JsonProperty("enrollmentTokenData")]
public virtual string EnrollmentTokenData { get; set; }
Property Value
Type Description
string

EnrollmentTokenName

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

Declaration
[JsonProperty("enrollmentTokenName")]
public virtual string EnrollmentTokenName { get; set; }
Property Value
Type Description
string

HardwareInfo

Detailed information about the device hardware.

Declaration
[JsonProperty("hardwareInfo")]
public virtual HardwareInfo HardwareInfo { get; set; }
Property Value
Type Description
HardwareInfo

HardwareStatusSamples

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

Declaration
[JsonProperty("hardwareStatusSamples")]
public virtual IList<HardwareStatus> HardwareStatusSamples { get; set; }
Property Value
Type Description
IList<HardwareStatus>

LastPolicyComplianceReportTime

object representation of LastPolicyComplianceReportTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use LastPolicyComplianceReportTimeDateTimeOffset instead.")]
public virtual object LastPolicyComplianceReportTime { get; set; }
Property Value
Type Description
object

LastPolicyComplianceReportTimeDateTimeOffset

DateTimeOffset representation of LastPolicyComplianceReportTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? LastPolicyComplianceReportTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

LastPolicyComplianceReportTimeRaw

Deprecated.

Declaration
[JsonProperty("lastPolicyComplianceReportTime")]
public virtual string LastPolicyComplianceReportTimeRaw { get; set; }
Property Value
Type Description
string

LastPolicySyncTime

object representation of LastPolicySyncTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use LastPolicySyncTimeDateTimeOffset instead.")]
public virtual object LastPolicySyncTime { get; set; }
Property Value
Type Description
object

LastPolicySyncTimeDateTimeOffset

DateTimeOffset representation of LastPolicySyncTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? LastPolicySyncTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

LastPolicySyncTimeRaw

The last time the device fetched its policy.

Declaration
[JsonProperty("lastPolicySyncTime")]
public virtual string LastPolicySyncTimeRaw { get; set; }
Property Value
Type Description
string

LastStatusReportTime

object representation of LastStatusReportTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use LastStatusReportTimeDateTimeOffset instead.")]
public virtual object LastStatusReportTime { get; set; }
Property Value
Type Description
object

LastStatusReportTimeDateTimeOffset

DateTimeOffset representation of LastStatusReportTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? LastStatusReportTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

LastStatusReportTimeRaw

The last time the device sent a status report.

Declaration
[JsonProperty("lastStatusReportTime")]
public virtual string LastStatusReportTimeRaw { get; set; }
Property Value
Type Description
string

ManagementMode

The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported.

Declaration
[JsonProperty("managementMode")]
public virtual string ManagementMode { get; set; }
Property Value
Type Description
string

MemoryEvents

Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy.Events are retained for a certain period of time and old events are deleted.

Declaration
[JsonProperty("memoryEvents")]
public virtual IList<MemoryEvent> MemoryEvents { get; set; }
Property Value
Type Description
IList<MemoryEvent>

MemoryInfo

Memory information: contains information about device memory and storage.

Declaration
[JsonProperty("memoryInfo")]
public virtual MemoryInfo MemoryInfo { get; set; }
Property Value
Type Description
MemoryInfo

Name

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

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
string

NetworkInfo

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

Declaration
[JsonProperty("networkInfo")]
public virtual NetworkInfo NetworkInfo { get; set; }
Property Value
Type Description
NetworkInfo

NonComplianceDetails

Details about policy settings that the device is not compliant with.

Declaration
[JsonProperty("nonComplianceDetails")]
public virtual IList<NonComplianceDetail> NonComplianceDetails { get; set; }
Property Value
Type Description
IList<NonComplianceDetail>

Ownership

Ownership of the managed device.

Declaration
[JsonProperty("ownership")]
public virtual string Ownership { get; set; }
Property Value
Type Description
string

PolicyCompliant

Whether the device is compliant with its policy.

Declaration
[JsonProperty("policyCompliant")]
public virtual bool? PolicyCompliant { get; set; }
Property Value
Type Description
bool?

PolicyName

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.

Declaration
[JsonProperty("policyName")]
public virtual string PolicyName { get; set; }
Property Value
Type Description
string

PowerManagementEvents

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

Declaration
[JsonProperty("powerManagementEvents")]
public virtual IList<PowerManagementEvent> PowerManagementEvents { get; set; }
Property Value
Type Description
IList<PowerManagementEvent>

PreviousDeviceNames

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.

Declaration
[JsonProperty("previousDeviceNames")]
public virtual IList<string> PreviousDeviceNames { get; set; }
Property Value
Type Description
IList<string>

SecurityPosture

Device's security posture value that reflects how secure the device is.

Declaration
[JsonProperty("securityPosture")]
public virtual SecurityPosture SecurityPosture { get; set; }
Property Value
Type Description
SecurityPosture

SoftwareInfo

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

Declaration
[JsonProperty("softwareInfo")]
public virtual SoftwareInfo SoftwareInfo { get; set; }
Property Value
Type Description
SoftwareInfo

State

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.

Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
Type Description
string

SystemProperties

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.

Declaration
[JsonProperty("systemProperties")]
public virtual IDictionary<string, string> SystemProperties { get; set; }
Property Value
Type Description
IDictionary<string, string>

User

The user who owns the device.

Declaration
[JsonProperty("user")]
public virtual User User { get; set; }
Property Value
Type Description
User

UserName

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

Declaration
[JsonProperty("userName")]
public virtual string UserName { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX