/*
 * Mithril
 *
 * Mithril Compute API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LifecycleScriptModel {
    #[serde(rename = "fid")]
    pub fid: String,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "description")]
    pub description: String,
    #[serde(rename = "content_url")]
    pub content_url: String,
    #[serde(rename = "project")]
    pub project: String,
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "created_by")]
    pub created_by: String,
    #[serde(rename = "last_modified_at")]
    pub last_modified_at: String,
    #[serde(rename = "last_modified_by")]
    pub last_modified_by: String,
    #[serde(rename = "scope")]
    pub scope: models::LifecycleScriptScope,
}

impl LifecycleScriptModel {
    pub fn new(
        fid: String,
        name: String,
        description: String,
        content_url: String,
        project: String,
        created_at: String,
        created_by: String,
        last_modified_at: String,
        last_modified_by: String,
        scope: models::LifecycleScriptScope,
    ) -> LifecycleScriptModel {
        LifecycleScriptModel {
            fid,
            name,
            description,
            content_url,
            project,
            created_at,
            created_by,
            last_modified_at,
            last_modified_by,
            scope,
        }
    }
}
