Skip to content

Commit ec61d1a

Browse files
Auto-generated code for 8.15 (#2472)
1 parent 05e140c commit ec61d1a

13 files changed

+145
-42
lines changed

docs/doc_examples/19d60e4890cc57151d596326484d9076.asciidoc

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/doc_examples/3fab530a2e43807929c0ef3ebf7d268c.asciidoc renamed to docs/doc_examples/216e24f05cbb82c1718713fbab8623d2.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
----
66
const response = await client.ingest.putPipeline({
77
id: "geoip",
8-
description: "Add geoip info",
8+
description: "Add ip geolocation info",
99
processors: [
1010
{
1111
geoip: {

docs/doc_examples/d3a558ef226e9dccc1c7c61e1167547f.asciidoc renamed to docs/doc_examples/334811cfceb6858aeec5b3461717dd63.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
----
66
const response = await client.ingest.putPipeline({
77
id: "geoip",
8-
description: "Add geoip info",
8+
description: "Add ip geolocation info",
99
processors: [
1010
{
1111
geoip: {

docs/doc_examples/3b6718257421b5419bf4cd6a7303c57e.asciidoc

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/doc_examples/533087d787b48878a0bf3fa8d0851b64.asciidoc

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/doc_examples/4b113c7f475cfe484a150ddbb8e6c5c7.asciidoc renamed to docs/doc_examples/5e021307d331a4483a5aa2198168451b.asciidoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@
44
[source, js]
55
----
66
const response = await client.security.putRole({
7-
name: "role_with_remote_indices",
7+
name: "only_remote_access_role",
88
remote_indices: [
99
{
1010
clusters: ["my_remote"],
1111
names: ["logs*"],
1212
privileges: ["read", "read_cross_cluster", "view_index_metadata"],
1313
},
1414
],
15+
remote_cluster: [
16+
{
17+
clusters: ["my_remote"],
18+
privileges: ["monitor_stats"],
19+
},
20+
],
1521
});
1622
console.log(response);
1723
----
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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.ingest.putPipeline({
7+
id: "ip_location",
8+
description: "Add ip geolocation info",
9+
processors: [
10+
{
11+
ip_location: {
12+
field: "ip",
13+
},
14+
},
15+
],
16+
});
17+
console.log(response);
18+
19+
const response1 = await client.index({
20+
index: "my-index-000001",
21+
id: "my_id",
22+
pipeline: "ip_location",
23+
document: {
24+
ip: "80.231.5.0",
25+
},
26+
});
27+
console.log(response1);
28+
29+
const response2 = await client.get({
30+
index: "my-index-000001",
31+
id: "my_id",
32+
});
33+
console.log(response2);
34+
----
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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.put({
7+
connector_id: "my-{service-name-stub}-connector",
8+
index_name: "my-elasticsearch-index",
9+
name: "Content synced from {service-name}",
10+
service_type: "{service-name-stub}",
11+
});
12+
console.log(response);
13+
----
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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.ingest.putPipeline({
7+
id: "ip_location",
8+
description: "Add ip geolocation info",
9+
processors: [
10+
{
11+
ip_location: {
12+
field: "ip",
13+
},
14+
},
15+
],
16+
});
17+
console.log(response);
18+
19+
const response1 = await client.index({
20+
index: "my-index-000001",
21+
id: "my_id",
22+
pipeline: "ip_location",
23+
document: {
24+
ip: "89.160.20.128",
25+
},
26+
});
27+
console.log(response1);
28+
29+
const response2 = await client.get({
30+
index: "my-index-000001",
31+
id: "my_id",
32+
});
33+
console.log(response2);
34+
----
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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.put({
7+
connector_id: "my-{service-name-stub}-connector",
8+
index_name: "my-elasticsearch-index",
9+
name: "Content synced from {service-name}",
10+
service_type: "{service-name-stub}",
11+
is_native: true,
12+
});
13+
console.log(response);
14+
----

docs/doc_examples/b577e7e7eb5ce9d16cb582356e2cc45c.asciidoc renamed to docs/doc_examples/b0ee6f19875fe5bad8aab02d60e3532c.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
----
66
const response = await client.ingest.putPipeline({
77
id: "geoip",
8-
description: "Add geoip info",
8+
description: "Add ip geolocation info",
99
processors: [
1010
{
1111
geoip: {

docs/doc_examples/981b331db1404b39c1a612a135e4e76d.asciidoc renamed to docs/doc_examples/e22a1da3c622611be6855e534c0709ae.asciidoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
[source, js]
55
----
66
const response = await client.transport.request({
7-
method: "PUT",
8-
path: "/_ingest/geoip/database/my-database-id",
7+
method: "POST",
8+
path: "/_query_rules/my-ruleset/_test",
99
body: {
10-
name: "GeoIP2-Domain",
11-
maxmind: {
12-
account_id: "1025402",
10+
match_criteria: {
11+
query_string: "puggles",
1312
},
1413
},
1514
});
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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.ingest.putPipeline({
7+
id: "ip_location",
8+
description: "Add ip geolocation info",
9+
processors: [
10+
{
11+
ip_location: {
12+
field: "ip",
13+
target_field: "geo",
14+
database_file: "GeoLite2-Country.mmdb",
15+
},
16+
},
17+
],
18+
});
19+
console.log(response);
20+
21+
const response1 = await client.index({
22+
index: "my-index-000001",
23+
id: "my_id",
24+
pipeline: "ip_location",
25+
document: {
26+
ip: "89.160.20.128",
27+
},
28+
});
29+
console.log(response1);
30+
31+
const response2 = await client.get({
32+
index: "my-index-000001",
33+
id: "my_id",
34+
});
35+
console.log(response2);
36+
----

0 commit comments

Comments
 (0)