/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListableRawApp {
    #[serde(rename = "workspace_id")]
    pub workspace_id: String,
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "summary")]
    pub summary: String,
    #[serde(rename = "extra_perms")]
    pub extra_perms: std::collections::HashMap<String, bool>,
    #[serde(rename = "starred", skip_serializing_if = "Option::is_none")]
    pub starred: Option<bool>,
    #[serde(rename = "version")]
    pub version: f64,
    #[serde(rename = "edited_at")]
    pub edited_at: String,
    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
    pub labels: Option<Vec<String>>,
}

impl ListableRawApp {
    pub fn new(workspace_id: String, path: String, summary: String, extra_perms: std::collections::HashMap<String, bool>, version: f64, edited_at: String) -> ListableRawApp {
        ListableRawApp {
            workspace_id,
            path,
            summary,
            extra_perms,
            starred: None,
            version,
            edited_at,
            labels: None,
        }
    }
}

