@@ -95,9 +95,14 @@ Describes a single eACL rule.
95
95
### Message EACLRecord.Filter
96
96
Filter to check particular properties of the request or the object.
97
97
98
+ The ` value ` field must be empty if ` match_type ` is an unary operator
99
+ (e.g. ` NOT_PRESENT ` ). If ` match_type ` field is numeric (e.g. ` NUM_GT ` ),
100
+ the ` value ` field must be a base-10 integer.
101
+
98
102
By default ` key ` field refers to the corresponding object's ` Attribute ` .
99
103
Some Object's header fields can also be accessed by adding ` $Object: `
100
- prefix to the name. Here is the list of fields available via this prefix:
104
+ prefix to the name. For such attributes, field 'match_type' must not be
105
+ 'NOT_PRESENT'. Here is the list of fields available via this prefix:
101
106
102
107
* $Object: version \
103
108
version
@@ -118,6 +123,9 @@ prefix to the name. Here is the list of fields available via this prefix:
118
123
* $Object: homomorphicHash \
119
124
homomorphic_hash
120
125
126
+ Numeric ` match_type ` field can only be used with ` $Object:creationEpoch `
127
+ and ` $Object:payloadLength ` system attributes.
128
+
121
129
Please note, that if request or response does not have object's headers of
122
130
full object (Range, RangeHash, Search, Delete), it will not be possible to
123
131
filter by object header fields or user attributes. From the well-known list
@@ -202,6 +210,11 @@ MatchType is an enumeration of match types.
202
210
| MATCH_TYPE_UNSPECIFIED | 0 | Unspecified match type, default value. |
203
211
| STRING_EQUAL | 1 | Return true if strings are equal |
204
212
| STRING_NOT_EQUAL | 2 | Return true if strings are different |
213
+ | NOT_PRESENT | 3 | Absence of attribute |
214
+ | NUM_GT | 4 | Numeric 'greater than' |
215
+ | NUM_GE | 5 | Numeric 'greater or equal than' |
216
+ | NUM_LT | 6 | Numeric 'less than' |
217
+ | NUM_LE | 7 | Numeric 'less or equal than' |
205
218
206
219
207
220
0 commit comments