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

/// PatchedDataComplianceRequest : Serializer for DataCompliance.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PatchedDataComplianceRequest {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<uuid::Uuid>,
    #[serde(
        rename = "compliance_class_name",
        skip_serializing_if = "Option::is_none"
    )]
    pub compliance_class_name: Option<String>,
    #[serde(rename = "object_id", skip_serializing_if = "Option::is_none")]
    pub object_id: Option<uuid::Uuid>,
    #[serde(
        rename = "validated_object_str",
        skip_serializing_if = "Option::is_none"
    )]
    pub validated_object_str: Option<String>,
    #[serde(
        rename = "validated_attribute",
        skip_serializing_if = "Option::is_none"
    )]
    pub validated_attribute: Option<String>,
    #[serde(
        rename = "validated_attribute_value",
        skip_serializing_if = "Option::is_none"
    )]
    pub validated_attribute_value: Option<String>,
    #[serde(rename = "valid", skip_serializing_if = "Option::is_none")]
    pub valid: Option<bool>,
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[serde(rename = "content_type", skip_serializing_if = "Option::is_none")]
    pub content_type:
        Option<Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
    #[serde(rename = "custom_fields", skip_serializing_if = "Option::is_none")]
    pub custom_fields: Option<::std::collections::HashMap<String, serde_json::Value>>,
    #[serde(rename = "relationships", skip_serializing_if = "Option::is_none")]
    pub relationships: Option<
        ::std::collections::HashMap<
            String,
            crate::models::ApprovalWorkflowDefinitionRequestRelationshipsValue,
        >,
    >,
}

impl PatchedDataComplianceRequest {
    /// Serializer for DataCompliance.
    pub fn new() -> PatchedDataComplianceRequest {
        PatchedDataComplianceRequest {
            id: None,
            compliance_class_name: None,
            object_id: None,
            validated_object_str: None,
            validated_attribute: None,
            validated_attribute_value: None,
            valid: None,
            message: None,
            content_type: None,
            custom_fields: None,
            relationships: None,
        }
    }
}
