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

/// PatchedBulkWritableDeviceClusterAssignmentRequest : Serializer for DeviceClusterAssignment model.

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

impl PatchedBulkWritableDeviceClusterAssignmentRequest {
    /// Serializer for DeviceClusterAssignment model.
    pub fn new(id: uuid::Uuid) -> PatchedBulkWritableDeviceClusterAssignmentRequest {
        PatchedBulkWritableDeviceClusterAssignmentRequest {
            id,
            device: None,
            cluster: None,
        }
    }
}
