Skip to content

Auto-generated code for main #1987

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

Merged
merged 1 commit into from
Aug 28, 2023
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
15 changes: 9 additions & 6 deletions docs/reference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6786,9 +6786,10 @@ client.nodes.reloadSecureSettings({ ... })
==== Arguments

* *Request (object):*
** *`node_id` (Optional, string | string[])*: A list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes.
** *`secure_settings_password` (Optional, string)*
** *`timeout` (Optional, string | -1 | 0)*: Explicit operation timeout
** *`node_id` (Optional, string | string[])*: The names of particular nodes in the cluster to target.
** *`secure_settings_password` (Optional, string)*: The password for the Elasticsearch keystore.
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.

[discrete]
==== stats
Expand Down Expand Up @@ -6816,7 +6817,7 @@ client.nodes.stats({ ... })
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
** *`types` (Optional, string[])*: A list of document types for the indexing index metric.
** *`include_unloaded_segments` (Optional, boolean)*: If set to true segment stats will include stats for segments that are not currently loaded into memory
** *`include_unloaded_segments` (Optional, boolean)*: If `true`, the response includes information from segments that are not loaded into memory.

[discrete]
==== usage
Expand All @@ -6833,8 +6834,10 @@ client.nodes.usage({ ... })

* *Request (object):*
** *`node_id` (Optional, string | string[])*: A list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
** *`metric` (Optional, string | string[])*: Limit the information returned to the specified metrics
** *`timeout` (Optional, string | -1 | 0)*: Explicit operation timeout
** *`metric` (Optional, string | string[])*: Limits the information returned to the specific metrics.
A list of the following options: `_all`, `rest_actions`.
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.

[discrete]
=== query_ruleset
Expand Down
24 changes: 2 additions & 22 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17169,7 +17169,7 @@ export interface TasksTaskInfo {
running_time?: Duration
running_time_in_nanos: DurationValue<UnitNanos>
start_time_in_millis: EpochTime<UnitMillis>
status?: TasksTaskStatus
status?: any
type: string
parent_task_id?: TaskId
}
Expand All @@ -17183,26 +17183,6 @@ export interface TasksTaskListResponseBase {
tasks?: TasksTaskInfos
}

export interface TasksTaskStatus {
batches: long
canceled?: string
created: long
deleted: long
noops: long
failures?: string[]
requests_per_second: float
retries: Retries
throttled?: Duration
throttled_millis: DurationValue<UnitMillis>
throttled_until?: Duration
throttled_until_millis: DurationValue<UnitMillis>
timed_out?: boolean
took?: DurationValue<UnitMillis>
total: long
updated: long
version_conflicts: long
}

export interface TasksCancelRequest extends RequestBase {
task_id?: TaskId
actions?: string | string[]
Expand All @@ -17222,7 +17202,7 @@ export interface TasksGetRequest extends RequestBase {
export interface TasksGetResponse {
completed: boolean
task: TasksTaskInfo
response?: TasksTaskStatus
response?: any
error?: ErrorCause
}

Expand Down
24 changes: 2 additions & 22 deletions src/api/typesWithBodyKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17576,7 +17576,7 @@ export interface TasksTaskInfo {
running_time?: Duration
running_time_in_nanos: DurationValue<UnitNanos>
start_time_in_millis: EpochTime<UnitMillis>
status?: TasksTaskStatus
status?: any
type: string
parent_task_id?: TaskId
}
Expand All @@ -17590,26 +17590,6 @@ export interface TasksTaskListResponseBase {
tasks?: TasksTaskInfos
}

export interface TasksTaskStatus {
batches: long
canceled?: string
created: long
deleted: long
noops: long
failures?: string[]
requests_per_second: float
retries: Retries
throttled?: Duration
throttled_millis: DurationValue<UnitMillis>
throttled_until?: Duration
throttled_until_millis: DurationValue<UnitMillis>
timed_out?: boolean
took?: DurationValue<UnitMillis>
total: long
updated: long
version_conflicts: long
}

export interface TasksCancelRequest extends RequestBase {
task_id?: TaskId
actions?: string | string[]
Expand All @@ -17629,7 +17609,7 @@ export interface TasksGetRequest extends RequestBase {
export interface TasksGetResponse {
completed: boolean
task: TasksTaskInfo
response?: TasksTaskStatus
response?: any
error?: ErrorCause
}

Expand Down