Skip to main content

clientapi_pbs/models/
config_changer_create_changer_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 ConfigChangerCreateChangerRequest {
16
17    /// if set to true, tapes are ejected manually before unloading
18    #[serde(rename = "eject-before-unload", skip_serializing_if = "Option::is_none")]
19    pub eject_before_unload: Option<bool>,
20
21    /// A list of slot numbers, comma separated. Those slots are reserved for Import/Export, i.e. any media in those slots are considered to be 'offline'. 
22    #[serde(rename = "export-slots", skip_serializing_if = "Option::is_none")]
23    pub export_slots: Option<Box<models::PbsExportSlotsField>>,
24
25    /// Tape Changer Identifier.
26    #[serde(rename = "name")]
27    pub name: String,
28
29    /// Path to Linux generic SCSI device (e.g. '/dev/sg4')
30    #[serde(rename = "path")]
31    pub path: String,
32
33
34}
35
36impl ConfigChangerCreateChangerRequest {
37    pub fn new(name: String, path: String) -> ConfigChangerCreateChangerRequest {
38        ConfigChangerCreateChangerRequest {
39            
40            eject_before_unload: None,
41            
42            export_slots: None,
43            
44            name,
45            
46            path,
47            
48        }
49    }
50}
51
52