Skip to content

Commit

Permalink
[DOCS] Descriptions for tasks APIs (#2263)
Browse files Browse the repository at this point in the history
* [DOCS] Descriptions for tasks APIs

* Generate output
  • Loading branch information
abdonpijpelink authored Sep 4, 2023
1 parent 676cf67 commit 1ef8d1d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 9 deletions.
20 changes: 11 additions & 9 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions specification/tasks/cancel/CancelTasksRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,23 @@ import { TaskId } from '@_types/common'
*/
export interface Request extends RequestBase {
path_parts: {
/**
* ID of the task.
*/
task_id?: TaskId
}
query_parameters: {
/**
* Comma-separated list or wildcard expression of actions used to limit the request.
*/
actions?: string | string[]
/**
* Comma-separated list of node IDs or names used to limit the request.
*/
nodes?: string[]
/**
* Parent task ID used to limit the tasks.
*/
parent_task_id?: string
wait_for_completion?: boolean
}
Expand Down
12 changes: 12 additions & 0 deletions specification/tasks/get/GetTaskRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,22 @@ import { Duration } from '@_types/Time'
*/
export interface Request extends RequestBase {
path_parts: {
/**
* ID of the task.
*/
task_id: Id
}
query_parameters: {
/**
* Period to wait for a response.
* If no response is received before the timeout expires, the request fails and returns an error.
* @server_default 30s
*/
timeout?: Duration
/**
* If `true`, the request blocks until the task has completed.
* @server_default false
*/
wait_for_completion?: boolean
}
}

0 comments on commit 1ef8d1d

Please sign in to comment.