Skip to content

Commit 496e0b8

Browse files
authored
Add restriction to RoleDescriptor (#3142)
1 parent 60466c7 commit 496e0b8

File tree

6 files changed

+203
-7
lines changed

6 files changed

+203
-7
lines changed

output/openapi/elasticsearch-openapi.json

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

output/openapi/elasticsearch-serverless-openapi.json

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

output/schema/schema-serverless.json

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

output/schema/schema.json

Lines changed: 64 additions & 2 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: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/security/_types/RoleDescriptor.ts

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,16 @@ export class RoleDescriptor {
4040
* @aliases index
4141
*/
4242
indices?: IndicesPrivileges[]
43-
4443
/**
4544
* A list of indices permissions for remote clusters.
4645
* @availability stack since=8.14.0
4746
*/
4847
remote_indices?: RemoteIndicesPrivileges[]
49-
5048
/**
5149
* A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions.
5250
* @availability stack since=8.15.0
5351
*/
5452
remote_cluster?: RemoteClusterPrivileges[]
55-
5653
/**
5754
* 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.
5855
* @availability stack
@@ -75,6 +72,10 @@ export class RoleDescriptor {
7572
* Optional description of the role descriptor
7673
*/
7774
description?: string
75+
/**
76+
* Restriction for when the role descriptor is allowed to be effective.
77+
*/
78+
restriction?: Restriction
7879
transient_metadata?: Dictionary<string, UserDefinedValue>
7980
}
8081

@@ -93,7 +94,6 @@ export class RoleDescriptorRead implements OverloadOf<RoleDescriptor> {
9394
* @availability stack since=8.14.0
9495
*/
9596
remote_indices?: RemoteIndicesPrivileges[]
96-
9797
/**
9898
* A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions.
9999
* @availability stack since=8.15.0
@@ -120,5 +120,18 @@ export class RoleDescriptorRead implements OverloadOf<RoleDescriptor> {
120120
* Optional description of the role descriptor
121121
*/
122122
description?: string
123+
/**
124+
* Restriction for when the role descriptor is allowed to be effective.
125+
*/
126+
restriction?: Restriction
123127
transient_metadata?: Dictionary<string, UserDefinedValue>
124128
}
129+
130+
export class Restriction {
131+
workflows: RestrictionWorkflow[]
132+
}
133+
134+
/** @non_exhaustive */
135+
export enum RestrictionWorkflow {
136+
search_application_query
137+
}

0 commit comments

Comments
 (0)