Class Predicate
A predicate is something that can be evaluated on a device at any point of time, to return true or false. This is the conjunction (logical AND) of all the individual conditions defined here. An empty Predicate always evaluates to true.
Implements
Inherited Members
Namespace: Google.Apis.AndroidManagement.v1.Data
Assembly: Google.Apis.AndroidManagement.v1.dll
Syntax
public class Predicate : IDirectResponseSchema
Properties
DateLowerBound
Optional. A lower bound on the current date, in the device time zone. If not set, always evaluates to true.
Declaration
[JsonProperty("dateLowerBound")]
public virtual Date DateLowerBound { get; set; }
Property Value
| Type | Description |
|---|---|
| Date |
DateUpperBound
Optional. An upper bound on the current date, in the device time zone. If not set, always evaluates to true.
Declaration
[JsonProperty("dateUpperBound")]
public virtual Date DateUpperBound { get; set; }
Property Value
| Type | Description |
|---|---|
| Date |
DaysOfWeek
Optional. Evaluates to true if this list is empty or if the current day of the week in the device's local time is in this list.
Declaration
[JsonProperty("daysOfWeek")]
public virtual IList<string> DaysOfWeek { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<string> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TimeOfDayLowerBound
Optional. A lower bound on the current time of the day, evaluated as hh:00:00 in the device time zone. Must specify only the hour (0-23). The policy will be rejected if minutes, seconds, or nanos are set. If not set, always evaluates to true.
Declaration
[JsonProperty("timeOfDayLowerBound")]
public virtual TimeOfDay TimeOfDayLowerBound { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeOfDay |
TimeOfDayUpperBound
Optional. An upper bound on the current time of the day, evaluated as hh:00:00 in the device time zone. Must specify only the hour (0-23). The policy will be rejected if minutes, seconds, or nanos are set. If not set, always evaluates to true.The window closes at the specified hour (for example, a lower bound of 14 and an upper bound of 15 covers 14:00 to 15:00). When both bounds are set in the same rule, timeOfDayUpperBound must be strictly greater than timeOfDayLowerBound for the window to match; if timeOfDayUpperBound is less than or equal to timeOfDayLowerBound, the predicate evaluates to false. Setting timeOfDayUpperBound to 0 (00:00) evaluates to false for the entire day. To extend a window to the end of the day (24:00), omit timeOfDayUpperBound. To define an overnight window spanning midnight, use two rules: an evening rule with only timeOfDayLowerBound set and a morning rule with only timeOfDayUpperBound set (targeting the following day if daysOfWeek is set).
Declaration
[JsonProperty("timeOfDayUpperBound")]
public virtual TimeOfDay TimeOfDayUpperBound { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeOfDay |
UpdateAgeLowerBound
Optional. A lower bound on the amount of time for which the update (that is, the specific build or version) has been available to the device. This must be a multiple of 24 hours.
Declaration
[JsonProperty("updateAgeLowerBound")]
public virtual object UpdateAgeLowerBound { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
UpdateAgeUpperBound
Optional. An upper bound on the amount of time for which the update has been available. If not set or set to zero, always evaluates to true. This must be a multiple of 24 hours.
Declaration
[JsonProperty("updateAgeUpperBound")]
public virtual object UpdateAgeUpperBound { get; set; }
Property Value
| Type | Description |
|---|---|
| object |