/*
* opensearch-client
*
* Rust Client for OpenSearch
*
* The version of the OpenAPI document: 3.1.0
* Contact: alberto.paro@gmail.com
* Generated by Paro OpenAPI Generator
*/
use crate::common;
use serde::{Deserialize, Serialize};
/// ShrinkRequestBodyJson
/// The configuration for the target index (`settings` and `aliases`)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ShrinkRequestBodyJson {
/// The key is the alias name.
/// Index alias names support date math.
#[serde(rename = "aliases", default, skip_serializing_if = "Option::is_none")]
pub aliases: Option<serde_json::Value>,
/// Configuration options for the target index.
#[serde(rename = "settings", default, skip_serializing_if = "Option::is_none")]
pub settings: Option<serde_json::Value>,
}
impl ShrinkRequestBodyJson {
/// The configuration for the target index (`settings` and `aliases`)
pub fn new() -> ShrinkRequestBodyJson {
ShrinkRequestBodyJson {
aliases: None,
settings: None,
}
}
}