Skip to content

[Backport 8.18] avoid extending non base class #3854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 49 additions & 11 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

114 changes: 97 additions & 17 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 22 additions & 1 deletion specification/security/_types/Privileges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,28 @@ export class UserIndicesPrivileges {
allow_restricted_indices: boolean
}

export class RemoteUserIndicesPrivileges extends UserIndicesPrivileges {
export class RemoteUserIndicesPrivileges {
/**
* The document fields that the owners of the role have read access to.
* @ext_doc_id field-and-document-access-control
*/
field_security?: FieldSecurity[]
/**
* A list of indices (or index name patterns) to which the permissions in this entry apply.
*/
names: IndexName | IndexName[]
/**
* The index level privileges that owners of the role have on the specified indices.
*/
privileges: IndexPrivilege[]
/**
* Search queries that define the documents the user has access to. A document within the specified indices must match these queries for it to be accessible by the owners of the role.
*/
query?: IndicesPrivilegesQuery[]
/**
* 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`.
*/
allow_restricted_indices: boolean
clusters: string[]
}

Expand Down