/*
 * Tapis Security API
 *
 * The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
 *
 * The version of the OpenAPI document: 1.8.2
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReqPreviewPathPrefix {
    #[serde(rename = "tenant")]
    pub tenant: String,
    #[serde(rename = "schema")]
    pub schema: String,
    #[serde(rename = "roleType", skip_serializing_if = "Option::is_none")]
    pub role_type: Option<models::RoleTypeEnum>,
    #[serde(rename = "roleName", skip_serializing_if = "Option::is_none")]
    pub role_name: Option<String>,
    #[serde(rename = "oldSystemId")]
    pub old_system_id: String,
    #[serde(rename = "newSystemId")]
    pub new_system_id: String,
    #[serde(rename = "oldPrefix", skip_serializing_if = "Option::is_none")]
    pub old_prefix: Option<String>,
    #[serde(rename = "newPrefix", skip_serializing_if = "Option::is_none")]
    pub new_prefix: Option<String>,
}

impl ReqPreviewPathPrefix {
    pub fn new(
        tenant: String,
        schema: String,
        old_system_id: String,
        new_system_id: String,
    ) -> ReqPreviewPathPrefix {
        ReqPreviewPathPrefix {
            tenant,
            schema,
            role_type: None,
            role_name: None,
            old_system_id,
            new_system_id,
            old_prefix: None,
            new_prefix: None,
        }
    }
}
