nautobot-openapi 0.4.0

low level nautobot bindings (generated by openapi-generator)
Documentation
/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

/// BulkWritableInterfaceRedundancyGroupAssociationRequest : InterfaceRedundancyGroupAssociation Serializer.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct BulkWritableInterfaceRedundancyGroupAssociationRequest {
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "priority")]
    pub priority: i32,
    #[serde(rename = "interface_redundancy_group")]
    pub interface_redundancy_group:
        Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
    #[serde(rename = "interface")]
    pub interface: Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
}

impl BulkWritableInterfaceRedundancyGroupAssociationRequest {
    /// InterfaceRedundancyGroupAssociation Serializer.
    pub fn new(
        id: uuid::Uuid,
        priority: i32,
        interface_redundancy_group: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
        interface: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
    ) -> BulkWritableInterfaceRedundancyGroupAssociationRequest {
        BulkWritableInterfaceRedundancyGroupAssociationRequest {
            id,
            priority,
            interface_redundancy_group: Box::new(interface_redundancy_group),
            interface: Box::new(interface),
        }
    }
}