Skip to content

Commit

Permalink
add cluster version type
Browse files Browse the repository at this point in the history
Signed-off-by: samuel orji <[email protected]>
  • Loading branch information
samuelorji committed Oct 11, 2023
1 parent 5a70fe5 commit 8fce8f9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions opensearch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ pub mod auth;
pub mod cert;
pub mod http;
pub mod params;
pub mod models;

// GENERATED-BEGIN:namespace-modules
// Generated code - do not edit until the next GENERATED-END marker
Expand Down
25 changes: 25 additions & 0 deletions opensearch/src/models/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
use serde::Deserialize;

#[derive(Deserialize, Debug)]
#[doc = "Cluster information"]
pub struct InfoResponse {
name : String,
cluster_name: String,
cluster_uuid: String,
version: OpenSearchVersionInfo,
#[serde(rename = "tagline")]
tag_line: String
}

#[derive(Deserialize, Debug)]
pub struct OpenSearchVersionInfo {
distribution: String,
number: String,
build_type: String,
build_hash: String,
build_date: String,
build_snapshot: bool,
lucene_version: String,
minimum_wire_compatibility_version: String,
minimum_index_compatibility_version: String
}

0 comments on commit 8fce8f9

Please sign in to comment.