Skip to main content

clientapi_pbs/models/
tape_drive_create_catalog_request.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 TapeDriveCreateCatalogRequest {
16
17    /// Force overriding existing index.
18    #[serde(rename = "force", skip_serializing_if = "Option::is_none")]
19    pub force: Option<bool>,
20
21    /// Re-read the whole tape to reconstruct the catalog instead of restoring saved versions.
22    #[serde(rename = "scan", skip_serializing_if = "Option::is_none")]
23    pub scan: Option<bool>,
24
25    /// Verbose mode - log all found chunks.
26    #[serde(rename = "verbose", skip_serializing_if = "Option::is_none")]
27    pub verbose: Option<bool>,
28
29
30}
31
32impl TapeDriveCreateCatalogRequest {
33    pub fn new() -> TapeDriveCreateCatalogRequest {
34        TapeDriveCreateCatalogRequest {
35            
36            force: None,
37            
38            scan: None,
39            
40            verbose: None,
41            
42        }
43    }
44}
45
46