Skip to content

Commit 3bc6627

Browse files
authored
IndicesPrivileges can contain multiple queries (#1963)
1 parent 93ed2b2 commit 3bc6627

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

output/schema/schema.json

Lines changed: 21 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/security/_types/Privileges.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ export class IndicesPrivileges {
9393
*/
9494
privileges: IndexPrivilege[]
9595
/**
96-
* A search query that defines the documents the owners of the role have read access to. A document within the specified indices must match this query for it to be accessible by the owners of the role.
96+
* Search queries that define the documents the owners of the role have read access to. A document within the specified indices must match this query for it to be accessible by the owners of the role.
9797
*/
98-
query?: IndicesPrivilegesQuery
98+
query?: IndicesPrivilegesQuery | IndicesPrivilegesQuery[]
9999
/**
100100
* Set to `true` if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the `names` list, Elasticsearch checks privileges against these indices regardless of the value set for `allow_restricted_indices`.
101101
* @server_default false

0 commit comments

Comments
 (0)