Skip to content

Commit

Permalink
Adding wait_for_completion and task_execution_timeout params (#180)
Browse files Browse the repository at this point in the history
Signed-off-by: Vacha Shah <[email protected]>
  • Loading branch information
VachaShah authored Jan 18, 2024
1 parent c190acc commit 541f022
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions model/common_strings.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,8 @@ string Timeout
@pattern("^([0-9]+)(?:d|h|m|s|ms|micros|nanos)$")
@documentation("The maximum time to wait for wait_for_metadata_version before timing out.")
string WaitForTimeout

@xDataType("time")
@pattern("^([0-9]+)(?:d|h|m|s|ms|micros|nanos)$")
@documentation("Explicit task execution timeout, only useful when wait_for_completion is false, defaults to 1h.")
string TaskExecutionTimeout
7 changes: 7 additions & 0 deletions model/indices/clone/structures.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ structure IndicesClone_QueryParams {
@httpQuery("wait_for_active_shards")
@documentation("Set the number of active shards to wait for on the cloned index before the operation returns.")
wait_for_active_shards: WaitForActiveShards,

@httpQuery("wait_for_completion")
@default(true)
wait_for_completion: WaitForCompletionTrue,

@httpQuery("task_execution_timeout")
task_execution_timeout: TaskExecutionTimeout,
}

// TODO: Fill in Body Parameters
Expand Down
4 changes: 4 additions & 0 deletions model/indices/forcemerge/structures.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ structure IndicesForcemerge_QueryParams {

@httpQuery("only_expunge_deletes")
only_expunge_deletes: OnlyExpungeDeletes,

@httpQuery("wait_for_completion")
@default(true)
wait_for_completion: WaitForCompletionTrue,
}


Expand Down
7 changes: 7 additions & 0 deletions model/indices/open/structures.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ structure IndicesOpen_QueryParams {
@httpQuery("wait_for_active_shards")
@documentation("Sets the number of active shards to wait for before the operation returns.")
wait_for_active_shards: WaitForActiveShards,

@httpQuery("wait_for_completion")
@default(true)
wait_for_completion: WaitForCompletionTrue,

@httpQuery("task_execution_timeout")
task_execution_timeout: TaskExecutionTimeout,
}


Expand Down
7 changes: 7 additions & 0 deletions model/indices/shrink/structures.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ structure IndicesShrink_QueryParams {
@httpQuery("wait_for_active_shards")
@documentation("Set the number of active shards to wait for on the shrunken index before the operation returns.")
wait_for_active_shards: WaitForActiveShards,

@httpQuery("wait_for_completion")
@default(true)
wait_for_completion: WaitForCompletionTrue,

@httpQuery("task_execution_timeout")
task_execution_timeout: TaskExecutionTimeout,
}

// TODO: Fill in Body Parameters
Expand Down
7 changes: 7 additions & 0 deletions model/indices/split/structures.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ structure IndicesSplit_QueryParams {
@httpQuery("wait_for_active_shards")
@documentation("Set the number of active shards to wait for on the shrunken index before the operation returns.")
wait_for_active_shards: WaitForActiveShards,

@httpQuery("wait_for_completion")
@default(true)
wait_for_completion: WaitForCompletionTrue,

@httpQuery("task_execution_timeout")
task_execution_timeout: TaskExecutionTimeout,
}

// TODO: Fill in Body Parameters
Expand Down

0 comments on commit 541f022

Please sign in to comment.