Skip to main content

clientapi_pbs/models/
tape_drive_get_volume_statistics_response_data.rs

1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TapeDriveGetVolumeStatisticsResponseData {
16
17    /// Beginning of medium passes
18    #[serde(rename = "beginning-of-medium-passes")]
19    pub beginning_of_medium_passes: i64,
20
21    /// Last load read compression ratio
22    #[serde(rename = "last-load-read-compression-ratio")]
23    pub last_load_read_compression_ratio: i64,
24
25    /// Last load write compression ratio
26    #[serde(rename = "last-load-write-compression-ratio")]
27    pub last_load_write_compression_ratio: i64,
28
29    /// Last mount bytes read
30    #[serde(rename = "last-mount-bytes-read")]
31    pub last_mount_bytes_read: i64,
32
33    /// Last mount bytes written
34    #[serde(rename = "last-mount-bytes-written")]
35    pub last_mount_bytes_written: i64,
36
37    /// Last mount unrecovered read errors
38    #[serde(rename = "last-mount-unrecovered-read-errors")]
39    pub last_mount_unrecovered_read_errors: i64,
40
41    /// Last mount unrecovered write errors
42    #[serde(rename = "last-mount-unrecovered-write-errors")]
43    pub last_mount_unrecovered_write_errors: i64,
44
45    /// Lifetime bytes read
46    #[serde(rename = "lifetime-bytes-read")]
47    pub lifetime_bytes_read: i64,
48
49    /// Lifetime bytes written
50    #[serde(rename = "lifetime-bytes-written")]
51    pub lifetime_bytes_written: i64,
52
53    /// Medium mount time
54    #[serde(rename = "medium-mount-time")]
55    pub medium_mount_time: i64,
56
57    /// Medium ready time
58    #[serde(rename = "medium-ready-time")]
59    pub medium_ready_time: i64,
60
61    /// Middle of medium passes
62    #[serde(rename = "middle-of-tape-passes")]
63    pub middle_of_tape_passes: i64,
64
65    /// Volume serial number
66    #[serde(rename = "serial")]
67    pub serial: String,
68
69    /// Total native capacity
70    #[serde(rename = "total-native-capacity")]
71    pub total_native_capacity: i64,
72
73    /// Total used native capacity
74    #[serde(rename = "total-used-native-capacity")]
75    pub total_used_native_capacity: i64,
76
77    /// Total datasets read
78    #[serde(rename = "volume-datasets-read")]
79    pub volume_datasets_read: i64,
80
81    /// Total data sets written
82    #[serde(rename = "volume-datasets-written")]
83    pub volume_datasets_written: i64,
84
85    /// Volume mounts (thread count)
86    #[serde(rename = "volume-mounts")]
87    pub volume_mounts: i64,
88
89    /// Total read retries
90    #[serde(rename = "volume-recovered-read-errors")]
91    pub volume_recovered_read_errors: i64,
92
93    /// Write retries
94    #[serde(rename = "volume-recovered-write-data-errors")]
95    pub volume_recovered_write_data_errors: i64,
96
97    /// Total unrecovered read errors
98    #[serde(rename = "volume-unrecovered-read-errors")]
99    pub volume_unrecovered_read_errors: i64,
100
101    /// Total unrecovered write errors
102    #[serde(rename = "volume-unrecovered-write-data-errors")]
103    pub volume_unrecovered_write_data_errors: i64,
104
105    /// Total fatal suspended writes
106    #[serde(rename = "volume-unrecovered-write-servo-errors")]
107    pub volume_unrecovered_write_servo_errors: i64,
108
109    /// Total suspended writes
110    #[serde(rename = "volume-write-servo-errors")]
111    pub volume_write_servo_errors: i64,
112
113    /// Volume is WORM
114    #[serde(rename = "worm")]
115    pub worm: bool,
116
117    /// Write protect
118    #[serde(rename = "write-protect")]
119    pub write_protect: bool,
120
121
122}
123
124impl TapeDriveGetVolumeStatisticsResponseData {
125    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 {
126        TapeDriveGetVolumeStatisticsResponseData {
127            
128            beginning_of_medium_passes,
129            
130            last_load_read_compression_ratio,
131            
132            last_load_write_compression_ratio,
133            
134            last_mount_bytes_read,
135            
136            last_mount_bytes_written,
137            
138            last_mount_unrecovered_read_errors,
139            
140            last_mount_unrecovered_write_errors,
141            
142            lifetime_bytes_read,
143            
144            lifetime_bytes_written,
145            
146            medium_mount_time,
147            
148            medium_ready_time,
149            
150            middle_of_tape_passes,
151            
152            serial,
153            
154            total_native_capacity,
155            
156            total_used_native_capacity,
157            
158            volume_datasets_read,
159            
160            volume_datasets_written,
161            
162            volume_mounts,
163            
164            volume_recovered_read_errors,
165            
166            volume_recovered_write_data_errors,
167            
168            volume_unrecovered_read_errors,
169            
170            volume_unrecovered_write_data_errors,
171            
172            volume_unrecovered_write_servo_errors,
173            
174            volume_write_servo_errors,
175            
176            worm,
177            
178            write_protect,
179            
180        }
181    }
182}
183
184