Skip to content

Commit e3863d7

Browse files
Auto-generated code for 8.15 (#2373)
1 parent 424cc94 commit e3863d7

File tree

42 files changed

+653
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+653
-178
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.transport.request({
7+
method: "GET",
8+
path: "/_connector/_sync_job",
9+
querystring: {
10+
connector_id: "my-connector-id",
11+
size: "1",
12+
},
13+
});
14+
console.log(response);
15+
----
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.update({
7+
index: ".elastic-connectors",
8+
id: "connector_id",
9+
doc: {
10+
features: {
11+
native_connector_api_keys: {
12+
enabled: true,
13+
},
14+
},
15+
},
16+
});
17+
console.log(response);
18+
----
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.indices.create({
7+
index: "idx_keep",
8+
mappings: {
9+
_source: {
10+
mode: "synthetic",
11+
},
12+
properties: {
13+
path: {
14+
type: "object",
15+
synthetic_source_keep: "all",
16+
},
17+
ids: {
18+
type: "integer",
19+
synthetic_source_keep: "arrays",
20+
},
21+
},
22+
},
23+
});
24+
console.log(response);
25+
----
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.connector.updateConfiguration({
7+
connector_id: "my-connector-id",
8+
values: {
9+
host: "127.0.0.1",
10+
port: 5432,
11+
username: "myuser",
12+
password: "mypassword",
13+
database: "chinook",
14+
schema: "public",
15+
tables: "album,artist",
16+
},
17+
});
18+
console.log(response);
19+
----
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.indices.delete({
7+
index: "books",
8+
});
9+
console.log(response);
10+
11+
const response1 = await client.indices.delete({
12+
index: "my-explicit-mappings-books",
13+
});
14+
console.log(response1);
15+
----
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.security.createApiKey({
7+
name: "my-connector-api-key",
8+
role_descriptors: {
9+
"my-connector-connector-role": {
10+
cluster: ["monitor", "manage_connector"],
11+
indices: [
12+
{
13+
names: [
14+
"my-index_name",
15+
".search-acl-filter-my-index_name",
16+
".elastic-connectors*",
17+
],
18+
privileges: ["all"],
19+
allow_restricted_indices: false,
20+
},
21+
],
22+
},
23+
},
24+
});
25+
console.log(response);
26+
----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.indices.create({
7+
index: "books",
8+
});
9+
console.log(response);
10+
----

docs/doc_examples/0393ca5a2942e1f00ed87546d0d50732.asciidoc renamed to docs/doc_examples/1aa96eeaf63fc967e166d1a2fcdccccc.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[source, js]
55
----
66
const response = await client.indices.create({
7-
index: "my-index-000003",
7+
index: "my-index-000002",
88
mappings: {
99
properties: {
1010
metrics: {
@@ -29,7 +29,7 @@ const response = await client.indices.create({
2929
console.log(response);
3030
3131
const response1 = await client.indices.getMapping({
32-
index: "my-index-000003",
32+
index: "my-index-000002",
3333
});
3434
console.log(response1);
3535
----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.indices.delete({
7+
index: "music",
8+
});
9+
console.log(response);
10+
----
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.security.createApiKey({
7+
name: "john-api-key",
8+
expiration: "1d",
9+
role_descriptors: {
10+
"sharepoint-online-role": {
11+
index: [
12+
{
13+
names: ["sharepoint-search-application"],
14+
privileges: ["read"],
15+
query: {
16+
template: {
17+
params: {
18+
access_control: ["[email protected]", "Engineering Members"],
19+
},
20+
source:
21+
'\n {\n "bool": {\n "should": [\n {\n "bool": {\n "must_not": {\n "exists": {\n "field": "_allow_access_control"\n }\n }\n }\n },\n {\n "terms": {\n "_allow_access_control.enum": {{#toJson}}access_control{{/toJson}}\n }\n }\n ]\n }\n }\n ',
22+
},
23+
},
24+
},
25+
],
26+
restriction: {
27+
workflows: ["search_application_query"],
28+
},
29+
},
30+
},
31+
});
32+
console.log(response);
33+
----

0 commit comments

Comments
 (0)