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 If multiple labelCriteria are provided, this determines if ALL, ANY or NONE of the labels should match the requested resources.
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" : "ANY",
  "labelCriteria" : [ {
    "label" : "Location",
    "value" : "^GOT$"
  }, {
    "label" : "Project",
    "value" : "ABC"
  } ]
}