Auto-generated code for 8.x (#2372)

This commit is contained in:
Elastic Machine
2024-10-14 18:18:55 +02:00
committed by GitHub
parent e45ed28c05
commit fceebae8ae
42 changed files with 661 additions and 190 deletions

View File

@ -0,0 +1,35 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.indices.create({
index: "my-index-000002",
mappings: {
properties: {
metrics: {
subobjects: false,
properties: {
time: {
type: "object",
properties: {
min: {
type: "long",
},
max: {
type: "long",
},
},
},
},
},
},
},
});
console.log(response);
const response1 = await client.indices.getMapping({
index: "my-index-000002",
});
console.log(response1);
----