Skip to content

Commit

Permalink
Update generated code and docs to 8.15
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Aug 19, 2024
1 parent c5fa0d2 commit bf09d72
Show file tree
Hide file tree
Showing 54 changed files with 1,138 additions and 1,058 deletions.
10 changes: 10 additions & 0 deletions api_generator/docs/namespaces/connector.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Connector APIs

The connector and sync jobs APIs provide a convenient way to create and manage [Elastic connectors](https://www.elastic.co/guide/en/enterprise-search/master/connectors.html) and sync jobs in an internal index. To get started with Connector APIs, check out the tutorial.

Connectors are Elasticsearch integrations that bring content from third-party data sources, which can be deployed on Elastic Cloud or hosted on your own infrastructure:

* Native connectors are a managed service on Elastic Cloud
* Connector clients are self-managed on your infrastructure

This API provides an alternative to relying solely on Kibana UI for connector and sync job management. The API comes with a set of validations and assertions to ensure that the state representation in the internal index remains valid.
3 changes: 3 additions & 0 deletions api_generator/docs/namespaces/esql.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ES|QL APIs

The Elasticsearch Query Language (ES|QL) provides a powerful way to filter, transform, and analyze data stored in Elasticsearch, and in the future in other runtimes. For an overview of ES|QL and related tutorials, see [ES|QL](https://www.elastic.co/guide/en/elasticsearch/reference/current/esql.html).
3 changes: 3 additions & 0 deletions api_generator/docs/namespaces/inference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Inference APIs

The inference APIs enable you to create inference endpoints and use machine learning models of different providers - such as Amazon Bedrock, Anthropic, Azure AI Studio, Cohere, Google AI, Mistral, OpenAI, or HuggingFace - as a service.
5 changes: 5 additions & 0 deletions api_generator/docs/namespaces/query_rules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Query rules APIs

Query rules allow you to configure per-query rules that are applied at query time to queries that match the specific rule. Query rules are organized into rulesets, collections of query rules that are matched against incoming queries. Query rules are applied using the rule query.

If a query matches one or more rules in the ruleset, the query is re-written to apply the rules before searching. This allows pinning documents for only queries that match a specific term.
3 changes: 3 additions & 0 deletions api_generator/docs/namespaces/search_application.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Search Application APIs

Use Search Application APIs to manage tasks and resources related to Search Applications.
1 change: 1 addition & 0 deletions api_generator/docs/namespaces/simulate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pipeline simulation APIs
11 changes: 11 additions & 0 deletions api_generator/docs/namespaces/synonyms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Synonyms APIs

The synonyms management API provides a convenient way to define and manage synonyms in an internal system index. Related synonyms can be grouped in a "synonyms set". Create as many synonym sets as you need.

This provides an alternative to:

* Defining inline synonyms in an analyzer definition, which impacts mapping size and can lead to performance issues.
* Using synonyms files, which implies uploading and managing file consistency on all cluster nodes.

Synonyms sets can be used to configure synonym graph token filters and synonym token filters. These filters are applied as part of the analysis process by the search analyzer.

88 changes: 44 additions & 44 deletions elasticsearch/src/.generated.toml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
written = [
'async_search.rs',
'autoscaling.rs',
'cat.rs',
'ccr.rs',
'cluster.rs',
'connector.rs',
'dangling_indices.rs',
'enrich.rs',
'eql.rs',
'esql.rs',
'features.rs',
'fleet.rs',
'graph.rs',
'ilm.rs',
'indices.rs',
'inference.rs',
'ingest.rs',
'license.rs',
'logstash.rs',
'migration.rs',
'ml.rs',
'monitoring.rs',
'nodes.rs',
'profiling.rs',
'query_rules.rs',
'rollup.rs',
'root/mod.rs',
'search_application.rs',
'searchable_snapshots.rs',
'security.rs',
'shutdown.rs',
'simulate.rs',
'slm.rs',
'snapshot.rs',
'sql.rs',
'ssl.rs',
'synonyms.rs',
'tasks.rs',
'text_structure.rs',
'transform.rs',
'watcher.rs',
'xpack.rs',
"async_search.rs",
"autoscaling.rs",
"cat.rs",
"ccr.rs",
"cluster.rs",
"connector.rs",
"dangling_indices.rs",
"enrich.rs",
"eql.rs",
"esql.rs",
"features.rs",
"fleet.rs",
"graph.rs",
"ilm.rs",
"indices.rs",
"inference.rs",
"ingest.rs",
"license.rs",
"logstash.rs",
"migration.rs",
"ml.rs",
"monitoring.rs",
"nodes.rs",
"profiling.rs",
"query_rules.rs",
"rollup.rs",
"root/mod.rs",
"search_application.rs",
"searchable_snapshots.rs",
"security.rs",
"shutdown.rs",
"simulate.rs",
"slm.rs",
"snapshot.rs",
"sql.rs",
"ssl.rs",
"synonyms.rs",
"tasks.rs",
"text_structure.rs",
"transform.rs",
"watcher.rs",
"xpack.rs",
]
merged = [
'lib.rs',
'params.rs',
"lib.rs",
"params.rs",
]
16 changes: 8 additions & 8 deletions elasticsearch/src/async_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl<'b> AsyncSearchDeleteParts<'b> {
}
}
}
#[doc = "Builder for the [Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
#[doc = "Builder for the [Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
#[derive(Clone, Debug)]
pub struct AsyncSearchDelete<'a, 'b> {
transport: &'a Transport,
Expand Down Expand Up @@ -184,7 +184,7 @@ impl<'b> AsyncSearchGetParts<'b> {
}
}
}
#[doc = "Builder for the [Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
#[doc = "Builder for the [Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
#[derive(Clone, Debug)]
pub struct AsyncSearchGet<'a, 'b> {
transport: &'a Transport,
Expand Down Expand Up @@ -329,7 +329,7 @@ impl<'b> AsyncSearchStatusParts<'b> {
}
}
}
#[doc = "Builder for the [Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
#[doc = "Builder for the [Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
#[derive(Clone, Debug)]
pub struct AsyncSearchStatus<'a, 'b> {
transport: &'a Transport,
Expand Down Expand Up @@ -462,7 +462,7 @@ impl<'b> AsyncSearchSubmitParts<'b> {
}
}
}
#[doc = "Builder for the [Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nExecutes a search request asynchronously."]
#[doc = "Builder for the [Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nExecutes a search request asynchronously."]
#[derive(Clone, Debug)]
pub struct AsyncSearchSubmit<'a, 'b, B> {
transport: &'a Transport,
Expand Down Expand Up @@ -1014,19 +1014,19 @@ impl<'a> AsyncSearch<'a> {
pub fn transport(&self) -> &Transport {
self.transport
}
#[doc = "[Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
#[doc = "[Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
pub fn delete<'b>(&'a self, parts: AsyncSearchDeleteParts<'b>) -> AsyncSearchDelete<'a, 'b> {
AsyncSearchDelete::new(self.transport(), parts)
}
#[doc = "[Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
#[doc = "[Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
pub fn get<'b>(&'a self, parts: AsyncSearchGetParts<'b>) -> AsyncSearchGet<'a, 'b> {
AsyncSearchGet::new(self.transport(), parts)
}
#[doc = "[Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
#[doc = "[Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
pub fn status<'b>(&'a self, parts: AsyncSearchStatusParts<'b>) -> AsyncSearchStatus<'a, 'b> {
AsyncSearchStatus::new(self.transport(), parts)
}
#[doc = "[Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/async-search.html)\n\nExecutes a search request asynchronously."]
#[doc = "[Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/async-search.html)\n\nExecutes a search request asynchronously."]
pub fn submit<'b>(
&'a self,
parts: AsyncSearchSubmitParts<'b>,
Expand Down
16 changes: 8 additions & 8 deletions elasticsearch/src/autoscaling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl<'b> AutoscalingDeleteAutoscalingPolicyParts<'b> {
}
}
}
#[doc = "Builder for the [Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[doc = "Builder for the [Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[derive(Clone, Debug)]
pub struct AutoscalingDeleteAutoscalingPolicy<'a, 'b> {
transport: &'a Transport,
Expand Down Expand Up @@ -199,7 +199,7 @@ impl AutoscalingGetAutoscalingCapacityParts {
}
}
}
#[doc = "Builder for the [Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[doc = "Builder for the [Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[derive(Clone, Debug)]
pub struct AutoscalingGetAutoscalingCapacity<'a, 'b> {
transport: &'a Transport,
Expand Down Expand Up @@ -326,7 +326,7 @@ impl<'b> AutoscalingGetAutoscalingPolicyParts<'b> {
}
}
}
#[doc = "Builder for the [Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[doc = "Builder for the [Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[derive(Clone, Debug)]
pub struct AutoscalingGetAutoscalingPolicy<'a, 'b> {
transport: &'a Transport,
Expand Down Expand Up @@ -453,7 +453,7 @@ impl<'b> AutoscalingPutAutoscalingPolicyParts<'b> {
}
}
}
#[doc = "Builder for the [Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[doc = "Builder for the [Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[derive(Clone, Debug)]
pub struct AutoscalingPutAutoscalingPolicy<'a, 'b, B> {
transport: &'a Transport,
Expand Down Expand Up @@ -606,25 +606,25 @@ impl<'a> Autoscaling<'a> {
pub fn transport(&self) -> &Transport {
self.transport
}
#[doc = "[Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[doc = "[Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
pub fn delete_autoscaling_policy<'b>(
&'a self,
parts: AutoscalingDeleteAutoscalingPolicyParts<'b>,
) -> AutoscalingDeleteAutoscalingPolicy<'a, 'b> {
AutoscalingDeleteAutoscalingPolicy::new(self.transport(), parts)
}
#[doc = "[Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[doc = "[Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
pub fn get_autoscaling_capacity<'b>(&'a self) -> AutoscalingGetAutoscalingCapacity<'a, 'b> {
AutoscalingGetAutoscalingCapacity::new(self.transport())
}
#[doc = "[Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[doc = "[Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
pub fn get_autoscaling_policy<'b>(
&'a self,
parts: AutoscalingGetAutoscalingPolicyParts<'b>,
) -> AutoscalingGetAutoscalingPolicy<'a, 'b> {
AutoscalingGetAutoscalingPolicy::new(self.transport(), parts)
}
#[doc = "[Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
#[doc = "[Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
pub fn put_autoscaling_policy<'b>(
&'a self,
parts: AutoscalingPutAutoscalingPolicyParts<'b>,
Expand Down
Loading

0 comments on commit bf09d72

Please sign in to comment.