diff --git a/.github/check-license-headers.sh b/.github/check-license-headers.sh new file mode 100755 index 0000000000..9a48a57580 --- /dev/null +++ b/.github/check-license-headers.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash + +# Check that source code files in this repo have the appropriate license +# header. + +if [ "$TRACE" != "" ]; then + export PS4='${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' + set -o xtrace +fi +set -o errexit +set -o pipefail + +TOP=$(cd "$(dirname "$0")/.." >/dev/null && pwd) +NLINES=$(wc -l .github/license-header.txt | awk '{print $1}') + +function check_license_header { + local f + f=$1 + if ! diff .github/license-header.txt <(head -$NLINES "$f") >/dev/null; then + echo "check-license-headers: error: '$f' does not have required license header, see 'diff -u .github/license-header.txt <(head -$NLINES $f)'" + return 1 + else + return 0 + fi +} + + +cd "$TOP" +nErrors=0 +for f in $(git ls-files | grep '\.ts$'); do + if ! check_license_header $f; then + nErrors=$((nErrors+1)) + fi +done + +for f in $(git ls-files | grep '\.js$'); do + if ! check_license_header $f; then + nErrors=$((nErrors+1)) + fi +done + +if [[ $nErrors -eq 0 ]]; then + exit 0 +else + exit 1 +fi diff --git a/.github/license-header.txt b/.github/license-header.txt new file mode 100644 index 0000000000..ce99d4cac3 --- /dev/null +++ b/.github/license-header.txt @@ -0,0 +1,19 @@ +/* + * 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. + */ + diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml new file mode 100644 index 0000000000..8583ee4565 --- /dev/null +++ b/.github/workflows/license.yml @@ -0,0 +1,15 @@ +name: License headers + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Check license headers + run: | + ./.github/check-license-headers.sh diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000..37935ece2b --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2021 Elastic and contributors + + Licensed 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. diff --git a/csharp-generator/enums.js b/csharp-generator/enums.js index 0be17a5b97..dab469fb87 100644 --- a/csharp-generator/enums.js +++ b/csharp-generator/enums.js @@ -1,3 +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. + */ + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.$createEnum = void 0; diff --git a/csharp-generator/enums.ts b/csharp-generator/enums.ts index 986967486b..46baa1d5d5 100644 --- a/csharp-generator/enums.ts +++ b/csharp-generator/enums.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {$typeName, $propertyName, $namespace} from "./naming"; diff --git a/csharp-generator/imports.js b/csharp-generator/imports.js index 475fe48dec..d168d0d4aa 100644 --- a/csharp-generator/imports.js +++ b/csharp-generator/imports.js @@ -1,3 +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. + */ + "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; diff --git a/csharp-generator/imports.ts b/csharp-generator/imports.ts index 271d7215ba..415ca5eef7 100644 --- a/csharp-generator/imports.ts +++ b/csharp-generator/imports.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {specification} from "./specs"; import {$namespace} from "./naming"; diff --git a/csharp-generator/index.js b/csharp-generator/index.js index f7d5c21640..5858ea8459 100644 --- a/csharp-generator/index.js +++ b/csharp-generator/index.js @@ -1,3 +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. + */ + "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; diff --git a/csharp-generator/index.ts b/csharp-generator/index.ts index 17093fc1b5..8bbb5f7705 100644 --- a/csharp-generator/index.ts +++ b/csharp-generator/index.ts @@ -1,3 +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. + */ + /* tslint:disable:no-console */ import Domain from "elasticsearch-client-specification/src/domain"; import fs from "fs"; diff --git a/csharp-generator/naming.js b/csharp-generator/naming.js index 9a2aa04b24..665d7e62d4 100644 --- a/csharp-generator/naming.js +++ b/csharp-generator/naming.js @@ -1,3 +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. + */ + "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; diff --git a/csharp-generator/naming.ts b/csharp-generator/naming.ts index f7a516fc63..289fe024eb 100644 --- a/csharp-generator/naming.ts +++ b/csharp-generator/naming.ts @@ -1,3 +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 * as changeCase from "change-case"; import Domain from "elasticsearch-client-specification/src/domain"; import {specification} from "./specs"; diff --git a/csharp-generator/specs.js b/csharp-generator/specs.js index 83dbd27fc7..63f3c388a0 100644 --- a/csharp-generator/specs.js +++ b/csharp-generator/specs.js @@ -1,3 +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. + */ + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.specification = void 0; diff --git a/csharp-generator/specs.ts b/csharp-generator/specs.ts index b65216744d..39292e4c94 100644 --- a/csharp-generator/specs.ts +++ b/csharp-generator/specs.ts @@ -1,3 +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 {Specification} from "elasticsearch-client-specification/src/api-specification"; export const specification = Specification.load(); diff --git a/csharp-generator/types-union.js b/csharp-generator/types-union.js index 510e486b8b..a2c68a6e45 100644 --- a/csharp-generator/types-union.js +++ b/csharp-generator/types-union.js @@ -1,3 +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. + */ + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.$createUnionType = void 0; diff --git a/csharp-generator/types-union.ts b/csharp-generator/types-union.ts index a5137e84a9..b3616cc6d4 100644 --- a/csharp-generator/types-union.ts +++ b/csharp-generator/types-union.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {$instanceOf, $namespace, $typeName} from "./naming"; import {$imports} from "./imports"; diff --git a/csharp-generator/types-value.js b/csharp-generator/types-value.js index 691615799b..df256bcb27 100644 --- a/csharp-generator/types-value.js +++ b/csharp-generator/types-value.js @@ -1,3 +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. + */ + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.$createValueObject = void 0; diff --git a/csharp-generator/types-value.ts b/csharp-generator/types-value.ts index d29bd7870f..18358fe6f0 100644 --- a/csharp-generator/types-value.ts +++ b/csharp-generator/types-value.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {$namespace, $typeName} from "./naming"; diff --git a/csharp-generator/types.js b/csharp-generator/types.js index b302228283..675c12d8ee 100644 --- a/csharp-generator/types.js +++ b/csharp-generator/types.js @@ -1,3 +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. + */ + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.$createClass = void 0; diff --git a/csharp-generator/types.ts b/csharp-generator/types.ts index 1afd2b2f97..65695b4e6c 100644 --- a/csharp-generator/types.ts +++ b/csharp-generator/types.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {$fieldName, $instanceOf, $namespace, $parseFieldName, $propertyName, $typeName} from "./naming"; import * as changeCase from "change-case"; diff --git a/java-generator/enums.ts b/java-generator/enums.ts index 6707cec5a9..ce17944a8a 100644 --- a/java-generator/enums.ts +++ b/java-generator/enums.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {$typeName, $propertyName} from "./naming"; diff --git a/java-generator/imports.ts b/java-generator/imports.ts index 7d820d453c..e2489af023 100644 --- a/java-generator/imports.ts +++ b/java-generator/imports.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {specification} from "./specs"; diff --git a/java-generator/index.ts b/java-generator/index.ts index 315f11b8c7..e6948fda4e 100644 --- a/java-generator/index.ts +++ b/java-generator/index.ts @@ -1,3 +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. + */ + /* tslint:disable:no-console */ import Domain from "elasticsearch-client-specification/src/domain"; import fs from "fs"; diff --git a/java-generator/naming.ts b/java-generator/naming.ts index 54ce6e6b43..f966d607cb 100644 --- a/java-generator/naming.ts +++ b/java-generator/naming.ts @@ -1,3 +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 * as changeCase from "change-case"; import Domain from "elasticsearch-client-specification/src/domain"; import {specification} from "./specs"; diff --git a/java-generator/specs.ts b/java-generator/specs.ts index b65216744d..39292e4c94 100644 --- a/java-generator/specs.ts +++ b/java-generator/specs.ts @@ -1,3 +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 {Specification} from "elasticsearch-client-specification/src/api-specification"; export const specification = Specification.load(); diff --git a/java-generator/types-parser-read.ts b/java-generator/types-parser-read.ts index c92f2c5712..31bac99623 100644 --- a/java-generator/types-parser-read.ts +++ b/java-generator/types-parser-read.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {$fieldName, $instanceOf, $parseFieldName, $propertyName, $typeName, stringTypes} from "./naming"; import * as changeCase from "change-case"; diff --git a/java-generator/types-parser-write.ts b/java-generator/types-parser-write.ts index 9f89714cc8..41fb27db20 100644 --- a/java-generator/types-parser-write.ts +++ b/java-generator/types-parser-write.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import { $fieldName, diff --git a/java-generator/types-union.ts b/java-generator/types-union.ts index 65ed3ce015..45c9451d8a 100644 --- a/java-generator/types-union.ts +++ b/java-generator/types-union.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {$instanceOf, $typeName} from "./naming"; import {$imports} from "./imports"; diff --git a/java-generator/types-value.ts b/java-generator/types-value.ts index 5be4290ed7..995c0502b8 100644 --- a/java-generator/types-value.ts +++ b/java-generator/types-value.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {$typeName} from "./naming"; diff --git a/java-generator/types.ts b/java-generator/types.ts index 32fd34495d..9824b7603d 100644 --- a/java-generator/types.ts +++ b/java-generator/types.ts @@ -1,3 +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 Domain from "elasticsearch-client-specification/src/domain"; import {$fieldName, $instanceOf, $isPrimitiveType, $parseFieldName, $propertyName, $typeName} from "./naming"; import * as changeCase from "change-case"; diff --git a/specification/build/gulpfile.js b/specification/build/gulpfile.js index 8c1edb70d8..493fe9067a 100644 --- a/specification/build/gulpfile.js +++ b/specification/build/gulpfile.js @@ -1,3 +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. + */ + var gulp = require("gulp"); var _ = require('lodash'); var addsrc = require('gulp-add-src'); diff --git a/specification/specs/aggregations/Aggregate.ts b/specification/specs/aggregations/Aggregate.ts index 0db9d5644f..a97fd8ee87 100644 --- a/specification/specs/aggregations/Aggregate.ts +++ b/specification/specs/aggregations/Aggregate.ts @@ -1,3 +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. + */ + //@class_serializer("AggregateFormatter") type Bucket = diff --git a/specification/specs/aggregations/Aggregation.ts b/specification/specs/aggregations/Aggregation.ts index cd212891ab..e1ee3913ae 100644 --- a/specification/specs/aggregations/Aggregation.ts +++ b/specification/specs/aggregations/Aggregation.ts @@ -1,3 +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. + */ + class Aggregation { meta?: Dictionary name?: string diff --git a/specification/specs/aggregations/AggregationContainer.ts b/specification/specs/aggregations/AggregationContainer.ts index a703bf939b..796b2cb821 100644 --- a/specification/specs/aggregations/AggregationContainer.ts +++ b/specification/specs/aggregations/AggregationContainer.ts @@ -1,3 +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. + */ + class AggregationContainer { adjacency_matrix?: AdjacencyMatrixAggregation aggs?: Dictionary diff --git a/specification/specs/aggregations/bucket/BucketAggregation.ts b/specification/specs/aggregations/bucket/BucketAggregation.ts index 0c94599b4a..de01c7f50c 100644 --- a/specification/specs/aggregations/bucket/BucketAggregation.ts +++ b/specification/specs/aggregations/bucket/BucketAggregation.ts @@ -1,3 +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. + */ + class BucketAggregation { aggregations?: Dictionary } diff --git a/specification/specs/aggregations/bucket/adjacency_matrix/AdjacencyMatrixAggregation.ts b/specification/specs/aggregations/bucket/adjacency_matrix/AdjacencyMatrixAggregation.ts index 18c820da8a..a75fc0e3ef 100644 --- a/specification/specs/aggregations/bucket/adjacency_matrix/AdjacencyMatrixAggregation.ts +++ b/specification/specs/aggregations/bucket/adjacency_matrix/AdjacencyMatrixAggregation.ts @@ -1,3 +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. + */ + class AdjacencyMatrixAggregation { filters?: Dictionary } diff --git a/specification/specs/aggregations/bucket/auto_date_histogram/AutoDateHistogramAggregation.ts b/specification/specs/aggregations/bucket/auto_date_histogram/AutoDateHistogramAggregation.ts index 9279734b5d..effef02ff7 100644 --- a/specification/specs/aggregations/bucket/auto_date_histogram/AutoDateHistogramAggregation.ts +++ b/specification/specs/aggregations/bucket/auto_date_histogram/AutoDateHistogramAggregation.ts @@ -1,3 +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. + */ + class AutoDateHistogramAggregation { buckets?: integer field?: Field diff --git a/specification/specs/aggregations/bucket/auto_date_histogram/MinimumInterval.ts b/specification/specs/aggregations/bucket/auto_date_histogram/MinimumInterval.ts index 6463dd3e2d..afe283d4b6 100644 --- a/specification/specs/aggregations/bucket/auto_date_histogram/MinimumInterval.ts +++ b/specification/specs/aggregations/bucket/auto_date_histogram/MinimumInterval.ts @@ -1,3 +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. + */ + enum MinimumInterval { second = 0, minute = 1, diff --git a/specification/specs/aggregations/bucket/children/ChildrenAggregation.ts b/specification/specs/aggregations/bucket/children/ChildrenAggregation.ts index 58a86a8f0c..bceebec0d6 100644 --- a/specification/specs/aggregations/bucket/children/ChildrenAggregation.ts +++ b/specification/specs/aggregations/bucket/children/ChildrenAggregation.ts @@ -1,3 +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. + */ + class ChildrenAggregation { type?: RelationName } diff --git a/specification/specs/aggregations/bucket/composite/CompositeAggregation.ts b/specification/specs/aggregations/bucket/composite/CompositeAggregation.ts index 37a2c4f1d8..62fe420445 100644 --- a/specification/specs/aggregations/bucket/composite/CompositeAggregation.ts +++ b/specification/specs/aggregations/bucket/composite/CompositeAggregation.ts @@ -1,3 +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. + */ + class CompositeAggregation { after?: Dictionary size?: integer diff --git a/specification/specs/aggregations/bucket/composite/CompositeAggregationSource.ts b/specification/specs/aggregations/bucket/composite/CompositeAggregationSource.ts index b0a6da4f67..2a05b22c3c 100644 --- a/specification/specs/aggregations/bucket/composite/CompositeAggregationSource.ts +++ b/specification/specs/aggregations/bucket/composite/CompositeAggregationSource.ts @@ -1,3 +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. + */ + @class_serializer('CompositeAggregationSourceFormatter') class CompositeAggregationSource { // field: Field; diff --git a/specification/specs/aggregations/bucket/date_histogram/DateHistogramAggregation.ts b/specification/specs/aggregations/bucket/date_histogram/DateHistogramAggregation.ts index 917b49e164..d8571bdfe2 100644 --- a/specification/specs/aggregations/bucket/date_histogram/DateHistogramAggregation.ts +++ b/specification/specs/aggregations/bucket/date_histogram/DateHistogramAggregation.ts @@ -1,3 +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. + */ + class DateHistogramAggregation { calendar_interval?: Union extended_bounds?: ExtendedBounds diff --git a/specification/specs/aggregations/bucket/date_histogram/DateInterval.ts b/specification/specs/aggregations/bucket/date_histogram/DateInterval.ts index 1d0a9a4263..fd6509ae14 100644 --- a/specification/specs/aggregations/bucket/date_histogram/DateInterval.ts +++ b/specification/specs/aggregations/bucket/date_histogram/DateInterval.ts @@ -1,3 +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. + */ + enum DateInterval { second = 0, minute = 1, diff --git a/specification/specs/aggregations/bucket/date_range/DateRangeAggregation.ts b/specification/specs/aggregations/bucket/date_range/DateRangeAggregation.ts index 15329e402c..47dafeb760 100644 --- a/specification/specs/aggregations/bucket/date_range/DateRangeAggregation.ts +++ b/specification/specs/aggregations/bucket/date_range/DateRangeAggregation.ts @@ -1,3 +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. + */ + class DateRangeAggregation { field?: Field format?: string diff --git a/specification/specs/aggregations/bucket/date_range/DateRangeExpression.ts b/specification/specs/aggregations/bucket/date_range/DateRangeExpression.ts index 6da18564f8..cbdc79cc6a 100644 --- a/specification/specs/aggregations/bucket/date_range/DateRangeExpression.ts +++ b/specification/specs/aggregations/bucket/date_range/DateRangeExpression.ts @@ -1,3 +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. + */ + class DateRangeExpression { from?: DateMath | float key?: string diff --git a/specification/specs/aggregations/bucket/filters/FiltersAggregation.ts b/specification/specs/aggregations/bucket/filters/FiltersAggregation.ts index 75473c07eb..7e3bfc26b9 100644 --- a/specification/specs/aggregations/bucket/filters/FiltersAggregation.ts +++ b/specification/specs/aggregations/bucket/filters/FiltersAggregation.ts @@ -1,3 +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. + */ + class FiltersAggregation { filters?: Union, QueryContainer[]> other_bucket?: boolean diff --git a/specification/specs/aggregations/bucket/geo_distance/GeoDistanceAggregation.ts b/specification/specs/aggregations/bucket/geo_distance/GeoDistanceAggregation.ts index 07f84d23ad..1f90a739b4 100644 --- a/specification/specs/aggregations/bucket/geo_distance/GeoDistanceAggregation.ts +++ b/specification/specs/aggregations/bucket/geo_distance/GeoDistanceAggregation.ts @@ -1,3 +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. + */ + class GeoDistanceAggregation { distance_type?: GeoDistanceType field?: Field diff --git a/specification/specs/aggregations/bucket/geo_hash_grid/GeoHashGridAggregation.ts b/specification/specs/aggregations/bucket/geo_hash_grid/GeoHashGridAggregation.ts index dcaf1dcf7d..87e5334aa6 100644 --- a/specification/specs/aggregations/bucket/geo_hash_grid/GeoHashGridAggregation.ts +++ b/specification/specs/aggregations/bucket/geo_hash_grid/GeoHashGridAggregation.ts @@ -1,3 +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. + */ + class GeoHashGridAggregation { bounds?: BoundingBox field?: Field diff --git a/specification/specs/aggregations/bucket/geo_tile_grid/GeoTileGridAggregation.ts b/specification/specs/aggregations/bucket/geo_tile_grid/GeoTileGridAggregation.ts index 1a0d8ca872..35ed0aaf42 100644 --- a/specification/specs/aggregations/bucket/geo_tile_grid/GeoTileGridAggregation.ts +++ b/specification/specs/aggregations/bucket/geo_tile_grid/GeoTileGridAggregation.ts @@ -1,3 +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. + */ + class GeoTileGridAggregation { field?: Field precision?: GeoTilePrecision diff --git a/specification/specs/aggregations/bucket/global/GlobalAggregation.ts b/specification/specs/aggregations/bucket/global/GlobalAggregation.ts index 7db90fe275..56e89c59da 100644 --- a/specification/specs/aggregations/bucket/global/GlobalAggregation.ts +++ b/specification/specs/aggregations/bucket/global/GlobalAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class GlobalAggregation {} diff --git a/specification/specs/aggregations/bucket/histogram/ExtendedBounds.ts b/specification/specs/aggregations/bucket/histogram/ExtendedBounds.ts index 6314893f9e..c5503bc386 100644 --- a/specification/specs/aggregations/bucket/histogram/ExtendedBounds.ts +++ b/specification/specs/aggregations/bucket/histogram/ExtendedBounds.ts @@ -1,3 +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. + */ + class ExtendedBounds { max: T min: T diff --git a/specification/specs/aggregations/bucket/histogram/HistogramAggregation.ts b/specification/specs/aggregations/bucket/histogram/HistogramAggregation.ts index 1125216a04..077c5a676a 100644 --- a/specification/specs/aggregations/bucket/histogram/HistogramAggregation.ts +++ b/specification/specs/aggregations/bucket/histogram/HistogramAggregation.ts @@ -1,3 +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. + */ + class HistogramAggregation { extended_bounds?: ExtendedBounds hard_bounds?: ExtendedBounds diff --git a/specification/specs/aggregations/bucket/histogram/HistogramOrder.ts b/specification/specs/aggregations/bucket/histogram/HistogramOrder.ts index a4e4db21d7..433cb22f48 100644 --- a/specification/specs/aggregations/bucket/histogram/HistogramOrder.ts +++ b/specification/specs/aggregations/bucket/histogram/HistogramOrder.ts @@ -1,3 +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. + */ + @class_serializer('SortOrderFormatter`1') class HistogramOrder { count_ascending: HistogramOrder diff --git a/specification/specs/aggregations/bucket/ip_range/IpRangeAggregation.ts b/specification/specs/aggregations/bucket/ip_range/IpRangeAggregation.ts index 05f668cde7..d7672e0c7a 100644 --- a/specification/specs/aggregations/bucket/ip_range/IpRangeAggregation.ts +++ b/specification/specs/aggregations/bucket/ip_range/IpRangeAggregation.ts @@ -1,3 +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. + */ + class IpRangeAggregation { field?: Field ranges?: IpRangeAggregationRange[] diff --git a/specification/specs/aggregations/bucket/ip_range/IpRangeAggregationRange.ts b/specification/specs/aggregations/bucket/ip_range/IpRangeAggregationRange.ts index 0762e71b7a..c567ad3791 100644 --- a/specification/specs/aggregations/bucket/ip_range/IpRangeAggregationRange.ts +++ b/specification/specs/aggregations/bucket/ip_range/IpRangeAggregationRange.ts @@ -1,3 +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. + */ + class IpRangeAggregationRange { from?: string mask?: string diff --git a/specification/specs/aggregations/bucket/missing/MissingAggregation.ts b/specification/specs/aggregations/bucket/missing/MissingAggregation.ts index 83b4c1fa3e..f71c47affb 100644 --- a/specification/specs/aggregations/bucket/missing/MissingAggregation.ts +++ b/specification/specs/aggregations/bucket/missing/MissingAggregation.ts @@ -1,3 +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. + */ + class MissingAggregation { field?: Field missing?: Missing diff --git a/specification/specs/aggregations/bucket/nested/NestedAggregation.ts b/specification/specs/aggregations/bucket/nested/NestedAggregation.ts index 7e4d4c2ffa..20cdc44d26 100644 --- a/specification/specs/aggregations/bucket/nested/NestedAggregation.ts +++ b/specification/specs/aggregations/bucket/nested/NestedAggregation.ts @@ -1,3 +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. + */ + class NestedAggregation { path?: Field } diff --git a/specification/specs/aggregations/bucket/parent/ParentAggregation.ts b/specification/specs/aggregations/bucket/parent/ParentAggregation.ts index 5c8bfb09ea..bbe7d81582 100644 --- a/specification/specs/aggregations/bucket/parent/ParentAggregation.ts +++ b/specification/specs/aggregations/bucket/parent/ParentAggregation.ts @@ -1,3 +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. + */ + class ParentAggregation { type?: RelationName } diff --git a/specification/specs/aggregations/bucket/range/RangeAggregation.ts b/specification/specs/aggregations/bucket/range/RangeAggregation.ts index af79fde832..278f26eb3f 100644 --- a/specification/specs/aggregations/bucket/range/RangeAggregation.ts +++ b/specification/specs/aggregations/bucket/range/RangeAggregation.ts @@ -1,3 +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. + */ + class RangeAggregation { field?: Field ranges?: AggregationRange[] diff --git a/specification/specs/aggregations/bucket/rare_terms/RareTermsAggregation.ts b/specification/specs/aggregations/bucket/rare_terms/RareTermsAggregation.ts index d671c07724..c3fbe05598 100644 --- a/specification/specs/aggregations/bucket/rare_terms/RareTermsAggregation.ts +++ b/specification/specs/aggregations/bucket/rare_terms/RareTermsAggregation.ts @@ -1,3 +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. + */ + class RareTermsAggregation { exclude?: string | string[] field?: Field diff --git a/specification/specs/aggregations/bucket/reverse_nested/ReverseNestedAggregation.ts b/specification/specs/aggregations/bucket/reverse_nested/ReverseNestedAggregation.ts index 326572d942..3943cc18b1 100644 --- a/specification/specs/aggregations/bucket/reverse_nested/ReverseNestedAggregation.ts +++ b/specification/specs/aggregations/bucket/reverse_nested/ReverseNestedAggregation.ts @@ -1,3 +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. + */ + class ReverseNestedAggregation { path?: Field } diff --git a/specification/specs/aggregations/bucket/sampler/SamplerAggregation.ts b/specification/specs/aggregations/bucket/sampler/SamplerAggregation.ts index 6727dd2881..d551b3a425 100644 --- a/specification/specs/aggregations/bucket/sampler/SamplerAggregation.ts +++ b/specification/specs/aggregations/bucket/sampler/SamplerAggregation.ts @@ -1,3 +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. + */ + class SamplerAggregation { execution_hint?: SamplerAggregationExecutionHint max_docs_per_value?: integer diff --git a/specification/specs/aggregations/bucket/sampler/SamplerAggregationExecutionHint.ts b/specification/specs/aggregations/bucket/sampler/SamplerAggregationExecutionHint.ts index 4bdc01098e..867cfabce7 100644 --- a/specification/specs/aggregations/bucket/sampler/SamplerAggregationExecutionHint.ts +++ b/specification/specs/aggregations/bucket/sampler/SamplerAggregationExecutionHint.ts @@ -1,3 +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. + */ + enum SamplerAggregationExecutionHint { map = 0, global_ordinals = 1, diff --git a/specification/specs/aggregations/bucket/significant_terms/SignificantTermsAggregation.ts b/specification/specs/aggregations/bucket/significant_terms/SignificantTermsAggregation.ts index 627d650e15..bc32b8007d 100644 --- a/specification/specs/aggregations/bucket/significant_terms/SignificantTermsAggregation.ts +++ b/specification/specs/aggregations/bucket/significant_terms/SignificantTermsAggregation.ts @@ -1,3 +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. + */ + class SignificantTermsAggregation { background_filter?: QueryContainer chi_square?: ChiSquareHeuristic diff --git a/specification/specs/aggregations/bucket/significant_terms/heuristics/ChiSquareHeuristic.ts b/specification/specs/aggregations/bucket/significant_terms/heuristics/ChiSquareHeuristic.ts index 6c0b58185c..73a07e91c2 100644 --- a/specification/specs/aggregations/bucket/significant_terms/heuristics/ChiSquareHeuristic.ts +++ b/specification/specs/aggregations/bucket/significant_terms/heuristics/ChiSquareHeuristic.ts @@ -1,3 +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. + */ + class ChiSquareHeuristic { background_is_superset: boolean include_negatives: boolean diff --git a/specification/specs/aggregations/bucket/significant_terms/heuristics/GoogleNormalizedDistanceHeuristic.ts b/specification/specs/aggregations/bucket/significant_terms/heuristics/GoogleNormalizedDistanceHeuristic.ts index 0c50f69e16..4deb5afb10 100644 --- a/specification/specs/aggregations/bucket/significant_terms/heuristics/GoogleNormalizedDistanceHeuristic.ts +++ b/specification/specs/aggregations/bucket/significant_terms/heuristics/GoogleNormalizedDistanceHeuristic.ts @@ -1,3 +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. + */ + class GoogleNormalizedDistanceHeuristic { background_is_superset: boolean } diff --git a/specification/specs/aggregations/bucket/significant_terms/heuristics/MutualInformationHeuristic.ts b/specification/specs/aggregations/bucket/significant_terms/heuristics/MutualInformationHeuristic.ts index 07cdb19762..1c09676b9a 100644 --- a/specification/specs/aggregations/bucket/significant_terms/heuristics/MutualInformationHeuristic.ts +++ b/specification/specs/aggregations/bucket/significant_terms/heuristics/MutualInformationHeuristic.ts @@ -1,3 +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. + */ + class MutualInformationHeuristic { background_is_superset: boolean include_negatives: boolean diff --git a/specification/specs/aggregations/bucket/significant_terms/heuristics/PercentageScoreHeuristic.ts b/specification/specs/aggregations/bucket/significant_terms/heuristics/PercentageScoreHeuristic.ts index 90d25b7d73..bf9d716c2a 100644 --- a/specification/specs/aggregations/bucket/significant_terms/heuristics/PercentageScoreHeuristic.ts +++ b/specification/specs/aggregations/bucket/significant_terms/heuristics/PercentageScoreHeuristic.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PercentageScoreHeuristic {} diff --git a/specification/specs/aggregations/bucket/significant_terms/heuristics/ScriptedHeuristic.ts b/specification/specs/aggregations/bucket/significant_terms/heuristics/ScriptedHeuristic.ts index 59bdb73cb1..1ea961520f 100644 --- a/specification/specs/aggregations/bucket/significant_terms/heuristics/ScriptedHeuristic.ts +++ b/specification/specs/aggregations/bucket/significant_terms/heuristics/ScriptedHeuristic.ts @@ -1,3 +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. + */ + class ScriptedHeuristic { script: Script } diff --git a/specification/specs/aggregations/bucket/significant_text/SignificantTextAggregation.ts b/specification/specs/aggregations/bucket/significant_text/SignificantTextAggregation.ts index b8b486f13e..d38944d153 100644 --- a/specification/specs/aggregations/bucket/significant_text/SignificantTextAggregation.ts +++ b/specification/specs/aggregations/bucket/significant_text/SignificantTextAggregation.ts @@ -1,3 +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. + */ + class SignificantTextAggregation { background_filter?: QueryContainer chi_square?: ChiSquareHeuristic diff --git a/specification/specs/aggregations/bucket/terms/TermsAggregation.ts b/specification/specs/aggregations/bucket/terms/TermsAggregation.ts index 50b8a33308..242ff784e2 100644 --- a/specification/specs/aggregations/bucket/terms/TermsAggregation.ts +++ b/specification/specs/aggregations/bucket/terms/TermsAggregation.ts @@ -1,3 +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. + */ + class TermsAggregation { collect_mode?: TermsAggregationCollectMode exclude?: string | string[] diff --git a/specification/specs/aggregations/bucket/terms/TermsAggregationCollectMode.ts b/specification/specs/aggregations/bucket/terms/TermsAggregationCollectMode.ts index da10f66f12..f8b4c7165b 100644 --- a/specification/specs/aggregations/bucket/terms/TermsAggregationCollectMode.ts +++ b/specification/specs/aggregations/bucket/terms/TermsAggregationCollectMode.ts @@ -1,3 +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. + */ + enum TermsAggregationCollectMode { depth_first = 0, breadth_first = 1 diff --git a/specification/specs/aggregations/bucket/terms/TermsAggregationExecutionHint.ts b/specification/specs/aggregations/bucket/terms/TermsAggregationExecutionHint.ts index 72e1a78687..6f1ae2b5cb 100644 --- a/specification/specs/aggregations/bucket/terms/TermsAggregationExecutionHint.ts +++ b/specification/specs/aggregations/bucket/terms/TermsAggregationExecutionHint.ts @@ -1,3 +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. + */ + enum TermsAggregationExecutionHint { map = 0, global_ordinals = 1, diff --git a/specification/specs/aggregations/bucket/terms/TermsInclude.ts b/specification/specs/aggregations/bucket/terms/TermsInclude.ts index 38e1030e68..238fad95c9 100644 --- a/specification/specs/aggregations/bucket/terms/TermsInclude.ts +++ b/specification/specs/aggregations/bucket/terms/TermsInclude.ts @@ -1,3 +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. + */ + @class_serializer('TermsIncludeFormatter') class TermsInclude { num_partitions: long diff --git a/specification/specs/aggregations/bucket/variable_width_histogram/VariableWidthHistogramAggregation.ts b/specification/specs/aggregations/bucket/variable_width_histogram/VariableWidthHistogramAggregation.ts index 2422672626..bbe9c3cb2f 100644 --- a/specification/specs/aggregations/bucket/variable_width_histogram/VariableWidthHistogramAggregation.ts +++ b/specification/specs/aggregations/bucket/variable_width_histogram/VariableWidthHistogramAggregation.ts @@ -1,3 +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. + */ + class VariableWidthHistogramAggregation { field?: Field buckets?: integer diff --git a/specification/specs/aggregations/matrix/MatrixAggregation.ts b/specification/specs/aggregations/matrix/MatrixAggregation.ts index ff162b9dd9..8395875bf9 100644 --- a/specification/specs/aggregations/matrix/MatrixAggregation.ts +++ b/specification/specs/aggregations/matrix/MatrixAggregation.ts @@ -1,3 +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. + */ + class MatrixAggregation { fields?: Field[] missing?: Dictionary diff --git a/specification/specs/aggregations/matrix/matrix_stats/MatrixStatsAggregation.ts b/specification/specs/aggregations/matrix/matrix_stats/MatrixStatsAggregation.ts index 57f5827845..9ee54a7cab 100644 --- a/specification/specs/aggregations/matrix/matrix_stats/MatrixStatsAggregation.ts +++ b/specification/specs/aggregations/matrix/matrix_stats/MatrixStatsAggregation.ts @@ -1,3 +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. + */ + class MatrixStatsAggregation { mode?: MatrixStatsMode } diff --git a/specification/specs/aggregations/matrix/matrix_stats/MatrixStatsMode.ts b/specification/specs/aggregations/matrix/matrix_stats/MatrixStatsMode.ts index fc9daab58b..a1ab3b693e 100644 --- a/specification/specs/aggregations/matrix/matrix_stats/MatrixStatsMode.ts +++ b/specification/specs/aggregations/matrix/matrix_stats/MatrixStatsMode.ts @@ -1,3 +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. + */ + enum MatrixStatsMode { avg = 0, min = 1, diff --git a/specification/specs/aggregations/metric/FormattableMetricAggregation.ts b/specification/specs/aggregations/metric/FormattableMetricAggregation.ts index 64cb1fb278..5b7fe46fc4 100644 --- a/specification/specs/aggregations/metric/FormattableMetricAggregation.ts +++ b/specification/specs/aggregations/metric/FormattableMetricAggregation.ts @@ -1,3 +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. + */ + class FormattableMetricAggregation { format?: string } diff --git a/specification/specs/aggregations/metric/MetricAggregation.ts b/specification/specs/aggregations/metric/MetricAggregation.ts index 07ec8f583c..989997bc12 100644 --- a/specification/specs/aggregations/metric/MetricAggregation.ts +++ b/specification/specs/aggregations/metric/MetricAggregation.ts @@ -1,3 +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. + */ + class MetricAggregation { field?: Field missing?: double diff --git a/specification/specs/aggregations/metric/average/AverageAggregation.ts b/specification/specs/aggregations/metric/average/AverageAggregation.ts index f933333367..aaa87d40b7 100644 --- a/specification/specs/aggregations/metric/average/AverageAggregation.ts +++ b/specification/specs/aggregations/metric/average/AverageAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class AverageAggregation {} diff --git a/specification/specs/aggregations/metric/boxplot/BoxplotAggregation.ts b/specification/specs/aggregations/metric/boxplot/BoxplotAggregation.ts index a8e0ad0777..e271e381d3 100644 --- a/specification/specs/aggregations/metric/boxplot/BoxplotAggregation.ts +++ b/specification/specs/aggregations/metric/boxplot/BoxplotAggregation.ts @@ -1,3 +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. + */ + class BoxplotAggregation { compression?: double } diff --git a/specification/specs/aggregations/metric/cardinality/CardinalityAggregation.ts b/specification/specs/aggregations/metric/cardinality/CardinalityAggregation.ts index a92fa09e7e..20c628f98b 100644 --- a/specification/specs/aggregations/metric/cardinality/CardinalityAggregation.ts +++ b/specification/specs/aggregations/metric/cardinality/CardinalityAggregation.ts @@ -1,3 +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. + */ + class CardinalityAggregation { precision_threshold?: integer rehash?: boolean diff --git a/specification/specs/aggregations/metric/extended_stats/ExtendedStatsAggregation.ts b/specification/specs/aggregations/metric/extended_stats/ExtendedStatsAggregation.ts index 24a9931204..e052d107e4 100644 --- a/specification/specs/aggregations/metric/extended_stats/ExtendedStatsAggregation.ts +++ b/specification/specs/aggregations/metric/extended_stats/ExtendedStatsAggregation.ts @@ -1,3 +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. + */ + class ExtendedStatsAggregation { sigma?: double field?: Field diff --git a/specification/specs/aggregations/metric/geo_bounds/GeoBoundsAggregation.ts b/specification/specs/aggregations/metric/geo_bounds/GeoBoundsAggregation.ts index c85a0e30be..8e35077f9c 100644 --- a/specification/specs/aggregations/metric/geo_bounds/GeoBoundsAggregation.ts +++ b/specification/specs/aggregations/metric/geo_bounds/GeoBoundsAggregation.ts @@ -1,3 +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. + */ + class GeoBoundsAggregation { wrap_longitude?: boolean } diff --git a/specification/specs/aggregations/metric/geo_centroid/GeoCentroidAggregation.ts b/specification/specs/aggregations/metric/geo_centroid/GeoCentroidAggregation.ts index 3160bd807a..dfbf7f0691 100644 --- a/specification/specs/aggregations/metric/geo_centroid/GeoCentroidAggregation.ts +++ b/specification/specs/aggregations/metric/geo_centroid/GeoCentroidAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class GeoCentroidAggregation {} diff --git a/specification/specs/aggregations/metric/max/MaxAggregation.ts b/specification/specs/aggregations/metric/max/MaxAggregation.ts index 46b91e1fb3..2a0a34da42 100644 --- a/specification/specs/aggregations/metric/max/MaxAggregation.ts +++ b/specification/specs/aggregations/metric/max/MaxAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class MaxAggregation {} diff --git a/specification/specs/aggregations/metric/median_absolute_deviation/MedianAbsoluteDeviationAggregation.ts b/specification/specs/aggregations/metric/median_absolute_deviation/MedianAbsoluteDeviationAggregation.ts index a61a19ee03..0a3339aa71 100644 --- a/specification/specs/aggregations/metric/median_absolute_deviation/MedianAbsoluteDeviationAggregation.ts +++ b/specification/specs/aggregations/metric/median_absolute_deviation/MedianAbsoluteDeviationAggregation.ts @@ -1,3 +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. + */ + class MedianAbsoluteDeviationAggregation { compression?: double field?: Field diff --git a/specification/specs/aggregations/metric/min/MinAggregation.ts b/specification/specs/aggregations/metric/min/MinAggregation.ts index 94f2db4f62..bbd1857514 100644 --- a/specification/specs/aggregations/metric/min/MinAggregation.ts +++ b/specification/specs/aggregations/metric/min/MinAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class MinAggregation {} diff --git a/specification/specs/aggregations/metric/percentile_ranks/PercentileRanksAggregation.ts b/specification/specs/aggregations/metric/percentile_ranks/PercentileRanksAggregation.ts index 3b38924be1..59322b1de8 100644 --- a/specification/specs/aggregations/metric/percentile_ranks/PercentileRanksAggregation.ts +++ b/specification/specs/aggregations/metric/percentile_ranks/PercentileRanksAggregation.ts @@ -1,3 +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. + */ + class PercentileRanksAggregation { keyed?: boolean values?: double[] diff --git a/specification/specs/aggregations/metric/percentiles/PercentilesAggregation.ts b/specification/specs/aggregations/metric/percentiles/PercentilesAggregation.ts index 7e47e64123..b567387f1f 100644 --- a/specification/specs/aggregations/metric/percentiles/PercentilesAggregation.ts +++ b/specification/specs/aggregations/metric/percentiles/PercentilesAggregation.ts @@ -1,3 +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. + */ + class PercentilesAggregation { keyed?: boolean percents?: double[] diff --git a/specification/specs/aggregations/metric/scripted_metric/ScriptedMetricAggregation.ts b/specification/specs/aggregations/metric/scripted_metric/ScriptedMetricAggregation.ts index 8cd72310a5..8ec1651467 100644 --- a/specification/specs/aggregations/metric/scripted_metric/ScriptedMetricAggregation.ts +++ b/specification/specs/aggregations/metric/scripted_metric/ScriptedMetricAggregation.ts @@ -1,3 +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. + */ + class ScriptedMetricAggregation { combine_script?: Script init_script?: Script diff --git a/specification/specs/aggregations/metric/stats/StatsAggregation.ts b/specification/specs/aggregations/metric/stats/StatsAggregation.ts index 1ae75bba54..b3348f80ec 100644 --- a/specification/specs/aggregations/metric/stats/StatsAggregation.ts +++ b/specification/specs/aggregations/metric/stats/StatsAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class StatsAggregation {} diff --git a/specification/specs/aggregations/metric/string_stats/StringStatsAggregation.ts b/specification/specs/aggregations/metric/string_stats/StringStatsAggregation.ts index 26cc5fe432..8788a4d6a3 100644 --- a/specification/specs/aggregations/metric/string_stats/StringStatsAggregation.ts +++ b/specification/specs/aggregations/metric/string_stats/StringStatsAggregation.ts @@ -1,3 +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. + */ + class StringStatsAggregation { field?: Field missing?: any diff --git a/specification/specs/aggregations/metric/sum/SumAggregation.ts b/specification/specs/aggregations/metric/sum/SumAggregation.ts index 5ed9c525c8..f2ab439e84 100644 --- a/specification/specs/aggregations/metric/sum/SumAggregation.ts +++ b/specification/specs/aggregations/metric/sum/SumAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class SumAggregation {} diff --git a/specification/specs/aggregations/metric/top_hits/TopHitsAggregation.ts b/specification/specs/aggregations/metric/top_hits/TopHitsAggregation.ts index dc96ee42b8..b77cec4deb 100644 --- a/specification/specs/aggregations/metric/top_hits/TopHitsAggregation.ts +++ b/specification/specs/aggregations/metric/top_hits/TopHitsAggregation.ts @@ -1,3 +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. + */ + class TopHitsAggregation { docvalue_fields?: Field[] explain?: boolean diff --git a/specification/specs/aggregations/metric/top_metrics/TopMetricsAggregation.ts b/specification/specs/aggregations/metric/top_metrics/TopMetricsAggregation.ts index 63b17774e3..e98858aa0f 100644 --- a/specification/specs/aggregations/metric/top_metrics/TopMetricsAggregation.ts +++ b/specification/specs/aggregations/metric/top_metrics/TopMetricsAggregation.ts @@ -1,3 +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. + */ + class TopMetricsAggregation { metrics?: TopMetricsValue[] size?: integer diff --git a/specification/specs/aggregations/metric/top_metrics/TopMetricsValue.ts b/specification/specs/aggregations/metric/top_metrics/TopMetricsValue.ts index 538774424e..8f86d962d3 100644 --- a/specification/specs/aggregations/metric/top_metrics/TopMetricsValue.ts +++ b/specification/specs/aggregations/metric/top_metrics/TopMetricsValue.ts @@ -1,3 +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. + */ + class TopMetricsValue { field: Field } diff --git a/specification/specs/aggregations/metric/value_count/ValueCountAggregation.ts b/specification/specs/aggregations/metric/value_count/ValueCountAggregation.ts index 67acd3d64e..576544ec7a 100644 --- a/specification/specs/aggregations/metric/value_count/ValueCountAggregation.ts +++ b/specification/specs/aggregations/metric/value_count/ValueCountAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ValueCountAggregation {} diff --git a/specification/specs/aggregations/metric/weighted_average/ValueType.ts b/specification/specs/aggregations/metric/weighted_average/ValueType.ts index ca012e4974..457c03c51d 100644 --- a/specification/specs/aggregations/metric/weighted_average/ValueType.ts +++ b/specification/specs/aggregations/metric/weighted_average/ValueType.ts @@ -1,3 +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. + */ + enum ValueType { string = 0, long = 1, diff --git a/specification/specs/aggregations/metric/weighted_average/WeightedAverageAggregation.ts b/specification/specs/aggregations/metric/weighted_average/WeightedAverageAggregation.ts index 926395ec28..585c70c9a4 100644 --- a/specification/specs/aggregations/metric/weighted_average/WeightedAverageAggregation.ts +++ b/specification/specs/aggregations/metric/weighted_average/WeightedAverageAggregation.ts @@ -1,3 +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. + */ + class WeightedAverageAggregation { format?: string value?: WeightedAverageValue diff --git a/specification/specs/aggregations/metric/weighted_average/WeightedAverageValue.ts b/specification/specs/aggregations/metric/weighted_average/WeightedAverageValue.ts index 3298d62e58..b5cae3e11e 100644 --- a/specification/specs/aggregations/metric/weighted_average/WeightedAverageValue.ts +++ b/specification/specs/aggregations/metric/weighted_average/WeightedAverageValue.ts @@ -1,3 +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. + */ + class WeightedAverageValue { field: Field missing: double diff --git a/specification/specs/aggregations/pipeline/BucketsPath.ts b/specification/specs/aggregations/pipeline/BucketsPath.ts index c6e1fb5373..82f11c2848 100644 --- a/specification/specs/aggregations/pipeline/BucketsPath.ts +++ b/specification/specs/aggregations/pipeline/BucketsPath.ts @@ -1,2 +1,21 @@ +/* + * 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. + */ + @class_serializer('BucketsPathFormatter') class BucketsPath {} diff --git a/specification/specs/aggregations/pipeline/GapPolicy.ts b/specification/specs/aggregations/pipeline/GapPolicy.ts index 603262ce95..b65dbcdff8 100644 --- a/specification/specs/aggregations/pipeline/GapPolicy.ts +++ b/specification/specs/aggregations/pipeline/GapPolicy.ts @@ -1,3 +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. + */ + enum GapPolicy { skip = 0, insert_zeros = 1 diff --git a/specification/specs/aggregations/pipeline/PipelineAggregation.ts b/specification/specs/aggregations/pipeline/PipelineAggregation.ts index 77bc4f26c9..f3ef1f8a76 100644 --- a/specification/specs/aggregations/pipeline/PipelineAggregation.ts +++ b/specification/specs/aggregations/pipeline/PipelineAggregation.ts @@ -1,3 +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. + */ + class PipelineAggregation { buckets_path?: BucketsPath format?: string diff --git a/specification/specs/aggregations/pipeline/average_bucket/AverageBucketAggregation.ts b/specification/specs/aggregations/pipeline/average_bucket/AverageBucketAggregation.ts index ce85b4bc6c..e3b71301aa 100644 --- a/specification/specs/aggregations/pipeline/average_bucket/AverageBucketAggregation.ts +++ b/specification/specs/aggregations/pipeline/average_bucket/AverageBucketAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class AverageBucketAggregation {} diff --git a/specification/specs/aggregations/pipeline/bucket_script/BucketScriptAggregation.ts b/specification/specs/aggregations/pipeline/bucket_script/BucketScriptAggregation.ts index 90ac0523a2..ab13cd146b 100644 --- a/specification/specs/aggregations/pipeline/bucket_script/BucketScriptAggregation.ts +++ b/specification/specs/aggregations/pipeline/bucket_script/BucketScriptAggregation.ts @@ -1,3 +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. + */ + class BucketScriptAggregation { script?: Script } diff --git a/specification/specs/aggregations/pipeline/bucket_selector/BucketSelectorAggregation.ts b/specification/specs/aggregations/pipeline/bucket_selector/BucketSelectorAggregation.ts index dc5425aeee..6221237e7f 100644 --- a/specification/specs/aggregations/pipeline/bucket_selector/BucketSelectorAggregation.ts +++ b/specification/specs/aggregations/pipeline/bucket_selector/BucketSelectorAggregation.ts @@ -1,3 +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. + */ + class BucketSelectorAggregation { script?: Script } diff --git a/specification/specs/aggregations/pipeline/bucket_sort/BucketSortAggregation.ts b/specification/specs/aggregations/pipeline/bucket_sort/BucketSortAggregation.ts index 849e2992fa..67213bfdd2 100644 --- a/specification/specs/aggregations/pipeline/bucket_sort/BucketSortAggregation.ts +++ b/specification/specs/aggregations/pipeline/bucket_sort/BucketSortAggregation.ts @@ -1,3 +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. + */ + class BucketSortAggregation { from?: integer gap_policy?: GapPolicy diff --git a/specification/specs/aggregations/pipeline/cumulative_cardinality/CumulativeCardinalityAggregation.ts b/specification/specs/aggregations/pipeline/cumulative_cardinality/CumulativeCardinalityAggregation.ts index be35fb4ff3..feed2bed03 100644 --- a/specification/specs/aggregations/pipeline/cumulative_cardinality/CumulativeCardinalityAggregation.ts +++ b/specification/specs/aggregations/pipeline/cumulative_cardinality/CumulativeCardinalityAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class CumulativeCardinalityAggregation {} diff --git a/specification/specs/aggregations/pipeline/cumulative_sum/CumulativeSumAggregation.ts b/specification/specs/aggregations/pipeline/cumulative_sum/CumulativeSumAggregation.ts index cda1a07e98..c53cfc85d7 100644 --- a/specification/specs/aggregations/pipeline/cumulative_sum/CumulativeSumAggregation.ts +++ b/specification/specs/aggregations/pipeline/cumulative_sum/CumulativeSumAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class CumulativeSumAggregation {} diff --git a/specification/specs/aggregations/pipeline/derivative/DerivativeAggregation.ts b/specification/specs/aggregations/pipeline/derivative/DerivativeAggregation.ts index 5e45c04435..007902d823 100644 --- a/specification/specs/aggregations/pipeline/derivative/DerivativeAggregation.ts +++ b/specification/specs/aggregations/pipeline/derivative/DerivativeAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DerivativeAggregation {} diff --git a/specification/specs/aggregations/pipeline/extended_stats_bucket/ExtendedStatsBucketAggregation.ts b/specification/specs/aggregations/pipeline/extended_stats_bucket/ExtendedStatsBucketAggregation.ts index 5937d74727..0b0e2d7b58 100644 --- a/specification/specs/aggregations/pipeline/extended_stats_bucket/ExtendedStatsBucketAggregation.ts +++ b/specification/specs/aggregations/pipeline/extended_stats_bucket/ExtendedStatsBucketAggregation.ts @@ -1,3 +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. + */ + class ExtendedStatsBucketAggregation { sigma?: double } diff --git a/specification/specs/aggregations/pipeline/max_bucket/MaxBucketAggregation.ts b/specification/specs/aggregations/pipeline/max_bucket/MaxBucketAggregation.ts index 10c1b92772..fd1c5db67d 100644 --- a/specification/specs/aggregations/pipeline/max_bucket/MaxBucketAggregation.ts +++ b/specification/specs/aggregations/pipeline/max_bucket/MaxBucketAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class MaxBucketAggregation {} diff --git a/specification/specs/aggregations/pipeline/min_bucket/MinBucketAggregation.ts b/specification/specs/aggregations/pipeline/min_bucket/MinBucketAggregation.ts index cad9969acf..9c5889d902 100644 --- a/specification/specs/aggregations/pipeline/min_bucket/MinBucketAggregation.ts +++ b/specification/specs/aggregations/pipeline/min_bucket/MinBucketAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class MinBucketAggregation {} diff --git a/specification/specs/aggregations/pipeline/moving_average/MovingAverageAggregation.ts b/specification/specs/aggregations/pipeline/moving_average/MovingAverageAggregation.ts index 34a2cbbc6e..dea0a63007 100644 --- a/specification/specs/aggregations/pipeline/moving_average/MovingAverageAggregation.ts +++ b/specification/specs/aggregations/pipeline/moving_average/MovingAverageAggregation.ts @@ -1,3 +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. + */ + @class_serializer('MovingAverageAggregationFormatter') class MovingAverageAggregation { minimize?: boolean diff --git a/specification/specs/aggregations/pipeline/moving_average/models/HoltWintersType.ts b/specification/specs/aggregations/pipeline/moving_average/models/HoltWintersType.ts index ed4b5b606f..1739055e3f 100644 --- a/specification/specs/aggregations/pipeline/moving_average/models/HoltWintersType.ts +++ b/specification/specs/aggregations/pipeline/moving_average/models/HoltWintersType.ts @@ -1,3 +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. + */ + enum HoltWintersType { add = 0, mult = 1 diff --git a/specification/specs/aggregations/pipeline/moving_average/models/MovingAverageModel.ts b/specification/specs/aggregations/pipeline/moving_average/models/MovingAverageModel.ts index 4a31a0c549..a826eaf0a9 100644 --- a/specification/specs/aggregations/pipeline/moving_average/models/MovingAverageModel.ts +++ b/specification/specs/aggregations/pipeline/moving_average/models/MovingAverageModel.ts @@ -1,3 +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. + */ + class MovingAverageModel { name: string } diff --git a/specification/specs/aggregations/pipeline/moving_function/MovingFunctionAggregation.ts b/specification/specs/aggregations/pipeline/moving_function/MovingFunctionAggregation.ts index 386d521e42..bb6ac631ab 100644 --- a/specification/specs/aggregations/pipeline/moving_function/MovingFunctionAggregation.ts +++ b/specification/specs/aggregations/pipeline/moving_function/MovingFunctionAggregation.ts @@ -1,3 +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. + */ + class MovingFunctionAggregation { script?: string shift?: integer diff --git a/specification/specs/aggregations/pipeline/percentiles_bucket/PercentilesBucketAggregation.ts b/specification/specs/aggregations/pipeline/percentiles_bucket/PercentilesBucketAggregation.ts index 37711a1384..87474d0bb9 100644 --- a/specification/specs/aggregations/pipeline/percentiles_bucket/PercentilesBucketAggregation.ts +++ b/specification/specs/aggregations/pipeline/percentiles_bucket/PercentilesBucketAggregation.ts @@ -1,3 +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. + */ + class PercentilesBucketAggregation { percents?: double[] } diff --git a/specification/specs/aggregations/pipeline/serial_differencing/SerialDifferencingAggregation.ts b/specification/specs/aggregations/pipeline/serial_differencing/SerialDifferencingAggregation.ts index fa74a41461..77a1a0abe5 100644 --- a/specification/specs/aggregations/pipeline/serial_differencing/SerialDifferencingAggregation.ts +++ b/specification/specs/aggregations/pipeline/serial_differencing/SerialDifferencingAggregation.ts @@ -1,3 +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. + */ + class SerialDifferencingAggregation { lag?: integer } diff --git a/specification/specs/aggregations/pipeline/stats_bucket/StatsBucketAggregation.ts b/specification/specs/aggregations/pipeline/stats_bucket/StatsBucketAggregation.ts index 7195dd8500..41471e8c23 100644 --- a/specification/specs/aggregations/pipeline/stats_bucket/StatsBucketAggregation.ts +++ b/specification/specs/aggregations/pipeline/stats_bucket/StatsBucketAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class StatsBucketAggregation {} diff --git a/specification/specs/aggregations/pipeline/sum_bucket/SumBucketAggregation.ts b/specification/specs/aggregations/pipeline/sum_bucket/SumBucketAggregation.ts index 066a6f65f2..e495a14dbb 100644 --- a/specification/specs/aggregations/pipeline/sum_bucket/SumBucketAggregation.ts +++ b/specification/specs/aggregations/pipeline/sum_bucket/SumBucketAggregation.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class SumBucketAggregation {} diff --git a/specification/specs/aggregations/visitor/AggregationVisitorScope.ts b/specification/specs/aggregations/visitor/AggregationVisitorScope.ts index 8e15f6e9d7..bc543edbbb 100644 --- a/specification/specs/aggregations/visitor/AggregationVisitorScope.ts +++ b/specification/specs/aggregations/visitor/AggregationVisitorScope.ts @@ -1,3 +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. + */ + enum AggregationVisitorScope { Unknown = 0, Aggregation = 1, diff --git a/specification/specs/analysis/StopWords.ts b/specification/specs/analysis/StopWords.ts index a63635ca74..6c5365abad 100644 --- a/specification/specs/analysis/StopWords.ts +++ b/specification/specs/analysis/StopWords.ts @@ -1,3 +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. + */ + /** * Language value, such as _arabic_ or _thai_. Defaults to _english_. * Each language value corresponds to a predefined list of stop words in Lucene. See Stop words by language for supported language values and their stop words. diff --git a/specification/specs/analysis/analyzers/AnalyzerBase.ts b/specification/specs/analysis/analyzers/AnalyzerBase.ts index 5c5d9d388b..95af922e96 100644 --- a/specification/specs/analysis/analyzers/AnalyzerBase.ts +++ b/specification/specs/analysis/analyzers/AnalyzerBase.ts @@ -1,3 +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. + */ + class AnalyzerBase { type: string version: string diff --git a/specification/specs/analysis/analyzers/CustomAnalyzer.ts b/specification/specs/analysis/analyzers/CustomAnalyzer.ts index 3f4aff8eba..5194153044 100644 --- a/specification/specs/analysis/analyzers/CustomAnalyzer.ts +++ b/specification/specs/analysis/analyzers/CustomAnalyzer.ts @@ -1,3 +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. + */ + class CustomAnalyzer extends AnalyzerBase { /** @prop_serializer SingleOrEnumerableFormatter`1 */ char_filter: string[] diff --git a/specification/specs/analysis/analyzers/FingerprintAnalyzer.ts b/specification/specs/analysis/analyzers/FingerprintAnalyzer.ts index 513a1aceff..f25db89362 100644 --- a/specification/specs/analysis/analyzers/FingerprintAnalyzer.ts +++ b/specification/specs/analysis/analyzers/FingerprintAnalyzer.ts @@ -1,3 +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. + */ + class FingerprintAnalyzer extends AnalyzerBase { /** @prop_serializer NullableStringIntFormatter */ max_output_size: integer diff --git a/specification/specs/analysis/analyzers/KeywordAnalyzer.ts b/specification/specs/analysis/analyzers/KeywordAnalyzer.ts index df2a7d9239..0858b3b700 100644 --- a/specification/specs/analysis/analyzers/KeywordAnalyzer.ts +++ b/specification/specs/analysis/analyzers/KeywordAnalyzer.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class KeywordAnalyzer extends AnalyzerBase {} diff --git a/specification/specs/analysis/analyzers/LanguageAnalyzer.ts b/specification/specs/analysis/analyzers/LanguageAnalyzer.ts index 0319a86c49..1017ce7679 100644 --- a/specification/specs/analysis/analyzers/LanguageAnalyzer.ts +++ b/specification/specs/analysis/analyzers/LanguageAnalyzer.ts @@ -1,3 +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. + */ + class LanguageAnalyzer extends AnalyzerBase { language: Language stem_exclusion: string[] diff --git a/specification/specs/analysis/analyzers/NoriAnalyzer.ts b/specification/specs/analysis/analyzers/NoriAnalyzer.ts index f8d2637a3a..2b3eb30d57 100644 --- a/specification/specs/analysis/analyzers/NoriAnalyzer.ts +++ b/specification/specs/analysis/analyzers/NoriAnalyzer.ts @@ -1,3 +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. + */ + class NoriAnalyzer extends AnalyzerBase { decompound_mode: NoriDecompoundMode stoptags: string[] diff --git a/specification/specs/analysis/analyzers/PatternAnalyzer.ts b/specification/specs/analysis/analyzers/PatternAnalyzer.ts index a28b3b0890..6fcc7e5ac3 100644 --- a/specification/specs/analysis/analyzers/PatternAnalyzer.ts +++ b/specification/specs/analysis/analyzers/PatternAnalyzer.ts @@ -1,3 +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. + */ + class PatternAnalyzer extends AnalyzerBase { flags: string /** @prop_serializer NullableStringBooleanFormatter */ diff --git a/specification/specs/analysis/analyzers/SimpleAnalyzer.ts b/specification/specs/analysis/analyzers/SimpleAnalyzer.ts index 953e5da253..16a791c3c3 100644 --- a/specification/specs/analysis/analyzers/SimpleAnalyzer.ts +++ b/specification/specs/analysis/analyzers/SimpleAnalyzer.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class SimpleAnalyzer extends AnalyzerBase {} diff --git a/specification/specs/analysis/analyzers/SnowballAnalyzer.ts b/specification/specs/analysis/analyzers/SnowballAnalyzer.ts index 7e6e8e42c1..6d71e9239c 100644 --- a/specification/specs/analysis/analyzers/SnowballAnalyzer.ts +++ b/specification/specs/analysis/analyzers/SnowballAnalyzer.ts @@ -1,3 +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. + */ + class SnowballAnalyzer extends AnalyzerBase { language: SnowballLanguage stopwords: StopWords diff --git a/specification/specs/analysis/analyzers/StandardAnalyzer.ts b/specification/specs/analysis/analyzers/StandardAnalyzer.ts index 0497b51d02..57c7021ee9 100644 --- a/specification/specs/analysis/analyzers/StandardAnalyzer.ts +++ b/specification/specs/analysis/analyzers/StandardAnalyzer.ts @@ -1,3 +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. + */ + class StandardAnalyzer extends AnalyzerBase { /** @prop_serializer NullableStringIntFormatter */ max_token_length: integer diff --git a/specification/specs/analysis/analyzers/StopAnalyzer.ts b/specification/specs/analysis/analyzers/StopAnalyzer.ts index 4711fa9237..402e87b19e 100644 --- a/specification/specs/analysis/analyzers/StopAnalyzer.ts +++ b/specification/specs/analysis/analyzers/StopAnalyzer.ts @@ -1,3 +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. + */ + class StopAnalyzer extends AnalyzerBase { stopwords: StopWords stopwords_path: string diff --git a/specification/specs/analysis/analyzers/WhitespaceAnalyzer.ts b/specification/specs/analysis/analyzers/WhitespaceAnalyzer.ts index 0eeebbcf67..7984b2ca89 100644 --- a/specification/specs/analysis/analyzers/WhitespaceAnalyzer.ts +++ b/specification/specs/analysis/analyzers/WhitespaceAnalyzer.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class WhitespaceAnalyzer extends AnalyzerBase {} diff --git a/specification/specs/analysis/char_filters/CharFilterBase.ts b/specification/specs/analysis/char_filters/CharFilterBase.ts index aee52a3612..eda37e0b6f 100644 --- a/specification/specs/analysis/char_filters/CharFilterBase.ts +++ b/specification/specs/analysis/char_filters/CharFilterBase.ts @@ -1,3 +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. + */ + class CharFilterBase { type: string version?: string diff --git a/specification/specs/analysis/char_filters/HtmlStripCharFilter.ts b/specification/specs/analysis/char_filters/HtmlStripCharFilter.ts index 739f7bcb05..01606cefc8 100644 --- a/specification/specs/analysis/char_filters/HtmlStripCharFilter.ts +++ b/specification/specs/analysis/char_filters/HtmlStripCharFilter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class HtmlStripCharFilter extends CharFilterBase {} diff --git a/specification/specs/analysis/char_filters/MappingCharFilter.ts b/specification/specs/analysis/char_filters/MappingCharFilter.ts index 9ece42efd6..230d0adfce 100644 --- a/specification/specs/analysis/char_filters/MappingCharFilter.ts +++ b/specification/specs/analysis/char_filters/MappingCharFilter.ts @@ -1,3 +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. + */ + class MappingCharFilter extends CharFilterBase { mappings: string[] mappings_path: string diff --git a/specification/specs/analysis/char_filters/PatternReplaceCharFilter.ts b/specification/specs/analysis/char_filters/PatternReplaceCharFilter.ts index 2db6b505e4..55f42f5204 100644 --- a/specification/specs/analysis/char_filters/PatternReplaceCharFilter.ts +++ b/specification/specs/analysis/char_filters/PatternReplaceCharFilter.ts @@ -1,3 +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. + */ + class PatternReplaceCharFilter extends CharFilterBase { flags: string pattern: string diff --git a/specification/specs/analysis/languages/Language.ts b/specification/specs/analysis/languages/Language.ts index b311c3e822..9d6c762611 100644 --- a/specification/specs/analysis/languages/Language.ts +++ b/specification/specs/analysis/languages/Language.ts @@ -1,3 +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. + */ + enum Language { Arabic = 0, Armenian = 1, diff --git a/specification/specs/analysis/languages/SnowballLanguage.ts b/specification/specs/analysis/languages/SnowballLanguage.ts index a48d1cd53a..5e7166c141 100644 --- a/specification/specs/analysis/languages/SnowballLanguage.ts +++ b/specification/specs/analysis/languages/SnowballLanguage.ts @@ -1,3 +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. + */ + enum SnowballLanguage { Armenian = 0, Basque = 1, diff --git a/specification/specs/analysis/plugins/icu/IcuAnalyzer.ts b/specification/specs/analysis/plugins/icu/IcuAnalyzer.ts index 58555c1deb..869007c751 100644 --- a/specification/specs/analysis/plugins/icu/IcuAnalyzer.ts +++ b/specification/specs/analysis/plugins/icu/IcuAnalyzer.ts @@ -1,3 +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. + */ + class IcuAnalyzer extends AnalyzerBase { method: IcuNormalizationType mode: IcuNormalizationMode diff --git a/specification/specs/analysis/plugins/icu/IcuCollationTokenFilter.ts b/specification/specs/analysis/plugins/icu/IcuCollationTokenFilter.ts index 93d992a7c9..4211c981b5 100644 --- a/specification/specs/analysis/plugins/icu/IcuCollationTokenFilter.ts +++ b/specification/specs/analysis/plugins/icu/IcuCollationTokenFilter.ts @@ -1,3 +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. + */ + class IcuCollationTokenFilter extends TokenFilterBase { alternate: IcuCollationAlternate caseFirst: IcuCollationCaseFirst diff --git a/specification/specs/analysis/plugins/icu/IcuFoldingTokenFilter.ts b/specification/specs/analysis/plugins/icu/IcuFoldingTokenFilter.ts index 02fd54adce..2cbe5f2d2d 100644 --- a/specification/specs/analysis/plugins/icu/IcuFoldingTokenFilter.ts +++ b/specification/specs/analysis/plugins/icu/IcuFoldingTokenFilter.ts @@ -1,3 +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. + */ + class IcuFoldingTokenFilter extends TokenFilterBase { unicode_set_filter: string } diff --git a/specification/specs/analysis/plugins/icu/IcuNormalizationCharFilter.ts b/specification/specs/analysis/plugins/icu/IcuNormalizationCharFilter.ts index 7c8ecb67b9..f31839e683 100644 --- a/specification/specs/analysis/plugins/icu/IcuNormalizationCharFilter.ts +++ b/specification/specs/analysis/plugins/icu/IcuNormalizationCharFilter.ts @@ -1,3 +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. + */ + class IcuNormalizationCharFilter extends CharFilterBase { mode: IcuNormalizationMode name: IcuNormalizationType diff --git a/specification/specs/analysis/plugins/icu/IcuNormalizationTokenFilter.ts b/specification/specs/analysis/plugins/icu/IcuNormalizationTokenFilter.ts index e1cd802c2d..56ed634a1e 100644 --- a/specification/specs/analysis/plugins/icu/IcuNormalizationTokenFilter.ts +++ b/specification/specs/analysis/plugins/icu/IcuNormalizationTokenFilter.ts @@ -1,3 +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. + */ + class IcuNormalizationTokenFilter extends TokenFilterBase { name: IcuNormalizationType } diff --git a/specification/specs/analysis/plugins/icu/IcuTokenizer.ts b/specification/specs/analysis/plugins/icu/IcuTokenizer.ts index 26a058dbf6..e2efcabcff 100644 --- a/specification/specs/analysis/plugins/icu/IcuTokenizer.ts +++ b/specification/specs/analysis/plugins/icu/IcuTokenizer.ts @@ -1,3 +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. + */ + class IcuTokenizer extends TokenizerBase { rule_files: string } diff --git a/specification/specs/analysis/plugins/icu/IcuTransformTokenFilter.ts b/specification/specs/analysis/plugins/icu/IcuTransformTokenFilter.ts index c3961d22c2..8feb768c6c 100644 --- a/specification/specs/analysis/plugins/icu/IcuTransformTokenFilter.ts +++ b/specification/specs/analysis/plugins/icu/IcuTransformTokenFilter.ts @@ -1,3 +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. + */ + class IcuTransformTokenFilter extends TokenFilterBase { dir: IcuTransformDirection id: string diff --git a/specification/specs/analysis/plugins/icu/collation/IcuCollationAlternate.ts b/specification/specs/analysis/plugins/icu/collation/IcuCollationAlternate.ts index fbcf4f53b6..71a54d21a5 100644 --- a/specification/specs/analysis/plugins/icu/collation/IcuCollationAlternate.ts +++ b/specification/specs/analysis/plugins/icu/collation/IcuCollationAlternate.ts @@ -1,3 +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. + */ + enum IcuCollationAlternate { shifted = 0, 'non-ignorable' = 1 diff --git a/specification/specs/analysis/plugins/icu/collation/IcuCollationCaseFirst.ts b/specification/specs/analysis/plugins/icu/collation/IcuCollationCaseFirst.ts index 14e33cf9a9..f5d7fbb299 100644 --- a/specification/specs/analysis/plugins/icu/collation/IcuCollationCaseFirst.ts +++ b/specification/specs/analysis/plugins/icu/collation/IcuCollationCaseFirst.ts @@ -1,3 +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. + */ + enum IcuCollationCaseFirst { lower = 0, upper = 1 diff --git a/specification/specs/analysis/plugins/icu/collation/IcuCollationDecomposition.ts b/specification/specs/analysis/plugins/icu/collation/IcuCollationDecomposition.ts index 9357e16b5f..c2410a9a04 100644 --- a/specification/specs/analysis/plugins/icu/collation/IcuCollationDecomposition.ts +++ b/specification/specs/analysis/plugins/icu/collation/IcuCollationDecomposition.ts @@ -1,3 +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. + */ + enum IcuCollationDecomposition { no = 0, identical = 1 diff --git a/specification/specs/analysis/plugins/icu/collation/IcuCollationStrength.ts b/specification/specs/analysis/plugins/icu/collation/IcuCollationStrength.ts index d101485209..932e821a40 100644 --- a/specification/specs/analysis/plugins/icu/collation/IcuCollationStrength.ts +++ b/specification/specs/analysis/plugins/icu/collation/IcuCollationStrength.ts @@ -1,3 +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. + */ + enum IcuCollationStrength { primary = 0, secondary = 1, diff --git a/specification/specs/analysis/plugins/icu/normalization/IcuNormalizationMode.ts b/specification/specs/analysis/plugins/icu/normalization/IcuNormalizationMode.ts index 1efd1cdcff..a7cffd1d1d 100644 --- a/specification/specs/analysis/plugins/icu/normalization/IcuNormalizationMode.ts +++ b/specification/specs/analysis/plugins/icu/normalization/IcuNormalizationMode.ts @@ -1,3 +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. + */ + enum IcuNormalizationMode { decompose = 0, compose = 1 diff --git a/specification/specs/analysis/plugins/icu/normalization/IcuNormalizationType.ts b/specification/specs/analysis/plugins/icu/normalization/IcuNormalizationType.ts index 03946354a6..2babbc938b 100644 --- a/specification/specs/analysis/plugins/icu/normalization/IcuNormalizationType.ts +++ b/specification/specs/analysis/plugins/icu/normalization/IcuNormalizationType.ts @@ -1,3 +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. + */ + enum IcuNormalizationType { nfc = 0, nfkc = 1, diff --git a/specification/specs/analysis/plugins/icu/transform/IcuTransformDirection.ts b/specification/specs/analysis/plugins/icu/transform/IcuTransformDirection.ts index f85657954e..7ebe201e8d 100644 --- a/specification/specs/analysis/plugins/icu/transform/IcuTransformDirection.ts +++ b/specification/specs/analysis/plugins/icu/transform/IcuTransformDirection.ts @@ -1,3 +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. + */ + enum IcuTransformDirection { forward = 0, reverse = 1 diff --git a/specification/specs/analysis/plugins/kuromoji/KuromojiAnalyzer.ts b/specification/specs/analysis/plugins/kuromoji/KuromojiAnalyzer.ts index bd441868f3..4714e33b04 100644 --- a/specification/specs/analysis/plugins/kuromoji/KuromojiAnalyzer.ts +++ b/specification/specs/analysis/plugins/kuromoji/KuromojiAnalyzer.ts @@ -1,3 +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. + */ + class KuromojiAnalyzer extends AnalyzerBase { mode: KuromojiTokenizationMode user_dictionary: string diff --git a/specification/specs/analysis/plugins/kuromoji/KuromojiIterationMarkCharFilter.ts b/specification/specs/analysis/plugins/kuromoji/KuromojiIterationMarkCharFilter.ts index 8bf204b533..6696f42772 100644 --- a/specification/specs/analysis/plugins/kuromoji/KuromojiIterationMarkCharFilter.ts +++ b/specification/specs/analysis/plugins/kuromoji/KuromojiIterationMarkCharFilter.ts @@ -1,3 +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. + */ + class KuromojiIterationMarkCharFilter extends CharFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ normalize_kana: boolean diff --git a/specification/specs/analysis/plugins/kuromoji/KuromojiPartOfSpeechTokenFilter.ts b/specification/specs/analysis/plugins/kuromoji/KuromojiPartOfSpeechTokenFilter.ts index 7e94b9f1ba..80d494670b 100644 --- a/specification/specs/analysis/plugins/kuromoji/KuromojiPartOfSpeechTokenFilter.ts +++ b/specification/specs/analysis/plugins/kuromoji/KuromojiPartOfSpeechTokenFilter.ts @@ -1,3 +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. + */ + class KuromojiPartOfSpeechTokenFilter extends TokenFilterBase { stoptags: string[] } diff --git a/specification/specs/analysis/plugins/kuromoji/KuromojiReadingFormTokenFilter.ts b/specification/specs/analysis/plugins/kuromoji/KuromojiReadingFormTokenFilter.ts index 8905ddd939..2d1ca8a794 100644 --- a/specification/specs/analysis/plugins/kuromoji/KuromojiReadingFormTokenFilter.ts +++ b/specification/specs/analysis/plugins/kuromoji/KuromojiReadingFormTokenFilter.ts @@ -1,3 +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. + */ + class KuromojiReadingFormTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ use_romaji: boolean diff --git a/specification/specs/analysis/plugins/kuromoji/KuromojiStemmerTokenFilter.ts b/specification/specs/analysis/plugins/kuromoji/KuromojiStemmerTokenFilter.ts index c85d5f4ff7..730d0280fc 100644 --- a/specification/specs/analysis/plugins/kuromoji/KuromojiStemmerTokenFilter.ts +++ b/specification/specs/analysis/plugins/kuromoji/KuromojiStemmerTokenFilter.ts @@ -1,3 +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. + */ + class KuromojiStemmerTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringIntFormatter */ minimum_length: integer diff --git a/specification/specs/analysis/plugins/kuromoji/KuromojiTokenizationMode.ts b/specification/specs/analysis/plugins/kuromoji/KuromojiTokenizationMode.ts index c1101c9ed1..28cae8facf 100644 --- a/specification/specs/analysis/plugins/kuromoji/KuromojiTokenizationMode.ts +++ b/specification/specs/analysis/plugins/kuromoji/KuromojiTokenizationMode.ts @@ -1,3 +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. + */ + enum KuromojiTokenizationMode { normal = 0, search = 1, diff --git a/specification/specs/analysis/plugins/kuromoji/KuromojiTokenizer.ts b/specification/specs/analysis/plugins/kuromoji/KuromojiTokenizer.ts index 7449d71beb..33f75164bd 100644 --- a/specification/specs/analysis/plugins/kuromoji/KuromojiTokenizer.ts +++ b/specification/specs/analysis/plugins/kuromoji/KuromojiTokenizer.ts @@ -1,3 +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. + */ + class KuromojiTokenizer extends TokenizerBase { /** @prop_serializer NullableStringBooleanFormatter */ discard_punctuation: boolean diff --git a/specification/specs/analysis/plugins/phonetic/PhoneticEncoder.ts b/specification/specs/analysis/plugins/phonetic/PhoneticEncoder.ts index 1585e30bd6..b84ea961f2 100644 --- a/specification/specs/analysis/plugins/phonetic/PhoneticEncoder.ts +++ b/specification/specs/analysis/plugins/phonetic/PhoneticEncoder.ts @@ -1,3 +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. + */ + enum PhoneticEncoder { metaphone = 0, double_metaphone = 1, diff --git a/specification/specs/analysis/plugins/phonetic/PhoneticLanguage.ts b/specification/specs/analysis/plugins/phonetic/PhoneticLanguage.ts index b757a646e7..a72673e279 100644 --- a/specification/specs/analysis/plugins/phonetic/PhoneticLanguage.ts +++ b/specification/specs/analysis/plugins/phonetic/PhoneticLanguage.ts @@ -1,3 +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. + */ + enum PhoneticLanguage { any = 0, comomon = 1, diff --git a/specification/specs/analysis/plugins/phonetic/PhoneticNameType.ts b/specification/specs/analysis/plugins/phonetic/PhoneticNameType.ts index 61ea278000..628ca9b93d 100644 --- a/specification/specs/analysis/plugins/phonetic/PhoneticNameType.ts +++ b/specification/specs/analysis/plugins/phonetic/PhoneticNameType.ts @@ -1,3 +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. + */ + enum PhoneticNameType { generic = 0, ashkenazi = 1, diff --git a/specification/specs/analysis/plugins/phonetic/PhoneticRuleType.ts b/specification/specs/analysis/plugins/phonetic/PhoneticRuleType.ts index f35f26e099..7340062069 100644 --- a/specification/specs/analysis/plugins/phonetic/PhoneticRuleType.ts +++ b/specification/specs/analysis/plugins/phonetic/PhoneticRuleType.ts @@ -1,3 +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. + */ + enum PhoneticRuleType { approx = 0, exact = 1 diff --git a/specification/specs/analysis/plugins/phonetic/PhoneticTokenFilter.ts b/specification/specs/analysis/plugins/phonetic/PhoneticTokenFilter.ts index 473fc4f6d3..edb43b0651 100644 --- a/specification/specs/analysis/plugins/phonetic/PhoneticTokenFilter.ts +++ b/specification/specs/analysis/plugins/phonetic/PhoneticTokenFilter.ts @@ -1,3 +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. + */ + class PhoneticTokenFilter extends TokenFilterBase { encoder: PhoneticEncoder languageset: PhoneticLanguage[] diff --git a/specification/specs/analysis/token_filters/AsciiFoldingTokenFilter.ts b/specification/specs/analysis/token_filters/AsciiFoldingTokenFilter.ts index dbf2fc1c14..3e843767b8 100644 --- a/specification/specs/analysis/token_filters/AsciiFoldingTokenFilter.ts +++ b/specification/specs/analysis/token_filters/AsciiFoldingTokenFilter.ts @@ -1,3 +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. + */ + class AsciiFoldingTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ preserve_original: boolean diff --git a/specification/specs/analysis/token_filters/CommonGramsTokenFilter.ts b/specification/specs/analysis/token_filters/CommonGramsTokenFilter.ts index 65655742a3..90c57386d4 100644 --- a/specification/specs/analysis/token_filters/CommonGramsTokenFilter.ts +++ b/specification/specs/analysis/token_filters/CommonGramsTokenFilter.ts @@ -1,3 +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. + */ + class CommonGramsTokenFilter extends TokenFilterBase { /** @prop_serializer SingleOrEnumerableFormatter`1 */ common_words: string[] diff --git a/specification/specs/analysis/token_filters/ConditionTokenFilter.ts b/specification/specs/analysis/token_filters/ConditionTokenFilter.ts index 087a8e76f3..1a5175b32a 100644 --- a/specification/specs/analysis/token_filters/ConditionTokenFilter.ts +++ b/specification/specs/analysis/token_filters/ConditionTokenFilter.ts @@ -1,3 +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. + */ + class ConditionTokenFilter extends TokenFilterBase { filter: string[] script: Script diff --git a/specification/specs/analysis/token_filters/ElisionTokenFilter.ts b/specification/specs/analysis/token_filters/ElisionTokenFilter.ts index 301216fe48..00d2290a47 100644 --- a/specification/specs/analysis/token_filters/ElisionTokenFilter.ts +++ b/specification/specs/analysis/token_filters/ElisionTokenFilter.ts @@ -1,3 +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. + */ + class ElisionTokenFilter extends TokenFilterBase { articles: string[] /** @prop_serializer NullableStringBooleanFormatter */ diff --git a/specification/specs/analysis/token_filters/FingerprintTokenFilter.ts b/specification/specs/analysis/token_filters/FingerprintTokenFilter.ts index c67caed9e3..c8e5cb635f 100644 --- a/specification/specs/analysis/token_filters/FingerprintTokenFilter.ts +++ b/specification/specs/analysis/token_filters/FingerprintTokenFilter.ts @@ -1,3 +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. + */ + class FingerprintTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringIntFormatter */ max_output_size: integer diff --git a/specification/specs/analysis/token_filters/HunspellTokenFilter.ts b/specification/specs/analysis/token_filters/HunspellTokenFilter.ts index 711d5d9d7b..7a45d75963 100644 --- a/specification/specs/analysis/token_filters/HunspellTokenFilter.ts +++ b/specification/specs/analysis/token_filters/HunspellTokenFilter.ts @@ -1,3 +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. + */ + class HunspellTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ dedup: boolean diff --git a/specification/specs/analysis/token_filters/KStemTokenFilter.ts b/specification/specs/analysis/token_filters/KStemTokenFilter.ts index aac0ea05ba..b5d3dd9e9f 100644 --- a/specification/specs/analysis/token_filters/KStemTokenFilter.ts +++ b/specification/specs/analysis/token_filters/KStemTokenFilter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class KStemTokenFilter extends TokenFilterBase {} diff --git a/specification/specs/analysis/token_filters/KeepTypesMode.ts b/specification/specs/analysis/token_filters/KeepTypesMode.ts index bb1d71ab3b..f0f84ed50b 100644 --- a/specification/specs/analysis/token_filters/KeepTypesMode.ts +++ b/specification/specs/analysis/token_filters/KeepTypesMode.ts @@ -1,3 +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. + */ + enum KeepTypesMode { include = 0, exclude = 1 diff --git a/specification/specs/analysis/token_filters/KeepTypesTokenFilter.ts b/specification/specs/analysis/token_filters/KeepTypesTokenFilter.ts index 5ba25fa741..7f94e8ba21 100644 --- a/specification/specs/analysis/token_filters/KeepTypesTokenFilter.ts +++ b/specification/specs/analysis/token_filters/KeepTypesTokenFilter.ts @@ -1,3 +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. + */ + class KeepTypesTokenFilter extends TokenFilterBase { mode: KeepTypesMode types: string[] diff --git a/specification/specs/analysis/token_filters/KeepWordsTokenFilter.ts b/specification/specs/analysis/token_filters/KeepWordsTokenFilter.ts index a42c50e392..9793eafbeb 100644 --- a/specification/specs/analysis/token_filters/KeepWordsTokenFilter.ts +++ b/specification/specs/analysis/token_filters/KeepWordsTokenFilter.ts @@ -1,3 +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. + */ + class KeepWordsTokenFilter extends TokenFilterBase { keep_words: string[] /** @prop_serializer NullableStringBooleanFormatter */ diff --git a/specification/specs/analysis/token_filters/KeywordMarkerTokenFilter.ts b/specification/specs/analysis/token_filters/KeywordMarkerTokenFilter.ts index e74df809f9..8e57f4dd65 100644 --- a/specification/specs/analysis/token_filters/KeywordMarkerTokenFilter.ts +++ b/specification/specs/analysis/token_filters/KeywordMarkerTokenFilter.ts @@ -1,3 +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. + */ + class KeywordMarkerTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ ignore_case: boolean diff --git a/specification/specs/analysis/token_filters/LengthTokenFilter.ts b/specification/specs/analysis/token_filters/LengthTokenFilter.ts index 9707b3d191..3d81bfc1b9 100644 --- a/specification/specs/analysis/token_filters/LengthTokenFilter.ts +++ b/specification/specs/analysis/token_filters/LengthTokenFilter.ts @@ -1,3 +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. + */ + class LengthTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringIntFormatter */ max: integer diff --git a/specification/specs/analysis/token_filters/LimitTokenCountTokenFilter.ts b/specification/specs/analysis/token_filters/LimitTokenCountTokenFilter.ts index 62f3584e70..1521893288 100644 --- a/specification/specs/analysis/token_filters/LimitTokenCountTokenFilter.ts +++ b/specification/specs/analysis/token_filters/LimitTokenCountTokenFilter.ts @@ -1,3 +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. + */ + class LimitTokenCountTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ consume_all_tokens: boolean diff --git a/specification/specs/analysis/token_filters/LowercaseTokenFilter.ts b/specification/specs/analysis/token_filters/LowercaseTokenFilter.ts index 3b53b07b2e..e8662bb379 100644 --- a/specification/specs/analysis/token_filters/LowercaseTokenFilter.ts +++ b/specification/specs/analysis/token_filters/LowercaseTokenFilter.ts @@ -1,3 +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. + */ + class LowercaseTokenFilter extends TokenFilterBase { language: string } diff --git a/specification/specs/analysis/token_filters/MultiplexerTokenFilter.ts b/specification/specs/analysis/token_filters/MultiplexerTokenFilter.ts index 766f2e7665..f4a4d2874f 100644 --- a/specification/specs/analysis/token_filters/MultiplexerTokenFilter.ts +++ b/specification/specs/analysis/token_filters/MultiplexerTokenFilter.ts @@ -1,3 +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. + */ + class MultiplexerTokenFilter extends TokenFilterBase { filters: string[] /** @prop_serializer NullableStringBooleanFormatter */ diff --git a/specification/specs/analysis/token_filters/NGramTokenFilter.ts b/specification/specs/analysis/token_filters/NGramTokenFilter.ts index 0925ac6ff6..ece92219ba 100644 --- a/specification/specs/analysis/token_filters/NGramTokenFilter.ts +++ b/specification/specs/analysis/token_filters/NGramTokenFilter.ts @@ -1,3 +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. + */ + class NGramTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringIntFormatter */ max_gram: integer diff --git a/specification/specs/analysis/token_filters/NoriPartOfSpeechTokenFilter.ts b/specification/specs/analysis/token_filters/NoriPartOfSpeechTokenFilter.ts index 77db1779c4..2636533522 100644 --- a/specification/specs/analysis/token_filters/NoriPartOfSpeechTokenFilter.ts +++ b/specification/specs/analysis/token_filters/NoriPartOfSpeechTokenFilter.ts @@ -1,3 +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. + */ + class NoriPartOfSpeechTokenFilter extends TokenFilterBase { stoptags: string[] } diff --git a/specification/specs/analysis/token_filters/PatternCaptureTokenFilter.ts b/specification/specs/analysis/token_filters/PatternCaptureTokenFilter.ts index 7dec28c9eb..591c8eccc0 100644 --- a/specification/specs/analysis/token_filters/PatternCaptureTokenFilter.ts +++ b/specification/specs/analysis/token_filters/PatternCaptureTokenFilter.ts @@ -1,3 +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. + */ + class PatternCaptureTokenFilter extends TokenFilterBase { patterns: string[] /** @prop_serializer NullableStringBooleanFormatter */ diff --git a/specification/specs/analysis/token_filters/PatternReplaceTokenFilter.ts b/specification/specs/analysis/token_filters/PatternReplaceTokenFilter.ts index c5b775432e..6b92662dd0 100644 --- a/specification/specs/analysis/token_filters/PatternReplaceTokenFilter.ts +++ b/specification/specs/analysis/token_filters/PatternReplaceTokenFilter.ts @@ -1,3 +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. + */ + class PatternReplaceTokenFilter extends TokenFilterBase { flags: string pattern: string diff --git a/specification/specs/analysis/token_filters/PorterStemTokenFilter.ts b/specification/specs/analysis/token_filters/PorterStemTokenFilter.ts index 8c1a18a955..a78cd6d267 100644 --- a/specification/specs/analysis/token_filters/PorterStemTokenFilter.ts +++ b/specification/specs/analysis/token_filters/PorterStemTokenFilter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PorterStemTokenFilter extends TokenFilterBase {} diff --git a/specification/specs/analysis/token_filters/PredicateTokenFilter.ts b/specification/specs/analysis/token_filters/PredicateTokenFilter.ts index c2bdd02f69..ed1a5dc718 100644 --- a/specification/specs/analysis/token_filters/PredicateTokenFilter.ts +++ b/specification/specs/analysis/token_filters/PredicateTokenFilter.ts @@ -1,3 +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. + */ + class PredicateTokenFilter extends TokenFilterBase { script: Script } diff --git a/specification/specs/analysis/token_filters/RemoveDuplicatesTokenFilter.ts b/specification/specs/analysis/token_filters/RemoveDuplicatesTokenFilter.ts index 5ab875ccdb..bdf175cabc 100644 --- a/specification/specs/analysis/token_filters/RemoveDuplicatesTokenFilter.ts +++ b/specification/specs/analysis/token_filters/RemoveDuplicatesTokenFilter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class RemoveDuplicatesTokenFilter extends TokenFilterBase {} diff --git a/specification/specs/analysis/token_filters/ReverseTokenFilter.ts b/specification/specs/analysis/token_filters/ReverseTokenFilter.ts index c0d9139b04..8248757a14 100644 --- a/specification/specs/analysis/token_filters/ReverseTokenFilter.ts +++ b/specification/specs/analysis/token_filters/ReverseTokenFilter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ReverseTokenFilter extends TokenFilterBase {} diff --git a/specification/specs/analysis/token_filters/SnowballTokenFilter.ts b/specification/specs/analysis/token_filters/SnowballTokenFilter.ts index 61b70c4290..da94bfef49 100644 --- a/specification/specs/analysis/token_filters/SnowballTokenFilter.ts +++ b/specification/specs/analysis/token_filters/SnowballTokenFilter.ts @@ -1,3 +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. + */ + class SnowballTokenFilter extends TokenFilterBase { language: SnowballLanguage } diff --git a/specification/specs/analysis/token_filters/StemmerOverrideTokenFilter.ts b/specification/specs/analysis/token_filters/StemmerOverrideTokenFilter.ts index 49b4e52876..d55c8e17fc 100644 --- a/specification/specs/analysis/token_filters/StemmerOverrideTokenFilter.ts +++ b/specification/specs/analysis/token_filters/StemmerOverrideTokenFilter.ts @@ -1,3 +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. + */ + class StemmerOverrideTokenFilter extends TokenFilterBase { rules: string[] rules_path: string diff --git a/specification/specs/analysis/token_filters/StemmerTokenFilter.ts b/specification/specs/analysis/token_filters/StemmerTokenFilter.ts index 482652abc7..885c2e61d4 100644 --- a/specification/specs/analysis/token_filters/StemmerTokenFilter.ts +++ b/specification/specs/analysis/token_filters/StemmerTokenFilter.ts @@ -1,3 +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. + */ + class StemmerTokenFilter extends TokenFilterBase { language: string } diff --git a/specification/specs/analysis/token_filters/TokenFilterBase.ts b/specification/specs/analysis/token_filters/TokenFilterBase.ts index 6ac204d793..c63ab2cf75 100644 --- a/specification/specs/analysis/token_filters/TokenFilterBase.ts +++ b/specification/specs/analysis/token_filters/TokenFilterBase.ts @@ -1,3 +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. + */ + class TokenFilterBase { type: string version?: string diff --git a/specification/specs/analysis/token_filters/TrimTokenFilter.ts b/specification/specs/analysis/token_filters/TrimTokenFilter.ts index 3f9597239d..8b5e5084fd 100644 --- a/specification/specs/analysis/token_filters/TrimTokenFilter.ts +++ b/specification/specs/analysis/token_filters/TrimTokenFilter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class TrimTokenFilter extends TokenFilterBase {} diff --git a/specification/specs/analysis/token_filters/TruncateTokenFilter.ts b/specification/specs/analysis/token_filters/TruncateTokenFilter.ts index 5ee0c9749f..fa711cbc4c 100644 --- a/specification/specs/analysis/token_filters/TruncateTokenFilter.ts +++ b/specification/specs/analysis/token_filters/TruncateTokenFilter.ts @@ -1,3 +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. + */ + class TruncateTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringIntFormatter */ length: integer diff --git a/specification/specs/analysis/token_filters/UniqueTokenFilter.ts b/specification/specs/analysis/token_filters/UniqueTokenFilter.ts index 109d09aa91..3aa36b49f4 100644 --- a/specification/specs/analysis/token_filters/UniqueTokenFilter.ts +++ b/specification/specs/analysis/token_filters/UniqueTokenFilter.ts @@ -1,3 +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. + */ + class UniqueTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ only_on_same_position: boolean diff --git a/specification/specs/analysis/token_filters/UppercaseTokenFilter.ts b/specification/specs/analysis/token_filters/UppercaseTokenFilter.ts index b29ea56b88..8244e6600a 100644 --- a/specification/specs/analysis/token_filters/UppercaseTokenFilter.ts +++ b/specification/specs/analysis/token_filters/UppercaseTokenFilter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class UppercaseTokenFilter extends TokenFilterBase {} diff --git a/specification/specs/analysis/token_filters/compound_word/CompoundWordTokenFilterBase.ts b/specification/specs/analysis/token_filters/compound_word/CompoundWordTokenFilterBase.ts index d0e792efce..abcd9d1f6b 100644 --- a/specification/specs/analysis/token_filters/compound_word/CompoundWordTokenFilterBase.ts +++ b/specification/specs/analysis/token_filters/compound_word/CompoundWordTokenFilterBase.ts @@ -1,3 +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. + */ + class CompoundWordTokenFilterBase extends TokenFilterBase { hyphenation_patterns_path: string max_subword_size: integer diff --git a/specification/specs/analysis/token_filters/compound_word/DictionaryDecompounderTokenFilter.ts b/specification/specs/analysis/token_filters/compound_word/DictionaryDecompounderTokenFilter.ts index 64f3823976..91558eefa5 100644 --- a/specification/specs/analysis/token_filters/compound_word/DictionaryDecompounderTokenFilter.ts +++ b/specification/specs/analysis/token_filters/compound_word/DictionaryDecompounderTokenFilter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DictionaryDecompounderTokenFilter extends CompoundWordTokenFilterBase {} diff --git a/specification/specs/analysis/token_filters/compound_word/HyphenationDecompounderTokenFilter.ts b/specification/specs/analysis/token_filters/compound_word/HyphenationDecompounderTokenFilter.ts index 0a3879ce1b..96b82bb3d1 100644 --- a/specification/specs/analysis/token_filters/compound_word/HyphenationDecompounderTokenFilter.ts +++ b/specification/specs/analysis/token_filters/compound_word/HyphenationDecompounderTokenFilter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class HyphenationDecompounderTokenFilter extends CompoundWordTokenFilterBase {} diff --git a/specification/specs/analysis/token_filters/delimited_payload/DelimitedPayloadEncoding.ts b/specification/specs/analysis/token_filters/delimited_payload/DelimitedPayloadEncoding.ts index ff1dc82b5c..2446c47d32 100644 --- a/specification/specs/analysis/token_filters/delimited_payload/DelimitedPayloadEncoding.ts +++ b/specification/specs/analysis/token_filters/delimited_payload/DelimitedPayloadEncoding.ts @@ -1,3 +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. + */ + enum DelimitedPayloadEncoding { int = 0, float = 1, diff --git a/specification/specs/analysis/token_filters/delimited_payload/DelimitedPayloadTokenFilter.ts b/specification/specs/analysis/token_filters/delimited_payload/DelimitedPayloadTokenFilter.ts index f9e89567b7..a5ad5ecc2a 100644 --- a/specification/specs/analysis/token_filters/delimited_payload/DelimitedPayloadTokenFilter.ts +++ b/specification/specs/analysis/token_filters/delimited_payload/DelimitedPayloadTokenFilter.ts @@ -1,3 +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. + */ + class DelimitedPayloadTokenFilter extends TokenFilterBase { delimiter: string encoding: DelimitedPayloadEncoding diff --git a/specification/specs/analysis/token_filters/edge_n_gram/EdgeNGramSide.ts b/specification/specs/analysis/token_filters/edge_n_gram/EdgeNGramSide.ts index 77601c3062..1d290cf74a 100644 --- a/specification/specs/analysis/token_filters/edge_n_gram/EdgeNGramSide.ts +++ b/specification/specs/analysis/token_filters/edge_n_gram/EdgeNGramSide.ts @@ -1,3 +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. + */ + enum EdgeNGramSide { front = 0, back = 1 diff --git a/specification/specs/analysis/token_filters/edge_n_gram/EdgeNGramTokenFilter.ts b/specification/specs/analysis/token_filters/edge_n_gram/EdgeNGramTokenFilter.ts index a67943391d..db2f5aa6aa 100644 --- a/specification/specs/analysis/token_filters/edge_n_gram/EdgeNGramTokenFilter.ts +++ b/specification/specs/analysis/token_filters/edge_n_gram/EdgeNGramTokenFilter.ts @@ -1,3 +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. + */ + class EdgeNGramTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringIntFormatter */ max_gram: integer diff --git a/specification/specs/analysis/token_filters/shingle/ShingleTokenFilter.ts b/specification/specs/analysis/token_filters/shingle/ShingleTokenFilter.ts index 61db69a44b..dd16ab7273 100644 --- a/specification/specs/analysis/token_filters/shingle/ShingleTokenFilter.ts +++ b/specification/specs/analysis/token_filters/shingle/ShingleTokenFilter.ts @@ -1,3 +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. + */ + class ShingleTokenFilter extends TokenFilterBase { filler_token: string /** @prop_serializer NullableStringIntFormatter */ diff --git a/specification/specs/analysis/token_filters/stop/StopTokenFilter.ts b/specification/specs/analysis/token_filters/stop/StopTokenFilter.ts index a18f785074..4f1a539c25 100644 --- a/specification/specs/analysis/token_filters/stop/StopTokenFilter.ts +++ b/specification/specs/analysis/token_filters/stop/StopTokenFilter.ts @@ -1,3 +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. + */ + class StopTokenFilter extends TokenFilterBase { ignore_case?: boolean remove_trailing?: boolean diff --git a/specification/specs/analysis/token_filters/synonym/SynonymFormat.ts b/specification/specs/analysis/token_filters/synonym/SynonymFormat.ts index cfe74ce7d0..8023dc0c0d 100644 --- a/specification/specs/analysis/token_filters/synonym/SynonymFormat.ts +++ b/specification/specs/analysis/token_filters/synonym/SynonymFormat.ts @@ -1,3 +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. + */ + enum SynonymFormat { solr = 0, wordnet = 1 diff --git a/specification/specs/analysis/token_filters/synonym/SynonymGraphTokenFilter.ts b/specification/specs/analysis/token_filters/synonym/SynonymGraphTokenFilter.ts index bfa7ad35f6..d88fcce255 100644 --- a/specification/specs/analysis/token_filters/synonym/SynonymGraphTokenFilter.ts +++ b/specification/specs/analysis/token_filters/synonym/SynonymGraphTokenFilter.ts @@ -1,3 +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. + */ + class SynonymGraphTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ expand: boolean diff --git a/specification/specs/analysis/token_filters/synonym/SynonymTokenFilter.ts b/specification/specs/analysis/token_filters/synonym/SynonymTokenFilter.ts index 9e1b96b21c..1832841af4 100644 --- a/specification/specs/analysis/token_filters/synonym/SynonymTokenFilter.ts +++ b/specification/specs/analysis/token_filters/synonym/SynonymTokenFilter.ts @@ -1,3 +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. + */ + class SynonymTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ expand: boolean diff --git a/specification/specs/analysis/token_filters/word_delimiter/WordDelimiterTokenFilter.ts b/specification/specs/analysis/token_filters/word_delimiter/WordDelimiterTokenFilter.ts index 28f773eb0d..ce95da4567 100644 --- a/specification/specs/analysis/token_filters/word_delimiter/WordDelimiterTokenFilter.ts +++ b/specification/specs/analysis/token_filters/word_delimiter/WordDelimiterTokenFilter.ts @@ -1,3 +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. + */ + class WordDelimiterTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ catenate_all: boolean diff --git a/specification/specs/analysis/token_filters/word_delimiter_graph/WordDelimiterGraphTokenFilter.ts b/specification/specs/analysis/token_filters/word_delimiter_graph/WordDelimiterGraphTokenFilter.ts index 2067b7266c..6af10813dc 100644 --- a/specification/specs/analysis/token_filters/word_delimiter_graph/WordDelimiterGraphTokenFilter.ts +++ b/specification/specs/analysis/token_filters/word_delimiter_graph/WordDelimiterGraphTokenFilter.ts @@ -1,3 +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. + */ + class WordDelimiterGraphTokenFilter extends TokenFilterBase { /** @prop_serializer NullableStringBooleanFormatter */ adjust_offsets: boolean diff --git a/specification/specs/analysis/tokenizers/CharGroupTokenizer.ts b/specification/specs/analysis/tokenizers/CharGroupTokenizer.ts index f963c6d557..689dac57ab 100644 --- a/specification/specs/analysis/tokenizers/CharGroupTokenizer.ts +++ b/specification/specs/analysis/tokenizers/CharGroupTokenizer.ts @@ -1,3 +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. + */ + class CharGroupTokenizer extends TokenizerBase { tokenize_on_chars: string[] } diff --git a/specification/specs/analysis/tokenizers/KeywordTokenizer.ts b/specification/specs/analysis/tokenizers/KeywordTokenizer.ts index fe8ea12abc..6ed16aa819 100644 --- a/specification/specs/analysis/tokenizers/KeywordTokenizer.ts +++ b/specification/specs/analysis/tokenizers/KeywordTokenizer.ts @@ -1,3 +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. + */ + class KeywordTokenizer extends TokenizerBase { /** @prop_serializer NullableStringIntFormatter */ buffer_size: integer diff --git a/specification/specs/analysis/tokenizers/LetterTokenizer.ts b/specification/specs/analysis/tokenizers/LetterTokenizer.ts index 7f8932db22..cc6a48457d 100644 --- a/specification/specs/analysis/tokenizers/LetterTokenizer.ts +++ b/specification/specs/analysis/tokenizers/LetterTokenizer.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class LetterTokenizer extends TokenizerBase {} diff --git a/specification/specs/analysis/tokenizers/LowercaseTokenizer.ts b/specification/specs/analysis/tokenizers/LowercaseTokenizer.ts index 62a074ff10..aa07296179 100644 --- a/specification/specs/analysis/tokenizers/LowercaseTokenizer.ts +++ b/specification/specs/analysis/tokenizers/LowercaseTokenizer.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class LowercaseTokenizer extends TokenizerBase {} diff --git a/specification/specs/analysis/tokenizers/NoriDecompoundMode.ts b/specification/specs/analysis/tokenizers/NoriDecompoundMode.ts index 3a5d0474cb..5b4d5401c6 100644 --- a/specification/specs/analysis/tokenizers/NoriDecompoundMode.ts +++ b/specification/specs/analysis/tokenizers/NoriDecompoundMode.ts @@ -1,3 +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. + */ + enum NoriDecompoundMode { discard = 0, none = 1, diff --git a/specification/specs/analysis/tokenizers/NoriTokenizer.ts b/specification/specs/analysis/tokenizers/NoriTokenizer.ts index d67f1be446..577cdf53cb 100644 --- a/specification/specs/analysis/tokenizers/NoriTokenizer.ts +++ b/specification/specs/analysis/tokenizers/NoriTokenizer.ts @@ -1,3 +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. + */ + class NoriTokenizer extends TokenizerBase { decompound_mode: NoriDecompoundMode /** @prop_serializer NullableStringBooleanFormatter */ diff --git a/specification/specs/analysis/tokenizers/PathHierarchyTokenizer.ts b/specification/specs/analysis/tokenizers/PathHierarchyTokenizer.ts index 9bd708d300..668a71ab4b 100644 --- a/specification/specs/analysis/tokenizers/PathHierarchyTokenizer.ts +++ b/specification/specs/analysis/tokenizers/PathHierarchyTokenizer.ts @@ -1,3 +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. + */ + class PathHierarchyTokenizer extends TokenizerBase { /** @prop_serializer NullableStringIntFormatter */ buffer_size: integer diff --git a/specification/specs/analysis/tokenizers/PatternTokenizer.ts b/specification/specs/analysis/tokenizers/PatternTokenizer.ts index f5798e3819..8bc85bc67e 100644 --- a/specification/specs/analysis/tokenizers/PatternTokenizer.ts +++ b/specification/specs/analysis/tokenizers/PatternTokenizer.ts @@ -1,3 +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. + */ + class PatternTokenizer extends TokenizerBase { flags: string /** @prop_serializer NullableStringIntFormatter */ diff --git a/specification/specs/analysis/tokenizers/StandardTokenizer.ts b/specification/specs/analysis/tokenizers/StandardTokenizer.ts index 16771737e2..bd26beb413 100644 --- a/specification/specs/analysis/tokenizers/StandardTokenizer.ts +++ b/specification/specs/analysis/tokenizers/StandardTokenizer.ts @@ -1,3 +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. + */ + class StandardTokenizer extends TokenizerBase { /** @prop_serializer NullableStringIntFormatter */ max_token_length: integer diff --git a/specification/specs/analysis/tokenizers/TokenizerBase.ts b/specification/specs/analysis/tokenizers/TokenizerBase.ts index 4e9e74d291..240133ad9e 100644 --- a/specification/specs/analysis/tokenizers/TokenizerBase.ts +++ b/specification/specs/analysis/tokenizers/TokenizerBase.ts @@ -1,3 +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. + */ + class TokenizerBase { type: string version?: string diff --git a/specification/specs/analysis/tokenizers/UaxEmailUrlTokenizer.ts b/specification/specs/analysis/tokenizers/UaxEmailUrlTokenizer.ts index 2126c3cfe6..43326ff816 100644 --- a/specification/specs/analysis/tokenizers/UaxEmailUrlTokenizer.ts +++ b/specification/specs/analysis/tokenizers/UaxEmailUrlTokenizer.ts @@ -1,3 +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. + */ + class UaxEmailUrlTokenizer extends TokenizerBase { /** @prop_serializer NullableStringIntFormatter */ max_token_length: integer diff --git a/specification/specs/analysis/tokenizers/WhitespaceTokenizer.ts b/specification/specs/analysis/tokenizers/WhitespaceTokenizer.ts index b7473bee20..bbbc014277 100644 --- a/specification/specs/analysis/tokenizers/WhitespaceTokenizer.ts +++ b/specification/specs/analysis/tokenizers/WhitespaceTokenizer.ts @@ -1,3 +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. + */ + class WhitespaceTokenizer extends TokenizerBase { /** @prop_serializer NullableStringIntFormatter */ max_token_length: integer diff --git a/specification/specs/analysis/tokenizers/n_gram/EdgeNGramTokenizer.ts b/specification/specs/analysis/tokenizers/n_gram/EdgeNGramTokenizer.ts index a8c380221c..3e43491294 100644 --- a/specification/specs/analysis/tokenizers/n_gram/EdgeNGramTokenizer.ts +++ b/specification/specs/analysis/tokenizers/n_gram/EdgeNGramTokenizer.ts @@ -1,3 +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. + */ + class EdgeNGramTokenizer extends TokenizerBase { custom_token_chars: string /** @prop_serializer NullableStringIntFormatter */ diff --git a/specification/specs/analysis/tokenizers/n_gram/NGramTokenizer.ts b/specification/specs/analysis/tokenizers/n_gram/NGramTokenizer.ts index 0edede1ec6..7be110aca4 100644 --- a/specification/specs/analysis/tokenizers/n_gram/NGramTokenizer.ts +++ b/specification/specs/analysis/tokenizers/n_gram/NGramTokenizer.ts @@ -1,3 +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. + */ + class NGramTokenizer extends TokenizerBase { custom_token_chars: string /** @prop_serializer NullableStringIntFormatter */ diff --git a/specification/specs/analysis/tokenizers/n_gram/TokenChar.ts b/specification/specs/analysis/tokenizers/n_gram/TokenChar.ts index 62c55c7efe..493a6988b6 100644 --- a/specification/specs/analysis/tokenizers/n_gram/TokenChar.ts +++ b/specification/specs/analysis/tokenizers/n_gram/TokenChar.ts @@ -1,3 +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. + */ + enum TokenChar { letter = 0, digit = 1, diff --git a/specification/specs/behaviors.ts b/specification/specs/behaviors.ts index bc7f0ce072..a666f32cd4 100644 --- a/specification/specs/behaviors.ts +++ b/specification/specs/behaviors.ts @@ -1,3 +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. + */ + /* * This file hosts `behaviors`. We use this interfaces that are marked with a `@behavior` JS Doc annotation * to signal complicated mappings to the compiler -> canonical json -> client generators. diff --git a/specification/specs/cat/CatBase.ts b/specification/specs/cat/CatBase.ts index 65b83864c6..e8311531ea 100644 --- a/specification/specs/cat/CatBase.ts +++ b/specification/specs/cat/CatBase.ts @@ -1,3 +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. + */ + class CatRequestBase extends RequestBase { format?: string h?: string[] diff --git a/specification/specs/cat/cat_aliases/CatAliasesRecord.ts b/specification/specs/cat/cat_aliases/CatAliasesRecord.ts index 9edf391004..4b0b960b84 100644 --- a/specification/specs/cat/cat_aliases/CatAliasesRecord.ts +++ b/specification/specs/cat/cat_aliases/CatAliasesRecord.ts @@ -1,3 +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. + */ + class CatAliasesRecord { alias: string filter: string diff --git a/specification/specs/cat/cat_aliases/CatAliasesRequest.ts b/specification/specs/cat/cat_aliases/CatAliasesRequest.ts index 002c78c589..9227de7692 100644 --- a/specification/specs/cat/cat_aliases/CatAliasesRequest.ts +++ b/specification/specs/cat/cat_aliases/CatAliasesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.aliases') class CatAliasesRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_aliases/CatAliasesResponse.ts b/specification/specs/cat/cat_aliases/CatAliasesResponse.ts index 22e1e6917b..1acd55c5cb 100644 --- a/specification/specs/cat/cat_aliases/CatAliasesResponse.ts +++ b/specification/specs/cat/cat_aliases/CatAliasesResponse.ts @@ -1,3 +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. + */ + class CatAliasesResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_allocation/CatAllocationRecord.ts b/specification/specs/cat/cat_allocation/CatAllocationRecord.ts index ea4098318b..f9d07f87d2 100644 --- a/specification/specs/cat/cat_allocation/CatAllocationRecord.ts +++ b/specification/specs/cat/cat_allocation/CatAllocationRecord.ts @@ -1,3 +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. + */ + class CatAllocationRecord { 'disk.avail': string 'disk.indices': string diff --git a/specification/specs/cat/cat_allocation/CatAllocationRequest.ts b/specification/specs/cat/cat_allocation/CatAllocationRequest.ts index 6bb73838e5..1ed21aab5f 100644 --- a/specification/specs/cat/cat_allocation/CatAllocationRequest.ts +++ b/specification/specs/cat/cat_allocation/CatAllocationRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.allocation') class CatAllocationRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_allocation/CatAllocationResponse.ts b/specification/specs/cat/cat_allocation/CatAllocationResponse.ts index 20405d087c..33d8ef8b2c 100644 --- a/specification/specs/cat/cat_allocation/CatAllocationResponse.ts +++ b/specification/specs/cat/cat_allocation/CatAllocationResponse.ts @@ -1,3 +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. + */ + class CatAllocationResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_count/CatCountRecord.ts b/specification/specs/cat/cat_count/CatCountRecord.ts index 3db7dc3194..e642b7535d 100644 --- a/specification/specs/cat/cat_count/CatCountRecord.ts +++ b/specification/specs/cat/cat_count/CatCountRecord.ts @@ -1,3 +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. + */ + class CatCountRecord { count: string epoch: string diff --git a/specification/specs/cat/cat_count/CatCountRequest.ts b/specification/specs/cat/cat_count/CatCountRequest.ts index e7330f0857..cbc00c4a2c 100644 --- a/specification/specs/cat/cat_count/CatCountRequest.ts +++ b/specification/specs/cat/cat_count/CatCountRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.count') class CatCountRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_count/CatCountResponse.ts b/specification/specs/cat/cat_count/CatCountResponse.ts index 851dffcfdb..c31524a362 100644 --- a/specification/specs/cat/cat_count/CatCountResponse.ts +++ b/specification/specs/cat/cat_count/CatCountResponse.ts @@ -1,3 +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. + */ + class CatCountResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsRecord.ts b/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsRecord.ts index f539937569..c601950b4b 100644 --- a/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsRecord.ts +++ b/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsRecord.ts @@ -1,3 +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. + */ + class CatDataFrameAnalyticsRecord { assignment_explanation: string create_time: string diff --git a/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsRequest.ts b/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsRequest.ts index 8579789204..4cd0ede8e2 100644 --- a/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsRequest.ts +++ b/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.ml_data_frame_analytics') class CatDataFrameAnalyticsRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsResponse.ts b/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsResponse.ts index 2af261bded..0e19fea2cc 100644 --- a/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsResponse.ts +++ b/specification/specs/cat/cat_data_frame_analytics/CatDataFrameAnalyticsResponse.ts @@ -1,3 +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. + */ + class CatDataFrameAnalyticsResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_datafeeds/CatDatafeedsRecord.ts b/specification/specs/cat/cat_datafeeds/CatDatafeedsRecord.ts index 8a2274a1cd..117d414e67 100644 --- a/specification/specs/cat/cat_datafeeds/CatDatafeedsRecord.ts +++ b/specification/specs/cat/cat_datafeeds/CatDatafeedsRecord.ts @@ -1,3 +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. + */ + class CatDatafeedsRecord { assignment_explanation: string 'buckets.count': string diff --git a/specification/specs/cat/cat_datafeeds/CatDatafeedsRequest.ts b/specification/specs/cat/cat_datafeeds/CatDatafeedsRequest.ts index 1321de410c..29d4d2ec46 100644 --- a/specification/specs/cat/cat_datafeeds/CatDatafeedsRequest.ts +++ b/specification/specs/cat/cat_datafeeds/CatDatafeedsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.ml_datafeeds') class CatDatafeedsRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_datafeeds/CatDatafeedsResponse.ts b/specification/specs/cat/cat_datafeeds/CatDatafeedsResponse.ts index 374ae7ee9b..490dffd70d 100644 --- a/specification/specs/cat/cat_datafeeds/CatDatafeedsResponse.ts +++ b/specification/specs/cat/cat_datafeeds/CatDatafeedsResponse.ts @@ -1,3 +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. + */ + class CatDatafeedsResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_fielddata/CatFielddataRecord.ts b/specification/specs/cat/cat_fielddata/CatFielddataRecord.ts index 8ceede9437..cc20b7358b 100644 --- a/specification/specs/cat/cat_fielddata/CatFielddataRecord.ts +++ b/specification/specs/cat/cat_fielddata/CatFielddataRecord.ts @@ -1,3 +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. + */ + @class_serializer('CatFielddataRecordFormatter') class CatFielddataRecord { field: string diff --git a/specification/specs/cat/cat_fielddata/CatFielddataRequest.ts b/specification/specs/cat/cat_fielddata/CatFielddataRequest.ts index 90d589a8b4..752529e3aa 100644 --- a/specification/specs/cat/cat_fielddata/CatFielddataRequest.ts +++ b/specification/specs/cat/cat_fielddata/CatFielddataRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.fielddata') class CatFielddataRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_fielddata/CatFielddataResponse.ts b/specification/specs/cat/cat_fielddata/CatFielddataResponse.ts index 49ed5ff6f3..1ef76b73c4 100644 --- a/specification/specs/cat/cat_fielddata/CatFielddataResponse.ts +++ b/specification/specs/cat/cat_fielddata/CatFielddataResponse.ts @@ -1,3 +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. + */ + class CatFielddataResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_health/CatHealthRecord.ts b/specification/specs/cat/cat_health/CatHealthRecord.ts index 34ff68c5c3..f4fc319741 100644 --- a/specification/specs/cat/cat_health/CatHealthRecord.ts +++ b/specification/specs/cat/cat_health/CatHealthRecord.ts @@ -1,3 +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. + */ + class CatHealthRecord { cluster: string epoch: string diff --git a/specification/specs/cat/cat_health/CatHealthRequest.ts b/specification/specs/cat/cat_health/CatHealthRequest.ts index 3439b7a44c..64a28e09d8 100644 --- a/specification/specs/cat/cat_health/CatHealthRequest.ts +++ b/specification/specs/cat/cat_health/CatHealthRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.health') class CatHealthRequest extends CatRequestBase { query_parameters?: { diff --git a/specification/specs/cat/cat_health/CatHealthResponse.ts b/specification/specs/cat/cat_health/CatHealthResponse.ts index 6d16778aaa..721c6c3fb3 100644 --- a/specification/specs/cat/cat_health/CatHealthResponse.ts +++ b/specification/specs/cat/cat_health/CatHealthResponse.ts @@ -1,3 +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. + */ + class CatHealthResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_help/CatHelpRecord.ts b/specification/specs/cat/cat_help/CatHelpRecord.ts index f4a7e47104..4a4f156008 100644 --- a/specification/specs/cat/cat_help/CatHelpRecord.ts +++ b/specification/specs/cat/cat_help/CatHelpRecord.ts @@ -1,3 +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. + */ + class CatHelpRecord { endpoint: string } diff --git a/specification/specs/cat/cat_help/CatHelpRequest.ts b/specification/specs/cat/cat_help/CatHelpRequest.ts index 39c0402fcb..9ebcd187fc 100644 --- a/specification/specs/cat/cat_help/CatHelpRequest.ts +++ b/specification/specs/cat/cat_help/CatHelpRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.help') class CatHelpRequest extends CatRequestBase { query_parameters?: {} diff --git a/specification/specs/cat/cat_help/CatHelpResponse.ts b/specification/specs/cat/cat_help/CatHelpResponse.ts index 7ae08596c9..46d4c3f143 100644 --- a/specification/specs/cat/cat_help/CatHelpResponse.ts +++ b/specification/specs/cat/cat_help/CatHelpResponse.ts @@ -1,3 +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. + */ + class CatHelpResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_indices/CatIndicesRecord.ts b/specification/specs/cat/cat_indices/CatIndicesRecord.ts index 8cb609d223..c0e6164a0f 100644 --- a/specification/specs/cat/cat_indices/CatIndicesRecord.ts +++ b/specification/specs/cat/cat_indices/CatIndicesRecord.ts @@ -1,3 +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. + */ + class CatIndicesRecord { 'docs.count': string 'docs.deleted': string diff --git a/specification/specs/cat/cat_indices/CatIndicesRequest.ts b/specification/specs/cat/cat_indices/CatIndicesRequest.ts index 483583b9ad..aecd328649 100644 --- a/specification/specs/cat/cat_indices/CatIndicesRequest.ts +++ b/specification/specs/cat/cat_indices/CatIndicesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.indices') class CatIndicesRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_indices/CatIndicesResponse.ts b/specification/specs/cat/cat_indices/CatIndicesResponse.ts index bab0728895..f39bef910c 100644 --- a/specification/specs/cat/cat_indices/CatIndicesResponse.ts +++ b/specification/specs/cat/cat_indices/CatIndicesResponse.ts @@ -1,3 +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. + */ + class CatIndicesResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_jobs/CatJobsRecord.ts b/specification/specs/cat/cat_jobs/CatJobsRecord.ts index 0a9a420edf..5113cff7f8 100644 --- a/specification/specs/cat/cat_jobs/CatJobsRecord.ts +++ b/specification/specs/cat/cat_jobs/CatJobsRecord.ts @@ -1,3 +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. + */ + class CatJobsRecord { assignment_explanation: string 'buckets.count': string diff --git a/specification/specs/cat/cat_jobs/CatJobsRequest.ts b/specification/specs/cat/cat_jobs/CatJobsRequest.ts index e20b994b0c..45062da684 100644 --- a/specification/specs/cat/cat_jobs/CatJobsRequest.ts +++ b/specification/specs/cat/cat_jobs/CatJobsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.ml_jobs') class CatJobsRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_jobs/CatJobsResponse.ts b/specification/specs/cat/cat_jobs/CatJobsResponse.ts index b9a36ed32d..0e88070110 100644 --- a/specification/specs/cat/cat_jobs/CatJobsResponse.ts +++ b/specification/specs/cat/cat_jobs/CatJobsResponse.ts @@ -1,3 +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. + */ + class CatJobsResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_jobs/ModelCategorizationStatus.ts b/specification/specs/cat/cat_jobs/ModelCategorizationStatus.ts index 5fac22c1a2..713b67c17f 100644 --- a/specification/specs/cat/cat_jobs/ModelCategorizationStatus.ts +++ b/specification/specs/cat/cat_jobs/ModelCategorizationStatus.ts @@ -1,3 +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. + */ + enum ModelCategorizationStatus { ok = 0, warn = 1 diff --git a/specification/specs/cat/cat_jobs/ModelMemoryStatus.ts b/specification/specs/cat/cat_jobs/ModelMemoryStatus.ts index b857527f4f..53ef98c38f 100644 --- a/specification/specs/cat/cat_jobs/ModelMemoryStatus.ts +++ b/specification/specs/cat/cat_jobs/ModelMemoryStatus.ts @@ -1,3 +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. + */ + enum ModelMemoryStatus { ok = 0, soft_limit = 1, diff --git a/specification/specs/cat/cat_master/CatMasterRecord.ts b/specification/specs/cat/cat_master/CatMasterRecord.ts index c9a46fadde..dd9726c336 100644 --- a/specification/specs/cat/cat_master/CatMasterRecord.ts +++ b/specification/specs/cat/cat_master/CatMasterRecord.ts @@ -1,3 +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. + */ + class CatMasterRecord { id: string ip: string diff --git a/specification/specs/cat/cat_master/CatMasterRequest.ts b/specification/specs/cat/cat_master/CatMasterRequest.ts index be7b47dd5e..fc28ca375f 100644 --- a/specification/specs/cat/cat_master/CatMasterRequest.ts +++ b/specification/specs/cat/cat_master/CatMasterRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.master') class CatMasterRequest extends CatRequestBase { query_parameters?: {} diff --git a/specification/specs/cat/cat_master/CatMasterResponse.ts b/specification/specs/cat/cat_master/CatMasterResponse.ts index c0e8e81b2a..75a9032c9a 100644 --- a/specification/specs/cat/cat_master/CatMasterResponse.ts +++ b/specification/specs/cat/cat_master/CatMasterResponse.ts @@ -1,3 +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. + */ + class CatMasterResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_node_attributes/CatNodeAttributesRecord.ts b/specification/specs/cat/cat_node_attributes/CatNodeAttributesRecord.ts index 9c69e699d2..43f4c3ef79 100644 --- a/specification/specs/cat/cat_node_attributes/CatNodeAttributesRecord.ts +++ b/specification/specs/cat/cat_node_attributes/CatNodeAttributesRecord.ts @@ -1,3 +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. + */ + class CatNodeAttributesRecord { attr: string host: string diff --git a/specification/specs/cat/cat_node_attributes/CatNodeAttributesRequest.ts b/specification/specs/cat/cat_node_attributes/CatNodeAttributesRequest.ts index ac1e93a692..11b085f5f2 100644 --- a/specification/specs/cat/cat_node_attributes/CatNodeAttributesRequest.ts +++ b/specification/specs/cat/cat_node_attributes/CatNodeAttributesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.nodeattrs') class CatNodeAttributesRequest extends CatRequestBase { query_parameters?: {} diff --git a/specification/specs/cat/cat_node_attributes/CatNodeAttributesResponse.ts b/specification/specs/cat/cat_node_attributes/CatNodeAttributesResponse.ts index f9029b78c9..c830c34c96 100644 --- a/specification/specs/cat/cat_node_attributes/CatNodeAttributesResponse.ts +++ b/specification/specs/cat/cat_node_attributes/CatNodeAttributesResponse.ts @@ -1,3 +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. + */ + class CatNodeAttributesResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_nodes/CatNodesRecord.ts b/specification/specs/cat/cat_nodes/CatNodesRecord.ts index 50c7310dad..7b28a3f6eb 100644 --- a/specification/specs/cat/cat_nodes/CatNodesRecord.ts +++ b/specification/specs/cat/cat_nodes/CatNodesRecord.ts @@ -1,3 +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. + */ + class CatNodesRecord { build: string completion_size: string diff --git a/specification/specs/cat/cat_nodes/CatNodesRequest.ts b/specification/specs/cat/cat_nodes/CatNodesRequest.ts index d1a94f8bee..381af1ed2b 100644 --- a/specification/specs/cat/cat_nodes/CatNodesRequest.ts +++ b/specification/specs/cat/cat_nodes/CatNodesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.nodes') class CatNodesRequest extends CatRequestBase { query_parameters?: { diff --git a/specification/specs/cat/cat_nodes/CatNodesResponse.ts b/specification/specs/cat/cat_nodes/CatNodesResponse.ts index f932c9baa3..a805bd02ad 100644 --- a/specification/specs/cat/cat_nodes/CatNodesResponse.ts +++ b/specification/specs/cat/cat_nodes/CatNodesResponse.ts @@ -1,3 +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. + */ + class CatNodesResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_pending_tasks/CatPendingTasksRecord.ts b/specification/specs/cat/cat_pending_tasks/CatPendingTasksRecord.ts index 5f219b7ca4..3c6e3b8089 100644 --- a/specification/specs/cat/cat_pending_tasks/CatPendingTasksRecord.ts +++ b/specification/specs/cat/cat_pending_tasks/CatPendingTasksRecord.ts @@ -1,3 +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. + */ + class CatPendingTasksRecord { /** @prop_serializer NullableStringIntFormatter */ insertOrder: integer diff --git a/specification/specs/cat/cat_pending_tasks/CatPendingTasksRequest.ts b/specification/specs/cat/cat_pending_tasks/CatPendingTasksRequest.ts index b7942788e2..247b21d6f6 100644 --- a/specification/specs/cat/cat_pending_tasks/CatPendingTasksRequest.ts +++ b/specification/specs/cat/cat_pending_tasks/CatPendingTasksRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.pending_tasks') class CatPendingTasksRequest extends CatRequestBase { query_parameters?: {} diff --git a/specification/specs/cat/cat_pending_tasks/CatPendingTasksResponse.ts b/specification/specs/cat/cat_pending_tasks/CatPendingTasksResponse.ts index f80d8e0a53..a3685bb730 100644 --- a/specification/specs/cat/cat_pending_tasks/CatPendingTasksResponse.ts +++ b/specification/specs/cat/cat_pending_tasks/CatPendingTasksResponse.ts @@ -1,3 +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. + */ + class CatPendingTasksResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_plugins/CatPluginsRecord.ts b/specification/specs/cat/cat_plugins/CatPluginsRecord.ts index b80ea9cd0b..4223ac19a5 100644 --- a/specification/specs/cat/cat_plugins/CatPluginsRecord.ts +++ b/specification/specs/cat/cat_plugins/CatPluginsRecord.ts @@ -1,3 +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. + */ + class CatPluginsRecord { component: string description: string diff --git a/specification/specs/cat/cat_plugins/CatPluginsRequest.ts b/specification/specs/cat/cat_plugins/CatPluginsRequest.ts index 1a971c4b01..6fd7fea0be 100644 --- a/specification/specs/cat/cat_plugins/CatPluginsRequest.ts +++ b/specification/specs/cat/cat_plugins/CatPluginsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.plugins') class CatPluginsRequest extends CatRequestBase { query_parameters?: {} diff --git a/specification/specs/cat/cat_plugins/CatPluginsResponse.ts b/specification/specs/cat/cat_plugins/CatPluginsResponse.ts index c58ea379cf..53aebff7d5 100644 --- a/specification/specs/cat/cat_plugins/CatPluginsResponse.ts +++ b/specification/specs/cat/cat_plugins/CatPluginsResponse.ts @@ -1,3 +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. + */ + class CatPluginsResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_recovery/CatRecoveryRecord.ts b/specification/specs/cat/cat_recovery/CatRecoveryRecord.ts index 7722999328..43dc7eb594 100644 --- a/specification/specs/cat/cat_recovery/CatRecoveryRecord.ts +++ b/specification/specs/cat/cat_recovery/CatRecoveryRecord.ts @@ -1,3 +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. + */ + class CatRecoveryRecord { bytes: string bytes_percent: string diff --git a/specification/specs/cat/cat_recovery/CatRecoveryRequest.ts b/specification/specs/cat/cat_recovery/CatRecoveryRequest.ts index 4b899c44d9..d9116f3990 100644 --- a/specification/specs/cat/cat_recovery/CatRecoveryRequest.ts +++ b/specification/specs/cat/cat_recovery/CatRecoveryRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.recovery') class CatRecoveryRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_recovery/CatRecoveryResponse.ts b/specification/specs/cat/cat_recovery/CatRecoveryResponse.ts index 73ae373d88..59f7cbfdac 100644 --- a/specification/specs/cat/cat_recovery/CatRecoveryResponse.ts +++ b/specification/specs/cat/cat_recovery/CatRecoveryResponse.ts @@ -1,3 +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. + */ + class CatRecoveryResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_repositories/CatRepositoriesRecord.ts b/specification/specs/cat/cat_repositories/CatRepositoriesRecord.ts index 57511254ff..2a4dd3cbfb 100644 --- a/specification/specs/cat/cat_repositories/CatRepositoriesRecord.ts +++ b/specification/specs/cat/cat_repositories/CatRepositoriesRecord.ts @@ -1,3 +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. + */ + class CatRepositoriesRecord { id: string type: string diff --git a/specification/specs/cat/cat_repositories/CatRepositoriesRequest.ts b/specification/specs/cat/cat_repositories/CatRepositoriesRequest.ts index 603613ffe7..a2d20916e1 100644 --- a/specification/specs/cat/cat_repositories/CatRepositoriesRequest.ts +++ b/specification/specs/cat/cat_repositories/CatRepositoriesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.repositories') class CatRepositoriesRequest extends CatRequestBase { query_parameters?: {} diff --git a/specification/specs/cat/cat_repositories/CatRepositoriesResponse.ts b/specification/specs/cat/cat_repositories/CatRepositoriesResponse.ts index 0420b30d37..60a6f6b371 100644 --- a/specification/specs/cat/cat_repositories/CatRepositoriesResponse.ts +++ b/specification/specs/cat/cat_repositories/CatRepositoriesResponse.ts @@ -1,3 +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. + */ + class CatRepositoriesResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_segments/CatSegmentsRecord.ts b/specification/specs/cat/cat_segments/CatSegmentsRecord.ts index 052de13c34..3491b579c7 100644 --- a/specification/specs/cat/cat_segments/CatSegmentsRecord.ts +++ b/specification/specs/cat/cat_segments/CatSegmentsRecord.ts @@ -1,3 +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. + */ + class CatSegmentsRecord { committed: string compound: string diff --git a/specification/specs/cat/cat_segments/CatSegmentsRequest.ts b/specification/specs/cat/cat_segments/CatSegmentsRequest.ts index 661a1d38d0..92df111fee 100644 --- a/specification/specs/cat/cat_segments/CatSegmentsRequest.ts +++ b/specification/specs/cat/cat_segments/CatSegmentsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.segments') class CatSegmentsRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_segments/CatSegmentsResponse.ts b/specification/specs/cat/cat_segments/CatSegmentsResponse.ts index 2a635315bd..0e0405b320 100644 --- a/specification/specs/cat/cat_segments/CatSegmentsResponse.ts +++ b/specification/specs/cat/cat_segments/CatSegmentsResponse.ts @@ -1,3 +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. + */ + class CatSegmentsResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_shards/CatShardsRecord.ts b/specification/specs/cat/cat_shards/CatShardsRecord.ts index b4e97d3c2a..b4754192dd 100644 --- a/specification/specs/cat/cat_shards/CatShardsRecord.ts +++ b/specification/specs/cat/cat_shards/CatShardsRecord.ts @@ -1,3 +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. + */ + class CatShardsRecord { 'completion.size': string docs: string diff --git a/specification/specs/cat/cat_shards/CatShardsRequest.ts b/specification/specs/cat/cat_shards/CatShardsRequest.ts index 87ae6cb5ad..f31838bbd3 100644 --- a/specification/specs/cat/cat_shards/CatShardsRequest.ts +++ b/specification/specs/cat/cat_shards/CatShardsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.shards') class CatShardsRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_shards/CatShardsResponse.ts b/specification/specs/cat/cat_shards/CatShardsResponse.ts index 234e08f8b9..670e82d91d 100644 --- a/specification/specs/cat/cat_shards/CatShardsResponse.ts +++ b/specification/specs/cat/cat_shards/CatShardsResponse.ts @@ -1,3 +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. + */ + class CatShardsResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_snapshots/CatSnapshotsRecord.ts b/specification/specs/cat/cat_snapshots/CatSnapshotsRecord.ts index 03367637ff..7b49cea3a3 100644 --- a/specification/specs/cat/cat_snapshots/CatSnapshotsRecord.ts +++ b/specification/specs/cat/cat_snapshots/CatSnapshotsRecord.ts @@ -1,3 +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. + */ + class CatSnapshotsRecord { duration: Time /** @prop_serializer StringLongFormatter */ diff --git a/specification/specs/cat/cat_snapshots/CatSnapshotsRequest.ts b/specification/specs/cat/cat_snapshots/CatSnapshotsRequest.ts index dfeaeffbb4..6591b40e2d 100644 --- a/specification/specs/cat/cat_snapshots/CatSnapshotsRequest.ts +++ b/specification/specs/cat/cat_snapshots/CatSnapshotsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.snapshots') class CatSnapshotsRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_snapshots/CatSnapshotsResponse.ts b/specification/specs/cat/cat_snapshots/CatSnapshotsResponse.ts index cd8d47b94f..8f74041794 100644 --- a/specification/specs/cat/cat_snapshots/CatSnapshotsResponse.ts +++ b/specification/specs/cat/cat_snapshots/CatSnapshotsResponse.ts @@ -1,3 +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. + */ + class CatSnapshotsResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_tasks/CatTasksRecord.ts b/specification/specs/cat/cat_tasks/CatTasksRecord.ts index b3cd0290b0..fdf2b40c02 100644 --- a/specification/specs/cat/cat_tasks/CatTasksRecord.ts +++ b/specification/specs/cat/cat_tasks/CatTasksRecord.ts @@ -1,3 +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. + */ + class CatTasksRecord { action: string ip: string diff --git a/specification/specs/cat/cat_tasks/CatTasksRequest.ts b/specification/specs/cat/cat_tasks/CatTasksRequest.ts index 9380f63b45..2d248d9048 100644 --- a/specification/specs/cat/cat_tasks/CatTasksRequest.ts +++ b/specification/specs/cat/cat_tasks/CatTasksRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.tasks') class CatTasksRequest extends CatRequestBase { query_parameters?: { diff --git a/specification/specs/cat/cat_tasks/CatTasksResponse.ts b/specification/specs/cat/cat_tasks/CatTasksResponse.ts index 14dc5e4fc4..077a4e84c2 100644 --- a/specification/specs/cat/cat_tasks/CatTasksResponse.ts +++ b/specification/specs/cat/cat_tasks/CatTasksResponse.ts @@ -1,3 +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. + */ + class CatTasksResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_templates/CatTemplatesRecord.ts b/specification/specs/cat/cat_templates/CatTemplatesRecord.ts index 58646073c5..239579e92f 100644 --- a/specification/specs/cat/cat_templates/CatTemplatesRecord.ts +++ b/specification/specs/cat/cat_templates/CatTemplatesRecord.ts @@ -1,3 +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. + */ + class CatTemplatesRecord { index_patterns: string name: string diff --git a/specification/specs/cat/cat_templates/CatTemplatesRequest.ts b/specification/specs/cat/cat_templates/CatTemplatesRequest.ts index 2bf8fa99fe..601c2d1440 100644 --- a/specification/specs/cat/cat_templates/CatTemplatesRequest.ts +++ b/specification/specs/cat/cat_templates/CatTemplatesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.templates') class CatTemplatesRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_templates/CatTemplatesResponse.ts b/specification/specs/cat/cat_templates/CatTemplatesResponse.ts index ac062f048d..67149315a9 100644 --- a/specification/specs/cat/cat_templates/CatTemplatesResponse.ts +++ b/specification/specs/cat/cat_templates/CatTemplatesResponse.ts @@ -1,3 +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. + */ + class CatTemplatesResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_thread_pool/CatThreadPoolRecord.ts b/specification/specs/cat/cat_thread_pool/CatThreadPoolRecord.ts index 14710a4827..606a560cd8 100644 --- a/specification/specs/cat/cat_thread_pool/CatThreadPoolRecord.ts +++ b/specification/specs/cat/cat_thread_pool/CatThreadPoolRecord.ts @@ -1,3 +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. + */ + class CatThreadPoolRecord { /** @prop_serializer StringIntFormatter */ active: integer diff --git a/specification/specs/cat/cat_thread_pool/CatThreadPoolRequest.ts b/specification/specs/cat/cat_thread_pool/CatThreadPoolRequest.ts index ce723ad02b..7c5af2d1a3 100644 --- a/specification/specs/cat/cat_thread_pool/CatThreadPoolRequest.ts +++ b/specification/specs/cat/cat_thread_pool/CatThreadPoolRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.thread_pool') class CatThreadPoolRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_thread_pool/CatThreadPoolResponse.ts b/specification/specs/cat/cat_thread_pool/CatThreadPoolResponse.ts index 917df46915..785e85e864 100644 --- a/specification/specs/cat/cat_thread_pool/CatThreadPoolResponse.ts +++ b/specification/specs/cat/cat_thread_pool/CatThreadPoolResponse.ts @@ -1,3 +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. + */ + class CatThreadPoolResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_trained_models/CatTrainedModelsRecord.ts b/specification/specs/cat/cat_trained_models/CatTrainedModelsRecord.ts index f740252794..b69cad13ba 100644 --- a/specification/specs/cat/cat_trained_models/CatTrainedModelsRecord.ts +++ b/specification/specs/cat/cat_trained_models/CatTrainedModelsRecord.ts @@ -1,3 +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. + */ + class CatTrainedModelsRecord { created_by: string create_time: string diff --git a/specification/specs/cat/cat_trained_models/CatTrainedModelsRequest.ts b/specification/specs/cat/cat_trained_models/CatTrainedModelsRequest.ts index 21dd0dc6e0..2cdd0d16e7 100644 --- a/specification/specs/cat/cat_trained_models/CatTrainedModelsRequest.ts +++ b/specification/specs/cat/cat_trained_models/CatTrainedModelsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.ml_trained_models') class CatTrainedModelsRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_trained_models/CatTrainedModelsResponse.ts b/specification/specs/cat/cat_trained_models/CatTrainedModelsResponse.ts index 1e205fea33..e56e897fcc 100644 --- a/specification/specs/cat/cat_trained_models/CatTrainedModelsResponse.ts +++ b/specification/specs/cat/cat_trained_models/CatTrainedModelsResponse.ts @@ -1,3 +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. + */ + class CatTrainedModelsResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_transforms/CatTransformsRecord.ts b/specification/specs/cat/cat_transforms/CatTransformsRecord.ts index 20395284d3..b8a80e7b54 100644 --- a/specification/specs/cat/cat_transforms/CatTransformsRecord.ts +++ b/specification/specs/cat/cat_transforms/CatTransformsRecord.ts @@ -1,3 +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. + */ + class CatTransformsRecord { changes_last_detection_time: string checkpoint_duration_time_exp_avg: long diff --git a/specification/specs/cat/cat_transforms/CatTransformsRequest.ts b/specification/specs/cat/cat_transforms/CatTransformsRequest.ts index 413b3f5eed..7e8cb4d0a2 100644 --- a/specification/specs/cat/cat_transforms/CatTransformsRequest.ts +++ b/specification/specs/cat/cat_transforms/CatTransformsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cat.transforms') class CatTransformsRequest extends CatRequestBase { path_parts?: { diff --git a/specification/specs/cat/cat_transforms/CatTransformsResponse.ts b/specification/specs/cat/cat_transforms/CatTransformsResponse.ts index 11e2a3a0db..aca0660103 100644 --- a/specification/specs/cat/cat_transforms/CatTransformsResponse.ts +++ b/specification/specs/cat/cat_transforms/CatTransformsResponse.ts @@ -1,3 +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. + */ + class CatTransformsResponse extends ResponseBase implements ArrayResponse {} diff --git a/specification/specs/cat/cat_transforms/TransformState.ts b/specification/specs/cat/cat_transforms/TransformState.ts index 8e3786658f..d5bf7f9831 100644 --- a/specification/specs/cat/cat_transforms/TransformState.ts +++ b/specification/specs/cat/cat_transforms/TransformState.ts @@ -1,3 +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. + */ + enum TransformState { STARTED = 0, INDEXING = 1, diff --git a/specification/specs/cat/cat_transforms/TransformType.ts b/specification/specs/cat/cat_transforms/TransformType.ts index 9e21f72b80..6c8a7b6951 100644 --- a/specification/specs/cat/cat_transforms/TransformType.ts +++ b/specification/specs/cat/cat_transforms/TransformType.ts @@ -1,3 +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. + */ + enum TransformType { batch = 0, continuous = 1 diff --git a/specification/specs/cluster/ClusterStatus.ts b/specification/specs/cluster/ClusterStatus.ts index 91c876b801..e4c993c0bc 100644 --- a/specification/specs/cluster/ClusterStatus.ts +++ b/specification/specs/cluster/ClusterStatus.ts @@ -1,3 +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. + */ + enum ClusterStatus { green = 0, yellow = 1, diff --git a/specification/specs/cluster/NodeStatistics.ts b/specification/specs/cluster/NodeStatistics.ts index a3f1a3015e..4568665d21 100644 --- a/specification/specs/cluster/NodeStatistics.ts +++ b/specification/specs/cluster/NodeStatistics.ts @@ -1,3 +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. + */ + class NodeStatistics { failed: integer failures: ErrorCause[] diff --git a/specification/specs/cluster/NodesResponseBase.ts b/specification/specs/cluster/NodesResponseBase.ts index 2bf1005e10..d14478db4e 100644 --- a/specification/specs/cluster/NodesResponseBase.ts +++ b/specification/specs/cluster/NodesResponseBase.ts @@ -1,3 +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. + */ + class NodesResponseBase extends ResponseBase { _nodes: NodeStatistics } diff --git a/specification/specs/cluster/cluster_allocation_explain/AllocationDecision.ts b/specification/specs/cluster/cluster_allocation_explain/AllocationDecision.ts index 388459d7d9..2e551c59a6 100644 --- a/specification/specs/cluster/cluster_allocation_explain/AllocationDecision.ts +++ b/specification/specs/cluster/cluster_allocation_explain/AllocationDecision.ts @@ -1,3 +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. + */ + class AllocationDecision { decider: string decision: AllocationExplainDecision diff --git a/specification/specs/cluster/cluster_allocation_explain/AllocationExplainDecision.ts b/specification/specs/cluster/cluster_allocation_explain/AllocationExplainDecision.ts index 534dc3fef1..d951b18b26 100644 --- a/specification/specs/cluster/cluster_allocation_explain/AllocationExplainDecision.ts +++ b/specification/specs/cluster/cluster_allocation_explain/AllocationExplainDecision.ts @@ -1,3 +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. + */ + enum AllocationExplainDecision { NO = 0, YES = 1, diff --git a/specification/specs/cluster/cluster_allocation_explain/AllocationStore.ts b/specification/specs/cluster/cluster_allocation_explain/AllocationStore.ts index d32b1c0071..80b5800302 100644 --- a/specification/specs/cluster/cluster_allocation_explain/AllocationStore.ts +++ b/specification/specs/cluster/cluster_allocation_explain/AllocationStore.ts @@ -1,3 +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. + */ + class AllocationStore { allocation_id: string found: boolean diff --git a/specification/specs/cluster/cluster_allocation_explain/ClusterAllocationExplainRequest.ts b/specification/specs/cluster/cluster_allocation_explain/ClusterAllocationExplainRequest.ts index a4dc346e74..f212379bca 100644 --- a/specification/specs/cluster/cluster_allocation_explain/ClusterAllocationExplainRequest.ts +++ b/specification/specs/cluster/cluster_allocation_explain/ClusterAllocationExplainRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cluster.allocation_explain') class ClusterAllocationExplainRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/cluster/cluster_allocation_explain/ClusterAllocationExplainResponse.ts b/specification/specs/cluster/cluster_allocation_explain/ClusterAllocationExplainResponse.ts index 96c6dc1eee..a894dee86c 100644 --- a/specification/specs/cluster/cluster_allocation_explain/ClusterAllocationExplainResponse.ts +++ b/specification/specs/cluster/cluster_allocation_explain/ClusterAllocationExplainResponse.ts @@ -1,3 +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. + */ + class ClusterAllocationExplainResponse extends ResponseBase { allocate_explanation?: string allocation_delay?: string diff --git a/specification/specs/cluster/cluster_allocation_explain/ClusterInfo.ts b/specification/specs/cluster/cluster_allocation_explain/ClusterInfo.ts index e0d72e3f05..fd74666ed8 100644 --- a/specification/specs/cluster/cluster_allocation_explain/ClusterInfo.ts +++ b/specification/specs/cluster/cluster_allocation_explain/ClusterInfo.ts @@ -1,3 +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. + */ + class ClusterInfo { nodes: Dictionary shard_sizes: Dictionary diff --git a/specification/specs/cluster/cluster_allocation_explain/CurrentNode.ts b/specification/specs/cluster/cluster_allocation_explain/CurrentNode.ts index c96fb633de..6d3a18ecce 100644 --- a/specification/specs/cluster/cluster_allocation_explain/CurrentNode.ts +++ b/specification/specs/cluster/cluster_allocation_explain/CurrentNode.ts @@ -1,3 +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. + */ + class CurrentNode { id: string name: string diff --git a/specification/specs/cluster/cluster_allocation_explain/Decision.ts b/specification/specs/cluster/cluster_allocation_explain/Decision.ts index 3580129073..0d47c74d73 100644 --- a/specification/specs/cluster/cluster_allocation_explain/Decision.ts +++ b/specification/specs/cluster/cluster_allocation_explain/Decision.ts @@ -1,3 +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. + */ + enum Decision { yes = 0, no = 1, diff --git a/specification/specs/cluster/cluster_allocation_explain/NodeAllocationExplanation.ts b/specification/specs/cluster/cluster_allocation_explain/NodeAllocationExplanation.ts index e74686954b..2ac94e16f4 100644 --- a/specification/specs/cluster/cluster_allocation_explain/NodeAllocationExplanation.ts +++ b/specification/specs/cluster/cluster_allocation_explain/NodeAllocationExplanation.ts @@ -1,3 +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. + */ + class NodeAllocationExplanation { deciders: AllocationDecision[] node_attributes: Dictionary diff --git a/specification/specs/cluster/cluster_allocation_explain/StoreCopy.ts b/specification/specs/cluster/cluster_allocation_explain/StoreCopy.ts index 34cad4d0d4..34db124676 100644 --- a/specification/specs/cluster/cluster_allocation_explain/StoreCopy.ts +++ b/specification/specs/cluster/cluster_allocation_explain/StoreCopy.ts @@ -1,3 +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. + */ + enum StoreCopy { NONE = 0, AVAILABLE = 1, diff --git a/specification/specs/cluster/cluster_allocation_explain/UnassignedInformation.ts b/specification/specs/cluster/cluster_allocation_explain/UnassignedInformation.ts index acb82163fb..25f6d30c4c 100644 --- a/specification/specs/cluster/cluster_allocation_explain/UnassignedInformation.ts +++ b/specification/specs/cluster/cluster_allocation_explain/UnassignedInformation.ts @@ -1,3 +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. + */ + class UnassignedInformation { at: Date last_allocation_status: string diff --git a/specification/specs/cluster/cluster_allocation_explain/UnassignedInformationReason.ts b/specification/specs/cluster/cluster_allocation_explain/UnassignedInformationReason.ts index a47f3c8a45..b14b07c148 100644 --- a/specification/specs/cluster/cluster_allocation_explain/UnassignedInformationReason.ts +++ b/specification/specs/cluster/cluster_allocation_explain/UnassignedInformationReason.ts @@ -1,3 +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. + */ + enum UnassignedInformationReason { INDEX_CREATED = 0, CLUSTER_RECOVERED = 1, diff --git a/specification/specs/cluster/cluster_health/ClusterHealthRequest.ts b/specification/specs/cluster/cluster_health/ClusterHealthRequest.ts index 53e679d9f1..c89a731870 100644 --- a/specification/specs/cluster/cluster_health/ClusterHealthRequest.ts +++ b/specification/specs/cluster/cluster_health/ClusterHealthRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cluster.health') class ClusterHealthRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/cluster/cluster_health/ClusterHealthResponse.ts b/specification/specs/cluster/cluster_health/ClusterHealthResponse.ts index b6fec511c1..31b9d11302 100644 --- a/specification/specs/cluster/cluster_health/ClusterHealthResponse.ts +++ b/specification/specs/cluster/cluster_health/ClusterHealthResponse.ts @@ -1,3 +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. + */ + class ClusterHealthResponse extends ResponseBase { active_primary_shards: integer active_shards: integer diff --git a/specification/specs/cluster/cluster_health/IndexHealthStats.ts b/specification/specs/cluster/cluster_health/IndexHealthStats.ts index 88acf0bd9c..3d7b066210 100644 --- a/specification/specs/cluster/cluster_health/IndexHealthStats.ts +++ b/specification/specs/cluster/cluster_health/IndexHealthStats.ts @@ -1,3 +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. + */ + class IndexHealthStats { active_primary_shards: integer active_shards: integer diff --git a/specification/specs/cluster/cluster_health/ShardHealthStats.ts b/specification/specs/cluster/cluster_health/ShardHealthStats.ts index ff55363ef1..85e58dc530 100644 --- a/specification/specs/cluster/cluster_health/ShardHealthStats.ts +++ b/specification/specs/cluster/cluster_health/ShardHealthStats.ts @@ -1,3 +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. + */ + class ShardHealthStats { active_shards: integer initializing_shards: integer diff --git a/specification/specs/cluster/cluster_pending_tasks/ClusterPendingTasksRequest.ts b/specification/specs/cluster/cluster_pending_tasks/ClusterPendingTasksRequest.ts index e7b667cdc7..9b0f106a57 100644 --- a/specification/specs/cluster/cluster_pending_tasks/ClusterPendingTasksRequest.ts +++ b/specification/specs/cluster/cluster_pending_tasks/ClusterPendingTasksRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cluster.pending_tasks') class ClusterPendingTasksRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/cluster/cluster_pending_tasks/ClusterPendingTasksResponse.ts b/specification/specs/cluster/cluster_pending_tasks/ClusterPendingTasksResponse.ts index b807bd7ca6..e1e132eee1 100644 --- a/specification/specs/cluster/cluster_pending_tasks/ClusterPendingTasksResponse.ts +++ b/specification/specs/cluster/cluster_pending_tasks/ClusterPendingTasksResponse.ts @@ -1,3 +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. + */ + class ClusterPendingTasksResponse extends ResponseBase { tasks: PendingTask[] } diff --git a/specification/specs/cluster/cluster_pending_tasks/PendingTask.ts b/specification/specs/cluster/cluster_pending_tasks/PendingTask.ts index 6d0ac268a6..a5a4a7a8c5 100644 --- a/specification/specs/cluster/cluster_pending_tasks/PendingTask.ts +++ b/specification/specs/cluster/cluster_pending_tasks/PendingTask.ts @@ -1,3 +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. + */ + class PendingTask { insert_order: integer priority: string diff --git a/specification/specs/cluster/cluster_reroute/ClusterRerouteDecision.ts b/specification/specs/cluster/cluster_reroute/ClusterRerouteDecision.ts index 0976ba11de..c99d18e11f 100644 --- a/specification/specs/cluster/cluster_reroute/ClusterRerouteDecision.ts +++ b/specification/specs/cluster/cluster_reroute/ClusterRerouteDecision.ts @@ -1,3 +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. + */ + class ClusterRerouteDecision { decider: string decision: string diff --git a/specification/specs/cluster/cluster_reroute/ClusterRerouteExplanation.ts b/specification/specs/cluster/cluster_reroute/ClusterRerouteExplanation.ts index 4865feb203..5d5c48c700 100644 --- a/specification/specs/cluster/cluster_reroute/ClusterRerouteExplanation.ts +++ b/specification/specs/cluster/cluster_reroute/ClusterRerouteExplanation.ts @@ -1,3 +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. + */ + class ClusterRerouteExplanation { command: string decisions: ClusterRerouteDecision[] diff --git a/specification/specs/cluster/cluster_reroute/ClusterRerouteParameters.ts b/specification/specs/cluster/cluster_reroute/ClusterRerouteParameters.ts index 1dce2abf2f..02c54a01ed 100644 --- a/specification/specs/cluster/cluster_reroute/ClusterRerouteParameters.ts +++ b/specification/specs/cluster/cluster_reroute/ClusterRerouteParameters.ts @@ -1,3 +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. + */ + class ClusterRerouteParameters { allow_primary: boolean from_node: string diff --git a/specification/specs/cluster/cluster_reroute/ClusterRerouteRequest.ts b/specification/specs/cluster/cluster_reroute/ClusterRerouteRequest.ts index b3fa0acd71..b6ab934af6 100644 --- a/specification/specs/cluster/cluster_reroute/ClusterRerouteRequest.ts +++ b/specification/specs/cluster/cluster_reroute/ClusterRerouteRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cluster.reroute') class ClusterRerouteRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/cluster/cluster_reroute/ClusterRerouteResponse.ts b/specification/specs/cluster/cluster_reroute/ClusterRerouteResponse.ts index fd717cadb7..5beab6d7e5 100644 --- a/specification/specs/cluster/cluster_reroute/ClusterRerouteResponse.ts +++ b/specification/specs/cluster/cluster_reroute/ClusterRerouteResponse.ts @@ -1,3 +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. + */ + class ClusterRerouteResponse extends ResponseBase { explanations: ClusterRerouteExplanation[] state: string[] diff --git a/specification/specs/cluster/cluster_reroute/commands/ClusterRerouteCommand.ts b/specification/specs/cluster/cluster_reroute/commands/ClusterRerouteCommand.ts index c88b7d0f59..ecfe9989a6 100644 --- a/specification/specs/cluster/cluster_reroute/commands/ClusterRerouteCommand.ts +++ b/specification/specs/cluster/cluster_reroute/commands/ClusterRerouteCommand.ts @@ -1,3 +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. + */ + @class_serializer('ClusterRerouteCommandFormatter') class ClusterRerouteCommand { name: string diff --git a/specification/specs/cluster/cluster_settings/cluster_get_settings/ClusterGetSettingsRequest.ts b/specification/specs/cluster/cluster_settings/cluster_get_settings/ClusterGetSettingsRequest.ts index 58ad74dcbd..5a2acefd6a 100644 --- a/specification/specs/cluster/cluster_settings/cluster_get_settings/ClusterGetSettingsRequest.ts +++ b/specification/specs/cluster/cluster_settings/cluster_get_settings/ClusterGetSettingsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cluster.get_settings') class ClusterGetSettingsRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/cluster/cluster_settings/cluster_get_settings/ClusterGetSettingsResponse.ts b/specification/specs/cluster/cluster_settings/cluster_get_settings/ClusterGetSettingsResponse.ts index c9383c4805..997a918984 100644 --- a/specification/specs/cluster/cluster_settings/cluster_get_settings/ClusterGetSettingsResponse.ts +++ b/specification/specs/cluster/cluster_settings/cluster_get_settings/ClusterGetSettingsResponse.ts @@ -1,3 +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. + */ + class ClusterGetSettingsResponse extends ResponseBase { persistent: Dictionary transient: Dictionary diff --git a/specification/specs/cluster/cluster_settings/cluster_put_settings/ClusterPutSettingsRequest.ts b/specification/specs/cluster/cluster_settings/cluster_put_settings/ClusterPutSettingsRequest.ts index 367637f862..c1dd84c73f 100644 --- a/specification/specs/cluster/cluster_settings/cluster_put_settings/ClusterPutSettingsRequest.ts +++ b/specification/specs/cluster/cluster_settings/cluster_put_settings/ClusterPutSettingsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cluster.put_settings') class ClusterPutSettingsRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/cluster/cluster_settings/cluster_put_settings/ClusterPutSettingsResponse.ts b/specification/specs/cluster/cluster_settings/cluster_put_settings/ClusterPutSettingsResponse.ts index e865f5dcb3..b34ce09dec 100644 --- a/specification/specs/cluster/cluster_settings/cluster_put_settings/ClusterPutSettingsResponse.ts +++ b/specification/specs/cluster/cluster_settings/cluster_put_settings/ClusterPutSettingsResponse.ts @@ -1,3 +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. + */ + class ClusterPutSettingsResponse extends ResponseBase { acknowledged: boolean persistent: Dictionary diff --git a/specification/specs/cluster/cluster_state/ClusterStateRequest.ts b/specification/specs/cluster/cluster_state/ClusterStateRequest.ts index a9c50eb994..00b8d7a152 100644 --- a/specification/specs/cluster/cluster_state/ClusterStateRequest.ts +++ b/specification/specs/cluster/cluster_state/ClusterStateRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cluster.state') class ClusterStateRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/cluster/cluster_state/ClusterStateResponse.ts b/specification/specs/cluster/cluster_state/ClusterStateResponse.ts index baa0cc8225..56d25fd565 100644 --- a/specification/specs/cluster/cluster_state/ClusterStateResponse.ts +++ b/specification/specs/cluster/cluster_state/ClusterStateResponse.ts @@ -1,3 +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. + */ + @class_serializer('DynamicResponseFormatter`1') class ClusterStateResponse extends ResponseBase { cluster_name: string diff --git a/specification/specs/cluster/cluster_stats/ClusterFileSystem.ts b/specification/specs/cluster/cluster_stats/ClusterFileSystem.ts index 56c3361368..d50169c9f2 100644 --- a/specification/specs/cluster/cluster_stats/ClusterFileSystem.ts +++ b/specification/specs/cluster/cluster_stats/ClusterFileSystem.ts @@ -1,3 +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. + */ + class ClusterFileSystem { available_in_bytes: long free_in_bytes: long diff --git a/specification/specs/cluster/cluster_stats/ClusterIndicesShardsIndexStats.ts b/specification/specs/cluster/cluster_stats/ClusterIndicesShardsIndexStats.ts index f93c1dc6c0..46077c0904 100644 --- a/specification/specs/cluster/cluster_stats/ClusterIndicesShardsIndexStats.ts +++ b/specification/specs/cluster/cluster_stats/ClusterIndicesShardsIndexStats.ts @@ -1,3 +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. + */ + class ClusterIndicesShardsIndexStats { primaries: ClusterShardMetrics replication: ClusterShardMetrics diff --git a/specification/specs/cluster/cluster_stats/ClusterIndicesShardsStats.ts b/specification/specs/cluster/cluster_stats/ClusterIndicesShardsStats.ts index 8c833aeb64..4118d62aaf 100644 --- a/specification/specs/cluster/cluster_stats/ClusterIndicesShardsStats.ts +++ b/specification/specs/cluster/cluster_stats/ClusterIndicesShardsStats.ts @@ -1,3 +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. + */ + class ClusterIndicesShardsStats { index: ClusterIndicesShardsIndexStats primaries: double diff --git a/specification/specs/cluster/cluster_stats/ClusterIndicesStats.ts b/specification/specs/cluster/cluster_stats/ClusterIndicesStats.ts index 5f13ffd2cd..ef4c8e4ab8 100644 --- a/specification/specs/cluster/cluster_stats/ClusterIndicesStats.ts +++ b/specification/specs/cluster/cluster_stats/ClusterIndicesStats.ts @@ -1,3 +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. + */ + class ClusterIndicesStats { completion: CompletionStats count: long diff --git a/specification/specs/cluster/cluster_stats/ClusterIngestStats.ts b/specification/specs/cluster/cluster_stats/ClusterIngestStats.ts index 7fb3c3d560..492fb82f9a 100644 --- a/specification/specs/cluster/cluster_stats/ClusterIngestStats.ts +++ b/specification/specs/cluster/cluster_stats/ClusterIngestStats.ts @@ -1,3 +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. + */ + class ClusterIngestStats { number_of_pipelines: integer processor_stats: Dictionary diff --git a/specification/specs/cluster/cluster_stats/ClusterJvm.ts b/specification/specs/cluster/cluster_stats/ClusterJvm.ts index 005af66849..ea91bedec4 100644 --- a/specification/specs/cluster/cluster_stats/ClusterJvm.ts +++ b/specification/specs/cluster/cluster_stats/ClusterJvm.ts @@ -1,3 +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. + */ + class ClusterJvm { max_uptime_in_millis: long mem: ClusterJvmMemory diff --git a/specification/specs/cluster/cluster_stats/ClusterJvmMemory.ts b/specification/specs/cluster/cluster_stats/ClusterJvmMemory.ts index 18967fd817..df03b495df 100644 --- a/specification/specs/cluster/cluster_stats/ClusterJvmMemory.ts +++ b/specification/specs/cluster/cluster_stats/ClusterJvmMemory.ts @@ -1,3 +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. + */ + class ClusterJvmMemory { heap_max_in_bytes: long heap_used_in_bytes: long diff --git a/specification/specs/cluster/cluster_stats/ClusterJvmVersion.ts b/specification/specs/cluster/cluster_stats/ClusterJvmVersion.ts index 3808be57af..d244a41648 100644 --- a/specification/specs/cluster/cluster_stats/ClusterJvmVersion.ts +++ b/specification/specs/cluster/cluster_stats/ClusterJvmVersion.ts @@ -1,3 +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. + */ + class ClusterJvmVersion { bundled_jdk: boolean count: integer diff --git a/specification/specs/cluster/cluster_stats/ClusterNetworkTypes.ts b/specification/specs/cluster/cluster_stats/ClusterNetworkTypes.ts index 0af6fef5f9..1001b12eb6 100644 --- a/specification/specs/cluster/cluster_stats/ClusterNetworkTypes.ts +++ b/specification/specs/cluster/cluster_stats/ClusterNetworkTypes.ts @@ -1,3 +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. + */ + class ClusterNetworkTypes { http_types: Dictionary transport_types: Dictionary diff --git a/specification/specs/cluster/cluster_stats/ClusterNodeCount.ts b/specification/specs/cluster/cluster_stats/ClusterNodeCount.ts index 644920c7c8..f3e960a55f 100644 --- a/specification/specs/cluster/cluster_stats/ClusterNodeCount.ts +++ b/specification/specs/cluster/cluster_stats/ClusterNodeCount.ts @@ -1,3 +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. + */ + class ClusterNodeCount { coordinating_only: integer data: integer diff --git a/specification/specs/cluster/cluster_stats/ClusterNodesStats.ts b/specification/specs/cluster/cluster_stats/ClusterNodesStats.ts index 84ff263caa..3d1799237f 100644 --- a/specification/specs/cluster/cluster_stats/ClusterNodesStats.ts +++ b/specification/specs/cluster/cluster_stats/ClusterNodesStats.ts @@ -1,3 +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. + */ + class ClusterNodesStats { count: ClusterNodeCount discovery_types: Dictionary diff --git a/specification/specs/cluster/cluster_stats/ClusterOperatingSystemName.ts b/specification/specs/cluster/cluster_stats/ClusterOperatingSystemName.ts index ef3e654ecd..15f081193c 100644 --- a/specification/specs/cluster/cluster_stats/ClusterOperatingSystemName.ts +++ b/specification/specs/cluster/cluster_stats/ClusterOperatingSystemName.ts @@ -1,3 +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. + */ + class ClusterOperatingSystemName { count: integer name: string diff --git a/specification/specs/cluster/cluster_stats/ClusterOperatingSystemStats.ts b/specification/specs/cluster/cluster_stats/ClusterOperatingSystemStats.ts index 104a3eca06..a562e64e4e 100644 --- a/specification/specs/cluster/cluster_stats/ClusterOperatingSystemStats.ts +++ b/specification/specs/cluster/cluster_stats/ClusterOperatingSystemStats.ts @@ -1,3 +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. + */ + class ClusterOperatingSystemStats { allocated_processors: integer available_processors: integer diff --git a/specification/specs/cluster/cluster_stats/ClusterProcess.ts b/specification/specs/cluster/cluster_stats/ClusterProcess.ts index ed5d761cc7..9234c56a3f 100644 --- a/specification/specs/cluster/cluster_stats/ClusterProcess.ts +++ b/specification/specs/cluster/cluster_stats/ClusterProcess.ts @@ -1,3 +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. + */ + class ClusterProcess { cpu: ClusterProcessCpu open_file_descriptors: ClusterProcessOpenFileDescriptors diff --git a/specification/specs/cluster/cluster_stats/ClusterProcessCpu.ts b/specification/specs/cluster/cluster_stats/ClusterProcessCpu.ts index c76395904a..fcdc856883 100644 --- a/specification/specs/cluster/cluster_stats/ClusterProcessCpu.ts +++ b/specification/specs/cluster/cluster_stats/ClusterProcessCpu.ts @@ -1,3 +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. + */ + class ClusterProcessCpu { percent: integer } diff --git a/specification/specs/cluster/cluster_stats/ClusterProcessOpenFileDescriptors.ts b/specification/specs/cluster/cluster_stats/ClusterProcessOpenFileDescriptors.ts index f3c0b1bfec..c9c10b8a8d 100644 --- a/specification/specs/cluster/cluster_stats/ClusterProcessOpenFileDescriptors.ts +++ b/specification/specs/cluster/cluster_stats/ClusterProcessOpenFileDescriptors.ts @@ -1,3 +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. + */ + class ClusterProcessOpenFileDescriptors { avg: long max: long diff --git a/specification/specs/cluster/cluster_stats/ClusterProcessorStats.ts b/specification/specs/cluster/cluster_stats/ClusterProcessorStats.ts index c1b26c57b5..3c3e183c0a 100644 --- a/specification/specs/cluster/cluster_stats/ClusterProcessorStats.ts +++ b/specification/specs/cluster/cluster_stats/ClusterProcessorStats.ts @@ -1,3 +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. + */ + class ClusterProcessorStats { count: long current: long diff --git a/specification/specs/cluster/cluster_stats/ClusterShardMetrics.ts b/specification/specs/cluster/cluster_stats/ClusterShardMetrics.ts index c5cdfba0f2..7708926c1f 100644 --- a/specification/specs/cluster/cluster_stats/ClusterShardMetrics.ts +++ b/specification/specs/cluster/cluster_stats/ClusterShardMetrics.ts @@ -1,3 +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. + */ + class ClusterShardMetrics { avg: double max: double diff --git a/specification/specs/cluster/cluster_stats/ClusterStatsRequest.ts b/specification/specs/cluster/cluster_stats/ClusterStatsRequest.ts index 29e2167152..964a89e21d 100644 --- a/specification/specs/cluster/cluster_stats/ClusterStatsRequest.ts +++ b/specification/specs/cluster/cluster_stats/ClusterStatsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cluster.stats') class ClusterStatsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/cluster/cluster_stats/ClusterStatsResponse.ts b/specification/specs/cluster/cluster_stats/ClusterStatsResponse.ts index adb4206f72..888dbe8f9f 100644 --- a/specification/specs/cluster/cluster_stats/ClusterStatsResponse.ts +++ b/specification/specs/cluster/cluster_stats/ClusterStatsResponse.ts @@ -1,3 +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. + */ + class ClusterStatsResponse extends NodesResponseBase { cluster_name: string cluster_uuid: string diff --git a/specification/specs/cluster/cluster_stats/NodePackagingType.ts b/specification/specs/cluster/cluster_stats/NodePackagingType.ts index 29ca80aed0..d3e427a18f 100644 --- a/specification/specs/cluster/cluster_stats/NodePackagingType.ts +++ b/specification/specs/cluster/cluster_stats/NodePackagingType.ts @@ -1,3 +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. + */ + class NodePackagingType { count: integer flavor: string diff --git a/specification/specs/cluster/cluster_stats/OperatingSystemMemoryInfo.ts b/specification/specs/cluster/cluster_stats/OperatingSystemMemoryInfo.ts index cd2e0cc03e..34e49a8dc4 100644 --- a/specification/specs/cluster/cluster_stats/OperatingSystemMemoryInfo.ts +++ b/specification/specs/cluster/cluster_stats/OperatingSystemMemoryInfo.ts @@ -1,3 +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. + */ + class OperatingSystemMemoryInfo { free_in_bytes: long free_percent: integer diff --git a/specification/specs/cluster/nodes_hot_threads/HotThreadInformation.ts b/specification/specs/cluster/nodes_hot_threads/HotThreadInformation.ts index f07bd5b192..acda30ce90 100644 --- a/specification/specs/cluster/nodes_hot_threads/HotThreadInformation.ts +++ b/specification/specs/cluster/nodes_hot_threads/HotThreadInformation.ts @@ -1,3 +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. + */ + class HotThreadInformation { hosts: string[] node_id: string diff --git a/specification/specs/cluster/nodes_hot_threads/NodesHotThreadsRequest.ts b/specification/specs/cluster/nodes_hot_threads/NodesHotThreadsRequest.ts index 01db5621a3..df530f2fa4 100644 --- a/specification/specs/cluster/nodes_hot_threads/NodesHotThreadsRequest.ts +++ b/specification/specs/cluster/nodes_hot_threads/NodesHotThreadsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('nodes.hot_threads') class NodesHotThreadsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/cluster/nodes_hot_threads/NodesHotThreadsResponse.ts b/specification/specs/cluster/nodes_hot_threads/NodesHotThreadsResponse.ts index e575f7493d..9adf027228 100644 --- a/specification/specs/cluster/nodes_hot_threads/NodesHotThreadsResponse.ts +++ b/specification/specs/cluster/nodes_hot_threads/NodesHotThreadsResponse.ts @@ -1,3 +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. + */ + class NodesHotThreadsResponse extends ResponseBase { hot_threads: HotThreadInformation[] } diff --git a/specification/specs/cluster/nodes_info/ClusterOperatingSystemPrettyNane.ts b/specification/specs/cluster/nodes_info/ClusterOperatingSystemPrettyNane.ts index e456cc1bfe..589e01964b 100644 --- a/specification/specs/cluster/nodes_info/ClusterOperatingSystemPrettyNane.ts +++ b/specification/specs/cluster/nodes_info/ClusterOperatingSystemPrettyNane.ts @@ -1,3 +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. + */ + class ClusterOperatingSystemPrettyNane { count: integer pretty_name: string diff --git a/specification/specs/cluster/nodes_info/NodeInfo.ts b/specification/specs/cluster/nodes_info/NodeInfo.ts index 5b698832c5..6864ce6277 100644 --- a/specification/specs/cluster/nodes_info/NodeInfo.ts +++ b/specification/specs/cluster/nodes_info/NodeInfo.ts @@ -1,3 +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. + */ + class NodeInfo { attributes: Dictionary build_flavor: string diff --git a/specification/specs/cluster/nodes_info/NodeInfoHttp.ts b/specification/specs/cluster/nodes_info/NodeInfoHttp.ts index 055ef8c625..8e111dfdea 100644 --- a/specification/specs/cluster/nodes_info/NodeInfoHttp.ts +++ b/specification/specs/cluster/nodes_info/NodeInfoHttp.ts @@ -1,3 +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. + */ + class NodeInfoHttp { bound_address: string[] max_content_length: string diff --git a/specification/specs/cluster/nodes_info/NodeInfoJvmMemory.ts b/specification/specs/cluster/nodes_info/NodeInfoJvmMemory.ts index efcc1f2d6e..e1b75ae92a 100644 --- a/specification/specs/cluster/nodes_info/NodeInfoJvmMemory.ts +++ b/specification/specs/cluster/nodes_info/NodeInfoJvmMemory.ts @@ -1,3 +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. + */ + class NodeInfoJvmMemory { direct_max: string direct_max_in_bytes: long diff --git a/specification/specs/cluster/nodes_info/NodeInfoMemory.ts b/specification/specs/cluster/nodes_info/NodeInfoMemory.ts index f0fa9d219d..6e923550c4 100644 --- a/specification/specs/cluster/nodes_info/NodeInfoMemory.ts +++ b/specification/specs/cluster/nodes_info/NodeInfoMemory.ts @@ -1,3 +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. + */ + class NodeInfoMemory { total: string total_in_bytes: long diff --git a/specification/specs/cluster/nodes_info/NodeInfoNetwork.ts b/specification/specs/cluster/nodes_info/NodeInfoNetwork.ts index 6620e267b9..29ca0ce139 100644 --- a/specification/specs/cluster/nodes_info/NodeInfoNetwork.ts +++ b/specification/specs/cluster/nodes_info/NodeInfoNetwork.ts @@ -1,3 +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. + */ + class NodeInfoNetwork { primary_interface: NodeInfoNetworkInterface refresh_interval: integer diff --git a/specification/specs/cluster/nodes_info/NodeInfoNetworkInterface.ts b/specification/specs/cluster/nodes_info/NodeInfoNetworkInterface.ts index 4b2418fcbf..39f26ee404 100644 --- a/specification/specs/cluster/nodes_info/NodeInfoNetworkInterface.ts +++ b/specification/specs/cluster/nodes_info/NodeInfoNetworkInterface.ts @@ -1,3 +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. + */ + class NodeInfoNetworkInterface { address: string mac_address: string diff --git a/specification/specs/cluster/nodes_info/NodeInfoOSCPU.ts b/specification/specs/cluster/nodes_info/NodeInfoOSCPU.ts index 9391005d57..d678952743 100644 --- a/specification/specs/cluster/nodes_info/NodeInfoOSCPU.ts +++ b/specification/specs/cluster/nodes_info/NodeInfoOSCPU.ts @@ -1,3 +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. + */ + class NodeInfoOSCPU { cache_size: string cache_size_in_bytes: integer diff --git a/specification/specs/cluster/nodes_info/NodeInfoTransport.ts b/specification/specs/cluster/nodes_info/NodeInfoTransport.ts index 4402e28f60..6304e7b8cb 100644 --- a/specification/specs/cluster/nodes_info/NodeInfoTransport.ts +++ b/specification/specs/cluster/nodes_info/NodeInfoTransport.ts @@ -1,3 +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. + */ + class NodeInfoTransport { bound_address: string[] publish_address: string diff --git a/specification/specs/cluster/nodes_info/NodeJvmInfo.ts b/specification/specs/cluster/nodes_info/NodeJvmInfo.ts index 6ae068c05d..c9586de24b 100644 --- a/specification/specs/cluster/nodes_info/NodeJvmInfo.ts +++ b/specification/specs/cluster/nodes_info/NodeJvmInfo.ts @@ -1,3 +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. + */ + class NodeJvmInfo { gc_collectors: string[] mem: NodeInfoJvmMemory diff --git a/specification/specs/cluster/nodes_info/NodeOperatingSystemInfo.ts b/specification/specs/cluster/nodes_info/NodeOperatingSystemInfo.ts index ef98031dd1..9f7cb5329f 100644 --- a/specification/specs/cluster/nodes_info/NodeOperatingSystemInfo.ts +++ b/specification/specs/cluster/nodes_info/NodeOperatingSystemInfo.ts @@ -1,3 +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. + */ + class NodeOperatingSystemInfo { arch: string available_processors: integer diff --git a/specification/specs/cluster/nodes_info/NodeProcessInfo.ts b/specification/specs/cluster/nodes_info/NodeProcessInfo.ts index 2853b24cf8..6f7046cd17 100644 --- a/specification/specs/cluster/nodes_info/NodeProcessInfo.ts +++ b/specification/specs/cluster/nodes_info/NodeProcessInfo.ts @@ -1,3 +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. + */ + class NodeProcessInfo { id: long mlockall: boolean diff --git a/specification/specs/cluster/nodes_info/NodeRole.ts b/specification/specs/cluster/nodes_info/NodeRole.ts index a4fe269b79..74b384b050 100644 --- a/specification/specs/cluster/nodes_info/NodeRole.ts +++ b/specification/specs/cluster/nodes_info/NodeRole.ts @@ -1,3 +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. + */ + enum NodeRole { master = 0, data = 1, diff --git a/specification/specs/cluster/nodes_info/NodeThreadPoolInfo.ts b/specification/specs/cluster/nodes_info/NodeThreadPoolInfo.ts index 1abc146ac1..2757816b71 100644 --- a/specification/specs/cluster/nodes_info/NodeThreadPoolInfo.ts +++ b/specification/specs/cluster/nodes_info/NodeThreadPoolInfo.ts @@ -1,3 +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. + */ + class NodeThreadPoolInfo { core: integer keep_alive: string diff --git a/specification/specs/cluster/nodes_info/NodesInfoRequest.ts b/specification/specs/cluster/nodes_info/NodesInfoRequest.ts index 2a9bda639b..1c4bccf744 100644 --- a/specification/specs/cluster/nodes_info/NodesInfoRequest.ts +++ b/specification/specs/cluster/nodes_info/NodesInfoRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('nodes.info') class NodesInfoRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/cluster/nodes_info/NodesInfoResponse.ts b/specification/specs/cluster/nodes_info/NodesInfoResponse.ts index 823aa7b232..a240516273 100644 --- a/specification/specs/cluster/nodes_info/NodesInfoResponse.ts +++ b/specification/specs/cluster/nodes_info/NodesInfoResponse.ts @@ -1,3 +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. + */ + class NodesInfoResponse extends NodesResponseBase { cluster_name: string /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ diff --git a/specification/specs/cluster/nodes_stats/AdaptiveSelectionStats.ts b/specification/specs/cluster/nodes_stats/AdaptiveSelectionStats.ts index 81cfc34613..ff5f945fdb 100644 --- a/specification/specs/cluster/nodes_stats/AdaptiveSelectionStats.ts +++ b/specification/specs/cluster/nodes_stats/AdaptiveSelectionStats.ts @@ -1,3 +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. + */ + class AdaptiveSelectionStats { avg_queue_size: long avg_response_time: long diff --git a/specification/specs/cluster/nodes_stats/BreakerStats.ts b/specification/specs/cluster/nodes_stats/BreakerStats.ts index 3e9d14bc37..5f66acb76f 100644 --- a/specification/specs/cluster/nodes_stats/BreakerStats.ts +++ b/specification/specs/cluster/nodes_stats/BreakerStats.ts @@ -1,3 +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. + */ + class BreakerStats { estimated_size: string estimated_size_in_bytes: long diff --git a/specification/specs/cluster/nodes_stats/CPUStats.ts b/specification/specs/cluster/nodes_stats/CPUStats.ts index f0008cd962..ca9c72f501 100644 --- a/specification/specs/cluster/nodes_stats/CPUStats.ts +++ b/specification/specs/cluster/nodes_stats/CPUStats.ts @@ -1,3 +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. + */ + class CPUStats { percent: integer sys: string diff --git a/specification/specs/cluster/nodes_stats/DataPathStats.ts b/specification/specs/cluster/nodes_stats/DataPathStats.ts index a23579a291..3aa8f41a15 100644 --- a/specification/specs/cluster/nodes_stats/DataPathStats.ts +++ b/specification/specs/cluster/nodes_stats/DataPathStats.ts @@ -1,3 +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. + */ + class DataPathStats { available: string available_in_bytes: long diff --git a/specification/specs/cluster/nodes_stats/ExtendedMemoryStats.ts b/specification/specs/cluster/nodes_stats/ExtendedMemoryStats.ts index 2ddfe8b006..38b04c4a14 100644 --- a/specification/specs/cluster/nodes_stats/ExtendedMemoryStats.ts +++ b/specification/specs/cluster/nodes_stats/ExtendedMemoryStats.ts @@ -1,3 +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. + */ + class ExtendedMemoryStats extends MemoryStats { free_percent: integer used_percent: integer diff --git a/specification/specs/cluster/nodes_stats/FileSystemStats.ts b/specification/specs/cluster/nodes_stats/FileSystemStats.ts index fdebcac23a..6184bd177e 100644 --- a/specification/specs/cluster/nodes_stats/FileSystemStats.ts +++ b/specification/specs/cluster/nodes_stats/FileSystemStats.ts @@ -1,3 +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. + */ + class FileSystemStats { data: DataPathStats[] timestamp: long diff --git a/specification/specs/cluster/nodes_stats/GarbageCollectionGenerationStats.ts b/specification/specs/cluster/nodes_stats/GarbageCollectionGenerationStats.ts index b445bfbd3c..335926f411 100644 --- a/specification/specs/cluster/nodes_stats/GarbageCollectionGenerationStats.ts +++ b/specification/specs/cluster/nodes_stats/GarbageCollectionGenerationStats.ts @@ -1,3 +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. + */ + class GarbageCollectionGenerationStats { collection_count: long collection_time: string diff --git a/specification/specs/cluster/nodes_stats/GarbageCollectionStats.ts b/specification/specs/cluster/nodes_stats/GarbageCollectionStats.ts index ff8282a482..7b85c632f9 100644 --- a/specification/specs/cluster/nodes_stats/GarbageCollectionStats.ts +++ b/specification/specs/cluster/nodes_stats/GarbageCollectionStats.ts @@ -1,3 +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. + */ + class GarbageCollectionStats { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ collectors: Dictionary diff --git a/specification/specs/cluster/nodes_stats/HttpStats.ts b/specification/specs/cluster/nodes_stats/HttpStats.ts index 90471b6da2..39ca75d474 100644 --- a/specification/specs/cluster/nodes_stats/HttpStats.ts +++ b/specification/specs/cluster/nodes_stats/HttpStats.ts @@ -1,3 +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. + */ + class HttpStats { current_open: integer total_opened: long diff --git a/specification/specs/cluster/nodes_stats/JvmClassesStats.ts b/specification/specs/cluster/nodes_stats/JvmClassesStats.ts index 3750112ad8..c322ba4b65 100644 --- a/specification/specs/cluster/nodes_stats/JvmClassesStats.ts +++ b/specification/specs/cluster/nodes_stats/JvmClassesStats.ts @@ -1,3 +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. + */ + class JvmClassesStats { current_loaded_count: long total_loaded_count: long diff --git a/specification/specs/cluster/nodes_stats/JvmPool.ts b/specification/specs/cluster/nodes_stats/JvmPool.ts index 8711f241be..a20b157c72 100644 --- a/specification/specs/cluster/nodes_stats/JvmPool.ts +++ b/specification/specs/cluster/nodes_stats/JvmPool.ts @@ -1,3 +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. + */ + class JvmPool { max: string max_in_bytes: long diff --git a/specification/specs/cluster/nodes_stats/LoadAverageStats.ts b/specification/specs/cluster/nodes_stats/LoadAverageStats.ts index b4b746306e..d35f22b7b5 100644 --- a/specification/specs/cluster/nodes_stats/LoadAverageStats.ts +++ b/specification/specs/cluster/nodes_stats/LoadAverageStats.ts @@ -1,3 +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. + */ + class LoadAverageStats { '15m': float '5m': float diff --git a/specification/specs/cluster/nodes_stats/MemoryStats.ts b/specification/specs/cluster/nodes_stats/MemoryStats.ts index 9274c3a533..9a80eee382 100644 --- a/specification/specs/cluster/nodes_stats/MemoryStats.ts +++ b/specification/specs/cluster/nodes_stats/MemoryStats.ts @@ -1,3 +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. + */ + class MemoryStats { resident: string resident_in_bytes: long diff --git a/specification/specs/cluster/nodes_stats/NodeBufferPool.ts b/specification/specs/cluster/nodes_stats/NodeBufferPool.ts index d6775aac7a..8f8a20be44 100644 --- a/specification/specs/cluster/nodes_stats/NodeBufferPool.ts +++ b/specification/specs/cluster/nodes_stats/NodeBufferPool.ts @@ -1,3 +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. + */ + class NodeBufferPool { count: long total_capacity: string diff --git a/specification/specs/cluster/nodes_stats/NodeJvmStats.ts b/specification/specs/cluster/nodes_stats/NodeJvmStats.ts index 83ae01a9d4..d93e56a79e 100644 --- a/specification/specs/cluster/nodes_stats/NodeJvmStats.ts +++ b/specification/specs/cluster/nodes_stats/NodeJvmStats.ts @@ -1,3 +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. + */ + class NodeJvmStats { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ buffer_pools: Dictionary diff --git a/specification/specs/cluster/nodes_stats/NodeStats.ts b/specification/specs/cluster/nodes_stats/NodeStats.ts index 4b58ddb840..4d9d7f0c9d 100644 --- a/specification/specs/cluster/nodes_stats/NodeStats.ts +++ b/specification/specs/cluster/nodes_stats/NodeStats.ts @@ -1,3 +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. + */ + class NodeStats { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ adaptive_selection: Dictionary diff --git a/specification/specs/cluster/nodes_stats/NodesStatsRequest.ts b/specification/specs/cluster/nodes_stats/NodesStatsRequest.ts index 9a16e98e2a..7f96794e47 100644 --- a/specification/specs/cluster/nodes_stats/NodesStatsRequest.ts +++ b/specification/specs/cluster/nodes_stats/NodesStatsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('nodes.stats') class NodesStatsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/cluster/nodes_stats/NodesStatsResponse.ts b/specification/specs/cluster/nodes_stats/NodesStatsResponse.ts index 5f6a9ae500..b68789c2ff 100644 --- a/specification/specs/cluster/nodes_stats/NodesStatsResponse.ts +++ b/specification/specs/cluster/nodes_stats/NodesStatsResponse.ts @@ -1,3 +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. + */ + class NodesStatsResponse extends NodesResponseBase { cluster_name: string /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ diff --git a/specification/specs/cluster/nodes_stats/OperatingSystemStats.ts b/specification/specs/cluster/nodes_stats/OperatingSystemStats.ts index abe8bdc212..d23a7da328 100644 --- a/specification/specs/cluster/nodes_stats/OperatingSystemStats.ts +++ b/specification/specs/cluster/nodes_stats/OperatingSystemStats.ts @@ -1,3 +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. + */ + class OperatingSystemStats { cpu: CPUStats mem: ExtendedMemoryStats diff --git a/specification/specs/cluster/nodes_stats/ProcessStats.ts b/specification/specs/cluster/nodes_stats/ProcessStats.ts index 63fce0488e..7ff78b3387 100644 --- a/specification/specs/cluster/nodes_stats/ProcessStats.ts +++ b/specification/specs/cluster/nodes_stats/ProcessStats.ts @@ -1,3 +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. + */ + class ProcessStats { cpu: CPUStats mem: MemoryStats diff --git a/specification/specs/cluster/nodes_stats/ScriptStats.ts b/specification/specs/cluster/nodes_stats/ScriptStats.ts index 8cdb75e678..220f398cb1 100644 --- a/specification/specs/cluster/nodes_stats/ScriptStats.ts +++ b/specification/specs/cluster/nodes_stats/ScriptStats.ts @@ -1,3 +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. + */ + class ScriptStats { cache_evictions: long compilations: long diff --git a/specification/specs/cluster/nodes_stats/ThreadCountStats.ts b/specification/specs/cluster/nodes_stats/ThreadCountStats.ts index ffe4e8a953..7420b2be18 100644 --- a/specification/specs/cluster/nodes_stats/ThreadCountStats.ts +++ b/specification/specs/cluster/nodes_stats/ThreadCountStats.ts @@ -1,3 +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. + */ + class ThreadCountStats { active: long completed: long diff --git a/specification/specs/cluster/nodes_stats/ThreadStats.ts b/specification/specs/cluster/nodes_stats/ThreadStats.ts index 5c30a8e670..4664fc8cc7 100644 --- a/specification/specs/cluster/nodes_stats/ThreadStats.ts +++ b/specification/specs/cluster/nodes_stats/ThreadStats.ts @@ -1,3 +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. + */ + class ThreadStats { count: long peak_count: long diff --git a/specification/specs/cluster/nodes_stats/TotalFileSystemStats.ts b/specification/specs/cluster/nodes_stats/TotalFileSystemStats.ts index 93afe74193..950dec3bdd 100644 --- a/specification/specs/cluster/nodes_stats/TotalFileSystemStats.ts +++ b/specification/specs/cluster/nodes_stats/TotalFileSystemStats.ts @@ -1,3 +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. + */ + class TotalFileSystemStats { available: string available_in_bytes: long diff --git a/specification/specs/cluster/nodes_stats/TransportStats.ts b/specification/specs/cluster/nodes_stats/TransportStats.ts index 2457129fe0..73d164ee26 100644 --- a/specification/specs/cluster/nodes_stats/TransportStats.ts +++ b/specification/specs/cluster/nodes_stats/TransportStats.ts @@ -1,3 +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. + */ + class TransportStats { rx_count: long rx_size: string diff --git a/specification/specs/cluster/nodes_stats/statistics/IngestStats.ts b/specification/specs/cluster/nodes_stats/statistics/IngestStats.ts index c7b0d05bd9..0adfaa2066 100644 --- a/specification/specs/cluster/nodes_stats/statistics/IngestStats.ts +++ b/specification/specs/cluster/nodes_stats/statistics/IngestStats.ts @@ -1,3 +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. + */ + class IngestStats { count: long current: long diff --git a/specification/specs/cluster/nodes_stats/statistics/KeyedProcessorStats.ts b/specification/specs/cluster/nodes_stats/statistics/KeyedProcessorStats.ts index d94fe87283..42fa07267f 100644 --- a/specification/specs/cluster/nodes_stats/statistics/KeyedProcessorStats.ts +++ b/specification/specs/cluster/nodes_stats/statistics/KeyedProcessorStats.ts @@ -1,3 +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. + */ + @class_serializer('KeyedProcessorStatsFormatter') class KeyedProcessorStats { statistics: ProcessStats diff --git a/specification/specs/cluster/nodes_stats/statistics/NodeIngestStats.ts b/specification/specs/cluster/nodes_stats/statistics/NodeIngestStats.ts index fab890c5fe..8508cd679b 100644 --- a/specification/specs/cluster/nodes_stats/statistics/NodeIngestStats.ts +++ b/specification/specs/cluster/nodes_stats/statistics/NodeIngestStats.ts @@ -1,3 +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. + */ + class NodeIngestStats { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ pipelines: Dictionary diff --git a/specification/specs/cluster/nodes_usage/NodeUsageInformation.ts b/specification/specs/cluster/nodes_usage/NodeUsageInformation.ts index f6571cc6ff..e359d94c4f 100644 --- a/specification/specs/cluster/nodes_usage/NodeUsageInformation.ts +++ b/specification/specs/cluster/nodes_usage/NodeUsageInformation.ts @@ -1,3 +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. + */ + class NodeUsageInformation { rest_actions: Dictionary /** @prop_serializer DateTimeOffsetEpochMillisecondsFormatter */ diff --git a/specification/specs/cluster/nodes_usage/NodesUsageRequest.ts b/specification/specs/cluster/nodes_usage/NodesUsageRequest.ts index 2f19ba593a..392c28f791 100644 --- a/specification/specs/cluster/nodes_usage/NodesUsageRequest.ts +++ b/specification/specs/cluster/nodes_usage/NodesUsageRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('nodes.usage') class NodesUsageRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/cluster/nodes_usage/NodesUsageResponse.ts b/specification/specs/cluster/nodes_usage/NodesUsageResponse.ts index 0d4aadee16..dd21829135 100644 --- a/specification/specs/cluster/nodes_usage/NodesUsageResponse.ts +++ b/specification/specs/cluster/nodes_usage/NodesUsageResponse.ts @@ -1,3 +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. + */ + class NodesUsageResponse extends NodesResponseBase { cluster_name: string nodes: Dictionary diff --git a/specification/specs/cluster/ping/PingRequest.ts b/specification/specs/cluster/ping/PingRequest.ts index f71b07be25..d83077d123 100644 --- a/specification/specs/cluster/ping/PingRequest.ts +++ b/specification/specs/cluster/ping/PingRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ping') class PingRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/cluster/ping/PingResponse.ts b/specification/specs/cluster/ping/PingResponse.ts index 0c4e6ccede..204e28dc4c 100644 --- a/specification/specs/cluster/ping/PingResponse.ts +++ b/specification/specs/cluster/ping/PingResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PingResponse extends ResponseBase implements EmptyResponseBase {} diff --git a/specification/specs/cluster/reload_secure_settings/ReloadSecureSettingsRequest.ts b/specification/specs/cluster/reload_secure_settings/ReloadSecureSettingsRequest.ts index e382d56968..6d730ab5fc 100644 --- a/specification/specs/cluster/reload_secure_settings/ReloadSecureSettingsRequest.ts +++ b/specification/specs/cluster/reload_secure_settings/ReloadSecureSettingsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('nodes.reload_secure_settings') class ReloadSecureSettingsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/cluster/reload_secure_settings/ReloadSecureSettingsResponse.ts b/specification/specs/cluster/reload_secure_settings/ReloadSecureSettingsResponse.ts index a99661842e..d80a6c1ad5 100644 --- a/specification/specs/cluster/reload_secure_settings/ReloadSecureSettingsResponse.ts +++ b/specification/specs/cluster/reload_secure_settings/ReloadSecureSettingsResponse.ts @@ -1,3 +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. + */ + class ReloadSecureSettingsResponse extends NodesResponseBase { cluster_name: string /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ diff --git a/specification/specs/cluster/remote_info/RemoteInfo.ts b/specification/specs/cluster/remote_info/RemoteInfo.ts index 0e690e0d48..d43447707b 100644 --- a/specification/specs/cluster/remote_info/RemoteInfo.ts +++ b/specification/specs/cluster/remote_info/RemoteInfo.ts @@ -1,3 +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. + */ + class RemoteInfo { connected: boolean initial_connect_timeout: Time diff --git a/specification/specs/cluster/remote_info/RemoteInfoRequest.ts b/specification/specs/cluster/remote_info/RemoteInfoRequest.ts index 9cfc40fa3c..5dc5ea9b38 100644 --- a/specification/specs/cluster/remote_info/RemoteInfoRequest.ts +++ b/specification/specs/cluster/remote_info/RemoteInfoRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('cluster.remote_info') class RemoteInfoRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/cluster/remote_info/RemoteInfoResponse.ts b/specification/specs/cluster/remote_info/RemoteInfoResponse.ts index 2ce8f6f0c6..414abaee50 100644 --- a/specification/specs/cluster/remote_info/RemoteInfoResponse.ts +++ b/specification/specs/cluster/remote_info/RemoteInfoResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class RemoteInfoResponse extends DictionaryResponseBase {} diff --git a/specification/specs/cluster/root_node_info/RootNodeInfoRequest.ts b/specification/specs/cluster/root_node_info/RootNodeInfoRequest.ts index 524253c6ee..bd00ff2f68 100644 --- a/specification/specs/cluster/root_node_info/RootNodeInfoRequest.ts +++ b/specification/specs/cluster/root_node_info/RootNodeInfoRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('info') class RootNodeInfoRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/cluster/root_node_info/RootNodeInfoResponse.ts b/specification/specs/cluster/root_node_info/RootNodeInfoResponse.ts index afe5a12632..e74e27f499 100644 --- a/specification/specs/cluster/root_node_info/RootNodeInfoResponse.ts +++ b/specification/specs/cluster/root_node_info/RootNodeInfoResponse.ts @@ -1,3 +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. + */ + class RootNodeInfoResponse extends ResponseBase { cluster_name: string cluster_uuid: string diff --git a/specification/specs/cluster/task_management/cancel_tasks/CancelTasksRequest.ts b/specification/specs/cluster/task_management/cancel_tasks/CancelTasksRequest.ts index 04e21c7e0c..cb366ef88a 100644 --- a/specification/specs/cluster/task_management/cancel_tasks/CancelTasksRequest.ts +++ b/specification/specs/cluster/task_management/cancel_tasks/CancelTasksRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('tasks.cancel') class CancelTasksRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/cluster/task_management/cancel_tasks/CancelTasksResponse.ts b/specification/specs/cluster/task_management/cancel_tasks/CancelTasksResponse.ts index ccd9324e0d..aed9c97d16 100644 --- a/specification/specs/cluster/task_management/cancel_tasks/CancelTasksResponse.ts +++ b/specification/specs/cluster/task_management/cancel_tasks/CancelTasksResponse.ts @@ -1,3 +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. + */ + class CancelTasksResponse extends ResponseBase { node_failures: ErrorCause[] nodes: Dictionary diff --git a/specification/specs/cluster/task_management/get_task/GetTaskRequest.ts b/specification/specs/cluster/task_management/get_task/GetTaskRequest.ts index 48fda0533e..3538691892 100644 --- a/specification/specs/cluster/task_management/get_task/GetTaskRequest.ts +++ b/specification/specs/cluster/task_management/get_task/GetTaskRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('tasks.get') class GetTaskRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/cluster/task_management/get_task/GetTaskResponse.ts b/specification/specs/cluster/task_management/get_task/GetTaskResponse.ts index 870f863742..3defbc992c 100644 --- a/specification/specs/cluster/task_management/get_task/GetTaskResponse.ts +++ b/specification/specs/cluster/task_management/get_task/GetTaskResponse.ts @@ -1,3 +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. + */ + class GetTaskResponse extends ResponseBase { completed: boolean task: TaskInfo diff --git a/specification/specs/cluster/task_management/get_task/TaskInfo.ts b/specification/specs/cluster/task_management/get_task/TaskInfo.ts index 9a95f6945d..ab66dd12ca 100644 --- a/specification/specs/cluster/task_management/get_task/TaskInfo.ts +++ b/specification/specs/cluster/task_management/get_task/TaskInfo.ts @@ -1,3 +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. + */ + class TaskInfo { action: string cancellable: boolean diff --git a/specification/specs/cluster/task_management/list_tasks/ListTasksRequest.ts b/specification/specs/cluster/task_management/list_tasks/ListTasksRequest.ts index 053e7bf57d..ba9ecf71d6 100644 --- a/specification/specs/cluster/task_management/list_tasks/ListTasksRequest.ts +++ b/specification/specs/cluster/task_management/list_tasks/ListTasksRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('tasks.list') class ListTasksRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/cluster/task_management/list_tasks/ListTasksResponse.ts b/specification/specs/cluster/task_management/list_tasks/ListTasksResponse.ts index 375c966c8e..1e4d727081 100644 --- a/specification/specs/cluster/task_management/list_tasks/ListTasksResponse.ts +++ b/specification/specs/cluster/task_management/list_tasks/ListTasksResponse.ts @@ -1,3 +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. + */ + class ListTasksResponse extends ResponseBase { node_failures: ErrorCause[] nodes: Dictionary diff --git a/specification/specs/cluster/task_management/list_tasks/TaskExecutingNode.ts b/specification/specs/cluster/task_management/list_tasks/TaskExecutingNode.ts index f3421c93aa..3cba9b2cbd 100644 --- a/specification/specs/cluster/task_management/list_tasks/TaskExecutingNode.ts +++ b/specification/specs/cluster/task_management/list_tasks/TaskExecutingNode.ts @@ -1,3 +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. + */ + class TaskExecutingNode { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ attributes: Dictionary diff --git a/specification/specs/cluster/task_management/list_tasks/TaskRetries.ts b/specification/specs/cluster/task_management/list_tasks/TaskRetries.ts index 46ff0a933d..86c509fbee 100644 --- a/specification/specs/cluster/task_management/list_tasks/TaskRetries.ts +++ b/specification/specs/cluster/task_management/list_tasks/TaskRetries.ts @@ -1,3 +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. + */ + class TaskRetries { bulk: integer search: integer diff --git a/specification/specs/cluster/task_management/list_tasks/TaskState.ts b/specification/specs/cluster/task_management/list_tasks/TaskState.ts index 2be00ff83d..35c85f3723 100644 --- a/specification/specs/cluster/task_management/list_tasks/TaskState.ts +++ b/specification/specs/cluster/task_management/list_tasks/TaskState.ts @@ -1,3 +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. + */ + class TaskState { action: string cancellable: boolean diff --git a/specification/specs/cluster/task_management/list_tasks/TaskStatus.ts b/specification/specs/cluster/task_management/list_tasks/TaskStatus.ts index 313eba19b1..f63b6c0e52 100644 --- a/specification/specs/cluster/task_management/list_tasks/TaskStatus.ts +++ b/specification/specs/cluster/task_management/list_tasks/TaskStatus.ts @@ -1,3 +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. + */ + class TaskStatus { batches: long created: long diff --git a/specification/specs/common.ts b/specification/specs/common.ts index 4ed7b6c10d..7315daae4e 100644 --- a/specification/specs/common.ts +++ b/specification/specs/common.ts @@ -1,3 +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. + */ + function class_serializer(ns: string) { return function (ns: any) {} } diff --git a/specification/specs/common/Bytes.ts b/specification/specs/common/Bytes.ts index b37eb4547f..99d5ebe96e 100644 --- a/specification/specs/common/Bytes.ts +++ b/specification/specs/common/Bytes.ts @@ -1,3 +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. + */ + enum Bytes { b = 0, k = 1, diff --git a/specification/specs/common/Conflicts.ts b/specification/specs/common/Conflicts.ts index 8e6b890181..bc5749b4e2 100644 --- a/specification/specs/common/Conflicts.ts +++ b/specification/specs/common/Conflicts.ts @@ -1,3 +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. + */ + enum Conflicts { abort = 0, proceed = 1 diff --git a/specification/specs/common/CustomResponseBuilderBase.ts b/specification/specs/common/CustomResponseBuilderBase.ts index ada1037b54..6558b5ed3a 100644 --- a/specification/specs/common/CustomResponseBuilderBase.ts +++ b/specification/specs/common/CustomResponseBuilderBase.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class CustomResponseBuilderBase {} diff --git a/specification/specs/common/DefaultOperator.ts b/specification/specs/common/DefaultOperator.ts index b40c52903d..50f4740778 100644 --- a/specification/specs/common/DefaultOperator.ts +++ b/specification/specs/common/DefaultOperator.ts @@ -1,3 +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. + */ + enum DefaultOperator { AND = 0, OR = 1 diff --git a/specification/specs/common/Dictionary.ts b/specification/specs/common/Dictionary.ts index 0b23da413f..5b541e8de0 100644 --- a/specification/specs/common/Dictionary.ts +++ b/specification/specs/common/Dictionary.ts @@ -1,3 +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. + */ + class Dictionary {} class SingleKeyDictionary {} diff --git a/specification/specs/common/ElasticsearchResponse.ts b/specification/specs/common/ElasticsearchResponse.ts index 0bb1796fe6..a6119293e9 100644 --- a/specification/specs/common/ElasticsearchResponse.ts +++ b/specification/specs/common/ElasticsearchResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ElasticsearchResponse {} diff --git a/specification/specs/common/ElasticsearchUrlFormatter.ts b/specification/specs/common/ElasticsearchUrlFormatter.ts index 976b248589..ca237597db 100644 --- a/specification/specs/common/ElasticsearchUrlFormatter.ts +++ b/specification/specs/common/ElasticsearchUrlFormatter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ElasticsearchUrlFormatter {} diff --git a/specification/specs/common/ExpandWildcards.ts b/specification/specs/common/ExpandWildcards.ts index 12f573679e..a33279e609 100644 --- a/specification/specs/common/ExpandWildcards.ts +++ b/specification/specs/common/ExpandWildcards.ts @@ -1,3 +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. + */ + enum ExpandWildcardOptions { open = 0, closed = 1, diff --git a/specification/specs/common/GroupBy.ts b/specification/specs/common/GroupBy.ts index f1ea93de65..cac153a446 100644 --- a/specification/specs/common/GroupBy.ts +++ b/specification/specs/common/GroupBy.ts @@ -1,3 +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. + */ + enum GroupBy { nodes = 0, parents = 1, diff --git a/specification/specs/common/Health.ts b/specification/specs/common/Health.ts index 66a8730c54..69317a47da 100644 --- a/specification/specs/common/Health.ts +++ b/specification/specs/common/Health.ts @@ -1,3 +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. + */ + enum Health { green = 0, yellow = 1, diff --git a/specification/specs/common/HttpMethod.ts b/specification/specs/common/HttpMethod.ts index 7289c452d9..8529ddfe74 100644 --- a/specification/specs/common/HttpMethod.ts +++ b/specification/specs/common/HttpMethod.ts @@ -1,3 +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. + */ + enum HttpMethod { GET = 0, POST = 1, diff --git a/specification/specs/common/Level.ts b/specification/specs/common/Level.ts index 46e0cbb731..40b096c862 100644 --- a/specification/specs/common/Level.ts +++ b/specification/specs/common/Level.ts @@ -1,3 +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. + */ + enum Level { cluster = 0, indices = 1, diff --git a/specification/specs/common/OpType.ts b/specification/specs/common/OpType.ts index f39a5a072c..ff1f70c2ea 100644 --- a/specification/specs/common/OpType.ts +++ b/specification/specs/common/OpType.ts @@ -1,3 +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. + */ + enum OpType { index = 0, create = 1 diff --git a/specification/specs/common/PipelineFailure.ts b/specification/specs/common/PipelineFailure.ts index 12c362173e..72aebef004 100644 --- a/specification/specs/common/PipelineFailure.ts +++ b/specification/specs/common/PipelineFailure.ts @@ -1,3 +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. + */ + enum PipelineFailure { BadAuthentication = 0, BadResponse = 1, diff --git a/specification/specs/common/Refresh.ts b/specification/specs/common/Refresh.ts index 0f80cc83aa..7127a36a06 100644 --- a/specification/specs/common/Refresh.ts +++ b/specification/specs/common/Refresh.ts @@ -1,3 +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. + */ + type Refresh = boolean | RefreshOptions enum RefreshOptions { wait_for = 1 diff --git a/specification/specs/common/SearchType.ts b/specification/specs/common/SearchType.ts index b0a3b01855..c5db802abd 100644 --- a/specification/specs/common/SearchType.ts +++ b/specification/specs/common/SearchType.ts @@ -1,3 +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. + */ + enum SearchType { query_then_fetch = 0, dfs_query_then_fetch = 1 diff --git a/specification/specs/common/ShardFailure.ts b/specification/specs/common/ShardFailure.ts index 11f2d8fd12..68abefa98c 100644 --- a/specification/specs/common/ShardFailure.ts +++ b/specification/specs/common/ShardFailure.ts @@ -1,3 +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. + */ + class ShardFailure { index: string node: string diff --git a/specification/specs/common/Size.ts b/specification/specs/common/Size.ts index c25a67c7e1..7c59197443 100644 --- a/specification/specs/common/Size.ts +++ b/specification/specs/common/Size.ts @@ -1,3 +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. + */ + enum Size { Raw = 0, k = 1, diff --git a/specification/specs/common/SuggestMode.ts b/specification/specs/common/SuggestMode.ts index 453c70bdc4..adf51fc43f 100644 --- a/specification/specs/common/SuggestMode.ts +++ b/specification/specs/common/SuggestMode.ts @@ -1,3 +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. + */ + enum SuggestMode { missing = 0, popular = 1, diff --git a/specification/specs/common/ThreadType.ts b/specification/specs/common/ThreadType.ts index f74180e74c..045fc841f6 100644 --- a/specification/specs/common/ThreadType.ts +++ b/specification/specs/common/ThreadType.ts @@ -1,3 +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. + */ + enum ThreadType { cpu = 0, wait = 1, diff --git a/specification/specs/common/UrlParameter.ts b/specification/specs/common/UrlParameter.ts index 01e3861e2b..0814a147d9 100644 --- a/specification/specs/common/UrlParameter.ts +++ b/specification/specs/common/UrlParameter.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class UrlParameter {} diff --git a/specification/specs/common/VersionType.ts b/specification/specs/common/VersionType.ts index 91f835d7ca..ce80ad0243 100644 --- a/specification/specs/common/VersionType.ts +++ b/specification/specs/common/VersionType.ts @@ -1,3 +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. + */ + enum VersionType { internal = 0, external = 1, diff --git a/specification/specs/common/WaitForEvents.ts b/specification/specs/common/WaitForEvents.ts index 855892092b..4d71163afa 100644 --- a/specification/specs/common/WaitForEvents.ts +++ b/specification/specs/common/WaitForEvents.ts @@ -1,3 +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. + */ + enum WaitForEvents { immediate = 0, urgent = 1, diff --git a/specification/specs/common/WaitForStatus.ts b/specification/specs/common/WaitForStatus.ts index 6d1ca0b3c0..3044f10821 100644 --- a/specification/specs/common/WaitForStatus.ts +++ b/specification/specs/common/WaitForStatus.ts @@ -1,3 +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. + */ + enum WaitForStatus { green = 0, yellow = 1, diff --git a/specification/specs/common_abstractions/request/RequestBase.ts b/specification/specs/common_abstractions/request/RequestBase.ts index a1046326ac..e66fe203f7 100644 --- a/specification/specs/common_abstractions/request/RequestBase.ts +++ b/specification/specs/common_abstractions/request/RequestBase.ts @@ -1,3 +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. + */ + // Any property here is a common query parameter for each Request. class RequestBase { error_trace?: boolean diff --git a/specification/specs/common_abstractions/response/AcknowledgedResponseBase.ts b/specification/specs/common_abstractions/response/AcknowledgedResponseBase.ts index 77bf46c39a..29653de73b 100644 --- a/specification/specs/common_abstractions/response/AcknowledgedResponseBase.ts +++ b/specification/specs/common_abstractions/response/AcknowledgedResponseBase.ts @@ -1,3 +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. + */ + class AcknowledgedResponseBase extends ResponseBase { acknowledged: boolean } diff --git a/specification/specs/common_abstractions/response/DictionaryResponseBase.ts b/specification/specs/common_abstractions/response/DictionaryResponseBase.ts index f50e4e0391..62104c4f27 100644 --- a/specification/specs/common_abstractions/response/DictionaryResponseBase.ts +++ b/specification/specs/common_abstractions/response/DictionaryResponseBase.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DictionaryResponseBase extends ResponseBase {} diff --git a/specification/specs/common_abstractions/response/DynamicResponseBase.ts b/specification/specs/common_abstractions/response/DynamicResponseBase.ts index 9b7406fb44..146dabd125 100644 --- a/specification/specs/common_abstractions/response/DynamicResponseBase.ts +++ b/specification/specs/common_abstractions/response/DynamicResponseBase.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DynamicResponseBase extends ResponseBase {} diff --git a/specification/specs/common_abstractions/response/ElasticsearchVersionInfo.ts b/specification/specs/common_abstractions/response/ElasticsearchVersionInfo.ts index 33ac915074..e9877780d4 100644 --- a/specification/specs/common_abstractions/response/ElasticsearchVersionInfo.ts +++ b/specification/specs/common_abstractions/response/ElasticsearchVersionInfo.ts @@ -1,3 +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. + */ + class ElasticsearchVersionInfo { build_date: Date build_flavor: string diff --git a/specification/specs/common_abstractions/response/ErrorResponseBase.ts b/specification/specs/common_abstractions/response/ErrorResponseBase.ts index 8ee57753bb..ed67f31de5 100644 --- a/specification/specs/common_abstractions/response/ErrorResponseBase.ts +++ b/specification/specs/common_abstractions/response/ErrorResponseBase.ts @@ -1,3 +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. + */ + class ErrorResponse { error: MainError status: integer diff --git a/specification/specs/common_abstractions/response/IndicesResponseBase.ts b/specification/specs/common_abstractions/response/IndicesResponseBase.ts index d7c3aa84c9..145e65042b 100644 --- a/specification/specs/common_abstractions/response/IndicesResponseBase.ts +++ b/specification/specs/common_abstractions/response/IndicesResponseBase.ts @@ -1,3 +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. + */ + class IndicesResponseBase extends AcknowledgedResponseBase { _shards: ShardStatistics } diff --git a/specification/specs/common_abstractions/response/ResponseBase.ts b/specification/specs/common_abstractions/response/ResponseBase.ts index de1ea2aa46..b1cac4dea5 100644 --- a/specification/specs/common_abstractions/response/ResponseBase.ts +++ b/specification/specs/common_abstractions/response/ResponseBase.ts @@ -1,3 +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. + */ + class ResponseBase { // Do not add properties to this base class. } diff --git a/specification/specs/common_abstractions/response/ShardsOperationResponseBase.ts b/specification/specs/common_abstractions/response/ShardsOperationResponseBase.ts index 1bc2381079..2a493cde88 100644 --- a/specification/specs/common_abstractions/response/ShardsOperationResponseBase.ts +++ b/specification/specs/common_abstractions/response/ShardsOperationResponseBase.ts @@ -1,3 +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. + */ + class ShardsOperationResponseBase extends ResponseBase { _shards: ShardStatistics } diff --git a/specification/specs/common_abstractions/union/Union.ts b/specification/specs/common_abstractions/union/Union.ts index 4dbdb001e7..67481211e2 100644 --- a/specification/specs/common_abstractions/union/Union.ts +++ b/specification/specs/common_abstractions/union/Union.ts @@ -1,2 +1,21 @@ +/* + * 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. + */ + @class_serializer('UnionFormatter`2') class Union {} diff --git a/specification/specs/common_options/date_math/DateMath.ts b/specification/specs/common_options/date_math/DateMath.ts index e15507902a..0ec8846894 100644 --- a/specification/specs/common_options/date_math/DateMath.ts +++ b/specification/specs/common_options/date_math/DateMath.ts @@ -1 +1,20 @@ +/* + * 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. + */ + type DateMath = string diff --git a/specification/specs/common_options/date_math/DateMathExpression.ts b/specification/specs/common_options/date_math/DateMathExpression.ts index 59a7f1cf99..b750d88e18 100644 --- a/specification/specs/common_options/date_math/DateMathExpression.ts +++ b/specification/specs/common_options/date_math/DateMathExpression.ts @@ -1,3 +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. + */ + /* * @class_serializer DateMathExpressionFormatter */ diff --git a/specification/specs/common_options/date_math/DateMathOperation.ts b/specification/specs/common_options/date_math/DateMathOperation.ts index 3401072b8a..513d0bf2e9 100644 --- a/specification/specs/common_options/date_math/DateMathOperation.ts +++ b/specification/specs/common_options/date_math/DateMathOperation.ts @@ -1,3 +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. + */ + enum DateMathOperation { '+' = 0, '-' = 1 diff --git a/specification/specs/common_options/date_math/DateMathTime.ts b/specification/specs/common_options/date_math/DateMathTime.ts index 05aa7e08d0..d330f185bc 100644 --- a/specification/specs/common_options/date_math/DateMathTime.ts +++ b/specification/specs/common_options/date_math/DateMathTime.ts @@ -1,3 +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. + */ + @class_serializer('DateMathTimeFormatter') class DateMathTime { factor: integer diff --git a/specification/specs/common_options/date_math/DateMathTimeUnit.ts b/specification/specs/common_options/date_math/DateMathTimeUnit.ts index 6b3b629e90..fdccade0e5 100644 --- a/specification/specs/common_options/date_math/DateMathTimeUnit.ts +++ b/specification/specs/common_options/date_math/DateMathTimeUnit.ts @@ -1,3 +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. + */ + enum DateMathTimeUnit { /** @alternate_name Second */ s = 0, diff --git a/specification/specs/common_options/geo/Distance.ts b/specification/specs/common_options/geo/Distance.ts index 0a94b2ae00..92894244ee 100644 --- a/specification/specs/common_options/geo/Distance.ts +++ b/specification/specs/common_options/geo/Distance.ts @@ -1,3 +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. + */ + @class_serializer('DistanceFormatter') class Distance { precision: double diff --git a/specification/specs/common_options/geo/DistanceUnit.ts b/specification/specs/common_options/geo/DistanceUnit.ts index 843689544c..f0ed9ca89a 100644 --- a/specification/specs/common_options/geo/DistanceUnit.ts +++ b/specification/specs/common_options/geo/DistanceUnit.ts @@ -1,3 +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. + */ + enum DistanceUnit { in = 0, ft = 1, diff --git a/specification/specs/common_options/geo/GeoDistanceType.ts b/specification/specs/common_options/geo/GeoDistanceType.ts index 33dcc2d839..500674c6ce 100644 --- a/specification/specs/common_options/geo/GeoDistanceType.ts +++ b/specification/specs/common_options/geo/GeoDistanceType.ts @@ -1,3 +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. + */ + enum GeoDistanceType { arc = 0, plane = 1 diff --git a/specification/specs/common_options/geo/GeoShapeRelation.ts b/specification/specs/common_options/geo/GeoShapeRelation.ts index dd47acbfa6..421c267616 100644 --- a/specification/specs/common_options/geo/GeoShapeRelation.ts +++ b/specification/specs/common_options/geo/GeoShapeRelation.ts @@ -1,3 +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. + */ + enum GeoShapeRelation { intersects = 0, disjoint = 1, diff --git a/specification/specs/common_options/hit/ClusterStatistics.ts b/specification/specs/common_options/hit/ClusterStatistics.ts index 59e6cfad54..465bf91a6d 100644 --- a/specification/specs/common_options/hit/ClusterStatistics.ts +++ b/specification/specs/common_options/hit/ClusterStatistics.ts @@ -1,3 +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. + */ + class ClusterStatistics { skipped: integer successful: integer diff --git a/specification/specs/common_options/hit/ShardStatistics.ts b/specification/specs/common_options/hit/ShardStatistics.ts index 8c48b9ef2a..d71c5e6be1 100644 --- a/specification/specs/common_options/hit/ShardStatistics.ts +++ b/specification/specs/common_options/hit/ShardStatistics.ts @@ -1,3 +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. + */ + class ShardStatistics { failed: integer successful: integer diff --git a/specification/specs/common_options/minimum_should_match/MinimumShouldMatch.ts b/specification/specs/common_options/minimum_should_match/MinimumShouldMatch.ts index dbe11fda17..983098889b 100644 --- a/specification/specs/common_options/minimum_should_match/MinimumShouldMatch.ts +++ b/specification/specs/common_options/minimum_should_match/MinimumShouldMatch.ts @@ -1,3 +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. + */ + /** * The minimum number of terms that should match as integer, percentage or range * @url https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html diff --git a/specification/specs/common_options/range/AggregationRange.ts b/specification/specs/common_options/range/AggregationRange.ts index 3352479c16..81ba68e179 100644 --- a/specification/specs/common_options/range/AggregationRange.ts +++ b/specification/specs/common_options/range/AggregationRange.ts @@ -1,3 +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. + */ + class AggregationRange { from?: double key?: string diff --git a/specification/specs/common_options/scripting/Script.ts b/specification/specs/common_options/scripting/Script.ts index 4f44a9a610..65490f117d 100644 --- a/specification/specs/common_options/scripting/Script.ts +++ b/specification/specs/common_options/scripting/Script.ts @@ -1,3 +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. + */ + class ScriptBase { lang: string params?: Dictionary diff --git a/specification/specs/common_options/scripting/ScriptField.ts b/specification/specs/common_options/scripting/ScriptField.ts index 16347821cf..568e77e78b 100644 --- a/specification/specs/common_options/scripting/ScriptField.ts +++ b/specification/specs/common_options/scripting/ScriptField.ts @@ -1,3 +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. + */ + class ScriptField { script: Script } diff --git a/specification/specs/common_options/shape/ShapeRelation.ts b/specification/specs/common_options/shape/ShapeRelation.ts index 3b7a0accac..4c254bec25 100644 --- a/specification/specs/common_options/shape/ShapeRelation.ts +++ b/specification/specs/common_options/shape/ShapeRelation.ts @@ -1,3 +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. + */ + enum ShapeRelation { intersects = 0, disjoint = 1, diff --git a/specification/specs/common_options/stats/CompletionStats.ts b/specification/specs/common_options/stats/CompletionStats.ts index 248d3de976..d59a5525d2 100644 --- a/specification/specs/common_options/stats/CompletionStats.ts +++ b/specification/specs/common_options/stats/CompletionStats.ts @@ -1,3 +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. + */ + class CompletionStats { size_in_bytes: long /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ diff --git a/specification/specs/common_options/stats/DocStats.ts b/specification/specs/common_options/stats/DocStats.ts index c4a913b986..bebde711a2 100644 --- a/specification/specs/common_options/stats/DocStats.ts +++ b/specification/specs/common_options/stats/DocStats.ts @@ -1,3 +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. + */ + class DocStats { count: long deleted: long diff --git a/specification/specs/common_options/stats/FielddataStats.ts b/specification/specs/common_options/stats/FielddataStats.ts index 7dd2c8c59e..96cd69af51 100644 --- a/specification/specs/common_options/stats/FielddataStats.ts +++ b/specification/specs/common_options/stats/FielddataStats.ts @@ -1,3 +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. + */ + class FielddataStats { evictions?: long memory_size_in_bytes: long diff --git a/specification/specs/common_options/stats/FlushStats.ts b/specification/specs/common_options/stats/FlushStats.ts index a696554211..8e9930a2e3 100644 --- a/specification/specs/common_options/stats/FlushStats.ts +++ b/specification/specs/common_options/stats/FlushStats.ts @@ -1,3 +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. + */ + class FlushStats { periodic: long total: long diff --git a/specification/specs/common_options/stats/GetStats.ts b/specification/specs/common_options/stats/GetStats.ts index 13d9bd8aca..f59458a9f0 100644 --- a/specification/specs/common_options/stats/GetStats.ts +++ b/specification/specs/common_options/stats/GetStats.ts @@ -1,3 +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. + */ + class GetStats { current: long exists_time?: string diff --git a/specification/specs/common_options/stats/IndexingStats.ts b/specification/specs/common_options/stats/IndexingStats.ts index 68ba9a86ed..a6bdf59ac4 100644 --- a/specification/specs/common_options/stats/IndexingStats.ts +++ b/specification/specs/common_options/stats/IndexingStats.ts @@ -1,3 +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. + */ + class IndexingStats { index_current: long delete_current: long diff --git a/specification/specs/common_options/stats/MergesStats.ts b/specification/specs/common_options/stats/MergesStats.ts index 20cf444bc1..e8ed4aa967 100644 --- a/specification/specs/common_options/stats/MergesStats.ts +++ b/specification/specs/common_options/stats/MergesStats.ts @@ -1,3 +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. + */ + class MergesStats { current: long current_docs: long diff --git a/specification/specs/common_options/stats/PluginStats.ts b/specification/specs/common_options/stats/PluginStats.ts index c9d443dc91..918ef156be 100644 --- a/specification/specs/common_options/stats/PluginStats.ts +++ b/specification/specs/common_options/stats/PluginStats.ts @@ -1,3 +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. + */ + class PluginStats { classname: string description: string diff --git a/specification/specs/common_options/stats/QueryCacheStats.ts b/specification/specs/common_options/stats/QueryCacheStats.ts index 15575da00b..607259ea96 100644 --- a/specification/specs/common_options/stats/QueryCacheStats.ts +++ b/specification/specs/common_options/stats/QueryCacheStats.ts @@ -1,3 +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. + */ + class QueryCacheStats { cache_count: long cache_size: long diff --git a/specification/specs/common_options/stats/RecoveryStats.ts b/specification/specs/common_options/stats/RecoveryStats.ts index 7f97bd1dd7..0accd62535 100644 --- a/specification/specs/common_options/stats/RecoveryStats.ts +++ b/specification/specs/common_options/stats/RecoveryStats.ts @@ -1,3 +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. + */ + class RecoveryStats { current_as_source: long current_as_target: long diff --git a/specification/specs/common_options/stats/RefreshStats.ts b/specification/specs/common_options/stats/RefreshStats.ts index f06c116036..93cf479aad 100644 --- a/specification/specs/common_options/stats/RefreshStats.ts +++ b/specification/specs/common_options/stats/RefreshStats.ts @@ -1,3 +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. + */ + class RefreshStats { external_total: long external_total_time_in_millis: long diff --git a/specification/specs/common_options/stats/RequestCacheStats.ts b/specification/specs/common_options/stats/RequestCacheStats.ts index fc1a0b3e2a..b66976182c 100644 --- a/specification/specs/common_options/stats/RequestCacheStats.ts +++ b/specification/specs/common_options/stats/RequestCacheStats.ts @@ -1,3 +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. + */ + class RequestCacheStats { evictions: long hit_count: long diff --git a/specification/specs/common_options/stats/SearchStats.ts b/specification/specs/common_options/stats/SearchStats.ts index ab6c6ee59d..4369b0465b 100644 --- a/specification/specs/common_options/stats/SearchStats.ts +++ b/specification/specs/common_options/stats/SearchStats.ts @@ -1,3 +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. + */ + class SearchStats { fetch_current: long fetch_time_in_millis: long diff --git a/specification/specs/common_options/stats/SegmentsStats.ts b/specification/specs/common_options/stats/SegmentsStats.ts index 9e9477c373..10f4307925 100644 --- a/specification/specs/common_options/stats/SegmentsStats.ts +++ b/specification/specs/common_options/stats/SegmentsStats.ts @@ -1,3 +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. + */ + class SegmentsStats { count: long doc_values_memory_in_bytes: long diff --git a/specification/specs/common_options/stats/StoreStats.ts b/specification/specs/common_options/stats/StoreStats.ts index e6d681fb13..b44aa4326f 100644 --- a/specification/specs/common_options/stats/StoreStats.ts +++ b/specification/specs/common_options/stats/StoreStats.ts @@ -1,3 +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. + */ + class StoreStats { size?: string size_in_bytes: double diff --git a/specification/specs/common_options/stats/TranslogStats.ts b/specification/specs/common_options/stats/TranslogStats.ts index b4091fe697..0e8b65012f 100644 --- a/specification/specs/common_options/stats/TranslogStats.ts +++ b/specification/specs/common_options/stats/TranslogStats.ts @@ -1,3 +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. + */ + class TranslogStats { earliest_last_modified_age: long operations: long diff --git a/specification/specs/common_options/stats/WarmerStats.ts b/specification/specs/common_options/stats/WarmerStats.ts index a16d1902b5..86a3e8fcbe 100644 --- a/specification/specs/common_options/stats/WarmerStats.ts +++ b/specification/specs/common_options/stats/WarmerStats.ts @@ -1,3 +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. + */ + class WarmerStats { current: long total: long diff --git a/specification/specs/common_options/time_unit/Time.ts b/specification/specs/common_options/time_unit/Time.ts index 758812830e..41318e0a6f 100644 --- a/specification/specs/common_options/time_unit/Time.ts +++ b/specification/specs/common_options/time_unit/Time.ts @@ -1,3 +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. + */ + /* * @class_serializer TimeFormatter * https://github.com/elastic/elasticsearch/blob/master/libs/core/src/main/java/org/elasticsearch/common/unit/TimeValue.java diff --git a/specification/specs/common_options/time_unit/TimeUnit.ts b/specification/specs/common_options/time_unit/TimeUnit.ts index b679b54eca..1752064a03 100644 --- a/specification/specs/common_options/time_unit/TimeUnit.ts +++ b/specification/specs/common_options/time_unit/TimeUnit.ts @@ -1,3 +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. + */ + enum TimeUnit { nanos = 0, micros = 1, diff --git a/specification/specs/document/Result.ts b/specification/specs/document/Result.ts index 17f32835c1..22de262309 100644 --- a/specification/specs/document/Result.ts +++ b/specification/specs/document/Result.ts @@ -1,3 +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. + */ + enum Result { Error = 0, created = 1, diff --git a/specification/specs/document/multiple/BulkIndexByScrollFailure.ts b/specification/specs/document/multiple/BulkIndexByScrollFailure.ts index 8c6d5781ee..ab35b7971a 100644 --- a/specification/specs/document/multiple/BulkIndexByScrollFailure.ts +++ b/specification/specs/document/multiple/BulkIndexByScrollFailure.ts @@ -1,3 +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. + */ + class BulkIndexByScrollFailure { cause: MainError id: string diff --git a/specification/specs/document/multiple/Retries.ts b/specification/specs/document/multiple/Retries.ts index 43ad520f76..a051e9d4a0 100644 --- a/specification/specs/document/multiple/Retries.ts +++ b/specification/specs/document/multiple/Retries.ts @@ -1,3 +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. + */ + class Retries { bulk: long search: long diff --git a/specification/specs/document/multiple/bulk/BulkRequest.ts b/specification/specs/document/multiple/bulk/BulkRequest.ts index 4235ee89bd..777041c2d6 100644 --- a/specification/specs/document/multiple/bulk/BulkRequest.ts +++ b/specification/specs/document/multiple/bulk/BulkRequest.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/multiple/bulk/BulkResponse.ts b/specification/specs/document/multiple/bulk/BulkResponse.ts index 176c0d36e7..6d7fd243c3 100644 --- a/specification/specs/document/multiple/bulk/BulkResponse.ts +++ b/specification/specs/document/multiple/bulk/BulkResponse.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/multiple/bulk/bulk_operation/BulkOperation.ts b/specification/specs/document/multiple/bulk/bulk_operation/BulkOperation.ts index 00c6ca5e03..6f9dc82a9c 100644 --- a/specification/specs/document/multiple/bulk/bulk_operation/BulkOperation.ts +++ b/specification/specs/document/multiple/bulk/bulk_operation/BulkOperation.ts @@ -1,3 +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. + */ + class BulkOperation { _id: Id _index: IndexName diff --git a/specification/specs/document/multiple/bulk/bulk_response_item/BulkResponseItemBase.ts b/specification/specs/document/multiple/bulk/bulk_response_item/BulkResponseItemBase.ts index 8f4076874c..76140b09a6 100644 --- a/specification/specs/document/multiple/bulk/bulk_response_item/BulkResponseItemBase.ts +++ b/specification/specs/document/multiple/bulk/bulk_response_item/BulkResponseItemBase.ts @@ -1,3 +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. + */ + // TODO remap this as a good bulk response item and an error response item @class_serializer('BulkResponseItemFormatter') class BulkResponseItemBase { diff --git a/specification/specs/document/multiple/delete_by_query/DeleteByQueryRequest.ts b/specification/specs/document/multiple/delete_by_query/DeleteByQueryRequest.ts index 8d258630eb..229e17975b 100644 --- a/specification/specs/document/multiple/delete_by_query/DeleteByQueryRequest.ts +++ b/specification/specs/document/multiple/delete_by_query/DeleteByQueryRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('delete_by_query') class DeleteByQueryRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/document/multiple/delete_by_query/DeleteByQueryResponse.ts b/specification/specs/document/multiple/delete_by_query/DeleteByQueryResponse.ts index 0702d7402d..a9e2300a2c 100644 --- a/specification/specs/document/multiple/delete_by_query/DeleteByQueryResponse.ts +++ b/specification/specs/document/multiple/delete_by_query/DeleteByQueryResponse.ts @@ -1,3 +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. + */ + class DeleteByQueryResponse extends ResponseBase { batches: long deleted: long diff --git a/specification/specs/document/multiple/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts b/specification/specs/document/multiple/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts index 867ffee1cf..15d5b22d4e 100644 --- a/specification/specs/document/multiple/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts +++ b/specification/specs/document/multiple/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('delete_by_query_rethrottle') class DeleteByQueryRethrottleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/document/multiple/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts b/specification/specs/document/multiple/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts index 5c52dd8799..bdfad2f0a0 100644 --- a/specification/specs/document/multiple/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts +++ b/specification/specs/document/multiple/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteByQueryRethrottleResponse extends ListTasksResponse {} diff --git a/specification/specs/document/multiple/multi_get/request/MultiGetRequest.ts b/specification/specs/document/multiple/multi_get/request/MultiGetRequest.ts index f859284bf2..c873987a1c 100644 --- a/specification/specs/document/multiple/multi_get/request/MultiGetRequest.ts +++ b/specification/specs/document/multiple/multi_get/request/MultiGetRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('mget') @class_serializer('MultiGetRequestFormatter') class MultiGetRequest extends RequestBase { diff --git a/specification/specs/document/multiple/multi_get/response/MultiGetResponse.ts b/specification/specs/document/multiple/multi_get/response/MultiGetResponse.ts index 81db84617f..0f88a6cc51 100644 --- a/specification/specs/document/multiple/multi_get/response/MultiGetResponse.ts +++ b/specification/specs/document/multiple/multi_get/response/MultiGetResponse.ts @@ -1,3 +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. + */ + @class_serializer('MultiGetResponseFormatter') class MultiGetResponse extends ResponseBase { docs: MultiGetHit[] diff --git a/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorOperation.ts b/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorOperation.ts index cb4eda42a4..8a38a042bb 100644 --- a/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorOperation.ts +++ b/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorOperation.ts @@ -1,3 +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. + */ + class MultiTermVectorOperation { /** @prop_serializer SourceFormatter`1 */ doc: any diff --git a/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorsRequest.ts b/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorsRequest.ts index 9d73afcd5d..cbf91943a1 100644 --- a/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorsRequest.ts +++ b/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('mtermvectors') class MultiTermVectorsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorsResponse.ts b/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorsResponse.ts index ecc3b2bfce..4175ed3ea9 100644 --- a/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorsResponse.ts +++ b/specification/specs/document/multiple/multi_term_vectors/MultiTermVectorsResponse.ts @@ -1,3 +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. + */ + class MultiTermVectorsResponse extends ResponseBase { docs: TermVectorsResult[] } diff --git a/specification/specs/document/multiple/reindex/ReindexDestination.ts b/specification/specs/document/multiple/reindex/ReindexDestination.ts index 672e226c8d..176202534a 100644 --- a/specification/specs/document/multiple/reindex/ReindexDestination.ts +++ b/specification/specs/document/multiple/reindex/ReindexDestination.ts @@ -1,3 +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. + */ + class ReindexDestination { index: IndexName op_type?: OpType diff --git a/specification/specs/document/multiple/reindex/ReindexRequest.ts b/specification/specs/document/multiple/reindex/ReindexRequest.ts index f085feae72..06a98b7e3c 100644 --- a/specification/specs/document/multiple/reindex/ReindexRequest.ts +++ b/specification/specs/document/multiple/reindex/ReindexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('reindex') class ReindexRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/document/multiple/reindex/ReindexResponse.ts b/specification/specs/document/multiple/reindex/ReindexResponse.ts index ea226e8c61..e0b01cc257 100644 --- a/specification/specs/document/multiple/reindex/ReindexResponse.ts +++ b/specification/specs/document/multiple/reindex/ReindexResponse.ts @@ -1,3 +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. + */ + class ReindexResponse extends ResponseBase { batches: long created: long diff --git a/specification/specs/document/multiple/reindex/ReindexRouting.ts b/specification/specs/document/multiple/reindex/ReindexRouting.ts index d17fb98440..55fa9a3c03 100644 --- a/specification/specs/document/multiple/reindex/ReindexRouting.ts +++ b/specification/specs/document/multiple/reindex/ReindexRouting.ts @@ -1,2 +1,21 @@ +/* + * 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. + */ + @class_serializer('ReindexRoutingFormatter') class ReindexRouting {} diff --git a/specification/specs/document/multiple/reindex/ReindexSource.ts b/specification/specs/document/multiple/reindex/ReindexSource.ts index 90544ed0e8..488e480b99 100644 --- a/specification/specs/document/multiple/reindex/ReindexSource.ts +++ b/specification/specs/document/multiple/reindex/ReindexSource.ts @@ -1,3 +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. + */ + class ReindexSource { index: Indices query?: QueryContainer diff --git a/specification/specs/document/multiple/reindex/RemoteSource.ts b/specification/specs/document/multiple/reindex/RemoteSource.ts index 6d97fce1be..0b04ae8c6d 100644 --- a/specification/specs/document/multiple/reindex/RemoteSource.ts +++ b/specification/specs/document/multiple/reindex/RemoteSource.ts @@ -1,3 +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. + */ + class RemoteSource { connect_timeout: Time host: Uri diff --git a/specification/specs/document/multiple/reindex_rethrottle/ReindexNode.ts b/specification/specs/document/multiple/reindex_rethrottle/ReindexNode.ts index ec1058fb58..b03812a2e3 100644 --- a/specification/specs/document/multiple/reindex_rethrottle/ReindexNode.ts +++ b/specification/specs/document/multiple/reindex_rethrottle/ReindexNode.ts @@ -1,3 +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. + */ + class ReindexNode { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ attributes: Dictionary diff --git a/specification/specs/document/multiple/reindex_rethrottle/ReindexRethrottleRequest.ts b/specification/specs/document/multiple/reindex_rethrottle/ReindexRethrottleRequest.ts index a57bf9b1fd..ae41af4b74 100644 --- a/specification/specs/document/multiple/reindex_rethrottle/ReindexRethrottleRequest.ts +++ b/specification/specs/document/multiple/reindex_rethrottle/ReindexRethrottleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('reindex_rethrottle') class ReindexRethrottleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/document/multiple/reindex_rethrottle/ReindexRethrottleResponse.ts b/specification/specs/document/multiple/reindex_rethrottle/ReindexRethrottleResponse.ts index b2d90bf010..9d9d59943b 100644 --- a/specification/specs/document/multiple/reindex_rethrottle/ReindexRethrottleResponse.ts +++ b/specification/specs/document/multiple/reindex_rethrottle/ReindexRethrottleResponse.ts @@ -1,3 +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. + */ + class ReindexRethrottleResponse extends ResponseBase { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ nodes: Dictionary diff --git a/specification/specs/document/multiple/reindex_rethrottle/ReindexStatus.ts b/specification/specs/document/multiple/reindex_rethrottle/ReindexStatus.ts index 18c591eb02..afcb891e25 100644 --- a/specification/specs/document/multiple/reindex_rethrottle/ReindexStatus.ts +++ b/specification/specs/document/multiple/reindex_rethrottle/ReindexStatus.ts @@ -1,3 +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. + */ + class ReindexStatus { batches: long created: long diff --git a/specification/specs/document/multiple/reindex_rethrottle/ReindexTask.ts b/specification/specs/document/multiple/reindex_rethrottle/ReindexTask.ts index 158188a1be..0cb4950baf 100644 --- a/specification/specs/document/multiple/reindex_rethrottle/ReindexTask.ts +++ b/specification/specs/document/multiple/reindex_rethrottle/ReindexTask.ts @@ -1,3 +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. + */ + class ReindexTask { action: string cancellable: boolean diff --git a/specification/specs/document/multiple/update_by_query/UpdateByQueryRequest.ts b/specification/specs/document/multiple/update_by_query/UpdateByQueryRequest.ts index bb28634d66..3c674ccb7b 100644 --- a/specification/specs/document/multiple/update_by_query/UpdateByQueryRequest.ts +++ b/specification/specs/document/multiple/update_by_query/UpdateByQueryRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('update_by_query') class UpdateByQueryRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/document/multiple/update_by_query/UpdateByQueryResponse.ts b/specification/specs/document/multiple/update_by_query/UpdateByQueryResponse.ts index b06abb3ee6..3a05bdb352 100644 --- a/specification/specs/document/multiple/update_by_query/UpdateByQueryResponse.ts +++ b/specification/specs/document/multiple/update_by_query/UpdateByQueryResponse.ts @@ -1,3 +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. + */ + class UpdateByQueryResponse extends ResponseBase { batches: long failures: BulkIndexByScrollFailure[] diff --git a/specification/specs/document/multiple/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts b/specification/specs/document/multiple/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts index 297ed5b424..3c40f1a6fa 100644 --- a/specification/specs/document/multiple/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts +++ b/specification/specs/document/multiple/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('update_by_query_rethrottle') class UpdateByQueryRethrottleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/document/single/WriteResponseBase.ts b/specification/specs/document/single/WriteResponseBase.ts index cfa5440a0f..0cff486fe8 100644 --- a/specification/specs/document/single/WriteResponseBase.ts +++ b/specification/specs/document/single/WriteResponseBase.ts @@ -1,3 +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. + */ + class WriteResponseBase extends ResponseBase { _id: string _index: string diff --git a/specification/specs/document/single/create/CreateRequest.ts b/specification/specs/document/single/create/CreateRequest.ts index 3520c3e60c..646d1c414b 100644 --- a/specification/specs/document/single/create/CreateRequest.ts +++ b/specification/specs/document/single/create/CreateRequest.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/single/create/CreateResponse.ts b/specification/specs/document/single/create/CreateResponse.ts index 18d75099e8..d37c2c0f00 100644 --- a/specification/specs/document/single/create/CreateResponse.ts +++ b/specification/specs/document/single/create/CreateResponse.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/single/delete/DeleteRequest.ts b/specification/specs/document/single/delete/DeleteRequest.ts index aa54bb4da8..735ebabd35 100644 --- a/specification/specs/document/single/delete/DeleteRequest.ts +++ b/specification/specs/document/single/delete/DeleteRequest.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/single/delete/DeleteResponse.ts b/specification/specs/document/single/delete/DeleteResponse.ts index c3bffa9336..c976966174 100644 --- a/specification/specs/document/single/delete/DeleteResponse.ts +++ b/specification/specs/document/single/delete/DeleteResponse.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/single/exists/DocumentExistsRequest.ts b/specification/specs/document/single/exists/DocumentExistsRequest.ts index 84b0176eba..3fd6c20e65 100644 --- a/specification/specs/document/single/exists/DocumentExistsRequest.ts +++ b/specification/specs/document/single/exists/DocumentExistsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('exists') class DocumentExistsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/document/single/exists/DocumentExistsResponse.ts b/specification/specs/document/single/exists/DocumentExistsResponse.ts index 1ab2bea8f3..41214c56e6 100644 --- a/specification/specs/document/single/exists/DocumentExistsResponse.ts +++ b/specification/specs/document/single/exists/DocumentExistsResponse.ts @@ -1,3 +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. + */ + class DocumentExistsResponse extends ResponseBase implements EmptyResponseBase {} diff --git a/specification/specs/document/single/get/GetRequest.ts b/specification/specs/document/single/get/GetRequest.ts index 52b4cde836..2f3deb568f 100644 --- a/specification/specs/document/single/get/GetRequest.ts +++ b/specification/specs/document/single/get/GetRequest.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/single/get/GetResponse.ts b/specification/specs/document/single/get/GetResponse.ts index 0d643c76b3..154641af4f 100644 --- a/specification/specs/document/single/get/GetResponse.ts +++ b/specification/specs/document/single/get/GetResponse.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/single/index/IndexRequest.ts b/specification/specs/document/single/index/IndexRequest.ts index 31057f5111..e294708127 100644 --- a/specification/specs/document/single/index/IndexRequest.ts +++ b/specification/specs/document/single/index/IndexRequest.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/single/index/IndexResponse.ts b/specification/specs/document/single/index/IndexResponse.ts index 1a82d581bf..bcf9459f60 100644 --- a/specification/specs/document/single/index/IndexResponse.ts +++ b/specification/specs/document/single/index/IndexResponse.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/single/source/SourceRequest.ts b/specification/specs/document/single/source/SourceRequest.ts index 213aa00af0..ef043e34e9 100644 --- a/specification/specs/document/single/source/SourceRequest.ts +++ b/specification/specs/document/single/source/SourceRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('get_source') class SourceRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/document/single/source/SourceResponse.ts b/specification/specs/document/single/source/SourceResponse.ts index e8374cc09f..84557d6888 100644 --- a/specification/specs/document/single/source/SourceResponse.ts +++ b/specification/specs/document/single/source/SourceResponse.ts @@ -1,3 +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. + */ + class SourceResponse extends ResponseBase { body: TDocument } diff --git a/specification/specs/document/single/source_exists/SourceExistsRequest.ts b/specification/specs/document/single/source_exists/SourceExistsRequest.ts index 1e4602c59a..5c5da3ab25 100644 --- a/specification/specs/document/single/source_exists/SourceExistsRequest.ts +++ b/specification/specs/document/single/source_exists/SourceExistsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('exists_source') class SourceExistsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/document/single/source_exists/SourceExistsResponse.ts b/specification/specs/document/single/source_exists/SourceExistsResponse.ts index 68f390f417..ca2334e235 100644 --- a/specification/specs/document/single/source_exists/SourceExistsResponse.ts +++ b/specification/specs/document/single/source_exists/SourceExistsResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class SourceExistsResponse extends ResponseBase implements EmptyResponseBase {} diff --git a/specification/specs/document/single/term_vectors/FieldStatistics.ts b/specification/specs/document/single/term_vectors/FieldStatistics.ts index 644c24faf6..f3920d8fed 100644 --- a/specification/specs/document/single/term_vectors/FieldStatistics.ts +++ b/specification/specs/document/single/term_vectors/FieldStatistics.ts @@ -1,3 +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. + */ + class FieldStatistics { doc_count: integer sum_doc_freq: long diff --git a/specification/specs/document/single/term_vectors/TermVector.ts b/specification/specs/document/single/term_vectors/TermVector.ts index fd62f035f6..753c4b970b 100644 --- a/specification/specs/document/single/term_vectors/TermVector.ts +++ b/specification/specs/document/single/term_vectors/TermVector.ts @@ -1,3 +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. + */ + class TermVector { field_statistics: FieldStatistics terms: Dictionary diff --git a/specification/specs/document/single/term_vectors/TermVectorFilter.ts b/specification/specs/document/single/term_vectors/TermVectorFilter.ts index 21860546bd..d938ffdfc8 100644 --- a/specification/specs/document/single/term_vectors/TermVectorFilter.ts +++ b/specification/specs/document/single/term_vectors/TermVectorFilter.ts @@ -1,3 +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. + */ + class TermVectorFilter { max_doc_freq: integer max_num_terms: integer diff --git a/specification/specs/document/single/term_vectors/TermVectorTerm.ts b/specification/specs/document/single/term_vectors/TermVectorTerm.ts index 0b251d767a..a868e8ffc7 100644 --- a/specification/specs/document/single/term_vectors/TermVectorTerm.ts +++ b/specification/specs/document/single/term_vectors/TermVectorTerm.ts @@ -1,3 +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. + */ + class TermVectorTerm { doc_freq: integer score: double diff --git a/specification/specs/document/single/term_vectors/TermVectorsRequest.ts b/specification/specs/document/single/term_vectors/TermVectorsRequest.ts index dbef91b070..50e778401c 100644 --- a/specification/specs/document/single/term_vectors/TermVectorsRequest.ts +++ b/specification/specs/document/single/term_vectors/TermVectorsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('termvectors') class TermVectorsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/document/single/term_vectors/TermVectorsResponse.ts b/specification/specs/document/single/term_vectors/TermVectorsResponse.ts index 6557402c6b..c549dabf3f 100644 --- a/specification/specs/document/single/term_vectors/TermVectorsResponse.ts +++ b/specification/specs/document/single/term_vectors/TermVectorsResponse.ts @@ -1,3 +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. + */ + class TermVectorsResponse extends ResponseBase { found: boolean _id: string diff --git a/specification/specs/document/single/term_vectors/TermVectorsResult.ts b/specification/specs/document/single/term_vectors/TermVectorsResult.ts index 0619bbba5a..4641f32917 100644 --- a/specification/specs/document/single/term_vectors/TermVectorsResult.ts +++ b/specification/specs/document/single/term_vectors/TermVectorsResult.ts @@ -1,3 +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. + */ + class TermVectorsResult { found: boolean id: string diff --git a/specification/specs/document/single/term_vectors/Token.ts b/specification/specs/document/single/term_vectors/Token.ts index 4442b35995..244c8e4571 100644 --- a/specification/specs/document/single/term_vectors/Token.ts +++ b/specification/specs/document/single/term_vectors/Token.ts @@ -1,3 +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. + */ + class Token { end_offset: integer payload: string diff --git a/specification/specs/document/single/update/UpdateRequest.ts b/specification/specs/document/single/update/UpdateRequest.ts index 74d493da9d..5b18148d6b 100644 --- a/specification/specs/document/single/update/UpdateRequest.ts +++ b/specification/specs/document/single/update/UpdateRequest.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/document/single/update/UpdateResponse.ts b/specification/specs/document/single/update/UpdateResponse.ts index b5fcd1174a..b912386254 100644 --- a/specification/specs/document/single/update/UpdateResponse.ts +++ b/specification/specs/document/single/update/UpdateResponse.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/index_modules/index_settings/IndexState.ts b/specification/specs/index_modules/index_settings/IndexState.ts index 67db786222..1990ad9292 100644 --- a/specification/specs/index_modules/index_settings/IndexState.ts +++ b/specification/specs/index_modules/index_settings/IndexState.ts @@ -1,3 +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. + */ + class IndexState { aliases?: Dictionary mappings?: TypeMapping diff --git a/specification/specs/index_modules/index_settings/settings/RecoveryInitialShards.ts b/specification/specs/index_modules/index_settings/settings/RecoveryInitialShards.ts index 5f9fdc29da..f6c224bff8 100644 --- a/specification/specs/index_modules/index_settings/settings/RecoveryInitialShards.ts +++ b/specification/specs/index_modules/index_settings/settings/RecoveryInitialShards.ts @@ -1,3 +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. + */ + enum RecoveryInitialShards { quorem = 0, 'quorem-1' = 1, diff --git a/specification/specs/index_modules/index_settings/slow_log/LogLevel.ts b/specification/specs/index_modules/index_settings/slow_log/LogLevel.ts index 4f98eb11a7..7c884edd74 100644 --- a/specification/specs/index_modules/index_settings/slow_log/LogLevel.ts +++ b/specification/specs/index_modules/index_settings/slow_log/LogLevel.ts @@ -1,3 +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. + */ + enum LogLevel { error = 0, warn = 1, diff --git a/specification/specs/index_modules/index_settings/sorting/IndexSortMissing.ts b/specification/specs/index_modules/index_settings/sorting/IndexSortMissing.ts index 8b49b7b8fb..18934a60ef 100644 --- a/specification/specs/index_modules/index_settings/sorting/IndexSortMissing.ts +++ b/specification/specs/index_modules/index_settings/sorting/IndexSortMissing.ts @@ -1,3 +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. + */ + enum IndexSortMissing { _first = 0, _last = 1 diff --git a/specification/specs/index_modules/index_settings/sorting/IndexSortMode.ts b/specification/specs/index_modules/index_settings/sorting/IndexSortMode.ts index 611a28ef43..a6a419d755 100644 --- a/specification/specs/index_modules/index_settings/sorting/IndexSortMode.ts +++ b/specification/specs/index_modules/index_settings/sorting/IndexSortMode.ts @@ -1,3 +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. + */ + enum IndexSortMode { min = 0, max = 1 diff --git a/specification/specs/index_modules/index_settings/sorting/IndexSortOrder.ts b/specification/specs/index_modules/index_settings/sorting/IndexSortOrder.ts index 9e2aa0d0a6..670dacb090 100644 --- a/specification/specs/index_modules/index_settings/sorting/IndexSortOrder.ts +++ b/specification/specs/index_modules/index_settings/sorting/IndexSortOrder.ts @@ -1,3 +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. + */ + enum IndexSortOrder { asc = 0, desc = 1 diff --git a/specification/specs/index_modules/index_settings/store/FileSystemStorageImplementation.ts b/specification/specs/index_modules/index_settings/store/FileSystemStorageImplementation.ts index 049a0a0614..60f8811d72 100644 --- a/specification/specs/index_modules/index_settings/store/FileSystemStorageImplementation.ts +++ b/specification/specs/index_modules/index_settings/store/FileSystemStorageImplementation.ts @@ -1,3 +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. + */ + enum FileSystemStorageImplementation { simplefs = 0, niofs = 1, diff --git a/specification/specs/index_modules/index_settings/translog/TranslogDurability.ts b/specification/specs/index_modules/index_settings/translog/TranslogDurability.ts index c925ecdf2a..7c4caa3071 100644 --- a/specification/specs/index_modules/index_settings/translog/TranslogDurability.ts +++ b/specification/specs/index_modules/index_settings/translog/TranslogDurability.ts @@ -1,3 +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. + */ + enum TranslogDurability { request = 0, async = 1 diff --git a/specification/specs/index_modules/similarity/Normalization.ts b/specification/specs/index_modules/similarity/Normalization.ts index b05dfaed43..600377806a 100644 --- a/specification/specs/index_modules/similarity/Normalization.ts +++ b/specification/specs/index_modules/similarity/Normalization.ts @@ -1,3 +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. + */ + enum Normalization { no = 0, h1 = 1, diff --git a/specification/specs/index_modules/similarity/d_f_i/DFIIndependenceMeasure.ts b/specification/specs/index_modules/similarity/d_f_i/DFIIndependenceMeasure.ts index 2871092bb0..76ea9b56b0 100644 --- a/specification/specs/index_modules/similarity/d_f_i/DFIIndependenceMeasure.ts +++ b/specification/specs/index_modules/similarity/d_f_i/DFIIndependenceMeasure.ts @@ -1,3 +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. + */ + enum DFIIndependenceMeasure { standardized = 0, saturated = 1, diff --git a/specification/specs/index_modules/similarity/d_f_r/DFRAfterEffect.ts b/specification/specs/index_modules/similarity/d_f_r/DFRAfterEffect.ts index 4254942431..f18305dfc4 100644 --- a/specification/specs/index_modules/similarity/d_f_r/DFRAfterEffect.ts +++ b/specification/specs/index_modules/similarity/d_f_r/DFRAfterEffect.ts @@ -1,3 +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. + */ + enum DFRAfterEffect { no = 0, b = 1, diff --git a/specification/specs/index_modules/similarity/d_f_r/DFRBasicModel.ts b/specification/specs/index_modules/similarity/d_f_r/DFRBasicModel.ts index 286c55c5ca..3bb053ba1e 100644 --- a/specification/specs/index_modules/similarity/d_f_r/DFRBasicModel.ts +++ b/specification/specs/index_modules/similarity/d_f_r/DFRBasicModel.ts @@ -1,3 +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. + */ + enum DFRBasicModel { be = 0, d = 1, diff --git a/specification/specs/index_modules/similarity/i_b/IBDistribution.ts b/specification/specs/index_modules/similarity/i_b/IBDistribution.ts index 59c9feda0d..eaa3203f8f 100644 --- a/specification/specs/index_modules/similarity/i_b/IBDistribution.ts +++ b/specification/specs/index_modules/similarity/i_b/IBDistribution.ts @@ -1,3 +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. + */ + enum IBDistribution { ll = 0, spl = 1 diff --git a/specification/specs/index_modules/similarity/i_b/IBLambda.ts b/specification/specs/index_modules/similarity/i_b/IBLambda.ts index 335d2be725..85a711248d 100644 --- a/specification/specs/index_modules/similarity/i_b/IBLambda.ts +++ b/specification/specs/index_modules/similarity/i_b/IBLambda.ts @@ -1,3 +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. + */ + enum IBLambda { df = 0, ttf = 1 diff --git a/specification/specs/indices/alias_management/Alias.ts b/specification/specs/indices/alias_management/Alias.ts index a9f18f94fa..4304243ec4 100644 --- a/specification/specs/indices/alias_management/Alias.ts +++ b/specification/specs/indices/alias_management/Alias.ts @@ -1,3 +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. + */ + class Alias { filter?: QueryContainer index_routing?: Routing diff --git a/specification/specs/indices/alias_management/AliasDefinition.ts b/specification/specs/indices/alias_management/AliasDefinition.ts index 484008788b..1ec6668a33 100644 --- a/specification/specs/indices/alias_management/AliasDefinition.ts +++ b/specification/specs/indices/alias_management/AliasDefinition.ts @@ -1,3 +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. + */ + class AliasDefinition { filter?: QueryContainer index_routing?: string diff --git a/specification/specs/indices/alias_management/alias/BulkAliasRequest.ts b/specification/specs/indices/alias_management/alias/BulkAliasRequest.ts index e4ee4787eb..f20d7f41f2 100644 --- a/specification/specs/indices/alias_management/alias/BulkAliasRequest.ts +++ b/specification/specs/indices/alias_management/alias/BulkAliasRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.update_aliases') class BulkAliasRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/indices/alias_management/alias/BulkAliasResponse.ts b/specification/specs/indices/alias_management/alias/BulkAliasResponse.ts index a6c5b05e19..a7e284b2f7 100644 --- a/specification/specs/indices/alias_management/alias/BulkAliasResponse.ts +++ b/specification/specs/indices/alias_management/alias/BulkAliasResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class BulkAliasResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/indices/alias_management/alias/actions/AliasAction.ts b/specification/specs/indices/alias_management/alias/actions/AliasAction.ts index 3a22447494..0ad39882b5 100644 --- a/specification/specs/indices/alias_management/alias/actions/AliasAction.ts +++ b/specification/specs/indices/alias_management/alias/actions/AliasAction.ts @@ -1,2 +1,21 @@ +/* + * 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. + */ + @class_serializer('AliasActionFormatter') class AliasAction {} diff --git a/specification/specs/indices/alias_management/alias_exists/AliasExistsRequest.ts b/specification/specs/indices/alias_management/alias_exists/AliasExistsRequest.ts index f19200a755..e7c9d55cc0 100644 --- a/specification/specs/indices/alias_management/alias_exists/AliasExistsRequest.ts +++ b/specification/specs/indices/alias_management/alias_exists/AliasExistsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.exists_alias') class AliasExistsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/alias_management/alias_exists/AliasExistsResponse.ts b/specification/specs/indices/alias_management/alias_exists/AliasExistsResponse.ts index 955c08f7cb..d846422b43 100644 --- a/specification/specs/indices/alias_management/alias_exists/AliasExistsResponse.ts +++ b/specification/specs/indices/alias_management/alias_exists/AliasExistsResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class AliasExistsResponse extends ResponseBase implements EmptyResponseBase {} diff --git a/specification/specs/indices/alias_management/delete_alias/DeleteAliasRequest.ts b/specification/specs/indices/alias_management/delete_alias/DeleteAliasRequest.ts index c40c2cae95..ecba482586 100644 --- a/specification/specs/indices/alias_management/delete_alias/DeleteAliasRequest.ts +++ b/specification/specs/indices/alias_management/delete_alias/DeleteAliasRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.delete_alias') class DeleteAliasRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/alias_management/delete_alias/DeleteAliasResponse.ts b/specification/specs/indices/alias_management/delete_alias/DeleteAliasResponse.ts index 05a4564155..df26e8bdab 100644 --- a/specification/specs/indices/alias_management/delete_alias/DeleteAliasResponse.ts +++ b/specification/specs/indices/alias_management/delete_alias/DeleteAliasResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteAliasResponse extends ResponseBase {} diff --git a/specification/specs/indices/alias_management/get_alias/GetAliasRequest.ts b/specification/specs/indices/alias_management/get_alias/GetAliasRequest.ts index 394d086dc0..63206fe626 100644 --- a/specification/specs/indices/alias_management/get_alias/GetAliasRequest.ts +++ b/specification/specs/indices/alias_management/get_alias/GetAliasRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.get_alias') class GetAliasRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/alias_management/get_alias/GetAliasResponse.ts b/specification/specs/indices/alias_management/get_alias/GetAliasResponse.ts index d251f1d319..2e591fa149 100644 --- a/specification/specs/indices/alias_management/get_alias/GetAliasResponse.ts +++ b/specification/specs/indices/alias_management/get_alias/GetAliasResponse.ts @@ -1,3 +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. + */ + class GetAliasResponse extends DictionaryResponseBase< IndexName, IndexAliases diff --git a/specification/specs/indices/alias_management/get_alias/IndexAliases.ts b/specification/specs/indices/alias_management/get_alias/IndexAliases.ts index fc750bae8c..010218a207 100644 --- a/specification/specs/indices/alias_management/get_alias/IndexAliases.ts +++ b/specification/specs/indices/alias_management/get_alias/IndexAliases.ts @@ -1,3 +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. + */ + class IndexAliases { aliases: Dictionary } diff --git a/specification/specs/indices/alias_management/put_alias/PutAliasRequest.ts b/specification/specs/indices/alias_management/put_alias/PutAliasRequest.ts index aebe38f1c5..63307c2fa1 100644 --- a/specification/specs/indices/alias_management/put_alias/PutAliasRequest.ts +++ b/specification/specs/indices/alias_management/put_alias/PutAliasRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.put_alias') class PutAliasRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/alias_management/put_alias/PutAliasResponse.ts b/specification/specs/indices/alias_management/put_alias/PutAliasResponse.ts index 2b26e6e2c7..2164bf72ea 100644 --- a/specification/specs/indices/alias_management/put_alias/PutAliasResponse.ts +++ b/specification/specs/indices/alias_management/put_alias/PutAliasResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PutAliasResponse extends ResponseBase {} diff --git a/specification/specs/indices/analyze/AnalyzeDetail.ts b/specification/specs/indices/analyze/AnalyzeDetail.ts index 309b26ca38..8333e4bab4 100644 --- a/specification/specs/indices/analyze/AnalyzeDetail.ts +++ b/specification/specs/indices/analyze/AnalyzeDetail.ts @@ -1,3 +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. + */ + class AnalyzeDetail { analyzer?: AnalyzerDetail charfilters?: CharFilterDetail[] diff --git a/specification/specs/indices/analyze/AnalyzeRequest.ts b/specification/specs/indices/analyze/AnalyzeRequest.ts index a487baacc0..7eb3161bc6 100644 --- a/specification/specs/indices/analyze/AnalyzeRequest.ts +++ b/specification/specs/indices/analyze/AnalyzeRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.analyze') class AnalyzeRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/analyze/AnalyzeResponse.ts b/specification/specs/indices/analyze/AnalyzeResponse.ts index e9ba59ab51..5a108704c6 100644 --- a/specification/specs/indices/analyze/AnalyzeResponse.ts +++ b/specification/specs/indices/analyze/AnalyzeResponse.ts @@ -1,3 +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. + */ + class AnalyzeResponse extends ResponseBase { detail?: AnalyzeDetail tokens?: AnalyzeToken[] diff --git a/specification/specs/indices/analyze/AnalyzeToken.ts b/specification/specs/indices/analyze/AnalyzeToken.ts index 274d58eab4..ab6b9ea40f 100644 --- a/specification/specs/indices/analyze/AnalyzeToken.ts +++ b/specification/specs/indices/analyze/AnalyzeToken.ts @@ -1,3 +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. + */ + class AnalyzeToken { end_offset: long position: long diff --git a/specification/specs/indices/analyze/AnalyzerDetail.ts b/specification/specs/indices/analyze/AnalyzerDetail.ts index 296074e642..1b64362dd1 100644 --- a/specification/specs/indices/analyze/AnalyzerDetail.ts +++ b/specification/specs/indices/analyze/AnalyzerDetail.ts @@ -1,3 +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. + */ + class AnalyzerDetail { name: string tokens: Array diff --git a/specification/specs/indices/analyze/CharFilterDetail.ts b/specification/specs/indices/analyze/CharFilterDetail.ts index 29b68f3fef..622d49cd5a 100644 --- a/specification/specs/indices/analyze/CharFilterDetail.ts +++ b/specification/specs/indices/analyze/CharFilterDetail.ts @@ -1,3 +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. + */ + class CharFilterDetail { filtered_text: string[] name: string diff --git a/specification/specs/indices/analyze/ExplainAnalyzeToken.ts b/specification/specs/indices/analyze/ExplainAnalyzeToken.ts index aa2a871e36..1d5bb8d313 100644 --- a/specification/specs/indices/analyze/ExplainAnalyzeToken.ts +++ b/specification/specs/indices/analyze/ExplainAnalyzeToken.ts @@ -1,3 +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. + */ + class ExplainAnalyzeToken { bytes: string end_offset: long diff --git a/specification/specs/indices/analyze/TokenDetail.ts b/specification/specs/indices/analyze/TokenDetail.ts index 87d4f0b474..4d34527523 100644 --- a/specification/specs/indices/analyze/TokenDetail.ts +++ b/specification/specs/indices/analyze/TokenDetail.ts @@ -1,3 +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. + */ + class TokenDetail { name: string tokens: ExplainAnalyzeToken[] diff --git a/specification/specs/indices/index_management/clone_index/CloneIndexRequest.ts b/specification/specs/indices/index_management/clone_index/CloneIndexRequest.ts index 89ec7a7783..e18acaf83e 100644 --- a/specification/specs/indices/index_management/clone_index/CloneIndexRequest.ts +++ b/specification/specs/indices/index_management/clone_index/CloneIndexRequest.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/indices/index_management/clone_index/CloneIndexResponse.ts b/specification/specs/indices/index_management/clone_index/CloneIndexResponse.ts index 91f0055dad..1886377e6f 100644 --- a/specification/specs/indices/index_management/clone_index/CloneIndexResponse.ts +++ b/specification/specs/indices/index_management/clone_index/CloneIndexResponse.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/indices/index_management/create_index/CreateIndexRequest.ts b/specification/specs/indices/index_management/create_index/CreateIndexRequest.ts index 97d3cce655..910c786c2d 100644 --- a/specification/specs/indices/index_management/create_index/CreateIndexRequest.ts +++ b/specification/specs/indices/index_management/create_index/CreateIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.create') class CreateIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/create_index/CreateIndexResponse.ts b/specification/specs/indices/index_management/create_index/CreateIndexResponse.ts index b2575e7a20..9ceef148e3 100644 --- a/specification/specs/indices/index_management/create_index/CreateIndexResponse.ts +++ b/specification/specs/indices/index_management/create_index/CreateIndexResponse.ts @@ -1,3 +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. + */ + class CreateIndexResponse extends AcknowledgedResponseBase { index: string shards_acknowledged: boolean diff --git a/specification/specs/indices/index_management/delete_index/DeleteIndexRequest.ts b/specification/specs/indices/index_management/delete_index/DeleteIndexRequest.ts index db8e361342..dead015655 100644 --- a/specification/specs/indices/index_management/delete_index/DeleteIndexRequest.ts +++ b/specification/specs/indices/index_management/delete_index/DeleteIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.delete') class DeleteIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/delete_index/DeleteIndexResponse.ts b/specification/specs/indices/index_management/delete_index/DeleteIndexResponse.ts index 20f88aefe5..b72ec3911b 100644 --- a/specification/specs/indices/index_management/delete_index/DeleteIndexResponse.ts +++ b/specification/specs/indices/index_management/delete_index/DeleteIndexResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteIndexResponse extends IndicesResponseBase {} diff --git a/specification/specs/indices/index_management/freeze_index/FreezeIndexRequest.ts b/specification/specs/indices/index_management/freeze_index/FreezeIndexRequest.ts index 38db8b395d..f5aecb4fa4 100644 --- a/specification/specs/indices/index_management/freeze_index/FreezeIndexRequest.ts +++ b/specification/specs/indices/index_management/freeze_index/FreezeIndexRequest.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/indices/index_management/freeze_index/FreezeIndexResponse.ts b/specification/specs/indices/index_management/freeze_index/FreezeIndexResponse.ts index 5e9aa28684..3a6d55a0f1 100644 --- a/specification/specs/indices/index_management/freeze_index/FreezeIndexResponse.ts +++ b/specification/specs/indices/index_management/freeze_index/FreezeIndexResponse.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/indices/index_management/get_index/GetIndexRequest.ts b/specification/specs/indices/index_management/get_index/GetIndexRequest.ts index 9134bbfd43..79a7dd46b6 100644 --- a/specification/specs/indices/index_management/get_index/GetIndexRequest.ts +++ b/specification/specs/indices/index_management/get_index/GetIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.get') class GetIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/get_index/GetIndexResponse.ts b/specification/specs/indices/index_management/get_index/GetIndexResponse.ts index ba6824075f..900a89d65e 100644 --- a/specification/specs/indices/index_management/get_index/GetIndexResponse.ts +++ b/specification/specs/indices/index_management/get_index/GetIndexResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class GetIndexResponse extends DictionaryResponseBase {} diff --git a/specification/specs/indices/index_management/indices_exists/IndexExistsRequest.ts b/specification/specs/indices/index_management/indices_exists/IndexExistsRequest.ts index f1bee284af..acf9094abf 100644 --- a/specification/specs/indices/index_management/indices_exists/IndexExistsRequest.ts +++ b/specification/specs/indices/index_management/indices_exists/IndexExistsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.exists') class IndexExistsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/indices_exists/IndexExistsResponse.ts b/specification/specs/indices/index_management/indices_exists/IndexExistsResponse.ts index 80d87647c8..20ee71029d 100644 --- a/specification/specs/indices/index_management/indices_exists/IndexExistsResponse.ts +++ b/specification/specs/indices/index_management/indices_exists/IndexExistsResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class IndexExistsResponse extends ResponseBase implements EmptyResponseBase {} diff --git a/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexRequest.ts b/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexRequest.ts index c0c27fcbcd..78d32c6791 100644 --- a/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexRequest.ts +++ b/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.close') class CloseIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexResponse.ts b/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexResponse.ts index e59e5411bd..23af3ae4e9 100644 --- a/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexResponse.ts +++ b/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexResponse.ts @@ -1,3 +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. + */ + class CloseIndexResponse extends AcknowledgedResponseBase { indices: Dictionary shards_acknowledged: boolean diff --git a/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexResult.ts b/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexResult.ts index 8e23115946..d70eb45ab0 100644 --- a/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexResult.ts +++ b/specification/specs/indices/index_management/open_close_index/close_index/CloseIndexResult.ts @@ -1,3 +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. + */ + class CloseIndexResult { closed: boolean shards: Dictionary diff --git a/specification/specs/indices/index_management/open_close_index/close_index/CloseShardResult.ts b/specification/specs/indices/index_management/open_close_index/close_index/CloseShardResult.ts index 206295dd1a..95415b3751 100644 --- a/specification/specs/indices/index_management/open_close_index/close_index/CloseShardResult.ts +++ b/specification/specs/indices/index_management/open_close_index/close_index/CloseShardResult.ts @@ -1,3 +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. + */ + class CloseShardResult { failures: ShardFailure[] } diff --git a/specification/specs/indices/index_management/open_close_index/open_index/OpenIndexRequest.ts b/specification/specs/indices/index_management/open_close_index/open_index/OpenIndexRequest.ts index 2f1f716ea8..194dad3a54 100644 --- a/specification/specs/indices/index_management/open_close_index/open_index/OpenIndexRequest.ts +++ b/specification/specs/indices/index_management/open_close_index/open_index/OpenIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.open') class OpenIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/open_close_index/open_index/OpenIndexResponse.ts b/specification/specs/indices/index_management/open_close_index/open_index/OpenIndexResponse.ts index 75b6d5efe4..6e15fd7da5 100644 --- a/specification/specs/indices/index_management/open_close_index/open_index/OpenIndexResponse.ts +++ b/specification/specs/indices/index_management/open_close_index/open_index/OpenIndexResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class OpenIndexResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/indices/index_management/rollover_index/RolloverConditions.ts b/specification/specs/indices/index_management/rollover_index/RolloverConditions.ts index 23af537550..0f03632d23 100644 --- a/specification/specs/indices/index_management/rollover_index/RolloverConditions.ts +++ b/specification/specs/indices/index_management/rollover_index/RolloverConditions.ts @@ -1,3 +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. + */ + class RolloverConditions { max_age: Time max_docs: long diff --git a/specification/specs/indices/index_management/rollover_index/RolloverIndexRequest.ts b/specification/specs/indices/index_management/rollover_index/RolloverIndexRequest.ts index dc050be3b7..a115bb1443 100644 --- a/specification/specs/indices/index_management/rollover_index/RolloverIndexRequest.ts +++ b/specification/specs/indices/index_management/rollover_index/RolloverIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.rollover') class RolloverIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/rollover_index/RolloverIndexResponse.ts b/specification/specs/indices/index_management/rollover_index/RolloverIndexResponse.ts index 4351aeb968..ab4fe611a9 100644 --- a/specification/specs/indices/index_management/rollover_index/RolloverIndexResponse.ts +++ b/specification/specs/indices/index_management/rollover_index/RolloverIndexResponse.ts @@ -1,3 +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. + */ + class RolloverIndexResponse extends AcknowledgedResponseBase { conditions: Dictionary dry_run: boolean diff --git a/specification/specs/indices/index_management/shrink_index/ShrinkIndexRequest.ts b/specification/specs/indices/index_management/shrink_index/ShrinkIndexRequest.ts index 546ab0b02d..f90caab51c 100644 --- a/specification/specs/indices/index_management/shrink_index/ShrinkIndexRequest.ts +++ b/specification/specs/indices/index_management/shrink_index/ShrinkIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.shrink') class ShrinkIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/shrink_index/ShrinkIndexResponse.ts b/specification/specs/indices/index_management/shrink_index/ShrinkIndexResponse.ts index 0e6899beff..f174389943 100644 --- a/specification/specs/indices/index_management/shrink_index/ShrinkIndexResponse.ts +++ b/specification/specs/indices/index_management/shrink_index/ShrinkIndexResponse.ts @@ -1,3 +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. + */ + class ShrinkIndexResponse extends AcknowledgedResponseBase { shards_acknowledged: boolean } diff --git a/specification/specs/indices/index_management/split_index/SplitIndexRequest.ts b/specification/specs/indices/index_management/split_index/SplitIndexRequest.ts index 7e35dc8e7e..40d2dd43fd 100644 --- a/specification/specs/indices/index_management/split_index/SplitIndexRequest.ts +++ b/specification/specs/indices/index_management/split_index/SplitIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.split') class SplitIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/split_index/SplitIndexResponse.ts b/specification/specs/indices/index_management/split_index/SplitIndexResponse.ts index 0437e9a92f..357a6ec70f 100644 --- a/specification/specs/indices/index_management/split_index/SplitIndexResponse.ts +++ b/specification/specs/indices/index_management/split_index/SplitIndexResponse.ts @@ -1,3 +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. + */ + class SplitIndexResponse extends AcknowledgedResponseBase { shards_acknowledged: boolean } diff --git a/specification/specs/indices/index_management/types_exists/TypeExistsRequest.ts b/specification/specs/indices/index_management/types_exists/TypeExistsRequest.ts index f413c09174..d944825190 100644 --- a/specification/specs/indices/index_management/types_exists/TypeExistsRequest.ts +++ b/specification/specs/indices/index_management/types_exists/TypeExistsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.exists_type') class TypeExistsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/types_exists/TypeExistsResponse.ts b/specification/specs/indices/index_management/types_exists/TypeExistsResponse.ts index 6b52015dc8..1135bd31d1 100644 --- a/specification/specs/indices/index_management/types_exists/TypeExistsResponse.ts +++ b/specification/specs/indices/index_management/types_exists/TypeExistsResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class TypeExistsResponse extends ResponseBase implements EmptyResponseBase {} diff --git a/specification/specs/indices/index_management/unfreeze_index/UnfreezeIndexRequest.ts b/specification/specs/indices/index_management/unfreeze_index/UnfreezeIndexRequest.ts index f29cf9d8cf..720bca69f5 100644 --- a/specification/specs/indices/index_management/unfreeze_index/UnfreezeIndexRequest.ts +++ b/specification/specs/indices/index_management/unfreeze_index/UnfreezeIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.unfreeze') class UnfreezeIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_management/unfreeze_index/UnfreezeIndexResponse.ts b/specification/specs/indices/index_management/unfreeze_index/UnfreezeIndexResponse.ts index 8cf2cf7af9..0b8e1cd4af 100644 --- a/specification/specs/indices/index_management/unfreeze_index/UnfreezeIndexResponse.ts +++ b/specification/specs/indices/index_management/unfreeze_index/UnfreezeIndexResponse.ts @@ -1,3 +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. + */ + class UnfreezeIndexResponse extends AcknowledgedResponseBase { shards_acknowledged: boolean } diff --git a/specification/specs/indices/index_settings/get_index_settings/GetIndexSettingsRequest.ts b/specification/specs/indices/index_settings/get_index_settings/GetIndexSettingsRequest.ts index 9ddc1ec3b7..75a65d10b3 100644 --- a/specification/specs/indices/index_settings/get_index_settings/GetIndexSettingsRequest.ts +++ b/specification/specs/indices/index_settings/get_index_settings/GetIndexSettingsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.get_settings') class GetIndexSettingsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_settings/get_index_settings/GetIndexSettingsResponse.ts b/specification/specs/indices/index_settings/get_index_settings/GetIndexSettingsResponse.ts index 152c10f85e..325546a06a 100644 --- a/specification/specs/indices/index_settings/get_index_settings/GetIndexSettingsResponse.ts +++ b/specification/specs/indices/index_settings/get_index_settings/GetIndexSettingsResponse.ts @@ -1,3 +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. + */ + class GetIndexSettingsResponse extends DictionaryResponseBase< IndexName, IndexState diff --git a/specification/specs/indices/index_settings/index_templates/delete_index_template/DeleteIndexTemplateRequest.ts b/specification/specs/indices/index_settings/index_templates/delete_index_template/DeleteIndexTemplateRequest.ts index ff6028e775..191262e75e 100644 --- a/specification/specs/indices/index_settings/index_templates/delete_index_template/DeleteIndexTemplateRequest.ts +++ b/specification/specs/indices/index_settings/index_templates/delete_index_template/DeleteIndexTemplateRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.delete_template') class DeleteIndexTemplateRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_settings/index_templates/delete_index_template/DeleteIndexTemplateResponse.ts b/specification/specs/indices/index_settings/index_templates/delete_index_template/DeleteIndexTemplateResponse.ts index 37c3918a83..007bb40790 100644 --- a/specification/specs/indices/index_settings/index_templates/delete_index_template/DeleteIndexTemplateResponse.ts +++ b/specification/specs/indices/index_settings/index_templates/delete_index_template/DeleteIndexTemplateResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteIndexTemplateResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/indices/index_settings/index_templates/get_index_template/GetIndexTemplateRequest.ts b/specification/specs/indices/index_settings/index_templates/get_index_template/GetIndexTemplateRequest.ts index 6a148b97f5..9d7ac0abb7 100644 --- a/specification/specs/indices/index_settings/index_templates/get_index_template/GetIndexTemplateRequest.ts +++ b/specification/specs/indices/index_settings/index_templates/get_index_template/GetIndexTemplateRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.get_template') class GetIndexTemplateRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_settings/index_templates/get_index_template/GetIndexTemplateResponse.ts b/specification/specs/indices/index_settings/index_templates/get_index_template/GetIndexTemplateResponse.ts index 9f0f46cae9..1776798283 100644 --- a/specification/specs/indices/index_settings/index_templates/get_index_template/GetIndexTemplateResponse.ts +++ b/specification/specs/indices/index_settings/index_templates/get_index_template/GetIndexTemplateResponse.ts @@ -1,3 +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. + */ + class GetIndexTemplateResponse extends DictionaryResponseBase< string, TemplateMapping diff --git a/specification/specs/indices/index_settings/index_templates/get_index_template/TemplateMapping.ts b/specification/specs/indices/index_settings/index_templates/get_index_template/TemplateMapping.ts index 8cecc29f0d..69e18ea558 100644 --- a/specification/specs/indices/index_settings/index_templates/get_index_template/TemplateMapping.ts +++ b/specification/specs/indices/index_settings/index_templates/get_index_template/TemplateMapping.ts @@ -1,3 +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. + */ + class TemplateMapping { aliases: Dictionary index_patterns: string[] diff --git a/specification/specs/indices/index_settings/index_templates/index_template_exists/IndexTemplateExistsRequest.ts b/specification/specs/indices/index_settings/index_templates/index_template_exists/IndexTemplateExistsRequest.ts index 76d30d0606..bbd80745d6 100644 --- a/specification/specs/indices/index_settings/index_templates/index_template_exists/IndexTemplateExistsRequest.ts +++ b/specification/specs/indices/index_settings/index_templates/index_template_exists/IndexTemplateExistsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.exists_template') class IndexTemplateExistsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_settings/index_templates/index_template_exists/IndexTemplateExistsResponse.ts b/specification/specs/indices/index_settings/index_templates/index_template_exists/IndexTemplateExistsResponse.ts index 8ae9ae906d..e52065e671 100644 --- a/specification/specs/indices/index_settings/index_templates/index_template_exists/IndexTemplateExistsResponse.ts +++ b/specification/specs/indices/index_settings/index_templates/index_template_exists/IndexTemplateExistsResponse.ts @@ -1,3 +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. + */ + class IndexTemplateExistsResponse extends ResponseBase implements EmptyResponseBase {} diff --git a/specification/specs/indices/index_settings/index_templates/put_index_template/PutIndexTemplateRequest.ts b/specification/specs/indices/index_settings/index_templates/put_index_template/PutIndexTemplateRequest.ts index 748c566827..506fb62ec3 100644 --- a/specification/specs/indices/index_settings/index_templates/put_index_template/PutIndexTemplateRequest.ts +++ b/specification/specs/indices/index_settings/index_templates/put_index_template/PutIndexTemplateRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.put_template') class PutIndexTemplateRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/index_settings/index_templates/put_index_template/PutIndexTemplateResponse.ts b/specification/specs/indices/index_settings/index_templates/put_index_template/PutIndexTemplateResponse.ts index 50f1030d2a..ef92584237 100644 --- a/specification/specs/indices/index_settings/index_templates/put_index_template/PutIndexTemplateResponse.ts +++ b/specification/specs/indices/index_settings/index_templates/put_index_template/PutIndexTemplateResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PutIndexTemplateResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/indices/index_settings/update_index_settings/UpdateIndexSettingsRequest.ts b/specification/specs/indices/index_settings/update_index_settings/UpdateIndexSettingsRequest.ts index ec740560d2..b8b3a4f67c 100644 --- a/specification/specs/indices/index_settings/update_index_settings/UpdateIndexSettingsRequest.ts +++ b/specification/specs/indices/index_settings/update_index_settings/UpdateIndexSettingsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.put_settings') @class_serializer('UpdateIndexSettingsRequestFormatter') class UpdateIndexSettingsRequest extends RequestBase { diff --git a/specification/specs/indices/index_settings/update_index_settings/UpdateIndexSettingsResponse.ts b/specification/specs/indices/index_settings/update_index_settings/UpdateIndexSettingsResponse.ts index 731149f3c4..ac91929c1b 100644 --- a/specification/specs/indices/index_settings/update_index_settings/UpdateIndexSettingsResponse.ts +++ b/specification/specs/indices/index_settings/update_index_settings/UpdateIndexSettingsResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class UpdateIndexSettingsResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/indices/mapping_management/get_field_mapping/GetFieldMappingRequest.ts b/specification/specs/indices/mapping_management/get_field_mapping/GetFieldMappingRequest.ts index 9dba93fe35..463d095b49 100644 --- a/specification/specs/indices/mapping_management/get_field_mapping/GetFieldMappingRequest.ts +++ b/specification/specs/indices/mapping_management/get_field_mapping/GetFieldMappingRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.get_field_mapping') class GetFieldMappingRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/mapping_management/get_field_mapping/GetFieldMappingResponse.ts b/specification/specs/indices/mapping_management/get_field_mapping/GetFieldMappingResponse.ts index ce0f2872b7..fa9d0cc1f3 100644 --- a/specification/specs/indices/mapping_management/get_field_mapping/GetFieldMappingResponse.ts +++ b/specification/specs/indices/mapping_management/get_field_mapping/GetFieldMappingResponse.ts @@ -1,3 +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. + */ + class GetFieldMappingResponse extends DictionaryResponseBase< IndexName, TypeFieldMappings diff --git a/specification/specs/indices/mapping_management/get_field_mapping/TypeFieldMappings.ts b/specification/specs/indices/mapping_management/get_field_mapping/TypeFieldMappings.ts index 1b6af301e4..233320c544 100644 --- a/specification/specs/indices/mapping_management/get_field_mapping/TypeFieldMappings.ts +++ b/specification/specs/indices/mapping_management/get_field_mapping/TypeFieldMappings.ts @@ -1,3 +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. + */ + class TypeFieldMappings { /** @prop_serializer ResolvableReadOnlyDictionaryFormatter`2 */ mappings: Dictionary diff --git a/specification/specs/indices/mapping_management/get_mapping/GetMappingRequest.ts b/specification/specs/indices/mapping_management/get_mapping/GetMappingRequest.ts index 75d2b8e95e..3eedc005f9 100644 --- a/specification/specs/indices/mapping_management/get_mapping/GetMappingRequest.ts +++ b/specification/specs/indices/mapping_management/get_mapping/GetMappingRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.get_mapping') class GetMappingRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/mapping_management/get_mapping/GetMappingResponse.ts b/specification/specs/indices/mapping_management/get_mapping/GetMappingResponse.ts index e22e870f71..03cbaed9ff 100644 --- a/specification/specs/indices/mapping_management/get_mapping/GetMappingResponse.ts +++ b/specification/specs/indices/mapping_management/get_mapping/GetMappingResponse.ts @@ -1,3 +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. + */ + class GetMappingResponse extends DictionaryResponseBase< IndexName, IndexMappings diff --git a/specification/specs/indices/mapping_management/get_mapping/IndexMappings.ts b/specification/specs/indices/mapping_management/get_mapping/IndexMappings.ts index 3d4d005678..ac17776000 100644 --- a/specification/specs/indices/mapping_management/get_mapping/IndexMappings.ts +++ b/specification/specs/indices/mapping_management/get_mapping/IndexMappings.ts @@ -1,3 +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. + */ + class IndexMappings { item: TypeMapping mappings: TypeMapping diff --git a/specification/specs/indices/mapping_management/put_mapping/PutMappingRequest.ts b/specification/specs/indices/mapping_management/put_mapping/PutMappingRequest.ts index b126a8a472..232d94b4c9 100644 --- a/specification/specs/indices/mapping_management/put_mapping/PutMappingRequest.ts +++ b/specification/specs/indices/mapping_management/put_mapping/PutMappingRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.put_mapping') class PutMappingRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/mapping_management/put_mapping/PutMappingResponse.ts b/specification/specs/indices/mapping_management/put_mapping/PutMappingResponse.ts index fb08def5d7..f1864e5285 100644 --- a/specification/specs/indices/mapping_management/put_mapping/PutMappingResponse.ts +++ b/specification/specs/indices/mapping_management/put_mapping/PutMappingResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PutMappingResponse extends IndicesResponseBase {} diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryBytes.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryBytes.ts index 825f6f35fa..73ec4fa71d 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryBytes.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryBytes.ts @@ -1,3 +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. + */ + class RecoveryBytes { percent: string recovered: long diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryFileDetails.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryFileDetails.ts index 4d6ae7bad2..69c4be81c9 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryFileDetails.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryFileDetails.ts @@ -1,3 +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. + */ + class RecoveryFileDetails { length: long name: string diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryFiles.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryFiles.ts index d0d38f4272..93223f84a5 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryFiles.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryFiles.ts @@ -1,3 +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. + */ + class RecoveryFiles { details: RecoveryFileDetails[] percent: string diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryIndexStatus.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryIndexStatus.ts index c3f010b298..8514ad174c 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryIndexStatus.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryIndexStatus.ts @@ -1,3 +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. + */ + class RecoveryIndexStatus { bytes: RecoveryBytes files: RecoveryFiles diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryOrigin.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryOrigin.ts index 332620e917..8f5cb1f89f 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryOrigin.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryOrigin.ts @@ -1,3 +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. + */ + class RecoveryOrigin { hostname: string id: string diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryStartStatus.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryStartStatus.ts index 5a2ee146a3..46bc053813 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryStartStatus.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryStartStatus.ts @@ -1,3 +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. + */ + class RecoveryStartStatus { check_index_time: long total_time_in_millis: string diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryStatus.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryStatus.ts index 1865ccb322..7fddf2881f 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryStatus.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryStatus.ts @@ -1,3 +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. + */ + class RecoveryStatus { shards: ShardRecovery[] } diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryStatusRequest.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryStatusRequest.ts index f08aeeb2a6..4faaba87fe 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryStatusRequest.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryStatusRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.recovery') class RecoveryStatusRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryStatusResponse.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryStatusResponse.ts index 33784a81b5..440453a159 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryStatusResponse.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryStatusResponse.ts @@ -1,3 +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. + */ + class RecoveryStatusResponse extends DictionaryResponseBase< IndexName, RecoveryStatus diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryTranslogStatus.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryTranslogStatus.ts index e0081200f7..45e985325d 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryTranslogStatus.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryTranslogStatus.ts @@ -1,3 +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. + */ + class RecoveryTranslogStatus { percent: string recovered: long diff --git a/specification/specs/indices/monitoring/indices_recovery/RecoveryVerifyIndex.ts b/specification/specs/indices/monitoring/indices_recovery/RecoveryVerifyIndex.ts index ca93f18cff..25cf9eb00f 100644 --- a/specification/specs/indices/monitoring/indices_recovery/RecoveryVerifyIndex.ts +++ b/specification/specs/indices/monitoring/indices_recovery/RecoveryVerifyIndex.ts @@ -1,3 +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. + */ + class RecoveryVerifyIndex { check_index_time_in_millis: long total_time_in_millis: long diff --git a/specification/specs/indices/monitoring/indices_recovery/ShardRecovery.ts b/specification/specs/indices/monitoring/indices_recovery/ShardRecovery.ts index de0411e044..02fe1f0296 100644 --- a/specification/specs/indices/monitoring/indices_recovery/ShardRecovery.ts +++ b/specification/specs/indices/monitoring/indices_recovery/ShardRecovery.ts @@ -1,3 +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. + */ + class ShardRecovery { id: long index: RecoveryIndexStatus diff --git a/specification/specs/indices/monitoring/indices_segments/IndexSegment.ts b/specification/specs/indices/monitoring/indices_segments/IndexSegment.ts index efa241a647..7c85c38c95 100644 --- a/specification/specs/indices/monitoring/indices_segments/IndexSegment.ts +++ b/specification/specs/indices/monitoring/indices_segments/IndexSegment.ts @@ -1,3 +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. + */ + class IndexSegment { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ shards: Dictionary diff --git a/specification/specs/indices/monitoring/indices_segments/Segment.ts b/specification/specs/indices/monitoring/indices_segments/Segment.ts index f54462d116..eaa2f802be 100644 --- a/specification/specs/indices/monitoring/indices_segments/Segment.ts +++ b/specification/specs/indices/monitoring/indices_segments/Segment.ts @@ -1,3 +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. + */ + class Segment { attributes: Dictionary committed: boolean diff --git a/specification/specs/indices/monitoring/indices_segments/SegmentsRequest.ts b/specification/specs/indices/monitoring/indices_segments/SegmentsRequest.ts index 5827170e75..1918c78fab 100644 --- a/specification/specs/indices/monitoring/indices_segments/SegmentsRequest.ts +++ b/specification/specs/indices/monitoring/indices_segments/SegmentsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.segments') class SegmentsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/monitoring/indices_segments/SegmentsResponse.ts b/specification/specs/indices/monitoring/indices_segments/SegmentsResponse.ts index 7a398caa71..0596144756 100644 --- a/specification/specs/indices/monitoring/indices_segments/SegmentsResponse.ts +++ b/specification/specs/indices/monitoring/indices_segments/SegmentsResponse.ts @@ -1,3 +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. + */ + class SegmentsResponse extends ResponseBase { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ indices: Dictionary diff --git a/specification/specs/indices/monitoring/indices_segments/ShardSegmentRouting.ts b/specification/specs/indices/monitoring/indices_segments/ShardSegmentRouting.ts index fce32b0ad9..ccd6f567b0 100644 --- a/specification/specs/indices/monitoring/indices_segments/ShardSegmentRouting.ts +++ b/specification/specs/indices/monitoring/indices_segments/ShardSegmentRouting.ts @@ -1,3 +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. + */ + class ShardSegmentRouting { node: string primary: boolean diff --git a/specification/specs/indices/monitoring/indices_segments/ShardsSegment.ts b/specification/specs/indices/monitoring/indices_segments/ShardsSegment.ts index a4eb0990ec..a0241d04ae 100644 --- a/specification/specs/indices/monitoring/indices_segments/ShardsSegment.ts +++ b/specification/specs/indices/monitoring/indices_segments/ShardsSegment.ts @@ -1,3 +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. + */ + @class_serializer('Json') class ShardsSegment { num_committed_segments: integer diff --git a/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStores.ts b/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStores.ts index e80b1511d2..7d5a092599 100644 --- a/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStores.ts +++ b/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStores.ts @@ -1,3 +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. + */ + class IndicesShardStores { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ shards: Dictionary diff --git a/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStoresRequest.ts b/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStoresRequest.ts index b6fcce9e36..c3cafde166 100644 --- a/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStoresRequest.ts +++ b/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStoresRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.shard_stores') class IndicesShardStoresRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStoresResponse.ts b/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStoresResponse.ts index 156d0831bf..46b0f91dd5 100644 --- a/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStoresResponse.ts +++ b/specification/specs/indices/monitoring/indices_shard_stores/IndicesShardStoresResponse.ts @@ -1,3 +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. + */ + class IndicesShardStoresResponse extends ResponseBase { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ indices: Dictionary diff --git a/specification/specs/indices/monitoring/indices_shard_stores/ShardStore.ts b/specification/specs/indices/monitoring/indices_shard_stores/ShardStore.ts index b7a53c67fe..141e78722b 100644 --- a/specification/specs/indices/monitoring/indices_shard_stores/ShardStore.ts +++ b/specification/specs/indices/monitoring/indices_shard_stores/ShardStore.ts @@ -1,3 +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. + */ + @class_serializer('ShardStoreFormatter') class ShardStore { allocation: ShardStoreAllocation diff --git a/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreAllocation.ts b/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreAllocation.ts index 58becf8261..8bec82798a 100644 --- a/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreAllocation.ts +++ b/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreAllocation.ts @@ -1,3 +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. + */ + enum ShardStoreAllocation { primary = 0, replica = 1, diff --git a/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreException.ts b/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreException.ts index 5e1577d58b..83834fa223 100644 --- a/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreException.ts +++ b/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreException.ts @@ -1,3 +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. + */ + class ShardStoreException { reason: string type: string diff --git a/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreWrapper.ts b/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreWrapper.ts index d251bcbc55..ee2cdb075f 100644 --- a/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreWrapper.ts +++ b/specification/specs/indices/monitoring/indices_shard_stores/ShardStoreWrapper.ts @@ -1,3 +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. + */ + class ShardStoreWrapper { stores: ShardStore[] } diff --git a/specification/specs/indices/monitoring/indices_stats/IndexStats.ts b/specification/specs/indices/monitoring/indices_stats/IndexStats.ts index d76dae6283..cd11faebcb 100644 --- a/specification/specs/indices/monitoring/indices_stats/IndexStats.ts +++ b/specification/specs/indices/monitoring/indices_stats/IndexStats.ts @@ -1,3 +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. + */ + class IndexStats { completion?: CompletionStats docs?: DocStats diff --git a/specification/specs/indices/monitoring/indices_stats/IndicesStats.ts b/specification/specs/indices/monitoring/indices_stats/IndicesStats.ts index 34b74624ad..fe357a370e 100644 --- a/specification/specs/indices/monitoring/indices_stats/IndicesStats.ts +++ b/specification/specs/indices/monitoring/indices_stats/IndicesStats.ts @@ -1,3 +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. + */ + class IndicesStats { primaries: IndexStats /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ diff --git a/specification/specs/indices/monitoring/indices_stats/IndicesStatsRequest.ts b/specification/specs/indices/monitoring/indices_stats/IndicesStatsRequest.ts index c97c42b147..79cf83a71d 100644 --- a/specification/specs/indices/monitoring/indices_stats/IndicesStatsRequest.ts +++ b/specification/specs/indices/monitoring/indices_stats/IndicesStatsRequest.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/indices/monitoring/indices_stats/IndicesStatsResponse.ts b/specification/specs/indices/monitoring/indices_stats/IndicesStatsResponse.ts index 266c85d90b..1b6b5f8c3a 100644 --- a/specification/specs/indices/monitoring/indices_stats/IndicesStatsResponse.ts +++ b/specification/specs/indices/monitoring/indices_stats/IndicesStatsResponse.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/indices/monitoring/indices_stats/ShardCommit.ts b/specification/specs/indices/monitoring/indices_stats/ShardCommit.ts index 24c8968093..55f93bf2c0 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardCommit.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardCommit.ts @@ -1,3 +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. + */ + class ShardCommit { generation: integer id: string diff --git a/specification/specs/indices/monitoring/indices_stats/ShardCompletion.ts b/specification/specs/indices/monitoring/indices_stats/ShardCompletion.ts index cd969f5041..9bfe048066 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardCompletion.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardCompletion.ts @@ -1,3 +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. + */ + class ShardCompletion { size_in_bytes: long } diff --git a/specification/specs/indices/monitoring/indices_stats/ShardDocs.ts b/specification/specs/indices/monitoring/indices_stats/ShardDocs.ts index 2f28bf8a39..ca3717586c 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardDocs.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardDocs.ts @@ -1,3 +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. + */ + class ShardDocs { count: long deleted: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardFielddata.ts b/specification/specs/indices/monitoring/indices_stats/ShardFielddata.ts index 9ff51060e7..e1adab8172 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardFielddata.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardFielddata.ts @@ -1,3 +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. + */ + class ShardFielddata { evictions: long memory_size_in_bytes: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardFileSizeInfo.ts b/specification/specs/indices/monitoring/indices_stats/ShardFileSizeInfo.ts index 2cf0761f8c..21c027d57c 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardFileSizeInfo.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardFileSizeInfo.ts @@ -1,3 +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. + */ + class ShardFileSizeInfo { description: string size_in_bytes: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardFlush.ts b/specification/specs/indices/monitoring/indices_stats/ShardFlush.ts index ce038c4c6a..7cf038eb3f 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardFlush.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardFlush.ts @@ -1,3 +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. + */ + class ShardFlush { total: long periodic: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardGet.ts b/specification/specs/indices/monitoring/indices_stats/ShardGet.ts index 33b0524385..db64fd66d2 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardGet.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardGet.ts @@ -1,3 +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. + */ + class ShardGet { current: long exists_time_in_millis: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardIndexing.ts b/specification/specs/indices/monitoring/indices_stats/ShardIndexing.ts index e2818331c5..cdf9ff0639 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardIndexing.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardIndexing.ts @@ -1,3 +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. + */ + class ShardIndexing { delete_current: long delete_time_in_millis: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardLease.ts b/specification/specs/indices/monitoring/indices_stats/ShardLease.ts index 76c6608eb0..309938cdf0 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardLease.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardLease.ts @@ -1,3 +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. + */ + class ShardLease { id: string retaining_seq_no: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardMerges.ts b/specification/specs/indices/monitoring/indices_stats/ShardMerges.ts index 732b51659a..ff01307aa6 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardMerges.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardMerges.ts @@ -1,3 +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. + */ + class ShardMerges { current: long current_docs: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardPath.ts b/specification/specs/indices/monitoring/indices_stats/ShardPath.ts index a9be77c2d7..d754d99de1 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardPath.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardPath.ts @@ -1,3 +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. + */ + class ShardPath { data_path: string is_custom_data_path: boolean diff --git a/specification/specs/indices/monitoring/indices_stats/ShardQueryCache.ts b/specification/specs/indices/monitoring/indices_stats/ShardQueryCache.ts index 31c575e933..ea697b6aac 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardQueryCache.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardQueryCache.ts @@ -1,3 +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. + */ + class ShardQueryCache { cache_count: long cache_size: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardRefresh.ts b/specification/specs/indices/monitoring/indices_stats/ShardRefresh.ts index 72b020b425..a2f50a174a 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardRefresh.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardRefresh.ts @@ -1,3 +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. + */ + class ShardRefresh { listeners: long total: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardRequestCache.ts b/specification/specs/indices/monitoring/indices_stats/ShardRequestCache.ts index 9a41faf95b..2c351e2b31 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardRequestCache.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardRequestCache.ts @@ -1,3 +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. + */ + class ShardRequestCache { evictions: long hit_count: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardRetentionLeases.ts b/specification/specs/indices/monitoring/indices_stats/ShardRetentionLeases.ts index 22cc899b17..f2e1421372 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardRetentionLeases.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardRetentionLeases.ts @@ -1,3 +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. + */ + class ShardRetentionLeases { primary_term: long version: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardRouting.ts b/specification/specs/indices/monitoring/indices_stats/ShardRouting.ts index f3a2f3c3ea..dad598a1d0 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardRouting.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardRouting.ts @@ -1,3 +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. + */ + class ShardRouting { node: string primary: boolean diff --git a/specification/specs/indices/monitoring/indices_stats/ShardRoutingState.ts b/specification/specs/indices/monitoring/indices_stats/ShardRoutingState.ts index 190e111012..73c78284f4 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardRoutingState.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardRoutingState.ts @@ -1,3 +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. + */ + enum ShardRoutingState { UNASSIGNED = 0, INITIALIZING = 1, diff --git a/specification/specs/indices/monitoring/indices_stats/ShardSearch.ts b/specification/specs/indices/monitoring/indices_stats/ShardSearch.ts index 541f87a2f2..c8010c2fff 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardSearch.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardSearch.ts @@ -1,3 +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. + */ + class ShardSearch { fetch_current: long fetch_time_in_millis: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardSegments.ts b/specification/specs/indices/monitoring/indices_stats/ShardSegments.ts index b7043d35f8..43e34d3dcc 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardSegments.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardSegments.ts @@ -1,3 +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. + */ + class ShardSegments { count: long doc_values_memory_in_bytes: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardSequenceNumber.ts b/specification/specs/indices/monitoring/indices_stats/ShardSequenceNumber.ts index 684a14e1a1..01144b8cdc 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardSequenceNumber.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardSequenceNumber.ts @@ -1,3 +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. + */ + class ShardSequenceNumber { global_checkpoint: long local_checkpoint: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardStats.ts b/specification/specs/indices/monitoring/indices_stats/ShardStats.ts index 241649c7fa..3519797aa3 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardStats.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardStats.ts @@ -1,3 +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. + */ + class ShardStats { commit: ShardCommit completion: ShardCompletion diff --git a/specification/specs/indices/monitoring/indices_stats/ShardStatsRecovery.ts b/specification/specs/indices/monitoring/indices_stats/ShardStatsRecovery.ts index fb5bfbf853..91a96d8ed1 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardStatsRecovery.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardStatsRecovery.ts @@ -1,3 +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. + */ + class ShardStatsRecovery { current_as_source: long current_as_target: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardStatsStore.ts b/specification/specs/indices/monitoring/indices_stats/ShardStatsStore.ts index 5aeac6338a..695d48aeb1 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardStatsStore.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardStatsStore.ts @@ -1,3 +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. + */ + class ShardStatsStore { reserved_in_bytes: long size_in_bytes: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardTransactionLog.ts b/specification/specs/indices/monitoring/indices_stats/ShardTransactionLog.ts index 4acd0dd13a..16dc4e5297 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardTransactionLog.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardTransactionLog.ts @@ -1,3 +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. + */ + class ShardTransactionLog { earliest_last_modified_age: long operations: long diff --git a/specification/specs/indices/monitoring/indices_stats/ShardWarmer.ts b/specification/specs/indices/monitoring/indices_stats/ShardWarmer.ts index 0997aec43b..4544e44dd8 100644 --- a/specification/specs/indices/monitoring/indices_stats/ShardWarmer.ts +++ b/specification/specs/indices/monitoring/indices_stats/ShardWarmer.ts @@ -1,3 +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. + */ + class ShardWarmer { current: long total: long diff --git a/specification/specs/indices/reload_search_analyzers/ReloadDetails.ts b/specification/specs/indices/reload_search_analyzers/ReloadDetails.ts index 3c2a874d54..235f6a08ba 100644 --- a/specification/specs/indices/reload_search_analyzers/ReloadDetails.ts +++ b/specification/specs/indices/reload_search_analyzers/ReloadDetails.ts @@ -1,3 +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. + */ + class ReloadDetails { index: string reloaded_analyzers: string[] diff --git a/specification/specs/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts b/specification/specs/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts index a8a56c4ec2..ef320815a8 100644 --- a/specification/specs/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts +++ b/specification/specs/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.reload_search_analyzers') class ReloadSearchAnalyzersRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts b/specification/specs/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts index fc7a179d7b..db76a36c04 100644 --- a/specification/specs/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts +++ b/specification/specs/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts @@ -1,3 +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. + */ + class ReloadSearchAnalyzersResponse extends ResponseBase { reload_details: ReloadDetails[] _shards: ShardStatistics diff --git a/specification/specs/indices/status_management/clear_cache/ClearCacheRequest.ts b/specification/specs/indices/status_management/clear_cache/ClearCacheRequest.ts index ad5248be8e..eb0681d44e 100644 --- a/specification/specs/indices/status_management/clear_cache/ClearCacheRequest.ts +++ b/specification/specs/indices/status_management/clear_cache/ClearCacheRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.clear_cache') class ClearCacheRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/status_management/clear_cache/ClearCacheResponse.ts b/specification/specs/indices/status_management/clear_cache/ClearCacheResponse.ts index 336840ce81..387b1f500a 100644 --- a/specification/specs/indices/status_management/clear_cache/ClearCacheResponse.ts +++ b/specification/specs/indices/status_management/clear_cache/ClearCacheResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ClearCacheResponse extends ShardsOperationResponseBase {} diff --git a/specification/specs/indices/status_management/flush/FlushRequest.ts b/specification/specs/indices/status_management/flush/FlushRequest.ts index 0dad5966d4..8fab99f3a1 100644 --- a/specification/specs/indices/status_management/flush/FlushRequest.ts +++ b/specification/specs/indices/status_management/flush/FlushRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.flush') class FlushRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/status_management/flush/FlushResponse.ts b/specification/specs/indices/status_management/flush/FlushResponse.ts index fcc0602427..5423b26050 100644 --- a/specification/specs/indices/status_management/flush/FlushResponse.ts +++ b/specification/specs/indices/status_management/flush/FlushResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class FlushResponse extends ShardsOperationResponseBase {} diff --git a/specification/specs/indices/status_management/force_merge/ForceMergeRequest.ts b/specification/specs/indices/status_management/force_merge/ForceMergeRequest.ts index 169e450836..ba11630076 100644 --- a/specification/specs/indices/status_management/force_merge/ForceMergeRequest.ts +++ b/specification/specs/indices/status_management/force_merge/ForceMergeRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.forcemerge') class ForceMergeRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/status_management/force_merge/ForceMergeResponse.ts b/specification/specs/indices/status_management/force_merge/ForceMergeResponse.ts index 68b4a30f70..7ae28476ef 100644 --- a/specification/specs/indices/status_management/force_merge/ForceMergeResponse.ts +++ b/specification/specs/indices/status_management/force_merge/ForceMergeResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ForceMergeResponse extends ShardsOperationResponseBase {} diff --git a/specification/specs/indices/status_management/refresh/RefreshRequest.ts b/specification/specs/indices/status_management/refresh/RefreshRequest.ts index 69c41a055f..0ccb83a71d 100644 --- a/specification/specs/indices/status_management/refresh/RefreshRequest.ts +++ b/specification/specs/indices/status_management/refresh/RefreshRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.refresh') class RefreshRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/status_management/refresh/RefreshResponse.ts b/specification/specs/indices/status_management/refresh/RefreshResponse.ts index 2e9cd7f15b..fdac84a09a 100644 --- a/specification/specs/indices/status_management/refresh/RefreshResponse.ts +++ b/specification/specs/indices/status_management/refresh/RefreshResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class RefreshResponse extends ShardsOperationResponseBase {} diff --git a/specification/specs/indices/status_management/synced_flush/SyncedFlushRequest.ts b/specification/specs/indices/status_management/synced_flush/SyncedFlushRequest.ts index e06eb5de69..939dbf6ada 100644 --- a/specification/specs/indices/status_management/synced_flush/SyncedFlushRequest.ts +++ b/specification/specs/indices/status_management/synced_flush/SyncedFlushRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.flush_synced') class SyncedFlushRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/indices/status_management/synced_flush/SyncedFlushResponse.ts b/specification/specs/indices/status_management/synced_flush/SyncedFlushResponse.ts index 4e9b326914..92e5f1318b 100644 --- a/specification/specs/indices/status_management/synced_flush/SyncedFlushResponse.ts +++ b/specification/specs/indices/status_management/synced_flush/SyncedFlushResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class SyncedFlushResponse extends ShardsOperationResponseBase {} diff --git a/specification/specs/ingest/Pipeline.ts b/specification/specs/ingest/Pipeline.ts index 961ef2215a..e2d328396f 100644 --- a/specification/specs/ingest/Pipeline.ts +++ b/specification/specs/ingest/Pipeline.ts @@ -1,3 +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. + */ + class Pipeline { description: string on_failure: ProcessorContainer[] diff --git a/specification/specs/ingest/ProcessorBase.ts b/specification/specs/ingest/ProcessorBase.ts index 566a036552..5749258cb4 100644 --- a/specification/specs/ingest/ProcessorBase.ts +++ b/specification/specs/ingest/ProcessorBase.ts @@ -1,3 +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. + */ + class ProcessorBase { if: string ignore_failure: boolean diff --git a/specification/specs/ingest/ProcessorContainer.ts b/specification/specs/ingest/ProcessorContainer.ts index 56e30401c3..27540b3aca 100644 --- a/specification/specs/ingest/ProcessorContainer.ts +++ b/specification/specs/ingest/ProcessorContainer.ts @@ -1,3 +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. + */ + class ProcessorContainer { attachment: AttachmentProcessor append: AppendProcessor diff --git a/specification/specs/ingest/delete_pipeline/DeletePipelineRequest.ts b/specification/specs/ingest/delete_pipeline/DeletePipelineRequest.ts index 2ab0ee3fff..6c1067fdea 100644 --- a/specification/specs/ingest/delete_pipeline/DeletePipelineRequest.ts +++ b/specification/specs/ingest/delete_pipeline/DeletePipelineRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ingest.delete_pipeline') class DeletePipelineRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/ingest/delete_pipeline/DeletePipelineResponse.ts b/specification/specs/ingest/delete_pipeline/DeletePipelineResponse.ts index 270dd56362..d30e512101 100644 --- a/specification/specs/ingest/delete_pipeline/DeletePipelineResponse.ts +++ b/specification/specs/ingest/delete_pipeline/DeletePipelineResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeletePipelineResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/ingest/get_pipeline/GetPipelineRequest.ts b/specification/specs/ingest/get_pipeline/GetPipelineRequest.ts index 58527df80f..db6da59744 100644 --- a/specification/specs/ingest/get_pipeline/GetPipelineRequest.ts +++ b/specification/specs/ingest/get_pipeline/GetPipelineRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ingest.get_pipeline') class GetPipelineRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/ingest/get_pipeline/GetPipelineResponse.ts b/specification/specs/ingest/get_pipeline/GetPipelineResponse.ts index 529d198773..f5c4343b71 100644 --- a/specification/specs/ingest/get_pipeline/GetPipelineResponse.ts +++ b/specification/specs/ingest/get_pipeline/GetPipelineResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class GetPipelineResponse extends DictionaryResponseBase {} diff --git a/specification/specs/ingest/processor/GrokProcessorPatternsRequest.ts b/specification/specs/ingest/processor/GrokProcessorPatternsRequest.ts index 70a86e46e2..09b11c23c8 100644 --- a/specification/specs/ingest/processor/GrokProcessorPatternsRequest.ts +++ b/specification/specs/ingest/processor/GrokProcessorPatternsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ingest.processor_grok') class GrokProcessorPatternsRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/ingest/processor/GrokProcessorPatternsResponse.ts b/specification/specs/ingest/processor/GrokProcessorPatternsResponse.ts index 063cb5189c..1ec1ac1fb7 100644 --- a/specification/specs/ingest/processor/GrokProcessorPatternsResponse.ts +++ b/specification/specs/ingest/processor/GrokProcessorPatternsResponse.ts @@ -1,3 +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. + */ + class GrokProcessorPatternsResponse extends ResponseBase { patterns: Dictionary } diff --git a/specification/specs/ingest/processors/AppendProcessor.ts b/specification/specs/ingest/processors/AppendProcessor.ts index 3bfd431460..8ad401bc19 100644 --- a/specification/specs/ingest/processors/AppendProcessor.ts +++ b/specification/specs/ingest/processors/AppendProcessor.ts @@ -1,3 +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. + */ + class AppendProcessor extends ProcessorBase { field: Field value: UserDefinedValue[] diff --git a/specification/specs/ingest/processors/BytesProcessor.ts b/specification/specs/ingest/processors/BytesProcessor.ts index f3651a89be..4cbb6f676f 100644 --- a/specification/specs/ingest/processors/BytesProcessor.ts +++ b/specification/specs/ingest/processors/BytesProcessor.ts @@ -1,3 +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. + */ + class BytesProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/CircleProcessor.ts b/specification/specs/ingest/processors/CircleProcessor.ts index 7316e5a23a..ef91fa5def 100644 --- a/specification/specs/ingest/processors/CircleProcessor.ts +++ b/specification/specs/ingest/processors/CircleProcessor.ts @@ -1,3 +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. + */ + class CircleProcessor extends ProcessorBase { error_distance: double field: Field diff --git a/specification/specs/ingest/processors/ConvertProcessor.ts b/specification/specs/ingest/processors/ConvertProcessor.ts index 7f2260eaa8..a0ee42bfbe 100644 --- a/specification/specs/ingest/processors/ConvertProcessor.ts +++ b/specification/specs/ingest/processors/ConvertProcessor.ts @@ -1,3 +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. + */ + class ConvertProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/ConvertProcessorType.ts b/specification/specs/ingest/processors/ConvertProcessorType.ts index af56c60967..f06a8dfa77 100644 --- a/specification/specs/ingest/processors/ConvertProcessorType.ts +++ b/specification/specs/ingest/processors/ConvertProcessorType.ts @@ -1,3 +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. + */ + enum ConvertProcessorType { integer = 0, long = 1, diff --git a/specification/specs/ingest/processors/CsvProcessor.ts b/specification/specs/ingest/processors/CsvProcessor.ts index ef8a1b9f17..a2dd1795c9 100644 --- a/specification/specs/ingest/processors/CsvProcessor.ts +++ b/specification/specs/ingest/processors/CsvProcessor.ts @@ -1,3 +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. + */ + class CsvProcessor extends ProcessorBase { empty_value: UserDefinedValue field: Field diff --git a/specification/specs/ingest/processors/DateIndexNameProcessor.ts b/specification/specs/ingest/processors/DateIndexNameProcessor.ts index f10a91fda0..e62430d4a2 100644 --- a/specification/specs/ingest/processors/DateIndexNameProcessor.ts +++ b/specification/specs/ingest/processors/DateIndexNameProcessor.ts @@ -1,3 +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. + */ + class DateIndexNameProcessor extends ProcessorBase { date_formats: string[] date_rounding: DateRounding diff --git a/specification/specs/ingest/processors/DateProcessor.ts b/specification/specs/ingest/processors/DateProcessor.ts index e83028d7bc..63878fe30e 100644 --- a/specification/specs/ingest/processors/DateProcessor.ts +++ b/specification/specs/ingest/processors/DateProcessor.ts @@ -1,3 +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. + */ + class DateProcessor extends ProcessorBase { field: Field formats: string[] diff --git a/specification/specs/ingest/processors/DateRounding.ts b/specification/specs/ingest/processors/DateRounding.ts index d9ccd362a8..64616da425 100644 --- a/specification/specs/ingest/processors/DateRounding.ts +++ b/specification/specs/ingest/processors/DateRounding.ts @@ -1,3 +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. + */ + enum DateRounding { s = 0, m = 1, diff --git a/specification/specs/ingest/processors/DissectProcessor.ts b/specification/specs/ingest/processors/DissectProcessor.ts index f63ddcd7e7..d8906eca68 100644 --- a/specification/specs/ingest/processors/DissectProcessor.ts +++ b/specification/specs/ingest/processors/DissectProcessor.ts @@ -1,3 +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. + */ + class DissectProcessor extends ProcessorBase { append_separator: string field: Field diff --git a/specification/specs/ingest/processors/DotExpanderProcessor.ts b/specification/specs/ingest/processors/DotExpanderProcessor.ts index e55232eb6e..4be2124de9 100644 --- a/specification/specs/ingest/processors/DotExpanderProcessor.ts +++ b/specification/specs/ingest/processors/DotExpanderProcessor.ts @@ -1,3 +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. + */ + class DotExpanderProcessor extends ProcessorBase { field: Field path: string diff --git a/specification/specs/ingest/processors/DropProcessor.ts b/specification/specs/ingest/processors/DropProcessor.ts index 43fd6f4111..c34cd715c0 100644 --- a/specification/specs/ingest/processors/DropProcessor.ts +++ b/specification/specs/ingest/processors/DropProcessor.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DropProcessor extends ProcessorBase {} diff --git a/specification/specs/ingest/processors/EnrichProcessor.ts b/specification/specs/ingest/processors/EnrichProcessor.ts index 4613d4d743..8f70040a84 100644 --- a/specification/specs/ingest/processors/EnrichProcessor.ts +++ b/specification/specs/ingest/processors/EnrichProcessor.ts @@ -1,3 +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. + */ + class EnrichProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/FailProcessor.ts b/specification/specs/ingest/processors/FailProcessor.ts index 87d7f83b11..5bea9b807f 100644 --- a/specification/specs/ingest/processors/FailProcessor.ts +++ b/specification/specs/ingest/processors/FailProcessor.ts @@ -1,3 +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. + */ + class FailProcessor extends ProcessorBase { message: string } diff --git a/specification/specs/ingest/processors/ForeachProcessor.ts b/specification/specs/ingest/processors/ForeachProcessor.ts index 2837c7019d..d36aeb769d 100644 --- a/specification/specs/ingest/processors/ForeachProcessor.ts +++ b/specification/specs/ingest/processors/ForeachProcessor.ts @@ -1,3 +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. + */ + class ForeachProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/GrokProcessor.ts b/specification/specs/ingest/processors/GrokProcessor.ts index 33a397a92c..01520e389f 100644 --- a/specification/specs/ingest/processors/GrokProcessor.ts +++ b/specification/specs/ingest/processors/GrokProcessor.ts @@ -1,3 +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. + */ + class GrokProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/GsubProcessor.ts b/specification/specs/ingest/processors/GsubProcessor.ts index 2799b79b17..fe5cf6bd93 100644 --- a/specification/specs/ingest/processors/GsubProcessor.ts +++ b/specification/specs/ingest/processors/GsubProcessor.ts @@ -1,3 +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. + */ + class GsubProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/JoinProcessor.ts b/specification/specs/ingest/processors/JoinProcessor.ts index 5273af340f..41610aacf9 100644 --- a/specification/specs/ingest/processors/JoinProcessor.ts +++ b/specification/specs/ingest/processors/JoinProcessor.ts @@ -1,3 +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. + */ + class JoinProcessor extends ProcessorBase { field: Field separator: string diff --git a/specification/specs/ingest/processors/JsonProcessor.ts b/specification/specs/ingest/processors/JsonProcessor.ts index c97501abfc..4510ceefa1 100644 --- a/specification/specs/ingest/processors/JsonProcessor.ts +++ b/specification/specs/ingest/processors/JsonProcessor.ts @@ -1,3 +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. + */ + class JsonProcessor extends ProcessorBase { add_to_root: boolean field: Field diff --git a/specification/specs/ingest/processors/KeyValueProcessor.ts b/specification/specs/ingest/processors/KeyValueProcessor.ts index e3e332720a..cde49d2daa 100644 --- a/specification/specs/ingest/processors/KeyValueProcessor.ts +++ b/specification/specs/ingest/processors/KeyValueProcessor.ts @@ -1,3 +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. + */ + class KeyValueProcessor extends ProcessorBase { exclude_keys: string[] field: Field diff --git a/specification/specs/ingest/processors/LowercaseProcessor.ts b/specification/specs/ingest/processors/LowercaseProcessor.ts index b538656738..7951904d33 100644 --- a/specification/specs/ingest/processors/LowercaseProcessor.ts +++ b/specification/specs/ingest/processors/LowercaseProcessor.ts @@ -1,3 +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. + */ + class LowercaseProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/PipelineProcessor.ts b/specification/specs/ingest/processors/PipelineProcessor.ts index aff108fd95..0ad9b540f0 100644 --- a/specification/specs/ingest/processors/PipelineProcessor.ts +++ b/specification/specs/ingest/processors/PipelineProcessor.ts @@ -1,3 +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. + */ + class PipelineProcessor extends ProcessorBase { name: string } diff --git a/specification/specs/ingest/processors/RemoveProcessor.ts b/specification/specs/ingest/processors/RemoveProcessor.ts index 104b371766..3cfe82d8bf 100644 --- a/specification/specs/ingest/processors/RemoveProcessor.ts +++ b/specification/specs/ingest/processors/RemoveProcessor.ts @@ -1,3 +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. + */ + class RemoveProcessor extends ProcessorBase { field: Field[] ignore_missing: boolean diff --git a/specification/specs/ingest/processors/RenameProcessor.ts b/specification/specs/ingest/processors/RenameProcessor.ts index 5ce4075541..2a465ee9e7 100644 --- a/specification/specs/ingest/processors/RenameProcessor.ts +++ b/specification/specs/ingest/processors/RenameProcessor.ts @@ -1,3 +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. + */ + class RenameProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/ScriptProcessor.ts b/specification/specs/ingest/processors/ScriptProcessor.ts index 645d5df31f..7fb5acf757 100644 --- a/specification/specs/ingest/processors/ScriptProcessor.ts +++ b/specification/specs/ingest/processors/ScriptProcessor.ts @@ -1,3 +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. + */ + class ScriptProcessor extends ProcessorBase { id: string lang: string diff --git a/specification/specs/ingest/processors/SetProcessor.ts b/specification/specs/ingest/processors/SetProcessor.ts index 865a5c3e97..655f360e6c 100644 --- a/specification/specs/ingest/processors/SetProcessor.ts +++ b/specification/specs/ingest/processors/SetProcessor.ts @@ -1,3 +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. + */ + class SetProcessor extends ProcessorBase { field: Field override: boolean diff --git a/specification/specs/ingest/processors/SetSecurityUserProcessor.ts b/specification/specs/ingest/processors/SetSecurityUserProcessor.ts index 78956dbe1e..a9afdb2edf 100644 --- a/specification/specs/ingest/processors/SetSecurityUserProcessor.ts +++ b/specification/specs/ingest/processors/SetSecurityUserProcessor.ts @@ -1,3 +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. + */ + class SetSecurityUserProcessor extends ProcessorBase { field: Field properties: string[] diff --git a/specification/specs/ingest/processors/ShapeType.ts b/specification/specs/ingest/processors/ShapeType.ts index 2d632384a3..9ac2cc66b5 100644 --- a/specification/specs/ingest/processors/ShapeType.ts +++ b/specification/specs/ingest/processors/ShapeType.ts @@ -1,3 +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. + */ + enum ShapeType { geo_shape = 0, shape = 1 diff --git a/specification/specs/ingest/processors/SortProcessor.ts b/specification/specs/ingest/processors/SortProcessor.ts index 0399c559a5..0315701eab 100644 --- a/specification/specs/ingest/processors/SortProcessor.ts +++ b/specification/specs/ingest/processors/SortProcessor.ts @@ -1,3 +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. + */ + class SortProcessor extends ProcessorBase { field: Field order: SortOrder diff --git a/specification/specs/ingest/processors/SplitProcessor.ts b/specification/specs/ingest/processors/SplitProcessor.ts index 096cfc9a46..9f3a15fefa 100644 --- a/specification/specs/ingest/processors/SplitProcessor.ts +++ b/specification/specs/ingest/processors/SplitProcessor.ts @@ -1,3 +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. + */ + class SplitProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/TrimProcessor.ts b/specification/specs/ingest/processors/TrimProcessor.ts index 3545a31038..2552bcd349 100644 --- a/specification/specs/ingest/processors/TrimProcessor.ts +++ b/specification/specs/ingest/processors/TrimProcessor.ts @@ -1,3 +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. + */ + class TrimProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/UppercaseProcessor.ts b/specification/specs/ingest/processors/UppercaseProcessor.ts index a23da73f4e..0026a86c7e 100644 --- a/specification/specs/ingest/processors/UppercaseProcessor.ts +++ b/specification/specs/ingest/processors/UppercaseProcessor.ts @@ -1,3 +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. + */ + class UppercaseProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/UrlDecodeProcessor.ts b/specification/specs/ingest/processors/UrlDecodeProcessor.ts index f7886ee608..dd8532081b 100644 --- a/specification/specs/ingest/processors/UrlDecodeProcessor.ts +++ b/specification/specs/ingest/processors/UrlDecodeProcessor.ts @@ -1,3 +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. + */ + class UrlDecodeProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/plugins/AttachmentProcessor.ts b/specification/specs/ingest/processors/plugins/AttachmentProcessor.ts index b8da569455..8967380225 100644 --- a/specification/specs/ingest/processors/plugins/AttachmentProcessor.ts +++ b/specification/specs/ingest/processors/plugins/AttachmentProcessor.ts @@ -1,3 +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. + */ + class AttachmentProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/plugins/GeoIpProcessor.ts b/specification/specs/ingest/processors/plugins/GeoIpProcessor.ts index f168645963..615344fb1a 100644 --- a/specification/specs/ingest/processors/plugins/GeoIpProcessor.ts +++ b/specification/specs/ingest/processors/plugins/GeoIpProcessor.ts @@ -1,3 +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. + */ + class GeoIpProcessor extends ProcessorBase { database_file: string field: Field diff --git a/specification/specs/ingest/processors/plugins/UserAgentProcessor.ts b/specification/specs/ingest/processors/plugins/UserAgentProcessor.ts index b4dd431252..483e1ee4bb 100644 --- a/specification/specs/ingest/processors/plugins/UserAgentProcessor.ts +++ b/specification/specs/ingest/processors/plugins/UserAgentProcessor.ts @@ -1,3 +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. + */ + class UserAgentProcessor extends ProcessorBase { field: Field ignore_missing: boolean diff --git a/specification/specs/ingest/processors/plugins/user_agent/UserAgentProperty.ts b/specification/specs/ingest/processors/plugins/user_agent/UserAgentProperty.ts index 9ed118fb64..c21ab705a2 100644 --- a/specification/specs/ingest/processors/plugins/user_agent/UserAgentProperty.ts +++ b/specification/specs/ingest/processors/plugins/user_agent/UserAgentProperty.ts @@ -1,3 +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. + */ + enum UserAgentProperty { NAME = 0, MAJOR = 1, diff --git a/specification/specs/ingest/put_pipeline/PutPipelineRequest.ts b/specification/specs/ingest/put_pipeline/PutPipelineRequest.ts index 2f56488ba9..708d97b95a 100644 --- a/specification/specs/ingest/put_pipeline/PutPipelineRequest.ts +++ b/specification/specs/ingest/put_pipeline/PutPipelineRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ingest.put_pipeline') class PutPipelineRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/ingest/put_pipeline/PutPipelineResponse.ts b/specification/specs/ingest/put_pipeline/PutPipelineResponse.ts index e2776bd591..0ca575ba89 100644 --- a/specification/specs/ingest/put_pipeline/PutPipelineResponse.ts +++ b/specification/specs/ingest/put_pipeline/PutPipelineResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PutPipelineResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/ingest/simulate_pipeline/DocumentSimulation.ts b/specification/specs/ingest/simulate_pipeline/DocumentSimulation.ts index 9236443fed..a61781fec6 100644 --- a/specification/specs/ingest/simulate_pipeline/DocumentSimulation.ts +++ b/specification/specs/ingest/simulate_pipeline/DocumentSimulation.ts @@ -1,3 +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. + */ + class DocumentSimulation { _id: string _index: string diff --git a/specification/specs/ingest/simulate_pipeline/Ingest.ts b/specification/specs/ingest/simulate_pipeline/Ingest.ts index 1542e7ec2b..99234117cf 100644 --- a/specification/specs/ingest/simulate_pipeline/Ingest.ts +++ b/specification/specs/ingest/simulate_pipeline/Ingest.ts @@ -1,3 +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. + */ + class Ingest { timestamp: Date } diff --git a/specification/specs/ingest/simulate_pipeline/PipelineSimulation.ts b/specification/specs/ingest/simulate_pipeline/PipelineSimulation.ts index 7ff1daf392..a05887fedb 100644 --- a/specification/specs/ingest/simulate_pipeline/PipelineSimulation.ts +++ b/specification/specs/ingest/simulate_pipeline/PipelineSimulation.ts @@ -1,3 +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. + */ + class PipelineSimulation { doc: DocumentSimulation processor_results: PipelineSimulation[] diff --git a/specification/specs/ingest/simulate_pipeline/SimulatePipelineDocument.ts b/specification/specs/ingest/simulate_pipeline/SimulatePipelineDocument.ts index 0cca99f48b..1a0f665dc2 100644 --- a/specification/specs/ingest/simulate_pipeline/SimulatePipelineDocument.ts +++ b/specification/specs/ingest/simulate_pipeline/SimulatePipelineDocument.ts @@ -1,3 +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. + */ + class SimulatePipelineDocument { _id: Id _index: IndexName diff --git a/specification/specs/ingest/simulate_pipeline/SimulatePipelineRequest.ts b/specification/specs/ingest/simulate_pipeline/SimulatePipelineRequest.ts index 0e7de9f63c..431a769d37 100644 --- a/specification/specs/ingest/simulate_pipeline/SimulatePipelineRequest.ts +++ b/specification/specs/ingest/simulate_pipeline/SimulatePipelineRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ingest.simulate') class SimulatePipelineRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/ingest/simulate_pipeline/SimulatePipelineResponse.ts b/specification/specs/ingest/simulate_pipeline/SimulatePipelineResponse.ts index 9777080e41..ac81cc2801 100644 --- a/specification/specs/ingest/simulate_pipeline/SimulatePipelineResponse.ts +++ b/specification/specs/ingest/simulate_pipeline/SimulatePipelineResponse.ts @@ -1,3 +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. + */ + class SimulatePipelineResponse extends ResponseBase { docs: PipelineSimulation[] } diff --git a/specification/specs/mapping/DynamicMapping.ts b/specification/specs/mapping/DynamicMapping.ts index 552d05a01e..650eb381db 100644 --- a/specification/specs/mapping/DynamicMapping.ts +++ b/specification/specs/mapping/DynamicMapping.ts @@ -1,3 +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. + */ + enum DynamicMapping { strict = 0 } diff --git a/specification/specs/mapping/TermVectorOption.ts b/specification/specs/mapping/TermVectorOption.ts index 52a7cdb4da..1a92889835 100644 --- a/specification/specs/mapping/TermVectorOption.ts +++ b/specification/specs/mapping/TermVectorOption.ts @@ -1,3 +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. + */ + enum TermVectorOption { no = 0, yes = 1, diff --git a/specification/specs/mapping/TypeMapping.ts b/specification/specs/mapping/TypeMapping.ts index d4b2cd7b94..484e285df3 100644 --- a/specification/specs/mapping/TypeMapping.ts +++ b/specification/specs/mapping/TypeMapping.ts @@ -1,3 +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. + */ + class TypeMapping { all_field?: AllField date_detection?: boolean diff --git a/specification/specs/mapping/dynamic_template/DynamicTemplate.ts b/specification/specs/mapping/dynamic_template/DynamicTemplate.ts index e0eaf7368e..896469d576 100644 --- a/specification/specs/mapping/dynamic_template/DynamicTemplate.ts +++ b/specification/specs/mapping/dynamic_template/DynamicTemplate.ts @@ -1,3 +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. + */ + class DynamicTemplate { mapping: PropertyBase match: string diff --git a/specification/specs/mapping/dynamic_template/MatchType.ts b/specification/specs/mapping/dynamic_template/MatchType.ts index fe3ff5234a..0785ebde39 100644 --- a/specification/specs/mapping/dynamic_template/MatchType.ts +++ b/specification/specs/mapping/dynamic_template/MatchType.ts @@ -1,3 +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. + */ + enum MatchType { simple = 0, regex = 1 diff --git a/specification/specs/mapping/meta_fields/FieldMapping.ts b/specification/specs/mapping/meta_fields/FieldMapping.ts index 9eb0697313..8c8c8ba324 100644 --- a/specification/specs/mapping/meta_fields/FieldMapping.ts +++ b/specification/specs/mapping/meta_fields/FieldMapping.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class FieldMapping {} diff --git a/specification/specs/mapping/meta_fields/all/AllField.ts b/specification/specs/mapping/meta_fields/all/AllField.ts index 7194e616a6..36246f111c 100644 --- a/specification/specs/mapping/meta_fields/all/AllField.ts +++ b/specification/specs/mapping/meta_fields/all/AllField.ts @@ -1,3 +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. + */ + class AllField { analyzer: string enabled: boolean diff --git a/specification/specs/mapping/meta_fields/field_names/FieldNamesField.ts b/specification/specs/mapping/meta_fields/field_names/FieldNamesField.ts index dc0e4c6867..2ecebd73b1 100644 --- a/specification/specs/mapping/meta_fields/field_names/FieldNamesField.ts +++ b/specification/specs/mapping/meta_fields/field_names/FieldNamesField.ts @@ -1,3 +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. + */ + class FieldNamesField { enabled: boolean } diff --git a/specification/specs/mapping/meta_fields/index/IndexField.ts b/specification/specs/mapping/meta_fields/index/IndexField.ts index 018c27198c..2a3765f40c 100644 --- a/specification/specs/mapping/meta_fields/index/IndexField.ts +++ b/specification/specs/mapping/meta_fields/index/IndexField.ts @@ -1,3 +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. + */ + class IndexField { enabled: boolean } diff --git a/specification/specs/mapping/meta_fields/routing/RoutingField.ts b/specification/specs/mapping/meta_fields/routing/RoutingField.ts index 32967c7146..5d0dbeaff7 100644 --- a/specification/specs/mapping/meta_fields/routing/RoutingField.ts +++ b/specification/specs/mapping/meta_fields/routing/RoutingField.ts @@ -1,3 +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. + */ + class RoutingField { required: boolean } diff --git a/specification/specs/mapping/meta_fields/size/SizeField.ts b/specification/specs/mapping/meta_fields/size/SizeField.ts index abd4952649..d5f2600167 100644 --- a/specification/specs/mapping/meta_fields/size/SizeField.ts +++ b/specification/specs/mapping/meta_fields/size/SizeField.ts @@ -1,3 +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. + */ + class SizeField { enabled: boolean } diff --git a/specification/specs/mapping/meta_fields/source/SourceField.ts b/specification/specs/mapping/meta_fields/source/SourceField.ts index cb1fff4946..c476d5d484 100644 --- a/specification/specs/mapping/meta_fields/source/SourceField.ts +++ b/specification/specs/mapping/meta_fields/source/SourceField.ts @@ -1,3 +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. + */ + class SourceField { compress: boolean compress_threshold: string diff --git a/specification/specs/mapping/types/CorePropertyBase.ts b/specification/specs/mapping/types/CorePropertyBase.ts index b9c53118af..6331864887 100644 --- a/specification/specs/mapping/types/CorePropertyBase.ts +++ b/specification/specs/mapping/types/CorePropertyBase.ts @@ -1,3 +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. + */ + class CorePropertyBase extends PropertyBase { copy_to: Field[] fields: Dictionary diff --git a/specification/specs/mapping/types/DocValuesPropertyBase.ts b/specification/specs/mapping/types/DocValuesPropertyBase.ts index 6ac124522d..561e54455d 100644 --- a/specification/specs/mapping/types/DocValuesPropertyBase.ts +++ b/specification/specs/mapping/types/DocValuesPropertyBase.ts @@ -1,3 +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. + */ + class DocValuesPropertyBase extends CorePropertyBase { doc_values: boolean } diff --git a/specification/specs/mapping/types/FieldType.ts b/specification/specs/mapping/types/FieldType.ts index d9ce527d6c..3e7f3fbc8c 100644 --- a/specification/specs/mapping/types/FieldType.ts +++ b/specification/specs/mapping/types/FieldType.ts @@ -1,3 +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. + */ + enum FieldType { none = 0, geo_point = 1, diff --git a/specification/specs/mapping/types/PropertyBase.ts b/specification/specs/mapping/types/PropertyBase.ts index 41e650d085..e5c260de28 100644 --- a/specification/specs/mapping/types/PropertyBase.ts +++ b/specification/specs/mapping/types/PropertyBase.ts @@ -1,3 +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. + */ + class PropertyBase { local_metadata: Dictionary meta: Dictionary diff --git a/specification/specs/mapping/types/PropertyWithClrOrigin.ts b/specification/specs/mapping/types/PropertyWithClrOrigin.ts index 1d2592befc..6ed81bb318 100644 --- a/specification/specs/mapping/types/PropertyWithClrOrigin.ts +++ b/specification/specs/mapping/types/PropertyWithClrOrigin.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PropertyWithClrOrigin {} diff --git a/specification/specs/mapping/types/complex/flattened/FlattenedProperty.ts b/specification/specs/mapping/types/complex/flattened/FlattenedProperty.ts index 7dddafd0b5..4fae63e3f5 100644 --- a/specification/specs/mapping/types/complex/flattened/FlattenedProperty.ts +++ b/specification/specs/mapping/types/complex/flattened/FlattenedProperty.ts @@ -1,3 +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. + */ + class FlattenedProperty extends PropertyBase { boost: double depth_limit: integer diff --git a/specification/specs/mapping/types/complex/nested/NestedProperty.ts b/specification/specs/mapping/types/complex/nested/NestedProperty.ts index 4e50eb70c5..762f4a37e3 100644 --- a/specification/specs/mapping/types/complex/nested/NestedProperty.ts +++ b/specification/specs/mapping/types/complex/nested/NestedProperty.ts @@ -1,3 +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. + */ + class NestedProperty extends ObjectProperty { include_in_parent: boolean include_in_root: boolean diff --git a/specification/specs/mapping/types/complex/object/ObjectProperty.ts b/specification/specs/mapping/types/complex/object/ObjectProperty.ts index 4aa1bc167d..fd75f398da 100644 --- a/specification/specs/mapping/types/complex/object/ObjectProperty.ts +++ b/specification/specs/mapping/types/complex/object/ObjectProperty.ts @@ -1,3 +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. + */ + class ObjectProperty extends CorePropertyBase { /** @prop_serializer DynamicMappingFormatter */ dynamic: Union diff --git a/specification/specs/mapping/types/core/binary/BinaryProperty.ts b/specification/specs/mapping/types/core/binary/BinaryProperty.ts index 81adbf4e87..f7dfbab773 100644 --- a/specification/specs/mapping/types/core/binary/BinaryProperty.ts +++ b/specification/specs/mapping/types/core/binary/BinaryProperty.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class BinaryProperty extends DocValuesPropertyBase {} diff --git a/specification/specs/mapping/types/core/boolean/BooleanProperty.ts b/specification/specs/mapping/types/core/boolean/BooleanProperty.ts index 55e92e37d9..575de3645f 100644 --- a/specification/specs/mapping/types/core/boolean/BooleanProperty.ts +++ b/specification/specs/mapping/types/core/boolean/BooleanProperty.ts @@ -1,3 +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. + */ + class BooleanProperty extends DocValuesPropertyBase { boost: double fielddata: NumericFielddata diff --git a/specification/specs/mapping/types/core/date/DateProperty.ts b/specification/specs/mapping/types/core/date/DateProperty.ts index 3e1c26f665..fbc70f8037 100644 --- a/specification/specs/mapping/types/core/date/DateProperty.ts +++ b/specification/specs/mapping/types/core/date/DateProperty.ts @@ -1,3 +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. + */ + class DateProperty extends DocValuesPropertyBase { boost: double fielddata: NumericFielddata diff --git a/specification/specs/mapping/types/core/date_nanos/DateNanosProperty.ts b/specification/specs/mapping/types/core/date_nanos/DateNanosProperty.ts index 80aa6a54e3..efb90168be 100644 --- a/specification/specs/mapping/types/core/date_nanos/DateNanosProperty.ts +++ b/specification/specs/mapping/types/core/date_nanos/DateNanosProperty.ts @@ -1,3 +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. + */ + class DateNanosProperty extends DocValuesPropertyBase { boost: double format: string diff --git a/specification/specs/mapping/types/core/join/JoinProperty.ts b/specification/specs/mapping/types/core/join/JoinProperty.ts index 0b0d287f75..61c3132ffd 100644 --- a/specification/specs/mapping/types/core/join/JoinProperty.ts +++ b/specification/specs/mapping/types/core/join/JoinProperty.ts @@ -1,3 +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. + */ + class JoinProperty extends PropertyBase { relations: Dictionary } diff --git a/specification/specs/mapping/types/core/keyword/KeywordProperty.ts b/specification/specs/mapping/types/core/keyword/KeywordProperty.ts index 0589637de8..e3f4373a95 100644 --- a/specification/specs/mapping/types/core/keyword/KeywordProperty.ts +++ b/specification/specs/mapping/types/core/keyword/KeywordProperty.ts @@ -1,3 +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. + */ + class KeywordProperty extends DocValuesPropertyBase { boost: double eager_global_ordinals: boolean diff --git a/specification/specs/mapping/types/core/number/NumberProperty.ts b/specification/specs/mapping/types/core/number/NumberProperty.ts index 5a9e1bc81a..2af37f8df7 100644 --- a/specification/specs/mapping/types/core/number/NumberProperty.ts +++ b/specification/specs/mapping/types/core/number/NumberProperty.ts @@ -1,3 +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. + */ + class NumberProperty extends DocValuesPropertyBase { boost: double coerce: boolean diff --git a/specification/specs/mapping/types/core/number/NumberType.ts b/specification/specs/mapping/types/core/number/NumberType.ts index d8c022bcf4..84397758e5 100644 --- a/specification/specs/mapping/types/core/number/NumberType.ts +++ b/specification/specs/mapping/types/core/number/NumberType.ts @@ -1,3 +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. + */ + enum NumberType { float = 0, half_float = 1, diff --git a/specification/specs/mapping/types/core/percolator/PercolatorProperty.ts b/specification/specs/mapping/types/core/percolator/PercolatorProperty.ts index a8f1c1edda..58b11c3428 100644 --- a/specification/specs/mapping/types/core/percolator/PercolatorProperty.ts +++ b/specification/specs/mapping/types/core/percolator/PercolatorProperty.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PercolatorProperty extends PropertyBase {} diff --git a/specification/specs/mapping/types/core/range/RangePropertyBase.ts b/specification/specs/mapping/types/core/range/RangePropertyBase.ts index 5e06e9d6aa..75a1954c8e 100644 --- a/specification/specs/mapping/types/core/range/RangePropertyBase.ts +++ b/specification/specs/mapping/types/core/range/RangePropertyBase.ts @@ -1,3 +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. + */ + class RangePropertyBase extends DocValuesPropertyBase { boost: double coerce: boolean diff --git a/specification/specs/mapping/types/core/range/RangeType.ts b/specification/specs/mapping/types/core/range/RangeType.ts index 11046a7fe3..59db5e5d5a 100644 --- a/specification/specs/mapping/types/core/range/RangeType.ts +++ b/specification/specs/mapping/types/core/range/RangeType.ts @@ -1,3 +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. + */ + enum RangeType { integer_range = 0, float_range = 1, diff --git a/specification/specs/mapping/types/core/range/date_range/DateRangeProperty.ts b/specification/specs/mapping/types/core/range/date_range/DateRangeProperty.ts index 0ae9190aca..528d4eda5b 100644 --- a/specification/specs/mapping/types/core/range/date_range/DateRangeProperty.ts +++ b/specification/specs/mapping/types/core/range/date_range/DateRangeProperty.ts @@ -1,3 +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. + */ + class DateRangeProperty extends RangePropertyBase { format: string } diff --git a/specification/specs/mapping/types/core/range/double_range/DoubleRangeProperty.ts b/specification/specs/mapping/types/core/range/double_range/DoubleRangeProperty.ts index e87a1acbab..81f7d6ffea 100644 --- a/specification/specs/mapping/types/core/range/double_range/DoubleRangeProperty.ts +++ b/specification/specs/mapping/types/core/range/double_range/DoubleRangeProperty.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DoubleRangeProperty extends RangePropertyBase {} diff --git a/specification/specs/mapping/types/core/range/float_range/FloatRangeProperty.ts b/specification/specs/mapping/types/core/range/float_range/FloatRangeProperty.ts index 8760df1966..ac954ffcab 100644 --- a/specification/specs/mapping/types/core/range/float_range/FloatRangeProperty.ts +++ b/specification/specs/mapping/types/core/range/float_range/FloatRangeProperty.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class FloatRangeProperty extends RangePropertyBase {} diff --git a/specification/specs/mapping/types/core/range/integer_range/IntegerRangeProperty.ts b/specification/specs/mapping/types/core/range/integer_range/IntegerRangeProperty.ts index 46751c6c8f..118835f470 100644 --- a/specification/specs/mapping/types/core/range/integer_range/IntegerRangeProperty.ts +++ b/specification/specs/mapping/types/core/range/integer_range/IntegerRangeProperty.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class IntegerRangeProperty extends RangePropertyBase {} diff --git a/specification/specs/mapping/types/core/range/ip_range/IpRangeProperty.ts b/specification/specs/mapping/types/core/range/ip_range/IpRangeProperty.ts index 5ebf7f564d..0b6cacc418 100644 --- a/specification/specs/mapping/types/core/range/ip_range/IpRangeProperty.ts +++ b/specification/specs/mapping/types/core/range/ip_range/IpRangeProperty.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class IpRangeProperty extends RangePropertyBase {} diff --git a/specification/specs/mapping/types/core/range/long_range/LongRangeProperty.ts b/specification/specs/mapping/types/core/range/long_range/LongRangeProperty.ts index 18a231d9c7..2ac02c9677 100644 --- a/specification/specs/mapping/types/core/range/long_range/LongRangeProperty.ts +++ b/specification/specs/mapping/types/core/range/long_range/LongRangeProperty.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class LongRangeProperty extends RangePropertyBase {} diff --git a/specification/specs/mapping/types/core/rank_feature/RankFeatureProperty.ts b/specification/specs/mapping/types/core/rank_feature/RankFeatureProperty.ts index c57f8ed6d7..f059e93416 100644 --- a/specification/specs/mapping/types/core/rank_feature/RankFeatureProperty.ts +++ b/specification/specs/mapping/types/core/rank_feature/RankFeatureProperty.ts @@ -1,3 +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. + */ + class RankFeatureProperty extends PropertyBase { positive_score_impact: boolean } diff --git a/specification/specs/mapping/types/core/rank_features/RankFeaturesProperty.ts b/specification/specs/mapping/types/core/rank_features/RankFeaturesProperty.ts index c674b9160c..09663aeeff 100644 --- a/specification/specs/mapping/types/core/rank_features/RankFeaturesProperty.ts +++ b/specification/specs/mapping/types/core/rank_features/RankFeaturesProperty.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class RankFeaturesProperty extends PropertyBase {} diff --git a/specification/specs/mapping/types/core/search_as_you_type/SearchAsYouTypeProperty.ts b/specification/specs/mapping/types/core/search_as_you_type/SearchAsYouTypeProperty.ts index ab16f9ac8f..6d7fe060cb 100644 --- a/specification/specs/mapping/types/core/search_as_you_type/SearchAsYouTypeProperty.ts +++ b/specification/specs/mapping/types/core/search_as_you_type/SearchAsYouTypeProperty.ts @@ -1,3 +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. + */ + class SearchAsYouTypeProperty extends CorePropertyBase { analyzer: string index: boolean diff --git a/specification/specs/mapping/types/core/text/IndexOptions.ts b/specification/specs/mapping/types/core/text/IndexOptions.ts index 9718889937..348672598e 100644 --- a/specification/specs/mapping/types/core/text/IndexOptions.ts +++ b/specification/specs/mapping/types/core/text/IndexOptions.ts @@ -1,3 +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. + */ + enum IndexOptions { docs = 0, freqs = 1, diff --git a/specification/specs/mapping/types/core/text/TextIndexPrefixes.ts b/specification/specs/mapping/types/core/text/TextIndexPrefixes.ts index 5858331764..198a3eb974 100644 --- a/specification/specs/mapping/types/core/text/TextIndexPrefixes.ts +++ b/specification/specs/mapping/types/core/text/TextIndexPrefixes.ts @@ -1,3 +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. + */ + class TextIndexPrefixes { max_chars: integer min_chars: integer diff --git a/specification/specs/mapping/types/core/text/TextProperty.ts b/specification/specs/mapping/types/core/text/TextProperty.ts index 201792ea83..cd3de286e2 100644 --- a/specification/specs/mapping/types/core/text/TextProperty.ts +++ b/specification/specs/mapping/types/core/text/TextProperty.ts @@ -1,3 +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. + */ + class TextProperty extends CorePropertyBase { analyzer: string boost: double diff --git a/specification/specs/mapping/types/geo/geo_point/GeoPointProperty.ts b/specification/specs/mapping/types/geo/geo_point/GeoPointProperty.ts index b52a0765ca..8b4cfd17c1 100644 --- a/specification/specs/mapping/types/geo/geo_point/GeoPointProperty.ts +++ b/specification/specs/mapping/types/geo/geo_point/GeoPointProperty.ts @@ -1,3 +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. + */ + class GeoPointProperty extends DocValuesPropertyBase { ignore_malformed: boolean ignore_z_value: boolean diff --git a/specification/specs/mapping/types/geo/geo_shape/GeoOrientation.ts b/specification/specs/mapping/types/geo/geo_shape/GeoOrientation.ts index 6edea97b6d..9ac32ec436 100644 --- a/specification/specs/mapping/types/geo/geo_shape/GeoOrientation.ts +++ b/specification/specs/mapping/types/geo/geo_shape/GeoOrientation.ts @@ -1,3 +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. + */ + enum GeoOrientation { ClockWise = 0, CounterClockWise = 1 diff --git a/specification/specs/mapping/types/geo/geo_shape/GeoShapeProperty.ts b/specification/specs/mapping/types/geo/geo_shape/GeoShapeProperty.ts index aec2fb5839..2f7767013a 100644 --- a/specification/specs/mapping/types/geo/geo_shape/GeoShapeProperty.ts +++ b/specification/specs/mapping/types/geo/geo_shape/GeoShapeProperty.ts @@ -1,3 +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. + */ + class GeoShapeProperty extends DocValuesPropertyBase { coerce: boolean ignore_malformed: boolean diff --git a/specification/specs/mapping/types/geo/geo_shape/GeoStrategy.ts b/specification/specs/mapping/types/geo/geo_shape/GeoStrategy.ts index 1d2d1d051d..227d9d92b2 100644 --- a/specification/specs/mapping/types/geo/geo_shape/GeoStrategy.ts +++ b/specification/specs/mapping/types/geo/geo_shape/GeoStrategy.ts @@ -1,3 +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. + */ + enum GeoStrategy { recursive = 0, term = 1 diff --git a/specification/specs/mapping/types/geo/geo_shape/GeoTree.ts b/specification/specs/mapping/types/geo/geo_shape/GeoTree.ts index 2f56f81029..1bd6ecd10f 100644 --- a/specification/specs/mapping/types/geo/geo_shape/GeoTree.ts +++ b/specification/specs/mapping/types/geo/geo_shape/GeoTree.ts @@ -1,3 +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. + */ + enum GeoTree { geohash = 0, quadtree = 1 diff --git a/specification/specs/mapping/types/specialized/completion/CompletionProperty.ts b/specification/specs/mapping/types/specialized/completion/CompletionProperty.ts index ee4aadc650..d9fe5c228c 100644 --- a/specification/specs/mapping/types/specialized/completion/CompletionProperty.ts +++ b/specification/specs/mapping/types/specialized/completion/CompletionProperty.ts @@ -1,3 +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. + */ + class CompletionProperty extends DocValuesPropertyBase { analyzer: string contexts: SuggestContext[] diff --git a/specification/specs/mapping/types/specialized/completion/SuggestContext.ts b/specification/specs/mapping/types/specialized/completion/SuggestContext.ts index 1cf2e2bc32..e829ed4e38 100644 --- a/specification/specs/mapping/types/specialized/completion/SuggestContext.ts +++ b/specification/specs/mapping/types/specialized/completion/SuggestContext.ts @@ -1,3 +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. + */ + @class_serializer('SuggestContextFormatter') class SuggestContext { name: string diff --git a/specification/specs/mapping/types/specialized/constant_keyword/ConstantKeywordProperty.ts b/specification/specs/mapping/types/specialized/constant_keyword/ConstantKeywordProperty.ts index 6788a4eaa2..5532356b79 100644 --- a/specification/specs/mapping/types/specialized/constant_keyword/ConstantKeywordProperty.ts +++ b/specification/specs/mapping/types/specialized/constant_keyword/ConstantKeywordProperty.ts @@ -1,3 +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. + */ + class ConstantKeywordProperty extends PropertyBase { value: any } diff --git a/specification/specs/mapping/types/specialized/field_alias/FieldAliasProperty.ts b/specification/specs/mapping/types/specialized/field_alias/FieldAliasProperty.ts index 48418ed948..799f177f18 100644 --- a/specification/specs/mapping/types/specialized/field_alias/FieldAliasProperty.ts +++ b/specification/specs/mapping/types/specialized/field_alias/FieldAliasProperty.ts @@ -1,3 +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. + */ + class FieldAliasProperty extends PropertyBase { path: Field } diff --git a/specification/specs/mapping/types/specialized/generic/GenericProperty.ts b/specification/specs/mapping/types/specialized/generic/GenericProperty.ts index 313a8003cd..35add02462 100644 --- a/specification/specs/mapping/types/specialized/generic/GenericProperty.ts +++ b/specification/specs/mapping/types/specialized/generic/GenericProperty.ts @@ -1,3 +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. + */ + class GenericProperty extends DocValuesPropertyBase { analyzer: string boost: double diff --git a/specification/specs/mapping/types/specialized/histogram/HistogramProperty.ts b/specification/specs/mapping/types/specialized/histogram/HistogramProperty.ts index ae670b90e1..a64a7d6bbf 100644 --- a/specification/specs/mapping/types/specialized/histogram/HistogramProperty.ts +++ b/specification/specs/mapping/types/specialized/histogram/HistogramProperty.ts @@ -1,3 +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. + */ + class HistogramProperty extends PropertyBase { ignore_malformed: boolean } diff --git a/specification/specs/mapping/types/specialized/ip/IpProperty.ts b/specification/specs/mapping/types/specialized/ip/IpProperty.ts index d80d68849c..6c3e770f53 100644 --- a/specification/specs/mapping/types/specialized/ip/IpProperty.ts +++ b/specification/specs/mapping/types/specialized/ip/IpProperty.ts @@ -1,3 +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. + */ + class IpProperty extends DocValuesPropertyBase { boost: double index: boolean diff --git a/specification/specs/mapping/types/specialized/murmur3_hash/Murmur3HashProperty.ts b/specification/specs/mapping/types/specialized/murmur3_hash/Murmur3HashProperty.ts index 89bd7734ab..5e33553026 100644 --- a/specification/specs/mapping/types/specialized/murmur3_hash/Murmur3HashProperty.ts +++ b/specification/specs/mapping/types/specialized/murmur3_hash/Murmur3HashProperty.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class Murmur3HashProperty extends DocValuesPropertyBase {} diff --git a/specification/specs/mapping/types/specialized/shape/ShapeOrientation.ts b/specification/specs/mapping/types/specialized/shape/ShapeOrientation.ts index 178999902c..78fff9d0e4 100644 --- a/specification/specs/mapping/types/specialized/shape/ShapeOrientation.ts +++ b/specification/specs/mapping/types/specialized/shape/ShapeOrientation.ts @@ -1,3 +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. + */ + enum ShapeOrientation { ClockWise = 0, CounterClockWise = 1 diff --git a/specification/specs/mapping/types/specialized/shape/ShapeProperty.ts b/specification/specs/mapping/types/specialized/shape/ShapeProperty.ts index 01fcb25b96..3dbd0f8dfb 100644 --- a/specification/specs/mapping/types/specialized/shape/ShapeProperty.ts +++ b/specification/specs/mapping/types/specialized/shape/ShapeProperty.ts @@ -1,3 +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. + */ + class ShapeProperty extends DocValuesPropertyBase { coerce: boolean ignore_malformed: boolean diff --git a/specification/specs/mapping/types/specialized/token_count/TokenCountProperty.ts b/specification/specs/mapping/types/specialized/token_count/TokenCountProperty.ts index d3538cdbc3..bd02694200 100644 --- a/specification/specs/mapping/types/specialized/token_count/TokenCountProperty.ts +++ b/specification/specs/mapping/types/specialized/token_count/TokenCountProperty.ts @@ -1,3 +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. + */ + class TokenCountProperty extends DocValuesPropertyBase { analyzer: string boost: double diff --git a/specification/specs/modules/cluster/shard_allocation/AllocationEnable.ts b/specification/specs/modules/cluster/shard_allocation/AllocationEnable.ts index 73cb896177..6e5d4ec293 100644 --- a/specification/specs/modules/cluster/shard_allocation/AllocationEnable.ts +++ b/specification/specs/modules/cluster/shard_allocation/AllocationEnable.ts @@ -1,3 +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. + */ + enum AllocationEnable { all = 0, primaries = 1, diff --git a/specification/specs/modules/cluster/shard_allocation/AllowRebalance.ts b/specification/specs/modules/cluster/shard_allocation/AllowRebalance.ts index 294016a0bf..494dc75d4b 100644 --- a/specification/specs/modules/cluster/shard_allocation/AllowRebalance.ts +++ b/specification/specs/modules/cluster/shard_allocation/AllowRebalance.ts @@ -1,3 +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. + */ + enum AllowRebalance { always = 0, indices_primaries_active = 1, diff --git a/specification/specs/modules/cluster/shard_allocation/RebalanceEnable.ts b/specification/specs/modules/cluster/shard_allocation/RebalanceEnable.ts index 057955f26c..b636b34c2b 100644 --- a/specification/specs/modules/cluster/shard_allocation/RebalanceEnable.ts +++ b/specification/specs/modules/cluster/shard_allocation/RebalanceEnable.ts @@ -1,3 +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. + */ + enum RebalanceEnable { all = 0, primaries = 1, diff --git a/specification/specs/modules/indices/IndicesModuleSettings.ts b/specification/specs/modules/indices/IndicesModuleSettings.ts index f20bafc7d8..473e2d833b 100644 --- a/specification/specs/modules/indices/IndicesModuleSettings.ts +++ b/specification/specs/modules/indices/IndicesModuleSettings.ts @@ -1,3 +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. + */ + class IndicesModuleSettings { circuit_breaker_settings: CircuitBreakerSettings fielddata_settings: FielddataSettings diff --git a/specification/specs/modules/indices/circuit_breaker/CircuitBreakerSettings.ts b/specification/specs/modules/indices/circuit_breaker/CircuitBreakerSettings.ts index bf40bb969e..61f20f1e66 100644 --- a/specification/specs/modules/indices/circuit_breaker/CircuitBreakerSettings.ts +++ b/specification/specs/modules/indices/circuit_breaker/CircuitBreakerSettings.ts @@ -1,3 +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. + */ + class CircuitBreakerSettings { fielddata_limit: string fielddata_overhead: float diff --git a/specification/specs/modules/indices/fielddata/Fielddata.ts b/specification/specs/modules/indices/fielddata/Fielddata.ts index ad807014a6..0bffedad52 100644 --- a/specification/specs/modules/indices/fielddata/Fielddata.ts +++ b/specification/specs/modules/indices/fielddata/Fielddata.ts @@ -1,3 +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. + */ + class Fielddata { filter: FielddataFilter loading: FielddataLoading diff --git a/specification/specs/modules/indices/fielddata/FielddataFilter.ts b/specification/specs/modules/indices/fielddata/FielddataFilter.ts index bda7219c95..658b880c05 100644 --- a/specification/specs/modules/indices/fielddata/FielddataFilter.ts +++ b/specification/specs/modules/indices/fielddata/FielddataFilter.ts @@ -1,3 +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. + */ + class FielddataFilter { frequency: FielddataFrequencyFilter regex: FielddataRegexFilter diff --git a/specification/specs/modules/indices/fielddata/FielddataFrequencyFilter.ts b/specification/specs/modules/indices/fielddata/FielddataFrequencyFilter.ts index ed7e29cb3e..aab77a6f8b 100644 --- a/specification/specs/modules/indices/fielddata/FielddataFrequencyFilter.ts +++ b/specification/specs/modules/indices/fielddata/FielddataFrequencyFilter.ts @@ -1,3 +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. + */ + class FielddataFrequencyFilter { max: double min: double diff --git a/specification/specs/modules/indices/fielddata/FielddataLoading.ts b/specification/specs/modules/indices/fielddata/FielddataLoading.ts index 3fe14d0fd3..d17d8c9393 100644 --- a/specification/specs/modules/indices/fielddata/FielddataLoading.ts +++ b/specification/specs/modules/indices/fielddata/FielddataLoading.ts @@ -1,3 +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. + */ + enum FielddataLoading { eager = 0, eager_global_ordinals = 1 diff --git a/specification/specs/modules/indices/fielddata/FielddataRegexFilter.ts b/specification/specs/modules/indices/fielddata/FielddataRegexFilter.ts index 4f18038cee..fa90463eaf 100644 --- a/specification/specs/modules/indices/fielddata/FielddataRegexFilter.ts +++ b/specification/specs/modules/indices/fielddata/FielddataRegexFilter.ts @@ -1,3 +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. + */ + class FielddataRegexFilter { pattern: string } diff --git a/specification/specs/modules/indices/fielddata/FielddataSettings.ts b/specification/specs/modules/indices/fielddata/FielddataSettings.ts index 74938b0930..a7e93d1fce 100644 --- a/specification/specs/modules/indices/fielddata/FielddataSettings.ts +++ b/specification/specs/modules/indices/fielddata/FielddataSettings.ts @@ -1,3 +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. + */ + class FielddataSettings { cache_expire: Time cache_size: string diff --git a/specification/specs/modules/indices/fielddata/geo_point/GeoPointFielddataFormat.ts b/specification/specs/modules/indices/fielddata/geo_point/GeoPointFielddataFormat.ts index 5ac47f7370..e19820f7d3 100644 --- a/specification/specs/modules/indices/fielddata/geo_point/GeoPointFielddataFormat.ts +++ b/specification/specs/modules/indices/fielddata/geo_point/GeoPointFielddataFormat.ts @@ -1,3 +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. + */ + enum GeoPointFielddataFormat { array = 0, doc_values = 1, diff --git a/specification/specs/modules/indices/fielddata/numeric/NumericFielddata.ts b/specification/specs/modules/indices/fielddata/numeric/NumericFielddata.ts index 42b30f3c17..c2b755d6c6 100644 --- a/specification/specs/modules/indices/fielddata/numeric/NumericFielddata.ts +++ b/specification/specs/modules/indices/fielddata/numeric/NumericFielddata.ts @@ -1,3 +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. + */ + class NumericFielddata { format: NumericFielddataFormat } diff --git a/specification/specs/modules/indices/fielddata/numeric/NumericFielddataFormat.ts b/specification/specs/modules/indices/fielddata/numeric/NumericFielddataFormat.ts index 888dd5107a..e6a9779337 100644 --- a/specification/specs/modules/indices/fielddata/numeric/NumericFielddataFormat.ts +++ b/specification/specs/modules/indices/fielddata/numeric/NumericFielddataFormat.ts @@ -1,3 +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. + */ + enum NumericFielddataFormat { array = 0, disabled = 1 diff --git a/specification/specs/modules/indices/fielddata/string/StringFielddata.ts b/specification/specs/modules/indices/fielddata/string/StringFielddata.ts index 49bef0d270..0c7341353e 100644 --- a/specification/specs/modules/indices/fielddata/string/StringFielddata.ts +++ b/specification/specs/modules/indices/fielddata/string/StringFielddata.ts @@ -1,3 +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. + */ + class StringFielddata { format: StringFielddataFormat } diff --git a/specification/specs/modules/indices/fielddata/string/StringFielddataFormat.ts b/specification/specs/modules/indices/fielddata/string/StringFielddataFormat.ts index b4ea4057d7..807088ad85 100644 --- a/specification/specs/modules/indices/fielddata/string/StringFielddataFormat.ts +++ b/specification/specs/modules/indices/fielddata/string/StringFielddataFormat.ts @@ -1,3 +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. + */ + enum StringFielddataFormat { paged_bytes = 0, disabled = 1 diff --git a/specification/specs/modules/indices/recovery/IndicesRecoverySettings.ts b/specification/specs/modules/indices/recovery/IndicesRecoverySettings.ts index 0be65ea271..3f1333380a 100644 --- a/specification/specs/modules/indices/recovery/IndicesRecoverySettings.ts +++ b/specification/specs/modules/indices/recovery/IndicesRecoverySettings.ts @@ -1,3 +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. + */ + class IndicesRecoverySettings { compress: boolean concurrent_small_file_streams: integer diff --git a/specification/specs/modules/scripting/ScriptLang.ts b/specification/specs/modules/scripting/ScriptLang.ts index 73534608d2..78935c8f43 100644 --- a/specification/specs/modules/scripting/ScriptLang.ts +++ b/specification/specs/modules/scripting/ScriptLang.ts @@ -1,3 +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. + */ + enum ScriptLang { painless = 0, expression = 1, diff --git a/specification/specs/modules/scripting/StoredScript.ts b/specification/specs/modules/scripting/StoredScript.ts index afd834c4f3..505cb8efd7 100644 --- a/specification/specs/modules/scripting/StoredScript.ts +++ b/specification/specs/modules/scripting/StoredScript.ts @@ -1,3 +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. + */ + class StoredScript { lang: string source: string diff --git a/specification/specs/modules/scripting/delete_script/DeleteScriptRequest.ts b/specification/specs/modules/scripting/delete_script/DeleteScriptRequest.ts index a4b4902871..9ff5adb263 100644 --- a/specification/specs/modules/scripting/delete_script/DeleteScriptRequest.ts +++ b/specification/specs/modules/scripting/delete_script/DeleteScriptRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('delete_script') class DeleteScriptRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/scripting/delete_script/DeleteScriptResponse.ts b/specification/specs/modules/scripting/delete_script/DeleteScriptResponse.ts index 2289d00e4a..df603cfb67 100644 --- a/specification/specs/modules/scripting/delete_script/DeleteScriptResponse.ts +++ b/specification/specs/modules/scripting/delete_script/DeleteScriptResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteScriptResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/modules/scripting/execute_painless_script/ExecutePainlessScriptRequest.ts b/specification/specs/modules/scripting/execute_painless_script/ExecutePainlessScriptRequest.ts index 1afcbb0575..1d1b466503 100644 --- a/specification/specs/modules/scripting/execute_painless_script/ExecutePainlessScriptRequest.ts +++ b/specification/specs/modules/scripting/execute_painless_script/ExecutePainlessScriptRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('scripts_painless_execute') class ExecutePainlessScriptRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/modules/scripting/execute_painless_script/ExecutePainlessScriptResponse.ts b/specification/specs/modules/scripting/execute_painless_script/ExecutePainlessScriptResponse.ts index cc4c5ec2d5..a85c12bee4 100644 --- a/specification/specs/modules/scripting/execute_painless_script/ExecutePainlessScriptResponse.ts +++ b/specification/specs/modules/scripting/execute_painless_script/ExecutePainlessScriptResponse.ts @@ -1,3 +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. + */ + class ExecutePainlessScriptResponse extends ResponseBase { result: TResult } diff --git a/specification/specs/modules/scripting/execute_painless_script/PainlessContextSetup.ts b/specification/specs/modules/scripting/execute_painless_script/PainlessContextSetup.ts index 2f62586e63..3f94905246 100644 --- a/specification/specs/modules/scripting/execute_painless_script/PainlessContextSetup.ts +++ b/specification/specs/modules/scripting/execute_painless_script/PainlessContextSetup.ts @@ -1,3 +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. + */ + class PainlessContextSetup { document: UserDefinedValue index: IndexName diff --git a/specification/specs/modules/scripting/get_script/GetScriptRequest.ts b/specification/specs/modules/scripting/get_script/GetScriptRequest.ts index c8775fa8c1..d910022a70 100644 --- a/specification/specs/modules/scripting/get_script/GetScriptRequest.ts +++ b/specification/specs/modules/scripting/get_script/GetScriptRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('get_script') class GetScriptRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/scripting/get_script/GetScriptResponse.ts b/specification/specs/modules/scripting/get_script/GetScriptResponse.ts index 4c06aebfd9..c69e368d37 100644 --- a/specification/specs/modules/scripting/get_script/GetScriptResponse.ts +++ b/specification/specs/modules/scripting/get_script/GetScriptResponse.ts @@ -1,3 +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. + */ + class GetScriptResponse extends ResponseBase { script: StoredScript } diff --git a/specification/specs/modules/scripting/put_script/PutScriptRequest.ts b/specification/specs/modules/scripting/put_script/PutScriptRequest.ts index 679a686372..662dc49393 100644 --- a/specification/specs/modules/scripting/put_script/PutScriptRequest.ts +++ b/specification/specs/modules/scripting/put_script/PutScriptRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('put_script') class PutScriptRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/scripting/put_script/PutScriptResponse.ts b/specification/specs/modules/scripting/put_script/PutScriptResponse.ts index 92d872c280..3f688c688a 100644 --- a/specification/specs/modules/scripting/put_script/PutScriptResponse.ts +++ b/specification/specs/modules/scripting/put_script/PutScriptResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PutScriptResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/modules/snapshot_and_restore/repositories/SnapshotRepository.ts b/specification/specs/modules/snapshot_and_restore/repositories/SnapshotRepository.ts index ccffad3ef7..f593151808 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/SnapshotRepository.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/SnapshotRepository.ts @@ -1,3 +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. + */ + class SnapshotRepository { type: string } diff --git a/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryRequest.ts b/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryRequest.ts index 486d6154e4..1cd2e06a50 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryRequest.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('snapshot.cleanup_repository') class CleanupRepositoryRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryResponse.ts b/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryResponse.ts index 1d6ee89359..fef98b6f75 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryResponse.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryResponse.ts @@ -1,3 +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. + */ + class CleanupRepositoryResponse extends ResponseBase { results: CleanupRepositoryResults } diff --git a/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryResults.ts b/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryResults.ts index 39a6bdb308..0b9678fdf9 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryResults.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/cleanup_repository/CleanupRepositoryResults.ts @@ -1,3 +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. + */ + class CleanupRepositoryResults { deleted_blobs: long deleted_bytes: long diff --git a/specification/specs/modules/snapshot_and_restore/repositories/create_repository/CreateRepositoryRequest.ts b/specification/specs/modules/snapshot_and_restore/repositories/create_repository/CreateRepositoryRequest.ts index 0d5164cf40..55a5e09d6f 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/create_repository/CreateRepositoryRequest.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/create_repository/CreateRepositoryRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('snapshot.create_repository') @class_serializer('CreateRepositoryFormatter') class CreateRepositoryRequest extends RequestBase { diff --git a/specification/specs/modules/snapshot_and_restore/repositories/create_repository/CreateRepositoryResponse.ts b/specification/specs/modules/snapshot_and_restore/repositories/create_repository/CreateRepositoryResponse.ts index 57c6f725c9..1497625433 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/create_repository/CreateRepositoryResponse.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/create_repository/CreateRepositoryResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class CreateRepositoryResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/modules/snapshot_and_restore/repositories/delete_repository/DeleteRepositoryRequest.ts b/specification/specs/modules/snapshot_and_restore/repositories/delete_repository/DeleteRepositoryRequest.ts index f7cbe586cb..3c92b0737e 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/delete_repository/DeleteRepositoryRequest.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/delete_repository/DeleteRepositoryRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('snapshot.delete_repository') class DeleteRepositoryRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/snapshot_and_restore/repositories/delete_repository/DeleteRepositoryResponse.ts b/specification/specs/modules/snapshot_and_restore/repositories/delete_repository/DeleteRepositoryResponse.ts index e4ab4938ca..1dd715fee2 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/delete_repository/DeleteRepositoryResponse.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/delete_repository/DeleteRepositoryResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteRepositoryResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/modules/snapshot_and_restore/repositories/get_repository/GetRepositoryRequest.ts b/specification/specs/modules/snapshot_and_restore/repositories/get_repository/GetRepositoryRequest.ts index 7a6a25d533..15a70d9e32 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/get_repository/GetRepositoryRequest.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/get_repository/GetRepositoryRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('snapshot.get_repository') class GetRepositoryRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/snapshot_and_restore/repositories/get_repository/GetRepositoryResponse.ts b/specification/specs/modules/snapshot_and_restore/repositories/get_repository/GetRepositoryResponse.ts index f7129c0647..424c698173 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/get_repository/GetRepositoryResponse.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/get_repository/GetRepositoryResponse.ts @@ -1,3 +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. + */ + @class_serializer('GetRepositoryResponseFormatter') class GetRepositoryResponse extends ResponseBase { repositories: Dictionary diff --git a/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/CompactNodeInfo.ts b/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/CompactNodeInfo.ts index 0e9091601e..e68aeb1f5a 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/CompactNodeInfo.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/CompactNodeInfo.ts @@ -1,3 +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. + */ + class CompactNodeInfo { name: string } diff --git a/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/VerifyRepositoryRequest.ts b/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/VerifyRepositoryRequest.ts index 67cf97fbcc..697c15605a 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/VerifyRepositoryRequest.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/VerifyRepositoryRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('snapshot.verify_repository') class VerifyRepositoryRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/VerifyRepositoryResponse.ts b/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/VerifyRepositoryResponse.ts index e276c07118..86f8803af8 100644 --- a/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/VerifyRepositoryResponse.ts +++ b/specification/specs/modules/snapshot_and_restore/repositories/verify_repository/VerifyRepositoryResponse.ts @@ -1,3 +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. + */ + class VerifyRepositoryResponse extends ResponseBase { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ nodes: Dictionary diff --git a/specification/specs/modules/snapshot_and_restore/restore/RestoreRequest.ts b/specification/specs/modules/snapshot_and_restore/restore/RestoreRequest.ts index e424ccd216..fd2cd7b53b 100644 --- a/specification/specs/modules/snapshot_and_restore/restore/RestoreRequest.ts +++ b/specification/specs/modules/snapshot_and_restore/restore/RestoreRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('snapshot.restore') class RestoreRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/snapshot_and_restore/restore/RestoreResponse.ts b/specification/specs/modules/snapshot_and_restore/restore/RestoreResponse.ts index 16e863d9c7..9de6a5a7fd 100644 --- a/specification/specs/modules/snapshot_and_restore/restore/RestoreResponse.ts +++ b/specification/specs/modules/snapshot_and_restore/restore/RestoreResponse.ts @@ -1,3 +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. + */ + class RestoreResponse extends ResponseBase { snapshot: SnapshotRestore } diff --git a/specification/specs/modules/snapshot_and_restore/restore/SnapshotRestore.ts b/specification/specs/modules/snapshot_and_restore/restore/SnapshotRestore.ts index 3d89da1553..c43645f091 100644 --- a/specification/specs/modules/snapshot_and_restore/restore/SnapshotRestore.ts +++ b/specification/specs/modules/snapshot_and_restore/restore/SnapshotRestore.ts @@ -1,3 +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. + */ + class SnapshotRestore { indices: IndexName[] snapshot: string diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/SnapshotInfo.ts b/specification/specs/modules/snapshot_and_restore/snapshot/SnapshotInfo.ts index 0fe99ad185..ef4c4c8216 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/SnapshotInfo.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/SnapshotInfo.ts @@ -1,3 +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. + */ + class SnapshotInfo { data_streams: Array duration_in_millis: long diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/SnapshotShardFailure.ts b/specification/specs/modules/snapshot_and_restore/snapshot/SnapshotShardFailure.ts index 63019e88d6..597eece6c9 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/SnapshotShardFailure.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/SnapshotShardFailure.ts @@ -1,3 +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. + */ + class SnapshotShardFailure { index: string node_id: string diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/delete_snapshot/DeleteSnapshotRequest.ts b/specification/specs/modules/snapshot_and_restore/snapshot/delete_snapshot/DeleteSnapshotRequest.ts index bda40e62a2..f02c42110c 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/delete_snapshot/DeleteSnapshotRequest.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/delete_snapshot/DeleteSnapshotRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('snapshot.delete') class DeleteSnapshotRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/delete_snapshot/DeleteSnapshotResponse.ts b/specification/specs/modules/snapshot_and_restore/snapshot/delete_snapshot/DeleteSnapshotResponse.ts index b5b5688957..01a90f5fd2 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/delete_snapshot/DeleteSnapshotResponse.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/delete_snapshot/DeleteSnapshotResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteSnapshotResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/get_snapshot/GetSnapshotRequest.ts b/specification/specs/modules/snapshot_and_restore/snapshot/get_snapshot/GetSnapshotRequest.ts index 5415ac318e..4544a96b57 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/get_snapshot/GetSnapshotRequest.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/get_snapshot/GetSnapshotRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('snapshot.get') class GetSnapshotRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/get_snapshot/GetSnapshotResponse.ts b/specification/specs/modules/snapshot_and_restore/snapshot/get_snapshot/GetSnapshotResponse.ts index f434ad7c27..db4e4f1baa 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/get_snapshot/GetSnapshotResponse.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/get_snapshot/GetSnapshotResponse.ts @@ -1,3 +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. + */ + class GetSnapshotResponse extends ResponseBase { snapshots: SnapshotInfo[] } diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot/SnapshotRequest.ts b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot/SnapshotRequest.ts index 4b7681cd0c..caf6fab08a 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot/SnapshotRequest.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot/SnapshotRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('snapshot.create') class SnapshotRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot/SnapshotResponse.ts b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot/SnapshotResponse.ts index 166cb231b7..78692a5ce4 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot/SnapshotResponse.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot/SnapshotResponse.ts @@ -1,3 +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. + */ + class SnapshotResponse extends ResponseBase { accepted?: boolean snapshot?: SnapshotInfo diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/FileCountSnapshotStats.ts b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/FileCountSnapshotStats.ts index 08e40e115f..b9df34865a 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/FileCountSnapshotStats.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/FileCountSnapshotStats.ts @@ -1,3 +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. + */ + class FileCountSnapshotStats { file_count: integer size_in_bytes: long diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotIndexStats.ts b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotIndexStats.ts index c37e535765..81f191d6e8 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotIndexStats.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotIndexStats.ts @@ -1,3 +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. + */ + class SnapshotIndexStats { shards: Dictionary shards_stats: SnapshotShardsStats diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotShardsStats.ts b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotShardsStats.ts index 38397d8680..766fde5187 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotShardsStats.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotShardsStats.ts @@ -1,3 +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. + */ + class SnapshotShardsStats { done: long failed: long diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStats.ts b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStats.ts index 84c01bc703..867c9ec0cc 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStats.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStats.ts @@ -1,3 +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. + */ + class SnapshotStats { incremental: FileCountSnapshotStats start_time_in_millis: long diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatus.ts b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatus.ts index 7983d525bc..83f43821a7 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatus.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatus.ts @@ -1,3 +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. + */ + class SnapshotStatus { include_global_state: boolean indices: Dictionary diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatusRequest.ts b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatusRequest.ts index 766c1dfcd9..688fffb7ea 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatusRequest.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatusRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('snapshot.status') class SnapshotStatusRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatusResponse.ts b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatusResponse.ts index 6b49e49bf2..4a8fe26816 100644 --- a/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatusResponse.ts +++ b/specification/specs/modules/snapshot_and_restore/snapshot/snapshot_status/SnapshotStatusResponse.ts @@ -1,3 +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. + */ + class SnapshotStatusResponse extends ResponseBase { snapshots: SnapshotStatus[] } diff --git a/specification/specs/query_dsl/MatchAllQuery.ts b/specification/specs/query_dsl/MatchAllQuery.ts index 1d340c2d5f..b1b1bd6470 100644 --- a/specification/specs/query_dsl/MatchAllQuery.ts +++ b/specification/specs/query_dsl/MatchAllQuery.ts @@ -1,3 +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. + */ + class MatchAllQuery extends QueryBase { norm_field?: string } diff --git a/specification/specs/query_dsl/MatchNoneQuery.ts b/specification/specs/query_dsl/MatchNoneQuery.ts index 49a0ddb429..126b76ba4d 100644 --- a/specification/specs/query_dsl/MatchNoneQuery.ts +++ b/specification/specs/query_dsl/MatchNoneQuery.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class MatchNoneQuery extends QueryBase {} diff --git a/specification/specs/query_dsl/Operator.ts b/specification/specs/query_dsl/Operator.ts index 0d635d4c87..c5e29de914 100644 --- a/specification/specs/query_dsl/Operator.ts +++ b/specification/specs/query_dsl/Operator.ts @@ -1,3 +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. + */ + enum Operator { and = 0, or = 1, diff --git a/specification/specs/query_dsl/abstractions/container/QueryContainer.ts b/specification/specs/query_dsl/abstractions/container/QueryContainer.ts index b386a52d7c..69a633d9b2 100644 --- a/specification/specs/query_dsl/abstractions/container/QueryContainer.ts +++ b/specification/specs/query_dsl/abstractions/container/QueryContainer.ts @@ -1,3 +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. + */ + @class_serializer('QueryContainerInterfaceFormatter') class QueryContainer { bool?: BoolQuery diff --git a/specification/specs/query_dsl/abstractions/field_lookup/FieldLookup.ts b/specification/specs/query_dsl/abstractions/field_lookup/FieldLookup.ts index 08496cb89d..e0928420d2 100644 --- a/specification/specs/query_dsl/abstractions/field_lookup/FieldLookup.ts +++ b/specification/specs/query_dsl/abstractions/field_lookup/FieldLookup.ts @@ -1,3 +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. + */ + class FieldLookup { id?: Id index?: IndexName diff --git a/specification/specs/query_dsl/abstractions/field_name/FieldNameQuery.ts b/specification/specs/query_dsl/abstractions/field_name/FieldNameQuery.ts index afe60cc57a..0dcd626a4c 100644 --- a/specification/specs/query_dsl/abstractions/field_name/FieldNameQuery.ts +++ b/specification/specs/query_dsl/abstractions/field_name/FieldNameQuery.ts @@ -1,3 +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. + */ + class FieldNameQuery { field?: Field } diff --git a/specification/specs/query_dsl/abstractions/query/Query.ts b/specification/specs/query_dsl/abstractions/query/Query.ts index f327bd03e7..10c4c3103a 100644 --- a/specification/specs/query_dsl/abstractions/query/Query.ts +++ b/specification/specs/query_dsl/abstractions/query/Query.ts @@ -1,3 +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. + */ + class QueryBase { boost?: float _name?: string diff --git a/specification/specs/query_dsl/compound/bool/BoolQuery.ts b/specification/specs/query_dsl/compound/bool/BoolQuery.ts index 747cc90041..ae8635b8d0 100644 --- a/specification/specs/query_dsl/compound/bool/BoolQuery.ts +++ b/specification/specs/query_dsl/compound/bool/BoolQuery.ts @@ -1,3 +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. + */ + class BoolQuery { filter?: QueryContainer | QueryContainer[] minimum_should_match?: MinimumShouldMatch diff --git a/specification/specs/query_dsl/compound/boosting/BoostingQuery.ts b/specification/specs/query_dsl/compound/boosting/BoostingQuery.ts index 2e143a0460..9c10e91c17 100644 --- a/specification/specs/query_dsl/compound/boosting/BoostingQuery.ts +++ b/specification/specs/query_dsl/compound/boosting/BoostingQuery.ts @@ -1,3 +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. + */ + class BoostingQuery { negative_boost?: double negative?: QueryContainer diff --git a/specification/specs/query_dsl/compound/constant_score/ConstantScoreQuery.ts b/specification/specs/query_dsl/compound/constant_score/ConstantScoreQuery.ts index b692fd6966..29729e37f2 100644 --- a/specification/specs/query_dsl/compound/constant_score/ConstantScoreQuery.ts +++ b/specification/specs/query_dsl/compound/constant_score/ConstantScoreQuery.ts @@ -1,3 +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. + */ + class ConstantScoreQuery { filter?: QueryContainer boost?: float diff --git a/specification/specs/query_dsl/compound/dismax/DisMaxQuery.ts b/specification/specs/query_dsl/compound/dismax/DisMaxQuery.ts index b59c247a62..332c4d20a3 100644 --- a/specification/specs/query_dsl/compound/dismax/DisMaxQuery.ts +++ b/specification/specs/query_dsl/compound/dismax/DisMaxQuery.ts @@ -1,3 +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. + */ + class DisMaxQuery { queries?: QueryContainer[] tie_breaker?: double diff --git a/specification/specs/query_dsl/compound/function_score/FunctionScoreQuery.ts b/specification/specs/query_dsl/compound/function_score/FunctionScoreQuery.ts index cdb8595416..b837a6ea04 100644 --- a/specification/specs/query_dsl/compound/function_score/FunctionScoreQuery.ts +++ b/specification/specs/query_dsl/compound/function_score/FunctionScoreQuery.ts @@ -1,3 +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. + */ + class FunctionScoreQuery { boost_mode?: FunctionBoostMode functions?: ScoreFunction[] diff --git a/specification/specs/query_dsl/compound/function_score/functions/FunctionBoostMode.ts b/specification/specs/query_dsl/compound/function_score/functions/FunctionBoostMode.ts index 11a559b136..f43cdb85ee 100644 --- a/specification/specs/query_dsl/compound/function_score/functions/FunctionBoostMode.ts +++ b/specification/specs/query_dsl/compound/function_score/functions/FunctionBoostMode.ts @@ -1,3 +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. + */ + enum FunctionBoostMode { multiply = 0, replace = 1, diff --git a/specification/specs/query_dsl/compound/function_score/functions/FunctionScoreMode.ts b/specification/specs/query_dsl/compound/function_score/functions/FunctionScoreMode.ts index 091b8d7280..ad96181090 100644 --- a/specification/specs/query_dsl/compound/function_score/functions/FunctionScoreMode.ts +++ b/specification/specs/query_dsl/compound/function_score/functions/FunctionScoreMode.ts @@ -1,3 +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. + */ + enum FunctionScoreMode { multiply = 0, sum = 1, diff --git a/specification/specs/query_dsl/compound/function_score/functions/ScoreFunction.ts b/specification/specs/query_dsl/compound/function_score/functions/ScoreFunction.ts index 38c5877a66..9395769402 100644 --- a/specification/specs/query_dsl/compound/function_score/functions/ScoreFunction.ts +++ b/specification/specs/query_dsl/compound/function_score/functions/ScoreFunction.ts @@ -1,3 +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. + */ + @class_serializer('ScoreFunctionJsonFormatter') class ScoreFunction { filter?: QueryContainer diff --git a/specification/specs/query_dsl/compound/function_score/functions/decay/MultiValueMode.ts b/specification/specs/query_dsl/compound/function_score/functions/decay/MultiValueMode.ts index d1a8217e46..859b2029ec 100644 --- a/specification/specs/query_dsl/compound/function_score/functions/decay/MultiValueMode.ts +++ b/specification/specs/query_dsl/compound/function_score/functions/decay/MultiValueMode.ts @@ -1,3 +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. + */ + enum MultiValueMode { min = 0, max = 1, diff --git a/specification/specs/query_dsl/compound/function_score/functions/field_value/FieldValueFactorModifier.ts b/specification/specs/query_dsl/compound/function_score/functions/field_value/FieldValueFactorModifier.ts index 51855a3ebf..90e6edc57d 100644 --- a/specification/specs/query_dsl/compound/function_score/functions/field_value/FieldValueFactorModifier.ts +++ b/specification/specs/query_dsl/compound/function_score/functions/field_value/FieldValueFactorModifier.ts @@ -1,3 +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. + */ + enum FieldValueFactorModifier { none = 0, log = 1, diff --git a/specification/specs/query_dsl/full_text/common_terms/CommonTermsQuery.ts b/specification/specs/query_dsl/full_text/common_terms/CommonTermsQuery.ts index 945d25f4cb..a4746a4c89 100644 --- a/specification/specs/query_dsl/full_text/common_terms/CommonTermsQuery.ts +++ b/specification/specs/query_dsl/full_text/common_terms/CommonTermsQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class CommonTermsQuery extends QueryBase { analyzer?: string diff --git a/specification/specs/query_dsl/full_text/intervals/Intervals.ts b/specification/specs/query_dsl/full_text/intervals/Intervals.ts index 39ba435211..ef1a0592c4 100644 --- a/specification/specs/query_dsl/full_text/intervals/Intervals.ts +++ b/specification/specs/query_dsl/full_text/intervals/Intervals.ts @@ -1,3 +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. + */ + class Intervals { filter?: IntervalsFilter } diff --git a/specification/specs/query_dsl/full_text/intervals/IntervalsAllOf.ts b/specification/specs/query_dsl/full_text/intervals/IntervalsAllOf.ts index 3b9824bcf0..e3db41a5fb 100644 --- a/specification/specs/query_dsl/full_text/intervals/IntervalsAllOf.ts +++ b/specification/specs/query_dsl/full_text/intervals/IntervalsAllOf.ts @@ -1,3 +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. + */ + class IntervalsAllOf { intervals?: IntervalsContainer[] max_gaps?: integer diff --git a/specification/specs/query_dsl/full_text/intervals/IntervalsAnyOf.ts b/specification/specs/query_dsl/full_text/intervals/IntervalsAnyOf.ts index ca2159a414..8b0b131200 100644 --- a/specification/specs/query_dsl/full_text/intervals/IntervalsAnyOf.ts +++ b/specification/specs/query_dsl/full_text/intervals/IntervalsAnyOf.ts @@ -1,3 +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. + */ + class IntervalsAnyOf { intervals?: IntervalsContainer[] filter?: IntervalsFilter diff --git a/specification/specs/query_dsl/full_text/intervals/IntervalsContainer.ts b/specification/specs/query_dsl/full_text/intervals/IntervalsContainer.ts index b71f5a59f4..1ac1c5c16a 100644 --- a/specification/specs/query_dsl/full_text/intervals/IntervalsContainer.ts +++ b/specification/specs/query_dsl/full_text/intervals/IntervalsContainer.ts @@ -1,3 +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. + */ + class IntervalsContainer { all_of?: IntervalsAllOf any_of?: IntervalsAnyOf diff --git a/specification/specs/query_dsl/full_text/intervals/IntervalsFilter.ts b/specification/specs/query_dsl/full_text/intervals/IntervalsFilter.ts index 2d64d7f98b..4d12f08bf4 100644 --- a/specification/specs/query_dsl/full_text/intervals/IntervalsFilter.ts +++ b/specification/specs/query_dsl/full_text/intervals/IntervalsFilter.ts @@ -1,3 +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. + */ + class IntervalsFilter { after?: IntervalsContainer before?: IntervalsContainer diff --git a/specification/specs/query_dsl/full_text/intervals/IntervalsFuzzy.ts b/specification/specs/query_dsl/full_text/intervals/IntervalsFuzzy.ts index 13aafce0fc..2aa7e413e0 100644 --- a/specification/specs/query_dsl/full_text/intervals/IntervalsFuzzy.ts +++ b/specification/specs/query_dsl/full_text/intervals/IntervalsFuzzy.ts @@ -1,3 +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. + */ + class IntervalsFuzzy { analyzer?: string fuzziness?: Fuzziness diff --git a/specification/specs/query_dsl/full_text/intervals/IntervalsMatch.ts b/specification/specs/query_dsl/full_text/intervals/IntervalsMatch.ts index 1c901e408b..e6016e80cd 100644 --- a/specification/specs/query_dsl/full_text/intervals/IntervalsMatch.ts +++ b/specification/specs/query_dsl/full_text/intervals/IntervalsMatch.ts @@ -1,3 +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. + */ + class IntervalsMatch { analyzer?: string max_gaps?: integer diff --git a/specification/specs/query_dsl/full_text/intervals/IntervalsPrefix.ts b/specification/specs/query_dsl/full_text/intervals/IntervalsPrefix.ts index 71a903c9d7..85f26d5f6d 100644 --- a/specification/specs/query_dsl/full_text/intervals/IntervalsPrefix.ts +++ b/specification/specs/query_dsl/full_text/intervals/IntervalsPrefix.ts @@ -1,3 +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. + */ + class IntervalsPrefix { analyzer?: string prefix?: string diff --git a/specification/specs/query_dsl/full_text/intervals/IntervalsQuery.ts b/specification/specs/query_dsl/full_text/intervals/IntervalsQuery.ts index fc0acb7b78..8fb8ce07ed 100644 --- a/specification/specs/query_dsl/full_text/intervals/IntervalsQuery.ts +++ b/specification/specs/query_dsl/full_text/intervals/IntervalsQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class IntervalsQuery extends QueryBase { all_of?: IntervalsAllOf diff --git a/specification/specs/query_dsl/full_text/intervals/IntervalsWildcard.ts b/specification/specs/query_dsl/full_text/intervals/IntervalsWildcard.ts index d3cd045e42..873cc6a314 100644 --- a/specification/specs/query_dsl/full_text/intervals/IntervalsWildcard.ts +++ b/specification/specs/query_dsl/full_text/intervals/IntervalsWildcard.ts @@ -1,3 +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. + */ + class IntervalsWildcard { analyzer?: string pattern?: string diff --git a/specification/specs/query_dsl/full_text/match/MatchQuery.ts b/specification/specs/query_dsl/full_text/match/MatchQuery.ts index ff9195c128..34651fb73b 100644 --- a/specification/specs/query_dsl/full_text/match/MatchQuery.ts +++ b/specification/specs/query_dsl/full_text/match/MatchQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class MatchQuery extends QueryBase { analyzer?: string diff --git a/specification/specs/query_dsl/full_text/match_bool_prefix/MatchBoolPrefixQuery.ts b/specification/specs/query_dsl/full_text/match_bool_prefix/MatchBoolPrefixQuery.ts index 6755c855ca..4fc6e02f57 100644 --- a/specification/specs/query_dsl/full_text/match_bool_prefix/MatchBoolPrefixQuery.ts +++ b/specification/specs/query_dsl/full_text/match_bool_prefix/MatchBoolPrefixQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class MatchBoolPrefixQuery extends QueryBase { analyzer?: string diff --git a/specification/specs/query_dsl/full_text/match_phrase/MatchPhraseQuery.ts b/specification/specs/query_dsl/full_text/match_phrase/MatchPhraseQuery.ts index d0bbbd8220..4537fd568b 100644 --- a/specification/specs/query_dsl/full_text/match_phrase/MatchPhraseQuery.ts +++ b/specification/specs/query_dsl/full_text/match_phrase/MatchPhraseQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class MatchPhraseQuery extends QueryBase { analyzer?: string diff --git a/specification/specs/query_dsl/full_text/match_phrase_prefix/MatchPhrasePrefixQuery.ts b/specification/specs/query_dsl/full_text/match_phrase_prefix/MatchPhrasePrefixQuery.ts index 6f4ecee330..0889ca91f8 100644 --- a/specification/specs/query_dsl/full_text/match_phrase_prefix/MatchPhrasePrefixQuery.ts +++ b/specification/specs/query_dsl/full_text/match_phrase_prefix/MatchPhrasePrefixQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class MatchPhrasePrefixQuery extends QueryBase { analyzer?: string diff --git a/specification/specs/query_dsl/full_text/multi_match/MultiMatchQuery.ts b/specification/specs/query_dsl/full_text/multi_match/MultiMatchQuery.ts index cf75fc9947..22f31c4a04 100644 --- a/specification/specs/query_dsl/full_text/multi_match/MultiMatchQuery.ts +++ b/specification/specs/query_dsl/full_text/multi_match/MultiMatchQuery.ts @@ -1,3 +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. + */ + class MultiMatchQuery extends QueryBase { analyzer?: string auto_generate_synonyms_phrase_query?: boolean diff --git a/specification/specs/query_dsl/full_text/multi_match/TextQueryType.ts b/specification/specs/query_dsl/full_text/multi_match/TextQueryType.ts index c29a361f3a..b0f7b901da 100644 --- a/specification/specs/query_dsl/full_text/multi_match/TextQueryType.ts +++ b/specification/specs/query_dsl/full_text/multi_match/TextQueryType.ts @@ -1,3 +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. + */ + enum TextQueryType { best_fields = 0, most_fields = 1, diff --git a/specification/specs/query_dsl/full_text/multi_match/ZeroTermsQuery.ts b/specification/specs/query_dsl/full_text/multi_match/ZeroTermsQuery.ts index 0b1b79d837..9e96679e03 100644 --- a/specification/specs/query_dsl/full_text/multi_match/ZeroTermsQuery.ts +++ b/specification/specs/query_dsl/full_text/multi_match/ZeroTermsQuery.ts @@ -1,3 +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. + */ + enum ZeroTermsQuery { all = 0, none = 1 diff --git a/specification/specs/query_dsl/full_text/query_string/QueryStringQuery.ts b/specification/specs/query_dsl/full_text/query_string/QueryStringQuery.ts index 583e4f3672..2166f37149 100644 --- a/specification/specs/query_dsl/full_text/query_string/QueryStringQuery.ts +++ b/specification/specs/query_dsl/full_text/query_string/QueryStringQuery.ts @@ -1,3 +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. + */ + class QueryStringQuery extends QueryBase { allow_leading_wildcard?: boolean analyzer?: string diff --git a/specification/specs/query_dsl/full_text/simple_query_string/SimpleQueryStringFlags.ts b/specification/specs/query_dsl/full_text/simple_query_string/SimpleQueryStringFlags.ts index 3ff95bcd43..2e44a25388 100644 --- a/specification/specs/query_dsl/full_text/simple_query_string/SimpleQueryStringFlags.ts +++ b/specification/specs/query_dsl/full_text/simple_query_string/SimpleQueryStringFlags.ts @@ -1,3 +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. + */ + enum SimpleQueryStringFlags { NONE = 1, AND = 2, diff --git a/specification/specs/query_dsl/full_text/simple_query_string/SimpleQueryStringQuery.ts b/specification/specs/query_dsl/full_text/simple_query_string/SimpleQueryStringQuery.ts index 11acff4567..34ea3058cc 100644 --- a/specification/specs/query_dsl/full_text/simple_query_string/SimpleQueryStringQuery.ts +++ b/specification/specs/query_dsl/full_text/simple_query_string/SimpleQueryStringQuery.ts @@ -1,3 +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. + */ + class SimpleQueryStringQuery extends QueryBase { analyzer?: string analyze_wildcard?: boolean diff --git a/specification/specs/query_dsl/geo/GeoCoordinate.ts b/specification/specs/query_dsl/geo/GeoCoordinate.ts index 13e01f75c2..f862048337 100644 --- a/specification/specs/query_dsl/geo/GeoCoordinate.ts +++ b/specification/specs/query_dsl/geo/GeoCoordinate.ts @@ -1,3 +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. + */ + @class_serializer('GeoCoordinateFormatter') class GeoCoordinate extends GeoLocation { z?: double diff --git a/specification/specs/query_dsl/geo/GeoLocation.ts b/specification/specs/query_dsl/geo/GeoLocation.ts index 292b34fdd1..7e8c02489c 100644 --- a/specification/specs/query_dsl/geo/GeoLocation.ts +++ b/specification/specs/query_dsl/geo/GeoLocation.ts @@ -1,3 +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. + */ + @class_serializer('GeoLocationFormatter') class GeoLocation { lat?: double diff --git a/specification/specs/query_dsl/geo/GeoValidationMethod.ts b/specification/specs/query_dsl/geo/GeoValidationMethod.ts index 57681fea38..3041bbc88a 100644 --- a/specification/specs/query_dsl/geo/GeoValidationMethod.ts +++ b/specification/specs/query_dsl/geo/GeoValidationMethod.ts @@ -1,3 +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. + */ + enum GeoValidationMethod { coerce = 0, ignore_malformed = 1, diff --git a/specification/specs/query_dsl/geo/bounding_box/BoundingBox.ts b/specification/specs/query_dsl/geo/bounding_box/BoundingBox.ts index aef1cde3b6..980954d847 100644 --- a/specification/specs/query_dsl/geo/bounding_box/BoundingBox.ts +++ b/specification/specs/query_dsl/geo/bounding_box/BoundingBox.ts @@ -1,3 +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. + */ + class BoundingBox { bottom_right?: GeoLocation top_left?: GeoLocation diff --git a/specification/specs/query_dsl/geo/bounding_box/GeoBoundingBoxQuery.ts b/specification/specs/query_dsl/geo/bounding_box/GeoBoundingBoxQuery.ts index fb73aa7fba..a409569251 100644 --- a/specification/specs/query_dsl/geo/bounding_box/GeoBoundingBoxQuery.ts +++ b/specification/specs/query_dsl/geo/bounding_box/GeoBoundingBoxQuery.ts @@ -1,3 +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. + */ + @class_serializer('GeoBoundingBoxQueryFormatter') class GeoBoundingBoxQuery extends QueryBase { bounding_box?: BoundingBox diff --git a/specification/specs/query_dsl/geo/bounding_box/GeoExecution.ts b/specification/specs/query_dsl/geo/bounding_box/GeoExecution.ts index fdf53486cc..f1c6d56545 100644 --- a/specification/specs/query_dsl/geo/bounding_box/GeoExecution.ts +++ b/specification/specs/query_dsl/geo/bounding_box/GeoExecution.ts @@ -1,3 +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. + */ + enum GeoExecution { memory = 0, indexed = 1 diff --git a/specification/specs/query_dsl/geo/distance/GeoDistanceQuery.ts b/specification/specs/query_dsl/geo/distance/GeoDistanceQuery.ts index 38ecf21a40..c4162e2af6 100644 --- a/specification/specs/query_dsl/geo/distance/GeoDistanceQuery.ts +++ b/specification/specs/query_dsl/geo/distance/GeoDistanceQuery.ts @@ -1,3 +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. + */ + @class_serializer('GeoDistanceQueryFormatter') class GeoDistanceQuery extends QueryBase { distance?: Distance diff --git a/specification/specs/query_dsl/geo/polygon/GeoPolygonQuery.ts b/specification/specs/query_dsl/geo/polygon/GeoPolygonQuery.ts index 4ad482d307..30d0b88767 100644 --- a/specification/specs/query_dsl/geo/polygon/GeoPolygonQuery.ts +++ b/specification/specs/query_dsl/geo/polygon/GeoPolygonQuery.ts @@ -1,3 +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. + */ + @class_serializer('GeoPolygonQueryFormatter') class GeoPolygonQuery extends QueryBase { points?: GeoLocation[] diff --git a/specification/specs/query_dsl/geo/shape/GeoFormat.ts b/specification/specs/query_dsl/geo/shape/GeoFormat.ts index de4085a2e2..21be26b3af 100644 --- a/specification/specs/query_dsl/geo/shape/GeoFormat.ts +++ b/specification/specs/query_dsl/geo/shape/GeoFormat.ts @@ -1,3 +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. + */ + enum GeoFormat { GeoJson = 0, WellKnownText = 1 diff --git a/specification/specs/query_dsl/geo/shape/GeoShape.ts b/specification/specs/query_dsl/geo/shape/GeoShape.ts index fd03033512..e8926f5867 100644 --- a/specification/specs/query_dsl/geo/shape/GeoShape.ts +++ b/specification/specs/query_dsl/geo/shape/GeoShape.ts @@ -1,3 +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. + */ + @class_serializer('GeoShapeFormatter') class GeoShape { type?: string diff --git a/specification/specs/query_dsl/geo/shape/GeoShapeQuery.ts b/specification/specs/query_dsl/geo/shape/GeoShapeQuery.ts index 557dd6e00c..367f82cc10 100644 --- a/specification/specs/query_dsl/geo/shape/GeoShapeQuery.ts +++ b/specification/specs/query_dsl/geo/shape/GeoShapeQuery.ts @@ -1,3 +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. + */ + @class_serializer('CompositeFormatter`3') class GeoShapeQuery extends QueryBase { ignore_unmapped?: boolean diff --git a/specification/specs/query_dsl/geo/w_k_t/CharacterType.ts b/specification/specs/query_dsl/geo/w_k_t/CharacterType.ts index b9a03e60b2..5d0da5c423 100644 --- a/specification/specs/query_dsl/geo/w_k_t/CharacterType.ts +++ b/specification/specs/query_dsl/geo/w_k_t/CharacterType.ts @@ -1,3 +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. + */ + enum CharacterType { Whitespace = 0, Alpha = 1, diff --git a/specification/specs/query_dsl/geo/w_k_t/TokenType.ts b/specification/specs/query_dsl/geo/w_k_t/TokenType.ts index 5003db8ee1..9aef958e99 100644 --- a/specification/specs/query_dsl/geo/w_k_t/TokenType.ts +++ b/specification/specs/query_dsl/geo/w_k_t/TokenType.ts @@ -1,3 +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. + */ + enum TokenType { None = 0, Word = 1, diff --git a/specification/specs/query_dsl/joining/has_child/ChildScoreMode.ts b/specification/specs/query_dsl/joining/has_child/ChildScoreMode.ts index 857b6f11bd..01028515f1 100644 --- a/specification/specs/query_dsl/joining/has_child/ChildScoreMode.ts +++ b/specification/specs/query_dsl/joining/has_child/ChildScoreMode.ts @@ -1,3 +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. + */ + enum ChildScoreMode { none = 0, avg = 1, diff --git a/specification/specs/query_dsl/joining/has_child/HasChildQuery.ts b/specification/specs/query_dsl/joining/has_child/HasChildQuery.ts index 2df3b6028b..e936ae1ce2 100644 --- a/specification/specs/query_dsl/joining/has_child/HasChildQuery.ts +++ b/specification/specs/query_dsl/joining/has_child/HasChildQuery.ts @@ -1,3 +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. + */ + class HasChildQuery extends QueryBase { ignore_unmapped?: boolean inner_hits?: InnerHits diff --git a/specification/specs/query_dsl/joining/has_parent/HasParentQuery.ts b/specification/specs/query_dsl/joining/has_parent/HasParentQuery.ts index 20c4708417..1c08653833 100644 --- a/specification/specs/query_dsl/joining/has_parent/HasParentQuery.ts +++ b/specification/specs/query_dsl/joining/has_parent/HasParentQuery.ts @@ -1,3 +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. + */ + class HasParentQuery extends QueryBase { ignore_unmapped?: boolean inner_hits?: InnerHits diff --git a/specification/specs/query_dsl/joining/nested/NestedQuery.ts b/specification/specs/query_dsl/joining/nested/NestedQuery.ts index c3c9d1b75b..59adf5251e 100644 --- a/specification/specs/query_dsl/joining/nested/NestedQuery.ts +++ b/specification/specs/query_dsl/joining/nested/NestedQuery.ts @@ -1,3 +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. + */ + class NestedQuery extends QueryBase { ignore_unmapped?: boolean inner_hits?: InnerHits diff --git a/specification/specs/query_dsl/joining/nested/NestedScoreMode.ts b/specification/specs/query_dsl/joining/nested/NestedScoreMode.ts index 4c264a8353..ee7b55fbea 100644 --- a/specification/specs/query_dsl/joining/nested/NestedScoreMode.ts +++ b/specification/specs/query_dsl/joining/nested/NestedScoreMode.ts @@ -1,3 +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. + */ + enum NestedScoreMode { avg = 0, sum = 1, diff --git a/specification/specs/query_dsl/joining/parent_id/ParentIdQuery.ts b/specification/specs/query_dsl/joining/parent_id/ParentIdQuery.ts index 54ca3e4f00..5f192a1f73 100644 --- a/specification/specs/query_dsl/joining/parent_id/ParentIdQuery.ts +++ b/specification/specs/query_dsl/joining/parent_id/ParentIdQuery.ts @@ -1,3 +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. + */ + class ParentIdQuery extends QueryBase { id?: Id ignore_unmapped?: boolean diff --git a/specification/specs/query_dsl/multi_term_query_rewrite/RewriteMultiTerm.ts b/specification/specs/query_dsl/multi_term_query_rewrite/RewriteMultiTerm.ts index ffdfba7fcf..85b9f0a050 100644 --- a/specification/specs/query_dsl/multi_term_query_rewrite/RewriteMultiTerm.ts +++ b/specification/specs/query_dsl/multi_term_query_rewrite/RewriteMultiTerm.ts @@ -1,3 +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. + */ + enum RewriteMultiTerm { constant_score = 0, scoring_boolean = 1, diff --git a/specification/specs/query_dsl/nest_specific/RawQuery.ts b/specification/specs/query_dsl/nest_specific/RawQuery.ts index feb853fa94..5601da8857 100644 --- a/specification/specs/query_dsl/nest_specific/RawQuery.ts +++ b/specification/specs/query_dsl/nest_specific/RawQuery.ts @@ -1,3 +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. + */ + class RawQuery { raw?: string } diff --git a/specification/specs/query_dsl/span/SpanQuery.ts b/specification/specs/query_dsl/span/SpanQuery.ts index 92b05aaa68..9e09483274 100644 --- a/specification/specs/query_dsl/span/SpanQuery.ts +++ b/specification/specs/query_dsl/span/SpanQuery.ts @@ -1,3 +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. + */ + class SpanQuery extends QueryBase { span_containing?: SpanContainingQuery field_masking_span?: SpanFieldMaskingQuery diff --git a/specification/specs/query_dsl/span/SpanSubQuery.ts b/specification/specs/query_dsl/span/SpanSubQuery.ts index 71bda1d517..26bebdc64f 100644 --- a/specification/specs/query_dsl/span/SpanSubQuery.ts +++ b/specification/specs/query_dsl/span/SpanSubQuery.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class SpanSubQuery {} diff --git a/specification/specs/query_dsl/span/containing/SpanContainingQuery.ts b/specification/specs/query_dsl/span/containing/SpanContainingQuery.ts index b1cc62d01b..c327ffc04e 100644 --- a/specification/specs/query_dsl/span/containing/SpanContainingQuery.ts +++ b/specification/specs/query_dsl/span/containing/SpanContainingQuery.ts @@ -1,3 +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. + */ + class SpanContainingQuery { big?: SpanQuery little?: SpanQuery diff --git a/specification/specs/query_dsl/span/field_masking/SpanFieldMaskingQuery.ts b/specification/specs/query_dsl/span/field_masking/SpanFieldMaskingQuery.ts index c86de1975e..8ed575f6fd 100644 --- a/specification/specs/query_dsl/span/field_masking/SpanFieldMaskingQuery.ts +++ b/specification/specs/query_dsl/span/field_masking/SpanFieldMaskingQuery.ts @@ -1,3 +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. + */ + class SpanFieldMaskingQuery { field?: Field query?: SpanQuery diff --git a/specification/specs/query_dsl/span/first/SpanFirstQuery.ts b/specification/specs/query_dsl/span/first/SpanFirstQuery.ts index f92fa35e36..e3a8a55638 100644 --- a/specification/specs/query_dsl/span/first/SpanFirstQuery.ts +++ b/specification/specs/query_dsl/span/first/SpanFirstQuery.ts @@ -1,3 +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. + */ + class SpanFirstQuery { end?: integer match?: SpanQuery diff --git a/specification/specs/query_dsl/span/gap/SpanGapQuery.ts b/specification/specs/query_dsl/span/gap/SpanGapQuery.ts index 2ed8d3e21e..21906c756c 100644 --- a/specification/specs/query_dsl/span/gap/SpanGapQuery.ts +++ b/specification/specs/query_dsl/span/gap/SpanGapQuery.ts @@ -1,3 +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. + */ + @class_serializer('SpanGapQueryFormatter') class SpanGapQuery { field?: Field diff --git a/specification/specs/query_dsl/span/multi_term/SpanMultiTermQuery.ts b/specification/specs/query_dsl/span/multi_term/SpanMultiTermQuery.ts index 89af928666..de57580ec9 100644 --- a/specification/specs/query_dsl/span/multi_term/SpanMultiTermQuery.ts +++ b/specification/specs/query_dsl/span/multi_term/SpanMultiTermQuery.ts @@ -1,3 +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. + */ + class SpanMultiTermQuery { match?: QueryContainer } diff --git a/specification/specs/query_dsl/span/near/SpanNearQuery.ts b/specification/specs/query_dsl/span/near/SpanNearQuery.ts index b2a3c25a3d..f22aff4f16 100644 --- a/specification/specs/query_dsl/span/near/SpanNearQuery.ts +++ b/specification/specs/query_dsl/span/near/SpanNearQuery.ts @@ -1,3 +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. + */ + class SpanNearQuery { clauses?: SpanQuery[] in_order?: boolean diff --git a/specification/specs/query_dsl/span/not/SpanNotQuery.ts b/specification/specs/query_dsl/span/not/SpanNotQuery.ts index 85bca12c6a..6e8fed3234 100644 --- a/specification/specs/query_dsl/span/not/SpanNotQuery.ts +++ b/specification/specs/query_dsl/span/not/SpanNotQuery.ts @@ -1,3 +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. + */ + class SpanNotQuery { dist?: integer exclude?: SpanQuery diff --git a/specification/specs/query_dsl/span/or/SpanOrQuery.ts b/specification/specs/query_dsl/span/or/SpanOrQuery.ts index 8a5bbb980b..7018ce4f2d 100644 --- a/specification/specs/query_dsl/span/or/SpanOrQuery.ts +++ b/specification/specs/query_dsl/span/or/SpanOrQuery.ts @@ -1,3 +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. + */ + class SpanOrQuery { clauses?: SpanQuery[] } diff --git a/specification/specs/query_dsl/span/term/SpanTermQuery.ts b/specification/specs/query_dsl/span/term/SpanTermQuery.ts index b211c0ce95..a555d554c1 100644 --- a/specification/specs/query_dsl/span/term/SpanTermQuery.ts +++ b/specification/specs/query_dsl/span/term/SpanTermQuery.ts @@ -1,2 +1,21 @@ +/* + * 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. + */ + @class_serializer('FieldNameQueryFormatter`2') class SpanTermQuery {} diff --git a/specification/specs/query_dsl/span/within/SpanWithinQuery.ts b/specification/specs/query_dsl/span/within/SpanWithinQuery.ts index 5bd57a7544..885e50469b 100644 --- a/specification/specs/query_dsl/span/within/SpanWithinQuery.ts +++ b/specification/specs/query_dsl/span/within/SpanWithinQuery.ts @@ -1,3 +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. + */ + class SpanWithinQuery { big?: SpanQuery little?: SpanQuery diff --git a/specification/specs/query_dsl/specialized/distance_feature/DistanceFeatureQuery.ts b/specification/specs/query_dsl/specialized/distance_feature/DistanceFeatureQuery.ts index 74aa77d575..2b7cce2565 100644 --- a/specification/specs/query_dsl/specialized/distance_feature/DistanceFeatureQuery.ts +++ b/specification/specs/query_dsl/specialized/distance_feature/DistanceFeatureQuery.ts @@ -1,3 +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. + */ + @class_serializer('DistanceFeatureQueryFormatter') class DistanceFeatureQuery extends QueryBase { origin?: Array | GeoCoordinate | DateMath diff --git a/specification/specs/query_dsl/specialized/more_like_this/MoreLikeThisQuery.ts b/specification/specs/query_dsl/specialized/more_like_this/MoreLikeThisQuery.ts index 7cc2f305db..69c353bc88 100644 --- a/specification/specs/query_dsl/specialized/more_like_this/MoreLikeThisQuery.ts +++ b/specification/specs/query_dsl/specialized/more_like_this/MoreLikeThisQuery.ts @@ -1,3 +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. + */ + class MoreLikeThisQuery extends QueryBase { analyzer?: string boost_terms?: double diff --git a/specification/specs/query_dsl/specialized/more_like_this/like/Like.ts b/specification/specs/query_dsl/specialized/more_like_this/like/Like.ts index a5029b5202..6d743be59d 100644 --- a/specification/specs/query_dsl/specialized/more_like_this/like/Like.ts +++ b/specification/specs/query_dsl/specialized/more_like_this/like/Like.ts @@ -1,3 +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. + */ + /** * Text that we want similar documents for or a lookup to a document's field for the text. * @url https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html#_document_input_parameters diff --git a/specification/specs/query_dsl/specialized/more_like_this/like/LikeDocument.ts b/specification/specs/query_dsl/specialized/more_like_this/like/LikeDocument.ts index 7754a56154..df5c87b41b 100644 --- a/specification/specs/query_dsl/specialized/more_like_this/like/LikeDocument.ts +++ b/specification/specs/query_dsl/specialized/more_like_this/like/LikeDocument.ts @@ -1,3 +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. + */ + class LikeDocument { /** @prop_serializer SourceFormatter`1 */ doc?: UserDefinedValue diff --git a/specification/specs/query_dsl/specialized/percolate/PercolateQuery.ts b/specification/specs/query_dsl/specialized/percolate/PercolateQuery.ts index cd8e4c7ffa..0bdbbc5b9e 100644 --- a/specification/specs/query_dsl/specialized/percolate/PercolateQuery.ts +++ b/specification/specs/query_dsl/specialized/percolate/PercolateQuery.ts @@ -1,3 +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. + */ + class PercolateQuery extends QueryBase { /** @prop_serializer SourceFormatter`1 */ document?: UserDefinedValue diff --git a/specification/specs/query_dsl/specialized/pinned/PinnedQuery.ts b/specification/specs/query_dsl/specialized/pinned/PinnedQuery.ts index 82fdef5c39..3bf9211768 100644 --- a/specification/specs/query_dsl/specialized/pinned/PinnedQuery.ts +++ b/specification/specs/query_dsl/specialized/pinned/PinnedQuery.ts @@ -1,3 +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. + */ + class PinnedQuery extends QueryBase { ids?: Id[] organic?: QueryContainer diff --git a/specification/specs/query_dsl/specialized/rank_feature/RankFeatureFunction.ts b/specification/specs/query_dsl/specialized/rank_feature/RankFeatureFunction.ts index fac3de2b4b..5c46dd941a 100644 --- a/specification/specs/query_dsl/specialized/rank_feature/RankFeatureFunction.ts +++ b/specification/specs/query_dsl/specialized/rank_feature/RankFeatureFunction.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class RankFeatureFunction {} diff --git a/specification/specs/query_dsl/specialized/rank_feature/RankFeatureQuery.ts b/specification/specs/query_dsl/specialized/rank_feature/RankFeatureQuery.ts index 273a37472c..b66b93323a 100644 --- a/specification/specs/query_dsl/specialized/rank_feature/RankFeatureQuery.ts +++ b/specification/specs/query_dsl/specialized/rank_feature/RankFeatureQuery.ts @@ -1,3 +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. + */ + @class_serializer('RankFeatureQueryFormatter') class RankFeatureQuery extends QueryBase { function?: RankFeatureFunction diff --git a/specification/specs/query_dsl/specialized/script/ScriptQuery.ts b/specification/specs/query_dsl/specialized/script/ScriptQuery.ts index 0d268b498d..edca712ff7 100644 --- a/specification/specs/query_dsl/specialized/script/ScriptQuery.ts +++ b/specification/specs/query_dsl/specialized/script/ScriptQuery.ts @@ -1,3 +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. + */ + class ScriptQuery extends QueryBase { script?: Script } diff --git a/specification/specs/query_dsl/specialized/script_score/ScriptScoreQuery.ts b/specification/specs/query_dsl/specialized/script_score/ScriptScoreQuery.ts index fd56ab8308..584892fd14 100644 --- a/specification/specs/query_dsl/specialized/script_score/ScriptScoreQuery.ts +++ b/specification/specs/query_dsl/specialized/script_score/ScriptScoreQuery.ts @@ -1,3 +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. + */ + class ScriptScoreQuery extends QueryBase { query?: QueryContainer script?: Script diff --git a/specification/specs/query_dsl/specialized/shape/ShapeQuery.ts b/specification/specs/query_dsl/specialized/shape/ShapeQuery.ts index 5269534e5f..eba2edcaad 100644 --- a/specification/specs/query_dsl/specialized/shape/ShapeQuery.ts +++ b/specification/specs/query_dsl/specialized/shape/ShapeQuery.ts @@ -1,3 +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. + */ + @class_serializer('CompositeFormatter`3') class ShapeQuery extends QueryBase { ignore_unmapped?: boolean diff --git a/specification/specs/query_dsl/term_level/exists/ExistsQuery.ts b/specification/specs/query_dsl/term_level/exists/ExistsQuery.ts index 187c332811..26b08b9863 100644 --- a/specification/specs/query_dsl/term_level/exists/ExistsQuery.ts +++ b/specification/specs/query_dsl/term_level/exists/ExistsQuery.ts @@ -1,3 +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. + */ + class ExistsQuery extends QueryBase { field?: Field } diff --git a/specification/specs/query_dsl/term_level/fuzzy/FuzzyQuery.ts b/specification/specs/query_dsl/term_level/fuzzy/FuzzyQuery.ts index 7c63ae6fc7..f847f1f889 100644 --- a/specification/specs/query_dsl/term_level/fuzzy/FuzzyQuery.ts +++ b/specification/specs/query_dsl/term_level/fuzzy/FuzzyQuery.ts @@ -1,3 +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. + */ + @class_serializer('FuzzyQueryFormatter') class FuzzyQuery extends QueryBase { max_expansions?: integer diff --git a/specification/specs/query_dsl/term_level/ids/IdsQuery.ts b/specification/specs/query_dsl/term_level/ids/IdsQuery.ts index fd033d42a6..c676b8d832 100644 --- a/specification/specs/query_dsl/term_level/ids/IdsQuery.ts +++ b/specification/specs/query_dsl/term_level/ids/IdsQuery.ts @@ -1,3 +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. + */ + class IdsQuery extends QueryBase { values?: Id[] } diff --git a/specification/specs/query_dsl/term_level/prefix/PrefixQuery.ts b/specification/specs/query_dsl/term_level/prefix/PrefixQuery.ts index ed064d05e2..1042bd410d 100644 --- a/specification/specs/query_dsl/term_level/prefix/PrefixQuery.ts +++ b/specification/specs/query_dsl/term_level/prefix/PrefixQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class PrefixQuery extends QueryBase { rewrite?: MultiTermQueryRewrite diff --git a/specification/specs/query_dsl/term_level/range/RangeQuery.ts b/specification/specs/query_dsl/term_level/range/RangeQuery.ts index 3d7f91dd79..0966cf1d3f 100644 --- a/specification/specs/query_dsl/term_level/range/RangeQuery.ts +++ b/specification/specs/query_dsl/term_level/range/RangeQuery.ts @@ -1,3 +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. + */ + @class_serializer('RangeQueryFormatter') class RangeQuery extends QueryBase { gt?: double | DateMath diff --git a/specification/specs/query_dsl/term_level/range/RangeRelation.ts b/specification/specs/query_dsl/term_level/range/RangeRelation.ts index 43b503370e..993aea4547 100644 --- a/specification/specs/query_dsl/term_level/range/RangeRelation.ts +++ b/specification/specs/query_dsl/term_level/range/RangeRelation.ts @@ -1,3 +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. + */ + enum RangeRelation { within = 0, contains = 1, diff --git a/specification/specs/query_dsl/term_level/regexp/RegexpQuery.ts b/specification/specs/query_dsl/term_level/regexp/RegexpQuery.ts index 4c0d9da68f..fc08ab6ef7 100644 --- a/specification/specs/query_dsl/term_level/regexp/RegexpQuery.ts +++ b/specification/specs/query_dsl/term_level/regexp/RegexpQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class RegexpQuery extends QueryBase { flags?: string diff --git a/specification/specs/query_dsl/term_level/term/TermQuery.ts b/specification/specs/query_dsl/term_level/term/TermQuery.ts index 1a4bea2238..02a1aab14a 100644 --- a/specification/specs/query_dsl/term_level/term/TermQuery.ts +++ b/specification/specs/query_dsl/term_level/term/TermQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class TermQuery extends QueryBase { /** @prop_serializer SourceWriteFormatter`1 */ diff --git a/specification/specs/query_dsl/term_level/terms/TermsQuery.ts b/specification/specs/query_dsl/term_level/terms/TermsQuery.ts index d7159d6c12..b44237d692 100644 --- a/specification/specs/query_dsl/term_level/terms/TermsQuery.ts +++ b/specification/specs/query_dsl/term_level/terms/TermsQuery.ts @@ -1,3 +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. + */ + @class_serializer('TermsQueryFormatter') class TermsQuery extends QueryBase { terms?: string[] diff --git a/specification/specs/query_dsl/term_level/terms_set/TermsSetQuery.ts b/specification/specs/query_dsl/term_level/terms_set/TermsSetQuery.ts index 2da7b7c16c..2422682259 100644 --- a/specification/specs/query_dsl/term_level/terms_set/TermsSetQuery.ts +++ b/specification/specs/query_dsl/term_level/terms_set/TermsSetQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class TermsSetQuery extends QueryBase { minimum_should_match_field?: Field diff --git a/specification/specs/query_dsl/term_level/type/TypeQuery.ts b/specification/specs/query_dsl/term_level/type/TypeQuery.ts index f23319980a..e7147a6dae 100644 --- a/specification/specs/query_dsl/term_level/type/TypeQuery.ts +++ b/specification/specs/query_dsl/term_level/type/TypeQuery.ts @@ -1,3 +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. + */ + class TypeQuery extends QueryBase { value: string } diff --git a/specification/specs/query_dsl/term_level/wildcard/WildcardQuery.ts b/specification/specs/query_dsl/term_level/wildcard/WildcardQuery.ts index 54adf6c742..bea8bd9845 100644 --- a/specification/specs/query_dsl/term_level/wildcard/WildcardQuery.ts +++ b/specification/specs/query_dsl/term_level/wildcard/WildcardQuery.ts @@ -1,3 +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. + */ + @class_serializer('FieldNameQueryFormatter`2') class WildcardQuery extends QueryBase { rewrite?: MultiTermQueryRewrite diff --git a/specification/specs/query_dsl/visitor/VisitorScope.ts b/specification/specs/query_dsl/visitor/VisitorScope.ts index 5254b5839c..d1a64bd5eb 100644 --- a/specification/specs/query_dsl/visitor/VisitorScope.ts +++ b/specification/specs/query_dsl/visitor/VisitorScope.ts @@ -1,3 +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. + */ + enum VisitorScope { Unknown = 0, Query = 1, diff --git a/specification/specs/search/TypedSearchRequest.ts b/specification/specs/search/TypedSearchRequest.ts index a17d7f662c..28616f9956 100644 --- a/specification/specs/search/TypedSearchRequest.ts +++ b/specification/specs/search/TypedSearchRequest.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class TypedSearchRequest {} diff --git a/specification/specs/search/count/CountRequest.ts b/specification/specs/search/count/CountRequest.ts index 91f3ee40dd..9f6196d21b 100644 --- a/specification/specs/search/count/CountRequest.ts +++ b/specification/specs/search/count/CountRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('count') class CountRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/search/count/CountResponse.ts b/specification/specs/search/count/CountResponse.ts index 4348132ae6..89ebc67a81 100644 --- a/specification/specs/search/count/CountResponse.ts +++ b/specification/specs/search/count/CountResponse.ts @@ -1,3 +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. + */ + class CountResponse extends ResponseBase { count: long _shards: ShardStatistics diff --git a/specification/specs/search/explain/ExplainRequest.ts b/specification/specs/search/explain/ExplainRequest.ts index aad16cb334..961f84d458 100644 --- a/specification/specs/search/explain/ExplainRequest.ts +++ b/specification/specs/search/explain/ExplainRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('explain') class ExplainRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/search/explain/ExplainResponse.ts b/specification/specs/search/explain/ExplainResponse.ts index e47875dcb4..d824377094 100644 --- a/specification/specs/search/explain/ExplainResponse.ts +++ b/specification/specs/search/explain/ExplainResponse.ts @@ -1,3 +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. + */ + class ExplainResponse extends ResponseBase { explanation: ExplanationDetail get: InlineGet diff --git a/specification/specs/search/explain/Explanation.ts b/specification/specs/search/explain/Explanation.ts index e32d418968..8a8d5f7913 100644 --- a/specification/specs/search/explain/Explanation.ts +++ b/specification/specs/search/explain/Explanation.ts @@ -1,3 +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. + */ + class Explanation { description: string details: ExplanationDetail[] diff --git a/specification/specs/search/explain/ExplanationDetail.ts b/specification/specs/search/explain/ExplanationDetail.ts index 4e336b9e02..a98ad8ec19 100644 --- a/specification/specs/search/explain/ExplanationDetail.ts +++ b/specification/specs/search/explain/ExplanationDetail.ts @@ -1,3 +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. + */ + class ExplanationDetail { description: string details: ExplanationDetail[] diff --git a/specification/specs/search/explain/InlineGet.ts b/specification/specs/search/explain/InlineGet.ts index a7209c7b32..231bd5c22e 100644 --- a/specification/specs/search/explain/InlineGet.ts +++ b/specification/specs/search/explain/InlineGet.ts @@ -1,3 +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. + */ + class InlineGet { fields?: Dictionary found: boolean diff --git a/specification/specs/search/field_capabilities/FieldCapabilities.ts b/specification/specs/search/field_capabilities/FieldCapabilities.ts index db3c0d2611..3ff9eacd31 100644 --- a/specification/specs/search/field_capabilities/FieldCapabilities.ts +++ b/specification/specs/search/field_capabilities/FieldCapabilities.ts @@ -1,3 +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. + */ + class FieldCapabilities { aggregatable: boolean /** @prop_serializer IndicesFormatter */ diff --git a/specification/specs/search/field_capabilities/FieldCapabilitiesRequest.ts b/specification/specs/search/field_capabilities/FieldCapabilitiesRequest.ts index c1fc4fd5b8..99915364cf 100644 --- a/specification/specs/search/field_capabilities/FieldCapabilitiesRequest.ts +++ b/specification/specs/search/field_capabilities/FieldCapabilitiesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('field_caps') class FieldCapabilitiesRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/search/field_capabilities/FieldCapabilitiesResponse.ts b/specification/specs/search/field_capabilities/FieldCapabilitiesResponse.ts index c94239cd8c..b098f46e26 100644 --- a/specification/specs/search/field_capabilities/FieldCapabilitiesResponse.ts +++ b/specification/specs/search/field_capabilities/FieldCapabilitiesResponse.ts @@ -1,3 +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. + */ + class FieldCapabilitiesResponse extends ResponseBase { fields: Dictionary> } diff --git a/specification/specs/search/multi_search/MultiSearchRequest.ts b/specification/specs/search/multi_search/MultiSearchRequest.ts index 66f4fdd53f..54e356bf27 100644 --- a/specification/specs/search/multi_search/MultiSearchRequest.ts +++ b/specification/specs/search/multi_search/MultiSearchRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('msearch') @class_serializer('MultiSearchFormatter') class MultiSearchRequest extends RequestBase { diff --git a/specification/specs/search/multi_search/MultiSearchResponse.ts b/specification/specs/search/multi_search/MultiSearchResponse.ts index 0192293fe3..678213930b 100644 --- a/specification/specs/search/multi_search/MultiSearchResponse.ts +++ b/specification/specs/search/multi_search/MultiSearchResponse.ts @@ -1,3 +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. + */ + @class_serializer('MultiSearchResponseFormatter') class MultiSearchResponse extends ResponseBase { responses: SearchResponse[] diff --git a/specification/specs/search/multi_search_template/MultiSearchTemplateRequest.ts b/specification/specs/search/multi_search_template/MultiSearchTemplateRequest.ts index 227a903387..f3869ca98f 100644 --- a/specification/specs/search/multi_search_template/MultiSearchTemplateRequest.ts +++ b/specification/specs/search/multi_search_template/MultiSearchTemplateRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('msearch_template') @class_serializer('MultiSearchTemplateFormatter') class MultiSearchTemplateRequest extends RequestBase { diff --git a/specification/specs/search/scroll/clear_scroll/ClearScrollRequest.ts b/specification/specs/search/scroll/clear_scroll/ClearScrollRequest.ts index a300926d3b..0e8b2178cb 100644 --- a/specification/specs/search/scroll/clear_scroll/ClearScrollRequest.ts +++ b/specification/specs/search/scroll/clear_scroll/ClearScrollRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('clear_scroll') class ClearScrollRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/search/scroll/clear_scroll/ClearScrollResponse.ts b/specification/specs/search/scroll/clear_scroll/ClearScrollResponse.ts index b7a7e84f81..cfa1fa97cd 100644 --- a/specification/specs/search/scroll/clear_scroll/ClearScrollResponse.ts +++ b/specification/specs/search/scroll/clear_scroll/ClearScrollResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ClearScrollResponse extends ResponseBase {} diff --git a/specification/specs/search/scroll/scroll/ScrollRequest.ts b/specification/specs/search/scroll/scroll/ScrollRequest.ts index 0f6d64d4de..95889b6d89 100644 --- a/specification/specs/search/scroll/scroll/ScrollRequest.ts +++ b/specification/specs/search/scroll/scroll/ScrollRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('scroll') class ScrollRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/search/scroll/scroll/ScrollResponse.ts b/specification/specs/search/scroll/scroll/ScrollResponse.ts index b62155d6e6..524e4f30be 100644 --- a/specification/specs/search/scroll/scroll/ScrollResponse.ts +++ b/specification/specs/search/scroll/scroll/ScrollResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ScrollResponse extends SearchResponse {} diff --git a/specification/specs/search/scroll/scroll/SlicedScroll.ts b/specification/specs/search/scroll/scroll/SlicedScroll.ts index 9b0efc7bf6..8f705b3b6d 100644 --- a/specification/specs/search/scroll/scroll/SlicedScroll.ts +++ b/specification/specs/search/scroll/scroll/SlicedScroll.ts @@ -1,3 +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. + */ + class SlicedScroll { field: Field id: integer diff --git a/specification/specs/search/search/SearchRequest.ts b/specification/specs/search/search/SearchRequest.ts index 82afcd532c..db4a59e21b 100644 --- a/specification/specs/search/search/SearchRequest.ts +++ b/specification/specs/search/search/SearchRequest.ts @@ -1,3 +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. + */ + /** * @type_stability stable */ diff --git a/specification/specs/search/search/SearchResponse.ts b/specification/specs/search/search/SearchResponse.ts index 418c6c3c69..dc871a4213 100644 --- a/specification/specs/search/search/SearchResponse.ts +++ b/specification/specs/search/search/SearchResponse.ts @@ -1,3 +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. + */ + class SearchResponse extends ResponseBase { took: long timed_out: boolean diff --git a/specification/specs/search/search/collapsing/FieldCollapse.ts b/specification/specs/search/search/collapsing/FieldCollapse.ts index 4f99aa4754..0c276e745e 100644 --- a/specification/specs/search/search/collapsing/FieldCollapse.ts +++ b/specification/specs/search/search/collapsing/FieldCollapse.ts @@ -1,3 +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. + */ + class FieldCollapse { field: Field inner_hits?: InnerHits | InnerHits[] diff --git a/specification/specs/search/search/highlighting/BoundaryScanner.ts b/specification/specs/search/search/highlighting/BoundaryScanner.ts index 8c255e27e2..ba268fe64c 100644 --- a/specification/specs/search/search/highlighting/BoundaryScanner.ts +++ b/specification/specs/search/search/highlighting/BoundaryScanner.ts @@ -1,3 +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. + */ + enum BoundaryScanner { chars = 0, sentence = 1, diff --git a/specification/specs/search/search/highlighting/Highlight.ts b/specification/specs/search/search/highlighting/Highlight.ts index 5d1460df0e..2c8881dacd 100644 --- a/specification/specs/search/search/highlighting/Highlight.ts +++ b/specification/specs/search/search/highlighting/Highlight.ts @@ -1,3 +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. + */ + class Highlight { fields: Dictionary diff --git a/specification/specs/search/search/highlighting/HighlightField.ts b/specification/specs/search/search/highlighting/HighlightField.ts index 3f88481529..6b3cb45f2b 100644 --- a/specification/specs/search/search/highlighting/HighlightField.ts +++ b/specification/specs/search/search/highlighting/HighlightField.ts @@ -1,3 +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. + */ + class HighlightField { boundary_chars?: string boundary_max_scan?: integer diff --git a/specification/specs/search/search/highlighting/HighlighterEncoder.ts b/specification/specs/search/search/highlighting/HighlighterEncoder.ts index 2c871e1e95..5d0e251983 100644 --- a/specification/specs/search/search/highlighting/HighlighterEncoder.ts +++ b/specification/specs/search/search/highlighting/HighlighterEncoder.ts @@ -1,3 +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. + */ + enum HighlighterEncoder { default = 0, html = 1 diff --git a/specification/specs/search/search/highlighting/HighlighterFragmenter.ts b/specification/specs/search/search/highlighting/HighlighterFragmenter.ts index 15c9725477..dd495ce47f 100644 --- a/specification/specs/search/search/highlighting/HighlighterFragmenter.ts +++ b/specification/specs/search/search/highlighting/HighlighterFragmenter.ts @@ -1,3 +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. + */ + enum HighlighterFragmenter { simple = 0, span = 1 diff --git a/specification/specs/search/search/highlighting/HighlighterOrder.ts b/specification/specs/search/search/highlighting/HighlighterOrder.ts index d901a25292..f3680aade7 100644 --- a/specification/specs/search/search/highlighting/HighlighterOrder.ts +++ b/specification/specs/search/search/highlighting/HighlighterOrder.ts @@ -1,3 +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. + */ + enum HighlighterOrder { score = 0 } diff --git a/specification/specs/search/search/highlighting/HighlighterTagsSchema.ts b/specification/specs/search/search/highlighting/HighlighterTagsSchema.ts index b5923ec708..81f3dc94d5 100644 --- a/specification/specs/search/search/highlighting/HighlighterTagsSchema.ts +++ b/specification/specs/search/search/highlighting/HighlighterTagsSchema.ts @@ -1,3 +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. + */ + enum HighlighterTagsSchema { styled = 0 } diff --git a/specification/specs/search/search/highlighting/HighlighterType.ts b/specification/specs/search/search/highlighting/HighlighterType.ts index 7269f3b503..91070dfcac 100644 --- a/specification/specs/search/search/highlighting/HighlighterType.ts +++ b/specification/specs/search/search/highlighting/HighlighterType.ts @@ -1,3 +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. + */ + enum HighlighterType { plain = 0, fvh = 1, diff --git a/specification/specs/search/search/hits/Hit.ts b/specification/specs/search/search/hits/Hit.ts index 22b06f366a..4cc191fd0c 100644 --- a/specification/specs/search/search/hits/Hit.ts +++ b/specification/specs/search/search/hits/Hit.ts @@ -1,3 +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. + */ + class Hit { _index: IndexName _id: Id diff --git a/specification/specs/search/search/hits/HitMetadata.ts b/specification/specs/search/search/hits/HitMetadata.ts index f164c2d7a6..463c66110d 100644 --- a/specification/specs/search/search/hits/HitMetadata.ts +++ b/specification/specs/search/search/hits/HitMetadata.ts @@ -1,3 +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. + */ + class HitMetadata { _id: string _index: string diff --git a/specification/specs/search/search/hits/HitsMetadata.ts b/specification/specs/search/search/hits/HitsMetadata.ts index 8b5afd19ec..012fc10c44 100644 --- a/specification/specs/search/search/hits/HitsMetadata.ts +++ b/specification/specs/search/search/hits/HitsMetadata.ts @@ -1,3 +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. + */ + class HitsMetadata { total: TotalHits | long hits: Hit[] diff --git a/specification/specs/search/search/hits/InnerHitsMetadata.ts b/specification/specs/search/search/hits/InnerHitsMetadata.ts index ba692696d8..e776123283 100644 --- a/specification/specs/search/search/hits/InnerHitsMetadata.ts +++ b/specification/specs/search/search/hits/InnerHitsMetadata.ts @@ -1,3 +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. + */ + class InnerHitsMetadata { total: TotalHits | long hits: Hit[] diff --git a/specification/specs/search/search/hits/InnerHitsResult.ts b/specification/specs/search/search/hits/InnerHitsResult.ts index 7f72d415a5..b4aad87018 100644 --- a/specification/specs/search/search/hits/InnerHitsResult.ts +++ b/specification/specs/search/search/hits/InnerHitsResult.ts @@ -1,3 +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. + */ + class InnerHitsResult { hits: InnerHitsMetadata } diff --git a/specification/specs/search/search/hits/NestedIdentity.ts b/specification/specs/search/search/hits/NestedIdentity.ts index 5870eb0ad5..5903b5e3b1 100644 --- a/specification/specs/search/search/hits/NestedIdentity.ts +++ b/specification/specs/search/search/hits/NestedIdentity.ts @@ -1,3 +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. + */ + class NestedIdentity { field: Field offset: integer diff --git a/specification/specs/search/search/hits/TotalHits.ts b/specification/specs/search/search/hits/TotalHits.ts index 0aa0b023af..5a5fdddb2d 100644 --- a/specification/specs/search/search/hits/TotalHits.ts +++ b/specification/specs/search/search/hits/TotalHits.ts @@ -1,3 +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. + */ + @class_serializer('TotalHitsFormatter') class TotalHits { relation: TotalHitsRelation diff --git a/specification/specs/search/search/hits/TotalHitsRelation.ts b/specification/specs/search/search/hits/TotalHitsRelation.ts index fb5dfaeacc..776ea1496a 100644 --- a/specification/specs/search/search/hits/TotalHitsRelation.ts +++ b/specification/specs/search/search/hits/TotalHitsRelation.ts @@ -1,3 +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. + */ + enum TotalHitsRelation { eq = 0, gte = 1 diff --git a/specification/specs/search/search/inner_hits/InnerHits.ts b/specification/specs/search/search/inner_hits/InnerHits.ts index aeda360d05..576923d0af 100644 --- a/specification/specs/search/search/inner_hits/InnerHits.ts +++ b/specification/specs/search/search/inner_hits/InnerHits.ts @@ -1,3 +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. + */ + class InnerHits { name?: string size?: integer diff --git a/specification/specs/search/search/point_in_time/PointInTimeReference.ts b/specification/specs/search/search/point_in_time/PointInTimeReference.ts index adbea49b4f..c42357c290 100644 --- a/specification/specs/search/search/point_in_time/PointInTimeReference.ts +++ b/specification/specs/search/search/point_in_time/PointInTimeReference.ts @@ -1,3 +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. + */ + class PointInTimeReference { id: string keep_alive?: Time diff --git a/specification/specs/search/search/profile/AggregationBreakdown.ts b/specification/specs/search/search/profile/AggregationBreakdown.ts index 7205d46bfd..ce2a4d1b93 100644 --- a/specification/specs/search/search/profile/AggregationBreakdown.ts +++ b/specification/specs/search/search/profile/AggregationBreakdown.ts @@ -1,3 +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. + */ + class AggregationBreakdown { build_aggregation: long build_aggregation_count: long diff --git a/specification/specs/search/search/profile/AggregationProfile.ts b/specification/specs/search/search/profile/AggregationProfile.ts index 5e858287c7..645fc568a7 100644 --- a/specification/specs/search/search/profile/AggregationProfile.ts +++ b/specification/specs/search/search/profile/AggregationProfile.ts @@ -1,3 +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. + */ + class AggregationProfileDebug {} class AggregationProfile { breakdown: AggregationBreakdown diff --git a/specification/specs/search/search/profile/Collector.ts b/specification/specs/search/search/profile/Collector.ts index 640fbec661..8c8fef1510 100644 --- a/specification/specs/search/search/profile/Collector.ts +++ b/specification/specs/search/search/profile/Collector.ts @@ -1,3 +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. + */ + class Collector { name: string reason: string diff --git a/specification/specs/search/search/profile/Profile.ts b/specification/specs/search/search/profile/Profile.ts index 25fc03c504..878831b147 100644 --- a/specification/specs/search/search/profile/Profile.ts +++ b/specification/specs/search/search/profile/Profile.ts @@ -1,3 +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. + */ + class Profile { shards: ShardProfile[] } diff --git a/specification/specs/search/search/profile/QueryBreakdown.ts b/specification/specs/search/search/profile/QueryBreakdown.ts index b49510cd2b..d3a0c8e5d6 100644 --- a/specification/specs/search/search/profile/QueryBreakdown.ts +++ b/specification/specs/search/search/profile/QueryBreakdown.ts @@ -1,3 +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. + */ + class QueryBreakdown { advance: long advance_count: long diff --git a/specification/specs/search/search/profile/QueryProfile.ts b/specification/specs/search/search/profile/QueryProfile.ts index e4f4af7cb1..bce370a1ff 100644 --- a/specification/specs/search/search/profile/QueryProfile.ts +++ b/specification/specs/search/search/profile/QueryProfile.ts @@ -1,3 +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. + */ + class QueryProfile { breakdown: QueryBreakdown description: string diff --git a/specification/specs/search/search/profile/SearchProfile.ts b/specification/specs/search/search/profile/SearchProfile.ts index 5e4440aa49..e2751670c0 100644 --- a/specification/specs/search/search/profile/SearchProfile.ts +++ b/specification/specs/search/search/profile/SearchProfile.ts @@ -1,3 +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. + */ + class SearchProfile { collector: Collector[] query: QueryProfile[] diff --git a/specification/specs/search/search/profile/ShardProfile.ts b/specification/specs/search/search/profile/ShardProfile.ts index a5457a4ea2..1827159de3 100644 --- a/specification/specs/search/search/profile/ShardProfile.ts +++ b/specification/specs/search/search/profile/ShardProfile.ts @@ -1,3 +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. + */ + class ShardProfile { aggregations: AggregationProfile[] id: string diff --git a/specification/specs/search/search/rescoring/Rescore.ts b/specification/specs/search/search/rescoring/Rescore.ts index 2c0897134a..87ed13fb05 100644 --- a/specification/specs/search/search/rescoring/Rescore.ts +++ b/specification/specs/search/search/rescoring/Rescore.ts @@ -1,3 +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. + */ + class Rescore { query: RescoreQuery window_size: integer diff --git a/specification/specs/search/search/rescoring/RescoreQuery.ts b/specification/specs/search/search/rescoring/RescoreQuery.ts index 996e62c2ed..819cba621d 100644 --- a/specification/specs/search/search/rescoring/RescoreQuery.ts +++ b/specification/specs/search/search/rescoring/RescoreQuery.ts @@ -1,3 +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. + */ + class RescoreQuery { /** @alternate_name Query */ rescore_query: QueryContainer diff --git a/specification/specs/search/search/rescoring/ScoreMode.ts b/specification/specs/search/search/rescoring/ScoreMode.ts index 803302b264..b6bf8ae5d6 100644 --- a/specification/specs/search/search/rescoring/ScoreMode.ts +++ b/specification/specs/search/search/rescoring/ScoreMode.ts @@ -1,3 +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. + */ + enum ScoreMode { avg = 0, max = 1, diff --git a/specification/specs/search/search/sort/NestedSort.ts b/specification/specs/search/search/sort/NestedSort.ts index c21e449f96..a69003cf64 100644 --- a/specification/specs/search/search/sort/NestedSort.ts +++ b/specification/specs/search/search/sort/NestedSort.ts @@ -1,3 +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. + */ + class NestedSortValue { filter: QueryContainer max_children: integer diff --git a/specification/specs/search/search/sort/NumericType.ts b/specification/specs/search/search/sort/NumericType.ts index d0ffc908ee..e7da2bfa5c 100644 --- a/specification/specs/search/search/sort/NumericType.ts +++ b/specification/specs/search/search/sort/NumericType.ts @@ -1,3 +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. + */ + enum NumericType { long = 0, double = 1, diff --git a/specification/specs/search/search/sort/Sort.ts b/specification/specs/search/search/sort/Sort.ts index 9f36deec3f..1ce88b9fb4 100644 --- a/specification/specs/search/search/sort/Sort.ts +++ b/specification/specs/search/search/sort/Sort.ts @@ -1,3 +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. + */ + @class_serializer('SortFormatter') class Sort { missing?: Missing diff --git a/specification/specs/search/search/sort/SortMode.ts b/specification/specs/search/search/sort/SortMode.ts index fb7c477bc3..a9c1de28b5 100644 --- a/specification/specs/search/search/sort/SortMode.ts +++ b/specification/specs/search/search/sort/SortMode.ts @@ -1,3 +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. + */ + enum SortMode { min = 0, max = 1, diff --git a/specification/specs/search/search/sort/SortOrder.ts b/specification/specs/search/search/sort/SortOrder.ts index 02fa70c0e3..98db3777cf 100644 --- a/specification/specs/search/search/sort/SortOrder.ts +++ b/specification/specs/search/search/sort/SortOrder.ts @@ -1,3 +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. + */ + enum SortOrder { asc = 0, desc = 1 diff --git a/specification/specs/search/search/sort/SortSpecialField.ts b/specification/specs/search/search/sort/SortSpecialField.ts index 4eaab8b7f1..ee31761819 100644 --- a/specification/specs/search/search/sort/SortSpecialField.ts +++ b/specification/specs/search/search/sort/SortSpecialField.ts @@ -1,3 +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. + */ + enum SortSpecialField { _score = 0, _doc = 1 diff --git a/specification/specs/search/search/source_filtering/SourceFilter.ts b/specification/specs/search/search/source_filtering/SourceFilter.ts index 9deaa4dfe9..aba2451afa 100644 --- a/specification/specs/search/search/source_filtering/SourceFilter.ts +++ b/specification/specs/search/search/source_filtering/SourceFilter.ts @@ -1,3 +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. + */ + @class_serializer('SourceFilterFormatter') class SourceFilter { excludes?: Fields diff --git a/specification/specs/search/search_shards/SearchNode.ts b/specification/specs/search/search_shards/SearchNode.ts index 1ee1fa980a..6ac0223465 100644 --- a/specification/specs/search/search_shards/SearchNode.ts +++ b/specification/specs/search/search_shards/SearchNode.ts @@ -1,3 +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. + */ + class SearchNode { name: string transport_address: string diff --git a/specification/specs/search/search_shards/SearchShard.ts b/specification/specs/search/search_shards/SearchShard.ts index 853867b5ad..e448a705f7 100644 --- a/specification/specs/search/search_shards/SearchShard.ts +++ b/specification/specs/search/search_shards/SearchShard.ts @@ -1,3 +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. + */ + class SearchShard { index: string node: string diff --git a/specification/specs/search/search_shards/SearchShardsRequest.ts b/specification/specs/search/search_shards/SearchShardsRequest.ts index 9efbdac78b..4c48d16dfe 100644 --- a/specification/specs/search/search_shards/SearchShardsRequest.ts +++ b/specification/specs/search/search_shards/SearchShardsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('search_shards') class SearchShardsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/search/search_shards/SearchShardsResponse.ts b/specification/specs/search/search_shards/SearchShardsResponse.ts index f583a58c53..b4a8ce40e9 100644 --- a/specification/specs/search/search_shards/SearchShardsResponse.ts +++ b/specification/specs/search/search_shards/SearchShardsResponse.ts @@ -1,3 +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. + */ + class SearchShardsResponse extends ResponseBase { nodes: Dictionary shards: SearchShard[][] diff --git a/specification/specs/search/search_template/SearchTemplateRequest.ts b/specification/specs/search/search_template/SearchTemplateRequest.ts index 51b28783e9..1458508bff 100644 --- a/specification/specs/search/search_template/SearchTemplateRequest.ts +++ b/specification/specs/search/search_template/SearchTemplateRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('search_template') class SearchTemplateRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/search/search_template/render_search_template/RenderSearchTemplateRequest.ts b/specification/specs/search/search_template/render_search_template/RenderSearchTemplateRequest.ts index ee71b1cd5d..010023c8c8 100644 --- a/specification/specs/search/search_template/render_search_template/RenderSearchTemplateRequest.ts +++ b/specification/specs/search/search_template/render_search_template/RenderSearchTemplateRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('render_search_template') class RenderSearchTemplateRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/search/search_template/render_search_template/RenderSearchTemplateResponse.ts b/specification/specs/search/search_template/render_search_template/RenderSearchTemplateResponse.ts index d6c4804e9e..0bac2836cc 100644 --- a/specification/specs/search/search_template/render_search_template/RenderSearchTemplateResponse.ts +++ b/specification/specs/search/search_template/render_search_template/RenderSearchTemplateResponse.ts @@ -1,3 +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. + */ + class RenderSearchTemplateResponse extends ResponseBase { template_output: LazyDocument } diff --git a/specification/specs/search/suggesters/Suggest.ts b/specification/specs/search/suggesters/Suggest.ts index 937dbf9bb9..bd05e999be 100644 --- a/specification/specs/search/suggesters/Suggest.ts +++ b/specification/specs/search/suggesters/Suggest.ts @@ -1,3 +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. + */ + class Suggest { length: integer offset: integer diff --git a/specification/specs/search/suggesters/SuggestBucket.ts b/specification/specs/search/suggesters/SuggestBucket.ts index 1354df4083..4b5c5095a9 100644 --- a/specification/specs/search/suggesters/SuggestBucket.ts +++ b/specification/specs/search/suggesters/SuggestBucket.ts @@ -1,3 +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. + */ + class SuggestBucket { completion: CompletionSuggester phrase: PhraseSuggester diff --git a/specification/specs/search/suggesters/SuggestDictionary.ts b/specification/specs/search/suggesters/SuggestDictionary.ts index d80f2db1cb..08c1dfa1d9 100644 --- a/specification/specs/search/suggesters/SuggestDictionary.ts +++ b/specification/specs/search/suggesters/SuggestDictionary.ts @@ -1,3 +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. + */ + @class_serializer('SuggestDictionaryFormatter`1') class SuggestDictionary { item: Suggest[] diff --git a/specification/specs/search/suggesters/SuggestOption.ts b/specification/specs/search/suggesters/SuggestOption.ts index c21eaeda17..25d48b6923 100644 --- a/specification/specs/search/suggesters/SuggestOption.ts +++ b/specification/specs/search/suggesters/SuggestOption.ts @@ -1,3 +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. + */ + class SuggestOption { collate_match: boolean contexts: Dictionary diff --git a/specification/specs/search/suggesters/Suggester.ts b/specification/specs/search/suggesters/Suggester.ts index aa472a3582..3b002cec5a 100644 --- a/specification/specs/search/suggesters/Suggester.ts +++ b/specification/specs/search/suggesters/Suggester.ts @@ -1,3 +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. + */ + class Suggester { analyzer: string field: Field diff --git a/specification/specs/search/suggesters/completion_suggester/CompletionSuggester.ts b/specification/specs/search/suggesters/completion_suggester/CompletionSuggester.ts index 0e33e02954..17fb8e10c7 100644 --- a/specification/specs/search/suggesters/completion_suggester/CompletionSuggester.ts +++ b/specification/specs/search/suggesters/completion_suggester/CompletionSuggester.ts @@ -1,3 +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. + */ + class CompletionSuggester { contexts: Dictionary fuzzy: SuggestFuzziness diff --git a/specification/specs/search/suggesters/completion_suggester/SuggestFuzziness.ts b/specification/specs/search/suggesters/completion_suggester/SuggestFuzziness.ts index b4bda12de4..657c43c7ab 100644 --- a/specification/specs/search/suggesters/completion_suggester/SuggestFuzziness.ts +++ b/specification/specs/search/suggesters/completion_suggester/SuggestFuzziness.ts @@ -1,3 +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. + */ + class SuggestFuzziness { fuzziness: Fuzziness min_length: integer diff --git a/specification/specs/search/suggesters/context_suggester/Context.ts b/specification/specs/search/suggesters/context_suggester/Context.ts index ac2599b2cc..aff7a3ff5c 100644 --- a/specification/specs/search/suggesters/context_suggester/Context.ts +++ b/specification/specs/search/suggesters/context_suggester/Context.ts @@ -1,3 +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. + */ + /** * Text that we want similar documents for or a lookup to a document's field for the text. * @url https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html#_document_input_parameters diff --git a/specification/specs/search/suggesters/context_suggester/SuggestContextQuery.ts b/specification/specs/search/suggesters/context_suggester/SuggestContextQuery.ts index 361ca2c279..a6fc054abb 100644 --- a/specification/specs/search/suggesters/context_suggester/SuggestContextQuery.ts +++ b/specification/specs/search/suggesters/context_suggester/SuggestContextQuery.ts @@ -1,3 +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. + */ + class SuggestContextQuery { boost: double context: Context diff --git a/specification/specs/search/suggesters/phrase_suggester/DirectGenerator.ts b/specification/specs/search/suggesters/phrase_suggester/DirectGenerator.ts index ef04bb29a0..a94c2fb0d2 100644 --- a/specification/specs/search/suggesters/phrase_suggester/DirectGenerator.ts +++ b/specification/specs/search/suggesters/phrase_suggester/DirectGenerator.ts @@ -1,3 +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. + */ + class DirectGenerator { field: Field max_edits: integer diff --git a/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestCollate.ts b/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestCollate.ts index a60ffe0ad9..ecc489d488 100644 --- a/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestCollate.ts +++ b/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestCollate.ts @@ -1,3 +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. + */ + class PhraseSuggestCollate { params: Dictionary prune: boolean diff --git a/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestCollateQuery.ts b/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestCollateQuery.ts index d606aa02fb..0f052536d8 100644 --- a/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestCollateQuery.ts +++ b/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestCollateQuery.ts @@ -1,3 +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. + */ + class PhraseSuggestCollateQuery { id: Id source: string diff --git a/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestHighlight.ts b/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestHighlight.ts index f48ef867f6..89618e24d9 100644 --- a/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestHighlight.ts +++ b/specification/specs/search/suggesters/phrase_suggester/PhraseSuggestHighlight.ts @@ -1,3 +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. + */ + class PhraseSuggestHighlight { post_tag: string pre_tag: string diff --git a/specification/specs/search/suggesters/phrase_suggester/PhraseSuggester.ts b/specification/specs/search/suggesters/phrase_suggester/PhraseSuggester.ts index 6b00425828..5973a1233f 100644 --- a/specification/specs/search/suggesters/phrase_suggester/PhraseSuggester.ts +++ b/specification/specs/search/suggesters/phrase_suggester/PhraseSuggester.ts @@ -1,3 +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. + */ + class PhraseSuggester { collate: PhraseSuggestCollate confidence: double diff --git a/specification/specs/search/suggesters/phrase_suggester/smoothing_model/LaplaceSmoothingModel.ts b/specification/specs/search/suggesters/phrase_suggester/smoothing_model/LaplaceSmoothingModel.ts index fc614702e9..ecf50e8a3b 100644 --- a/specification/specs/search/suggesters/phrase_suggester/smoothing_model/LaplaceSmoothingModel.ts +++ b/specification/specs/search/suggesters/phrase_suggester/smoothing_model/LaplaceSmoothingModel.ts @@ -1,3 +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. + */ + class LaplaceSmoothingModel { alpha: double } diff --git a/specification/specs/search/suggesters/phrase_suggester/smoothing_model/LinearInterpolationSmoothingModel.ts b/specification/specs/search/suggesters/phrase_suggester/smoothing_model/LinearInterpolationSmoothingModel.ts index 0a45f11cb8..0e115189b4 100644 --- a/specification/specs/search/suggesters/phrase_suggester/smoothing_model/LinearInterpolationSmoothingModel.ts +++ b/specification/specs/search/suggesters/phrase_suggester/smoothing_model/LinearInterpolationSmoothingModel.ts @@ -1,3 +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. + */ + class LinearInterpolationSmoothingModel { bigram_lambda: double trigram_lambda: double diff --git a/specification/specs/search/suggesters/phrase_suggester/smoothing_model/SmoothingModel.ts b/specification/specs/search/suggesters/phrase_suggester/smoothing_model/SmoothingModel.ts index cfc0dc6f63..e1c4555b35 100644 --- a/specification/specs/search/suggesters/phrase_suggester/smoothing_model/SmoothingModel.ts +++ b/specification/specs/search/suggesters/phrase_suggester/smoothing_model/SmoothingModel.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class SmoothingModel {} diff --git a/specification/specs/search/suggesters/phrase_suggester/smoothing_model/SmoothingModelContainer.ts b/specification/specs/search/suggesters/phrase_suggester/smoothing_model/SmoothingModelContainer.ts index 2db24dc3c8..21967b3b0d 100644 --- a/specification/specs/search/suggesters/phrase_suggester/smoothing_model/SmoothingModelContainer.ts +++ b/specification/specs/search/suggesters/phrase_suggester/smoothing_model/SmoothingModelContainer.ts @@ -1,3 +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. + */ + class SmoothingModelContainer { laplace: LaplaceSmoothingModel linear_interpolation: LinearInterpolationSmoothingModel diff --git a/specification/specs/search/suggesters/phrase_suggester/smoothing_model/StupidBackoffSmoothingModel.ts b/specification/specs/search/suggesters/phrase_suggester/smoothing_model/StupidBackoffSmoothingModel.ts index 703c3530f7..e3834bf27b 100644 --- a/specification/specs/search/suggesters/phrase_suggester/smoothing_model/StupidBackoffSmoothingModel.ts +++ b/specification/specs/search/suggesters/phrase_suggester/smoothing_model/StupidBackoffSmoothingModel.ts @@ -1,3 +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. + */ + class StupidBackoffSmoothingModel { discount: double } diff --git a/specification/specs/search/suggesters/term_suggester/StringDistance.ts b/specification/specs/search/suggesters/term_suggester/StringDistance.ts index 8d91f959fb..4c58fca5db 100644 --- a/specification/specs/search/suggesters/term_suggester/StringDistance.ts +++ b/specification/specs/search/suggesters/term_suggester/StringDistance.ts @@ -1,3 +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. + */ + enum StringDistance { internal = 0, damerau_levenshtein = 1, diff --git a/specification/specs/search/suggesters/term_suggester/SuggestSort.ts b/specification/specs/search/suggesters/term_suggester/SuggestSort.ts index 87e84f8cd7..7f5923ba23 100644 --- a/specification/specs/search/suggesters/term_suggester/SuggestSort.ts +++ b/specification/specs/search/suggesters/term_suggester/SuggestSort.ts @@ -1,3 +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. + */ + enum SuggestSort { score = 0, frequency = 1 diff --git a/specification/specs/search/suggesters/term_suggester/TermSuggester.ts b/specification/specs/search/suggesters/term_suggester/TermSuggester.ts index d9a4982373..a6e67822e1 100644 --- a/specification/specs/search/suggesters/term_suggester/TermSuggester.ts +++ b/specification/specs/search/suggesters/term_suggester/TermSuggester.ts @@ -1,3 +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. + */ + class TermSuggester { lowercase_terms: boolean max_edits: integer diff --git a/specification/specs/search/validate/ValidateQueryRequest.ts b/specification/specs/search/validate/ValidateQueryRequest.ts index 55ac4dc472..8bb6fc7f3a 100644 --- a/specification/specs/search/validate/ValidateQueryRequest.ts +++ b/specification/specs/search/validate/ValidateQueryRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('indices.validate_query') class ValidateQueryRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/search/validate/ValidateQueryResponse.ts b/specification/specs/search/validate/ValidateQueryResponse.ts index 31cb03d92f..c5aeaf594d 100644 --- a/specification/specs/search/validate/ValidateQueryResponse.ts +++ b/specification/specs/search/validate/ValidateQueryResponse.ts @@ -1,3 +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. + */ + class ValidateQueryResponse extends ResponseBase { explanations: ValidationExplanation[] _shards: ShardStatistics diff --git a/specification/specs/search/validate/ValidationExplanation.ts b/specification/specs/search/validate/ValidationExplanation.ts index ce7309a5f7..d1daa36a8a 100644 --- a/specification/specs/search/validate/ValidationExplanation.ts +++ b/specification/specs/search/validate/ValidationExplanation.ts @@ -1,3 +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. + */ + class ValidationExplanation { error: string explanation: string diff --git a/specification/specs/x_pack/async_search/AsyncSearch.ts b/specification/specs/x_pack/async_search/AsyncSearch.ts index 2ab3b9d862..17f94c6373 100644 --- a/specification/specs/x_pack/async_search/AsyncSearch.ts +++ b/specification/specs/x_pack/async_search/AsyncSearch.ts @@ -1,3 +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. + */ + class AsyncSearch { aggregations: Dictionary _clusters: ClusterStatistics diff --git a/specification/specs/x_pack/async_search/AsyncSearchResponseBase.ts b/specification/specs/x_pack/async_search/AsyncSearchResponseBase.ts index 4df31f362f..abc54774c2 100644 --- a/specification/specs/x_pack/async_search/AsyncSearchResponseBase.ts +++ b/specification/specs/x_pack/async_search/AsyncSearchResponseBase.ts @@ -1,3 +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. + */ + class AsyncSearchResponseBase extends ResponseBase { expiration_time: Date expiration_time_in_millis: long diff --git a/specification/specs/x_pack/async_search/delete/AsyncSearchDeleteRequest.ts b/specification/specs/x_pack/async_search/delete/AsyncSearchDeleteRequest.ts index 301941408b..5d9ffbd9b5 100644 --- a/specification/specs/x_pack/async_search/delete/AsyncSearchDeleteRequest.ts +++ b/specification/specs/x_pack/async_search/delete/AsyncSearchDeleteRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('async_search.delete') class AsyncSearchDeleteRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/async_search/delete/AsyncSearchDeleteResponse.ts b/specification/specs/x_pack/async_search/delete/AsyncSearchDeleteResponse.ts index 5ff3bfcccf..e7751f6d34 100644 --- a/specification/specs/x_pack/async_search/delete/AsyncSearchDeleteResponse.ts +++ b/specification/specs/x_pack/async_search/delete/AsyncSearchDeleteResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class AsyncSearchDeleteResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/async_search/get/AsyncSearchGetRequest.ts b/specification/specs/x_pack/async_search/get/AsyncSearchGetRequest.ts index ba02222c88..9a888ffb41 100644 --- a/specification/specs/x_pack/async_search/get/AsyncSearchGetRequest.ts +++ b/specification/specs/x_pack/async_search/get/AsyncSearchGetRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('async_search.get') class AsyncSearchGetRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/async_search/get/AsyncSearchGetResponse.ts b/specification/specs/x_pack/async_search/get/AsyncSearchGetResponse.ts index 745a0e1eda..4f2bc04744 100644 --- a/specification/specs/x_pack/async_search/get/AsyncSearchGetResponse.ts +++ b/specification/specs/x_pack/async_search/get/AsyncSearchGetResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class AsyncSearchGetResponse extends ResponseBase {} diff --git a/specification/specs/x_pack/async_search/submit/AsyncSearchSubmitRequest.ts b/specification/specs/x_pack/async_search/submit/AsyncSearchSubmitRequest.ts index fd2ceb5286..60b2f8b42e 100644 --- a/specification/specs/x_pack/async_search/submit/AsyncSearchSubmitRequest.ts +++ b/specification/specs/x_pack/async_search/submit/AsyncSearchSubmitRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('async_search.submit') class AsyncSearchSubmitRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/async_search/submit/AsyncSearchSubmitResponse.ts b/specification/specs/x_pack/async_search/submit/AsyncSearchSubmitResponse.ts index 3f99fef44c..adbf8b2c54 100644 --- a/specification/specs/x_pack/async_search/submit/AsyncSearchSubmitResponse.ts +++ b/specification/specs/x_pack/async_search/submit/AsyncSearchSubmitResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class AsyncSearchSubmitResponse extends ResponseBase {} diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/create_auto_follow_pattern/CreateAutoFollowPatternRequest.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/create_auto_follow_pattern/CreateAutoFollowPatternRequest.ts index 282f1f345a..6b205e15d1 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/create_auto_follow_pattern/CreateAutoFollowPatternRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/create_auto_follow_pattern/CreateAutoFollowPatternRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.put_auto_follow_pattern') class CreateAutoFollowPatternRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/create_auto_follow_pattern/CreateAutoFollowPatternResponse.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/create_auto_follow_pattern/CreateAutoFollowPatternResponse.ts index 04eae4cc8f..4d0daf6efd 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/create_auto_follow_pattern/CreateAutoFollowPatternResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/create_auto_follow_pattern/CreateAutoFollowPatternResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class CreateAutoFollowPatternResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts index 37756f3f62..2a2970f196 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.delete_auto_follow_pattern') class DeleteAutoFollowPatternRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts index ea9bb5c2e6..626cdc5a66 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteAutoFollowPatternResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/AutoFollowPattern.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/AutoFollowPattern.ts index 7055fc8bf3..746ea1ee2c 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/AutoFollowPattern.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/AutoFollowPattern.ts @@ -1,3 +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. + */ + class AutoFollowPattern { follow_index_pattern: string leader_index_patterns: string[] diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts index d115d11e9c..e8dd62c865 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.get_auto_follow_pattern') class GetAutoFollowPatternRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts index d68cac1439..f409a2d200 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts @@ -1,3 +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. + */ + class GetAutoFollowPatternResponse extends ResponseBase { /** @prop_serializer AutoFollowPatternFormatter */ patterns: Dictionary diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts index f98bec8732..135761d849 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.pause_auto_follow_pattern') class PauseAutoFollowPatternRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts index 64674e0f8c..c2842626fe 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PauseAutoFollowPatternResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts index 53abc2ea68..d55d8e370b 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.resume_auto_follow_pattern') class ResumeAutoFollowPatternRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/auto_follow/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts b/specification/specs/x_pack/cross_cluster_replication/auto_follow/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts index 3da93cffb6..9a3703db12 100644 --- a/specification/specs/x_pack/cross_cluster_replication/auto_follow/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/auto_follow/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ResumeAutoFollowPatternResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/create_follow_index/CreateFollowIndexRequest.ts b/specification/specs/x_pack/cross_cluster_replication/follow/create_follow_index/CreateFollowIndexRequest.ts index aa3f0df94b..bb17e5aee6 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/create_follow_index/CreateFollowIndexRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/create_follow_index/CreateFollowIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.follow') class CreateFollowIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/create_follow_index/CreateFollowIndexResponse.ts b/specification/specs/x_pack/cross_cluster_replication/follow/create_follow_index/CreateFollowIndexResponse.ts index d3ff756892..c88601c508 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/create_follow_index/CreateFollowIndexResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/create_follow_index/CreateFollowIndexResponse.ts @@ -1,3 +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. + */ + class CreateFollowIndexResponse extends ResponseBase { follow_index_created: boolean follow_index_shards_acked: boolean diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexReadException.ts b/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexReadException.ts index 06f59c85d7..4b832b2f53 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexReadException.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexReadException.ts @@ -1,3 +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. + */ + class FollowIndexReadException { exception: ErrorCause from_seq_no: long diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexShardStats.ts b/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexShardStats.ts index c66ca51c23..ee84cb2478 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexShardStats.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexShardStats.ts @@ -1,3 +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. + */ + class FollowIndexShardStats { bytes_read: long failed_read_requests: long diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStats.ts b/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStats.ts index 21d0f4a032..4299f0dcfa 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStats.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStats.ts @@ -1,3 +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. + */ + class FollowIndexStats { index: string shards: FollowIndexShardStats[] diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStatsRequest.ts b/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStatsRequest.ts index 7881d55f58..eef65cd41f 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStatsRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStatsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.follow_stats') class FollowIndexStatsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStatsResponse.ts b/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStatsResponse.ts index 3b5ee90370..c133d011df 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStatsResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/follow_index_stats/FollowIndexStatsResponse.ts @@ -1,3 +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. + */ + class FollowIndexStatsResponse extends ResponseBase { indices: FollowIndexStats[] } diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowConfig.ts b/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowConfig.ts index 0362675cde..1508ec7d45 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowConfig.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowConfig.ts @@ -1,3 +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. + */ + class FollowConfig { max_outstanding_read_requests: integer max_outstanding_write_requests: integer diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowInfoRequest.ts b/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowInfoRequest.ts index d55f2c654f..6f67e190dd 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowInfoRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowInfoRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.follow_info') class FollowInfoRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowInfoResponse.ts b/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowInfoResponse.ts index 01d179fb38..1d001a5de8 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowInfoResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowInfoResponse.ts @@ -1,3 +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. + */ + class FollowInfoResponse extends ResponseBase { follower_indices: FollowerInfo[] } diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowerIndexStatus.ts b/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowerIndexStatus.ts index bdd4c13bdd..b0f594f5f6 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowerIndexStatus.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowerIndexStatus.ts @@ -1,3 +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. + */ + enum FollowerIndexStatus { active = 0, paused = 1 diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowerInfo.ts b/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowerInfo.ts index f687edd69f..4ecf2ab00c 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowerInfo.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/follow_info/FollowerInfo.ts @@ -1,3 +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. + */ + class FollowerInfo { follower_index: string leader_index: string diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/forget_follower_index/ForgetFollowerIndexRequest.ts b/specification/specs/x_pack/cross_cluster_replication/follow/forget_follower_index/ForgetFollowerIndexRequest.ts index deb345dabc..e3a7454f2a 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/forget_follower_index/ForgetFollowerIndexRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/forget_follower_index/ForgetFollowerIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.forget_follower') class ForgetFollowerIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/forget_follower_index/ForgetFollowerIndexResponse.ts b/specification/specs/x_pack/cross_cluster_replication/follow/forget_follower_index/ForgetFollowerIndexResponse.ts index ae03e1aaa0..b1d00339b7 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/forget_follower_index/ForgetFollowerIndexResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/forget_follower_index/ForgetFollowerIndexResponse.ts @@ -1,3 +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. + */ + class ForgetFollowerIndexResponse extends ResponseBase { _shards: ShardStatistics } diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/pause_follow_index/PauseFollowIndexRequest.ts b/specification/specs/x_pack/cross_cluster_replication/follow/pause_follow_index/PauseFollowIndexRequest.ts index b9e530143b..9f4ec58bbc 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/pause_follow_index/PauseFollowIndexRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/pause_follow_index/PauseFollowIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.pause_follow') class PauseFollowIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/pause_follow_index/PauseFollowIndexResponse.ts b/specification/specs/x_pack/cross_cluster_replication/follow/pause_follow_index/PauseFollowIndexResponse.ts index 5b43350e8a..101b8eef4b 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/pause_follow_index/PauseFollowIndexResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/pause_follow_index/PauseFollowIndexResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PauseFollowIndexResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/resume_follow_index/ResumeFollowIndexRequest.ts b/specification/specs/x_pack/cross_cluster_replication/follow/resume_follow_index/ResumeFollowIndexRequest.ts index 5afb2dfbb4..3c4c35a1aa 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/resume_follow_index/ResumeFollowIndexRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/resume_follow_index/ResumeFollowIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.resume_follow') class ResumeFollowIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/resume_follow_index/ResumeFollowIndexResponse.ts b/specification/specs/x_pack/cross_cluster_replication/follow/resume_follow_index/ResumeFollowIndexResponse.ts index 0ee556ede6..1c3964dbb0 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/resume_follow_index/ResumeFollowIndexResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/resume_follow_index/ResumeFollowIndexResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ResumeFollowIndexResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/unfollow_index/UnfollowIndexRequest.ts b/specification/specs/x_pack/cross_cluster_replication/follow/unfollow_index/UnfollowIndexRequest.ts index 0709c6477a..08bd29f126 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/unfollow_index/UnfollowIndexRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/unfollow_index/UnfollowIndexRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.unfollow') class UnfollowIndexRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/cross_cluster_replication/follow/unfollow_index/UnfollowIndexResponse.ts b/specification/specs/x_pack/cross_cluster_replication/follow/unfollow_index/UnfollowIndexResponse.ts index fa0aa2991e..4ec4b210a1 100644 --- a/specification/specs/x_pack/cross_cluster_replication/follow/unfollow_index/UnfollowIndexResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/follow/unfollow_index/UnfollowIndexResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class UnfollowIndexResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/cross_cluster_replication/stats/AutoFollowedCluster.ts b/specification/specs/x_pack/cross_cluster_replication/stats/AutoFollowedCluster.ts index ceb210dd8c..9bbdd47b1b 100644 --- a/specification/specs/x_pack/cross_cluster_replication/stats/AutoFollowedCluster.ts +++ b/specification/specs/x_pack/cross_cluster_replication/stats/AutoFollowedCluster.ts @@ -1,3 +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. + */ + class AutoFollowedCluster { cluster_name: string last_seen_metadata_version: long diff --git a/specification/specs/x_pack/cross_cluster_replication/stats/CcrAutoFollowStats.ts b/specification/specs/x_pack/cross_cluster_replication/stats/CcrAutoFollowStats.ts index a05aed22eb..7a1de9ccb9 100644 --- a/specification/specs/x_pack/cross_cluster_replication/stats/CcrAutoFollowStats.ts +++ b/specification/specs/x_pack/cross_cluster_replication/stats/CcrAutoFollowStats.ts @@ -1,3 +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. + */ + class CcrAutoFollowStats { auto_followed_clusters: AutoFollowedCluster[] number_of_failed_follow_indices: long diff --git a/specification/specs/x_pack/cross_cluster_replication/stats/CcrFollowStats.ts b/specification/specs/x_pack/cross_cluster_replication/stats/CcrFollowStats.ts index 359f14005d..fe080e42d1 100644 --- a/specification/specs/x_pack/cross_cluster_replication/stats/CcrFollowStats.ts +++ b/specification/specs/x_pack/cross_cluster_replication/stats/CcrFollowStats.ts @@ -1,3 +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. + */ + class CcrFollowStats { indices: FollowIndexStats[] } diff --git a/specification/specs/x_pack/cross_cluster_replication/stats/CcrStatsRequest.ts b/specification/specs/x_pack/cross_cluster_replication/stats/CcrStatsRequest.ts index c40c94a094..e36fa9b2fd 100644 --- a/specification/specs/x_pack/cross_cluster_replication/stats/CcrStatsRequest.ts +++ b/specification/specs/x_pack/cross_cluster_replication/stats/CcrStatsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ccr.stats') class CcrStatsRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/cross_cluster_replication/stats/CcrStatsResponse.ts b/specification/specs/x_pack/cross_cluster_replication/stats/CcrStatsResponse.ts index 14f47844e1..24885a492c 100644 --- a/specification/specs/x_pack/cross_cluster_replication/stats/CcrStatsResponse.ts +++ b/specification/specs/x_pack/cross_cluster_replication/stats/CcrStatsResponse.ts @@ -1,3 +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. + */ + class CcrStatsResponse extends ResponseBase { auto_follow_stats: CcrAutoFollowStats follow_stats: CcrFollowStats diff --git a/specification/specs/x_pack/enrich/EnrichPolicy.ts b/specification/specs/x_pack/enrich/EnrichPolicy.ts index ae86bda14a..d6fb782e67 100644 --- a/specification/specs/x_pack/enrich/EnrichPolicy.ts +++ b/specification/specs/x_pack/enrich/EnrichPolicy.ts @@ -1,3 +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. + */ + class EnrichPolicy { enrich_fields: Field[] /** @prop_serializer IndicesFormatter */ diff --git a/specification/specs/x_pack/enrich/NamedPolicy.ts b/specification/specs/x_pack/enrich/NamedPolicy.ts index 8ba91912bc..e08308570f 100644 --- a/specification/specs/x_pack/enrich/NamedPolicy.ts +++ b/specification/specs/x_pack/enrich/NamedPolicy.ts @@ -1,3 +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. + */ + class NamedPolicy extends EnrichPolicy { name: string } diff --git a/specification/specs/x_pack/enrich/NamedPolicyConfig.ts b/specification/specs/x_pack/enrich/NamedPolicyConfig.ts index 0f31b94de4..9d50758143 100644 --- a/specification/specs/x_pack/enrich/NamedPolicyConfig.ts +++ b/specification/specs/x_pack/enrich/NamedPolicyConfig.ts @@ -1,3 +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. + */ + class NamedPolicyConfig { geo_match: NamedPolicy match: NamedPolicy diff --git a/specification/specs/x_pack/enrich/NamedPolicyMetadata.ts b/specification/specs/x_pack/enrich/NamedPolicyMetadata.ts index 03a73219d8..23697aed51 100644 --- a/specification/specs/x_pack/enrich/NamedPolicyMetadata.ts +++ b/specification/specs/x_pack/enrich/NamedPolicyMetadata.ts @@ -1,3 +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. + */ + class NamedPolicyMetadata { config: NamedPolicyConfig } diff --git a/specification/specs/x_pack/enrich/delete_policy/DeleteEnrichPolicyRequest.ts b/specification/specs/x_pack/enrich/delete_policy/DeleteEnrichPolicyRequest.ts index 21a1aaeb7a..e5e6f69a77 100644 --- a/specification/specs/x_pack/enrich/delete_policy/DeleteEnrichPolicyRequest.ts +++ b/specification/specs/x_pack/enrich/delete_policy/DeleteEnrichPolicyRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('enrich.delete_policy') class DeleteEnrichPolicyRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/enrich/delete_policy/DeleteEnrichPolicyResponse.ts b/specification/specs/x_pack/enrich/delete_policy/DeleteEnrichPolicyResponse.ts index b285d5190d..ebd3b5bd7c 100644 --- a/specification/specs/x_pack/enrich/delete_policy/DeleteEnrichPolicyResponse.ts +++ b/specification/specs/x_pack/enrich/delete_policy/DeleteEnrichPolicyResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteEnrichPolicyResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/enrich/execute_policy/EnrichPolicyPhase.ts b/specification/specs/x_pack/enrich/execute_policy/EnrichPolicyPhase.ts index 62177ff14a..e113578f8f 100644 --- a/specification/specs/x_pack/enrich/execute_policy/EnrichPolicyPhase.ts +++ b/specification/specs/x_pack/enrich/execute_policy/EnrichPolicyPhase.ts @@ -1,3 +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. + */ + enum EnrichPolicyPhase { SCHEDULED = 0, RUNNING = 1, diff --git a/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts b/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts index aa44bcb1a5..ad0b75cbfe 100644 --- a/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts +++ b/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('enrich.execute_policy') class ExecuteEnrichPolicyRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts b/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts index a2108cb53a..49a2895022 100644 --- a/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts +++ b/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts @@ -1,3 +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. + */ + class ExecuteEnrichPolicyResponse extends ResponseBase { status: ExecuteEnrichPolicyStatus task_id: TaskId diff --git a/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyStatus.ts b/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyStatus.ts index 95e3e3ff9b..29e1dc05f4 100644 --- a/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyStatus.ts +++ b/specification/specs/x_pack/enrich/execute_policy/ExecuteEnrichPolicyStatus.ts @@ -1,3 +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. + */ + class ExecuteEnrichPolicyStatus { phase: EnrichPolicyPhase } diff --git a/specification/specs/x_pack/enrich/get_policy/GetEnrichPolicyRequest.ts b/specification/specs/x_pack/enrich/get_policy/GetEnrichPolicyRequest.ts index 2bee567d9f..37e62b5c9f 100644 --- a/specification/specs/x_pack/enrich/get_policy/GetEnrichPolicyRequest.ts +++ b/specification/specs/x_pack/enrich/get_policy/GetEnrichPolicyRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('enrich.get_policy') class GetEnrichPolicyRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/enrich/get_policy/GetEnrichPolicyResponse.ts b/specification/specs/x_pack/enrich/get_policy/GetEnrichPolicyResponse.ts index e7d4ab7df1..9d3166bba4 100644 --- a/specification/specs/x_pack/enrich/get_policy/GetEnrichPolicyResponse.ts +++ b/specification/specs/x_pack/enrich/get_policy/GetEnrichPolicyResponse.ts @@ -1,3 +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. + */ + class GetEnrichPolicyResponse extends ResponseBase { policies: NamedPolicyMetadata[] } diff --git a/specification/specs/x_pack/enrich/put_policy/PutEnrichPolicyRequest.ts b/specification/specs/x_pack/enrich/put_policy/PutEnrichPolicyRequest.ts index f4dbf9ccb2..46bfa5b473 100644 --- a/specification/specs/x_pack/enrich/put_policy/PutEnrichPolicyRequest.ts +++ b/specification/specs/x_pack/enrich/put_policy/PutEnrichPolicyRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('enrich.put_policy') class PutEnrichPolicyRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/enrich/put_policy/PutEnrichPolicyResponse.ts b/specification/specs/x_pack/enrich/put_policy/PutEnrichPolicyResponse.ts index 730ca86c97..b69fe53213 100644 --- a/specification/specs/x_pack/enrich/put_policy/PutEnrichPolicyResponse.ts +++ b/specification/specs/x_pack/enrich/put_policy/PutEnrichPolicyResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PutEnrichPolicyResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/enrich/stats/CoordinatorStats.ts b/specification/specs/x_pack/enrich/stats/CoordinatorStats.ts index 6bf47b900c..8e76113402 100644 --- a/specification/specs/x_pack/enrich/stats/CoordinatorStats.ts +++ b/specification/specs/x_pack/enrich/stats/CoordinatorStats.ts @@ -1,3 +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. + */ + class CoordinatorStats { executed_searches_total: long node_id: string diff --git a/specification/specs/x_pack/enrich/stats/EnrichStatsRequest.ts b/specification/specs/x_pack/enrich/stats/EnrichStatsRequest.ts index 83c733f038..b5ec8d2f34 100644 --- a/specification/specs/x_pack/enrich/stats/EnrichStatsRequest.ts +++ b/specification/specs/x_pack/enrich/stats/EnrichStatsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('enrich.stats') class EnrichStatsRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/enrich/stats/EnrichStatsResponse.ts b/specification/specs/x_pack/enrich/stats/EnrichStatsResponse.ts index fcae7d90fd..06ee044fdc 100644 --- a/specification/specs/x_pack/enrich/stats/EnrichStatsResponse.ts +++ b/specification/specs/x_pack/enrich/stats/EnrichStatsResponse.ts @@ -1,3 +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. + */ + class EnrichStatsResponse extends ResponseBase { coordinator_stats: CoordinatorStats[] executing_policies: ExecutingPolicy[] diff --git a/specification/specs/x_pack/enrich/stats/ExecutingPolicy.ts b/specification/specs/x_pack/enrich/stats/ExecutingPolicy.ts index be943f5f50..901ced7702 100644 --- a/specification/specs/x_pack/enrich/stats/ExecutingPolicy.ts +++ b/specification/specs/x_pack/enrich/stats/ExecutingPolicy.ts @@ -1,3 +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. + */ + class ExecutingPolicy { name: string task: TaskInfo diff --git a/specification/specs/x_pack/graph/explore/GraphExploreRequest.ts b/specification/specs/x_pack/graph/explore/GraphExploreRequest.ts index f7980b2982..fb302d0b6c 100644 --- a/specification/specs/x_pack/graph/explore/GraphExploreRequest.ts +++ b/specification/specs/x_pack/graph/explore/GraphExploreRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('graph.explore') class GraphExploreRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/graph/explore/GraphExploreResponse.ts b/specification/specs/x_pack/graph/explore/GraphExploreResponse.ts index b2d49e3506..55f305282f 100644 --- a/specification/specs/x_pack/graph/explore/GraphExploreResponse.ts +++ b/specification/specs/x_pack/graph/explore/GraphExploreResponse.ts @@ -1,3 +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. + */ + class GraphExploreResponse extends ResponseBase { connections: GraphConnection[] failures: ShardFailure[] diff --git a/specification/specs/x_pack/graph/explore/request/GraphExploreControls.ts b/specification/specs/x_pack/graph/explore/request/GraphExploreControls.ts index c60ed1e6f7..02fd24110e 100644 --- a/specification/specs/x_pack/graph/explore/request/GraphExploreControls.ts +++ b/specification/specs/x_pack/graph/explore/request/GraphExploreControls.ts @@ -1,3 +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. + */ + class GraphExploreControls { sample_diversity: SampleDiversity sample_size: integer diff --git a/specification/specs/x_pack/graph/explore/request/GraphVertexDefinition.ts b/specification/specs/x_pack/graph/explore/request/GraphVertexDefinition.ts index d5bd9ab429..c27299aac5 100644 --- a/specification/specs/x_pack/graph/explore/request/GraphVertexDefinition.ts +++ b/specification/specs/x_pack/graph/explore/request/GraphVertexDefinition.ts @@ -1,3 +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. + */ + class GraphVertexDefinition { exclude: string[] field: Field diff --git a/specification/specs/x_pack/graph/explore/request/GraphVertexInclude.ts b/specification/specs/x_pack/graph/explore/request/GraphVertexInclude.ts index 419e8ec255..69af096f00 100644 --- a/specification/specs/x_pack/graph/explore/request/GraphVertexInclude.ts +++ b/specification/specs/x_pack/graph/explore/request/GraphVertexInclude.ts @@ -1,3 +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. + */ + class GraphVertexInclude { boost: double term: string diff --git a/specification/specs/x_pack/graph/explore/request/Hop.ts b/specification/specs/x_pack/graph/explore/request/Hop.ts index 39c08cdd01..37c46d45df 100644 --- a/specification/specs/x_pack/graph/explore/request/Hop.ts +++ b/specification/specs/x_pack/graph/explore/request/Hop.ts @@ -1,3 +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. + */ + class Hop { connections: Hop query: QueryContainer diff --git a/specification/specs/x_pack/graph/explore/request/SampleDiversity.ts b/specification/specs/x_pack/graph/explore/request/SampleDiversity.ts index f5b5c9ca41..ecfffbca81 100644 --- a/specification/specs/x_pack/graph/explore/request/SampleDiversity.ts +++ b/specification/specs/x_pack/graph/explore/request/SampleDiversity.ts @@ -1,3 +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. + */ + class SampleDiversity { field: Field max_docs_per_value: integer diff --git a/specification/specs/x_pack/graph/explore/response/GraphConnection.ts b/specification/specs/x_pack/graph/explore/response/GraphConnection.ts index 1d4fa3449e..31eae13dfb 100644 --- a/specification/specs/x_pack/graph/explore/response/GraphConnection.ts +++ b/specification/specs/x_pack/graph/explore/response/GraphConnection.ts @@ -1,3 +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. + */ + class GraphConnection { doc_count: long source: long diff --git a/specification/specs/x_pack/graph/explore/response/GraphVertex.ts b/specification/specs/x_pack/graph/explore/response/GraphVertex.ts index c619436a49..a6840eb0b2 100644 --- a/specification/specs/x_pack/graph/explore/response/GraphVertex.ts +++ b/specification/specs/x_pack/graph/explore/response/GraphVertex.ts @@ -1,3 +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. + */ + class GraphVertex { depth: long field: string diff --git a/specification/specs/x_pack/ilm/Phase.ts b/specification/specs/x_pack/ilm/Phase.ts index ec2d661f9b..2a6e69d9b0 100644 --- a/specification/specs/x_pack/ilm/Phase.ts +++ b/specification/specs/x_pack/ilm/Phase.ts @@ -1,3 +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. + */ + class Phase { actions: Dictionary min_age: Time diff --git a/specification/specs/x_pack/ilm/Phases.ts b/specification/specs/x_pack/ilm/Phases.ts index cbecea1024..86b4c6f464 100644 --- a/specification/specs/x_pack/ilm/Phases.ts +++ b/specification/specs/x_pack/ilm/Phases.ts @@ -1,3 +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. + */ + class Phases { cold: Phase delete: Phase diff --git a/specification/specs/x_pack/ilm/Policy.ts b/specification/specs/x_pack/ilm/Policy.ts index 0d5f2cdf66..0e499db091 100644 --- a/specification/specs/x_pack/ilm/Policy.ts +++ b/specification/specs/x_pack/ilm/Policy.ts @@ -1,3 +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. + */ + class Policy { phases: Phases } diff --git a/specification/specs/x_pack/ilm/actions/LifecycleAction.ts b/specification/specs/x_pack/ilm/actions/LifecycleAction.ts index bc3addadd2..c4e8d4da71 100644 --- a/specification/specs/x_pack/ilm/actions/LifecycleAction.ts +++ b/specification/specs/x_pack/ilm/actions/LifecycleAction.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class LifecycleAction {} diff --git a/specification/specs/x_pack/ilm/delete_lifecycle/DeleteLifecycleRequest.ts b/specification/specs/x_pack/ilm/delete_lifecycle/DeleteLifecycleRequest.ts index 71b3160de5..044741e652 100644 --- a/specification/specs/x_pack/ilm/delete_lifecycle/DeleteLifecycleRequest.ts +++ b/specification/specs/x_pack/ilm/delete_lifecycle/DeleteLifecycleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ilm.delete_lifecycle') class DeleteLifecycleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/ilm/delete_lifecycle/DeleteLifecycleResponse.ts b/specification/specs/x_pack/ilm/delete_lifecycle/DeleteLifecycleResponse.ts index fe8f831136..1500d6510a 100644 --- a/specification/specs/x_pack/ilm/delete_lifecycle/DeleteLifecycleResponse.ts +++ b/specification/specs/x_pack/ilm/delete_lifecycle/DeleteLifecycleResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteLifecycleResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/ilm/explain_lifecycle/ExplainLifecycleRequest.ts b/specification/specs/x_pack/ilm/explain_lifecycle/ExplainLifecycleRequest.ts index b138600fa3..161f890124 100644 --- a/specification/specs/x_pack/ilm/explain_lifecycle/ExplainLifecycleRequest.ts +++ b/specification/specs/x_pack/ilm/explain_lifecycle/ExplainLifecycleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ilm.explain_lifecycle') class ExplainLifecycleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/ilm/explain_lifecycle/ExplainLifecycleResponse.ts b/specification/specs/x_pack/ilm/explain_lifecycle/ExplainLifecycleResponse.ts index b918f03d06..509eafcf17 100644 --- a/specification/specs/x_pack/ilm/explain_lifecycle/ExplainLifecycleResponse.ts +++ b/specification/specs/x_pack/ilm/explain_lifecycle/ExplainLifecycleResponse.ts @@ -1,3 +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. + */ + class ExplainLifecycleResponse extends ResponseBase { indices: Dictionary } diff --git a/specification/specs/x_pack/ilm/explain_lifecycle/LifecycleExplain.ts b/specification/specs/x_pack/ilm/explain_lifecycle/LifecycleExplain.ts index 3f9711b644..b6edbb9e55 100644 --- a/specification/specs/x_pack/ilm/explain_lifecycle/LifecycleExplain.ts +++ b/specification/specs/x_pack/ilm/explain_lifecycle/LifecycleExplain.ts @@ -1,3 +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. + */ + class LifecycleExplain { action: string /** @prop_serializer DateTimeOffsetEpochMillisecondsFormatter */ diff --git a/specification/specs/x_pack/ilm/get_lifecycle/GetLifecycleRequest.ts b/specification/specs/x_pack/ilm/get_lifecycle/GetLifecycleRequest.ts index 57153eda6c..ba01c63a39 100644 --- a/specification/specs/x_pack/ilm/get_lifecycle/GetLifecycleRequest.ts +++ b/specification/specs/x_pack/ilm/get_lifecycle/GetLifecycleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ilm.get_lifecycle') class GetLifecycleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/ilm/get_lifecycle/GetLifecycleResponse.ts b/specification/specs/x_pack/ilm/get_lifecycle/GetLifecycleResponse.ts index d9fe53f0ab..6ba102296c 100644 --- a/specification/specs/x_pack/ilm/get_lifecycle/GetLifecycleResponse.ts +++ b/specification/specs/x_pack/ilm/get_lifecycle/GetLifecycleResponse.ts @@ -1,3 +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. + */ + class GetLifecycleResponse extends DictionaryResponseBase< string, LifecyclePolicy diff --git a/specification/specs/x_pack/ilm/get_lifecycle/LifecyclePolicy.ts b/specification/specs/x_pack/ilm/get_lifecycle/LifecyclePolicy.ts index c72c9c1d37..e4a7f15ab9 100644 --- a/specification/specs/x_pack/ilm/get_lifecycle/LifecyclePolicy.ts +++ b/specification/specs/x_pack/ilm/get_lifecycle/LifecyclePolicy.ts @@ -1,3 +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. + */ + class LifecyclePolicy { /** @prop_serializer DateTimeOffsetEpochMillisecondsFormatter */ modified_date: Date diff --git a/specification/specs/x_pack/ilm/get_status/GetIlmStatusRequest.ts b/specification/specs/x_pack/ilm/get_status/GetIlmStatusRequest.ts index 41d98dab24..8210e7cfdb 100644 --- a/specification/specs/x_pack/ilm/get_status/GetIlmStatusRequest.ts +++ b/specification/specs/x_pack/ilm/get_status/GetIlmStatusRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ilm.get_status') class GetIlmStatusRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/ilm/get_status/GetIlmStatusResponse.ts b/specification/specs/x_pack/ilm/get_status/GetIlmStatusResponse.ts index b58207fbcf..c09abccae0 100644 --- a/specification/specs/x_pack/ilm/get_status/GetIlmStatusResponse.ts +++ b/specification/specs/x_pack/ilm/get_status/GetIlmStatusResponse.ts @@ -1,3 +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. + */ + class GetIlmStatusResponse extends ResponseBase { operation_mode: LifecycleOperationMode } diff --git a/specification/specs/x_pack/ilm/get_status/LifecycleOperationMode.ts b/specification/specs/x_pack/ilm/get_status/LifecycleOperationMode.ts index e21e0078c2..0769b142e8 100644 --- a/specification/specs/x_pack/ilm/get_status/LifecycleOperationMode.ts +++ b/specification/specs/x_pack/ilm/get_status/LifecycleOperationMode.ts @@ -1,3 +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. + */ + enum LifecycleOperationMode { RUNNING = 0, STOPPING = 1, diff --git a/specification/specs/x_pack/ilm/move_to_step/MoveToStepRequest.ts b/specification/specs/x_pack/ilm/move_to_step/MoveToStepRequest.ts index 79db8ce8c2..e6e942b824 100644 --- a/specification/specs/x_pack/ilm/move_to_step/MoveToStepRequest.ts +++ b/specification/specs/x_pack/ilm/move_to_step/MoveToStepRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ilm.move_to_step') class MoveToStepRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/ilm/move_to_step/MoveToStepResponse.ts b/specification/specs/x_pack/ilm/move_to_step/MoveToStepResponse.ts index a8068e7926..4f19685d9b 100644 --- a/specification/specs/x_pack/ilm/move_to_step/MoveToStepResponse.ts +++ b/specification/specs/x_pack/ilm/move_to_step/MoveToStepResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class MoveToStepResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/ilm/move_to_step/StepKey.ts b/specification/specs/x_pack/ilm/move_to_step/StepKey.ts index 54070ea386..2cb11f7c71 100644 --- a/specification/specs/x_pack/ilm/move_to_step/StepKey.ts +++ b/specification/specs/x_pack/ilm/move_to_step/StepKey.ts @@ -1,3 +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. + */ + class StepKey { action: string name: string diff --git a/specification/specs/x_pack/ilm/put_lifecycle/PutLifecycleRequest.ts b/specification/specs/x_pack/ilm/put_lifecycle/PutLifecycleRequest.ts index 138fa6cf15..6ddad02e36 100644 --- a/specification/specs/x_pack/ilm/put_lifecycle/PutLifecycleRequest.ts +++ b/specification/specs/x_pack/ilm/put_lifecycle/PutLifecycleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ilm.put_lifecycle') class PutLifecycleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/ilm/put_lifecycle/PutLifecycleResponse.ts b/specification/specs/x_pack/ilm/put_lifecycle/PutLifecycleResponse.ts index 5d0ce084c9..54aa189bb6 100644 --- a/specification/specs/x_pack/ilm/put_lifecycle/PutLifecycleResponse.ts +++ b/specification/specs/x_pack/ilm/put_lifecycle/PutLifecycleResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PutLifecycleResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/ilm/remove_policy/RemovePolicyRequest.ts b/specification/specs/x_pack/ilm/remove_policy/RemovePolicyRequest.ts index 45fde6201e..e0e2cf042b 100644 --- a/specification/specs/x_pack/ilm/remove_policy/RemovePolicyRequest.ts +++ b/specification/specs/x_pack/ilm/remove_policy/RemovePolicyRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ilm.remove_policy') class RemovePolicyRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/ilm/remove_policy/RemovePolicyResponse.ts b/specification/specs/x_pack/ilm/remove_policy/RemovePolicyResponse.ts index 487a6b9119..536a23b0ac 100644 --- a/specification/specs/x_pack/ilm/remove_policy/RemovePolicyResponse.ts +++ b/specification/specs/x_pack/ilm/remove_policy/RemovePolicyResponse.ts @@ -1,3 +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. + */ + class RemovePolicyResponse extends ResponseBase { failed_indexes: string[] has_failures: boolean diff --git a/specification/specs/x_pack/ilm/retry/RetryIlmRequest.ts b/specification/specs/x_pack/ilm/retry/RetryIlmRequest.ts index 57ceab5215..c88fa70914 100644 --- a/specification/specs/x_pack/ilm/retry/RetryIlmRequest.ts +++ b/specification/specs/x_pack/ilm/retry/RetryIlmRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ilm.retry') class RetryIlmRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/ilm/retry/RetryIlmResponse.ts b/specification/specs/x_pack/ilm/retry/RetryIlmResponse.ts index afb384a4ce..35c144d68b 100644 --- a/specification/specs/x_pack/ilm/retry/RetryIlmResponse.ts +++ b/specification/specs/x_pack/ilm/retry/RetryIlmResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class RetryIlmResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/ilm/start/StartIlmRequest.ts b/specification/specs/x_pack/ilm/start/StartIlmRequest.ts index 3fe8d2c1a8..6e00d12124 100644 --- a/specification/specs/x_pack/ilm/start/StartIlmRequest.ts +++ b/specification/specs/x_pack/ilm/start/StartIlmRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ilm.start') class StartIlmRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/ilm/start/StartIlmResponse.ts b/specification/specs/x_pack/ilm/start/StartIlmResponse.ts index d9001419c2..956473aa44 100644 --- a/specification/specs/x_pack/ilm/start/StartIlmResponse.ts +++ b/specification/specs/x_pack/ilm/start/StartIlmResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class StartIlmResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/ilm/stop/StopIlmRequest.ts b/specification/specs/x_pack/ilm/stop/StopIlmRequest.ts index 21bec8f0a9..bc143ef615 100644 --- a/specification/specs/x_pack/ilm/stop/StopIlmRequest.ts +++ b/specification/specs/x_pack/ilm/stop/StopIlmRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ilm.stop') class StopIlmRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/ilm/stop/StopIlmResponse.ts b/specification/specs/x_pack/ilm/stop/StopIlmResponse.ts index 7b225bb39f..2caaffc46f 100644 --- a/specification/specs/x_pack/ilm/stop/StopIlmResponse.ts +++ b/specification/specs/x_pack/ilm/stop/StopIlmResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class StopIlmResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/info/x_pack_info/MinimalLicenseInformation.ts b/specification/specs/x_pack/info/x_pack_info/MinimalLicenseInformation.ts index 642ebae7da..177c7481c1 100644 --- a/specification/specs/x_pack/info/x_pack_info/MinimalLicenseInformation.ts +++ b/specification/specs/x_pack/info/x_pack_info/MinimalLicenseInformation.ts @@ -1,3 +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. + */ + class MinimalLicenseInformation { expiry_date_in_millis: long mode: LicenseType diff --git a/specification/specs/x_pack/info/x_pack_info/NativeCodeInformation.ts b/specification/specs/x_pack/info/x_pack_info/NativeCodeInformation.ts index 9212e9a92f..ff94b9765c 100644 --- a/specification/specs/x_pack/info/x_pack_info/NativeCodeInformation.ts +++ b/specification/specs/x_pack/info/x_pack_info/NativeCodeInformation.ts @@ -1,3 +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. + */ + class NativeCodeInformation { build_hash: string version: string diff --git a/specification/specs/x_pack/info/x_pack_info/XPackBuildInformation.ts b/specification/specs/x_pack/info/x_pack_info/XPackBuildInformation.ts index 35d71ebd42..cfdfedaa7a 100644 --- a/specification/specs/x_pack/info/x_pack_info/XPackBuildInformation.ts +++ b/specification/specs/x_pack/info/x_pack_info/XPackBuildInformation.ts @@ -1,3 +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. + */ + class XPackBuildInformation { date: Date hash: string diff --git a/specification/specs/x_pack/info/x_pack_info/XPackFeature.ts b/specification/specs/x_pack/info/x_pack_info/XPackFeature.ts index 78e389171d..10d94f2f02 100644 --- a/specification/specs/x_pack/info/x_pack_info/XPackFeature.ts +++ b/specification/specs/x_pack/info/x_pack_info/XPackFeature.ts @@ -1,3 +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. + */ + class XPackFeature { available: boolean description: string diff --git a/specification/specs/x_pack/info/x_pack_info/XPackFeatures.ts b/specification/specs/x_pack/info/x_pack_info/XPackFeatures.ts index 5631998e9c..c7381c5c14 100644 --- a/specification/specs/x_pack/info/x_pack_info/XPackFeatures.ts +++ b/specification/specs/x_pack/info/x_pack_info/XPackFeatures.ts @@ -1,3 +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. + */ + class XPackFeatures { analytics: XPackFeature ccr: XPackFeature diff --git a/specification/specs/x_pack/info/x_pack_info/XPackInfoRequest.ts b/specification/specs/x_pack/info/x_pack_info/XPackInfoRequest.ts index d7e8eb3cdd..2394a7972c 100644 --- a/specification/specs/x_pack/info/x_pack_info/XPackInfoRequest.ts +++ b/specification/specs/x_pack/info/x_pack_info/XPackInfoRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('xpack.info') class XPackInfoRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/x_pack/info/x_pack_info/XPackInfoResponse.ts b/specification/specs/x_pack/info/x_pack_info/XPackInfoResponse.ts index 6b10dc8f1f..98dfa0a43f 100644 --- a/specification/specs/x_pack/info/x_pack_info/XPackInfoResponse.ts +++ b/specification/specs/x_pack/info/x_pack_info/XPackInfoResponse.ts @@ -1,3 +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. + */ + class XPackInfoResponse extends ResponseBase { build: XPackBuildInformation features: XPackFeatures diff --git a/specification/specs/x_pack/info/x_pack_usage/AlertingCount.ts b/specification/specs/x_pack/info/x_pack_usage/AlertingCount.ts index 32f5e7e088..611ec141c4 100644 --- a/specification/specs/x_pack/info/x_pack_usage/AlertingCount.ts +++ b/specification/specs/x_pack/info/x_pack_usage/AlertingCount.ts @@ -1,3 +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. + */ + class AlertingCount { active: long total: long diff --git a/specification/specs/x_pack/info/x_pack_usage/AlertingExecution.ts b/specification/specs/x_pack/info/x_pack_usage/AlertingExecution.ts index 80476f280b..ced2c3dd18 100644 --- a/specification/specs/x_pack/info/x_pack_usage/AlertingExecution.ts +++ b/specification/specs/x_pack/info/x_pack_usage/AlertingExecution.ts @@ -1,3 +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. + */ + class AlertingExecution { actions: Dictionary } diff --git a/specification/specs/x_pack/info/x_pack_usage/AlertingInput.ts b/specification/specs/x_pack/info/x_pack_usage/AlertingInput.ts index 747865b9f1..844c42736e 100644 --- a/specification/specs/x_pack/info/x_pack_usage/AlertingInput.ts +++ b/specification/specs/x_pack/info/x_pack_usage/AlertingInput.ts @@ -1,3 +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. + */ + class AlertingInput { input: Dictionary trigger: Dictionary diff --git a/specification/specs/x_pack/info/x_pack_usage/AlertingUsage.ts b/specification/specs/x_pack/info/x_pack_usage/AlertingUsage.ts index 85ca4c9402..c6e743ea2a 100644 --- a/specification/specs/x_pack/info/x_pack_usage/AlertingUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/AlertingUsage.ts @@ -1,3 +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. + */ + class AlertingUsage extends XPackUsage { count: AlertingCount execution: AlertingExecution diff --git a/specification/specs/x_pack/info/x_pack_usage/AuditUsage.ts b/specification/specs/x_pack/info/x_pack_usage/AuditUsage.ts index 7898be64f5..5fc9fc0edd 100644 --- a/specification/specs/x_pack/info/x_pack_usage/AuditUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/AuditUsage.ts @@ -1,3 +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. + */ + class AuditUsage extends SecurityFeatureToggle { outputs: string[] } diff --git a/specification/specs/x_pack/info/x_pack_usage/CcrUsage.ts b/specification/specs/x_pack/info/x_pack_usage/CcrUsage.ts index 8b8a41a277..7707ae7603 100644 --- a/specification/specs/x_pack/info/x_pack_usage/CcrUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/CcrUsage.ts @@ -1,3 +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. + */ + class CcrUsage extends XPackUsage { auto_follow_patterns_count: integer follower_indices_count: integer diff --git a/specification/specs/x_pack/info/x_pack_usage/DataFeed.ts b/specification/specs/x_pack/info/x_pack_usage/DataFeed.ts index a18d5bda00..4acbf7be93 100644 --- a/specification/specs/x_pack/info/x_pack_usage/DataFeed.ts +++ b/specification/specs/x_pack/info/x_pack_usage/DataFeed.ts @@ -1,3 +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. + */ + class DataFeed { count: long } diff --git a/specification/specs/x_pack/info/x_pack_usage/ExecutionAction.ts b/specification/specs/x_pack/info/x_pack_usage/ExecutionAction.ts index 7898f1f860..4850f50f92 100644 --- a/specification/specs/x_pack/info/x_pack_usage/ExecutionAction.ts +++ b/specification/specs/x_pack/info/x_pack_usage/ExecutionAction.ts @@ -1,3 +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. + */ + class ExecutionAction { total: long total_in_ms: long diff --git a/specification/specs/x_pack/info/x_pack_usage/FlattenedUsage.ts b/specification/specs/x_pack/info/x_pack_usage/FlattenedUsage.ts index 4f3e0668fd..d3700d1f6a 100644 --- a/specification/specs/x_pack/info/x_pack_usage/FlattenedUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/FlattenedUsage.ts @@ -1,3 +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. + */ + class FlattenedUsage extends XPackUsage { field_count: integer } diff --git a/specification/specs/x_pack/info/x_pack_usage/ForecastStatistics.ts b/specification/specs/x_pack/info/x_pack_usage/ForecastStatistics.ts index 5d957815f1..b155461901 100644 --- a/specification/specs/x_pack/info/x_pack_usage/ForecastStatistics.ts +++ b/specification/specs/x_pack/info/x_pack_usage/ForecastStatistics.ts @@ -1,3 +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. + */ + class ForecastStatistics { forecasted_jobs: long memory_bytes: JobStatistics diff --git a/specification/specs/x_pack/info/x_pack_usage/IlmPolicyStatistics.ts b/specification/specs/x_pack/info/x_pack_usage/IlmPolicyStatistics.ts index 6ab526b2dc..a40ae54728 100644 --- a/specification/specs/x_pack/info/x_pack_usage/IlmPolicyStatistics.ts +++ b/specification/specs/x_pack/info/x_pack_usage/IlmPolicyStatistics.ts @@ -1,3 +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. + */ + class IlmPolicyStatistics { indices_managed: integer phases: Phases diff --git a/specification/specs/x_pack/info/x_pack_usage/IlmUsage.ts b/specification/specs/x_pack/info/x_pack_usage/IlmUsage.ts index 48e4b14506..7bbf93d603 100644 --- a/specification/specs/x_pack/info/x_pack_usage/IlmUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/IlmUsage.ts @@ -1,3 +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. + */ + class IlmUsage { policy_count: integer policy_stats: IlmPolicyStatistics[] diff --git a/specification/specs/x_pack/info/x_pack_usage/IpFilterUsage.ts b/specification/specs/x_pack/info/x_pack_usage/IpFilterUsage.ts index 2435d2a224..5390b57f91 100644 --- a/specification/specs/x_pack/info/x_pack_usage/IpFilterUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/IpFilterUsage.ts @@ -1,3 +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. + */ + class IpFilterUsage { http: boolean transport: boolean diff --git a/specification/specs/x_pack/info/x_pack_usage/Job.ts b/specification/specs/x_pack/info/x_pack_usage/Job.ts index e32481f06b..10feffcf1a 100644 --- a/specification/specs/x_pack/info/x_pack_usage/Job.ts +++ b/specification/specs/x_pack/info/x_pack_usage/Job.ts @@ -1,3 +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. + */ + class Job { allow_lazy_open: boolean analysis_config: AnalysisConfig diff --git a/specification/specs/x_pack/info/x_pack_usage/JobStatistics.ts b/specification/specs/x_pack/info/x_pack_usage/JobStatistics.ts index 8d80ab076b..1620e960ad 100644 --- a/specification/specs/x_pack/info/x_pack_usage/JobStatistics.ts +++ b/specification/specs/x_pack/info/x_pack_usage/JobStatistics.ts @@ -1,3 +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. + */ + class JobStatistics { avg: double max: double diff --git a/specification/specs/x_pack/info/x_pack_usage/MachineLearningUsage.ts b/specification/specs/x_pack/info/x_pack_usage/MachineLearningUsage.ts index 0fa9ec38a7..de5d274b66 100644 --- a/specification/specs/x_pack/info/x_pack_usage/MachineLearningUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/MachineLearningUsage.ts @@ -1,3 +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. + */ + class MachineLearningUsage extends XPackUsage { datafeeds: Dictionary jobs: Dictionary diff --git a/specification/specs/x_pack/info/x_pack_usage/MonitoringUsage.ts b/specification/specs/x_pack/info/x_pack_usage/MonitoringUsage.ts index 671d0d7b8f..cf4940c0d4 100644 --- a/specification/specs/x_pack/info/x_pack_usage/MonitoringUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/MonitoringUsage.ts @@ -1,3 +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. + */ + class MonitoringUsage extends XPackUsage { collection_enabled: boolean enabled_exporters: Dictionary diff --git a/specification/specs/x_pack/info/x_pack_usage/QueryUsage.ts b/specification/specs/x_pack/info/x_pack_usage/QueryUsage.ts index 17cbf1fb49..eaf049295f 100644 --- a/specification/specs/x_pack/info/x_pack_usage/QueryUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/QueryUsage.ts @@ -1,3 +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. + */ + class QueryUsage { count: integer failed: integer diff --git a/specification/specs/x_pack/info/x_pack_usage/RealmUsage.ts b/specification/specs/x_pack/info/x_pack_usage/RealmUsage.ts index 905d1a668c..8ae4eb8303 100644 --- a/specification/specs/x_pack/info/x_pack_usage/RealmUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/RealmUsage.ts @@ -1,3 +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. + */ + class RealmUsage extends XPackUsage { name: string[] order: long[] diff --git a/specification/specs/x_pack/info/x_pack_usage/RoleMappingUsage.ts b/specification/specs/x_pack/info/x_pack_usage/RoleMappingUsage.ts index 8ede08b5a6..88fe992f93 100644 --- a/specification/specs/x_pack/info/x_pack_usage/RoleMappingUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/RoleMappingUsage.ts @@ -1,3 +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. + */ + class RoleMappingUsage { enabled: integer size: integer diff --git a/specification/specs/x_pack/info/x_pack_usage/RoleUsage.ts b/specification/specs/x_pack/info/x_pack_usage/RoleUsage.ts index c7d606bcc0..8c70ea504c 100644 --- a/specification/specs/x_pack/info/x_pack_usage/RoleUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/RoleUsage.ts @@ -1,3 +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. + */ + class RoleUsage { dls: boolean fls: boolean diff --git a/specification/specs/x_pack/info/x_pack_usage/SecurityFeatureToggle.ts b/specification/specs/x_pack/info/x_pack_usage/SecurityFeatureToggle.ts index e98a47a633..73987c3981 100644 --- a/specification/specs/x_pack/info/x_pack_usage/SecurityFeatureToggle.ts +++ b/specification/specs/x_pack/info/x_pack_usage/SecurityFeatureToggle.ts @@ -1,3 +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. + */ + class SecurityFeatureToggle { enabled: boolean } diff --git a/specification/specs/x_pack/info/x_pack_usage/SecurityUsage.ts b/specification/specs/x_pack/info/x_pack_usage/SecurityUsage.ts index ae3acef8f6..0396a454af 100644 --- a/specification/specs/x_pack/info/x_pack_usage/SecurityUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/SecurityUsage.ts @@ -1,3 +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. + */ + class SecurityUsage extends XPackUsage { anonymous: SecurityFeatureToggle audit: AuditUsage diff --git a/specification/specs/x_pack/info/x_pack_usage/SlmUsage.ts b/specification/specs/x_pack/info/x_pack_usage/SlmUsage.ts index bcd03371fa..cb00cce66a 100644 --- a/specification/specs/x_pack/info/x_pack_usage/SlmUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/SlmUsage.ts @@ -1,3 +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. + */ + class SlmUsage extends XPackUsage { policy_count: integer policy_stats: SnapshotLifecycleStats diff --git a/specification/specs/x_pack/info/x_pack_usage/SnapshotLifecycleStats.ts b/specification/specs/x_pack/info/x_pack_usage/SnapshotLifecycleStats.ts index f51298e0aa..0bc5efcae5 100644 --- a/specification/specs/x_pack/info/x_pack_usage/SnapshotLifecycleStats.ts +++ b/specification/specs/x_pack/info/x_pack_usage/SnapshotLifecycleStats.ts @@ -1,3 +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. + */ + class SnapshotLifecycleStats { retention_deletion_time: string retention_deletion_time_millis: long diff --git a/specification/specs/x_pack/info/x_pack_usage/SqlUsage.ts b/specification/specs/x_pack/info/x_pack_usage/SqlUsage.ts index 2dd649a9d6..38de72929d 100644 --- a/specification/specs/x_pack/info/x_pack_usage/SqlUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/SqlUsage.ts @@ -1,3 +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. + */ + class SqlUsage extends XPackUsage { features: Dictionary queries: Dictionary diff --git a/specification/specs/x_pack/info/x_pack_usage/SslUsage.ts b/specification/specs/x_pack/info/x_pack_usage/SslUsage.ts index fe36b55163..3c43612a8e 100644 --- a/specification/specs/x_pack/info/x_pack_usage/SslUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/SslUsage.ts @@ -1,3 +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. + */ + class SslUsage { http: SecurityFeatureToggle transport: SecurityFeatureToggle diff --git a/specification/specs/x_pack/info/x_pack_usage/VectorUsage.ts b/specification/specs/x_pack/info/x_pack_usage/VectorUsage.ts index ace95fb787..f019c2efe2 100644 --- a/specification/specs/x_pack/info/x_pack_usage/VectorUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/VectorUsage.ts @@ -1,3 +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. + */ + class VectorUsage extends XPackUsage { dense_vector_dims_avg_count: integer dense_vector_fields_count: integer diff --git a/specification/specs/x_pack/info/x_pack_usage/XPackUsage.ts b/specification/specs/x_pack/info/x_pack_usage/XPackUsage.ts index 76620bf681..4f6ca68e17 100644 --- a/specification/specs/x_pack/info/x_pack_usage/XPackUsage.ts +++ b/specification/specs/x_pack/info/x_pack_usage/XPackUsage.ts @@ -1,3 +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. + */ + class XPackUsage { available: boolean enabled: boolean diff --git a/specification/specs/x_pack/info/x_pack_usage/XPackUsageRequest.ts b/specification/specs/x_pack/info/x_pack_usage/XPackUsageRequest.ts index c5640fe0af..d8d3a2751d 100644 --- a/specification/specs/x_pack/info/x_pack_usage/XPackUsageRequest.ts +++ b/specification/specs/x_pack/info/x_pack_usage/XPackUsageRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('xpack.usage') class XPackUsageRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/x_pack/info/x_pack_usage/XPackUsageResponse.ts b/specification/specs/x_pack/info/x_pack_usage/XPackUsageResponse.ts index 0d870d91d5..a5657edcfd 100644 --- a/specification/specs/x_pack/info/x_pack_usage/XPackUsageResponse.ts +++ b/specification/specs/x_pack/info/x_pack_usage/XPackUsageResponse.ts @@ -1,3 +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. + */ + class XPackUsageResponse extends ResponseBase { watcher: AlertingUsage ccr: CcrUsage diff --git a/specification/specs/x_pack/license/delete_license/DeleteLicenseRequest.ts b/specification/specs/x_pack/license/delete_license/DeleteLicenseRequest.ts index 09e67f123e..0425fbd3c8 100644 --- a/specification/specs/x_pack/license/delete_license/DeleteLicenseRequest.ts +++ b/specification/specs/x_pack/license/delete_license/DeleteLicenseRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('license.delete') class DeleteLicenseRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/license/delete_license/DeleteLicenseResponse.ts b/specification/specs/x_pack/license/delete_license/DeleteLicenseResponse.ts index 4cfe39d7ce..4dc37824e4 100644 --- a/specification/specs/x_pack/license/delete_license/DeleteLicenseResponse.ts +++ b/specification/specs/x_pack/license/delete_license/DeleteLicenseResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteLicenseResponse extends ResponseBase {} diff --git a/specification/specs/x_pack/license/get_basic_license_status/GetBasicLicenseStatusRequest.ts b/specification/specs/x_pack/license/get_basic_license_status/GetBasicLicenseStatusRequest.ts index 4a62d62b62..45aff5175d 100644 --- a/specification/specs/x_pack/license/get_basic_license_status/GetBasicLicenseStatusRequest.ts +++ b/specification/specs/x_pack/license/get_basic_license_status/GetBasicLicenseStatusRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('license.get_basic_status') class GetBasicLicenseStatusRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/license/get_basic_license_status/GetBasicLicenseStatusResponse.ts b/specification/specs/x_pack/license/get_basic_license_status/GetBasicLicenseStatusResponse.ts index 2083d8d7d1..a408f45ebc 100644 --- a/specification/specs/x_pack/license/get_basic_license_status/GetBasicLicenseStatusResponse.ts +++ b/specification/specs/x_pack/license/get_basic_license_status/GetBasicLicenseStatusResponse.ts @@ -1,3 +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. + */ + class GetBasicLicenseStatusResponse extends ResponseBase { eligible_to_start_basic: boolean } diff --git a/specification/specs/x_pack/license/get_license/GetLicenseRequest.ts b/specification/specs/x_pack/license/get_license/GetLicenseRequest.ts index 3ed35837f3..256e67f66b 100644 --- a/specification/specs/x_pack/license/get_license/GetLicenseRequest.ts +++ b/specification/specs/x_pack/license/get_license/GetLicenseRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('license.get') class GetLicenseRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/x_pack/license/get_license/GetLicenseResponse.ts b/specification/specs/x_pack/license/get_license/GetLicenseResponse.ts index 19e90e82c0..3a13f6f064 100644 --- a/specification/specs/x_pack/license/get_license/GetLicenseResponse.ts +++ b/specification/specs/x_pack/license/get_license/GetLicenseResponse.ts @@ -1,3 +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. + */ + class GetLicenseResponse extends ResponseBase { license: LicenseInformation } diff --git a/specification/specs/x_pack/license/get_license/License.ts b/specification/specs/x_pack/license/get_license/License.ts index 1b21495554..789b907529 100644 --- a/specification/specs/x_pack/license/get_license/License.ts +++ b/specification/specs/x_pack/license/get_license/License.ts @@ -1,3 +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. + */ + class License { expiry_date_in_millis: long issue_date_in_millis: long diff --git a/specification/specs/x_pack/license/get_license/LicenseInformation.ts b/specification/specs/x_pack/license/get_license/LicenseInformation.ts index 7d66c3ffb0..8945024529 100644 --- a/specification/specs/x_pack/license/get_license/LicenseInformation.ts +++ b/specification/specs/x_pack/license/get_license/LicenseInformation.ts @@ -1,3 +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. + */ + class LicenseInformation { expiry_date: Date expiry_date_in_millis: long diff --git a/specification/specs/x_pack/license/get_license/LicenseStatus.ts b/specification/specs/x_pack/license/get_license/LicenseStatus.ts index 76639e2eec..392bc00881 100644 --- a/specification/specs/x_pack/license/get_license/LicenseStatus.ts +++ b/specification/specs/x_pack/license/get_license/LicenseStatus.ts @@ -1,3 +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. + */ + enum LicenseStatus { active = 0, valid = 1, diff --git a/specification/specs/x_pack/license/get_license/LicenseType.ts b/specification/specs/x_pack/license/get_license/LicenseType.ts index 47cde33a23..8002767152 100644 --- a/specification/specs/x_pack/license/get_license/LicenseType.ts +++ b/specification/specs/x_pack/license/get_license/LicenseType.ts @@ -1,3 +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. + */ + enum LicenseType { missing = 0, trial = 1, diff --git a/specification/specs/x_pack/license/get_trial_license_status/GetTrialLicenseStatusRequest.ts b/specification/specs/x_pack/license/get_trial_license_status/GetTrialLicenseStatusRequest.ts index ad24192dd2..429e9cca52 100644 --- a/specification/specs/x_pack/license/get_trial_license_status/GetTrialLicenseStatusRequest.ts +++ b/specification/specs/x_pack/license/get_trial_license_status/GetTrialLicenseStatusRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('license.get_trial_status') class GetTrialLicenseStatusRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/license/get_trial_license_status/GetTrialLicenseStatusResponse.ts b/specification/specs/x_pack/license/get_trial_license_status/GetTrialLicenseStatusResponse.ts index ab519f4ba8..ac0c1c6737 100644 --- a/specification/specs/x_pack/license/get_trial_license_status/GetTrialLicenseStatusResponse.ts +++ b/specification/specs/x_pack/license/get_trial_license_status/GetTrialLicenseStatusResponse.ts @@ -1,3 +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. + */ + class GetTrialLicenseStatusResponse extends ResponseBase { eligible_to_start_trial: boolean } diff --git a/specification/specs/x_pack/license/post_license/LicenseAcknowledgement.ts b/specification/specs/x_pack/license/post_license/LicenseAcknowledgement.ts index de197b2f00..4b171da87c 100644 --- a/specification/specs/x_pack/license/post_license/LicenseAcknowledgement.ts +++ b/specification/specs/x_pack/license/post_license/LicenseAcknowledgement.ts @@ -1,3 +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. + */ + class LicenseAcknowledgement { license: string[] message: string diff --git a/specification/specs/x_pack/license/post_license/PostLicenseRequest.ts b/specification/specs/x_pack/license/post_license/PostLicenseRequest.ts index 14dc2437e8..35d04b11e9 100644 --- a/specification/specs/x_pack/license/post_license/PostLicenseRequest.ts +++ b/specification/specs/x_pack/license/post_license/PostLicenseRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('license.post') class PostLicenseRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/x_pack/license/post_license/PostLicenseResponse.ts b/specification/specs/x_pack/license/post_license/PostLicenseResponse.ts index ed05822795..7c5afb30b6 100644 --- a/specification/specs/x_pack/license/post_license/PostLicenseResponse.ts +++ b/specification/specs/x_pack/license/post_license/PostLicenseResponse.ts @@ -1,3 +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. + */ + class PostLicenseResponse extends ResponseBase { acknowledge: LicenseAcknowledgement acknowledged: boolean diff --git a/specification/specs/x_pack/license/start_basic_license/StartBasicLicenseRequest.ts b/specification/specs/x_pack/license/start_basic_license/StartBasicLicenseRequest.ts index 4385eaec05..b1abb7f63c 100644 --- a/specification/specs/x_pack/license/start_basic_license/StartBasicLicenseRequest.ts +++ b/specification/specs/x_pack/license/start_basic_license/StartBasicLicenseRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('license.post_start_basic') class StartBasicLicenseRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/x_pack/license/start_basic_license/StartBasicLicenseResponse.ts b/specification/specs/x_pack/license/start_basic_license/StartBasicLicenseResponse.ts index 7ffad3772a..0870f358f4 100644 --- a/specification/specs/x_pack/license/start_basic_license/StartBasicLicenseResponse.ts +++ b/specification/specs/x_pack/license/start_basic_license/StartBasicLicenseResponse.ts @@ -1,3 +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. + */ + class StartBasicLicenseResponse extends AcknowledgedResponseBase { acknowledge: Dictionary basic_was_started: boolean diff --git a/specification/specs/x_pack/license/start_trial_license/StartTrialLicenseRequest.ts b/specification/specs/x_pack/license/start_trial_license/StartTrialLicenseRequest.ts index 4c5dd7fbb8..35f030e882 100644 --- a/specification/specs/x_pack/license/start_trial_license/StartTrialLicenseRequest.ts +++ b/specification/specs/x_pack/license/start_trial_license/StartTrialLicenseRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('license.post_start_trial') class StartTrialLicenseRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/x_pack/license/start_trial_license/StartTrialLicenseResponse.ts b/specification/specs/x_pack/license/start_trial_license/StartTrialLicenseResponse.ts index 56449ea1cf..4424b1bf9c 100644 --- a/specification/specs/x_pack/license/start_trial_license/StartTrialLicenseResponse.ts +++ b/specification/specs/x_pack/license/start_trial_license/StartTrialLicenseResponse.ts @@ -1,3 +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. + */ + class StartTrialLicenseResponse extends AcknowledgedResponseBase { error_message: string trial_was_started: boolean diff --git a/specification/specs/x_pack/machine_learning/close_job/CloseJobRequest.ts b/specification/specs/x_pack/machine_learning/close_job/CloseJobRequest.ts index 2c0acb895f..5bd2d7ad87 100644 --- a/specification/specs/x_pack/machine_learning/close_job/CloseJobRequest.ts +++ b/specification/specs/x_pack/machine_learning/close_job/CloseJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.close_job') class CloseJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/close_job/CloseJobResponse.ts b/specification/specs/x_pack/machine_learning/close_job/CloseJobResponse.ts index 6722f7c03a..de95b87f02 100644 --- a/specification/specs/x_pack/machine_learning/close_job/CloseJobResponse.ts +++ b/specification/specs/x_pack/machine_learning/close_job/CloseJobResponse.ts @@ -1,3 +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. + */ + class CloseJobResponse extends ResponseBase { closed: boolean } diff --git a/specification/specs/x_pack/machine_learning/datafeed/ChunkingConfig.ts b/specification/specs/x_pack/machine_learning/datafeed/ChunkingConfig.ts index 4efc87b95a..a2a6a8b98b 100644 --- a/specification/specs/x_pack/machine_learning/datafeed/ChunkingConfig.ts +++ b/specification/specs/x_pack/machine_learning/datafeed/ChunkingConfig.ts @@ -1,3 +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. + */ + class ChunkingConfig { mode: ChunkingMode time_span: Time diff --git a/specification/specs/x_pack/machine_learning/datafeed/ChunkingMode.ts b/specification/specs/x_pack/machine_learning/datafeed/ChunkingMode.ts index e31e9c0b38..cceec99b00 100644 --- a/specification/specs/x_pack/machine_learning/datafeed/ChunkingMode.ts +++ b/specification/specs/x_pack/machine_learning/datafeed/ChunkingMode.ts @@ -1,3 +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. + */ + enum ChunkingMode { auto = 0, manual = 1, diff --git a/specification/specs/x_pack/machine_learning/datafeed/DatafeedConfig.ts b/specification/specs/x_pack/machine_learning/datafeed/DatafeedConfig.ts index 5569a38e54..e780bcfd36 100644 --- a/specification/specs/x_pack/machine_learning/datafeed/DatafeedConfig.ts +++ b/specification/specs/x_pack/machine_learning/datafeed/DatafeedConfig.ts @@ -1,3 +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. + */ + class DatafeedConfig { aggregations: Dictionary chunking_config: ChunkingConfig diff --git a/specification/specs/x_pack/machine_learning/datafeed/DatafeedState.ts b/specification/specs/x_pack/machine_learning/datafeed/DatafeedState.ts index 89d9dbbe69..86e04e7ecf 100644 --- a/specification/specs/x_pack/machine_learning/datafeed/DatafeedState.ts +++ b/specification/specs/x_pack/machine_learning/datafeed/DatafeedState.ts @@ -1,3 +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. + */ + enum DatafeedState { started = 0, stopped = 1, diff --git a/specification/specs/x_pack/machine_learning/datafeed/DatafeedStats.ts b/specification/specs/x_pack/machine_learning/datafeed/DatafeedStats.ts index 72798fab89..9fda7283e4 100644 --- a/specification/specs/x_pack/machine_learning/datafeed/DatafeedStats.ts +++ b/specification/specs/x_pack/machine_learning/datafeed/DatafeedStats.ts @@ -1,3 +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. + */ + class DatafeedStats { assignment_explanation: string datafeed_id: string diff --git a/specification/specs/x_pack/machine_learning/datafeed/DatafeedTimingStats.ts b/specification/specs/x_pack/machine_learning/datafeed/DatafeedTimingStats.ts index 21add94251..c1ce2c7552 100644 --- a/specification/specs/x_pack/machine_learning/datafeed/DatafeedTimingStats.ts +++ b/specification/specs/x_pack/machine_learning/datafeed/DatafeedTimingStats.ts @@ -1,3 +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. + */ + class DatafeedTimingStats { bucket_count: long exponential_average_search_time_per_hour_ms: double diff --git a/specification/specs/x_pack/machine_learning/datafeed/DiscoveryNode.ts b/specification/specs/x_pack/machine_learning/datafeed/DiscoveryNode.ts index 9b022874e5..9a5168725f 100644 --- a/specification/specs/x_pack/machine_learning/datafeed/DiscoveryNode.ts +++ b/specification/specs/x_pack/machine_learning/datafeed/DiscoveryNode.ts @@ -1,3 +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. + */ + class DiscoveryNode { /** @prop_serializer VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2 */ attributes: Dictionary diff --git a/specification/specs/x_pack/machine_learning/delete_calendar/DeleteCalendarRequest.ts b/specification/specs/x_pack/machine_learning/delete_calendar/DeleteCalendarRequest.ts index b45b0368e9..7c81967fa3 100644 --- a/specification/specs/x_pack/machine_learning/delete_calendar/DeleteCalendarRequest.ts +++ b/specification/specs/x_pack/machine_learning/delete_calendar/DeleteCalendarRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.delete_calendar') class DeleteCalendarRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/delete_calendar/DeleteCalendarResponse.ts b/specification/specs/x_pack/machine_learning/delete_calendar/DeleteCalendarResponse.ts index 41856dc947..5f05638a6d 100644 --- a/specification/specs/x_pack/machine_learning/delete_calendar/DeleteCalendarResponse.ts +++ b/specification/specs/x_pack/machine_learning/delete_calendar/DeleteCalendarResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteCalendarResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/machine_learning/delete_calendar_event/DeleteCalendarEventRequest.ts b/specification/specs/x_pack/machine_learning/delete_calendar_event/DeleteCalendarEventRequest.ts index 93ecdc8b32..49f5261988 100644 --- a/specification/specs/x_pack/machine_learning/delete_calendar_event/DeleteCalendarEventRequest.ts +++ b/specification/specs/x_pack/machine_learning/delete_calendar_event/DeleteCalendarEventRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.delete_calendar_event') class DeleteCalendarEventRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/delete_calendar_event/DeleteCalendarEventResponse.ts b/specification/specs/x_pack/machine_learning/delete_calendar_event/DeleteCalendarEventResponse.ts index f49308e04e..33a40deb2a 100644 --- a/specification/specs/x_pack/machine_learning/delete_calendar_event/DeleteCalendarEventResponse.ts +++ b/specification/specs/x_pack/machine_learning/delete_calendar_event/DeleteCalendarEventResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteCalendarEventResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/machine_learning/delete_calendar_job/DeleteCalendarJobRequest.ts b/specification/specs/x_pack/machine_learning/delete_calendar_job/DeleteCalendarJobRequest.ts index 91b69f98b6..04d2bb2270 100644 --- a/specification/specs/x_pack/machine_learning/delete_calendar_job/DeleteCalendarJobRequest.ts +++ b/specification/specs/x_pack/machine_learning/delete_calendar_job/DeleteCalendarJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.delete_calendar_job') class DeleteCalendarJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/delete_calendar_job/DeleteCalendarJobResponse.ts b/specification/specs/x_pack/machine_learning/delete_calendar_job/DeleteCalendarJobResponse.ts index 4c210a39ba..24c425d024 100644 --- a/specification/specs/x_pack/machine_learning/delete_calendar_job/DeleteCalendarJobResponse.ts +++ b/specification/specs/x_pack/machine_learning/delete_calendar_job/DeleteCalendarJobResponse.ts @@ -1,3 +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. + */ + class DeleteCalendarJobResponse extends ResponseBase { calendar_id: string description: string diff --git a/specification/specs/x_pack/machine_learning/delete_datafeed/DeleteDatafeedRequest.ts b/specification/specs/x_pack/machine_learning/delete_datafeed/DeleteDatafeedRequest.ts index 8468ecdf4a..8827fa5fb7 100644 --- a/specification/specs/x_pack/machine_learning/delete_datafeed/DeleteDatafeedRequest.ts +++ b/specification/specs/x_pack/machine_learning/delete_datafeed/DeleteDatafeedRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.delete_datafeed') class DeleteDatafeedRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/delete_datafeed/DeleteDatafeedResponse.ts b/specification/specs/x_pack/machine_learning/delete_datafeed/DeleteDatafeedResponse.ts index d3b7adce28..2541c04061 100644 --- a/specification/specs/x_pack/machine_learning/delete_datafeed/DeleteDatafeedResponse.ts +++ b/specification/specs/x_pack/machine_learning/delete_datafeed/DeleteDatafeedResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteDatafeedResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/machine_learning/delete_expired_data/DeleteExpiredDataRequest.ts b/specification/specs/x_pack/machine_learning/delete_expired_data/DeleteExpiredDataRequest.ts index fc9f81d7c8..a870d23cfc 100644 --- a/specification/specs/x_pack/machine_learning/delete_expired_data/DeleteExpiredDataRequest.ts +++ b/specification/specs/x_pack/machine_learning/delete_expired_data/DeleteExpiredDataRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.delete_expired_data') class DeleteExpiredDataRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/machine_learning/delete_expired_data/DeleteExpiredDataResponse.ts b/specification/specs/x_pack/machine_learning/delete_expired_data/DeleteExpiredDataResponse.ts index c481fbf2b4..1f6b10e47f 100644 --- a/specification/specs/x_pack/machine_learning/delete_expired_data/DeleteExpiredDataResponse.ts +++ b/specification/specs/x_pack/machine_learning/delete_expired_data/DeleteExpiredDataResponse.ts @@ -1,3 +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. + */ + class DeleteExpiredDataResponse extends ResponseBase { deleted: boolean } diff --git a/specification/specs/x_pack/machine_learning/delete_filter/DeleteFilterRequest.ts b/specification/specs/x_pack/machine_learning/delete_filter/DeleteFilterRequest.ts index 3e90b62140..ca81fb1cf9 100644 --- a/specification/specs/x_pack/machine_learning/delete_filter/DeleteFilterRequest.ts +++ b/specification/specs/x_pack/machine_learning/delete_filter/DeleteFilterRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.delete_filter') class DeleteFilterRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/delete_filter/DeleteFilterResponse.ts b/specification/specs/x_pack/machine_learning/delete_filter/DeleteFilterResponse.ts index 6f98900efc..fe753d69ac 100644 --- a/specification/specs/x_pack/machine_learning/delete_filter/DeleteFilterResponse.ts +++ b/specification/specs/x_pack/machine_learning/delete_filter/DeleteFilterResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteFilterResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/machine_learning/delete_forecast/DeleteForecastRequest.ts b/specification/specs/x_pack/machine_learning/delete_forecast/DeleteForecastRequest.ts index 68f56f3fba..f7a9679ed8 100644 --- a/specification/specs/x_pack/machine_learning/delete_forecast/DeleteForecastRequest.ts +++ b/specification/specs/x_pack/machine_learning/delete_forecast/DeleteForecastRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.delete_forecast') class DeleteForecastRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/delete_forecast/DeleteForecastResponse.ts b/specification/specs/x_pack/machine_learning/delete_forecast/DeleteForecastResponse.ts index 75097203d3..53e13488d2 100644 --- a/specification/specs/x_pack/machine_learning/delete_forecast/DeleteForecastResponse.ts +++ b/specification/specs/x_pack/machine_learning/delete_forecast/DeleteForecastResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteForecastResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/machine_learning/delete_job/DeleteJobRequest.ts b/specification/specs/x_pack/machine_learning/delete_job/DeleteJobRequest.ts index b2947bd9d8..370370296f 100644 --- a/specification/specs/x_pack/machine_learning/delete_job/DeleteJobRequest.ts +++ b/specification/specs/x_pack/machine_learning/delete_job/DeleteJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.delete_job') class DeleteJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/delete_job/DeleteJobResponse.ts b/specification/specs/x_pack/machine_learning/delete_job/DeleteJobResponse.ts index fe46503f52..c1d37f6959 100644 --- a/specification/specs/x_pack/machine_learning/delete_job/DeleteJobResponse.ts +++ b/specification/specs/x_pack/machine_learning/delete_job/DeleteJobResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteJobResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/machine_learning/delete_model_snapshot/DeleteModelSnapshotRequest.ts b/specification/specs/x_pack/machine_learning/delete_model_snapshot/DeleteModelSnapshotRequest.ts index e40df08a08..108816a1a3 100644 --- a/specification/specs/x_pack/machine_learning/delete_model_snapshot/DeleteModelSnapshotRequest.ts +++ b/specification/specs/x_pack/machine_learning/delete_model_snapshot/DeleteModelSnapshotRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.delete_model_snapshot') class DeleteModelSnapshotRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/delete_model_snapshot/DeleteModelSnapshotResponse.ts b/specification/specs/x_pack/machine_learning/delete_model_snapshot/DeleteModelSnapshotResponse.ts index d76071f79b..e740e67d7d 100644 --- a/specification/specs/x_pack/machine_learning/delete_model_snapshot/DeleteModelSnapshotResponse.ts +++ b/specification/specs/x_pack/machine_learning/delete_model_snapshot/DeleteModelSnapshotResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteModelSnapshotResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/machine_learning/estimate_model_memory/EstimateModelMemoryRequest.ts b/specification/specs/x_pack/machine_learning/estimate_model_memory/EstimateModelMemoryRequest.ts index 19fae17f3e..15f66bdc0e 100644 --- a/specification/specs/x_pack/machine_learning/estimate_model_memory/EstimateModelMemoryRequest.ts +++ b/specification/specs/x_pack/machine_learning/estimate_model_memory/EstimateModelMemoryRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.estimate_model_memory') class EstimateModelMemoryRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/machine_learning/estimate_model_memory/EstimateModelMemoryResponse.ts b/specification/specs/x_pack/machine_learning/estimate_model_memory/EstimateModelMemoryResponse.ts index cf364a9ea4..d3e95bea26 100644 --- a/specification/specs/x_pack/machine_learning/estimate_model_memory/EstimateModelMemoryResponse.ts +++ b/specification/specs/x_pack/machine_learning/estimate_model_memory/EstimateModelMemoryResponse.ts @@ -1,3 +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. + */ + class EstimateModelMemoryResponse extends ResponseBase { model_memory_estimate: string } diff --git a/specification/specs/x_pack/machine_learning/flush_job/FlushJobRequest.ts b/specification/specs/x_pack/machine_learning/flush_job/FlushJobRequest.ts index 2f6e6144bd..27a171179f 100644 --- a/specification/specs/x_pack/machine_learning/flush_job/FlushJobRequest.ts +++ b/specification/specs/x_pack/machine_learning/flush_job/FlushJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.flush_job') class FlushJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/flush_job/FlushJobResponse.ts b/specification/specs/x_pack/machine_learning/flush_job/FlushJobResponse.ts index cc04c39df8..cfec2338cf 100644 --- a/specification/specs/x_pack/machine_learning/flush_job/FlushJobResponse.ts +++ b/specification/specs/x_pack/machine_learning/flush_job/FlushJobResponse.ts @@ -1,3 +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. + */ + class FlushJobResponse extends ResponseBase { flushed: boolean } diff --git a/specification/specs/x_pack/machine_learning/forecast_job/ForecastJobRequest.ts b/specification/specs/x_pack/machine_learning/forecast_job/ForecastJobRequest.ts index 9dd735ca67..098001fe71 100644 --- a/specification/specs/x_pack/machine_learning/forecast_job/ForecastJobRequest.ts +++ b/specification/specs/x_pack/machine_learning/forecast_job/ForecastJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.forecast') class ForecastJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/forecast_job/ForecastJobResponse.ts b/specification/specs/x_pack/machine_learning/forecast_job/ForecastJobResponse.ts index d5cea45cf3..953bb2c588 100644 --- a/specification/specs/x_pack/machine_learning/forecast_job/ForecastJobResponse.ts +++ b/specification/specs/x_pack/machine_learning/forecast_job/ForecastJobResponse.ts @@ -1,3 +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. + */ + class ForecastJobResponse extends AcknowledgedResponseBase { forecast_id: string } diff --git a/specification/specs/x_pack/machine_learning/get_anomaly_records/GetAnomalyRecordsRequest.ts b/specification/specs/x_pack/machine_learning/get_anomaly_records/GetAnomalyRecordsRequest.ts index 59b92d87d9..ae0bfd2957 100644 --- a/specification/specs/x_pack/machine_learning/get_anomaly_records/GetAnomalyRecordsRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_anomaly_records/GetAnomalyRecordsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_records') class GetAnomalyRecordsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_anomaly_records/GetAnomalyRecordsResponse.ts b/specification/specs/x_pack/machine_learning/get_anomaly_records/GetAnomalyRecordsResponse.ts index b60c50bc05..43fe916092 100644 --- a/specification/specs/x_pack/machine_learning/get_anomaly_records/GetAnomalyRecordsResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_anomaly_records/GetAnomalyRecordsResponse.ts @@ -1,3 +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. + */ + class GetAnomalyRecordsResponse extends ResponseBase { count: long records: AnomalyRecord[] diff --git a/specification/specs/x_pack/machine_learning/get_buckets/GetBucketsRequest.ts b/specification/specs/x_pack/machine_learning/get_buckets/GetBucketsRequest.ts index 0d6e718870..bc108eb26a 100644 --- a/specification/specs/x_pack/machine_learning/get_buckets/GetBucketsRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_buckets/GetBucketsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_buckets') class GetBucketsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_buckets/GetBucketsResponse.ts b/specification/specs/x_pack/machine_learning/get_buckets/GetBucketsResponse.ts index 386af56151..840a1b6f9b 100644 --- a/specification/specs/x_pack/machine_learning/get_buckets/GetBucketsResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_buckets/GetBucketsResponse.ts @@ -1,3 +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. + */ + class GetBucketsResponse extends ResponseBase { buckets: ResultBucket[] count: long diff --git a/specification/specs/x_pack/machine_learning/get_calendar_events/GetCalendarEventsRequest.ts b/specification/specs/x_pack/machine_learning/get_calendar_events/GetCalendarEventsRequest.ts index 6419a242ce..0c0e07d57e 100644 --- a/specification/specs/x_pack/machine_learning/get_calendar_events/GetCalendarEventsRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_calendar_events/GetCalendarEventsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_calendar_events') class GetCalendarEventsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_calendar_events/GetCalendarEventsResponse.ts b/specification/specs/x_pack/machine_learning/get_calendar_events/GetCalendarEventsResponse.ts index cd74927358..12c5fadc10 100644 --- a/specification/specs/x_pack/machine_learning/get_calendar_events/GetCalendarEventsResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_calendar_events/GetCalendarEventsResponse.ts @@ -1,3 +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. + */ + class GetCalendarEventsResponse extends ResponseBase { count: integer events: ScheduledEvent[] diff --git a/specification/specs/x_pack/machine_learning/get_calendars/Calendar.ts b/specification/specs/x_pack/machine_learning/get_calendars/Calendar.ts index f34ffaae19..d4983501a7 100644 --- a/specification/specs/x_pack/machine_learning/get_calendars/Calendar.ts +++ b/specification/specs/x_pack/machine_learning/get_calendars/Calendar.ts @@ -1,3 +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. + */ + class Calendar { calendar_id: string description: string diff --git a/specification/specs/x_pack/machine_learning/get_calendars/GetCalendarsRequest.ts b/specification/specs/x_pack/machine_learning/get_calendars/GetCalendarsRequest.ts index a4854b0c95..d9c2af3163 100644 --- a/specification/specs/x_pack/machine_learning/get_calendars/GetCalendarsRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_calendars/GetCalendarsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_calendars') class GetCalendarsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_calendars/GetCalendarsResponse.ts b/specification/specs/x_pack/machine_learning/get_calendars/GetCalendarsResponse.ts index 3030818dd5..5920ab90f4 100644 --- a/specification/specs/x_pack/machine_learning/get_calendars/GetCalendarsResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_calendars/GetCalendarsResponse.ts @@ -1,3 +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. + */ + class GetCalendarsResponse extends ResponseBase { calendars: Calendar[] count: long diff --git a/specification/specs/x_pack/machine_learning/get_categories/GetCategoriesRequest.ts b/specification/specs/x_pack/machine_learning/get_categories/GetCategoriesRequest.ts index b3868f651f..9d4129a084 100644 --- a/specification/specs/x_pack/machine_learning/get_categories/GetCategoriesRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_categories/GetCategoriesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_categories') class GetCategoriesRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_categories/GetCategoriesResponse.ts b/specification/specs/x_pack/machine_learning/get_categories/GetCategoriesResponse.ts index 09318c66b3..9f13a2b5d9 100644 --- a/specification/specs/x_pack/machine_learning/get_categories/GetCategoriesResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_categories/GetCategoriesResponse.ts @@ -1,3 +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. + */ + class GetCategoriesResponse extends ResponseBase { categories: CategoryDefinition[] count: long diff --git a/specification/specs/x_pack/machine_learning/get_datafeed_stats/GetDatafeedStatsRequest.ts b/specification/specs/x_pack/machine_learning/get_datafeed_stats/GetDatafeedStatsRequest.ts index f388c142e3..3dcc95bb22 100644 --- a/specification/specs/x_pack/machine_learning/get_datafeed_stats/GetDatafeedStatsRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_datafeed_stats/GetDatafeedStatsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_datafeed_stats') class GetDatafeedStatsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_datafeed_stats/GetDatafeedStatsResponse.ts b/specification/specs/x_pack/machine_learning/get_datafeed_stats/GetDatafeedStatsResponse.ts index cdfd24fae4..aa119f9e49 100644 --- a/specification/specs/x_pack/machine_learning/get_datafeed_stats/GetDatafeedStatsResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_datafeed_stats/GetDatafeedStatsResponse.ts @@ -1,3 +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. + */ + class GetDatafeedStatsResponse extends ResponseBase { count: long datafeeds: DatafeedStats[] diff --git a/specification/specs/x_pack/machine_learning/get_datafeeds/GetDatafeedsRequest.ts b/specification/specs/x_pack/machine_learning/get_datafeeds/GetDatafeedsRequest.ts index b79441c43d..dd2c25c81a 100644 --- a/specification/specs/x_pack/machine_learning/get_datafeeds/GetDatafeedsRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_datafeeds/GetDatafeedsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_datafeeds') class GetDatafeedsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_datafeeds/GetDatafeedsResponse.ts b/specification/specs/x_pack/machine_learning/get_datafeeds/GetDatafeedsResponse.ts index 3a7468fbb6..f7f75f31e7 100644 --- a/specification/specs/x_pack/machine_learning/get_datafeeds/GetDatafeedsResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_datafeeds/GetDatafeedsResponse.ts @@ -1,3 +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. + */ + class GetDatafeedsResponse extends ResponseBase { count: long datafeeds: DatafeedConfig[] diff --git a/specification/specs/x_pack/machine_learning/get_filters/Filter.ts b/specification/specs/x_pack/machine_learning/get_filters/Filter.ts index 37ab204b20..0a0d5a7ff6 100644 --- a/specification/specs/x_pack/machine_learning/get_filters/Filter.ts +++ b/specification/specs/x_pack/machine_learning/get_filters/Filter.ts @@ -1,3 +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. + */ + class Filter { description: string filter_id: string diff --git a/specification/specs/x_pack/machine_learning/get_filters/GetFiltersRequest.ts b/specification/specs/x_pack/machine_learning/get_filters/GetFiltersRequest.ts index 64c90d00bb..f0b0d50361 100644 --- a/specification/specs/x_pack/machine_learning/get_filters/GetFiltersRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_filters/GetFiltersRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_filters') class GetFiltersRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_filters/GetFiltersResponse.ts b/specification/specs/x_pack/machine_learning/get_filters/GetFiltersResponse.ts index 2c331988a0..071b59e24c 100644 --- a/specification/specs/x_pack/machine_learning/get_filters/GetFiltersResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_filters/GetFiltersResponse.ts @@ -1,3 +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. + */ + class GetFiltersResponse extends ResponseBase { count: long filters: Filter[] diff --git a/specification/specs/x_pack/machine_learning/get_influencers/GetInfluencersRequest.ts b/specification/specs/x_pack/machine_learning/get_influencers/GetInfluencersRequest.ts index a49d85a9a4..b101569529 100644 --- a/specification/specs/x_pack/machine_learning/get_influencers/GetInfluencersRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_influencers/GetInfluencersRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_influencers') class GetInfluencersRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_influencers/GetInfluencersResponse.ts b/specification/specs/x_pack/machine_learning/get_influencers/GetInfluencersResponse.ts index ab0840b5fb..e6f0f94c22 100644 --- a/specification/specs/x_pack/machine_learning/get_influencers/GetInfluencersResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_influencers/GetInfluencersResponse.ts @@ -1,3 +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. + */ + class GetInfluencersResponse extends ResponseBase { count: long influencers: BucketInfluencer[] diff --git a/specification/specs/x_pack/machine_learning/get_job_stats/GetJobStatsRequest.ts b/specification/specs/x_pack/machine_learning/get_job_stats/GetJobStatsRequest.ts index b73d06b8ad..602213031a 100644 --- a/specification/specs/x_pack/machine_learning/get_job_stats/GetJobStatsRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_job_stats/GetJobStatsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_job_stats') class GetJobStatsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_job_stats/GetJobStatsResponse.ts b/specification/specs/x_pack/machine_learning/get_job_stats/GetJobStatsResponse.ts index 43f8eae948..6b37d07e9f 100644 --- a/specification/specs/x_pack/machine_learning/get_job_stats/GetJobStatsResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_job_stats/GetJobStatsResponse.ts @@ -1,3 +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. + */ + class GetJobStatsResponse extends ResponseBase { count: long jobs: JobStats[] diff --git a/specification/specs/x_pack/machine_learning/get_jobs/GetJobsRequest.ts b/specification/specs/x_pack/machine_learning/get_jobs/GetJobsRequest.ts index 92323606e7..c569afb39e 100644 --- a/specification/specs/x_pack/machine_learning/get_jobs/GetJobsRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_jobs/GetJobsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_jobs') class GetJobsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_jobs/GetJobsResponse.ts b/specification/specs/x_pack/machine_learning/get_jobs/GetJobsResponse.ts index f2f3c57536..978b5559c6 100644 --- a/specification/specs/x_pack/machine_learning/get_jobs/GetJobsResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_jobs/GetJobsResponse.ts @@ -1,3 +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. + */ + class GetJobsResponse extends ResponseBase { count: long jobs: Job[] diff --git a/specification/specs/x_pack/machine_learning/get_model_snapshots/GetModelSnapshotsRequest.ts b/specification/specs/x_pack/machine_learning/get_model_snapshots/GetModelSnapshotsRequest.ts index 5cc9fd45fa..e5d0a240cc 100644 --- a/specification/specs/x_pack/machine_learning/get_model_snapshots/GetModelSnapshotsRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_model_snapshots/GetModelSnapshotsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_model_snapshots') class GetModelSnapshotsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_model_snapshots/GetModelSnapshotsResponse.ts b/specification/specs/x_pack/machine_learning/get_model_snapshots/GetModelSnapshotsResponse.ts index b5dc8feaab..6340485f04 100644 --- a/specification/specs/x_pack/machine_learning/get_model_snapshots/GetModelSnapshotsResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_model_snapshots/GetModelSnapshotsResponse.ts @@ -1,3 +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. + */ + class GetModelSnapshotsResponse extends ResponseBase { count: long model_snapshots: ModelSnapshot[] diff --git a/specification/specs/x_pack/machine_learning/get_overall_buckets/GetOverallBucketsRequest.ts b/specification/specs/x_pack/machine_learning/get_overall_buckets/GetOverallBucketsRequest.ts index b95dbae175..e3376569a2 100644 --- a/specification/specs/x_pack/machine_learning/get_overall_buckets/GetOverallBucketsRequest.ts +++ b/specification/specs/x_pack/machine_learning/get_overall_buckets/GetOverallBucketsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.get_overall_buckets') class GetOverallBucketsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/get_overall_buckets/GetOverallBucketsResponse.ts b/specification/specs/x_pack/machine_learning/get_overall_buckets/GetOverallBucketsResponse.ts index 828ff153cf..e5a47cc2e7 100644 --- a/specification/specs/x_pack/machine_learning/get_overall_buckets/GetOverallBucketsResponse.ts +++ b/specification/specs/x_pack/machine_learning/get_overall_buckets/GetOverallBucketsResponse.ts @@ -1,3 +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. + */ + class GetOverallBucketsResponse extends ResponseBase { count: long overall_buckets: OverallBucket[] diff --git a/specification/specs/x_pack/machine_learning/job/Page.ts b/specification/specs/x_pack/machine_learning/job/Page.ts index a46e742713..dd02f73602 100644 --- a/specification/specs/x_pack/machine_learning/job/Page.ts +++ b/specification/specs/x_pack/machine_learning/job/Page.ts @@ -1,3 +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. + */ + class Page { from: integer size: integer diff --git a/specification/specs/x_pack/machine_learning/job/config/AnalysisConfig.ts b/specification/specs/x_pack/machine_learning/job/config/AnalysisConfig.ts index 4ca5b7dba9..ab343e74f6 100644 --- a/specification/specs/x_pack/machine_learning/job/config/AnalysisConfig.ts +++ b/specification/specs/x_pack/machine_learning/job/config/AnalysisConfig.ts @@ -1,3 +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. + */ + class AnalysisConfig { bucket_span: Time categorization_field_name: Field diff --git a/specification/specs/x_pack/machine_learning/job/config/AnalysisLimits.ts b/specification/specs/x_pack/machine_learning/job/config/AnalysisLimits.ts index 1088cde526..41f7c8bea5 100644 --- a/specification/specs/x_pack/machine_learning/job/config/AnalysisLimits.ts +++ b/specification/specs/x_pack/machine_learning/job/config/AnalysisLimits.ts @@ -1,3 +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. + */ + class AnalysisLimits { categorization_examples_limit: long model_memory_limit: string diff --git a/specification/specs/x_pack/machine_learning/job/config/AnalysisMemoryLimit.ts b/specification/specs/x_pack/machine_learning/job/config/AnalysisMemoryLimit.ts index d93727952d..a62b88e557 100644 --- a/specification/specs/x_pack/machine_learning/job/config/AnalysisMemoryLimit.ts +++ b/specification/specs/x_pack/machine_learning/job/config/AnalysisMemoryLimit.ts @@ -1,3 +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. + */ + class AnalysisMemoryLimit { model_memory_limit: string } diff --git a/specification/specs/x_pack/machine_learning/job/config/DataDescription.ts b/specification/specs/x_pack/machine_learning/job/config/DataDescription.ts index b27f167b50..dd606ec19b 100644 --- a/specification/specs/x_pack/machine_learning/job/config/DataDescription.ts +++ b/specification/specs/x_pack/machine_learning/job/config/DataDescription.ts @@ -1,3 +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. + */ + class DataDescription { format: string time_field: Field diff --git a/specification/specs/x_pack/machine_learning/job/config/JobForecastStatistics.ts b/specification/specs/x_pack/machine_learning/job/config/JobForecastStatistics.ts index 9bae7de1c4..f1ac3c56a8 100644 --- a/specification/specs/x_pack/machine_learning/job/config/JobForecastStatistics.ts +++ b/specification/specs/x_pack/machine_learning/job/config/JobForecastStatistics.ts @@ -1,3 +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. + */ + class JobForecastStatistics { memory_bytes: JobStatistics processing_time_ms: JobStatistics diff --git a/specification/specs/x_pack/machine_learning/job/config/JobState.ts b/specification/specs/x_pack/machine_learning/job/config/JobState.ts index 114d558509..c241f926f7 100644 --- a/specification/specs/x_pack/machine_learning/job/config/JobState.ts +++ b/specification/specs/x_pack/machine_learning/job/config/JobState.ts @@ -1,3 +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. + */ + enum JobState { closing = 0, closed = 1, diff --git a/specification/specs/x_pack/machine_learning/job/config/JobStats.ts b/specification/specs/x_pack/machine_learning/job/config/JobStats.ts index 5d4a84e7de..30db038ea4 100644 --- a/specification/specs/x_pack/machine_learning/job/config/JobStats.ts +++ b/specification/specs/x_pack/machine_learning/job/config/JobStats.ts @@ -1,3 +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. + */ + class JobStats { assignment_explanation: string data_counts: DataCounts diff --git a/specification/specs/x_pack/machine_learning/job/config/MemoryStatus.ts b/specification/specs/x_pack/machine_learning/job/config/MemoryStatus.ts index 729a859152..29687be3fd 100644 --- a/specification/specs/x_pack/machine_learning/job/config/MemoryStatus.ts +++ b/specification/specs/x_pack/machine_learning/job/config/MemoryStatus.ts @@ -1,3 +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. + */ + enum MemoryStatus { ok = 0, soft_limit = 1, diff --git a/specification/specs/x_pack/machine_learning/job/config/ModelPlotConfig.ts b/specification/specs/x_pack/machine_learning/job/config/ModelPlotConfig.ts index 0f5055b3ff..30ab64915a 100644 --- a/specification/specs/x_pack/machine_learning/job/config/ModelPlotConfig.ts +++ b/specification/specs/x_pack/machine_learning/job/config/ModelPlotConfig.ts @@ -1,3 +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. + */ + class ModelPlotConfig { terms: Field[] } diff --git a/specification/specs/x_pack/machine_learning/job/config/ModelPlotConfigEnabled.ts b/specification/specs/x_pack/machine_learning/job/config/ModelPlotConfigEnabled.ts index 8b88fd151d..ecd1f24099 100644 --- a/specification/specs/x_pack/machine_learning/job/config/ModelPlotConfigEnabled.ts +++ b/specification/specs/x_pack/machine_learning/job/config/ModelPlotConfigEnabled.ts @@ -1,3 +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. + */ + class ModelPlotConfigEnabled { enabled: boolean } diff --git a/specification/specs/x_pack/machine_learning/job/config/TimingStats.ts b/specification/specs/x_pack/machine_learning/job/config/TimingStats.ts index 7e86a4febe..a537ead91e 100644 --- a/specification/specs/x_pack/machine_learning/job/config/TimingStats.ts +++ b/specification/specs/x_pack/machine_learning/job/config/TimingStats.ts @@ -1,3 +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. + */ + class TimingStats { average_bucket_processing_time_ms: double bucket_count: long diff --git a/specification/specs/x_pack/machine_learning/job/detectors/AppliesTo.ts b/specification/specs/x_pack/machine_learning/job/detectors/AppliesTo.ts index 8ca0b617bb..75247da138 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/AppliesTo.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/AppliesTo.ts @@ -1,3 +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. + */ + enum AppliesTo { actual = 0, typical = 1, diff --git a/specification/specs/x_pack/machine_learning/job/detectors/ConditionOperator.ts b/specification/specs/x_pack/machine_learning/job/detectors/ConditionOperator.ts index 82257c79f8..61c114bc94 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/ConditionOperator.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/ConditionOperator.ts @@ -1,3 +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. + */ + enum ConditionOperator { gt = 0, gte = 1, diff --git a/specification/specs/x_pack/machine_learning/job/detectors/CountFunction.ts b/specification/specs/x_pack/machine_learning/job/detectors/CountFunction.ts index b7d32c12b7..48a0504459 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/CountFunction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/CountFunction.ts @@ -1,3 +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. + */ + enum CountFunction { Count = 0, HighCount = 1, diff --git a/specification/specs/x_pack/machine_learning/job/detectors/DetectionRule.ts b/specification/specs/x_pack/machine_learning/job/detectors/DetectionRule.ts index 455f748926..54db12cf8e 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/DetectionRule.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/DetectionRule.ts @@ -1,3 +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. + */ + class DetectionRule { actions: RuleAction[] conditions: RuleCondition[] diff --git a/specification/specs/x_pack/machine_learning/job/detectors/Detector.ts b/specification/specs/x_pack/machine_learning/job/detectors/Detector.ts index d3194ad478..fcd0630238 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/Detector.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/Detector.ts @@ -1,3 +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. + */ + @class_serializer('DetectorFormatter') class Detector { custom_rules: DetectionRule[] diff --git a/specification/specs/x_pack/machine_learning/job/detectors/DistinctCountFunction.ts b/specification/specs/x_pack/machine_learning/job/detectors/DistinctCountFunction.ts index 130366922a..fe100dad4b 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/DistinctCountFunction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/DistinctCountFunction.ts @@ -1,3 +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. + */ + enum DistinctCountFunction { DistinctCount = 0, LowDistinctCount = 1, diff --git a/specification/specs/x_pack/machine_learning/job/detectors/FilterRef.ts b/specification/specs/x_pack/machine_learning/job/detectors/FilterRef.ts index b40d19d765..8b29c4ae8f 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/FilterRef.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/FilterRef.ts @@ -1,3 +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. + */ + class FilterRef { filter_id: Id filter_type: RuleFilterType diff --git a/specification/specs/x_pack/machine_learning/job/detectors/GeographicFunction.ts b/specification/specs/x_pack/machine_learning/job/detectors/GeographicFunction.ts index 6c82f4a299..ca930266d9 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/GeographicFunction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/GeographicFunction.ts @@ -1,3 +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. + */ + enum GeographicFunction { LatLong = 0 } diff --git a/specification/specs/x_pack/machine_learning/job/detectors/InfoContentFunction.ts b/specification/specs/x_pack/machine_learning/job/detectors/InfoContentFunction.ts index 59b1cc3db7..e6e3b6225b 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/InfoContentFunction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/InfoContentFunction.ts @@ -1,3 +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. + */ + enum InfoContentFunction { InfoContent = 0, HighInfoContent = 1, diff --git a/specification/specs/x_pack/machine_learning/job/detectors/MetricFunction.ts b/specification/specs/x_pack/machine_learning/job/detectors/MetricFunction.ts index 2071dce591..85dcf0608f 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/MetricFunction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/MetricFunction.ts @@ -1,3 +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. + */ + enum MetricFunction { Min = 0, Max = 1, diff --git a/specification/specs/x_pack/machine_learning/job/detectors/NonNullSumFunction.ts b/specification/specs/x_pack/machine_learning/job/detectors/NonNullSumFunction.ts index d8cae9a22d..68c904fec5 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/NonNullSumFunction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/NonNullSumFunction.ts @@ -1,3 +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. + */ + enum NonNullSumFunction { NonNullSum = 0, HighNonNullSum = 1, diff --git a/specification/specs/x_pack/machine_learning/job/detectors/NonZeroCountFunction.ts b/specification/specs/x_pack/machine_learning/job/detectors/NonZeroCountFunction.ts index 478279e398..03677504da 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/NonZeroCountFunction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/NonZeroCountFunction.ts @@ -1,3 +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. + */ + enum NonZeroCountFunction { NonZeroCount = 0, LowNonZeroCount = 1, diff --git a/specification/specs/x_pack/machine_learning/job/detectors/RareFunction.ts b/specification/specs/x_pack/machine_learning/job/detectors/RareFunction.ts index 57bf6cc276..dfdd8e8ce7 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/RareFunction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/RareFunction.ts @@ -1,3 +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. + */ + enum RareFunction { Rare = 0, FreqRare = 1 diff --git a/specification/specs/x_pack/machine_learning/job/detectors/RuleAction.ts b/specification/specs/x_pack/machine_learning/job/detectors/RuleAction.ts index ddcfb6d83f..31778869dd 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/RuleAction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/RuleAction.ts @@ -1,3 +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. + */ + enum RuleAction { skip_result = 0, skip_model_update = 1 diff --git a/specification/specs/x_pack/machine_learning/job/detectors/RuleCondition.ts b/specification/specs/x_pack/machine_learning/job/detectors/RuleCondition.ts index b1ba1ecad6..2413ec386e 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/RuleCondition.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/RuleCondition.ts @@ -1,3 +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. + */ + class RuleCondition { applies_to: AppliesTo operator: ConditionOperator diff --git a/specification/specs/x_pack/machine_learning/job/detectors/RuleFilterType.ts b/specification/specs/x_pack/machine_learning/job/detectors/RuleFilterType.ts index 4f258c5272..049edf0434 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/RuleFilterType.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/RuleFilterType.ts @@ -1,3 +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. + */ + enum RuleFilterType { include = 0, exclude = 1 diff --git a/specification/specs/x_pack/machine_learning/job/detectors/SumFunction.ts b/specification/specs/x_pack/machine_learning/job/detectors/SumFunction.ts index c69827ec9f..c72dd5f293 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/SumFunction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/SumFunction.ts @@ -1,3 +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. + */ + enum SumFunction { Sum = 0, HighSum = 1, diff --git a/specification/specs/x_pack/machine_learning/job/detectors/TimeFunction.ts b/specification/specs/x_pack/machine_learning/job/detectors/TimeFunction.ts index f3cd208bf0..09825d0f73 100644 --- a/specification/specs/x_pack/machine_learning/job/detectors/TimeFunction.ts +++ b/specification/specs/x_pack/machine_learning/job/detectors/TimeFunction.ts @@ -1,3 +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. + */ + enum TimeFunction { TimeOfDay = 0, TimeOfWeek = 1 diff --git a/specification/specs/x_pack/machine_learning/job/process/DataCounts.ts b/specification/specs/x_pack/machine_learning/job/process/DataCounts.ts index eaece63ce0..03da7d3ce7 100644 --- a/specification/specs/x_pack/machine_learning/job/process/DataCounts.ts +++ b/specification/specs/x_pack/machine_learning/job/process/DataCounts.ts @@ -1,3 +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. + */ + class DataCounts { bucket_count: long /** @prop_serializer NullableDateTimeOffsetEpochMillisecondsFormatter */ diff --git a/specification/specs/x_pack/machine_learning/job/process/ModelSizeStats.ts b/specification/specs/x_pack/machine_learning/job/process/ModelSizeStats.ts index a579d9b2c4..4269ac3549 100644 --- a/specification/specs/x_pack/machine_learning/job/process/ModelSizeStats.ts +++ b/specification/specs/x_pack/machine_learning/job/process/ModelSizeStats.ts @@ -1,3 +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. + */ + class ModelSizeStats { bucket_allocation_failures_count: long job_id: string diff --git a/specification/specs/x_pack/machine_learning/job/process/ModelSnapshot.ts b/specification/specs/x_pack/machine_learning/job/process/ModelSnapshot.ts index 9d09db309b..e533711cc3 100644 --- a/specification/specs/x_pack/machine_learning/job/process/ModelSnapshot.ts +++ b/specification/specs/x_pack/machine_learning/job/process/ModelSnapshot.ts @@ -1,3 +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. + */ + class ModelSnapshot { description: string job_id: string diff --git a/specification/specs/x_pack/machine_learning/job/results/AnomalyCause.ts b/specification/specs/x_pack/machine_learning/job/results/AnomalyCause.ts index 5642b69148..ad3c3393b9 100644 --- a/specification/specs/x_pack/machine_learning/job/results/AnomalyCause.ts +++ b/specification/specs/x_pack/machine_learning/job/results/AnomalyCause.ts @@ -1,3 +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. + */ + class AnomalyCause { actual: double[] by_field_name: string diff --git a/specification/specs/x_pack/machine_learning/job/results/AnomalyRecord.ts b/specification/specs/x_pack/machine_learning/job/results/AnomalyRecord.ts index aa9fccdd4b..b8b28299b4 100644 --- a/specification/specs/x_pack/machine_learning/job/results/AnomalyRecord.ts +++ b/specification/specs/x_pack/machine_learning/job/results/AnomalyRecord.ts @@ -1,3 +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. + */ + class AnomalyRecord { actual: double[] bucket_span: Time diff --git a/specification/specs/x_pack/machine_learning/job/results/BucketInfluencer.ts b/specification/specs/x_pack/machine_learning/job/results/BucketInfluencer.ts index 364c96a8b4..7937b40d1c 100644 --- a/specification/specs/x_pack/machine_learning/job/results/BucketInfluencer.ts +++ b/specification/specs/x_pack/machine_learning/job/results/BucketInfluencer.ts @@ -1,3 +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. + */ + class BucketInfluencer { bucket_span: long influencer_field_name: string diff --git a/specification/specs/x_pack/machine_learning/job/results/CategoryDefinition.ts b/specification/specs/x_pack/machine_learning/job/results/CategoryDefinition.ts index f5d58f4b79..438b5af749 100644 --- a/specification/specs/x_pack/machine_learning/job/results/CategoryDefinition.ts +++ b/specification/specs/x_pack/machine_learning/job/results/CategoryDefinition.ts @@ -1,3 +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. + */ + class CategoryDefinition { category_id: long examples: string[] diff --git a/specification/specs/x_pack/machine_learning/job/results/Influence.ts b/specification/specs/x_pack/machine_learning/job/results/Influence.ts index 44888dbfab..155b9e87f6 100644 --- a/specification/specs/x_pack/machine_learning/job/results/Influence.ts +++ b/specification/specs/x_pack/machine_learning/job/results/Influence.ts @@ -1,3 +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. + */ + class Influence { influencer_field_name: string influencer_field_values: string[] diff --git a/specification/specs/x_pack/machine_learning/job/results/OverallBucket.ts b/specification/specs/x_pack/machine_learning/job/results/OverallBucket.ts index 31c37b0a0d..8c1b0edf0a 100644 --- a/specification/specs/x_pack/machine_learning/job/results/OverallBucket.ts +++ b/specification/specs/x_pack/machine_learning/job/results/OverallBucket.ts @@ -1,3 +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. + */ + class OverallBucket { bucket_span: long is_interim: boolean diff --git a/specification/specs/x_pack/machine_learning/job/results/OverallBucketJobInfo.ts b/specification/specs/x_pack/machine_learning/job/results/OverallBucketJobInfo.ts index 2e91e365af..ea9c88ebba 100644 --- a/specification/specs/x_pack/machine_learning/job/results/OverallBucketJobInfo.ts +++ b/specification/specs/x_pack/machine_learning/job/results/OverallBucketJobInfo.ts @@ -1,3 +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. + */ + class OverallBucketJobInfo { job_id: string max_anomaly_score: double diff --git a/specification/specs/x_pack/machine_learning/job/results/PartitionScore.ts b/specification/specs/x_pack/machine_learning/job/results/PartitionScore.ts index 81eae51a3e..b78a7a311f 100644 --- a/specification/specs/x_pack/machine_learning/job/results/PartitionScore.ts +++ b/specification/specs/x_pack/machine_learning/job/results/PartitionScore.ts @@ -1,3 +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. + */ + class PartitionScore { initial_record_score: double partition_field_name: string diff --git a/specification/specs/x_pack/machine_learning/job/results/ResultBucket.ts b/specification/specs/x_pack/machine_learning/job/results/ResultBucket.ts index 17fefdc3c5..b00094aacd 100644 --- a/specification/specs/x_pack/machine_learning/job/results/ResultBucket.ts +++ b/specification/specs/x_pack/machine_learning/job/results/ResultBucket.ts @@ -1,3 +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. + */ + class ResultBucket { anomaly_score: double bucket_influencers: BucketInfluencer[] diff --git a/specification/specs/x_pack/machine_learning/machine_learning_info/AnomalyDetectors.ts b/specification/specs/x_pack/machine_learning/machine_learning_info/AnomalyDetectors.ts index 7cf778bc84..64c0b5f502 100644 --- a/specification/specs/x_pack/machine_learning/machine_learning_info/AnomalyDetectors.ts +++ b/specification/specs/x_pack/machine_learning/machine_learning_info/AnomalyDetectors.ts @@ -1,3 +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. + */ + class AnomalyDetectors { categorization_analyzer: CategorizationAnalyzer categorization_examples_limit: integer diff --git a/specification/specs/x_pack/machine_learning/machine_learning_info/CategorizationAnalyzer.ts b/specification/specs/x_pack/machine_learning/machine_learning_info/CategorizationAnalyzer.ts index 8343b5204e..adbaa3e890 100644 --- a/specification/specs/x_pack/machine_learning/machine_learning_info/CategorizationAnalyzer.ts +++ b/specification/specs/x_pack/machine_learning/machine_learning_info/CategorizationAnalyzer.ts @@ -1,3 +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. + */ + class CategorizationAnalyzer { filter: TokenFilterBase[] tokenizer: string diff --git a/specification/specs/x_pack/machine_learning/machine_learning_info/Datafeeds.ts b/specification/specs/x_pack/machine_learning/machine_learning_info/Datafeeds.ts index 6bce3f3cb7..0824976183 100644 --- a/specification/specs/x_pack/machine_learning/machine_learning_info/Datafeeds.ts +++ b/specification/specs/x_pack/machine_learning/machine_learning_info/Datafeeds.ts @@ -1,3 +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. + */ + class Datafeeds { scroll_size: integer } diff --git a/specification/specs/x_pack/machine_learning/machine_learning_info/Defaults.ts b/specification/specs/x_pack/machine_learning/machine_learning_info/Defaults.ts index 4dacf4ccb1..c2fc725c93 100644 --- a/specification/specs/x_pack/machine_learning/machine_learning_info/Defaults.ts +++ b/specification/specs/x_pack/machine_learning/machine_learning_info/Defaults.ts @@ -1,3 +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. + */ + class Defaults { anomaly_detectors: AnomalyDetectors datafeeds: Datafeeds diff --git a/specification/specs/x_pack/machine_learning/machine_learning_info/Limits.ts b/specification/specs/x_pack/machine_learning/machine_learning_info/Limits.ts index 8c51fddbe9..fa16772a72 100644 --- a/specification/specs/x_pack/machine_learning/machine_learning_info/Limits.ts +++ b/specification/specs/x_pack/machine_learning/machine_learning_info/Limits.ts @@ -1,3 +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. + */ + class Limits { max_model_memory_limit: string } diff --git a/specification/specs/x_pack/machine_learning/machine_learning_info/MachineLearningInfoRequest.ts b/specification/specs/x_pack/machine_learning/machine_learning_info/MachineLearningInfoRequest.ts index 17c30f98bc..3ec5265f48 100644 --- a/specification/specs/x_pack/machine_learning/machine_learning_info/MachineLearningInfoRequest.ts +++ b/specification/specs/x_pack/machine_learning/machine_learning_info/MachineLearningInfoRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.info') class MachineLearningInfoRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/machine_learning/machine_learning_info/MachineLearningInfoResponse.ts b/specification/specs/x_pack/machine_learning/machine_learning_info/MachineLearningInfoResponse.ts index 95a5f59c12..0de377a479 100644 --- a/specification/specs/x_pack/machine_learning/machine_learning_info/MachineLearningInfoResponse.ts +++ b/specification/specs/x_pack/machine_learning/machine_learning_info/MachineLearningInfoResponse.ts @@ -1,3 +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. + */ + class MachineLearningInfoResponse extends ResponseBase { defaults: Defaults limits: Limits diff --git a/specification/specs/x_pack/machine_learning/open_job/OpenJobRequest.ts b/specification/specs/x_pack/machine_learning/open_job/OpenJobRequest.ts index c035d6691a..b994f18431 100644 --- a/specification/specs/x_pack/machine_learning/open_job/OpenJobRequest.ts +++ b/specification/specs/x_pack/machine_learning/open_job/OpenJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.open_job') class OpenJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/open_job/OpenJobResponse.ts b/specification/specs/x_pack/machine_learning/open_job/OpenJobResponse.ts index 4581a9ce0c..ff61f306b0 100644 --- a/specification/specs/x_pack/machine_learning/open_job/OpenJobResponse.ts +++ b/specification/specs/x_pack/machine_learning/open_job/OpenJobResponse.ts @@ -1,3 +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. + */ + class OpenJobResponse extends ResponseBase { opened: boolean } diff --git a/specification/specs/x_pack/machine_learning/post_calendar_events/PostCalendarEventsRequest.ts b/specification/specs/x_pack/machine_learning/post_calendar_events/PostCalendarEventsRequest.ts index c2d364b897..43d03a9461 100644 --- a/specification/specs/x_pack/machine_learning/post_calendar_events/PostCalendarEventsRequest.ts +++ b/specification/specs/x_pack/machine_learning/post_calendar_events/PostCalendarEventsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.post_calendar_events') class PostCalendarEventsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/post_calendar_events/PostCalendarEventsResponse.ts b/specification/specs/x_pack/machine_learning/post_calendar_events/PostCalendarEventsResponse.ts index 9acc480cdd..a698742884 100644 --- a/specification/specs/x_pack/machine_learning/post_calendar_events/PostCalendarEventsResponse.ts +++ b/specification/specs/x_pack/machine_learning/post_calendar_events/PostCalendarEventsResponse.ts @@ -1,3 +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. + */ + class PostCalendarEventsResponse extends ResponseBase { events: ScheduledEvent[] } diff --git a/specification/specs/x_pack/machine_learning/post_calendar_events/ScheduledEvent.ts b/specification/specs/x_pack/machine_learning/post_calendar_events/ScheduledEvent.ts index 0360e916db..6126191493 100644 --- a/specification/specs/x_pack/machine_learning/post_calendar_events/ScheduledEvent.ts +++ b/specification/specs/x_pack/machine_learning/post_calendar_events/ScheduledEvent.ts @@ -1,3 +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. + */ + class ScheduledEvent { calendar_id: Id description: string diff --git a/specification/specs/x_pack/machine_learning/post_job_data/PostJobDataRequest.ts b/specification/specs/x_pack/machine_learning/post_job_data/PostJobDataRequest.ts index dd09a1d6ef..22f777885b 100644 --- a/specification/specs/x_pack/machine_learning/post_job_data/PostJobDataRequest.ts +++ b/specification/specs/x_pack/machine_learning/post_job_data/PostJobDataRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.post_data') @class_serializer('PostJobDataFormatter') class PostJobDataRequest extends RequestBase { diff --git a/specification/specs/x_pack/machine_learning/post_job_data/PostJobDataResponse.ts b/specification/specs/x_pack/machine_learning/post_job_data/PostJobDataResponse.ts index bbaafc4a49..2af178efd8 100644 --- a/specification/specs/x_pack/machine_learning/post_job_data/PostJobDataResponse.ts +++ b/specification/specs/x_pack/machine_learning/post_job_data/PostJobDataResponse.ts @@ -1,3 +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. + */ + class PostJobDataResponse extends ResponseBase { bucket_count: long /** @prop_serializer NullableDateTimeOffsetEpochMillisecondsFormatter */ diff --git a/specification/specs/x_pack/machine_learning/preview_datafeed/PreviewDatafeedRequest.ts b/specification/specs/x_pack/machine_learning/preview_datafeed/PreviewDatafeedRequest.ts index da65340ee9..5c1f465d86 100644 --- a/specification/specs/x_pack/machine_learning/preview_datafeed/PreviewDatafeedRequest.ts +++ b/specification/specs/x_pack/machine_learning/preview_datafeed/PreviewDatafeedRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.preview_datafeed') class PreviewDatafeedRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/preview_datafeed/PreviewDatafeedResponse.ts b/specification/specs/x_pack/machine_learning/preview_datafeed/PreviewDatafeedResponse.ts index b72cc2fe64..1da9981c3a 100644 --- a/specification/specs/x_pack/machine_learning/preview_datafeed/PreviewDatafeedResponse.ts +++ b/specification/specs/x_pack/machine_learning/preview_datafeed/PreviewDatafeedResponse.ts @@ -1,3 +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. + */ + class PreviewDatafeedResponse extends ResponseBase { data: TDocument[] } diff --git a/specification/specs/x_pack/machine_learning/put_calendar/PutCalendarRequest.ts b/specification/specs/x_pack/machine_learning/put_calendar/PutCalendarRequest.ts index b899782fa6..fc88a1ca6f 100644 --- a/specification/specs/x_pack/machine_learning/put_calendar/PutCalendarRequest.ts +++ b/specification/specs/x_pack/machine_learning/put_calendar/PutCalendarRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.put_calendar') class PutCalendarRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/put_calendar/PutCalendarResponse.ts b/specification/specs/x_pack/machine_learning/put_calendar/PutCalendarResponse.ts index 6bea118f96..a6b2d987c7 100644 --- a/specification/specs/x_pack/machine_learning/put_calendar/PutCalendarResponse.ts +++ b/specification/specs/x_pack/machine_learning/put_calendar/PutCalendarResponse.ts @@ -1,3 +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. + */ + class PutCalendarResponse extends ResponseBase { calendar_id: string description: string diff --git a/specification/specs/x_pack/machine_learning/put_calendar_job/PutCalendarJobRequest.ts b/specification/specs/x_pack/machine_learning/put_calendar_job/PutCalendarJobRequest.ts index 458ff47a02..a2f00710ef 100644 --- a/specification/specs/x_pack/machine_learning/put_calendar_job/PutCalendarJobRequest.ts +++ b/specification/specs/x_pack/machine_learning/put_calendar_job/PutCalendarJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.put_calendar_job') class PutCalendarJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/put_calendar_job/PutCalendarJobResponse.ts b/specification/specs/x_pack/machine_learning/put_calendar_job/PutCalendarJobResponse.ts index 3ada0a3599..64479952da 100644 --- a/specification/specs/x_pack/machine_learning/put_calendar_job/PutCalendarJobResponse.ts +++ b/specification/specs/x_pack/machine_learning/put_calendar_job/PutCalendarJobResponse.ts @@ -1,3 +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. + */ + class PutCalendarJobResponse extends ResponseBase { calendar_id: string description: string diff --git a/specification/specs/x_pack/machine_learning/put_datafeed/PutDatafeedRequest.ts b/specification/specs/x_pack/machine_learning/put_datafeed/PutDatafeedRequest.ts index 93becc4533..6361197a5d 100644 --- a/specification/specs/x_pack/machine_learning/put_datafeed/PutDatafeedRequest.ts +++ b/specification/specs/x_pack/machine_learning/put_datafeed/PutDatafeedRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.put_datafeed') class PutDatafeedRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/put_datafeed/PutDatafeedResponse.ts b/specification/specs/x_pack/machine_learning/put_datafeed/PutDatafeedResponse.ts index 331c61996f..8273d10089 100644 --- a/specification/specs/x_pack/machine_learning/put_datafeed/PutDatafeedResponse.ts +++ b/specification/specs/x_pack/machine_learning/put_datafeed/PutDatafeedResponse.ts @@ -1,3 +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. + */ + class PutDatafeedResponse extends ResponseBase { aggregations: Dictionary chunking_config: ChunkingConfig diff --git a/specification/specs/x_pack/machine_learning/put_filter/PutFilterRequest.ts b/specification/specs/x_pack/machine_learning/put_filter/PutFilterRequest.ts index 326bb14455..fe147d8f7f 100644 --- a/specification/specs/x_pack/machine_learning/put_filter/PutFilterRequest.ts +++ b/specification/specs/x_pack/machine_learning/put_filter/PutFilterRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.put_filter') class PutFilterRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/put_filter/PutFilterResponse.ts b/specification/specs/x_pack/machine_learning/put_filter/PutFilterResponse.ts index f2bc5ead0e..448ae78692 100644 --- a/specification/specs/x_pack/machine_learning/put_filter/PutFilterResponse.ts +++ b/specification/specs/x_pack/machine_learning/put_filter/PutFilterResponse.ts @@ -1,3 +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. + */ + class PutFilterResponse extends ResponseBase { description: string filter_id: string diff --git a/specification/specs/x_pack/machine_learning/put_job/ExcludeFrequent.ts b/specification/specs/x_pack/machine_learning/put_job/ExcludeFrequent.ts index 75c0601bf3..f74b249933 100644 --- a/specification/specs/x_pack/machine_learning/put_job/ExcludeFrequent.ts +++ b/specification/specs/x_pack/machine_learning/put_job/ExcludeFrequent.ts @@ -1,3 +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. + */ + enum ExcludeFrequent { all = 0, none = 1, diff --git a/specification/specs/x_pack/machine_learning/put_job/PutJobRequest.ts b/specification/specs/x_pack/machine_learning/put_job/PutJobRequest.ts index f9b6221c13..b5efc962f1 100644 --- a/specification/specs/x_pack/machine_learning/put_job/PutJobRequest.ts +++ b/specification/specs/x_pack/machine_learning/put_job/PutJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.put_job') class PutJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/put_job/PutJobResponse.ts b/specification/specs/x_pack/machine_learning/put_job/PutJobResponse.ts index 4b80d5db76..193783cdf4 100644 --- a/specification/specs/x_pack/machine_learning/put_job/PutJobResponse.ts +++ b/specification/specs/x_pack/machine_learning/put_job/PutJobResponse.ts @@ -1,3 +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. + */ + class PutJobResponse extends ResponseBase { allow_lazy_open: boolean analysis_config: AnalysisConfig diff --git a/specification/specs/x_pack/machine_learning/revert_model_snapshot/RevertModelSnapshotRequest.ts b/specification/specs/x_pack/machine_learning/revert_model_snapshot/RevertModelSnapshotRequest.ts index bdd5805710..f0549e31c2 100644 --- a/specification/specs/x_pack/machine_learning/revert_model_snapshot/RevertModelSnapshotRequest.ts +++ b/specification/specs/x_pack/machine_learning/revert_model_snapshot/RevertModelSnapshotRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.revert_model_snapshot') class RevertModelSnapshotRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/revert_model_snapshot/RevertModelSnapshotResponse.ts b/specification/specs/x_pack/machine_learning/revert_model_snapshot/RevertModelSnapshotResponse.ts index 9f4e1a46ce..9bae9937ad 100644 --- a/specification/specs/x_pack/machine_learning/revert_model_snapshot/RevertModelSnapshotResponse.ts +++ b/specification/specs/x_pack/machine_learning/revert_model_snapshot/RevertModelSnapshotResponse.ts @@ -1,3 +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. + */ + class RevertModelSnapshotResponse extends ResponseBase { model: ModelSnapshot } diff --git a/specification/specs/x_pack/machine_learning/set_upgrade_mode/SetUpgradeModeRequest.ts b/specification/specs/x_pack/machine_learning/set_upgrade_mode/SetUpgradeModeRequest.ts index b16b236101..dfd4a4c161 100644 --- a/specification/specs/x_pack/machine_learning/set_upgrade_mode/SetUpgradeModeRequest.ts +++ b/specification/specs/x_pack/machine_learning/set_upgrade_mode/SetUpgradeModeRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.set_upgrade_mode') class SetUpgradeModeRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/x_pack/machine_learning/set_upgrade_mode/SetUpgradeModeResponse.ts b/specification/specs/x_pack/machine_learning/set_upgrade_mode/SetUpgradeModeResponse.ts index ba1b368da3..f58c2e3b87 100644 --- a/specification/specs/x_pack/machine_learning/set_upgrade_mode/SetUpgradeModeResponse.ts +++ b/specification/specs/x_pack/machine_learning/set_upgrade_mode/SetUpgradeModeResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class SetUpgradeModeResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/machine_learning/start_datafeed/StartDatafeedRequest.ts b/specification/specs/x_pack/machine_learning/start_datafeed/StartDatafeedRequest.ts index b9a1814f6c..66e397bc81 100644 --- a/specification/specs/x_pack/machine_learning/start_datafeed/StartDatafeedRequest.ts +++ b/specification/specs/x_pack/machine_learning/start_datafeed/StartDatafeedRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.start_datafeed') class StartDatafeedRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/start_datafeed/StartDatafeedResponse.ts b/specification/specs/x_pack/machine_learning/start_datafeed/StartDatafeedResponse.ts index 5b3fca5d69..647e32551b 100644 --- a/specification/specs/x_pack/machine_learning/start_datafeed/StartDatafeedResponse.ts +++ b/specification/specs/x_pack/machine_learning/start_datafeed/StartDatafeedResponse.ts @@ -1,3 +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. + */ + class StartDatafeedResponse extends ResponseBase { started: boolean } diff --git a/specification/specs/x_pack/machine_learning/stop_datafeed/StopDatafeedRequest.ts b/specification/specs/x_pack/machine_learning/stop_datafeed/StopDatafeedRequest.ts index 4cbc24c196..90a020319e 100644 --- a/specification/specs/x_pack/machine_learning/stop_datafeed/StopDatafeedRequest.ts +++ b/specification/specs/x_pack/machine_learning/stop_datafeed/StopDatafeedRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.stop_datafeed') class StopDatafeedRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/stop_datafeed/StopDatafeedResponse.ts b/specification/specs/x_pack/machine_learning/stop_datafeed/StopDatafeedResponse.ts index dc39818d86..b33ed0bb70 100644 --- a/specification/specs/x_pack/machine_learning/stop_datafeed/StopDatafeedResponse.ts +++ b/specification/specs/x_pack/machine_learning/stop_datafeed/StopDatafeedResponse.ts @@ -1,3 +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. + */ + class StopDatafeedResponse extends ResponseBase { stopped: boolean } diff --git a/specification/specs/x_pack/machine_learning/update_data_feed/UpdateDatafeedRequest.ts b/specification/specs/x_pack/machine_learning/update_data_feed/UpdateDatafeedRequest.ts index 1d6acac00a..2cf23ff38a 100644 --- a/specification/specs/x_pack/machine_learning/update_data_feed/UpdateDatafeedRequest.ts +++ b/specification/specs/x_pack/machine_learning/update_data_feed/UpdateDatafeedRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.update_datafeed') class UpdateDatafeedRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/update_data_feed/UpdateDatafeedResponse.ts b/specification/specs/x_pack/machine_learning/update_data_feed/UpdateDatafeedResponse.ts index a3668b289b..9aa0fc0021 100644 --- a/specification/specs/x_pack/machine_learning/update_data_feed/UpdateDatafeedResponse.ts +++ b/specification/specs/x_pack/machine_learning/update_data_feed/UpdateDatafeedResponse.ts @@ -1,3 +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. + */ + class UpdateDatafeedResponse extends ResponseBase { aggregations: Dictionary chunking_config: ChunkingConfig diff --git a/specification/specs/x_pack/machine_learning/update_filter/UpdateFilterRequest.ts b/specification/specs/x_pack/machine_learning/update_filter/UpdateFilterRequest.ts index 8bfc869a5e..27c0ec9393 100644 --- a/specification/specs/x_pack/machine_learning/update_filter/UpdateFilterRequest.ts +++ b/specification/specs/x_pack/machine_learning/update_filter/UpdateFilterRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.update_filter') class UpdateFilterRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/update_filter/UpdateFilterResponse.ts b/specification/specs/x_pack/machine_learning/update_filter/UpdateFilterResponse.ts index 8781d85b8f..2041118836 100644 --- a/specification/specs/x_pack/machine_learning/update_filter/UpdateFilterResponse.ts +++ b/specification/specs/x_pack/machine_learning/update_filter/UpdateFilterResponse.ts @@ -1,3 +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. + */ + class UpdateFilterResponse extends ResponseBase { description: string filter_id: string diff --git a/specification/specs/x_pack/machine_learning/update_job/UpdateJobRequest.ts b/specification/specs/x_pack/machine_learning/update_job/UpdateJobRequest.ts index 3b7f25f8ed..a5911301b5 100644 --- a/specification/specs/x_pack/machine_learning/update_job/UpdateJobRequest.ts +++ b/specification/specs/x_pack/machine_learning/update_job/UpdateJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.update_job') class UpdateJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/update_job/UpdateJobResponse.ts b/specification/specs/x_pack/machine_learning/update_job/UpdateJobResponse.ts index 5524f93396..a42210883f 100644 --- a/specification/specs/x_pack/machine_learning/update_job/UpdateJobResponse.ts +++ b/specification/specs/x_pack/machine_learning/update_job/UpdateJobResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class UpdateJobResponse extends ResponseBase {} diff --git a/specification/specs/x_pack/machine_learning/update_model_snapshot/UpdateModelSnapshotRequest.ts b/specification/specs/x_pack/machine_learning/update_model_snapshot/UpdateModelSnapshotRequest.ts index 150b544778..1f10efbf78 100644 --- a/specification/specs/x_pack/machine_learning/update_model_snapshot/UpdateModelSnapshotRequest.ts +++ b/specification/specs/x_pack/machine_learning/update_model_snapshot/UpdateModelSnapshotRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.update_model_snapshot') class UpdateModelSnapshotRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/machine_learning/update_model_snapshot/UpdateModelSnapshotResponse.ts b/specification/specs/x_pack/machine_learning/update_model_snapshot/UpdateModelSnapshotResponse.ts index cdb64966f8..95df62a9f2 100644 --- a/specification/specs/x_pack/machine_learning/update_model_snapshot/UpdateModelSnapshotResponse.ts +++ b/specification/specs/x_pack/machine_learning/update_model_snapshot/UpdateModelSnapshotResponse.ts @@ -1,3 +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. + */ + class UpdateModelSnapshotResponse extends AcknowledgedResponseBase { model: ModelSnapshot } diff --git a/specification/specs/x_pack/machine_learning/validate_detector/ValidateDetectorRequest.ts b/specification/specs/x_pack/machine_learning/validate_detector/ValidateDetectorRequest.ts index eb39a80b9b..5c9a7ef780 100644 --- a/specification/specs/x_pack/machine_learning/validate_detector/ValidateDetectorRequest.ts +++ b/specification/specs/x_pack/machine_learning/validate_detector/ValidateDetectorRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.validate_detector') @class_serializer('ValidateDetectorRequestFormatter') class ValidateDetectorRequest extends RequestBase { diff --git a/specification/specs/x_pack/machine_learning/validate_detector/ValidateDetectorResponse.ts b/specification/specs/x_pack/machine_learning/validate_detector/ValidateDetectorResponse.ts index adab811de5..6fd871b32b 100644 --- a/specification/specs/x_pack/machine_learning/validate_detector/ValidateDetectorResponse.ts +++ b/specification/specs/x_pack/machine_learning/validate_detector/ValidateDetectorResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ValidateDetectorResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/machine_learning/validate_job/ValidateJobRequest.ts b/specification/specs/x_pack/machine_learning/validate_job/ValidateJobRequest.ts index 9bc376b9e9..d94522d113 100644 --- a/specification/specs/x_pack/machine_learning/validate_job/ValidateJobRequest.ts +++ b/specification/specs/x_pack/machine_learning/validate_job/ValidateJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ml.validate') class ValidateJobRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/machine_learning/validate_job/ValidateJobResponse.ts b/specification/specs/x_pack/machine_learning/validate_job/ValidateJobResponse.ts index 4f75a5b91a..9dd9515a95 100644 --- a/specification/specs/x_pack/machine_learning/validate_job/ValidateJobResponse.ts +++ b/specification/specs/x_pack/machine_learning/validate_job/ValidateJobResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ValidateJobResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/migration/deprecation_info/DeprecationInfo.ts b/specification/specs/x_pack/migration/deprecation_info/DeprecationInfo.ts index 64c5f1ff1a..4eb82c9115 100644 --- a/specification/specs/x_pack/migration/deprecation_info/DeprecationInfo.ts +++ b/specification/specs/x_pack/migration/deprecation_info/DeprecationInfo.ts @@ -1,3 +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. + */ + class DeprecationInfo { details: string level: DeprecationWarningLevel diff --git a/specification/specs/x_pack/migration/deprecation_info/DeprecationInfoRequest.ts b/specification/specs/x_pack/migration/deprecation_info/DeprecationInfoRequest.ts index 237444e385..2fda284eca 100644 --- a/specification/specs/x_pack/migration/deprecation_info/DeprecationInfoRequest.ts +++ b/specification/specs/x_pack/migration/deprecation_info/DeprecationInfoRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('migration.deprecations') class DeprecationInfoRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/migration/deprecation_info/DeprecationInfoResponse.ts b/specification/specs/x_pack/migration/deprecation_info/DeprecationInfoResponse.ts index 6f0872d6e3..f2cda09ab4 100644 --- a/specification/specs/x_pack/migration/deprecation_info/DeprecationInfoResponse.ts +++ b/specification/specs/x_pack/migration/deprecation_info/DeprecationInfoResponse.ts @@ -1,3 +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. + */ + class DeprecationInfoResponse extends ResponseBase { cluster_settings: DeprecationInfo[] index_settings: Dictionary diff --git a/specification/specs/x_pack/migration/deprecation_info/DeprecationWarningLevel.ts b/specification/specs/x_pack/migration/deprecation_info/DeprecationWarningLevel.ts index 36693e9b2b..022ee95ca4 100644 --- a/specification/specs/x_pack/migration/deprecation_info/DeprecationWarningLevel.ts +++ b/specification/specs/x_pack/migration/deprecation_info/DeprecationWarningLevel.ts @@ -1,3 +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. + */ + enum DeprecationWarningLevel { none = 0, info = 1, diff --git a/specification/specs/x_pack/roll_up/create_rollup_job/CreateRollupJobRequest.ts b/specification/specs/x_pack/roll_up/create_rollup_job/CreateRollupJobRequest.ts index 5626d4d53e..146e61d6d2 100644 --- a/specification/specs/x_pack/roll_up/create_rollup_job/CreateRollupJobRequest.ts +++ b/specification/specs/x_pack/roll_up/create_rollup_job/CreateRollupJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('rollup.put_job') class CreateRollupJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/roll_up/create_rollup_job/CreateRollupJobResponse.ts b/specification/specs/x_pack/roll_up/create_rollup_job/CreateRollupJobResponse.ts index 8b2e34572b..91e3918529 100644 --- a/specification/specs/x_pack/roll_up/create_rollup_job/CreateRollupJobResponse.ts +++ b/specification/specs/x_pack/roll_up/create_rollup_job/CreateRollupJobResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class CreateRollupJobResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/roll_up/delete_rollup_job/DeleteRollupJobRequest.ts b/specification/specs/x_pack/roll_up/delete_rollup_job/DeleteRollupJobRequest.ts index 2161b1ae65..504d70dc94 100644 --- a/specification/specs/x_pack/roll_up/delete_rollup_job/DeleteRollupJobRequest.ts +++ b/specification/specs/x_pack/roll_up/delete_rollup_job/DeleteRollupJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('rollup.delete_job') class DeleteRollupJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/roll_up/delete_rollup_job/DeleteRollupJobResponse.ts b/specification/specs/x_pack/roll_up/delete_rollup_job/DeleteRollupJobResponse.ts index b2e0cde5db..d91d8f884e 100644 --- a/specification/specs/x_pack/roll_up/delete_rollup_job/DeleteRollupJobResponse.ts +++ b/specification/specs/x_pack/roll_up/delete_rollup_job/DeleteRollupJobResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteRollupJobResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/roll_up/get_rollup_capabilities/GetRollupCapabilitiesRequest.ts b/specification/specs/x_pack/roll_up/get_rollup_capabilities/GetRollupCapabilitiesRequest.ts index 07bf589053..59c0f791b2 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_capabilities/GetRollupCapabilitiesRequest.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_capabilities/GetRollupCapabilitiesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('rollup.get_rollup_caps') class GetRollupCapabilitiesRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/roll_up/get_rollup_capabilities/GetRollupCapabilitiesResponse.ts b/specification/specs/x_pack/roll_up/get_rollup_capabilities/GetRollupCapabilitiesResponse.ts index 1eeb1f5f91..53572869ca 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_capabilities/GetRollupCapabilitiesResponse.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_capabilities/GetRollupCapabilitiesResponse.ts @@ -1,3 +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. + */ + class GetRollupCapabilitiesResponse extends DictionaryResponseBase< IndexName, RollupCapabilities diff --git a/specification/specs/x_pack/roll_up/get_rollup_capabilities/RollupCapabilities.ts b/specification/specs/x_pack/roll_up/get_rollup_capabilities/RollupCapabilities.ts index c854926f4a..2b37867c80 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_capabilities/RollupCapabilities.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_capabilities/RollupCapabilities.ts @@ -1,3 +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. + */ + class RollupCapabilities { rollup_jobs: RollupCapabilitiesJob[] } diff --git a/specification/specs/x_pack/roll_up/get_rollup_capabilities/RollupCapabilitiesJob.ts b/specification/specs/x_pack/roll_up/get_rollup_capabilities/RollupCapabilitiesJob.ts index f47977c80c..03c0654c9e 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_capabilities/RollupCapabilitiesJob.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_capabilities/RollupCapabilitiesJob.ts @@ -1,3 +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. + */ + class RollupCapabilitiesJob { fields: Dictionary> index_pattern: string diff --git a/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/GetRollupIndexCapabilitiesRequest.ts b/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/GetRollupIndexCapabilitiesRequest.ts index 276f8a3bdc..992af1aaac 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/GetRollupIndexCapabilitiesRequest.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/GetRollupIndexCapabilitiesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('rollup.get_rollup_index_caps') class GetRollupIndexCapabilitiesRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/GetRollupIndexCapabilitiesResponse.ts b/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/GetRollupIndexCapabilitiesResponse.ts index f417283e7a..615d658e78 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/GetRollupIndexCapabilitiesResponse.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/GetRollupIndexCapabilitiesResponse.ts @@ -1,3 +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. + */ + class GetRollupIndexCapabilitiesResponse extends DictionaryResponseBase< IndexName, RollupIndexCapabilities diff --git a/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/RollupIndexCapabilities.ts b/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/RollupIndexCapabilities.ts index d3db1af7e7..8f94eb39e9 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/RollupIndexCapabilities.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/RollupIndexCapabilities.ts @@ -1,3 +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. + */ + class RollupIndexCapabilities { rollup_jobs: RollupIndexCapabilitiesJob[] } diff --git a/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/RollupIndexCapabilitiesJob.ts b/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/RollupIndexCapabilitiesJob.ts index 0a74a0b94a..74ea5c09fe 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/RollupIndexCapabilitiesJob.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_index_capabilities/RollupIndexCapabilitiesJob.ts @@ -1,3 +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. + */ + class RollupIndexCapabilitiesJob { fields: Dictionary> index_pattern: string diff --git a/specification/specs/x_pack/roll_up/get_rollup_job/GetRollupJobRequest.ts b/specification/specs/x_pack/roll_up/get_rollup_job/GetRollupJobRequest.ts index 8e8484da19..8e11bef78c 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_job/GetRollupJobRequest.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_job/GetRollupJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('rollup.get_jobs') class GetRollupJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/roll_up/get_rollup_job/GetRollupJobResponse.ts b/specification/specs/x_pack/roll_up/get_rollup_job/GetRollupJobResponse.ts index 29e3b78af4..049b5d8724 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_job/GetRollupJobResponse.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_job/GetRollupJobResponse.ts @@ -1,3 +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. + */ + class GetRollupJobResponse extends ResponseBase { jobs: RollupJobInformation[] } diff --git a/specification/specs/x_pack/roll_up/get_rollup_job/IndexingJobState.ts b/specification/specs/x_pack/roll_up/get_rollup_job/IndexingJobState.ts index 052f79f8f2..c66086d617 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_job/IndexingJobState.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_job/IndexingJobState.ts @@ -1,3 +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. + */ + enum IndexingJobState { started = 0, indexing = 1, diff --git a/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobConfiguration.ts b/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobConfiguration.ts index 5b3fa0c0b5..923cae81d4 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobConfiguration.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobConfiguration.ts @@ -1,3 +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. + */ + class RollupJobConfiguration { cron: string groups: RollupGroupings diff --git a/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobInformation.ts b/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobInformation.ts index b84ab28f94..b17ad808a2 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobInformation.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobInformation.ts @@ -1,3 +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. + */ + class RollupJobInformation { config: RollupJobConfiguration stats: RollupJobStats diff --git a/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobStats.ts b/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobStats.ts index 826263e2f1..7fa058760e 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobStats.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobStats.ts @@ -1,3 +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. + */ + class RollupJobStats { documents_processed: long index_failures: long diff --git a/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobStatus.ts b/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobStatus.ts index 03607bb329..1b8fa40ec0 100644 --- a/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobStatus.ts +++ b/specification/specs/x_pack/roll_up/get_rollup_job/RollupJobStatus.ts @@ -1,3 +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. + */ + class RollupJobStatus { current_position: Dictionary job_state: IndexingJobState diff --git a/specification/specs/x_pack/roll_up/rollup_configuration/DateHistogramRollupGrouping.ts b/specification/specs/x_pack/roll_up/rollup_configuration/DateHistogramRollupGrouping.ts index c62bc0c34c..e19217b5e3 100644 --- a/specification/specs/x_pack/roll_up/rollup_configuration/DateHistogramRollupGrouping.ts +++ b/specification/specs/x_pack/roll_up/rollup_configuration/DateHistogramRollupGrouping.ts @@ -1,3 +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. + */ + class DateHistogramRollupGrouping { delay: Time field: Field diff --git a/specification/specs/x_pack/roll_up/rollup_configuration/HistogramRollupGrouping.ts b/specification/specs/x_pack/roll_up/rollup_configuration/HistogramRollupGrouping.ts index adf78e5b7e..cfbf38ec48 100644 --- a/specification/specs/x_pack/roll_up/rollup_configuration/HistogramRollupGrouping.ts +++ b/specification/specs/x_pack/roll_up/rollup_configuration/HistogramRollupGrouping.ts @@ -1,3 +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. + */ + class HistogramRollupGrouping { fields: Field[] interval: long diff --git a/specification/specs/x_pack/roll_up/rollup_configuration/RollupFieldMetric.ts b/specification/specs/x_pack/roll_up/rollup_configuration/RollupFieldMetric.ts index 878b69182c..f7742b4a9d 100644 --- a/specification/specs/x_pack/roll_up/rollup_configuration/RollupFieldMetric.ts +++ b/specification/specs/x_pack/roll_up/rollup_configuration/RollupFieldMetric.ts @@ -1,3 +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. + */ + class RollupFieldMetric { field: Field metrics: RollupMetric[] diff --git a/specification/specs/x_pack/roll_up/rollup_configuration/RollupGroupings.ts b/specification/specs/x_pack/roll_up/rollup_configuration/RollupGroupings.ts index 995d070f0b..e277075484 100644 --- a/specification/specs/x_pack/roll_up/rollup_configuration/RollupGroupings.ts +++ b/specification/specs/x_pack/roll_up/rollup_configuration/RollupGroupings.ts @@ -1,3 +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. + */ + class RollupGroupings { date_histogram: DateHistogramRollupGrouping histogram: HistogramRollupGrouping diff --git a/specification/specs/x_pack/roll_up/rollup_configuration/RollupMetric.ts b/specification/specs/x_pack/roll_up/rollup_configuration/RollupMetric.ts index 2cea9eadbf..6db09f8b6d 100644 --- a/specification/specs/x_pack/roll_up/rollup_configuration/RollupMetric.ts +++ b/specification/specs/x_pack/roll_up/rollup_configuration/RollupMetric.ts @@ -1,3 +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. + */ + enum RollupMetric { min = 0, max = 1, diff --git a/specification/specs/x_pack/roll_up/rollup_configuration/TermsRollupGrouping.ts b/specification/specs/x_pack/roll_up/rollup_configuration/TermsRollupGrouping.ts index 020aa05375..3a6b776282 100644 --- a/specification/specs/x_pack/roll_up/rollup_configuration/TermsRollupGrouping.ts +++ b/specification/specs/x_pack/roll_up/rollup_configuration/TermsRollupGrouping.ts @@ -1,3 +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. + */ + class TermsRollupGrouping { fields: Field[] } diff --git a/specification/specs/x_pack/roll_up/rollup_search/RollupSearchRequest.ts b/specification/specs/x_pack/roll_up/rollup_search/RollupSearchRequest.ts index 7a4735539a..a35002f245 100644 --- a/specification/specs/x_pack/roll_up/rollup_search/RollupSearchRequest.ts +++ b/specification/specs/x_pack/roll_up/rollup_search/RollupSearchRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('rollup.rollup_search') class RollupSearchRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/roll_up/rollup_search/RollupSearchResponse.ts b/specification/specs/x_pack/roll_up/rollup_search/RollupSearchResponse.ts index 6706e28e18..93cde7a411 100644 --- a/specification/specs/x_pack/roll_up/rollup_search/RollupSearchResponse.ts +++ b/specification/specs/x_pack/roll_up/rollup_search/RollupSearchResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class RollupSearchResponse extends ResponseBase {} diff --git a/specification/specs/x_pack/roll_up/start_rollup_job/StartRollupJobRequest.ts b/specification/specs/x_pack/roll_up/start_rollup_job/StartRollupJobRequest.ts index 45a8d43c6b..cd22ead642 100644 --- a/specification/specs/x_pack/roll_up/start_rollup_job/StartRollupJobRequest.ts +++ b/specification/specs/x_pack/roll_up/start_rollup_job/StartRollupJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('rollup.start_job') class StartRollupJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/roll_up/start_rollup_job/StartRollupJobResponse.ts b/specification/specs/x_pack/roll_up/start_rollup_job/StartRollupJobResponse.ts index fdf978aab8..83b84e3df5 100644 --- a/specification/specs/x_pack/roll_up/start_rollup_job/StartRollupJobResponse.ts +++ b/specification/specs/x_pack/roll_up/start_rollup_job/StartRollupJobResponse.ts @@ -1,3 +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. + */ + class StartRollupJobResponse extends ResponseBase { started: boolean } diff --git a/specification/specs/x_pack/roll_up/stop_rollup_job/StopRollupJobRequest.ts b/specification/specs/x_pack/roll_up/stop_rollup_job/StopRollupJobRequest.ts index 73cf4ac418..54db24c23f 100644 --- a/specification/specs/x_pack/roll_up/stop_rollup_job/StopRollupJobRequest.ts +++ b/specification/specs/x_pack/roll_up/stop_rollup_job/StopRollupJobRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('rollup.stop_job') class StopRollupJobRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/roll_up/stop_rollup_job/StopRollupJobResponse.ts b/specification/specs/x_pack/roll_up/stop_rollup_job/StopRollupJobResponse.ts index f610072fac..d1467d1523 100644 --- a/specification/specs/x_pack/roll_up/stop_rollup_job/StopRollupJobResponse.ts +++ b/specification/specs/x_pack/roll_up/stop_rollup_job/StopRollupJobResponse.ts @@ -1,3 +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. + */ + class StopRollupJobResponse extends ResponseBase { stopped: boolean } diff --git a/specification/specs/x_pack/security/SecurityNode.ts b/specification/specs/x_pack/security/SecurityNode.ts index 6aeb019e27..3afe4a0e49 100644 --- a/specification/specs/x_pack/security/SecurityNode.ts +++ b/specification/specs/x_pack/security/SecurityNode.ts @@ -1,3 +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. + */ + class SecurityNode { name: string } diff --git a/specification/specs/x_pack/security/api_key/create_api_key/ApiKeyPrivileges.ts b/specification/specs/x_pack/security/api_key/create_api_key/ApiKeyPrivileges.ts index d461c4b184..5e3af60679 100644 --- a/specification/specs/x_pack/security/api_key/create_api_key/ApiKeyPrivileges.ts +++ b/specification/specs/x_pack/security/api_key/create_api_key/ApiKeyPrivileges.ts @@ -1,3 +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. + */ + class ApiKeyPrivileges { names: string[] privileges: string[] diff --git a/specification/specs/x_pack/security/api_key/create_api_key/ApiKeyRole.ts b/specification/specs/x_pack/security/api_key/create_api_key/ApiKeyRole.ts index 1ea3419a6b..58c9351984 100644 --- a/specification/specs/x_pack/security/api_key/create_api_key/ApiKeyRole.ts +++ b/specification/specs/x_pack/security/api_key/create_api_key/ApiKeyRole.ts @@ -1,3 +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. + */ + class ApiKeyRole { cluster: string[] index: ApiKeyPrivileges[] diff --git a/specification/specs/x_pack/security/api_key/create_api_key/CreateApiKeyRequest.ts b/specification/specs/x_pack/security/api_key/create_api_key/CreateApiKeyRequest.ts index 926ba069e4..24db698678 100644 --- a/specification/specs/x_pack/security/api_key/create_api_key/CreateApiKeyRequest.ts +++ b/specification/specs/x_pack/security/api_key/create_api_key/CreateApiKeyRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.create_api_key') class CreateApiKeyRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/x_pack/security/api_key/create_api_key/CreateApiKeyResponse.ts b/specification/specs/x_pack/security/api_key/create_api_key/CreateApiKeyResponse.ts index 0c0e0579d6..31a5f91196 100644 --- a/specification/specs/x_pack/security/api_key/create_api_key/CreateApiKeyResponse.ts +++ b/specification/specs/x_pack/security/api_key/create_api_key/CreateApiKeyResponse.ts @@ -1,3 +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. + */ + class CreateApiKeyResponse extends ResponseBase { api_key: string /** @prop_serializer NullableDateTimeOffsetEpochMillisecondsFormatter */ diff --git a/specification/specs/x_pack/security/api_key/get_api_key/ApiKeys.ts b/specification/specs/x_pack/security/api_key/get_api_key/ApiKeys.ts index ed991fc055..812b55cf9b 100644 --- a/specification/specs/x_pack/security/api_key/get_api_key/ApiKeys.ts +++ b/specification/specs/x_pack/security/api_key/get_api_key/ApiKeys.ts @@ -1,3 +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. + */ + class ApiKeys { /** @prop_serializer DateTimeOffsetEpochMillisecondsFormatter */ creation: Date diff --git a/specification/specs/x_pack/security/api_key/get_api_key/GetApiKeyRequest.ts b/specification/specs/x_pack/security/api_key/get_api_key/GetApiKeyRequest.ts index e7663583a9..60d2bf7fd8 100644 --- a/specification/specs/x_pack/security/api_key/get_api_key/GetApiKeyRequest.ts +++ b/specification/specs/x_pack/security/api_key/get_api_key/GetApiKeyRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.get_api_key') class GetApiKeyRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/x_pack/security/api_key/get_api_key/GetApiKeyResponse.ts b/specification/specs/x_pack/security/api_key/get_api_key/GetApiKeyResponse.ts index 37acd358ff..302c1562d0 100644 --- a/specification/specs/x_pack/security/api_key/get_api_key/GetApiKeyResponse.ts +++ b/specification/specs/x_pack/security/api_key/get_api_key/GetApiKeyResponse.ts @@ -1,3 +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. + */ + class GetApiKeyResponse extends ResponseBase { api_keys: ApiKeys[] } diff --git a/specification/specs/x_pack/security/api_key/invalidate_api_key/InvalidateApiKeyRequest.ts b/specification/specs/x_pack/security/api_key/invalidate_api_key/InvalidateApiKeyRequest.ts index 3b60f21583..ce5eb73e97 100644 --- a/specification/specs/x_pack/security/api_key/invalidate_api_key/InvalidateApiKeyRequest.ts +++ b/specification/specs/x_pack/security/api_key/invalidate_api_key/InvalidateApiKeyRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.invalidate_api_key') class InvalidateApiKeyRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/security/api_key/invalidate_api_key/InvalidateApiKeyResponse.ts b/specification/specs/x_pack/security/api_key/invalidate_api_key/InvalidateApiKeyResponse.ts index 4e8b90051f..7d87b036fe 100644 --- a/specification/specs/x_pack/security/api_key/invalidate_api_key/InvalidateApiKeyResponse.ts +++ b/specification/specs/x_pack/security/api_key/invalidate_api_key/InvalidateApiKeyResponse.ts @@ -1,3 +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. + */ + class InvalidateApiKeyResponse extends ResponseBase { error_count: integer error_details: ErrorCause[] diff --git a/specification/specs/x_pack/security/authenticate/AuthenticateRequest.ts b/specification/specs/x_pack/security/authenticate/AuthenticateRequest.ts index a30c1af577..c314634be1 100644 --- a/specification/specs/x_pack/security/authenticate/AuthenticateRequest.ts +++ b/specification/specs/x_pack/security/authenticate/AuthenticateRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.authenticate') class AuthenticateRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/security/authenticate/AuthenticateResponse.ts b/specification/specs/x_pack/security/authenticate/AuthenticateResponse.ts index e9aad3fc31..58f2fbf1a3 100644 --- a/specification/specs/x_pack/security/authenticate/AuthenticateResponse.ts +++ b/specification/specs/x_pack/security/authenticate/AuthenticateResponse.ts @@ -1,3 +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. + */ + class AuthenticateResponse extends ResponseBase { authentication_realm: RealmInfo email: string diff --git a/specification/specs/x_pack/security/authenticate/RealmInfo.ts b/specification/specs/x_pack/security/authenticate/RealmInfo.ts index e9402b47cc..8ee7e074c6 100644 --- a/specification/specs/x_pack/security/authenticate/RealmInfo.ts +++ b/specification/specs/x_pack/security/authenticate/RealmInfo.ts @@ -1,3 +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. + */ + class RealmInfo { name: string type: string diff --git a/specification/specs/x_pack/security/clear_cached_realms/ClearCachedRealmsRequest.ts b/specification/specs/x_pack/security/clear_cached_realms/ClearCachedRealmsRequest.ts index 91f6a103ae..10ee568a5c 100644 --- a/specification/specs/x_pack/security/clear_cached_realms/ClearCachedRealmsRequest.ts +++ b/specification/specs/x_pack/security/clear_cached_realms/ClearCachedRealmsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.clear_cached_realms') class ClearCachedRealmsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/clear_cached_realms/ClearCachedRealmsResponse.ts b/specification/specs/x_pack/security/clear_cached_realms/ClearCachedRealmsResponse.ts index 3be2af1c0c..e7cf06bf1a 100644 --- a/specification/specs/x_pack/security/clear_cached_realms/ClearCachedRealmsResponse.ts +++ b/specification/specs/x_pack/security/clear_cached_realms/ClearCachedRealmsResponse.ts @@ -1,3 +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. + */ + class ClearCachedRealmsResponse extends ResponseBase { cluster_name: string nodes: Dictionary diff --git a/specification/specs/x_pack/security/privileges/delete_privileges/DeletePrivilegesRequest.ts b/specification/specs/x_pack/security/privileges/delete_privileges/DeletePrivilegesRequest.ts index a06d067090..37d07d668b 100644 --- a/specification/specs/x_pack/security/privileges/delete_privileges/DeletePrivilegesRequest.ts +++ b/specification/specs/x_pack/security/privileges/delete_privileges/DeletePrivilegesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.delete_privileges') class DeletePrivilegesRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/privileges/delete_privileges/DeletePrivilegesResponse.ts b/specification/specs/x_pack/security/privileges/delete_privileges/DeletePrivilegesResponse.ts index 16e55e7bd9..0a01304826 100644 --- a/specification/specs/x_pack/security/privileges/delete_privileges/DeletePrivilegesResponse.ts +++ b/specification/specs/x_pack/security/privileges/delete_privileges/DeletePrivilegesResponse.ts @@ -1,3 +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. + */ + class DeletePrivilegesResponse extends DictionaryResponseBase< string, Dictionary diff --git a/specification/specs/x_pack/security/privileges/delete_privileges/FoundUserPrivilege.ts b/specification/specs/x_pack/security/privileges/delete_privileges/FoundUserPrivilege.ts index 0f5804bf9e..d18c82f688 100644 --- a/specification/specs/x_pack/security/privileges/delete_privileges/FoundUserPrivilege.ts +++ b/specification/specs/x_pack/security/privileges/delete_privileges/FoundUserPrivilege.ts @@ -1,3 +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. + */ + class FoundUserPrivilege { found: boolean } diff --git a/specification/specs/x_pack/security/privileges/get_builtin_privileges/GetBuiltinPrivilegesRequest.ts b/specification/specs/x_pack/security/privileges/get_builtin_privileges/GetBuiltinPrivilegesRequest.ts index da794e1e08..1be18a5ec6 100644 --- a/specification/specs/x_pack/security/privileges/get_builtin_privileges/GetBuiltinPrivilegesRequest.ts +++ b/specification/specs/x_pack/security/privileges/get_builtin_privileges/GetBuiltinPrivilegesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.get_builtin_privileges') class GetBuiltinPrivilegesRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/security/privileges/get_builtin_privileges/GetBuiltinPrivilegesResponse.ts b/specification/specs/x_pack/security/privileges/get_builtin_privileges/GetBuiltinPrivilegesResponse.ts index 88827f21e4..4ce2807cbe 100644 --- a/specification/specs/x_pack/security/privileges/get_builtin_privileges/GetBuiltinPrivilegesResponse.ts +++ b/specification/specs/x_pack/security/privileges/get_builtin_privileges/GetBuiltinPrivilegesResponse.ts @@ -1,3 +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. + */ + class GetBuiltinPrivilegesResponse extends ResponseBase { cluster: string[] index: string[] diff --git a/specification/specs/x_pack/security/privileges/get_privileges/GetPrivilegesRequest.ts b/specification/specs/x_pack/security/privileges/get_privileges/GetPrivilegesRequest.ts index 1f8c08a5c6..23f01380d0 100644 --- a/specification/specs/x_pack/security/privileges/get_privileges/GetPrivilegesRequest.ts +++ b/specification/specs/x_pack/security/privileges/get_privileges/GetPrivilegesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.get_privileges') class GetPrivilegesRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/privileges/get_privileges/GetPrivilegesResponse.ts b/specification/specs/x_pack/security/privileges/get_privileges/GetPrivilegesResponse.ts index c4538fadc7..4e7ceef3c9 100644 --- a/specification/specs/x_pack/security/privileges/get_privileges/GetPrivilegesResponse.ts +++ b/specification/specs/x_pack/security/privileges/get_privileges/GetPrivilegesResponse.ts @@ -1,3 +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. + */ + class GetPrivilegesResponse extends DictionaryResponseBase< string, Dictionary diff --git a/specification/specs/x_pack/security/privileges/get_user_privileges/ApplicationGlobalUserPrivileges.ts b/specification/specs/x_pack/security/privileges/get_user_privileges/ApplicationGlobalUserPrivileges.ts index 1c49061d29..adc8cf262f 100644 --- a/specification/specs/x_pack/security/privileges/get_user_privileges/ApplicationGlobalUserPrivileges.ts +++ b/specification/specs/x_pack/security/privileges/get_user_privileges/ApplicationGlobalUserPrivileges.ts @@ -1,3 +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. + */ + class ApplicationGlobalUserPrivileges { manage: ManageUserPrivileges } diff --git a/specification/specs/x_pack/security/privileges/get_user_privileges/ApplicationResourcePrivileges.ts b/specification/specs/x_pack/security/privileges/get_user_privileges/ApplicationResourcePrivileges.ts index f4fb42dbd7..0c47b72ad4 100644 --- a/specification/specs/x_pack/security/privileges/get_user_privileges/ApplicationResourcePrivileges.ts +++ b/specification/specs/x_pack/security/privileges/get_user_privileges/ApplicationResourcePrivileges.ts @@ -1,3 +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. + */ + class ApplicationResourcePrivileges { application: string privileges: string[] diff --git a/specification/specs/x_pack/security/privileges/get_user_privileges/FieldSecuritySettings.ts b/specification/specs/x_pack/security/privileges/get_user_privileges/FieldSecuritySettings.ts index 7a8939fd5c..d7da1a99d6 100644 --- a/specification/specs/x_pack/security/privileges/get_user_privileges/FieldSecuritySettings.ts +++ b/specification/specs/x_pack/security/privileges/get_user_privileges/FieldSecuritySettings.ts @@ -1,3 +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. + */ + class FieldSecuritySettings { except: string[] grant: string[] diff --git a/specification/specs/x_pack/security/privileges/get_user_privileges/GetUserPrivilegesRequest.ts b/specification/specs/x_pack/security/privileges/get_user_privileges/GetUserPrivilegesRequest.ts index ec13547662..74d67e8804 100644 --- a/specification/specs/x_pack/security/privileges/get_user_privileges/GetUserPrivilegesRequest.ts +++ b/specification/specs/x_pack/security/privileges/get_user_privileges/GetUserPrivilegesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.get_user_privileges') class GetUserPrivilegesRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/security/privileges/get_user_privileges/GetUserPrivilegesResponse.ts b/specification/specs/x_pack/security/privileges/get_user_privileges/GetUserPrivilegesResponse.ts index daf817c6f3..637f491161 100644 --- a/specification/specs/x_pack/security/privileges/get_user_privileges/GetUserPrivilegesResponse.ts +++ b/specification/specs/x_pack/security/privileges/get_user_privileges/GetUserPrivilegesResponse.ts @@ -1,3 +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. + */ + class GetUserPrivilegesResponse extends ResponseBase { applications: ApplicationResourcePrivileges[] cluster: string[] diff --git a/specification/specs/x_pack/security/privileges/get_user_privileges/GlobalPrivileges.ts b/specification/specs/x_pack/security/privileges/get_user_privileges/GlobalPrivileges.ts index 6691de633c..4694ff27cc 100644 --- a/specification/specs/x_pack/security/privileges/get_user_privileges/GlobalPrivileges.ts +++ b/specification/specs/x_pack/security/privileges/get_user_privileges/GlobalPrivileges.ts @@ -1,3 +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. + */ + class GlobalPrivileges { application: ApplicationGlobalUserPrivileges } diff --git a/specification/specs/x_pack/security/privileges/get_user_privileges/ManageUserPrivileges.ts b/specification/specs/x_pack/security/privileges/get_user_privileges/ManageUserPrivileges.ts index ffc6bb7af2..fecb490b0f 100644 --- a/specification/specs/x_pack/security/privileges/get_user_privileges/ManageUserPrivileges.ts +++ b/specification/specs/x_pack/security/privileges/get_user_privileges/ManageUserPrivileges.ts @@ -1,3 +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. + */ + class ManageUserPrivileges { applications: string[] } diff --git a/specification/specs/x_pack/security/privileges/get_user_privileges/QueryUserPrivileges.ts b/specification/specs/x_pack/security/privileges/get_user_privileges/QueryUserPrivileges.ts index 64f4afcbba..a9615078d4 100644 --- a/specification/specs/x_pack/security/privileges/get_user_privileges/QueryUserPrivileges.ts +++ b/specification/specs/x_pack/security/privileges/get_user_privileges/QueryUserPrivileges.ts @@ -1,3 +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. + */ + class QueryUserPrivileges { term: TermUserPrivileges } diff --git a/specification/specs/x_pack/security/privileges/get_user_privileges/TermUserPrivileges.ts b/specification/specs/x_pack/security/privileges/get_user_privileges/TermUserPrivileges.ts index 1beecd85f6..f666524e5b 100644 --- a/specification/specs/x_pack/security/privileges/get_user_privileges/TermUserPrivileges.ts +++ b/specification/specs/x_pack/security/privileges/get_user_privileges/TermUserPrivileges.ts @@ -1,3 +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. + */ + class TermUserPrivileges { apps: boolean } diff --git a/specification/specs/x_pack/security/privileges/get_user_privileges/UserIndicesPrivileges.ts b/specification/specs/x_pack/security/privileges/get_user_privileges/UserIndicesPrivileges.ts index 1e8209859f..6810359cf0 100644 --- a/specification/specs/x_pack/security/privileges/get_user_privileges/UserIndicesPrivileges.ts +++ b/specification/specs/x_pack/security/privileges/get_user_privileges/UserIndicesPrivileges.ts @@ -1,3 +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. + */ + class UserIndicesPrivileges { field_security: FieldSecuritySettings names: string[] diff --git a/specification/specs/x_pack/security/privileges/has_privileges/ApplicationPrivilegesCheck.ts b/specification/specs/x_pack/security/privileges/has_privileges/ApplicationPrivilegesCheck.ts index 5b5f35dceb..af4ea198d8 100644 --- a/specification/specs/x_pack/security/privileges/has_privileges/ApplicationPrivilegesCheck.ts +++ b/specification/specs/x_pack/security/privileges/has_privileges/ApplicationPrivilegesCheck.ts @@ -1,3 +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. + */ + class ApplicationPrivilegesCheck { application: string privileges: string[] diff --git a/specification/specs/x_pack/security/privileges/has_privileges/HasPrivilegesRequest.ts b/specification/specs/x_pack/security/privileges/has_privileges/HasPrivilegesRequest.ts index 313b8d6d1a..a722c930f9 100644 --- a/specification/specs/x_pack/security/privileges/has_privileges/HasPrivilegesRequest.ts +++ b/specification/specs/x_pack/security/privileges/has_privileges/HasPrivilegesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.has_privileges') class HasPrivilegesRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/privileges/has_privileges/HasPrivilegesResponse.ts b/specification/specs/x_pack/security/privileges/has_privileges/HasPrivilegesResponse.ts index b482d1d058..8f974cf9f2 100644 --- a/specification/specs/x_pack/security/privileges/has_privileges/HasPrivilegesResponse.ts +++ b/specification/specs/x_pack/security/privileges/has_privileges/HasPrivilegesResponse.ts @@ -1,3 +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. + */ + class HasPrivilegesResponse extends ResponseBase { /** @prop_serializer ApplicationsPrivilegesFormatter */ application: Dictionary diff --git a/specification/specs/x_pack/security/privileges/has_privileges/IndexPrivilegesCheck.ts b/specification/specs/x_pack/security/privileges/has_privileges/IndexPrivilegesCheck.ts index 67dd4d3a70..5f5bf689ea 100644 --- a/specification/specs/x_pack/security/privileges/has_privileges/IndexPrivilegesCheck.ts +++ b/specification/specs/x_pack/security/privileges/has_privileges/IndexPrivilegesCheck.ts @@ -1,3 +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. + */ + class IndexPrivilegesCheck { names: string[] privileges: string[] diff --git a/specification/specs/x_pack/security/privileges/has_privileges/ResourcePrivileges.ts b/specification/specs/x_pack/security/privileges/has_privileges/ResourcePrivileges.ts index 75ca10bdc9..34c89a08d3 100644 --- a/specification/specs/x_pack/security/privileges/has_privileges/ResourcePrivileges.ts +++ b/specification/specs/x_pack/security/privileges/has_privileges/ResourcePrivileges.ts @@ -1,3 +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. + */ + class ResourcePrivileges { privileges: Dictionary resource: string diff --git a/specification/specs/x_pack/security/privileges/put_privileges/PrivilegesActions.ts b/specification/specs/x_pack/security/privileges/put_privileges/PrivilegesActions.ts index a452b2ea55..e56b55b130 100644 --- a/specification/specs/x_pack/security/privileges/put_privileges/PrivilegesActions.ts +++ b/specification/specs/x_pack/security/privileges/put_privileges/PrivilegesActions.ts @@ -1,3 +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. + */ + class PrivilegesActions { actions: string[] metadata: Dictionary diff --git a/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesRequest.ts b/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesRequest.ts index 3889dbd8f4..a67d09aff4 100644 --- a/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesRequest.ts +++ b/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.put_privileges') @class_serializer('PutPrivilegesFormatter') class PutPrivilegesRequest extends RequestBase { diff --git a/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesResponse.ts b/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesResponse.ts index ccc29cf1de..40733ae869 100644 --- a/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesResponse.ts +++ b/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesResponse.ts @@ -1,3 +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. + */ + class PutPrivilegesResponse extends DictionaryResponseBase< string, Dictionary diff --git a/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesStatus.ts b/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesStatus.ts index ce5932a19f..843e0111ab 100644 --- a/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesStatus.ts +++ b/specification/specs/x_pack/security/privileges/put_privileges/PutPrivilegesStatus.ts @@ -1,3 +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. + */ + class PutPrivilegesStatus { created: boolean } diff --git a/specification/specs/x_pack/security/role/FieldSecurity.ts b/specification/specs/x_pack/security/role/FieldSecurity.ts index 4813a06a70..cfcbe458ea 100644 --- a/specification/specs/x_pack/security/role/FieldSecurity.ts +++ b/specification/specs/x_pack/security/role/FieldSecurity.ts @@ -1,3 +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. + */ + class FieldSecurity { except: Field[] grant: Field[] diff --git a/specification/specs/x_pack/security/role/clear_cached_roles/ClearCachedRolesRequest.ts b/specification/specs/x_pack/security/role/clear_cached_roles/ClearCachedRolesRequest.ts index 9af4f0b375..72bf1cbd5e 100644 --- a/specification/specs/x_pack/security/role/clear_cached_roles/ClearCachedRolesRequest.ts +++ b/specification/specs/x_pack/security/role/clear_cached_roles/ClearCachedRolesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.clear_cached_roles') class ClearCachedRolesRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/role/clear_cached_roles/ClearCachedRolesResponse.ts b/specification/specs/x_pack/security/role/clear_cached_roles/ClearCachedRolesResponse.ts index 43c0c43fcc..6a8fbcfd49 100644 --- a/specification/specs/x_pack/security/role/clear_cached_roles/ClearCachedRolesResponse.ts +++ b/specification/specs/x_pack/security/role/clear_cached_roles/ClearCachedRolesResponse.ts @@ -1,3 +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. + */ + class ClearCachedRolesResponse extends ResponseBase { cluster_name: string nodes: Dictionary diff --git a/specification/specs/x_pack/security/role/delete_role/DeleteRoleRequest.ts b/specification/specs/x_pack/security/role/delete_role/DeleteRoleRequest.ts index 3ef89c9797..c6310a3d21 100644 --- a/specification/specs/x_pack/security/role/delete_role/DeleteRoleRequest.ts +++ b/specification/specs/x_pack/security/role/delete_role/DeleteRoleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.delete_role') class DeleteRoleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/role/delete_role/DeleteRoleResponse.ts b/specification/specs/x_pack/security/role/delete_role/DeleteRoleResponse.ts index c07704e753..9da1766178 100644 --- a/specification/specs/x_pack/security/role/delete_role/DeleteRoleResponse.ts +++ b/specification/specs/x_pack/security/role/delete_role/DeleteRoleResponse.ts @@ -1,3 +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. + */ + class DeleteRoleResponse extends ResponseBase { found: boolean } diff --git a/specification/specs/x_pack/security/role/get_role/GetRoleRequest.ts b/specification/specs/x_pack/security/role/get_role/GetRoleRequest.ts index ab4476ebc7..27f8e48af3 100644 --- a/specification/specs/x_pack/security/role/get_role/GetRoleRequest.ts +++ b/specification/specs/x_pack/security/role/get_role/GetRoleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.get_role') class GetRoleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/role/get_role/GetRoleResponse.ts b/specification/specs/x_pack/security/role/get_role/GetRoleResponse.ts index d574140aec..c69e25fd8e 100644 --- a/specification/specs/x_pack/security/role/get_role/GetRoleResponse.ts +++ b/specification/specs/x_pack/security/role/get_role/GetRoleResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class GetRoleResponse extends DictionaryResponseBase {} diff --git a/specification/specs/x_pack/security/role/get_role/XPackRole.ts b/specification/specs/x_pack/security/role/get_role/XPackRole.ts index 5cb41c4f64..c49289c715 100644 --- a/specification/specs/x_pack/security/role/get_role/XPackRole.ts +++ b/specification/specs/x_pack/security/role/get_role/XPackRole.ts @@ -1,3 +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. + */ + class XPackRole { cluster: string[] indices: IndicesPrivileges[] diff --git a/specification/specs/x_pack/security/role/put_role/ApplicationPrivileges.ts b/specification/specs/x_pack/security/role/put_role/ApplicationPrivileges.ts index 87ecc0960d..38a0cf2bf9 100644 --- a/specification/specs/x_pack/security/role/put_role/ApplicationPrivileges.ts +++ b/specification/specs/x_pack/security/role/put_role/ApplicationPrivileges.ts @@ -1,3 +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. + */ + class ApplicationPrivileges { application: string privileges: string[] diff --git a/specification/specs/x_pack/security/role/put_role/IndicesPrivileges.ts b/specification/specs/x_pack/security/role/put_role/IndicesPrivileges.ts index f600c59e11..89029ea651 100644 --- a/specification/specs/x_pack/security/role/put_role/IndicesPrivileges.ts +++ b/specification/specs/x_pack/security/role/put_role/IndicesPrivileges.ts @@ -1,3 +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. + */ + class IndicesPrivileges { field_security: FieldSecurity /** @prop_serializer IndicesFormatter */ diff --git a/specification/specs/x_pack/security/role/put_role/PutRoleRequest.ts b/specification/specs/x_pack/security/role/put_role/PutRoleRequest.ts index 1d7374dbfd..04baedcdd6 100644 --- a/specification/specs/x_pack/security/role/put_role/PutRoleRequest.ts +++ b/specification/specs/x_pack/security/role/put_role/PutRoleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.put_role') class PutRoleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/role/put_role/PutRoleResponse.ts b/specification/specs/x_pack/security/role/put_role/PutRoleResponse.ts index 52e90f4cff..542f8ae131 100644 --- a/specification/specs/x_pack/security/role/put_role/PutRoleResponse.ts +++ b/specification/specs/x_pack/security/role/put_role/PutRoleResponse.ts @@ -1,3 +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. + */ + class PutRoleResponse extends ResponseBase { role: PutRoleStatus } diff --git a/specification/specs/x_pack/security/role/put_role/PutRoleStatus.ts b/specification/specs/x_pack/security/role/put_role/PutRoleStatus.ts index b9840cf7ba..51b761ed5b 100644 --- a/specification/specs/x_pack/security/role/put_role/PutRoleStatus.ts +++ b/specification/specs/x_pack/security/role/put_role/PutRoleStatus.ts @@ -1,3 +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. + */ + class PutRoleStatus { created: boolean } diff --git a/specification/specs/x_pack/security/role_mapping/delete_role_mapping/DeleteRoleMappingRequest.ts b/specification/specs/x_pack/security/role_mapping/delete_role_mapping/DeleteRoleMappingRequest.ts index 047a52f227..28e570d8fa 100644 --- a/specification/specs/x_pack/security/role_mapping/delete_role_mapping/DeleteRoleMappingRequest.ts +++ b/specification/specs/x_pack/security/role_mapping/delete_role_mapping/DeleteRoleMappingRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.delete_role_mapping') class DeleteRoleMappingRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/role_mapping/delete_role_mapping/DeleteRoleMappingResponse.ts b/specification/specs/x_pack/security/role_mapping/delete_role_mapping/DeleteRoleMappingResponse.ts index eb2ccc5cb5..beea54d7ec 100644 --- a/specification/specs/x_pack/security/role_mapping/delete_role_mapping/DeleteRoleMappingResponse.ts +++ b/specification/specs/x_pack/security/role_mapping/delete_role_mapping/DeleteRoleMappingResponse.ts @@ -1,3 +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. + */ + class DeleteRoleMappingResponse extends ResponseBase { found: boolean } diff --git a/specification/specs/x_pack/security/role_mapping/get_role_mapping/GetRoleMappingRequest.ts b/specification/specs/x_pack/security/role_mapping/get_role_mapping/GetRoleMappingRequest.ts index e754bc6eaa..6838732043 100644 --- a/specification/specs/x_pack/security/role_mapping/get_role_mapping/GetRoleMappingRequest.ts +++ b/specification/specs/x_pack/security/role_mapping/get_role_mapping/GetRoleMappingRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.get_role_mapping') class GetRoleMappingRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/role_mapping/get_role_mapping/GetRoleMappingResponse.ts b/specification/specs/x_pack/security/role_mapping/get_role_mapping/GetRoleMappingResponse.ts index 79210e6c47..f4f79c229a 100644 --- a/specification/specs/x_pack/security/role_mapping/get_role_mapping/GetRoleMappingResponse.ts +++ b/specification/specs/x_pack/security/role_mapping/get_role_mapping/GetRoleMappingResponse.ts @@ -1,3 +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. + */ + class GetRoleMappingResponse extends DictionaryResponseBase< string, XPackRoleMapping diff --git a/specification/specs/x_pack/security/role_mapping/get_role_mapping/XPackRoleMapping.ts b/specification/specs/x_pack/security/role_mapping/get_role_mapping/XPackRoleMapping.ts index 35a9ebc14e..95257aa104 100644 --- a/specification/specs/x_pack/security/role_mapping/get_role_mapping/XPackRoleMapping.ts +++ b/specification/specs/x_pack/security/role_mapping/get_role_mapping/XPackRoleMapping.ts @@ -1,3 +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. + */ + class XPackRoleMapping { enabled: boolean metadata: Dictionary diff --git a/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingRequest.ts b/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingRequest.ts index 6b6e7670a6..b2a54d4f8e 100644 --- a/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingRequest.ts +++ b/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.put_role_mapping') class PutRoleMappingRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingResponse.ts b/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingResponse.ts index 090a9f4be1..5c76ee3037 100644 --- a/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingResponse.ts +++ b/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingResponse.ts @@ -1,3 +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. + */ + class PutRoleMappingResponse extends ResponseBase { created: boolean role_mapping: PutRoleMappingStatus diff --git a/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingStatus.ts b/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingStatus.ts index 4f9a8f5185..5c9b199c31 100644 --- a/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingStatus.ts +++ b/specification/specs/x_pack/security/role_mapping/put_role_mapping/PutRoleMappingStatus.ts @@ -1,3 +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. + */ + class PutRoleMappingStatus { created: boolean } diff --git a/specification/specs/x_pack/security/role_mapping/rules/role/RoleMappingRuleBase.ts b/specification/specs/x_pack/security/role_mapping/rules/role/RoleMappingRuleBase.ts index f9785f2f2d..9841769b35 100644 --- a/specification/specs/x_pack/security/role_mapping/rules/role/RoleMappingRuleBase.ts +++ b/specification/specs/x_pack/security/role_mapping/rules/role/RoleMappingRuleBase.ts @@ -1,2 +1,21 @@ +/* + * 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. + */ + @class_serializer('RoleMappingRuleBaseFormatter') class RoleMappingRuleBase {} diff --git a/specification/specs/x_pack/security/user/change_password/ChangePasswordRequest.ts b/specification/specs/x_pack/security/user/change_password/ChangePasswordRequest.ts index 3e5153cacd..1d70592e6d 100644 --- a/specification/specs/x_pack/security/user/change_password/ChangePasswordRequest.ts +++ b/specification/specs/x_pack/security/user/change_password/ChangePasswordRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.change_password') class ChangePasswordRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/user/change_password/ChangePasswordResponse.ts b/specification/specs/x_pack/security/user/change_password/ChangePasswordResponse.ts index 1eb843178c..902f257e39 100644 --- a/specification/specs/x_pack/security/user/change_password/ChangePasswordResponse.ts +++ b/specification/specs/x_pack/security/user/change_password/ChangePasswordResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ChangePasswordResponse extends ResponseBase {} diff --git a/specification/specs/x_pack/security/user/delete_user/DeleteUserRequest.ts b/specification/specs/x_pack/security/user/delete_user/DeleteUserRequest.ts index 46b22d1bae..0292d57bf8 100644 --- a/specification/specs/x_pack/security/user/delete_user/DeleteUserRequest.ts +++ b/specification/specs/x_pack/security/user/delete_user/DeleteUserRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.delete_user') class DeleteUserRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/user/delete_user/DeleteUserResponse.ts b/specification/specs/x_pack/security/user/delete_user/DeleteUserResponse.ts index cc77143635..6205674311 100644 --- a/specification/specs/x_pack/security/user/delete_user/DeleteUserResponse.ts +++ b/specification/specs/x_pack/security/user/delete_user/DeleteUserResponse.ts @@ -1,3 +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. + */ + class DeleteUserResponse extends ResponseBase { found: boolean } diff --git a/specification/specs/x_pack/security/user/disable_user/DisableUserRequest.ts b/specification/specs/x_pack/security/user/disable_user/DisableUserRequest.ts index 6d1522cdad..9f1baeef71 100644 --- a/specification/specs/x_pack/security/user/disable_user/DisableUserRequest.ts +++ b/specification/specs/x_pack/security/user/disable_user/DisableUserRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.disable_user') class DisableUserRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/user/disable_user/DisableUserResponse.ts b/specification/specs/x_pack/security/user/disable_user/DisableUserResponse.ts index 2f4912cb2d..926bf45b34 100644 --- a/specification/specs/x_pack/security/user/disable_user/DisableUserResponse.ts +++ b/specification/specs/x_pack/security/user/disable_user/DisableUserResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DisableUserResponse extends ResponseBase {} diff --git a/specification/specs/x_pack/security/user/enable_user/EnableUserRequest.ts b/specification/specs/x_pack/security/user/enable_user/EnableUserRequest.ts index e39fc5365c..3ca4c440dc 100644 --- a/specification/specs/x_pack/security/user/enable_user/EnableUserRequest.ts +++ b/specification/specs/x_pack/security/user/enable_user/EnableUserRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.enable_user') class EnableUserRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/user/enable_user/EnableUserResponse.ts b/specification/specs/x_pack/security/user/enable_user/EnableUserResponse.ts index 85aab81318..891c372196 100644 --- a/specification/specs/x_pack/security/user/enable_user/EnableUserResponse.ts +++ b/specification/specs/x_pack/security/user/enable_user/EnableUserResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class EnableUserResponse extends ResponseBase {} diff --git a/specification/specs/x_pack/security/user/get_user/GetUserRequest.ts b/specification/specs/x_pack/security/user/get_user/GetUserRequest.ts index 11474bbbc9..67698a92c1 100644 --- a/specification/specs/x_pack/security/user/get_user/GetUserRequest.ts +++ b/specification/specs/x_pack/security/user/get_user/GetUserRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.get_user') class GetUserRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/user/get_user/GetUserResponse.ts b/specification/specs/x_pack/security/user/get_user/GetUserResponse.ts index d8c0c4460c..654ece0486 100644 --- a/specification/specs/x_pack/security/user/get_user/GetUserResponse.ts +++ b/specification/specs/x_pack/security/user/get_user/GetUserResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class GetUserResponse extends DictionaryResponseBase {} diff --git a/specification/specs/x_pack/security/user/get_user/XPackUser.ts b/specification/specs/x_pack/security/user/get_user/XPackUser.ts index 7747865a16..d80ceb9281 100644 --- a/specification/specs/x_pack/security/user/get_user/XPackUser.ts +++ b/specification/specs/x_pack/security/user/get_user/XPackUser.ts @@ -1,3 +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. + */ + class XPackUser { email: string full_name: string diff --git a/specification/specs/x_pack/security/user/get_user_access_token/AccessTokenGrantType.ts b/specification/specs/x_pack/security/user/get_user_access_token/AccessTokenGrantType.ts index 246a7ec0c3..bc93f76ffe 100644 --- a/specification/specs/x_pack/security/user/get_user_access_token/AccessTokenGrantType.ts +++ b/specification/specs/x_pack/security/user/get_user_access_token/AccessTokenGrantType.ts @@ -1,3 +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. + */ + enum AccessTokenGrantType { password = 0 } diff --git a/specification/specs/x_pack/security/user/get_user_access_token/GetUserAccessTokenRequest.ts b/specification/specs/x_pack/security/user/get_user_access_token/GetUserAccessTokenRequest.ts index c41608547b..a0c5aaa95d 100644 --- a/specification/specs/x_pack/security/user/get_user_access_token/GetUserAccessTokenRequest.ts +++ b/specification/specs/x_pack/security/user/get_user_access_token/GetUserAccessTokenRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.get_token') class GetUserAccessTokenRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/security/user/get_user_access_token/GetUserAccessTokenResponse.ts b/specification/specs/x_pack/security/user/get_user_access_token/GetUserAccessTokenResponse.ts index 61030817a5..12a2227006 100644 --- a/specification/specs/x_pack/security/user/get_user_access_token/GetUserAccessTokenResponse.ts +++ b/specification/specs/x_pack/security/user/get_user_access_token/GetUserAccessTokenResponse.ts @@ -1,3 +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. + */ + class GetUserAccessTokenResponse extends ResponseBase { access_token: string expires_in: long diff --git a/specification/specs/x_pack/security/user/invalidate_user_access_token/InvalidateUserAccessTokenRequest.ts b/specification/specs/x_pack/security/user/invalidate_user_access_token/InvalidateUserAccessTokenRequest.ts index e52690f2c7..5e5f5d7a0e 100644 --- a/specification/specs/x_pack/security/user/invalidate_user_access_token/InvalidateUserAccessTokenRequest.ts +++ b/specification/specs/x_pack/security/user/invalidate_user_access_token/InvalidateUserAccessTokenRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.invalidate_token') class InvalidateUserAccessTokenRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/security/user/invalidate_user_access_token/InvalidateUserAccessTokenResponse.ts b/specification/specs/x_pack/security/user/invalidate_user_access_token/InvalidateUserAccessTokenResponse.ts index 7cdc0b5bb2..0ef0b92c02 100644 --- a/specification/specs/x_pack/security/user/invalidate_user_access_token/InvalidateUserAccessTokenResponse.ts +++ b/specification/specs/x_pack/security/user/invalidate_user_access_token/InvalidateUserAccessTokenResponse.ts @@ -1,3 +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. + */ + class InvalidateUserAccessTokenResponse extends ResponseBase { error_count: long error_details: ErrorCause[] diff --git a/specification/specs/x_pack/security/user/put_user/PutUserRequest.ts b/specification/specs/x_pack/security/user/put_user/PutUserRequest.ts index cdec2507de..04c873ea7d 100644 --- a/specification/specs/x_pack/security/user/put_user/PutUserRequest.ts +++ b/specification/specs/x_pack/security/user/put_user/PutUserRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('security.put_user') class PutUserRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/security/user/put_user/PutUserResponse.ts b/specification/specs/x_pack/security/user/put_user/PutUserResponse.ts index f72102d364..45ca72d3e4 100644 --- a/specification/specs/x_pack/security/user/put_user/PutUserResponse.ts +++ b/specification/specs/x_pack/security/user/put_user/PutUserResponse.ts @@ -1,3 +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. + */ + class PutUserResponse extends ResponseBase { created: boolean } diff --git a/specification/specs/x_pack/slm/SnapshotLifecycleConfig.ts b/specification/specs/x_pack/slm/SnapshotLifecycleConfig.ts index 2f3c90cb81..6970d84523 100644 --- a/specification/specs/x_pack/slm/SnapshotLifecycleConfig.ts +++ b/specification/specs/x_pack/slm/SnapshotLifecycleConfig.ts @@ -1,3 +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. + */ + class SnapshotLifecycleConfig { ignore_unavailable: boolean include_global_state: boolean diff --git a/specification/specs/x_pack/slm/SnapshotLifecycleInProgress.ts b/specification/specs/x_pack/slm/SnapshotLifecycleInProgress.ts index c4a261f676..f22a327877 100644 --- a/specification/specs/x_pack/slm/SnapshotLifecycleInProgress.ts +++ b/specification/specs/x_pack/slm/SnapshotLifecycleInProgress.ts @@ -1,3 +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. + */ + class SnapshotLifecycleInProgress { name: string /** @prop_serializer DateTimeOffsetEpochMillisecondsFormatter */ diff --git a/specification/specs/x_pack/slm/SnapshotLifecycleInvocationRecord.ts b/specification/specs/x_pack/slm/SnapshotLifecycleInvocationRecord.ts index b14a9e8ae2..22a49bf49c 100644 --- a/specification/specs/x_pack/slm/SnapshotLifecycleInvocationRecord.ts +++ b/specification/specs/x_pack/slm/SnapshotLifecycleInvocationRecord.ts @@ -1,3 +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. + */ + class SnapshotLifecycleInvocationRecord { snapshot_name: string /** @prop_serializer DateTimeOffsetEpochMillisecondsFormatter */ diff --git a/specification/specs/x_pack/slm/SnapshotLifecyclePolicy.ts b/specification/specs/x_pack/slm/SnapshotLifecyclePolicy.ts index 9f3973dcf0..f6d7b8bf0b 100644 --- a/specification/specs/x_pack/slm/SnapshotLifecyclePolicy.ts +++ b/specification/specs/x_pack/slm/SnapshotLifecyclePolicy.ts @@ -1,3 +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. + */ + class SnapshotLifecyclePolicy { config: SnapshotLifecycleConfig name: string diff --git a/specification/specs/x_pack/slm/SnapshotLifecyclePolicyMetadata.ts b/specification/specs/x_pack/slm/SnapshotLifecyclePolicyMetadata.ts index dcef3a38d5..bafa701bde 100644 --- a/specification/specs/x_pack/slm/SnapshotLifecyclePolicyMetadata.ts +++ b/specification/specs/x_pack/slm/SnapshotLifecyclePolicyMetadata.ts @@ -1,3 +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. + */ + class SnapshotLifecyclePolicyMetadata { in_progress: SnapshotLifecycleInProgress last_failure: SnapshotLifecycleInvocationRecord diff --git a/specification/specs/x_pack/slm/SnapshotRetentionConfiguration.ts b/specification/specs/x_pack/slm/SnapshotRetentionConfiguration.ts index 26a9a73b99..68990f3414 100644 --- a/specification/specs/x_pack/slm/SnapshotRetentionConfiguration.ts +++ b/specification/specs/x_pack/slm/SnapshotRetentionConfiguration.ts @@ -1,3 +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. + */ + class SnapshotRetentionConfiguration { expire_after: Time max_count: integer diff --git a/specification/specs/x_pack/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts b/specification/specs/x_pack/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts index cb703edaaf..ca61cfe5d9 100644 --- a/specification/specs/x_pack/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts +++ b/specification/specs/x_pack/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('slm.delete_lifecycle') class DeleteSnapshotLifecycleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts b/specification/specs/x_pack/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts index f1230804b8..3f79517cc1 100644 --- a/specification/specs/x_pack/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts +++ b/specification/specs/x_pack/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteSnapshotLifecycleResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts b/specification/specs/x_pack/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts index 8014fb7daa..541f40a2ab 100644 --- a/specification/specs/x_pack/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts +++ b/specification/specs/x_pack/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('slm.execute_lifecycle') class ExecuteSnapshotLifecycleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts b/specification/specs/x_pack/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts index 9631cb42ad..ef53fd9fb9 100644 --- a/specification/specs/x_pack/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts +++ b/specification/specs/x_pack/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts @@ -1,3 +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. + */ + class ExecuteSnapshotLifecycleResponse extends ResponseBase { snapshot_name: string } diff --git a/specification/specs/x_pack/slm/execute_retention/ExecuteRetentionRequest.ts b/specification/specs/x_pack/slm/execute_retention/ExecuteRetentionRequest.ts index 45fed83195..e81d852df6 100644 --- a/specification/specs/x_pack/slm/execute_retention/ExecuteRetentionRequest.ts +++ b/specification/specs/x_pack/slm/execute_retention/ExecuteRetentionRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('slm.execute_retention') class ExecuteRetentionRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/slm/execute_retention/ExecuteRetentionResponse.ts b/specification/specs/x_pack/slm/execute_retention/ExecuteRetentionResponse.ts index 3bf99bd359..282f89400e 100644 --- a/specification/specs/x_pack/slm/execute_retention/ExecuteRetentionResponse.ts +++ b/specification/specs/x_pack/slm/execute_retention/ExecuteRetentionResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ExecuteRetentionResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts b/specification/specs/x_pack/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts index dd22400417..a0dc55a85b 100644 --- a/specification/specs/x_pack/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts +++ b/specification/specs/x_pack/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('slm.get_lifecycle') class GetSnapshotLifecycleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts b/specification/specs/x_pack/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts index 313fe3b781..3b717553cb 100644 --- a/specification/specs/x_pack/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts +++ b/specification/specs/x_pack/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts @@ -1,3 +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. + */ + class GetSnapshotLifecycleResponse extends DictionaryResponseBase< string, SnapshotLifecyclePolicyMetadata diff --git a/specification/specs/x_pack/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts b/specification/specs/x_pack/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts index 7f2c670818..5b11566b79 100644 --- a/specification/specs/x_pack/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts +++ b/specification/specs/x_pack/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('slm.get_stats') class GetSnapshotLifecycleStatsRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts b/specification/specs/x_pack/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts index 39ddaedc2b..e032bde0f9 100644 --- a/specification/specs/x_pack/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts +++ b/specification/specs/x_pack/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts @@ -1,3 +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. + */ + class GetSnapshotLifecycleStatsResponse extends ResponseBase { retention_deletion_time: string retention_deletion_time_millis: long diff --git a/specification/specs/x_pack/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts b/specification/specs/x_pack/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts index 4217c4ba68..d392f62ff9 100644 --- a/specification/specs/x_pack/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts +++ b/specification/specs/x_pack/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('slm.get_status') class GetSnapshotLifecycleManagementStatusRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts b/specification/specs/x_pack/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts index d5ecee9a9e..dadaf56ccd 100644 --- a/specification/specs/x_pack/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts +++ b/specification/specs/x_pack/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts @@ -1,3 +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. + */ + class GetSnapshotLifecycleManagementStatusResponse extends ResponseBase { operation_mode: LifecycleOperationMode } diff --git a/specification/specs/x_pack/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts b/specification/specs/x_pack/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts index 7414d962a0..a21f7ce4b4 100644 --- a/specification/specs/x_pack/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts +++ b/specification/specs/x_pack/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('slm.put_lifecycle') class PutSnapshotLifecycleRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts b/specification/specs/x_pack/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts index 6dc12ad748..c08da9b57a 100644 --- a/specification/specs/x_pack/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts +++ b/specification/specs/x_pack/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PutSnapshotLifecycleResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/slm/start/StartSnapshotLifecycleManagementRequest.ts b/specification/specs/x_pack/slm/start/StartSnapshotLifecycleManagementRequest.ts index 60179beba3..05e90e6e22 100644 --- a/specification/specs/x_pack/slm/start/StartSnapshotLifecycleManagementRequest.ts +++ b/specification/specs/x_pack/slm/start/StartSnapshotLifecycleManagementRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('slm.start') class StartSnapshotLifecycleManagementRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/slm/start/StartSnapshotLifecycleManagementResponse.ts b/specification/specs/x_pack/slm/start/StartSnapshotLifecycleManagementResponse.ts index 2239bf84e8..15e0d18b7e 100644 --- a/specification/specs/x_pack/slm/start/StartSnapshotLifecycleManagementResponse.ts +++ b/specification/specs/x_pack/slm/start/StartSnapshotLifecycleManagementResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class StartSnapshotLifecycleManagementResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/slm/stop/StopSnapshotLifecycleManagementRequest.ts b/specification/specs/x_pack/slm/stop/StopSnapshotLifecycleManagementRequest.ts index 800be863c6..7455ca9c81 100644 --- a/specification/specs/x_pack/slm/stop/StopSnapshotLifecycleManagementRequest.ts +++ b/specification/specs/x_pack/slm/stop/StopSnapshotLifecycleManagementRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('slm.stop') class StopSnapshotLifecycleManagementRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/slm/stop/StopSnapshotLifecycleManagementResponse.ts b/specification/specs/x_pack/slm/stop/StopSnapshotLifecycleManagementResponse.ts index 8ec3107316..a4be89c439 100644 --- a/specification/specs/x_pack/slm/stop/StopSnapshotLifecycleManagementResponse.ts +++ b/specification/specs/x_pack/slm/stop/StopSnapshotLifecycleManagementResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class StopSnapshotLifecycleManagementResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/sql/SqlRequest.ts b/specification/specs/x_pack/sql/SqlRequest.ts index 3c4db6b4dd..1e21ab698b 100644 --- a/specification/specs/x_pack/sql/SqlRequest.ts +++ b/specification/specs/x_pack/sql/SqlRequest.ts @@ -1,3 +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. + */ + class SqlRequest { fetch_size?: integer filter?: QueryContainer diff --git a/specification/specs/x_pack/sql/clear_sql_cursor/ClearSqlCursorRequest.ts b/specification/specs/x_pack/sql/clear_sql_cursor/ClearSqlCursorRequest.ts index 61f8427edf..64988bc204 100644 --- a/specification/specs/x_pack/sql/clear_sql_cursor/ClearSqlCursorRequest.ts +++ b/specification/specs/x_pack/sql/clear_sql_cursor/ClearSqlCursorRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('sql.clear_cursor') class ClearSqlCursorRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/sql/clear_sql_cursor/ClearSqlCursorResponse.ts b/specification/specs/x_pack/sql/clear_sql_cursor/ClearSqlCursorResponse.ts index d71b7f4fd1..067fa90b0d 100644 --- a/specification/specs/x_pack/sql/clear_sql_cursor/ClearSqlCursorResponse.ts +++ b/specification/specs/x_pack/sql/clear_sql_cursor/ClearSqlCursorResponse.ts @@ -1,3 +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. + */ + class ClearSqlCursorResponse extends ResponseBase { succeeded: boolean } diff --git a/specification/specs/x_pack/sql/query_sql/QuerySqlRequest.ts b/specification/specs/x_pack/sql/query_sql/QuerySqlRequest.ts index a590159a29..59e6ba4085 100644 --- a/specification/specs/x_pack/sql/query_sql/QuerySqlRequest.ts +++ b/specification/specs/x_pack/sql/query_sql/QuerySqlRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('sql.query') class QuerySqlRequest extends RequestBase { query_parameters?: { diff --git a/specification/specs/x_pack/sql/query_sql/QuerySqlResponse.ts b/specification/specs/x_pack/sql/query_sql/QuerySqlResponse.ts index 8910af0186..dd2dab3cdb 100644 --- a/specification/specs/x_pack/sql/query_sql/QuerySqlResponse.ts +++ b/specification/specs/x_pack/sql/query_sql/QuerySqlResponse.ts @@ -1,3 +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. + */ + class QuerySqlResponse extends ResponseBase { columns: SqlColumn[] cursor: string diff --git a/specification/specs/x_pack/sql/query_sql/SqlColumn.ts b/specification/specs/x_pack/sql/query_sql/SqlColumn.ts index 32679a765b..1aa97e1dd3 100644 --- a/specification/specs/x_pack/sql/query_sql/SqlColumn.ts +++ b/specification/specs/x_pack/sql/query_sql/SqlColumn.ts @@ -1,3 +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. + */ + class SqlColumn { name: string type: string diff --git a/specification/specs/x_pack/sql/query_sql/SqlValue.ts b/specification/specs/x_pack/sql/query_sql/SqlValue.ts index cea97b1a3f..06dbc2226e 100644 --- a/specification/specs/x_pack/sql/query_sql/SqlValue.ts +++ b/specification/specs/x_pack/sql/query_sql/SqlValue.ts @@ -1,2 +1,21 @@ +/* + * 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. + */ + @class_serializer('SqlValueFormatter') class SqlValue extends LazyDocument {} diff --git a/specification/specs/x_pack/sql/translate_sql/TranslateSqlRequest.ts b/specification/specs/x_pack/sql/translate_sql/TranslateSqlRequest.ts index 6e34a896a2..b9fc300c5d 100644 --- a/specification/specs/x_pack/sql/translate_sql/TranslateSqlRequest.ts +++ b/specification/specs/x_pack/sql/translate_sql/TranslateSqlRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('sql.translate') class TranslateSqlRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/sql/translate_sql/TranslateSqlResponse.ts b/specification/specs/x_pack/sql/translate_sql/TranslateSqlResponse.ts index c0d602b2e2..8f86265b57 100644 --- a/specification/specs/x_pack/sql/translate_sql/TranslateSqlResponse.ts +++ b/specification/specs/x_pack/sql/translate_sql/TranslateSqlResponse.ts @@ -1,3 +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. + */ + class TranslateSqlResponse extends ResponseBase { result: SearchRequest } diff --git a/specification/specs/x_pack/ssl/get_certificates/ClusterCertificateInformation.ts b/specification/specs/x_pack/ssl/get_certificates/ClusterCertificateInformation.ts index f423720afb..371818f706 100644 --- a/specification/specs/x_pack/ssl/get_certificates/ClusterCertificateInformation.ts +++ b/specification/specs/x_pack/ssl/get_certificates/ClusterCertificateInformation.ts @@ -1,3 +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. + */ + class ClusterCertificateInformation { alias: string expiry: Date diff --git a/specification/specs/x_pack/ssl/get_certificates/GetCertificatesRequest.ts b/specification/specs/x_pack/ssl/get_certificates/GetCertificatesRequest.ts index e45b794363..e5219778a3 100644 --- a/specification/specs/x_pack/ssl/get_certificates/GetCertificatesRequest.ts +++ b/specification/specs/x_pack/ssl/get_certificates/GetCertificatesRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('ssl.certificates') class GetCertificatesRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/ssl/get_certificates/GetCertificatesResponse.ts b/specification/specs/x_pack/ssl/get_certificates/GetCertificatesResponse.ts index f6f0179ed2..400efdd019 100644 --- a/specification/specs/x_pack/ssl/get_certificates/GetCertificatesResponse.ts +++ b/specification/specs/x_pack/ssl/get_certificates/GetCertificatesResponse.ts @@ -1,3 +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. + */ + @class_serializer('GetCertificatesResponseFormatter') class GetCertificatesResponse extends ResponseBase { certificates: ClusterCertificateInformation[] diff --git a/specification/specs/x_pack/transform/TransformDestination.ts b/specification/specs/x_pack/transform/TransformDestination.ts index 36a17bf3e5..57da11a3aa 100644 --- a/specification/specs/x_pack/transform/TransformDestination.ts +++ b/specification/specs/x_pack/transform/TransformDestination.ts @@ -1,3 +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. + */ + class TransformDestination { index: IndexName pipeline: string diff --git a/specification/specs/x_pack/transform/TransformSource.ts b/specification/specs/x_pack/transform/TransformSource.ts index 33f1e8724d..244bb432fc 100644 --- a/specification/specs/x_pack/transform/TransformSource.ts +++ b/specification/specs/x_pack/transform/TransformSource.ts @@ -1,3 +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. + */ + class TransformSource { /** @prop_serializer IndicesFormatter */ index: Indices diff --git a/specification/specs/x_pack/transform/TransformSync.ts b/specification/specs/x_pack/transform/TransformSync.ts index 5bcaeb869e..ecd8e09efa 100644 --- a/specification/specs/x_pack/transform/TransformSync.ts +++ b/specification/specs/x_pack/transform/TransformSync.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class TransformSync {} diff --git a/specification/specs/x_pack/transform/TransformSyncContainer.ts b/specification/specs/x_pack/transform/TransformSyncContainer.ts index fca96359fb..9e5537ebb8 100644 --- a/specification/specs/x_pack/transform/TransformSyncContainer.ts +++ b/specification/specs/x_pack/transform/TransformSyncContainer.ts @@ -1,3 +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. + */ + class TransformSyncContainer { time: TransformTimeSync } diff --git a/specification/specs/x_pack/transform/TransformTimeSync.ts b/specification/specs/x_pack/transform/TransformTimeSync.ts index 3cce331194..369916ba4b 100644 --- a/specification/specs/x_pack/transform/TransformTimeSync.ts +++ b/specification/specs/x_pack/transform/TransformTimeSync.ts @@ -1,3 +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. + */ + class TransformTimeSync { delay: Time field: Field diff --git a/specification/specs/x_pack/transform/delete_transform/DeleteTransformRequest.ts b/specification/specs/x_pack/transform/delete_transform/DeleteTransformRequest.ts index 4f9734850b..de3371008d 100644 --- a/specification/specs/x_pack/transform/delete_transform/DeleteTransformRequest.ts +++ b/specification/specs/x_pack/transform/delete_transform/DeleteTransformRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('transform.delete_transform') class DeleteTransformRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/transform/delete_transform/DeleteTransformResponse.ts b/specification/specs/x_pack/transform/delete_transform/DeleteTransformResponse.ts index 92afec515a..de7718d2e9 100644 --- a/specification/specs/x_pack/transform/delete_transform/DeleteTransformResponse.ts +++ b/specification/specs/x_pack/transform/delete_transform/DeleteTransformResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class DeleteTransformResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/transform/get_transform/GetTransformRequest.ts b/specification/specs/x_pack/transform/get_transform/GetTransformRequest.ts index 78fe9b15b7..78286b69d7 100644 --- a/specification/specs/x_pack/transform/get_transform/GetTransformRequest.ts +++ b/specification/specs/x_pack/transform/get_transform/GetTransformRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('transform.get_transform') class GetTransformRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/transform/get_transform/GetTransformResponse.ts b/specification/specs/x_pack/transform/get_transform/GetTransformResponse.ts index ec3cd97f15..517bcfad01 100644 --- a/specification/specs/x_pack/transform/get_transform/GetTransformResponse.ts +++ b/specification/specs/x_pack/transform/get_transform/GetTransformResponse.ts @@ -1,3 +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. + */ + class GetTransformResponse extends ResponseBase { count: long transforms: Transform[] diff --git a/specification/specs/x_pack/transform/get_transform_stats/GetTransformStatsRequest.ts b/specification/specs/x_pack/transform/get_transform_stats/GetTransformStatsRequest.ts index 96879f8571..d57176089a 100644 --- a/specification/specs/x_pack/transform/get_transform_stats/GetTransformStatsRequest.ts +++ b/specification/specs/x_pack/transform/get_transform_stats/GetTransformStatsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('transform.get_transform_stats') class GetTransformStatsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/transform/get_transform_stats/GetTransformStatsResponse.ts b/specification/specs/x_pack/transform/get_transform_stats/GetTransformStatsResponse.ts index 2d792950ff..1d989c08d9 100644 --- a/specification/specs/x_pack/transform/get_transform_stats/GetTransformStatsResponse.ts +++ b/specification/specs/x_pack/transform/get_transform_stats/GetTransformStatsResponse.ts @@ -1,3 +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. + */ + class GetTransformStatsResponse extends ResponseBase { count: long transforms: TransformStats[] diff --git a/specification/specs/x_pack/transform/get_transform_stats/NodeAttributes.ts b/specification/specs/x_pack/transform/get_transform_stats/NodeAttributes.ts index c27ca5a40a..e3ef61454f 100644 --- a/specification/specs/x_pack/transform/get_transform_stats/NodeAttributes.ts +++ b/specification/specs/x_pack/transform/get_transform_stats/NodeAttributes.ts @@ -1,3 +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. + */ + class NodeAttributes { attributes: Dictionary ephemeral_id: string diff --git a/specification/specs/x_pack/transform/get_transform_stats/TransformCheckpointStats.ts b/specification/specs/x_pack/transform/get_transform_stats/TransformCheckpointStats.ts index c1fedd1225..3b040cee06 100644 --- a/specification/specs/x_pack/transform/get_transform_stats/TransformCheckpointStats.ts +++ b/specification/specs/x_pack/transform/get_transform_stats/TransformCheckpointStats.ts @@ -1,3 +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. + */ + class TransformCheckpointStats { checkpoint: long checkpoint_progress: TransformProgress diff --git a/specification/specs/x_pack/transform/get_transform_stats/TransformCheckpointingInfo.ts b/specification/specs/x_pack/transform/get_transform_stats/TransformCheckpointingInfo.ts index 9bc66641a9..1986fb7cae 100644 --- a/specification/specs/x_pack/transform/get_transform_stats/TransformCheckpointingInfo.ts +++ b/specification/specs/x_pack/transform/get_transform_stats/TransformCheckpointingInfo.ts @@ -1,3 +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. + */ + class TransformCheckpointingInfo { changes_last_detected_at: long changes_last_detected_at_date_time: Date diff --git a/specification/specs/x_pack/transform/get_transform_stats/TransformIndexerStats.ts b/specification/specs/x_pack/transform/get_transform_stats/TransformIndexerStats.ts index 45753542cf..f7741efc5a 100644 --- a/specification/specs/x_pack/transform/get_transform_stats/TransformIndexerStats.ts +++ b/specification/specs/x_pack/transform/get_transform_stats/TransformIndexerStats.ts @@ -1,3 +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. + */ + class TransformIndexerStats { documents_indexed: long documents_processed: long diff --git a/specification/specs/x_pack/transform/get_transform_stats/TransformProgress.ts b/specification/specs/x_pack/transform/get_transform_stats/TransformProgress.ts index 1d76873b12..a088d7d87c 100644 --- a/specification/specs/x_pack/transform/get_transform_stats/TransformProgress.ts +++ b/specification/specs/x_pack/transform/get_transform_stats/TransformProgress.ts @@ -1,3 +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. + */ + class TransformProgress { docs_indexed: long docs_processed: long diff --git a/specification/specs/x_pack/transform/get_transform_stats/TransformStats.ts b/specification/specs/x_pack/transform/get_transform_stats/TransformStats.ts index 15c562e810..7beceef99b 100644 --- a/specification/specs/x_pack/transform/get_transform_stats/TransformStats.ts +++ b/specification/specs/x_pack/transform/get_transform_stats/TransformStats.ts @@ -1,3 +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. + */ + class TransformStats { checkpointing: TransformCheckpointingInfo id: string diff --git a/specification/specs/x_pack/transform/pivot/SingleGroupSource.ts b/specification/specs/x_pack/transform/pivot/SingleGroupSource.ts index d9b006538f..99ec1a40ee 100644 --- a/specification/specs/x_pack/transform/pivot/SingleGroupSource.ts +++ b/specification/specs/x_pack/transform/pivot/SingleGroupSource.ts @@ -1,3 +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. + */ + @class_serializer('SingleGroupSourceFormatter') class SingleGroupSource { field: Field diff --git a/specification/specs/x_pack/transform/pivot/TransformPivot.ts b/specification/specs/x_pack/transform/pivot/TransformPivot.ts index e25972df8e..d7f1988cdd 100644 --- a/specification/specs/x_pack/transform/pivot/TransformPivot.ts +++ b/specification/specs/x_pack/transform/pivot/TransformPivot.ts @@ -1,3 +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. + */ + class TransformPivot { aggregations: Dictionary group_by: Dictionary diff --git a/specification/specs/x_pack/transform/preview_transform/PreviewTransformRequest.ts b/specification/specs/x_pack/transform/preview_transform/PreviewTransformRequest.ts index 2884c1d38b..40869ec5de 100644 --- a/specification/specs/x_pack/transform/preview_transform/PreviewTransformRequest.ts +++ b/specification/specs/x_pack/transform/preview_transform/PreviewTransformRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('transform.preview_transform') class PreviewTransformRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/transform/preview_transform/PreviewTransformResponse.ts b/specification/specs/x_pack/transform/preview_transform/PreviewTransformResponse.ts index b64665c106..3948bceb66 100644 --- a/specification/specs/x_pack/transform/preview_transform/PreviewTransformResponse.ts +++ b/specification/specs/x_pack/transform/preview_transform/PreviewTransformResponse.ts @@ -1,3 +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. + */ + class PreviewTransformResponse extends ResponseBase { generated_dest_index: IndexState /** @prop_serializer SourceFormatter`1 */ diff --git a/specification/specs/x_pack/transform/put_transform/PutTransformRequest.ts b/specification/specs/x_pack/transform/put_transform/PutTransformRequest.ts index de2ebbfc57..0257b2da86 100644 --- a/specification/specs/x_pack/transform/put_transform/PutTransformRequest.ts +++ b/specification/specs/x_pack/transform/put_transform/PutTransformRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('transform.put_transform') class PutTransformRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/transform/put_transform/PutTransformResponse.ts b/specification/specs/x_pack/transform/put_transform/PutTransformResponse.ts index 55800ff3ef..e780d61585 100644 --- a/specification/specs/x_pack/transform/put_transform/PutTransformResponse.ts +++ b/specification/specs/x_pack/transform/put_transform/PutTransformResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class PutTransformResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/transform/start_transform/StartTransformRequest.ts b/specification/specs/x_pack/transform/start_transform/StartTransformRequest.ts index 4db4e07020..a7391874f2 100644 --- a/specification/specs/x_pack/transform/start_transform/StartTransformRequest.ts +++ b/specification/specs/x_pack/transform/start_transform/StartTransformRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('transform.start_transform') class StartTransformRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/transform/start_transform/StartTransformResponse.ts b/specification/specs/x_pack/transform/start_transform/StartTransformResponse.ts index 005117f3cf..010bdca00e 100644 --- a/specification/specs/x_pack/transform/start_transform/StartTransformResponse.ts +++ b/specification/specs/x_pack/transform/start_transform/StartTransformResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class StartTransformResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/transform/stop_transform/StopTransformRequest.ts b/specification/specs/x_pack/transform/stop_transform/StopTransformRequest.ts index fbf5fec1b0..f22a42914e 100644 --- a/specification/specs/x_pack/transform/stop_transform/StopTransformRequest.ts +++ b/specification/specs/x_pack/transform/stop_transform/StopTransformRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('transform.stop_transform') class StopTransformRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/transform/stop_transform/StopTransformResponse.ts b/specification/specs/x_pack/transform/stop_transform/StopTransformResponse.ts index 7c5f58d2cc..c5cd09759c 100644 --- a/specification/specs/x_pack/transform/stop_transform/StopTransformResponse.ts +++ b/specification/specs/x_pack/transform/stop_transform/StopTransformResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class StopTransformResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/transform/update_transform/UpdateTransformRequest.ts b/specification/specs/x_pack/transform/update_transform/UpdateTransformRequest.ts index d549f90559..67488b79ed 100644 --- a/specification/specs/x_pack/transform/update_transform/UpdateTransformRequest.ts +++ b/specification/specs/x_pack/transform/update_transform/UpdateTransformRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('transform.update_transform') class UpdateTransformRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/transform/update_transform/UpdateTransformResponse.ts b/specification/specs/x_pack/transform/update_transform/UpdateTransformResponse.ts index 413f682657..fe7df49eb9 100644 --- a/specification/specs/x_pack/transform/update_transform/UpdateTransformResponse.ts +++ b/specification/specs/x_pack/transform/update_transform/UpdateTransformResponse.ts @@ -1,3 +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. + */ + class UpdateTransformResponse extends ResponseBase { create_time: long create_time_date_time: Date diff --git a/specification/specs/x_pack/watcher/Watch.ts b/specification/specs/x_pack/watcher/Watch.ts index ec78eeda13..ee88bfba86 100644 --- a/specification/specs/x_pack/watcher/Watch.ts +++ b/specification/specs/x_pack/watcher/Watch.ts @@ -1,3 +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. + */ + class Watch { actions: Dictionary condition: ConditionContainer diff --git a/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeState.ts b/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeState.ts index 2fcb66e466..748211d5d1 100644 --- a/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeState.ts +++ b/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeState.ts @@ -1,3 +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. + */ + class AcknowledgeState { state: AcknowledgementState timestamp: Date diff --git a/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeWatchRequest.ts b/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeWatchRequest.ts index cb42639d3c..4fe9ac1e2a 100644 --- a/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeWatchRequest.ts +++ b/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeWatchRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('watcher.ack_watch') class AcknowledgeWatchRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeWatchResponse.ts b/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeWatchResponse.ts index b71eb2a652..eb7919599a 100644 --- a/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeWatchResponse.ts +++ b/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgeWatchResponse.ts @@ -1,3 +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. + */ + class AcknowledgeWatchResponse extends ResponseBase { status: WatchStatus } diff --git a/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgementState.ts b/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgementState.ts index 7d0474f3ca..897ffc4a16 100644 --- a/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgementState.ts +++ b/specification/specs/x_pack/watcher/acknowledge_watch/AcknowledgementState.ts @@ -1,3 +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. + */ + enum AcknowledgementState { awaits_successful_execution = 0, ackable = 1, diff --git a/specification/specs/x_pack/watcher/acknowledge_watch/ActionStatus.ts b/specification/specs/x_pack/watcher/acknowledge_watch/ActionStatus.ts index 3a3ee5c0c1..e6232bc238 100644 --- a/specification/specs/x_pack/watcher/acknowledge_watch/ActionStatus.ts +++ b/specification/specs/x_pack/watcher/acknowledge_watch/ActionStatus.ts @@ -1,3 +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. + */ + class ActionStatus { ack: AcknowledgeState last_execution: ExecutionState diff --git a/specification/specs/x_pack/watcher/acknowledge_watch/ActivationState.ts b/specification/specs/x_pack/watcher/acknowledge_watch/ActivationState.ts index d8139846bd..90f854279c 100644 --- a/specification/specs/x_pack/watcher/acknowledge_watch/ActivationState.ts +++ b/specification/specs/x_pack/watcher/acknowledge_watch/ActivationState.ts @@ -1,3 +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. + */ + class ActivationState { active: boolean timestamp: Date diff --git a/specification/specs/x_pack/watcher/acknowledge_watch/ExecutionState.ts b/specification/specs/x_pack/watcher/acknowledge_watch/ExecutionState.ts index 648a474b56..12c8e3e9ab 100644 --- a/specification/specs/x_pack/watcher/acknowledge_watch/ExecutionState.ts +++ b/specification/specs/x_pack/watcher/acknowledge_watch/ExecutionState.ts @@ -1,3 +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. + */ + class ExecutionState { successful: boolean timestamp: Date diff --git a/specification/specs/x_pack/watcher/acknowledge_watch/ThrottleState.ts b/specification/specs/x_pack/watcher/acknowledge_watch/ThrottleState.ts index 4fdea7ff00..811de0cbed 100644 --- a/specification/specs/x_pack/watcher/acknowledge_watch/ThrottleState.ts +++ b/specification/specs/x_pack/watcher/acknowledge_watch/ThrottleState.ts @@ -1,3 +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. + */ + class ThrottleState { reason: string timestamp: Date diff --git a/specification/specs/x_pack/watcher/acknowledge_watch/WatchStatus.ts b/specification/specs/x_pack/watcher/acknowledge_watch/WatchStatus.ts index 41218e6c13..bbc223a99c 100644 --- a/specification/specs/x_pack/watcher/acknowledge_watch/WatchStatus.ts +++ b/specification/specs/x_pack/watcher/acknowledge_watch/WatchStatus.ts @@ -1,3 +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. + */ + class WatchStatus { actions: Dictionary last_checked: Date diff --git a/specification/specs/x_pack/watcher/action/Action.ts b/specification/specs/x_pack/watcher/action/Action.ts index 16215b5869..9e110f4f18 100644 --- a/specification/specs/x_pack/watcher/action/Action.ts +++ b/specification/specs/x_pack/watcher/action/Action.ts @@ -1,3 +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. + */ + class Action { action_type: ActionType condition: ConditionContainer diff --git a/specification/specs/x_pack/watcher/action/ActionType.ts b/specification/specs/x_pack/watcher/action/ActionType.ts index a03f08fc71..a7745a7bac 100644 --- a/specification/specs/x_pack/watcher/action/ActionType.ts +++ b/specification/specs/x_pack/watcher/action/ActionType.ts @@ -1,3 +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. + */ + enum ActionType { email = 0, webhook = 1, diff --git a/specification/specs/x_pack/watcher/action/email/DataAttachmentFormat.ts b/specification/specs/x_pack/watcher/action/email/DataAttachmentFormat.ts index 738cb6ed7d..200e704b99 100644 --- a/specification/specs/x_pack/watcher/action/email/DataAttachmentFormat.ts +++ b/specification/specs/x_pack/watcher/action/email/DataAttachmentFormat.ts @@ -1,3 +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. + */ + enum DataAttachmentFormat { json = 0, yaml = 1 diff --git a/specification/specs/x_pack/watcher/action/email/EmailBody.ts b/specification/specs/x_pack/watcher/action/email/EmailBody.ts index aa21d0d565..1557c3959d 100644 --- a/specification/specs/x_pack/watcher/action/email/EmailBody.ts +++ b/specification/specs/x_pack/watcher/action/email/EmailBody.ts @@ -1,3 +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. + */ + class EmailBody { html: string text: string diff --git a/specification/specs/x_pack/watcher/action/email/EmailPriority.ts b/specification/specs/x_pack/watcher/action/email/EmailPriority.ts index 4271dba978..82b421238f 100644 --- a/specification/specs/x_pack/watcher/action/email/EmailPriority.ts +++ b/specification/specs/x_pack/watcher/action/email/EmailPriority.ts @@ -1,3 +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. + */ + enum EmailPriority { lowest = 0, low = 1, diff --git a/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyContext.ts b/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyContext.ts index 80a485be81..182282d30a 100644 --- a/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyContext.ts +++ b/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyContext.ts @@ -1,3 +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. + */ + class PagerDutyContext { href: string src: string diff --git a/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyContextType.ts b/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyContextType.ts index e32d003974..573506982e 100644 --- a/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyContextType.ts +++ b/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyContextType.ts @@ -1,3 +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. + */ + enum PagerDutyContextType { link = 0, image = 1 diff --git a/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyEvent.ts b/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyEvent.ts index f36b0f8ee7..ab53d088b2 100644 --- a/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyEvent.ts +++ b/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyEvent.ts @@ -1,3 +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. + */ + class PagerDutyEvent { account: string attach_payload: boolean diff --git a/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyEventType.ts b/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyEventType.ts index fe791046e3..597895c092 100644 --- a/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyEventType.ts +++ b/specification/specs/x_pack/watcher/action/pager_duty/PagerDutyEventType.ts @@ -1,3 +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. + */ + enum PagerDutyEventType { trigger = 0, resolve = 1, diff --git a/specification/specs/x_pack/watcher/action/slack/SlackAttachment.ts b/specification/specs/x_pack/watcher/action/slack/SlackAttachment.ts index 9856670d43..d669d1d877 100644 --- a/specification/specs/x_pack/watcher/action/slack/SlackAttachment.ts +++ b/specification/specs/x_pack/watcher/action/slack/SlackAttachment.ts @@ -1,3 +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. + */ + class SlackAttachment { author_icon: string author_link: string diff --git a/specification/specs/x_pack/watcher/action/slack/SlackAttachmentField.ts b/specification/specs/x_pack/watcher/action/slack/SlackAttachmentField.ts index 26726be55a..c7713e80e5 100644 --- a/specification/specs/x_pack/watcher/action/slack/SlackAttachmentField.ts +++ b/specification/specs/x_pack/watcher/action/slack/SlackAttachmentField.ts @@ -1,3 +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. + */ + class SlackAttachmentField { short: boolean title: string diff --git a/specification/specs/x_pack/watcher/action/slack/SlackDynamicAttachment.ts b/specification/specs/x_pack/watcher/action/slack/SlackDynamicAttachment.ts index b05e54c3d8..7d07ae4fc5 100644 --- a/specification/specs/x_pack/watcher/action/slack/SlackDynamicAttachment.ts +++ b/specification/specs/x_pack/watcher/action/slack/SlackDynamicAttachment.ts @@ -1,3 +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. + */ + class SlackDynamicAttachment { attachment_template: SlackAttachment list_path: string diff --git a/specification/specs/x_pack/watcher/action/slack/SlackMessage.ts b/specification/specs/x_pack/watcher/action/slack/SlackMessage.ts index 352cf700aa..8b43f9ee63 100644 --- a/specification/specs/x_pack/watcher/action/slack/SlackMessage.ts +++ b/specification/specs/x_pack/watcher/action/slack/SlackMessage.ts @@ -1,3 +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. + */ + class SlackMessage { attachments: SlackAttachment[] dynamic_attachments: SlackDynamicAttachment diff --git a/specification/specs/x_pack/watcher/activate_watch/ActivateWatchRequest.ts b/specification/specs/x_pack/watcher/activate_watch/ActivateWatchRequest.ts index 0d134fb57e..7e838e39f1 100644 --- a/specification/specs/x_pack/watcher/activate_watch/ActivateWatchRequest.ts +++ b/specification/specs/x_pack/watcher/activate_watch/ActivateWatchRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('watcher.activate_watch') class ActivateWatchRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/watcher/activate_watch/ActivateWatchResponse.ts b/specification/specs/x_pack/watcher/activate_watch/ActivateWatchResponse.ts index b8ceb0b18b..05e01a5c17 100644 --- a/specification/specs/x_pack/watcher/activate_watch/ActivateWatchResponse.ts +++ b/specification/specs/x_pack/watcher/activate_watch/ActivateWatchResponse.ts @@ -1,3 +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. + */ + class ActivateWatchResponse extends ResponseBase { status: ActivationStatus } diff --git a/specification/specs/x_pack/watcher/activate_watch/ActivationStatus.ts b/specification/specs/x_pack/watcher/activate_watch/ActivationStatus.ts index 19ea5dd232..155b61030d 100644 --- a/specification/specs/x_pack/watcher/activate_watch/ActivationStatus.ts +++ b/specification/specs/x_pack/watcher/activate_watch/ActivationStatus.ts @@ -1,3 +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. + */ + class ActivationStatus { actions: Dictionary state: ActivationState diff --git a/specification/specs/x_pack/watcher/condition/AlwaysCondition.ts b/specification/specs/x_pack/watcher/condition/AlwaysCondition.ts index 09fedac2d6..7468586416 100644 --- a/specification/specs/x_pack/watcher/condition/AlwaysCondition.ts +++ b/specification/specs/x_pack/watcher/condition/AlwaysCondition.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class AlwaysCondition {} diff --git a/specification/specs/x_pack/watcher/condition/ArrayCompareCondition.ts b/specification/specs/x_pack/watcher/condition/ArrayCompareCondition.ts index 700ac7c8af..240dffbff7 100644 --- a/specification/specs/x_pack/watcher/condition/ArrayCompareCondition.ts +++ b/specification/specs/x_pack/watcher/condition/ArrayCompareCondition.ts @@ -1,3 +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. + */ + @class_serializer('ArrayCompareConditionFormatter') class ArrayCompareCondition { array_path: string diff --git a/specification/specs/x_pack/watcher/condition/CompareCondition.ts b/specification/specs/x_pack/watcher/condition/CompareCondition.ts index d820997790..1fb8f2fa56 100644 --- a/specification/specs/x_pack/watcher/condition/CompareCondition.ts +++ b/specification/specs/x_pack/watcher/condition/CompareCondition.ts @@ -1,3 +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. + */ + @class_serializer('CompareConditionFormatter') class CompareCondition { comparison: string diff --git a/specification/specs/x_pack/watcher/condition/Condition.ts b/specification/specs/x_pack/watcher/condition/Condition.ts index 90b0ed467d..ec72cd758e 100644 --- a/specification/specs/x_pack/watcher/condition/Condition.ts +++ b/specification/specs/x_pack/watcher/condition/Condition.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class Condition {} diff --git a/specification/specs/x_pack/watcher/condition/ConditionContainer.ts b/specification/specs/x_pack/watcher/condition/ConditionContainer.ts index 0ccf6c902f..bb96295bdd 100644 --- a/specification/specs/x_pack/watcher/condition/ConditionContainer.ts +++ b/specification/specs/x_pack/watcher/condition/ConditionContainer.ts @@ -1,3 +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. + */ + class ConditionContainer { always: AlwaysCondition array_compare: ArrayCompareCondition diff --git a/specification/specs/x_pack/watcher/condition/ConditionType.ts b/specification/specs/x_pack/watcher/condition/ConditionType.ts index 7e3def2776..30d856de02 100644 --- a/specification/specs/x_pack/watcher/condition/ConditionType.ts +++ b/specification/specs/x_pack/watcher/condition/ConditionType.ts @@ -1,3 +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. + */ + enum ConditionType { always = 0, never = 1, diff --git a/specification/specs/x_pack/watcher/condition/NeverCondition.ts b/specification/specs/x_pack/watcher/condition/NeverCondition.ts index 2013daf441..767af26b47 100644 --- a/specification/specs/x_pack/watcher/condition/NeverCondition.ts +++ b/specification/specs/x_pack/watcher/condition/NeverCondition.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class NeverCondition {} diff --git a/specification/specs/x_pack/watcher/condition/Quantifier.ts b/specification/specs/x_pack/watcher/condition/Quantifier.ts index a7d98b5786..a6bdd20c8c 100644 --- a/specification/specs/x_pack/watcher/condition/Quantifier.ts +++ b/specification/specs/x_pack/watcher/condition/Quantifier.ts @@ -1,3 +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. + */ + enum Quantifier { some = 0, all = 1 diff --git a/specification/specs/x_pack/watcher/condition/ScriptCondition.ts b/specification/specs/x_pack/watcher/condition/ScriptCondition.ts index 62e2b1fac1..7d7ffbb232 100644 --- a/specification/specs/x_pack/watcher/condition/ScriptCondition.ts +++ b/specification/specs/x_pack/watcher/condition/ScriptCondition.ts @@ -1,3 +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. + */ + @class_serializer('ScriptConditionFormatter') class ScriptCondition { lang: string diff --git a/specification/specs/x_pack/watcher/deactivate_watch/DeactivateWatchRequest.ts b/specification/specs/x_pack/watcher/deactivate_watch/DeactivateWatchRequest.ts index 36d23b8076..1c15b39cdb 100644 --- a/specification/specs/x_pack/watcher/deactivate_watch/DeactivateWatchRequest.ts +++ b/specification/specs/x_pack/watcher/deactivate_watch/DeactivateWatchRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('watcher.deactivate_watch') class DeactivateWatchRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/watcher/deactivate_watch/DeactivateWatchResponse.ts b/specification/specs/x_pack/watcher/deactivate_watch/DeactivateWatchResponse.ts index 819577da52..af2242d3b7 100644 --- a/specification/specs/x_pack/watcher/deactivate_watch/DeactivateWatchResponse.ts +++ b/specification/specs/x_pack/watcher/deactivate_watch/DeactivateWatchResponse.ts @@ -1,3 +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. + */ + class DeactivateWatchResponse extends ResponseBase { status: ActivationStatus } diff --git a/specification/specs/x_pack/watcher/delete_watch/DeleteWatchRequest.ts b/specification/specs/x_pack/watcher/delete_watch/DeleteWatchRequest.ts index 7a92dfcd3c..91a68b5163 100644 --- a/specification/specs/x_pack/watcher/delete_watch/DeleteWatchRequest.ts +++ b/specification/specs/x_pack/watcher/delete_watch/DeleteWatchRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('watcher.delete_watch') class DeleteWatchRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/watcher/delete_watch/DeleteWatchResponse.ts b/specification/specs/x_pack/watcher/delete_watch/DeleteWatchResponse.ts index 32e2124782..506a9ab034 100644 --- a/specification/specs/x_pack/watcher/delete_watch/DeleteWatchResponse.ts +++ b/specification/specs/x_pack/watcher/delete_watch/DeleteWatchResponse.ts @@ -1,3 +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. + */ + class DeleteWatchResponse extends ResponseBase { found: boolean _id: string diff --git a/specification/specs/x_pack/watcher/execute_watch/ActionExecutionState.ts b/specification/specs/x_pack/watcher/execute_watch/ActionExecutionState.ts index ebf2a91773..6c30540e36 100644 --- a/specification/specs/x_pack/watcher/execute_watch/ActionExecutionState.ts +++ b/specification/specs/x_pack/watcher/execute_watch/ActionExecutionState.ts @@ -1,3 +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. + */ + enum ActionExecutionState { awaits_execution = 0, checking = 1, diff --git a/specification/specs/x_pack/watcher/execute_watch/ExecuteWatchRequest.ts b/specification/specs/x_pack/watcher/execute_watch/ExecuteWatchRequest.ts index b6b88ed8c9..61516f7894 100644 --- a/specification/specs/x_pack/watcher/execute_watch/ExecuteWatchRequest.ts +++ b/specification/specs/x_pack/watcher/execute_watch/ExecuteWatchRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('watcher.execute_watch') class ExecuteWatchRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/watcher/execute_watch/ExecuteWatchResponse.ts b/specification/specs/x_pack/watcher/execute_watch/ExecuteWatchResponse.ts index 7f0a7e3e9e..16d97e8709 100644 --- a/specification/specs/x_pack/watcher/execute_watch/ExecuteWatchResponse.ts +++ b/specification/specs/x_pack/watcher/execute_watch/ExecuteWatchResponse.ts @@ -1,3 +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. + */ + class ExecuteWatchResponse extends ResponseBase { _id: string watch_record: WatchRecord diff --git a/specification/specs/x_pack/watcher/execute_watch/ExecutionResult.ts b/specification/specs/x_pack/watcher/execute_watch/ExecutionResult.ts index cf22c9ae9a..2b36cbad18 100644 --- a/specification/specs/x_pack/watcher/execute_watch/ExecutionResult.ts +++ b/specification/specs/x_pack/watcher/execute_watch/ExecutionResult.ts @@ -1,3 +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. + */ + class ExecutionResult { actions: ExecutionResultAction[] condition: ExecutionResultCondition diff --git a/specification/specs/x_pack/watcher/execute_watch/ExecutionResultAction.ts b/specification/specs/x_pack/watcher/execute_watch/ExecutionResultAction.ts index 259f7952c4..2b52b3546b 100644 --- a/specification/specs/x_pack/watcher/execute_watch/ExecutionResultAction.ts +++ b/specification/specs/x_pack/watcher/execute_watch/ExecutionResultAction.ts @@ -1,3 +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. + */ + class ExecutionResultAction { email: EmailActionResult id: string diff --git a/specification/specs/x_pack/watcher/execute_watch/ExecutionResultCondition.ts b/specification/specs/x_pack/watcher/execute_watch/ExecutionResultCondition.ts index 15ab291507..339d188ad7 100644 --- a/specification/specs/x_pack/watcher/execute_watch/ExecutionResultCondition.ts +++ b/specification/specs/x_pack/watcher/execute_watch/ExecutionResultCondition.ts @@ -1,3 +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. + */ + class ExecutionResultCondition { met: boolean status: Status diff --git a/specification/specs/x_pack/watcher/execute_watch/ExecutionResultInput.ts b/specification/specs/x_pack/watcher/execute_watch/ExecutionResultInput.ts index 10c8ecf814..e48cdf081e 100644 --- a/specification/specs/x_pack/watcher/execute_watch/ExecutionResultInput.ts +++ b/specification/specs/x_pack/watcher/execute_watch/ExecutionResultInput.ts @@ -1,3 +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. + */ + class ExecutionResultInput { payload: Dictionary status: Status diff --git a/specification/specs/x_pack/watcher/execute_watch/TriggerEventResult.ts b/specification/specs/x_pack/watcher/execute_watch/TriggerEventResult.ts index 411d969378..abedb258c7 100644 --- a/specification/specs/x_pack/watcher/execute_watch/TriggerEventResult.ts +++ b/specification/specs/x_pack/watcher/execute_watch/TriggerEventResult.ts @@ -1,3 +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. + */ + class TriggerEventResult { manual: TriggerEventContainer triggered_time: Date diff --git a/specification/specs/x_pack/watcher/execute_watch/WatchRecord.ts b/specification/specs/x_pack/watcher/execute_watch/WatchRecord.ts index 665805afcb..b300cf0d42 100644 --- a/specification/specs/x_pack/watcher/execute_watch/WatchRecord.ts +++ b/specification/specs/x_pack/watcher/execute_watch/WatchRecord.ts @@ -1,3 +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. + */ + class WatchRecord { condition: ConditionContainer input: InputContainer diff --git a/specification/specs/x_pack/watcher/execution/ActionExecutionMode.ts b/specification/specs/x_pack/watcher/execution/ActionExecutionMode.ts index 34d361cd6d..7dd7423e66 100644 --- a/specification/specs/x_pack/watcher/execution/ActionExecutionMode.ts +++ b/specification/specs/x_pack/watcher/execution/ActionExecutionMode.ts @@ -1,3 +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. + */ + enum ActionExecutionMode { simulate = 0, force_simulate = 1, diff --git a/specification/specs/x_pack/watcher/execution/HttpInputRequestResult.ts b/specification/specs/x_pack/watcher/execution/HttpInputRequestResult.ts index 1cf0796167..571769d489 100644 --- a/specification/specs/x_pack/watcher/execution/HttpInputRequestResult.ts +++ b/specification/specs/x_pack/watcher/execution/HttpInputRequestResult.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class HttpInputRequestResult extends HttpInputRequest {} diff --git a/specification/specs/x_pack/watcher/execution/HttpInputResponseResult.ts b/specification/specs/x_pack/watcher/execution/HttpInputResponseResult.ts index fc180e9a31..a3fe369607 100644 --- a/specification/specs/x_pack/watcher/execution/HttpInputResponseResult.ts +++ b/specification/specs/x_pack/watcher/execution/HttpInputResponseResult.ts @@ -1,3 +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. + */ + class HttpInputResponseResult { body: string headers: Dictionary diff --git a/specification/specs/x_pack/watcher/execution/SimulatedActions.ts b/specification/specs/x_pack/watcher/execution/SimulatedActions.ts index 253b69087c..912ac8de7b 100644 --- a/specification/specs/x_pack/watcher/execution/SimulatedActions.ts +++ b/specification/specs/x_pack/watcher/execution/SimulatedActions.ts @@ -1,3 +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. + */ + @class_serializer('SimulatedActionsFormatter') class SimulatedActions { actions: string[] diff --git a/specification/specs/x_pack/watcher/execution/Status.ts b/specification/specs/x_pack/watcher/execution/Status.ts index b113204146..d3dd8c7989 100644 --- a/specification/specs/x_pack/watcher/execution/Status.ts +++ b/specification/specs/x_pack/watcher/execution/Status.ts @@ -1,3 +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. + */ + enum Status { success = 0, failure = 1, diff --git a/specification/specs/x_pack/watcher/execution/email/EmailActionResult.ts b/specification/specs/x_pack/watcher/execution/email/EmailActionResult.ts index a0cd4c4eae..3029f1567e 100644 --- a/specification/specs/x_pack/watcher/execution/email/EmailActionResult.ts +++ b/specification/specs/x_pack/watcher/execution/email/EmailActionResult.ts @@ -1,3 +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. + */ + class EmailActionResult { account: string message: EmailResult diff --git a/specification/specs/x_pack/watcher/execution/email/EmailResult.ts b/specification/specs/x_pack/watcher/execution/email/EmailResult.ts index deae79d6df..cc5cd10aa0 100644 --- a/specification/specs/x_pack/watcher/execution/email/EmailResult.ts +++ b/specification/specs/x_pack/watcher/execution/email/EmailResult.ts @@ -1,3 +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. + */ + class EmailResult { bcc: string[] body: EmailBody diff --git a/specification/specs/x_pack/watcher/execution/index/IndexActionResult.ts b/specification/specs/x_pack/watcher/execution/index/IndexActionResult.ts index cf892cd31a..2211736a65 100644 --- a/specification/specs/x_pack/watcher/execution/index/IndexActionResult.ts +++ b/specification/specs/x_pack/watcher/execution/index/IndexActionResult.ts @@ -1,3 +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. + */ + class IndexActionResult { id: string response: IndexActionResultIndexResponse diff --git a/specification/specs/x_pack/watcher/execution/index/IndexActionResultIndexResponse.ts b/specification/specs/x_pack/watcher/execution/index/IndexActionResultIndexResponse.ts index 1c6b4a573d..3761aab9ec 100644 --- a/specification/specs/x_pack/watcher/execution/index/IndexActionResultIndexResponse.ts +++ b/specification/specs/x_pack/watcher/execution/index/IndexActionResultIndexResponse.ts @@ -1,3 +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. + */ + class IndexActionResultIndexResponse { created: boolean id: string diff --git a/specification/specs/x_pack/watcher/execution/logging/LoggingActionResult.ts b/specification/specs/x_pack/watcher/execution/logging/LoggingActionResult.ts index 233a6af7c4..d35cf4c029 100644 --- a/specification/specs/x_pack/watcher/execution/logging/LoggingActionResult.ts +++ b/specification/specs/x_pack/watcher/execution/logging/LoggingActionResult.ts @@ -1,3 +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. + */ + class LoggingActionResult { logged_text: string } diff --git a/specification/specs/x_pack/watcher/execution/pager_duty/PagerDutyActionEventResult.ts b/specification/specs/x_pack/watcher/execution/pager_duty/PagerDutyActionEventResult.ts index 811d000c7b..92d5d511e6 100644 --- a/specification/specs/x_pack/watcher/execution/pager_duty/PagerDutyActionEventResult.ts +++ b/specification/specs/x_pack/watcher/execution/pager_duty/PagerDutyActionEventResult.ts @@ -1,3 +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. + */ + class PagerDutyActionEventResult { event: PagerDutyEvent reason: string diff --git a/specification/specs/x_pack/watcher/execution/pager_duty/PagerDutyActionResult.ts b/specification/specs/x_pack/watcher/execution/pager_duty/PagerDutyActionResult.ts index 6426ec61b5..bb06f273a3 100644 --- a/specification/specs/x_pack/watcher/execution/pager_duty/PagerDutyActionResult.ts +++ b/specification/specs/x_pack/watcher/execution/pager_duty/PagerDutyActionResult.ts @@ -1,3 +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. + */ + class PagerDutyActionResult { sent_event: PagerDutyActionEventResult } diff --git a/specification/specs/x_pack/watcher/execution/slack/SlackActionMessageResult.ts b/specification/specs/x_pack/watcher/execution/slack/SlackActionMessageResult.ts index 2b4ae03b83..1834820c87 100644 --- a/specification/specs/x_pack/watcher/execution/slack/SlackActionMessageResult.ts +++ b/specification/specs/x_pack/watcher/execution/slack/SlackActionMessageResult.ts @@ -1,3 +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. + */ + class SlackActionMessageResult { message: SlackMessage reason: string diff --git a/specification/specs/x_pack/watcher/execution/slack/SlackActionResult.ts b/specification/specs/x_pack/watcher/execution/slack/SlackActionResult.ts index 9aa6a81c6e..3acc5300de 100644 --- a/specification/specs/x_pack/watcher/execution/slack/SlackActionResult.ts +++ b/specification/specs/x_pack/watcher/execution/slack/SlackActionResult.ts @@ -1,3 +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. + */ + class SlackActionResult { account: string sent_messages: SlackActionMessageResult[] diff --git a/specification/specs/x_pack/watcher/execution/webhook/WebhookActionResult.ts b/specification/specs/x_pack/watcher/execution/webhook/WebhookActionResult.ts index 475bcdcf4a..81cba5a3c2 100644 --- a/specification/specs/x_pack/watcher/execution/webhook/WebhookActionResult.ts +++ b/specification/specs/x_pack/watcher/execution/webhook/WebhookActionResult.ts @@ -1,3 +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. + */ + class WebhookActionResult { request: HttpInputRequestResult response: HttpInputResponseResult diff --git a/specification/specs/x_pack/watcher/get_watch/GetWatchRequest.ts b/specification/specs/x_pack/watcher/get_watch/GetWatchRequest.ts index f1065f9f52..7de52050ce 100644 --- a/specification/specs/x_pack/watcher/get_watch/GetWatchRequest.ts +++ b/specification/specs/x_pack/watcher/get_watch/GetWatchRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('watcher.get_watch') class GetWatchRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/watcher/get_watch/GetWatchResponse.ts b/specification/specs/x_pack/watcher/get_watch/GetWatchResponse.ts index 86f6ac8f5b..7bda7d4d89 100644 --- a/specification/specs/x_pack/watcher/get_watch/GetWatchResponse.ts +++ b/specification/specs/x_pack/watcher/get_watch/GetWatchResponse.ts @@ -1,3 +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. + */ + class GetWatchResponse extends ResponseBase { found: boolean _id: string diff --git a/specification/specs/x_pack/watcher/input/ChainInput.ts b/specification/specs/x_pack/watcher/input/ChainInput.ts index b710f3e28b..85168156d5 100644 --- a/specification/specs/x_pack/watcher/input/ChainInput.ts +++ b/specification/specs/x_pack/watcher/input/ChainInput.ts @@ -1,3 +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. + */ + @class_serializer('ChainInputFormatter') class ChainInput { inputs: Dictionary diff --git a/specification/specs/x_pack/watcher/input/ConnectionScheme.ts b/specification/specs/x_pack/watcher/input/ConnectionScheme.ts index 8b7d42447f..bd4655f746 100644 --- a/specification/specs/x_pack/watcher/input/ConnectionScheme.ts +++ b/specification/specs/x_pack/watcher/input/ConnectionScheme.ts @@ -1,3 +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. + */ + enum ConnectionScheme { http = 0, https = 1 diff --git a/specification/specs/x_pack/watcher/input/HttpInput.ts b/specification/specs/x_pack/watcher/input/HttpInput.ts index 773da017d4..00ac84f363 100644 --- a/specification/specs/x_pack/watcher/input/HttpInput.ts +++ b/specification/specs/x_pack/watcher/input/HttpInput.ts @@ -1,3 +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. + */ + class HttpInput { extract: string[] request: HttpInputRequest diff --git a/specification/specs/x_pack/watcher/input/HttpInputAuthentication.ts b/specification/specs/x_pack/watcher/input/HttpInputAuthentication.ts index 685de4fa04..132a4197d6 100644 --- a/specification/specs/x_pack/watcher/input/HttpInputAuthentication.ts +++ b/specification/specs/x_pack/watcher/input/HttpInputAuthentication.ts @@ -1,3 +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. + */ + class HttpInputAuthentication { basic: HttpInputBasicAuthentication } diff --git a/specification/specs/x_pack/watcher/input/HttpInputBasicAuthentication.ts b/specification/specs/x_pack/watcher/input/HttpInputBasicAuthentication.ts index 82eef1708d..48961ab1f8 100644 --- a/specification/specs/x_pack/watcher/input/HttpInputBasicAuthentication.ts +++ b/specification/specs/x_pack/watcher/input/HttpInputBasicAuthentication.ts @@ -1,3 +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. + */ + class HttpInputBasicAuthentication { password: string username: string diff --git a/specification/specs/x_pack/watcher/input/HttpInputMethod.ts b/specification/specs/x_pack/watcher/input/HttpInputMethod.ts index 3306addf85..14914837f0 100644 --- a/specification/specs/x_pack/watcher/input/HttpInputMethod.ts +++ b/specification/specs/x_pack/watcher/input/HttpInputMethod.ts @@ -1,3 +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. + */ + enum HttpInputMethod { head = 0, get = 1, diff --git a/specification/specs/x_pack/watcher/input/HttpInputProxy.ts b/specification/specs/x_pack/watcher/input/HttpInputProxy.ts index ef68720341..da7674c8a3 100644 --- a/specification/specs/x_pack/watcher/input/HttpInputProxy.ts +++ b/specification/specs/x_pack/watcher/input/HttpInputProxy.ts @@ -1,3 +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. + */ + class HttpInputProxy { host: string port: integer diff --git a/specification/specs/x_pack/watcher/input/HttpInputRequest.ts b/specification/specs/x_pack/watcher/input/HttpInputRequest.ts index 7fb31a26fe..572a67bf21 100644 --- a/specification/specs/x_pack/watcher/input/HttpInputRequest.ts +++ b/specification/specs/x_pack/watcher/input/HttpInputRequest.ts @@ -1,3 +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. + */ + class HttpInputRequest { auth?: HttpInputAuthentication body?: string diff --git a/specification/specs/x_pack/watcher/input/IndicesOptions.ts b/specification/specs/x_pack/watcher/input/IndicesOptions.ts index 8a6915084c..5460fbff97 100644 --- a/specification/specs/x_pack/watcher/input/IndicesOptions.ts +++ b/specification/specs/x_pack/watcher/input/IndicesOptions.ts @@ -1,3 +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. + */ + class IndicesOptions { allow_no_indices: boolean expand_wildcards: ExpandWildcards diff --git a/specification/specs/x_pack/watcher/input/Input.ts b/specification/specs/x_pack/watcher/input/Input.ts index 10de8a7b65..0be843035b 100644 --- a/specification/specs/x_pack/watcher/input/Input.ts +++ b/specification/specs/x_pack/watcher/input/Input.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class Input {} diff --git a/specification/specs/x_pack/watcher/input/InputContainer.ts b/specification/specs/x_pack/watcher/input/InputContainer.ts index 226c4ada6e..8c99e5f820 100644 --- a/specification/specs/x_pack/watcher/input/InputContainer.ts +++ b/specification/specs/x_pack/watcher/input/InputContainer.ts @@ -1,3 +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. + */ + class InputContainer { chain: ChainInput http: HttpInput diff --git a/specification/specs/x_pack/watcher/input/InputType.ts b/specification/specs/x_pack/watcher/input/InputType.ts index 8457d0dea3..90bcd10f85 100644 --- a/specification/specs/x_pack/watcher/input/InputType.ts +++ b/specification/specs/x_pack/watcher/input/InputType.ts @@ -1,3 +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. + */ + enum InputType { http = 0, search = 1, diff --git a/specification/specs/x_pack/watcher/input/ResponseContentType.ts b/specification/specs/x_pack/watcher/input/ResponseContentType.ts index 7457bcfeb8..c933331775 100644 --- a/specification/specs/x_pack/watcher/input/ResponseContentType.ts +++ b/specification/specs/x_pack/watcher/input/ResponseContentType.ts @@ -1,3 +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. + */ + enum ResponseContentType { json = 0, yaml = 1, diff --git a/specification/specs/x_pack/watcher/input/SearchInput.ts b/specification/specs/x_pack/watcher/input/SearchInput.ts index 530dd782a0..c59bc97fde 100644 --- a/specification/specs/x_pack/watcher/input/SearchInput.ts +++ b/specification/specs/x_pack/watcher/input/SearchInput.ts @@ -1,3 +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. + */ + class SearchInput { extract: string[] request: SearchInputRequest diff --git a/specification/specs/x_pack/watcher/input/SearchInputRequest.ts b/specification/specs/x_pack/watcher/input/SearchInputRequest.ts index cc2fa83483..2e3e876ece 100644 --- a/specification/specs/x_pack/watcher/input/SearchInputRequest.ts +++ b/specification/specs/x_pack/watcher/input/SearchInputRequest.ts @@ -1,3 +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. + */ + class SearchInputRequest { body?: SearchRequest indices?: IndexName[] diff --git a/specification/specs/x_pack/watcher/input/SimpleInput.ts b/specification/specs/x_pack/watcher/input/SimpleInput.ts index 6d929799cc..52a61c4e30 100644 --- a/specification/specs/x_pack/watcher/input/SimpleInput.ts +++ b/specification/specs/x_pack/watcher/input/SimpleInput.ts @@ -1,3 +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. + */ + @class_serializer('SimpleInputFormatter') class SimpleInput { payload: Dictionary diff --git a/specification/specs/x_pack/watcher/put_watch/PutWatchRequest.ts b/specification/specs/x_pack/watcher/put_watch/PutWatchRequest.ts index 9f0689174e..7577a81f47 100644 --- a/specification/specs/x_pack/watcher/put_watch/PutWatchRequest.ts +++ b/specification/specs/x_pack/watcher/put_watch/PutWatchRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('watcher.put_watch') class PutWatchRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/watcher/put_watch/PutWatchResponse.ts b/specification/specs/x_pack/watcher/put_watch/PutWatchResponse.ts index 7c404a9e95..3f8e6db982 100644 --- a/specification/specs/x_pack/watcher/put_watch/PutWatchResponse.ts +++ b/specification/specs/x_pack/watcher/put_watch/PutWatchResponse.ts @@ -1,3 +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. + */ + class PutWatchResponse extends ResponseBase { created: boolean _id: string diff --git a/specification/specs/x_pack/watcher/restart_watcher/RestartWatcherResponse.ts b/specification/specs/x_pack/watcher/restart_watcher/RestartWatcherResponse.ts index 3ed2b6061c..2e67f4c673 100644 --- a/specification/specs/x_pack/watcher/restart_watcher/RestartWatcherResponse.ts +++ b/specification/specs/x_pack/watcher/restart_watcher/RestartWatcherResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class RestartWatcherResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/watcher/schedule/CronExpression.ts b/specification/specs/x_pack/watcher/schedule/CronExpression.ts index 8d73400908..677682bf13 100644 --- a/specification/specs/x_pack/watcher/schedule/CronExpression.ts +++ b/specification/specs/x_pack/watcher/schedule/CronExpression.ts @@ -1,2 +1,21 @@ +/* + * 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. + */ + @class_serializer('CronExpressionFormatter') class CronExpression extends ScheduleBase {} diff --git a/specification/specs/x_pack/watcher/schedule/DailySchedule.ts b/specification/specs/x_pack/watcher/schedule/DailySchedule.ts index 140c304392..a24bb1626c 100644 --- a/specification/specs/x_pack/watcher/schedule/DailySchedule.ts +++ b/specification/specs/x_pack/watcher/schedule/DailySchedule.ts @@ -1,3 +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. + */ + class DailySchedule { at: Union } diff --git a/specification/specs/x_pack/watcher/schedule/Day.ts b/specification/specs/x_pack/watcher/schedule/Day.ts index 690bc73288..53cf0b39c3 100644 --- a/specification/specs/x_pack/watcher/schedule/Day.ts +++ b/specification/specs/x_pack/watcher/schedule/Day.ts @@ -1,3 +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. + */ + enum Day { sunday = 0, monday = 1, diff --git a/specification/specs/x_pack/watcher/schedule/HourlySchedule.ts b/specification/specs/x_pack/watcher/schedule/HourlySchedule.ts index eaad8274ee..aad8cee376 100644 --- a/specification/specs/x_pack/watcher/schedule/HourlySchedule.ts +++ b/specification/specs/x_pack/watcher/schedule/HourlySchedule.ts @@ -1,3 +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. + */ + class HourlySchedule { minute: integer[] } diff --git a/specification/specs/x_pack/watcher/schedule/Interval.ts b/specification/specs/x_pack/watcher/schedule/Interval.ts index c58a935d5b..038fe5cd4d 100644 --- a/specification/specs/x_pack/watcher/schedule/Interval.ts +++ b/specification/specs/x_pack/watcher/schedule/Interval.ts @@ -1,3 +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. + */ + @class_serializer('IntervalFormatter') class Interval extends ScheduleBase { factor: long diff --git a/specification/specs/x_pack/watcher/schedule/IntervalUnit.ts b/specification/specs/x_pack/watcher/schedule/IntervalUnit.ts index 74253e66e6..6e4f25a2ff 100644 --- a/specification/specs/x_pack/watcher/schedule/IntervalUnit.ts +++ b/specification/specs/x_pack/watcher/schedule/IntervalUnit.ts @@ -1,3 +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. + */ + enum IntervalUnit { s = 0, m = 1, diff --git a/specification/specs/x_pack/watcher/schedule/Month.ts b/specification/specs/x_pack/watcher/schedule/Month.ts index 061ed2c8a2..4b39d7fa63 100644 --- a/specification/specs/x_pack/watcher/schedule/Month.ts +++ b/specification/specs/x_pack/watcher/schedule/Month.ts @@ -1,3 +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. + */ + enum Month { january = 0, february = 1, diff --git a/specification/specs/x_pack/watcher/schedule/Schedule.ts b/specification/specs/x_pack/watcher/schedule/Schedule.ts index a0ba64cd6e..b799f3054c 100644 --- a/specification/specs/x_pack/watcher/schedule/Schedule.ts +++ b/specification/specs/x_pack/watcher/schedule/Schedule.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class Schedule {} diff --git a/specification/specs/x_pack/watcher/schedule/ScheduleBase.ts b/specification/specs/x_pack/watcher/schedule/ScheduleBase.ts index 1c27be3f47..28761adf12 100644 --- a/specification/specs/x_pack/watcher/schedule/ScheduleBase.ts +++ b/specification/specs/x_pack/watcher/schedule/ScheduleBase.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class ScheduleBase {} diff --git a/specification/specs/x_pack/watcher/schedule/ScheduleContainer.ts b/specification/specs/x_pack/watcher/schedule/ScheduleContainer.ts index 3412af3ec6..924b64c6f3 100644 --- a/specification/specs/x_pack/watcher/schedule/ScheduleContainer.ts +++ b/specification/specs/x_pack/watcher/schedule/ScheduleContainer.ts @@ -1,3 +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. + */ + class ScheduleContainer { cron: CronExpression daily: DailySchedule diff --git a/specification/specs/x_pack/watcher/schedule/ScheduleTriggerEvent.ts b/specification/specs/x_pack/watcher/schedule/ScheduleTriggerEvent.ts index c2b613e2db..7b4b43729d 100644 --- a/specification/specs/x_pack/watcher/schedule/ScheduleTriggerEvent.ts +++ b/specification/specs/x_pack/watcher/schedule/ScheduleTriggerEvent.ts @@ -1,3 +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. + */ + class ScheduleTriggerEvent { scheduled_time: Union triggered_time: Union diff --git a/specification/specs/x_pack/watcher/schedule/TimeOfDay.ts b/specification/specs/x_pack/watcher/schedule/TimeOfDay.ts index af0bd28aa4..1fc2764701 100644 --- a/specification/specs/x_pack/watcher/schedule/TimeOfDay.ts +++ b/specification/specs/x_pack/watcher/schedule/TimeOfDay.ts @@ -1,3 +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. + */ + class TimeOfDay { hour: integer[] minute: integer[] diff --git a/specification/specs/x_pack/watcher/schedule/TimeOfMonth.ts b/specification/specs/x_pack/watcher/schedule/TimeOfMonth.ts index cac1a2f5a0..2cb91dc1ba 100644 --- a/specification/specs/x_pack/watcher/schedule/TimeOfMonth.ts +++ b/specification/specs/x_pack/watcher/schedule/TimeOfMonth.ts @@ -1,3 +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. + */ + class TimeOfMonth { /** @prop_serializer SingleOrEnumerableFormatter`1 */ at: string[] diff --git a/specification/specs/x_pack/watcher/schedule/TimeOfWeek.ts b/specification/specs/x_pack/watcher/schedule/TimeOfWeek.ts index e5537f9d45..269520d060 100644 --- a/specification/specs/x_pack/watcher/schedule/TimeOfWeek.ts +++ b/specification/specs/x_pack/watcher/schedule/TimeOfWeek.ts @@ -1,3 +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. + */ + class TimeOfWeek { /** @prop_serializer SingleOrEnumerableFormatter`1 */ at: string[] diff --git a/specification/specs/x_pack/watcher/schedule/TimeOfYear.ts b/specification/specs/x_pack/watcher/schedule/TimeOfYear.ts index 37366133c8..bfcdbc7f3a 100644 --- a/specification/specs/x_pack/watcher/schedule/TimeOfYear.ts +++ b/specification/specs/x_pack/watcher/schedule/TimeOfYear.ts @@ -1,3 +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. + */ + class TimeOfYear { /** @prop_serializer SingleOrEnumerableFormatter`1 */ at: string[] diff --git a/specification/specs/x_pack/watcher/start_watcher/StartWatcherRequest.ts b/specification/specs/x_pack/watcher/start_watcher/StartWatcherRequest.ts index f0d7574be9..e3a445d89b 100644 --- a/specification/specs/x_pack/watcher/start_watcher/StartWatcherRequest.ts +++ b/specification/specs/x_pack/watcher/start_watcher/StartWatcherRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('watcher.start') class StartWatcherRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/watcher/start_watcher/StartWatcherResponse.ts b/specification/specs/x_pack/watcher/start_watcher/StartWatcherResponse.ts index 2748e12d43..68c42e544b 100644 --- a/specification/specs/x_pack/watcher/start_watcher/StartWatcherResponse.ts +++ b/specification/specs/x_pack/watcher/start_watcher/StartWatcherResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class StartWatcherResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/watcher/stop_watcher/StopWatcherRequest.ts b/specification/specs/x_pack/watcher/stop_watcher/StopWatcherRequest.ts index ce1ded17b4..f6c0a56060 100644 --- a/specification/specs/x_pack/watcher/stop_watcher/StopWatcherRequest.ts +++ b/specification/specs/x_pack/watcher/stop_watcher/StopWatcherRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('watcher.stop') class StopWatcherRequest extends RequestBase { query_parameters?: {} diff --git a/specification/specs/x_pack/watcher/stop_watcher/StopWatcherResponse.ts b/specification/specs/x_pack/watcher/stop_watcher/StopWatcherResponse.ts index 4360ac856e..23f54986cc 100644 --- a/specification/specs/x_pack/watcher/stop_watcher/StopWatcherResponse.ts +++ b/specification/specs/x_pack/watcher/stop_watcher/StopWatcherResponse.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class StopWatcherResponse extends AcknowledgedResponseBase {} diff --git a/specification/specs/x_pack/watcher/transform/ChainTransform.ts b/specification/specs/x_pack/watcher/transform/ChainTransform.ts index 8d1716ab60..d8e30e994a 100644 --- a/specification/specs/x_pack/watcher/transform/ChainTransform.ts +++ b/specification/specs/x_pack/watcher/transform/ChainTransform.ts @@ -1,3 +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. + */ + @class_serializer('ChainTransformFormatter') class ChainTransform { transforms: TransformContainer[] diff --git a/specification/specs/x_pack/watcher/transform/ScriptTransform.ts b/specification/specs/x_pack/watcher/transform/ScriptTransform.ts index f8415c3e1c..b8b792c221 100644 --- a/specification/specs/x_pack/watcher/transform/ScriptTransform.ts +++ b/specification/specs/x_pack/watcher/transform/ScriptTransform.ts @@ -1,3 +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. + */ + @class_serializer('ScriptTransformFormatter') class ScriptTransform { lang: string diff --git a/specification/specs/x_pack/watcher/transform/SearchTransform.ts b/specification/specs/x_pack/watcher/transform/SearchTransform.ts index 9f03178f26..538f2aa7c1 100644 --- a/specification/specs/x_pack/watcher/transform/SearchTransform.ts +++ b/specification/specs/x_pack/watcher/transform/SearchTransform.ts @@ -1,3 +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. + */ + class SearchTransform { request: SearchInputRequest timeout: Time diff --git a/specification/specs/x_pack/watcher/transform/Transform.ts b/specification/specs/x_pack/watcher/transform/Transform.ts index 505f0c3650..80848f1a88 100644 --- a/specification/specs/x_pack/watcher/transform/Transform.ts +++ b/specification/specs/x_pack/watcher/transform/Transform.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class Transform {} diff --git a/specification/specs/x_pack/watcher/transform/TransformContainer.ts b/specification/specs/x_pack/watcher/transform/TransformContainer.ts index 3a6db2d5db..e4c4356a58 100644 --- a/specification/specs/x_pack/watcher/transform/TransformContainer.ts +++ b/specification/specs/x_pack/watcher/transform/TransformContainer.ts @@ -1,3 +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. + */ + class TransformContainer { chain: ChainTransform script: ScriptTransform diff --git a/specification/specs/x_pack/watcher/trigger/TriggerContainer.ts b/specification/specs/x_pack/watcher/trigger/TriggerContainer.ts index fcdfb46e8b..3221a04eb7 100644 --- a/specification/specs/x_pack/watcher/trigger/TriggerContainer.ts +++ b/specification/specs/x_pack/watcher/trigger/TriggerContainer.ts @@ -1,3 +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. + */ + @class_serializer('TriggerContainerInterfaceFormatter') class TriggerContainer { schedule: ScheduleContainer diff --git a/specification/specs/x_pack/watcher/trigger/TriggerEvent.ts b/specification/specs/x_pack/watcher/trigger/TriggerEvent.ts index 59f7fcd3d8..a6e9099fca 100644 --- a/specification/specs/x_pack/watcher/trigger/TriggerEvent.ts +++ b/specification/specs/x_pack/watcher/trigger/TriggerEvent.ts @@ -1 +1,20 @@ +/* + * 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. + */ + class TriggerEvent {} diff --git a/specification/specs/x_pack/watcher/trigger/TriggerEventContainer.ts b/specification/specs/x_pack/watcher/trigger/TriggerEventContainer.ts index 717d21488a..444305c7ff 100644 --- a/specification/specs/x_pack/watcher/trigger/TriggerEventContainer.ts +++ b/specification/specs/x_pack/watcher/trigger/TriggerEventContainer.ts @@ -1,3 +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. + */ + class TriggerEventContainer { schedule: ScheduleTriggerEvent } diff --git a/specification/specs/x_pack/watcher/watcher_stats/ExecutionPhase.ts b/specification/specs/x_pack/watcher/watcher_stats/ExecutionPhase.ts index 02b425b7b5..a0660550b7 100644 --- a/specification/specs/x_pack/watcher/watcher_stats/ExecutionPhase.ts +++ b/specification/specs/x_pack/watcher/watcher_stats/ExecutionPhase.ts @@ -1,3 +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. + */ + enum ExecutionPhase { awaits_execution = 0, started = 1, diff --git a/specification/specs/x_pack/watcher/watcher_stats/ExecutionThreadPool.ts b/specification/specs/x_pack/watcher/watcher_stats/ExecutionThreadPool.ts index 9ecd0f089e..e8a41d0758 100644 --- a/specification/specs/x_pack/watcher/watcher_stats/ExecutionThreadPool.ts +++ b/specification/specs/x_pack/watcher/watcher_stats/ExecutionThreadPool.ts @@ -1,3 +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. + */ + class ExecutionThreadPool { max_size: long queue_size: long diff --git a/specification/specs/x_pack/watcher/watcher_stats/WatchRecordQueuedStats.ts b/specification/specs/x_pack/watcher/watcher_stats/WatchRecordQueuedStats.ts index e345abc465..6628dc9ccb 100644 --- a/specification/specs/x_pack/watcher/watcher_stats/WatchRecordQueuedStats.ts +++ b/specification/specs/x_pack/watcher/watcher_stats/WatchRecordQueuedStats.ts @@ -1,3 +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. + */ + class WatchRecordQueuedStats { execution_time: Date triggered_time: Date diff --git a/specification/specs/x_pack/watcher/watcher_stats/WatchRecordStats.ts b/specification/specs/x_pack/watcher/watcher_stats/WatchRecordStats.ts index 41a374e579..884191417f 100644 --- a/specification/specs/x_pack/watcher/watcher_stats/WatchRecordStats.ts +++ b/specification/specs/x_pack/watcher/watcher_stats/WatchRecordStats.ts @@ -1,3 +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. + */ + class WatchRecordStats extends WatchRecordQueuedStats { execution_phase: ExecutionPhase } diff --git a/specification/specs/x_pack/watcher/watcher_stats/WatcherNodeStats.ts b/specification/specs/x_pack/watcher/watcher_stats/WatcherNodeStats.ts index b1a6246e9f..6b82b25ebc 100644 --- a/specification/specs/x_pack/watcher/watcher_stats/WatcherNodeStats.ts +++ b/specification/specs/x_pack/watcher/watcher_stats/WatcherNodeStats.ts @@ -1,3 +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. + */ + class WatcherNodeStats { current_watches: WatchRecordStats[] execution_thread_pool: ExecutionThreadPool diff --git a/specification/specs/x_pack/watcher/watcher_stats/WatcherState.ts b/specification/specs/x_pack/watcher/watcher_stats/WatcherState.ts index a38107a8be..e9cf5a5eea 100644 --- a/specification/specs/x_pack/watcher/watcher_stats/WatcherState.ts +++ b/specification/specs/x_pack/watcher/watcher_stats/WatcherState.ts @@ -1,3 +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. + */ + enum WatcherState { stopped = 0, starting = 1, diff --git a/specification/specs/x_pack/watcher/watcher_stats/WatcherStatsRequest.ts b/specification/specs/x_pack/watcher/watcher_stats/WatcherStatsRequest.ts index 07d4b919bc..aaf87aa119 100644 --- a/specification/specs/x_pack/watcher/watcher_stats/WatcherStatsRequest.ts +++ b/specification/specs/x_pack/watcher/watcher_stats/WatcherStatsRequest.ts @@ -1,3 +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. + */ + @rest_spec_name('watcher.stats') class WatcherStatsRequest extends RequestBase { path_parts?: { diff --git a/specification/specs/x_pack/watcher/watcher_stats/WatcherStatsResponse.ts b/specification/specs/x_pack/watcher/watcher_stats/WatcherStatsResponse.ts index dc187bd7b2..e301b3c873 100644 --- a/specification/specs/x_pack/watcher/watcher_stats/WatcherStatsResponse.ts +++ b/specification/specs/x_pack/watcher/watcher_stats/WatcherStatsResponse.ts @@ -1,3 +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. + */ + class WatcherStatsResponse extends ResponseBase { cluster_name: string manually_stopped: boolean diff --git a/specification/src/api-specification.ts b/specification/src/api-specification.ts index aab2bceb80..fc2e17d9fd 100644 --- a/specification/src/api-specification.ts +++ b/specification/src/api-specification.ts @@ -1,3 +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 * as path from 'path' import { SpecValidator } from './specification/validator' import { TypeReader } from './specification/type-reader' diff --git a/specification/src/domain.ts b/specification/src/domain.ts index 5b0dafbc39..5d35f40b29 100644 --- a/specification/src/domain.ts +++ b/specification/src/domain.ts @@ -1,3 +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. + */ + /* eslint-disable @typescript-eslint/no-extraneous-class, @typescript-eslint/no-namespace */ import { RestSpecMapping } from './specification/rest-spec-mapping' diff --git a/specification/src/format.ts b/specification/src/format.ts index ba93165499..8b62f784bb 100644 --- a/specification/src/format.ts +++ b/specification/src/format.ts @@ -1,3 +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 { Specification } from './api-specification' const specification = Specification.loadWithValidation() diff --git a/specification/src/main.ts b/specification/src/main.ts index 7c1f2d18f1..0a4e4adcce 100644 --- a/specification/src/main.ts +++ b/specification/src/main.ts @@ -1,3 +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. + */ + // tslint:disable:no-console import { Specification } from './api-specification' diff --git a/specification/src/metamodel.ts b/specification/src/metamodel.ts index 45ab15e565..72c9c1312f 100644 --- a/specification/src/metamodel.ts +++ b/specification/src/metamodel.ts @@ -1,3 +1,21 @@ +/* + * 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. + */ /** * The name of a type, composed of a simple name and a namespace. Hierarchical namespace elements are separated by diff --git a/specification/src/metamodel_generate.ts b/specification/src/metamodel_generate.ts index f279bcf475..f8f2d97fb4 100644 --- a/specification/src/metamodel_generate.ts +++ b/specification/src/metamodel_generate.ts @@ -1,3 +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 { Specification } from './api-specification' import { loadModel } from './metamodel_reader' import fs from 'fs' diff --git a/specification/src/metamodel_reader.ts b/specification/src/metamodel_reader.ts index 25818620fd..fec413373f 100644 --- a/specification/src/metamodel_reader.ts +++ b/specification/src/metamodel_reader.ts @@ -1,3 +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 Domain from './domain' import { Specification } from './api-specification' diff --git a/specification/src/specification/rest-spec-mapping.ts b/specification/src/specification/rest-spec-mapping.ts index 5e43389604..ccf0035d24 100644 --- a/specification/src/specification/rest-spec-mapping.ts +++ b/specification/src/specification/rest-spec-mapping.ts @@ -1,3 +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. + */ + export type TypeName = string export type RestSpecName = string export class RestSpecMapping { diff --git a/specification/src/specification/type-reader.ts b/specification/src/specification/type-reader.ts index e513afc142..1ef1c0e77e 100644 --- a/specification/src/specification/type-reader.ts +++ b/specification/src/specification/type-reader.ts @@ -1,3 +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 { RestSpecMapping, TypeName } from './rest-spec-mapping' import _ from 'lodash' import * as ts from 'byots' diff --git a/specification/src/specification/validator.ts b/specification/src/specification/validator.ts index 780d73f85e..3a8c8bd56f 100644 --- a/specification/src/specification/validator.ts +++ b/specification/src/specification/validator.ts @@ -1,3 +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. + */ + /* eslint-disable @typescript-eslint/no-extraneous-class */ import * as ts from 'byots' diff --git a/swagger-generator/src/index.d.ts b/swagger-generator/src/index.d.ts index cb0ff5c3b5..86bc555916 100644 --- a/swagger-generator/src/index.d.ts +++ b/swagger-generator/src/index.d.ts @@ -1 +1,20 @@ +/* + * 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. + */ + export {}; diff --git a/swagger-generator/src/index.js b/swagger-generator/src/index.js index 8281c35589..cca140b248 100644 --- a/swagger-generator/src/index.js +++ b/swagger-generator/src/index.js @@ -1,3 +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. + */ + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const api_specification_1 = require("../../specification/src/api-specification"); diff --git a/swagger-generator/src/index.ts b/swagger-generator/src/index.ts index 1410542fd7..eb4b99e957 100644 --- a/swagger-generator/src/index.ts +++ b/swagger-generator/src/index.ts @@ -1,3 +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 {Specification} from "../../specification/src/api-specification"; import {SwaggerEndpointBuilder} from "./swagger-enpoint-builder"; import {SwaggerGenerator} from "./swagger-generator"; diff --git a/swagger-generator/src/json-schema/json-schema-builder.d.ts b/swagger-generator/src/json-schema/json-schema-builder.d.ts index 5c7e86c954..0d81a700bf 100644 --- a/swagger-generator/src/json-schema/json-schema-builder.d.ts +++ b/swagger-generator/src/json-schema/json-schema-builder.d.ts @@ -1,3 +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 { Specification } from "../../../specification/src/api-specification"; import { Schema } from "swagger-schema-official"; export declare type Definitions = { diff --git a/swagger-generator/src/json-schema/json-schema-builder.js b/swagger-generator/src/json-schema/json-schema-builder.js index be00272c93..ccc9a34054 100644 --- a/swagger-generator/src/json-schema/json-schema-builder.js +++ b/swagger-generator/src/json-schema/json-schema-builder.js @@ -1,3 +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. + */ + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Domain = require("../../../specification/src/domain"); diff --git a/swagger-generator/src/json-schema/json-schema-builder.ts b/swagger-generator/src/json-schema/json-schema-builder.ts index 38db19c81d..14b8908c38 100644 --- a/swagger-generator/src/json-schema/json-schema-builder.ts +++ b/swagger-generator/src/json-schema/json-schema-builder.ts @@ -1,3 +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 {Specification} from "../../../specification/src/api-specification"; import * as Domain from "../../../specification/src/domain"; import {Schema} from "swagger-schema-official"; diff --git a/swagger-generator/src/swagger-enpoint-builder.d.ts b/swagger-generator/src/swagger-enpoint-builder.d.ts index 1e2d2a959c..1cc8126137 100644 --- a/swagger-generator/src/swagger-enpoint-builder.d.ts +++ b/swagger-generator/src/swagger-enpoint-builder.d.ts @@ -1,3 +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 { Specification } from "../../specification/src/api-specification"; import { Path } from "swagger-schema-official"; export declare type Paths = { diff --git a/swagger-generator/src/swagger-enpoint-builder.js b/swagger-generator/src/swagger-enpoint-builder.js index 06b86e4de3..babeb6c1d1 100644 --- a/swagger-generator/src/swagger-enpoint-builder.js +++ b/swagger-generator/src/swagger-enpoint-builder.js @@ -1,3 +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. + */ + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class SwaggerEndpointBuilder { diff --git a/swagger-generator/src/swagger-enpoint-builder.ts b/swagger-generator/src/swagger-enpoint-builder.ts index 281aeb53b7..e4245d4e4e 100644 --- a/swagger-generator/src/swagger-enpoint-builder.ts +++ b/swagger-generator/src/swagger-enpoint-builder.ts @@ -1,3 +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 {Specification} from "../../specification/src/api-specification"; import {Path, Schema, Operation, Response, Parameter} from "swagger-schema-official"; import {Endpoint, QueryStringParameter, RoutePart, UrlPath} from "../../specification/src/domain"; diff --git a/swagger-generator/src/swagger-generator.d.ts b/swagger-generator/src/swagger-generator.d.ts index 2638a548ae..5594444cfe 100644 --- a/swagger-generator/src/swagger-generator.d.ts +++ b/swagger-generator/src/swagger-generator.d.ts @@ -1,3 +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 { Specification } from "../../specification/src/api-specification"; export declare class SwaggerGenerator { private specification; diff --git a/swagger-generator/src/swagger-generator.js b/swagger-generator/src/swagger-generator.js index 6a2821d1e2..0fe7ab6c91 100644 --- a/swagger-generator/src/swagger-generator.js +++ b/swagger-generator/src/swagger-generator.js @@ -1,3 +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. + */ + "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Yaml = require("js-yaml"); diff --git a/swagger-generator/src/swagger-generator.ts b/swagger-generator/src/swagger-generator.ts index 014305e7ed..fc9504a657 100644 --- a/swagger-generator/src/swagger-generator.ts +++ b/swagger-generator/src/swagger-generator.ts @@ -1,3 +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 {Specification} from "../../specification/src/api-specification"; import * as Yaml from "js-yaml"; import * as fs from "fs"; diff --git a/swagger-generator/src/swagger-ui.js b/swagger-generator/src/swagger-ui.js index cba79a15f7..9ac3c45fbe 100644 --- a/swagger-generator/src/swagger-ui.js +++ b/swagger-generator/src/swagger-ui.js @@ -1,3 +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. + */ + const express = require('express'); const pathToSwaggerUi = require('swagger-ui-dist').absolutePath(); const pathToSwaggerEditor = require.resolve('swagger-editor-dist/package.json').replace("package.json", ""); diff --git a/typescript-generator/client.js b/typescript-generator/client.js index 862d256f50..65e44fbfa6 100644 --- a/typescript-generator/client.js +++ b/typescript-generator/client.js @@ -1,3 +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. + */ + 'use strict' const { writeFileSync } = require('fs') diff --git a/typescript-generator/index.js b/typescript-generator/index.js index 3347157b15..62f2f49a56 100644 --- a/typescript-generator/index.js +++ b/typescript-generator/index.js @@ -1,4 +1,24 @@ +/* + * 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. + */ + 'use strict' + const { writeFileSync } = require('fs') const { join } = require('path') const { types, endpoints } = require('../output/schema/schema.json')