diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 52567bc041..2c8a54ba40 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -1713,7 +1713,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" } @@ -1770,7 +1770,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" } @@ -2174,7 +2174,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" } @@ -20196,9 +20196,6 @@ "description": "Get information about how machine learning jobs and trained models are using memory,\non each node, both within the JVM heap, and natively, outside of the JVM.", "operationId": "ml-get-memory-stats", "parameters": [ - { - "$ref": "#/components/parameters/ml.get_memory_stats#human" - }, { "$ref": "#/components/parameters/ml.get_memory_stats#master_timeout" }, @@ -20226,9 +20223,6 @@ { "$ref": "#/components/parameters/ml.get_memory_stats#node_id" }, - { - "$ref": "#/components/parameters/ml.get_memory_stats#human" - }, { "$ref": "#/components/parameters/ml.get_memory_stats#master_timeout" }, @@ -27463,12 +27457,6 @@ }, { "$ref": "#/components/parameters/searchable_snapshots.clear_cache#ignore_unavailable" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#pretty" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#human" } ], "responses": { @@ -27498,12 +27486,6 @@ }, { "$ref": "#/components/parameters/searchable_snapshots.clear_cache#ignore_unavailable" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#pretty" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#human" } ], "responses": { @@ -36521,16 +36503,6 @@ "type": "boolean" }, "style": "form" - }, - { - "in": "query", - "name": "human", - "description": "Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" } ], "responses": { @@ -94361,7 +94333,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -94554,7 +94526,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -94605,7 +94577,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -94667,7 +94639,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -94708,7 +94680,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -99425,16 +99397,6 @@ }, "style": "simple" }, - "ml.get_memory_stats#human": { - "in": "query", - "name": "human", - "description": "Specify this query parameter to include the fields with units in the response. Otherwise only\nthe `_in_bytes` sizes are returned in the response.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, "ml.get_memory_stats#master_timeout": { "in": "query", "name": "master_timeout", @@ -101708,24 +101670,6 @@ }, "style": "form" }, - "searchable_snapshots.clear_cache#pretty": { - "in": "query", - "name": "pretty", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, - "searchable_snapshots.clear_cache#human": { - "in": "query", - "name": "human", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, "searchable_snapshots.stats#index": { "in": "path", "name": "index", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 88368d26c8..1211334d3b 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -58003,7 +58003,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -58196,7 +58196,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index f8a5b0e0e5..d1a4dd0bfd 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -12045,7 +12045,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -12419,7 +12419,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -106007,7 +106007,7 @@ "name": "XPackCategory", "namespace": "xpack.info" }, - "specLocation": "xpack/info/XPackInfoRequest.ts#L44-L48" + "specLocation": "xpack/info/XPackInfoRequest.ts#L39-L43" }, { "attachedBehaviors": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index 1a0cb03fb4..2e09813753 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -94946,7 +94946,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -96478,7 +96478,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -98589,7 +98589,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -98743,7 +98743,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -99455,7 +99455,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -99974,7 +99974,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -101352,7 +101352,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -101711,7 +101711,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index dd975a5784..f94698ce68 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -7497,7 +7497,7 @@ export interface CatMlDataFrameAnalyticsRequest extends CatCatRequestBase { bytes?: Bytes h?: CatCatDfaColumns s?: CatCatDfaColumns - time?: Duration + time?: TimeUnit } export type CatMlDataFrameAnalyticsResponse = CatMlDataFrameAnalyticsDataFrameAnalyticsRecord[] @@ -7743,7 +7743,7 @@ export interface CatMlTrainedModelsRequest extends CatCatRequestBase { s?: CatCatTrainedModelsColumns from?: integer size?: integer - time?: Duration + time?: TimeUnit } export type CatMlTrainedModelsResponse = CatMlTrainedModelsTrainedModelsRecord[] @@ -8092,7 +8092,7 @@ export interface CatNodesRequest extends CatCatRequestBase { full_id?: boolean | string include_unloaded_segments?: boolean master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatNodesResponse = CatNodesNodesRecord[] @@ -8111,7 +8111,7 @@ export interface CatPendingTasksPendingTasksRecord { export interface CatPendingTasksRequest extends CatCatRequestBase { local?: boolean master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatPendingTasksResponse = CatPendingTasksPendingTasksRecord[] @@ -8201,7 +8201,7 @@ export interface CatRecoveryRequest extends CatCatRequestBase { active_only?: boolean bytes?: Bytes detailed?: boolean - time?: Duration + time?: TimeUnit } export type CatRecoveryResponse = CatRecoveryRecoveryRecord[] @@ -8273,7 +8273,7 @@ export interface CatShardsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatShardsResponse = CatShardsShardsRecord[] @@ -8497,7 +8497,7 @@ export interface CatSnapshotsRequest extends CatCatRequestBase { repository?: Names ignore_unavailable?: boolean master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatSnapshotsResponse = CatSnapshotsSnapshotsRecord[] @@ -8541,7 +8541,7 @@ export interface CatTasksRequest extends CatCatRequestBase { detailed?: boolean nodes?: string[] parent_task_id?: string - time?: Duration + time?: TimeUnit } export type CatTasksResponse = CatTasksTasksRecord[] diff --git a/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts b/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts index a9a3de63e4..b6f487bc22 100644 --- a/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts +++ b/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts @@ -19,7 +19,7 @@ import { CatDfaColumns, CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Id } from '@_types/common' -import { Duration } from '@_types/Time' +import { TimeUnit } from '@_types/Time' /** * Get data frame analytics jobs. @@ -54,6 +54,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts index 5be9a29991..a1733b116e 100644 --- a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts +++ b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts @@ -20,7 +20,7 @@ import { CatRequestBase, CatTrainedModelsColumns } from '@cat/_types/CatBase' import { Bytes, Id } from '@_types/common' import { integer } from '@_types/Numeric' -import { Duration } from '@_types/Time' +import { TimeUnit } from '@_types/Time' /** * Get trained models. @@ -64,6 +64,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/nodes/CatNodesRequest.ts b/specification/cat/nodes/CatNodesRequest.ts index 0dd6787e6a..f390bf9a36 100644 --- a/specification/cat/nodes/CatNodesRequest.ts +++ b/specification/cat/nodes/CatNodesRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes } from '@_types/common' -import { Duration } from '@_types/Time' +import { Duration, TimeUnit } from '@_types/Time' /** * Get node information. @@ -55,6 +55,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/pending_tasks/CatPendingTasksRequest.ts b/specification/cat/pending_tasks/CatPendingTasksRequest.ts index adb59bd373..ce3271faab 100644 --- a/specification/cat/pending_tasks/CatPendingTasksRequest.ts +++ b/specification/cat/pending_tasks/CatPendingTasksRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import { Duration } from '@_types/Time' +import { Duration, TimeUnit } from '@_types/Time' /** * Get pending task information. @@ -48,6 +48,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/recovery/CatRecoveryRequest.ts b/specification/cat/recovery/CatRecoveryRequest.ts index 563c72f420..7c4c608b62 100644 --- a/specification/cat/recovery/CatRecoveryRequest.ts +++ b/specification/cat/recovery/CatRecoveryRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Indices } from '@_types/common' -import { Duration } from '@_types/Time' +import { TimeUnit } from '@_types/Time' /** * Get shard recovery information. @@ -60,6 +60,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/shards/CatShardsRequest.ts b/specification/cat/shards/CatShardsRequest.ts index dded3b206b..e63fd50d6d 100644 --- a/specification/cat/shards/CatShardsRequest.ts +++ b/specification/cat/shards/CatShardsRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Indices } from '@_types/common' -import { Duration } from '@_types/Time' +import { Duration, TimeUnit } from '@_types/Time' /** * Get shard information. @@ -55,6 +55,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/snapshots/CatSnapshotsRequest.ts b/specification/cat/snapshots/CatSnapshotsRequest.ts index 742c9a7318..5fc943c11b 100644 --- a/specification/cat/snapshots/CatSnapshotsRequest.ts +++ b/specification/cat/snapshots/CatSnapshotsRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Names } from '@_types/common' -import { Duration } from '@_types/Time' +import { Duration, TimeUnit } from '@_types/Time' /** * Get snapshot information @@ -56,6 +56,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/tasks/CatTasksRequest.ts b/specification/cat/tasks/CatTasksRequest.ts index 4c66834ffc..5d524fd160 100644 --- a/specification/cat/tasks/CatTasksRequest.ts +++ b/specification/cat/tasks/CatTasksRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import { Duration } from '@_types/Time' +import { TimeUnit } from '@_types/Time' /** * Get task information. @@ -48,6 +48,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } }