LabelMatch Data Type

Models how the provided labels should match (all, any or none) when searching resources by labels.

Properties
name data type description
labels array of string The provided labels as string. Never null.
matchOperator LabelMatchOperator
labelCriteria array of Label The labels to search for. Any value provided getValue are treated as regular expression which means that providing a value of "a|b|c" will match vehicles with the label and any value of a,b or c associated with it.

Example

{
  "matchOperator" : "NONE",
  "labelCriteria" : [ {
    "label" : "...",
    "value" : "...",
    "global" : true
  }, {
    "label" : "...",
    "value" : "...",
    "global" : true
  } ]
}