proxmox_api/generated/nodes/node/vzdump/
extractconfig.rs1pub struct ExtractconfigClient<T> {
2 client: T,
3 path: String,
4}
5impl<T> ExtractconfigClient<T>
6where
7 T: crate::client::Client,
8{
9 pub fn new(client: T, parent_path: &str) -> Self {
10 Self {
11 client,
12 path: format!("{}{}", parent_path, "/extractconfig"),
13 }
14 }
15}
16impl<T> ExtractconfigClient<T>
17where
18 T: crate::client::Client,
19{
20 #[doc = "Extract configuration from vzdump backup archive."]
21 pub fn get(&self, params: GetParams) -> Result<String, T::Error> {
22 let path = self.path.to_string();
23 self.client.get(&path, ¶ms)
24 }
25}
26impl GetParams {
27 pub fn new(volume: String) -> Self {
28 Self {
29 volume,
30 additional_properties: Default::default(),
31 }
32 }
33}
34#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
35pub struct GetParams {
36 #[doc = "Volume identifier"]
37 pub volume: String,
38 #[serde(
39 flatten,
40 default,
41 skip_serializing_if = "::std::collections::HashMap::is_empty"
42 )]
43 pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
44}