Skip to content

Commit a4b52c0

Browse files
Fix required parameters (#5704) (#5715)
(cherry picked from commit d342948) Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
1 parent 7a10854 commit a4b52c0

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ export interface Request extends RequestBase {
5050
* The throttle for this request in sub-requests per second.
5151
* To disable throttling, set it to `-1`.
5252
*/
53-
requests_per_second?: float
53+
requests_per_second: float
5454
}
5555
}

specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ export interface Request extends RequestBase {
5858
* The throttle for this request in sub-requests per second.
5959
* It can be either `-1` to turn off throttling or any decimal number like `1.7` or `12` to throttle to that level.
6060
*/
61-
requests_per_second?: float
61+
requests_per_second: float
6262
}
6363
}

specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ export interface Request extends RequestBase {
4949
/**
5050
* The throttle for this request in sub-requests per second.
5151
* To turn off throttling, set it to `-1`.
52-
* @server_default -1
5352
*/
54-
requests_per_second?: float
53+
requests_per_second: float
5554
}
5655
}

specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ export interface Request extends RequestBase {
4848
query_parameters: {
4949
/**
5050
* This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index.
51+
* @server_default false
5152
*/
52-
accept_data_loss: boolean
53+
accept_data_loss?: boolean
5354
/**
5455
* @server_default 30s
5556
*/

specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ export interface Request extends RequestBase {
4949
/**
5050
* This parameter must be set to true to import a dangling index.
5151
* Because Elasticsearch cannot know where the dangling index data came from or determine which shard copies are fresh and which are stale, it cannot guarantee that the imported data represents the latest state of the index when it was last in the cluster.
52+
* @server_default false
5253
*/
53-
accept_data_loss: boolean
54+
accept_data_loss?: boolean
5455
/**
5556
* @server_default 30s
5657
*/

0 commit comments

Comments
 (0)