Skip to content

Commit e847a83

Browse files
authored
Add refresh to security.grant_api_key (#4872)
1 parent d7b2276 commit e847a83

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
@@ -47,12 +47,6 @@
4747
],
4848
"response": []
4949
},
50-
"security.grant_api_key": {
51-
"request": [
52-
"Request: missing json spec query parameter 'refresh'"
53-
],
54-
"response": []
55-
},
5650
"snapshot.repository_analyze": {
5751
"request": [
5852
"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)