Skip to content

Commit a4315a9

Browse files
Auto-generated code for main (#2522)
1 parent 6447fc1 commit a4315a9

File tree

122 files changed

+3130
-25672
lines changed

Some content is hidden

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

122 files changed

+3130
-25672
lines changed

docs/doc_examples/0bee07a581c5776e068f6f4efad5a399.asciidoc

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33

44
[source, js]
55
----
6-
const response = await client.esql.asyncQuery({
7-
format: "json",
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_query/async",
9+
querystring: {
10+
format: "json",
11+
},
812
body: {
913
query:
1014
"\n FROM my-index-000001,cluster_one:my-index-000001,cluster_two:my-index*\n | STATS COUNT(http.response.status_code) BY user.id\n | LIMIT 2\n ",

docs/doc_examples/0dfde6a9d953822fd4b3aa0121ddd8fb.asciidoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.searchApplication.renderQuery({
7-
name: "my-app",
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_application/search_application/my-app/_render_query",
89
body: {
910
params: {
1011
query_string: "my first query",

docs/doc_examples/16634cfa7916cf4e8048a1d70e6240f2.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const response = await client.searchApplication.put({
1111
script: {
1212
lang: "mustache",
1313
source:
14-
'\n {\n "query": {\n "bool": {\n "must": [\n {{#query}}\n \n {{/query}}\n ],\n "filter": {{#toJson}}_es_filters{{/toJson}}\n }\n },\n "_source": {\n "includes": ["title", "plot"]\n },\n "highlight": {\n "fields": {\n "title": { "fragment_size": 0 },\n "plot": { "fragment_size": 200 }\n }\n },\n "aggs": {{#toJson}}_es_aggs{{/toJson}},\n "from": {{from}},\n "size": {{size}},\n "sort": {{#toJson}}_es_sort_fields{{/toJson}}\n }\n ',
14+
'\n {\n "query": {\n "bool": {\n "must": [\n {{#query}}\n {{/query}}\n ],\n "filter": {{#toJson}}_es_filters{{/toJson}}\n }\n },\n "_source": {\n "includes": ["title", "plot"]\n },\n "highlight": {\n "fields": {\n "title": { "fragment_size": 0 },\n "plot": { "fragment_size": 200 }\n }\n },\n "aggs": {{#toJson}}_es_aggs{{/toJson}},\n "from": {{from}},\n "size": {{size}},\n "sort": {{#toJson}}_es_sort_fields{{/toJson}}\n }\n ',
1515
params: {
1616
query: "",
1717
_es_filters: {},

docs/doc_examples/19c00c6b29bc7dbc5e92b3668da2da93.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.simulate.ingest({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_ingest/_simulate",
79
body: {
810
docs: [
911
{

docs/doc_examples/2a1eece9a59ac1773edcf0a932c26de0.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.security.oidcLogout({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_security/oidc/logout",
79
body: {
810
token:
911
"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==",

docs/doc_examples/2afdf0d83724953aa2875b5fb37d60cc.asciidoc

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
[source, js]
55
----
6-
const response = await client.esql.asyncQueryGet({
7-
id: "FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=",
8-
wait_for_completion_timeout: "30s",
9-
body: null,
6+
const response = await client.transport.request({
7+
method: "GET",
8+
path: "/_query/async/FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=",
9+
querystring: {
10+
wait_for_completion_timeout: "30s",
11+
},
1012
});
1113
console.log(response);
1214
----

docs/doc_examples/3f1fe5f5f99b98d0891f38003e10b636.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.esql.asyncQuery({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_query/async",
79
body: {
810
query:
911
"\n FROM library\n | EVAL year = DATE_TRUNC(1 YEARS, release_date)\n | STATS MAX(page_count) BY year\n | SORT year\n | LIMIT 5\n ",

docs/doc_examples/405511f7c1f12cc0a227b4563fe7b2e2.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.esql.asyncQueryGet({
7-
id: "FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM=",
8-
body: null,
6+
const response = await client.transport.request({
7+
method: "GET",
8+
path: "/_query/async/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM=",
99
});
1010
console.log(response);
1111
----

docs/doc_examples/4b91ad7c9b44e07db4a4e81390f19ad3.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.inference.streamInference({
7-
task_type: "completion",
8-
inference_id: "openai-completion",
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_inference/completion/openai-completion/_stream",
99
body: {
1010
input: "What is Elastic?",
1111
},

docs/doc_examples/57dc15e5ad663c342fd5c1d86fcd1b29.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.security.oidcPrepareAuthentication({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_security/oidc/prepare",
79
body: {
810
realm: "oidc1",
911
state: "lGYK0EcSLjqH6pkT5EVZjC6eIW5YCGgywj2sxROO",

docs/doc_examples/5bba213a7f543190139d1a69ab2ed076.asciidoc

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33

44
[source, js]
55
----
6-
const response = await client.esql.asyncQuery({
7-
format: "json",
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_query/async",
9+
querystring: {
10+
format: "json",
11+
},
812
body: {
913
query:
1014
"\n FROM cluster_one:my-index*,cluster_two:logs*\n | STATS COUNT(http.response.status_code) BY user.id\n | LIMIT 2\n ",

docs/doc_examples/6b6fd0a5942dfb9762ad2790cf421a80.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const response = await client.searchApplication.put({
1111
script: {
1212
lang: "mustache",
1313
source:
14-
'\n {\n "query": {\n "bool": {\n "must": [\n {{#query}}\n \n {{/query}}\n ],\n "filter": {{#toJson}}_es_filters{{/toJson}}\n }\n },\n "_source": {\n "includes": ["title", "plot"]\n },\n "aggs": {{#toJson}}_es_aggs{{/toJson}},\n "from": {{from}},\n "size": {{size}},\n "sort": {{#toJson}}_es_sort_fields{{/toJson}}\n }\n ',
14+
'\n {\n "query": {\n "bool": {\n "must": [\n {{#query}}\n {{/query}}\n ],\n "filter": {{#toJson}}_es_filters{{/toJson}}\n }\n },\n "_source": {\n "includes": ["title", "plot"]\n },\n "aggs": {{#toJson}}_es_aggs{{/toJson}},\n "from": {{from}},\n "size": {{size}},\n "sort": {{#toJson}}_es_sort_fields{{/toJson}}\n }\n ',
1515
params: {
1616
query: "",
1717
_es_filters: {},

docs/doc_examples/6f3b723bf6179b96c3413597ed7f49e1.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.security.bulkUpdateApiKeys({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_security/api_key/_bulk_update",
79
body: {
810
ids: ["VuaCfGcBCdbkQm-e5aOx", "H3_AhoIBA9hmeQJdg7ij"],
911
},

docs/doc_examples/77518e8c6198acfe77c0934fd2fe65cb.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.textStructure.findMessageStructure({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_text_structure/find_message_structure",
79
body: {
810
messages: [
911
"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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: "DELETE",
8+
path: "/_ingest/ip_location/database/my-database-id",
9+
});
10+
console.log(response);
11+
----

docs/doc_examples/80dd7f5882c59b9c1c90e8351937441f.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.security.bulkUpdateApiKeys({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_security/api_key/_bulk_update",
79
body: {
810
ids: ["VuaCfGcBCdbkQm-e5aOx", "H3_AhoIBA9hmeQJdg7ij"],
911
role_descriptors: {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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: "PUT",
8+
path: "/_ingest/ip_location/database/my-database-1",
9+
body: {
10+
name: "GeoIP2-Domain",
11+
maxmind: {
12+
account_id: "1234567",
13+
},
14+
},
15+
});
16+
console.log(response);
17+
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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: "DELETE",
8+
path: "/_ingest/ip_location/database/example-database-id",
9+
});
10+
console.log(response);
11+
----

docs/doc_examples/9afa0844883b7471883aa378a8dd10b4.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.searchApplication.postBehavioralAnalyticsEvent({
7-
collection_name: "my_analytics_collection",
8-
event_type: "search_click",
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_application/analytics/my_analytics_collection/event/search_click",
99
body: {
1010
session: {
1111
id: "1797ca95-91c9-4e2e-b1bd-9c38e6f386a9",

docs/doc_examples/9c01db07c9ac395b6370e3b33965c21f.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.security.oidcAuthenticate({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_security/oidc/authenticate",
79
body: {
810
redirect_uri:
911
"https://oidc-kibana.elastic.co:5603/api/security/oidc/callback?code=jtI3Ntt8v3_XvcLzCFGq&state=4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I",

docs/doc_examples/a162eb50853331c80596f5994e9d1c38.asciidoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.searchApplication.renderQuery({
7-
name: "my_search_application",
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_application/search_application/my_search_application/_render_query",
89
body: {
910
params: {
1011
query_string: "rock climbing",

docs/doc_examples/b0bddf2ffaa83049b195829c06b875cd.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.searchApplication.renderQuery({
7-
name: "my_search_application",
8-
body: null,
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_application/search_application/my_search_application/_render_query",
99
});
1010
console.log(response);
1111
----

docs/doc_examples/b62eaa20c4e0e48134a6d1d1b3c30b26.asciidoc

+7-4
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,13 @@ const response = await client.bulk({
208208
});
209209
console.log(response);
210210
211-
const response1 = await client.textStructure.findFieldStructure({
212-
index: "test-logs",
213-
field: "message",
214-
body: null,
211+
const response1 = await client.transport.request({
212+
method: "GET",
213+
path: "/_text_structure/find_field_structure",
214+
querystring: {
215+
index: "test-logs",
216+
field: "message",
217+
},
215218
});
216219
console.log(response1);
217220
----

docs/doc_examples/bcdfaa4487747249699a86a0dcd22f5e.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.simulate.ingest({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_ingest/_simulate",
79
body: {
810
docs: [
911
{

docs/doc_examples/c580990a70028bb49cca8a6bde86bbf6.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.security.bulkUpdateApiKeys({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_security/api_key/_bulk_update",
79
body: {
810
ids: ["VuaCfGcBCdbkQm-e5aOx", "H3_AhoIBA9hmeQJdg7ij"],
911
role_descriptors: {},

docs/doc_examples/ccc613951c61f0b17e1ed8a2d3ae54a2.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.simulate.ingest({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_ingest/_simulate",
79
body: {
810
docs: [
911
{

docs/doc_examples/d35c8cf7a98b3f112e1de8797ec6689d.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.security.oidcPrepareAuthentication({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_security/oidc/prepare",
79
body: {
810
iss: "http://127.0.0.1:8080",
911
login_hint: "this_is_an_opaque_string",
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: "PUT",
8+
path: "/_ingest/ip_location/database/my-database-2",
9+
body: {
10+
name: "standard_location",
11+
ipinfo: {},
12+
},
13+
});
14+
console.log(response);
15+
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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: "/_ingest/ip_location/database/my-database-id",
9+
});
10+
console.log(response);
11+
----

docs/doc_examples/dd71b0c9f9197684ff29c61062c55660.asciidoc

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.security.getSettings();
6+
const response = await client.transport.request({
7+
method: "GET",
8+
path: "/_security/settings",
9+
});
710
console.log(response);
811
----

docs/doc_examples/e3019fd5f23458ae49ad9854c97d321c.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.security.oidcPrepareAuthentication({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_security/oidc/prepare",
79
body: {
810
realm: "oidc1",
911
},

docs/doc_examples/e4b38973c74037335378d8480f1ce894.asciidoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
[source, js]
55
----
6-
const response = await client.simulate.ingest({
6+
const response = await client.transport.request({
7+
method: "POST",
8+
path: "/_ingest/_simulate",
79
body: {
810
docs: [
911
{

0 commit comments

Comments
 (0)