cis data legacy resource model: property filter
If needed, the property filter predicate may also be defined on a property of a related resource.
Representations:
"comparable_boolean": true,
"comparable_double": 1.5,
"comparable_id": {
"id": "obj-103",
"type": "string"
},
"comparable_long": 1,
"comparable_string": "string",
"comparable_type": "LONG",
"operator": "EQUAL",
"property": "string"
}
<ns0:PropertyFilter xmlns:ns0="http://vmware.com/cis/data/legacy/resource_model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<comparable_double>1.5</comparable_double>
<comparable_string>string</comparable_string>
<comparable_id>
<id>obj-103</id>
<type>string</type>
</comparable_id>
<comparable_boolean>true</comparable_boolean>
<property>string</property>
<comparable_type>LONG</comparable_type>
<comparable_long>1</comparable_long>
<operator>EQUAL</operator>
</ns0:PropertyFilter>
Attributes:
| Name | Type | Description |
|---|---|---|
| Required | ||
| property | string | Specifies the resource model property to be compared. Each property specification begins with the fully-qualified name of the resource model that declares the property, followed by the name of the property. The property name could be either a single property name, in case of an immediate property of the resource model or a property path, i.e. chain of property names, separated with In case the property filter needs to be defined on a property of a related resource, the path should be equal to the
com.acme.PersonModel/relatives/father->com.acme.PersonModel/name, assuming both relatives/father and name properties are declared in com.acme.PersonModel resource model. In case the property of a related entity of a related entity (i.e. multi-hop relationship) should be compared, another path could be added and so on. For instance: |
| operator | string | The operator to compare the property values with. Defines the possible operators to use when comparing the values of individual resource model properties. When comparing values of different types, one of the values can be promoted from one type to another (if needed in order to perform correct comparison) according to the following rules:
EQUAL: Equality operator NOT_EQUAL: Inequality operator GREATER: Greater than operator GREATER_OR_EQUAL: Greater than or equal to operator LESS: Less than operator LESS_OR_EQUAL: Less than or equal to operator STARTS_WITH: Operator that checks whether a string property value starts with the comparable string value. For instance, the comparable value powered will match property whose value is poweredOn or poweredOff, but it will not match isPoweredOn. ENDS_WITH: Operator that checks whether a string property value ends with the comparable string value. For instance, the comparable value On will match property whose value is poweredOn, but it will not match poweredOff. CONTAINS: Operator that checks whether a string property value contains the comparable string value anywhere in its content. For instance, a property with value isPoweredOn will be matched by comparable values like powered, On or isPoweredOn. |
| comparable_type | string | Determines the type of the comparable property value. The types of properties that can be used for comparison in a property filter. Value is one of: LONG: Property value of long type.DOUBLE: Property value of double type.BOOLEAN: Property value of boolean type.STRING: Property value of string type.ID: Property value which represents a resource identifier |
| Optional | ||
| comparable_long | long | The long value to be compared against the specified property. Optional. It is only relevant when comparable_type has value LONG. This field is optional and it is only relevant when the value of comparable_type is LONG. |
| comparable_double | double | The double value to be compared against the specified property. Optional. It is only relevant when comparable_type has value DOUBLE. This field is optional and it is only relevant when the value of comparable_type is DOUBLE. |
| comparable_boolean | boolean | The boolean value to be compared against the specified property. Optional. It is only relevant when comparable_type has value BOOLEAN. This field is optional and it is only relevant when the value of comparable_type is BOOLEAN. |
| comparable_string | string | The string value to be compared against the specified property. Optional. It is only relevant when comparable_type has value STRING. This field is optional and it is only relevant when the value of comparable_type is STRING. |
| comparable_id | typed_ID | The string value to be compared against the specified property. Optional. It is only relevant when comparable_type has value ID. This field is optional and it is only relevant when the value of comparable_type is ID. |