Skip to main content

hanzo_client/models/
alert_patch.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AlertPatch {
16    #[serde(rename = "enforce", skip_serializing_if = "Option::is_none")]
17    pub enforce: Option<bool>,
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
21    pub project: Option<String>,
22    #[serde(rename = "rateLimitRpm", skip_serializing_if = "Option::is_none")]
23    pub rate_limit_rpm: Option<i32>,
24    #[serde(rename = "service", skip_serializing_if = "Option::is_none")]
25    pub service: Option<String>,
26    #[serde(rename = "softPct", skip_serializing_if = "Option::is_none")]
27    pub soft_pct: Option<i32>,
28    #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
29    pub subject: Option<String>,
30    #[serde(rename = "threshold", skip_serializing_if = "Option::is_none")]
31    pub threshold: Option<i32>,
32    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
33    pub title: Option<String>,
34}
35
36impl AlertPatch {
37    pub fn new() -> AlertPatch {
38        AlertPatch {
39            enforce: None,
40            id: None,
41            project: None,
42            rate_limit_rpm: None,
43            service: None,
44            soft_pct: None,
45            subject: None,
46            threshold: None,
47            title: None,
48        }
49    }
50}
51