Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding wait_for_completion and task_execution_timeout params #180

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading