/*
 * Tapis Workflows API
 *
 * Create and manage pipelines
 *
 * The version of the OpenAPI document: 1.6.0
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum DataIntegrityProfile {
    #[serde(rename = "checksum")]
    Checksum(Box<models::ChecksumDataIntegrityProfile>),
    #[serde(rename = "done_file")]
    DoneFile(Box<models::DoneFileDataIntegrityProfile>),
    #[serde(rename = "byte_check")]
    ByteCheck(Box<models::ByteCheckDataIntegrityProfile>),
}

impl Default for DataIntegrityProfile {
    fn default() -> Self {
        Self::Checksum(Default::default())
    }
}
