openapi-azure-storage-blob 0.1.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Azure Storage Blob service
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2026-02-06
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// BlobItemInternal : An Azure Storage Blob
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BlobItemInternal {
    #[serde(rename = "Name")]
    pub name: Box<models::BlobName>,
    /// Whether the blob is deleted.
    #[serde(rename = "Deleted")]
    pub deleted: bool,
    /// The snapshot of the blob.
    #[serde(rename = "Snapshot")]
    pub snapshot: String,
    /// The version id of the blob.
    #[serde(rename = "VersionId", skip_serializing_if = "Option::is_none")]
    pub version_id: Option<String>,
    /// Whether the blob is the current version.
    #[serde(rename = "IsCurrentVersion", skip_serializing_if = "Option::is_none")]
    pub is_current_version: Option<bool>,
    #[serde(rename = "Properties")]
    pub properties: Box<models::BlobPropertiesInternal>,
    #[serde(rename = "Metadata", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<models::BlobMetadata>,
    #[serde(rename = "BlobTags", skip_serializing_if = "Option::is_none")]
    pub blob_tags: Option<Box<models::BlobTags>>,
    /// The object replication metadata.
    #[serde(
        rename = "ObjectReplicationMetadata",
        skip_serializing_if = "Option::is_none"
    )]
    pub object_replication_metadata: Option<std::collections::HashMap<String, String>>,
    /// Whether the blog has versions only.
    #[serde(rename = "HasVersionsOnly", skip_serializing_if = "Option::is_none")]
    pub has_versions_only: Option<bool>,
}

impl BlobItemInternal {
    /// An Azure Storage Blob
    pub fn new(
        name: models::BlobName,
        deleted: bool,
        snapshot: String,
        properties: models::BlobPropertiesInternal,
    ) -> BlobItemInternal {
        BlobItemInternal {
            name: Box::new(name),
            deleted,
            snapshot,
            version_id: None,
            is_current_version: None,
            properties: Box::new(properties),
            metadata: None,
            blob_tags: None,
            object_replication_metadata: None,
            has_versions_only: None,
        }
    }
}