hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct O11yPeriodQueryRangeRequest {
    /// CompositeQuery is the composite query to use for the request.
    #[serde(rename = "compositeQuery", skip_serializing_if = "Option::is_none")]
    pub composite_query: Option<Box<models::O11yPeriodQuerybuildertypesv5PeriodCompositeQuery>>,
    /// End is the end time of the query in epoch milliseconds.
    #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
    pub end: Option<i32>,
    #[serde(rename = "formatOptions", skip_serializing_if = "Option::is_none")]
    pub format_options: Option<Box<models::O11yPeriodFormatOptions>>,
    /// NoCache is a flag to disable caching for the request.
    #[serde(rename = "noCache", skip_serializing_if = "Option::is_none")]
    pub no_cache: Option<bool>,
    #[serde(rename = "requestType", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub request_type: Option<Option<serde_json::Value>>,
    /// SchemaVersion is the version of the schema to use for the request payload.
    #[serde(rename = "schemaVersion", skip_serializing_if = "Option::is_none")]
    pub schema_version: Option<String>,
    /// Start is the start time of the query in epoch milliseconds.
    #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
    pub start: Option<i32>,
    /// Variables is the variables to use for the request.
    #[serde(rename = "variables", skip_serializing_if = "Option::is_none")]
    pub variables: Option<std::collections::HashMap<String, models::O11yPeriodVariableItem>>,
}

impl O11yPeriodQueryRangeRequest {
    pub fn new() -> O11yPeriodQueryRangeRequest {
        O11yPeriodQueryRangeRequest {
            composite_query: None,
            end: None,
            format_options: None,
            no_cache: None,
            request_type: None,
            schema_version: None,
            start: None,
            variables: None,
        }
    }
}