Show / Hide Table of Contents

Class Rule

A rule as a part of the Unified Update Control policy. See rules for how this is used.

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

Properties

ETag

The ETag of the item.

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

Id

Required. An EMM-defined identifier for this rule, of length at most 64 characters. This must not be empty. Within a UnifiedUpdatePolicy, different rules must have different ids.

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

Outcome

Optional. Determines how to proceed with the update.

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

Predicate

Optional. The predicate of the rule, which can evaluate to true or false. See rules for how this is used. If not set, the predicate always evaluates to true.

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

Stages

Optional. The stages at which the rule is evaluated. If this list is empty, the rule is evaluated at all stages. Specifying stages is supported only for OS_UPDATE_WITHOUT_API_LEVEL_CHANGE and OS_UPDATE_WITH_API_LEVEL_CHANGE. For SINGLE_APP, GOOGLE_SYSTEM_SERVICES, and GOOGLE_PLAY_SYSTEM_UPDATE, this field is ignored and the rule is evaluated at all stages.

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

Targets

Required. Targets that this rule applies to. This can have multiple targets here for convenience, and that is equivalent to having multiple rules in sequence each having one target, in the same order in which targets are listed here. This list must not be empty and must not have duplicates.

Declaration
[JsonProperty("targets")]
public virtual IList<Target> Targets { get; set; }
Property Value
Type Description
IList<Target>

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX