/*
 * 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
 */

/// DeviceClusterAssignmentRequest : Serializer for DeviceClusterAssignment model.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct DeviceClusterAssignmentRequest {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<uuid::Uuid>,
    #[serde(rename = "device")]
    pub device: Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
    #[serde(rename = "cluster")]
    pub cluster: Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
}

impl DeviceClusterAssignmentRequest {
    /// Serializer for DeviceClusterAssignment model.
    pub fn new(
        device: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
        cluster: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
    ) -> DeviceClusterAssignmentRequest {
        DeviceClusterAssignmentRequest {
            id: None,
            device: Box::new(device),
            cluster: Box::new(cluster),
        }
    }
}
