Skip to main content

clientapi_pbs/models/
access_create_vncticket_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 AccessCreateVncticketRequest {
16
17    /// Authentication ID
18    #[serde(rename = "authid")]
19    pub authid: String,
20
21    /// Verify ticket, and check if user have access 'privs' on 'path'.
22    #[serde(rename = "path")]
23    pub path: String,
24
25    /// Port for verifying terminal tickets.
26    #[serde(rename = "port", skip_serializing_if = "Option::is_none")]
27    pub port: Option<i32>,
28
29    /// Verify ticket, and check if user have access 'privs' on 'path'.
30    #[serde(rename = "privs")]
31    pub privs: String,
32
33    /// The VNC ticket
34    #[serde(rename = "vncticket")]
35    pub vncticket: String,
36
37
38}
39
40impl AccessCreateVncticketRequest {
41    pub fn new(authid: String, path: String, privs: String, vncticket: String) -> AccessCreateVncticketRequest {
42        AccessCreateVncticketRequest {
43            
44            authid,
45            
46            path,
47            
48            port: None,
49            
50            privs,
51            
52            vncticket,
53            
54        }
55    }
56}
57
58