diff --git a/output/schema/schema.json b/output/schema/schema.json index d09b11c620..2bcdff424b 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -4214,16 +4214,9 @@ "description": "Freezes an index. A frozen index has almost no overhead on the cluster (except for maintaining its metadata in memory) and is read-only.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/freeze-index-api.html", "name": "indices.freeze", - "request": { - "name": "Request", - "namespace": "indices.freeze" - }, + "request": null, "requestBodyRequired": false, - "response": { - "name": "Response", - "namespace": "indices.freeze" - }, - "since": "6.6.0", + "response": null, "stability": "stable", "urls": [ { @@ -90254,143 +90247,6 @@ "namespace": "indices.forcemerge" } }, - { - "attachedBehaviors": [ - "CommonQueryParameters" - ], - "body": { - "kind": "no_body" - }, - "description": "Freezes an index. A frozen index has almost no overhead on the cluster (except for maintaining its metadata in memory) and is read-only.", - "inherits": { - "type": { - "name": "RequestBase", - "namespace": "_types" - } - }, - "kind": "request", - "name": { - "name": "Request", - "namespace": "indices.freeze" - }, - "path": [ - { - "description": "The name of the index to freeze", - "name": "index", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } - } - } - ], - "query": [ - { - "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", - "name": "allow_no_indices", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "internal" - } - } - }, - { - "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", - "name": "expand_wildcards", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "ExpandWildcards", - "namespace": "_types" - } - } - }, - { - "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)", - "name": "ignore_unavailable", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "internal" - } - } - }, - { - "description": "Specify timeout for connection to master", - "name": "master_timeout", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Time", - "namespace": "_types" - } - } - }, - { - "description": "Explicit operation timeout", - "name": "timeout", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Time", - "namespace": "_types" - } - } - }, - { - "description": "Sets the number of active shards to wait for before the operation returns.", - "name": "wait_for_active_shards", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "WaitForActiveShards", - "namespace": "_types" - } - } - } - ] - }, - { - "body": { - "kind": "properties", - "properties": [ - { - "name": "shards_acknowledged", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "internal" - } - } - } - ] - }, - "inherits": { - "type": { - "name": "AcknowledgedResponseBase", - "namespace": "_types" - } - }, - "kind": "response", - "name": { - "name": "Response", - "namespace": "indices.freeze" - } - }, { "attachedBehaviors": [ "CommonQueryParameters" diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index d2c19256b5..99e96108b2 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -981,7 +981,7 @@ }, "indices.freeze": { "request": [ - "Request: should not have a body" + "Missing request & response" ], "response": [] }, diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 74c326d458..88c4171e75 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -8949,20 +8949,6 @@ export interface IndicesForcemergeRequest extends RequestBase { export interface IndicesForcemergeResponse extends ShardsOperationResponseBase { } -export interface IndicesFreezeRequest extends RequestBase { - index: IndexName - allow_no_indices?: boolean - expand_wildcards?: ExpandWildcards - ignore_unavailable?: boolean - master_timeout?: Time - timeout?: Time - wait_for_active_shards?: WaitForActiveShards -} - -export interface IndicesFreezeResponse extends AcknowledgedResponseBase { - shards_acknowledged: boolean -} - export interface IndicesGetRequest extends RequestBase { index: Indices allow_no_indices?: boolean diff --git a/specification/indices/freeze/IndicesFreezeRequest.ts b/specification/indices/freeze/IndicesFreezeRequest.ts deleted file mode 100644 index be93357884..0000000000 --- a/specification/indices/freeze/IndicesFreezeRequest.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { RequestBase } from '@_types/Base' -import { ExpandWildcards, IndexName, WaitForActiveShards } from '@_types/common' -import { Time } from '@_types/Time' - -/** - * @rest_spec_name indices.freeze - * @since 6.6.0 - * @stability stable - */ -export interface Request extends RequestBase { - path_parts: { - index: IndexName - } - query_parameters: { - allow_no_indices?: boolean - expand_wildcards?: ExpandWildcards - ignore_unavailable?: boolean - master_timeout?: Time - timeout?: Time - wait_for_active_shards?: WaitForActiveShards - } -} diff --git a/specification/indices/freeze/IndicesFreezeResponse.ts b/specification/indices/freeze/IndicesFreezeResponse.ts deleted file mode 100644 index e2e09f6530..0000000000 --- a/specification/indices/freeze/IndicesFreezeResponse.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { AcknowledgedResponseBase } from '@_types/Base' - -export class Response extends AcknowledgedResponseBase { - body: { - shards_acknowledged: boolean - } -}