Show / Hide Table of Contents

Class ComplianceRule

A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule.

Inheritance
object
ComplianceRule
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 ComplianceRule : IDirectResponseSchema

Properties

ApiLevelCondition

A condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement.

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

DisableApps

If set to true, the rule includes a mitigating action to disable apps so that the device is effectively disabled, but app data is preserved. If the device is running an app in locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed.

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

ETag

The ETag of the item.

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

NonComplianceDetailCondition

A condition which is satisfied if there exists any matching NonComplianceDetail for the device.

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

PackageNamesToDisable

If set, the rule includes a mitigating action to disable apps specified in the list, but app data is preserved.

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

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX