hanzo_client/models/ml_create.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 MlCreate {
16 /// Labels are extra labels to set on the object, merged UNDER the tenancy labels this plane derives from the validated principal — so a label naming another org's scope cannot displace the real one.
17 #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
18 pub labels: Option<std::collections::HashMap<String, String>>,
19 /// Name is the resource's name: a DNS-1123 label (^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$), lowercased and trimmed. It is the name the resource answers to for the life of the caller's org.
20 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21 pub name: Option<String>,
22 #[serde(rename = "spec", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23 pub spec: Option<Option<serde_json::Value>>,
24}
25
26impl MlCreate {
27 pub fn new() -> MlCreate {
28 MlCreate {
29 labels: None,
30 name: None,
31 spec: None,
32 }
33 }
34}
35