Skip to main content

clientapi_pbs/models/
backup_upgrade_update_dynamic_index_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 BackupUpgradeUpdateDynamicIndexRequest {
16
17    /// Chunk digest list.
18    #[serde(rename = "digest-list")]
19    pub digest_list: Vec<String>,
20
21    /// Chunk offset list.
22    #[serde(rename = "offset-list")]
23    pub offset_list: Vec<i64>,
24
25    /// Dynamic writer ID.
26    #[serde(rename = "wid")]
27    pub wid: i32,
28
29
30}
31
32impl BackupUpgradeUpdateDynamicIndexRequest {
33    pub fn new(digest_list: Vec<String>, offset_list: Vec<i64>, wid: i32) -> BackupUpgradeUpdateDynamicIndexRequest {
34        BackupUpgradeUpdateDynamicIndexRequest {
35            
36            digest_list,
37            
38            offset_list,
39            
40            wid,
41            
42        }
43    }
44}
45
46