From 0f02e1631c1978014478e909bf441140b0236b85 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 11:17:30 +0200 Subject: [PATCH] Update rest-api-spec main (#2890) * Update rest-api-spec * regenerate output * fix rep integrity path param --------- Co-authored-by: pquentin <42327+pquentin@users.noreply.github.com> Co-authored-by: Laura Trotta --- output/openapi/elasticsearch-openapi.json | 8 ++++---- output/schema/schema.json | 8 ++++---- output/schema/validation-errors.json | 6 ------ output/typescript/types.ts | 2 +- .../_json_spec/ingest.delete_geoip_database.json | 2 +- specification/_json_spec/ingest.get_geoip_database.json | 2 +- specification/_json_spec/ingest.put_geoip_database.json | 2 +- .../SnapshotRepositoryVerifyIntegrityRequest.ts | 2 +- 8 files changed, 13 insertions(+), 19 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index c1aa0c3f1..393e2586c 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -15858,7 +15858,7 @@ ], "summary": "Returns information about one or more geoip database configurations", "externalDocs": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html" + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-geoip-database-api.html" }, "operationId": "ingest-get-geoip-database-1", "parameters": [ @@ -15882,7 +15882,7 @@ ], "summary": "Returns information about one or more geoip database configurations", "externalDocs": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html" + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-geoip-database-api.html" }, "operationId": "ingest-put-geoip-database", "parameters": [ @@ -15960,7 +15960,7 @@ ], "summary": "Deletes a geoip database configuration", "externalDocs": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html" + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-geoip-database-api.html" }, "operationId": "ingest-delete-geoip-database", "parameters": [ @@ -16252,7 +16252,7 @@ ], "summary": "Returns information about one or more geoip database configurations", "externalDocs": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html" + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-geoip-database-api.html" }, "operationId": "ingest-get-geoip-database", "parameters": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index cd5a2eef8..314d01f5d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -8460,7 +8460,7 @@ } }, "description": "Deletes a geoip database configuration.", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-geoip-database-api.html", "name": "ingest.delete_geoip_database", "request": { "name": "Request", @@ -8565,7 +8565,7 @@ } }, "description": "Returns information about one or more geoip database configurations.", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-geoip-database-api.html", "name": "ingest.get_geoip_database", "request": { "name": "Request", @@ -8682,7 +8682,7 @@ } }, "description": "Returns information about one or more geoip database configurations.", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-geoip-database-api.html", "name": "ingest.put_geoip_database", "request": { "name": "Request", @@ -200468,7 +200468,7 @@ "codegenName": "name", "description": "A repository name", "name": "repository", - "required": false, + "required": true, "type": { "kind": "instance_of", "type": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index c5cff32d9..081c20aa7 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1194,12 +1194,6 @@ ], "response": [] }, - "snapshot.repository_verify_integrity": { - "request": [ - "Request: path parameter 'repository' is required in the json spec" - ], - "response": [] - }, "tasks.list": { "request": [ "Request: query parameter 'node_id' does not exist in the json spec", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 56261831f..9b34cb7c8 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -19060,7 +19060,7 @@ export interface SnapshotGetRepositoryRequest extends RequestBase { export type SnapshotGetRepositoryResponse = Record export interface SnapshotRepositoryVerifyIntegrityRequest extends RequestBase { - name?: Names + name: Names meta_thread_pool_concurrency?: integer blob_thread_pool_concurrency?: integer snapshot_verification_concurrency?: integer diff --git a/specification/_json_spec/ingest.delete_geoip_database.json b/specification/_json_spec/ingest.delete_geoip_database.json index 54024bbe1..ce4d2b717 100644 --- a/specification/_json_spec/ingest.delete_geoip_database.json +++ b/specification/_json_spec/ingest.delete_geoip_database.json @@ -1,7 +1,7 @@ { "ingest.delete_geoip_database": { "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html", + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-geoip-database-api.html", "description": "Deletes a geoip database configuration" }, "stability": "stable", diff --git a/specification/_json_spec/ingest.get_geoip_database.json b/specification/_json_spec/ingest.get_geoip_database.json index 58c467faf..db2e48a04 100644 --- a/specification/_json_spec/ingest.get_geoip_database.json +++ b/specification/_json_spec/ingest.get_geoip_database.json @@ -1,7 +1,7 @@ { "ingest.get_geoip_database": { "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html", + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-geoip-database-api.html", "description": "Returns geoip database configuration." }, "stability": "stable", diff --git a/specification/_json_spec/ingest.put_geoip_database.json b/specification/_json_spec/ingest.put_geoip_database.json index 29a44f266..f27c28fd7 100644 --- a/specification/_json_spec/ingest.put_geoip_database.json +++ b/specification/_json_spec/ingest.put_geoip_database.json @@ -1,7 +1,7 @@ { "ingest.put_geoip_database": { "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/TODO.html", + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-geoip-database-api.html", "description": "Puts the configuration for a geoip database to be downloaded" }, "stability": "stable", diff --git a/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts b/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts index 9791c9b21..2c77b1476 100644 --- a/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts +++ b/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts @@ -28,7 +28,7 @@ import { integer } from '@_types/Numeric' export interface Request extends RequestBase { path_parts: { /** @codegen_name name */ - repository?: Names + repository: Names } query_parameters: { meta_thread_pool_concurrency?: integer