Skip to main content

nautobot_openapi/models/
controller_managed_device_group_radio_profile_assignment.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/// ControllerManagedDeviceGroupRadioProfileAssignment : Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see <https://github.com/encode/django-rest-framework/issues/3144>)
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct ControllerManagedDeviceGroupRadioProfileAssignment {
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 = "controller_managed_device_group")]
27    pub controller_managed_device_group:
28        Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
29    #[serde(rename = "radio_profile")]
30    pub radio_profile: Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
31}
32
33impl ControllerManagedDeviceGroupRadioProfileAssignment {
34    /// Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see <https://github.com/encode/django-rest-framework/issues/3144>)
35    pub fn new(
36        controller_managed_device_group: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
37        radio_profile: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
38    ) -> ControllerManagedDeviceGroupRadioProfileAssignment {
39        ControllerManagedDeviceGroupRadioProfileAssignment {
40            id: None,
41            object_type: None,
42            display: None,
43            url: None,
44            natural_slug: None,
45            controller_managed_device_group: Box::new(controller_managed_device_group),
46            radio_profile: Box::new(radio_profile),
47        }
48    }
49}