clientapi_pbs/models/config_access_update_webauthn_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 ConfigAccessUpdateWebauthnRequest {
16
17 /// If an `origin` is specified, this specifies whether subdomains should be considered valid as well. May be changed at any time. Defaults to `true`.
18 #[serde(rename = "allow-subdomains", skip_serializing_if = "Option::is_none")]
19 pub allow_subdomains: Option<bool>,
20
21 /// List of properties to delete.
22 #[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
23 pub delete: Option<Vec<models::PbsConfigAccessInlineEnum2>>,
24
25 /// Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.
26 #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
27 pub digest: Option<String>,
28
29 /// Relying party ID. Must be the domain name without protocol, port or location. Changing this *will* break existing credentials.
30 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
31 pub id: Option<String>,
32
33 /// Site origin. Must be a `https://` URL (or `http://localhost`). Should contain the address users type in their browsers to access the web interface. Changing this *may* break existing credentials.
34 #[serde(rename = "origin", skip_serializing_if = "Option::is_none")]
35 pub origin: Option<String>,
36
37 /// Relying party name. Any text identifier. Changing this *may* break existing credentials.
38 #[serde(rename = "rp", skip_serializing_if = "Option::is_none")]
39 pub rp: Option<String>,
40
41
42}
43
44impl ConfigAccessUpdateWebauthnRequest {
45 pub fn new() -> ConfigAccessUpdateWebauthnRequest {
46 ConfigAccessUpdateWebauthnRequest {
47
48 allow_subdomains: None,
49
50 delete: None,
51
52 digest: None,
53
54 id: None,
55
56 origin: None,
57
58 rp: None,
59
60 }
61 }
62}
63
64