Skip to content

Commit

Permalink
Fix RoleDescriptor field annotations for Serverless (#2699)
Browse files Browse the repository at this point in the history
* Fix RoleDescriptor field annotations for Serverless

* Fix
  • Loading branch information
n1v0lg authored Jul 10, 2024
1 parent 1b94182 commit 2e232e5
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 152 deletions.
6 changes: 5 additions & 1 deletion output/openapi/elasticsearch-openapi.json

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

52 changes: 1 addition & 51 deletions output/openapi/elasticsearch-serverless-openapi.json

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

97 changes: 2 additions & 95 deletions output/schema/schema-serverless.json

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

26 changes: 22 additions & 4 deletions output/schema/schema.json

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

1 change: 1 addition & 0 deletions output/typescript/types.ts

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

3 changes: 2 additions & 1 deletion specification/security/_types/RoleDescriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class RoleDescriptor {
indices?: IndicesPrivileges[]
/**
* An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges.
* @availability stack
*/
global?: GlobalPrivilege[] | GlobalPrivilege
/**
Expand All @@ -48,7 +49,7 @@ export class RoleDescriptor {
*/
metadata?: Metadata
/**
* A list of users that the API keys can impersonate.
* A list of users that the API keys can impersonate. *Note*: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty `run_as` field, but a non-empty list will be rejected.
* @doc_id run-as-privilege
*/
run_as?: string[]
Expand Down
4 changes: 4 additions & 0 deletions specification/security/put_role/SecurityPutRoleRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export interface Request extends RequestBase {
* @doc_id run-as-privilege
*/
run_as?: string[]
/**
* Optional description of the role descriptor
*/
description?: string
/**
* Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security. When the cluster license doesn’t allow certain features for a given role, this parameter is updated dynamically to list the incompatible features. If `enabled` is `false`, the role is ignored, but is still listed in the response from the authenticate API.
*/
Expand Down

0 comments on commit 2e232e5

Please sign in to comment.