From 13923b353be8431ce909623f56e7270141fe1cef Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Tue, 29 Aug 2023 00:48:09 +0930 Subject: [PATCH] Auto-generated code for main (#1987) --- docs/reference.asciidoc | 15 +++++++++------ src/api/types.ts | 24 ++---------------------- src/api/typesWithBodyKey.ts | 24 ++---------------------- 3 files changed, 13 insertions(+), 50 deletions(-) diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index e1adf624d..ea908174d 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -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 @@ -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 @@ -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 diff --git a/src/api/types.ts b/src/api/types.ts index 74f1227a2..384ca440a 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -17169,7 +17169,7 @@ export interface TasksTaskInfo { running_time?: Duration running_time_in_nanos: DurationValue start_time_in_millis: EpochTime - status?: TasksTaskStatus + status?: any type: string parent_task_id?: TaskId } @@ -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 - throttled_until?: Duration - throttled_until_millis: DurationValue - timed_out?: boolean - took?: DurationValue - total: long - updated: long - version_conflicts: long -} - export interface TasksCancelRequest extends RequestBase { task_id?: TaskId actions?: string | string[] @@ -17222,7 +17202,7 @@ export interface TasksGetRequest extends RequestBase { export interface TasksGetResponse { completed: boolean task: TasksTaskInfo - response?: TasksTaskStatus + response?: any error?: ErrorCause } diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index a1710a897..94861b37d 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -17576,7 +17576,7 @@ export interface TasksTaskInfo { running_time?: Duration running_time_in_nanos: DurationValue start_time_in_millis: EpochTime - status?: TasksTaskStatus + status?: any type: string parent_task_id?: TaskId } @@ -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 - throttled_until?: Duration - throttled_until_millis: DurationValue - timed_out?: boolean - took?: DurationValue - total: long - updated: long - version_conflicts: long -} - export interface TasksCancelRequest extends RequestBase { task_id?: TaskId actions?: string | string[] @@ -17629,7 +17609,7 @@ export interface TasksGetRequest extends RequestBase { export interface TasksGetResponse { completed: boolean task: TasksTaskInfo - response?: TasksTaskStatus + response?: any error?: ErrorCause }