/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * 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 LargeFileStorage {
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<Type>,
    #[serde(rename = "s3_resource_path", skip_serializing_if = "Option::is_none")]
    pub s3_resource_path: Option<String>,
    #[serde(rename = "azure_blob_resource_path", skip_serializing_if = "Option::is_none")]
    pub azure_blob_resource_path: Option<String>,
    #[serde(rename = "gcs_resource_path", skip_serializing_if = "Option::is_none")]
    pub gcs_resource_path: Option<String>,
    #[serde(rename = "public_resource", skip_serializing_if = "Option::is_none")]
    pub public_resource: Option<bool>,
    #[serde(rename = "advanced_permissions", skip_serializing_if = "Option::is_none")]
    pub advanced_permissions: Option<Vec<models::S3PermissionRule>>,
    #[serde(rename = "secondary_storage", skip_serializing_if = "Option::is_none")]
    pub secondary_storage: Option<std::collections::HashMap<String, models::LargeFileStorageSecondaryStorageValue>>,
}

impl LargeFileStorage {
    pub fn new() -> LargeFileStorage {
        LargeFileStorage {
            r#type: None,
            s3_resource_path: None,
            azure_blob_resource_path: None,
            gcs_resource_path: None,
            public_resource: None,
            advanced_permissions: None,
            secondary_storage: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "S3Storage")]
    S3Storage,
    #[serde(rename = "AzureBlobStorage")]
    AzureBlobStorage,
    #[serde(rename = "AzureWorkloadIdentity")]
    AzureWorkloadIdentity,
    #[serde(rename = "S3AwsOidc")]
    S3AwsOidc,
    #[serde(rename = "GoogleCloudStorage")]
    GoogleCloudStorage,
}

impl Default for Type {
    fn default() -> Type {
        Self::S3Storage
    }
}

