Skip to content

Commit 4a62736

Browse files
Add refresh to security.grant_api_key (#4872) (#4888)
(cherry picked from commit e847a83) Co-authored-by: Quentin Pradet <[email protected]>
1 parent 53d5c7a commit 4a62736

File tree

5 files changed

+40
-9
lines changed

5 files changed

+40
-9
lines changed

output/openapi/elasticsearch-openapi.json

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

output/schema/schema.json

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

output/schema/validation-errors.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@
5353
],
5454
"response": []
5555
},
56-
"security.grant_api_key": {
57-
"request": [
58-
"Request: missing json spec query parameter 'refresh'"
59-
],
60-
"response": []
61-
},
6256
"snapshot.repository_analyze": {
6357
"request": [
6458
"Request: query parameter 'register_operation_count' does not exist in the json spec"

output/typescript/types.ts

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

specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { RequestBase } from '@_types/Base'
21-
import { Password, Username } from '@_types/common'
21+
import { Password, Refresh, Username } from '@_types/common'
2222
import { ApiKeyGrantType, GrantApiKey } from './types'
2323

2424
/**
@@ -57,6 +57,16 @@ export interface Request extends RequestBase {
5757
methods: ['POST']
5858
}
5959
]
60+
query_parameters: {
61+
/**
62+
* If 'true', Elasticsearch refreshes the affected shards to make this operation
63+
* visible to search.
64+
* If 'wait_for', it waits for a refresh to make this operation visible to search.
65+
* If 'false', nothing is done with refreshes.
66+
* @server_default false
67+
*/
68+
refresh?: Refresh
69+
}
6070
body: {
6171
/**
6272
* The API key.

0 commit comments

Comments
 (0)