Skip to content

Commit

Permalink
Auto-generated code for 8.16 (#2470)
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Nov 18, 2024
1 parent 1e103ba commit 47de886
Show file tree
Hide file tree
Showing 17 changed files with 290 additions and 45 deletions.
11 changes: 0 additions & 11 deletions docs/doc_examples/19d60e4890cc57151d596326484d9076.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
----
const response = await client.ingest.putPipeline({
id: "geoip",
description: "Add geoip info",
description: "Add ip geolocation info",
processors: [
{
geoip: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
----
const response = await client.ingest.putPipeline({
id: "geoip",
description: "Add geoip info",
description: "Add ip geolocation info",
processors: [
{
geoip: {
Expand Down
11 changes: 0 additions & 11 deletions docs/doc_examples/3b6718257421b5419bf4cd6a7303c57e.asciidoc

This file was deleted.

11 changes: 0 additions & 11 deletions docs/doc_examples/533087d787b48878a0bf3fa8d0851b64.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
[source, js]
----
const response = await client.security.putRole({
name: "role_with_remote_indices",
name: "only_remote_access_role",
remote_indices: [
{
clusters: ["my_remote"],
names: ["logs*"],
privileges: ["read", "read_cross_cluster", "view_index_metadata"],
},
],
remote_cluster: [
{
clusters: ["my_remote"],
privileges: ["monitor_stats"],
},
],
});
console.log(response);
----
34 changes: 34 additions & 0 deletions docs/doc_examples/7f1fade93225f8cf6000b93334d76ce4.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// 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.ingest.putPipeline({
id: "ip_location",
description: "Add ip geolocation info",
processors: [
{
ip_location: {
field: "ip",
},
},
],
});
console.log(response);
const response1 = await client.index({
index: "my-index-000001",
id: "my_id",
pipeline: "ip_location",
document: {
ip: "80.231.5.0",
},
});
console.log(response1);
const response2 = await client.get({
index: "my-index-000001",
id: "my_id",
});
console.log(response2);
----
13 changes: 13 additions & 0 deletions docs/doc_examples/9313f534e1aa266cde7d4af74665497f.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// 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.connector.put({
connector_id: "my-{service-name-stub}-connector",
index_name: "my-elasticsearch-index",
name: "Content synced from {service-name}",
service_type: "{service-name-stub}",
});
console.log(response);
----
34 changes: 34 additions & 0 deletions docs/doc_examples/a3779f21f132787c48681bfb50453592.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// 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.ingest.putPipeline({
id: "ip_location",
description: "Add ip geolocation info",
processors: [
{
ip_location: {
field: "ip",
},
},
],
});
console.log(response);
const response1 = await client.index({
index: "my-index-000001",
id: "my_id",
pipeline: "ip_location",
document: {
ip: "89.160.20.128",
},
});
console.log(response1);
const response2 = await client.get({
index: "my-index-000001",
id: "my_id",
});
console.log(response2);
----
14 changes: 14 additions & 0 deletions docs/doc_examples/ae3473adaf1515afcf7773f26c018e5c.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 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.connector.put({
connector_id: "my-{service-name-stub}-connector",
index_name: "my-elasticsearch-index",
name: "Content synced from {service-name}",
service_type: "{service-name-stub}",
is_native: true,
});
console.log(response);
----
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
----
const response = await client.ingest.putPipeline({
id: "geoip",
description: "Add geoip info",
description: "Add ip geolocation info",
processors: [
{
geoip: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
[source, js]
----
const response = await client.transport.request({
method: "PUT",
path: "/_ingest/geoip/database/my-database-id",
method: "POST",
path: "/_query_rules/my-ruleset/_test",
body: {
name: "GeoIP2-Domain",
maxmind: {
account_id: "1025402",
match_criteria: {
query_string: "puggles",
},
},
});
Expand Down
36 changes: 36 additions & 0 deletions docs/doc_examples/e308899a306e61d1a590868308689955.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// 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.ingest.putPipeline({
id: "ip_location",
description: "Add ip geolocation info",
processors: [
{
ip_location: {
field: "ip",
target_field: "geo",
database_file: "GeoLite2-Country.mmdb",
},
},
],
});
console.log(response);
const response1 = await client.index({
index: "my-index-000001",
id: "my_id",
pipeline: "ip_location",
document: {
ip: "89.160.20.128",
},
});
console.log(response1);
const response2 = await client.get({
index: "my-index-000001",
id: "my_id",
});
console.log(response2);
----
35 changes: 34 additions & 1 deletion docs/reference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5884,6 +5884,17 @@ client.ingest.deleteGeoipDatabase({ id })
If no response is received before the timeout expires, the request fails and returns an error.
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

[discrete]
==== delete_ip_location_database
Deletes an ip location database configuration

{ref}/delete-ip-location-database-api.html[Endpoint documentation]
[source,ts]
----
client.ingest.deleteIpLocationDatabase()
----


[discrete]
==== delete_pipeline
Deletes one or more existing ingest pipeline.
Expand Down Expand Up @@ -5936,6 +5947,17 @@ To get all database configurations, omit this parameter or use `*`.
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.

[discrete]
==== get_ip_location_database
Returns the specified ip location database configuration

{ref}/get-ip-location-database-api.html[Endpoint documentation]
[source,ts]
----
client.ingest.getIpLocationDatabase()
----


[discrete]
==== get_pipeline
Returns information about one or more ingest pipelines.
Expand Down Expand Up @@ -5993,6 +6015,17 @@ At present, the only supported provider is maxmind, and the maxmind provider req
If no response is received before the timeout expires, the request fails and returns an error.
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

[discrete]
==== put_ip_location_database
Puts the configuration for a ip location database to be downloaded

{ref}/put-ip-location-database-api.html[Endpoint documentation]
[source,ts]
----
client.ingest.putIpLocationDatabase()
----


[discrete]
==== put_pipeline
Creates or updates an ingest pipeline.
Expand Down Expand Up @@ -11214,7 +11247,7 @@ client.tasks.list({ ... })
** *`actions` (Optional, string | string[])*: List or wildcard expression of actions used to limit the request.
** *`detailed` (Optional, boolean)*: If `true`, the response includes detailed information about shard recoveries.
** *`group_by` (Optional, Enum("nodes" | "parents" | "none"))*: Key used to group tasks in the response.
** *`node_id` (Optional, string[])*: List of node IDs or names used to limit returned information.
** *`nodes` (Optional, string | string[])*: List of node IDs or names used to limit returned information.
** *`parent_task_id` (Optional, string)*: Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of `-1`.
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Expand Down
Loading

0 comments on commit 47de886

Please sign in to comment.