clientapi-pbs 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Backup Server API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TapeDriveGetVolumeStatisticsResponseData {

    /// Beginning of medium passes
    #[serde(rename = "beginning-of-medium-passes")]
    pub beginning_of_medium_passes: i64,

    /// Last load read compression ratio
    #[serde(rename = "last-load-read-compression-ratio")]
    pub last_load_read_compression_ratio: i64,

    /// Last load write compression ratio
    #[serde(rename = "last-load-write-compression-ratio")]
    pub last_load_write_compression_ratio: i64,

    /// Last mount bytes read
    #[serde(rename = "last-mount-bytes-read")]
    pub last_mount_bytes_read: i64,

    /// Last mount bytes written
    #[serde(rename = "last-mount-bytes-written")]
    pub last_mount_bytes_written: i64,

    /// Last mount unrecovered read errors
    #[serde(rename = "last-mount-unrecovered-read-errors")]
    pub last_mount_unrecovered_read_errors: i64,

    /// Last mount unrecovered write errors
    #[serde(rename = "last-mount-unrecovered-write-errors")]
    pub last_mount_unrecovered_write_errors: i64,

    /// Lifetime bytes read
    #[serde(rename = "lifetime-bytes-read")]
    pub lifetime_bytes_read: i64,

    /// Lifetime bytes written
    #[serde(rename = "lifetime-bytes-written")]
    pub lifetime_bytes_written: i64,

    /// Medium mount time
    #[serde(rename = "medium-mount-time")]
    pub medium_mount_time: i64,

    /// Medium ready time
    #[serde(rename = "medium-ready-time")]
    pub medium_ready_time: i64,

    /// Middle of medium passes
    #[serde(rename = "middle-of-tape-passes")]
    pub middle_of_tape_passes: i64,

    /// Volume serial number
    #[serde(rename = "serial")]
    pub serial: String,

    /// Total native capacity
    #[serde(rename = "total-native-capacity")]
    pub total_native_capacity: i64,

    /// Total used native capacity
    #[serde(rename = "total-used-native-capacity")]
    pub total_used_native_capacity: i64,

    /// Total datasets read
    #[serde(rename = "volume-datasets-read")]
    pub volume_datasets_read: i64,

    /// Total data sets written
    #[serde(rename = "volume-datasets-written")]
    pub volume_datasets_written: i64,

    /// Volume mounts (thread count)
    #[serde(rename = "volume-mounts")]
    pub volume_mounts: i64,

    /// Total read retries
    #[serde(rename = "volume-recovered-read-errors")]
    pub volume_recovered_read_errors: i64,

    /// Write retries
    #[serde(rename = "volume-recovered-write-data-errors")]
    pub volume_recovered_write_data_errors: i64,

    /// Total unrecovered read errors
    #[serde(rename = "volume-unrecovered-read-errors")]
    pub volume_unrecovered_read_errors: i64,

    /// Total unrecovered write errors
    #[serde(rename = "volume-unrecovered-write-data-errors")]
    pub volume_unrecovered_write_data_errors: i64,

    /// Total fatal suspended writes
    #[serde(rename = "volume-unrecovered-write-servo-errors")]
    pub volume_unrecovered_write_servo_errors: i64,

    /// Total suspended writes
    #[serde(rename = "volume-write-servo-errors")]
    pub volume_write_servo_errors: i64,

    /// Volume is WORM
    #[serde(rename = "worm")]
    pub worm: bool,

    /// Write protect
    #[serde(rename = "write-protect")]
    pub write_protect: bool,


}

impl TapeDriveGetVolumeStatisticsResponseData {
    pub fn new(beginning_of_medium_passes: i64, last_load_read_compression_ratio: i64, last_load_write_compression_ratio: i64, last_mount_bytes_read: i64, last_mount_bytes_written: i64, last_mount_unrecovered_read_errors: i64, last_mount_unrecovered_write_errors: i64, lifetime_bytes_read: i64, lifetime_bytes_written: i64, medium_mount_time: i64, medium_ready_time: i64, middle_of_tape_passes: i64, serial: String, total_native_capacity: i64, total_used_native_capacity: i64, volume_datasets_read: i64, volume_datasets_written: i64, volume_mounts: i64, volume_recovered_read_errors: i64, volume_recovered_write_data_errors: i64, volume_unrecovered_read_errors: i64, volume_unrecovered_write_data_errors: i64, volume_unrecovered_write_servo_errors: i64, volume_write_servo_errors: i64, worm: bool, write_protect: bool) -> TapeDriveGetVolumeStatisticsResponseData {
        TapeDriveGetVolumeStatisticsResponseData {
            
            beginning_of_medium_passes,
            
            last_load_read_compression_ratio,
            
            last_load_write_compression_ratio,
            
            last_mount_bytes_read,
            
            last_mount_bytes_written,
            
            last_mount_unrecovered_read_errors,
            
            last_mount_unrecovered_write_errors,
            
            lifetime_bytes_read,
            
            lifetime_bytes_written,
            
            medium_mount_time,
            
            medium_ready_time,
            
            middle_of_tape_passes,
            
            serial,
            
            total_native_capacity,
            
            total_used_native_capacity,
            
            volume_datasets_read,
            
            volume_datasets_written,
            
            volume_mounts,
            
            volume_recovered_read_errors,
            
            volume_recovered_write_data_errors,
            
            volume_unrecovered_read_errors,
            
            volume_unrecovered_write_data_errors,
            
            volume_unrecovered_write_servo_errors,
            
            volume_write_servo_errors,
            
            worm,
            
            write_protect,
            
        }
    }
}