Skip to main content

nautobot_openapi/models/
wireless_network.rs

1/*
2 * API Documentation
3 *
4 * Source of truth and network automation platform
5 *
6 * The version of the OpenAPI document: 3.1.0 (3.1)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// WirelessNetwork : Base class to use for serializers based on OrganizationalModel or PrimaryModel.  Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct WirelessNetwork {
15    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
16    pub id: Option<uuid::Uuid>,
17    #[serde(rename = "object_type", skip_serializing_if = "Option::is_none")]
18    pub object_type: Option<String>,
19    /// Human friendly display value
20    #[serde(rename = "display", skip_serializing_if = "Option::is_none")]
21    pub display: Option<String>,
22    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
23    pub url: Option<String>,
24    #[serde(rename = "natural_slug", skip_serializing_if = "Option::is_none")]
25    pub natural_slug: Option<String>,
26    #[serde(rename = "name")]
27    pub name: String,
28    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
29    pub description: Option<String>,
30    #[serde(rename = "ssid")]
31    pub ssid: String,
32    #[serde(rename = "mode")]
33    pub mode: crate::models::WirelessNetworkModeChoices,
34    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
35    pub enabled: Option<bool>,
36    #[serde(rename = "authentication")]
37    pub authentication: crate::models::AuthenticationEnum,
38    #[serde(rename = "hidden", skip_serializing_if = "Option::is_none")]
39    pub hidden: Option<bool>,
40    #[serde(
41        rename = "secrets_group",
42        default,
43        with = "::serde_with::rust::double_option",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub secrets_group: Option<Option<Box<crate::models::ApprovalWorkflowUser>>>,
47    #[serde(
48        rename = "tenant",
49        default,
50        with = "::serde_with::rust::double_option",
51        skip_serializing_if = "Option::is_none"
52    )]
53    pub tenant: Option<Option<Box<crate::models::ApprovalWorkflowUser>>>,
54    #[serde(
55        rename = "created",
56        default,
57        with = "::serde_with::rust::double_option",
58        skip_serializing_if = "Option::is_none"
59    )]
60    pub created: Option<Option<String>>,
61    #[serde(
62        rename = "last_updated",
63        default,
64        with = "::serde_with::rust::double_option",
65        skip_serializing_if = "Option::is_none"
66    )]
67    pub last_updated: Option<Option<String>>,
68    #[serde(rename = "notes_url", skip_serializing_if = "Option::is_none")]
69    pub notes_url: Option<String>,
70    #[serde(rename = "custom_fields", skip_serializing_if = "Option::is_none")]
71    pub custom_fields: Option<::std::collections::HashMap<String, serde_json::Value>>,
72    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
73    pub tags: Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
74}
75
76impl WirelessNetwork {
77    /// Base class to use for serializers based on OrganizationalModel or PrimaryModel.  Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
78    pub fn new(
79        name: String,
80        ssid: String,
81        mode: crate::models::WirelessNetworkModeChoices,
82        authentication: crate::models::AuthenticationEnum,
83    ) -> WirelessNetwork {
84        WirelessNetwork {
85            id: None,
86            object_type: None,
87            display: None,
88            url: None,
89            natural_slug: None,
90            name,
91            description: None,
92            ssid,
93            mode,
94            enabled: None,
95            authentication,
96            hidden: None,
97            secrets_group: None,
98            tenant: None,
99            created: None,
100            last_updated: None,
101            notes_url: None,
102            custom_fields: None,
103            tags: None,
104        }
105    }
106}