Skip to content

Validate indices.delete_index_template API #379

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
Apr 26, 2021
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
58 changes: 55 additions & 3 deletions output/schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3931,10 +3931,17 @@
"description": "Deletes an index template.",
"docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html",
"name": "indices.delete_index_template",
"request": null,
"request": {
"name": "IndicesDeleteIndexTemplateRequest",
"namespace": "indices.delete_index_template"
},
"requestBodyRequired": false,
"response": null,
"stability": "stable",
"response": {
"name": "IndicesDeleteIndexTemplateResponse",
"namespace": "indices.delete_index_template"
},
"since": "7.8.0",
"stability": "TODO",
"urls": [
{
"methods": [
Expand Down Expand Up @@ -66152,6 +66159,51 @@
},
"properties": []
},
{
"attachedBehaviors": [
"CommonQueryParameters"
],
"inherits": {
"type": {
"name": "RequestBase",
"namespace": "_types"
}
},
"kind": "request",
"name": {
"name": "IndicesDeleteIndexTemplateRequest",
"namespace": "indices.delete_index_template"
},
"path": [
{
"description": "The name of the template",
"name": "name",
"required": true,
"type": {
"kind": "instance_of",
"type": {
"name": "Name",
"namespace": "_types"
}
}
}
],
"query": []
},
{
"inherits": {
"type": {
"name": "AcknowledgedResponseBase",
"namespace": "_types"
}
},
"kind": "interface",
"name": {
"name": "IndicesDeleteIndexTemplateResponse",
"namespace": "indices.delete_index_template"
},
"properties": []
},
{
"attachedBehaviors": [
"CommonQueryParameters"
Expand Down
2 changes: 1 addition & 1 deletion output/schema/validation-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@
},
"indices.delete_index_template": {
"request": [
"Missing request & response"
"Endpoint has \"@stability: TODO"
],
"response": []
},
Expand Down
7 changes: 7 additions & 0 deletions output/typescript/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6570,6 +6570,13 @@ export interface IndicesDeleteDataStreamIndicesDeleteDataStreamRequest extends R
export interface IndicesDeleteDataStreamIndicesDeleteDataStreamResponse extends AcknowledgedResponseBase {
}

export interface IndicesDeleteIndexTemplateIndicesDeleteIndexTemplateRequest extends RequestBase {
name: Name
}

export interface IndicesDeleteIndexTemplateIndicesDeleteIndexTemplateResponse extends AcknowledgedResponseBase {
}

export interface IndicesDeleteIndicesDeleteRequest extends RequestBase {
index: Indices
allow_no_indices?: boolean
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* 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 { Name } from '@_types/common'

/**
* @rest_spec_name indices.delete_index_template
* @since 7.8.0
* @stability TODO
*/
export interface IndicesDeleteIndexTemplateRequest extends RequestBase {
path_parts: {
name: Name
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* 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 IndicesDeleteIndexTemplateResponse extends AcknowledgedResponseBase {}