Skip to content

Commit cacc3cd

Browse files
committed
[es] Generate client code
1 parent 7371329 commit cacc3cd

24 files changed

+48
-24
lines changed

elasticsearch/src/async_search.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
//! let you asynchronously execute a search request, monitor its progress, and retrieve
3131
//! partial results as they become available.
3232
33-
# ! [ allow ( unused_imports ) ]use crate::{
33+
#![allow(unused_imports)]
34+
use crate::{
3435
client::Elasticsearch,
3536
error::Error,
3637
http::{

elasticsearch/src/cat.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@
119119
//! ```
120120
//!
121121
122-
# ! [ allow ( unused_imports ) ]use crate::{
122+
#![allow(unused_imports)]
123+
use crate::{
123124
client::Elasticsearch,
124125
error::Error,
125126
http::{

elasticsearch/src/ccr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
//! - Disaster recovery in case a primary cluster fails. A secondary cluster can serve as a hot backup
3333
//! - Geo-proximity so that reads can be served locally
3434
35-
# ! [ allow ( unused_imports ) ]use crate::{
35+
#![allow(unused_imports)]
36+
use crate::{
3637
client::Elasticsearch,
3738
error::Error,
3839
http::{

elasticsearch/src/cluster.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
//! [Manage settings](https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster.html),
3030
//! perform operations, and retrieve information about an Elasticsearch cluster.
3131
32-
# ! [ allow ( unused_imports ) ]use crate::{
32+
#![allow(unused_imports)]
33+
use crate::{
3334
client::Elasticsearch,
3435
error::Error,
3536
http::{

elasticsearch/src/dangling_indices.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
//!
3434
//! The dangling indices APIs can list, import and delete dangling indices.
3535
36-
# ! [ allow ( unused_imports ) ]use crate::{
36+
#![allow(unused_imports)]
37+
use crate::{
3738
client::Elasticsearch,
3839
error::Error,
3940
http::{

elasticsearch/src/enrich.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
//! as part of an [ingest pipeline](../ingest/index.html), to add data from your existing indices
3232
//! to incoming documents during ingest.
3333
34-
# ! [ allow ( unused_imports ) ]use crate::{
34+
#![allow(unused_imports)]
35+
use crate::{
3536
client::Elasticsearch,
3637
error::Error,
3738
http::{

elasticsearch/src/graph.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
//! indices, [inferring relationships across documents](https://www.elastic.co/what-is/elasticsearch-graph),
3131
//! and allowing the [exploration of such relationships](https://www.elastic.co/guide/en/elasticsearch/reference/master/graph-explore-api.html).
3232
33-
# ! [ allow ( unused_imports ) ]use crate::{
33+
#![allow(unused_imports)]
34+
use crate::{
3435
client::Elasticsearch,
3536
error::Error,
3637
http::{

elasticsearch/src/ilm.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
//! template used to create them. Update the policy to modify the lifecycle of both new
3535
//! and existing indices.
3636
37-
# ! [ allow ( unused_imports ) ]use crate::{
37+
#![allow(unused_imports)]
38+
use crate::{
3839
client::Elasticsearch,
3940
error::Error,
4041
http::{

elasticsearch/src/indices.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
//! [Manage individual indices](https://www.elastic.co/guide/en/elasticsearch/reference/master/indices.html),
3030
//! index settings, aliases, mappings, and index templates.
3131
32-
# ! [ allow ( unused_imports ) ]use crate::{
32+
#![allow(unused_imports)]
33+
use crate::{
3334
client::Elasticsearch,
3435
error::Error,
3536
http::{

elasticsearch/src/ingest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
//! be conditionally executed, and failures within pipelines can be explicitly handled by defining
4343
//! processors to execute in the event of failure.
4444
45-
# ! [ allow ( unused_imports ) ]use crate::{
45+
#![allow(unused_imports)]
46+
use crate::{
4647
client::Elasticsearch,
4748
error::Error,
4849
http::{

elasticsearch/src/license.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
//! - Start indefinite use of the Basic license features
3434
//! - Get the status of trial and basic license features
3535
36-
# ! [ allow ( unused_imports ) ]use crate::{
36+
#![allow(unused_imports)]
37+
use crate::{
3738
client::Elasticsearch,
3839
error::Error,
3940
http::{

elasticsearch/src/migration.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
//!
2929
//! [Simplify upgrading X-Pack indices from one version to another](https://www.elastic.co/guide/en/elasticsearch/reference/master/migration-api.html).
3030
31-
# ! [ allow ( unused_imports ) ]use crate::{
31+
#![allow(unused_imports)]
32+
use crate::{
3233
client::Elasticsearch,
3334
error::Error,
3435
http::{

elasticsearch/src/ml.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
//!
2929
//! [Perform machine learning anomaly detection activities](https://www.elastic.co/guide/en/elasticsearch/reference/master/ml-apis.html).
3030
31-
# ! [ allow ( unused_imports ) ]use crate::{
31+
#![allow(unused_imports)]
32+
use crate::{
3233
client::Elasticsearch,
3334
error::Error,
3435
http::{

elasticsearch/src/nodes.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
//! Manage settings, perform operations, and retrieve information about the
3030
//! [nodes in an Elasticsearch cluster](https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster.html).
3131
32-
# ! [ allow ( unused_imports ) ]use crate::{
32+
#![allow(unused_imports)]
33+
use crate::{
3334
client::Elasticsearch,
3435
error::Error,
3536
http::{

elasticsearch/src/root/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
// cargo make generate-api
2525
// -----------------------------------------------
2626

27-
# ! [ allow ( unused_imports ) ]use crate::{
27+
#![allow(unused_imports)]
28+
use crate::{
2829
client::Elasticsearch,
2930
error::Error,
3031
http::{

elasticsearch/src/security.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
//! - Authenticate users against an OpenID Connect or SAML authentication realm when using a
3838
//! custom web application other than Kibana
3939
40-
# ! [ allow ( unused_imports ) ]use crate::{
40+
#![allow(unused_imports)]
41+
use crate::{
4142
client::Elasticsearch,
4243
error::Error,
4344
http::{

elasticsearch/src/slm.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
//! indices. Snapshot Lifecycle Management can also perform deletion of older snapshots based on a
3434
//! configurable retention policy.
3535
36-
# ! [ allow ( unused_imports ) ]use crate::{
36+
#![allow(unused_imports)]
37+
use crate::{
3738
client::Elasticsearch,
3839
error::Error,
3940
http::{

elasticsearch/src/snapshot.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
//! indices or the entire cluster, stored in a repository on a shared filesystem or a remote repository
3232
//! on S3, HDFS, Azure, Google Cloud storage, and more.
3333
34-
# ! [ allow ( unused_imports ) ]use crate::{
34+
#![allow(unused_imports)]
35+
use crate::{
3536
client::Elasticsearch,
3637
error::Error,
3738
http::{

elasticsearch/src/sql.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
//!
2929
//! [Execute SQL queries against Elasticsearch indices and return results in tabular format](https://www.elastic.co/guide/en/elasticsearch/reference/master/xpack-sql.html).
3030
31-
# ! [ allow ( unused_imports ) ]use crate::{
31+
#![allow(unused_imports)]
32+
use crate::{
3233
client::Elasticsearch,
3334
error::Error,
3435
http::{

elasticsearch/src/ssl.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
//!
2929
//! [Retrieve information about the X.509 certificates used to encrypt communications in the cluster](https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-ssl.html).
3030
31-
# ! [ allow ( unused_imports ) ]use crate::{
31+
#![allow(unused_imports)]
32+
use crate::{
3233
client::Elasticsearch,
3334
error::Error,
3435
http::{

elasticsearch/src/tasks.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
//!
2929
//! [Manage tasks currently executing on one or more nodes in the cluster](https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html).
3030
31-
# ! [ allow ( unused_imports ) ]use crate::{
31+
#![allow(unused_imports)]
32+
use crate::{
3233
client::Elasticsearch,
3334
error::Error,
3435
http::{

elasticsearch/src/transform.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
//! can be used to copy data from source indices, transforms it, and persists it into an
3131
//! entity-centric destination index.
3232
33-
# ! [ allow ( unused_imports ) ]use crate::{
33+
#![allow(unused_imports)]
34+
use crate::{
3435
client::Elasticsearch,
3536
error::Error,
3637
http::{

elasticsearch/src/watcher.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
//! Enable [watching for changes or anomalies in data and perform the necessary actions in response](https://www.elastic.co/guide/en/elasticsearch/reference/master/xpack-alerting.html),
3030
//! by creating and managing watches that take action based on a met condition.
3131
32-
# ! [ allow ( unused_imports ) ]use crate::{
32+
#![allow(unused_imports)]
33+
use crate::{
3334
client::Elasticsearch,
3435
error::Error,
3536
http::{

elasticsearch/src/xpack.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
//!
2929
//! Provide general information about the installed X-Pack features and their usage.
3030
31-
# ! [ allow ( unused_imports ) ]use crate::{
31+
#![allow(unused_imports)]
32+
use crate::{
3233
client::Elasticsearch,
3334
error::Error,
3435
http::{

0 commit comments

Comments
 (0)