From 0b9926d3fb4210e31ba2ee02960f404c569674f8 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 10 Nov 2022 13:29:01 +0100 Subject: [PATCH] update static schema info Signed-off-by: Thomas Lamprecht --- api-viewer/apidata.js | 61 ++++++++++++++++++++++++++++----- pmgbackup.1-synopsis.adoc | 12 +++++-- pmgsubscription.1-synopsis.adoc | 8 +++++ 3 files changed, 71 insertions(+), 10 deletions(-) diff --git a/api-viewer/apidata.js b/api-viewer/apidata.js index 21864db..db6899b 100644 --- a/api-viewer/apidata.js +++ b/api-viewer/apidata.js @@ -5833,9 +5833,10 @@ var apiSchema = [ "properties" : { "email" : { "description" : "Email address.", - "format" : "email", - "type" : "string", - "typetext" : "" + "maxLength" : 512, + "minLength" : 3, + "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)", + "type" : "string" }, "profile" : { "description" : "Profile ID.", @@ -8571,8 +8572,8 @@ var apiSchema = [ "datastore" : { "description" : "Proxmox Backup Server datastore name.", "optional" : 1, - "type" : "string", - "typetext" : "" + "pattern" : "(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*)", + "type" : "string" }, "delete" : { "description" : "A list of settings you want to delete.", @@ -8655,6 +8656,13 @@ var apiSchema = [ "type" : "integer", "typetext" : "" }, + "namespace" : { + "description" : "Proxmox Backup Server namespace in the datastore, defaults to the root NS.", + "maxLength" : 256, + "optional" : 1, + "pattern" : "(?:(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*)/){0,7}(?:(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*))?", + "type" : "string" + }, "notify" : { "description" : "Specify when to notify via e-mail", "enum" : [ @@ -8737,6 +8745,7 @@ var apiSchema = [ "datastore" : { "description" : "Proxmox Backup Server datastore name.", "optional" : 0, + "pattern" : "(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*)", "type" : "string" }, "disable" : { @@ -8797,6 +8806,13 @@ var apiSchema = [ "optional" : 1, "type" : "integer" }, + "namespace" : { + "description" : "Proxmox Backup Server namespace in the datastore, defaults to the root NS.", + "maxLength" : 256, + "optional" : 1, + "pattern" : "(?:(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*)/){0,7}(?:(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*))?", + "type" : "string" + }, "notify" : { "description" : "Specify when to notify via e-mail", "enum" : [ @@ -8855,8 +8871,8 @@ var apiSchema = [ "datastore" : { "description" : "Proxmox Backup Server datastore name.", "optional" : 0, - "type" : "string", - "typetext" : "" + "pattern" : "(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*)", + "type" : "string" }, "disable" : { "description" : "Flag to disable (deactivate) the entry.", @@ -8924,6 +8940,13 @@ var apiSchema = [ "type" : "integer", "typetext" : "" }, + "namespace" : { + "description" : "Proxmox Backup Server namespace in the datastore, defaults to the root NS.", + "maxLength" : 256, + "optional" : 1, + "pattern" : "(?:(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*)/){0,7}(?:(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*))?", + "type" : "string" + }, "notify" : { "description" : "Specify when to notify via e-mail", "enum" : [ @@ -9869,6 +9892,12 @@ var apiSchema = [ "returns" : { "optional" : 1, "properties" : { + "allow-subdomains" : { + "default" : 1, + "description" : "Whether to allow the origin to be a subdomain, rather than the exact URL.", + "optional" : 1, + "type" : "boolean" + }, "id" : { "description" : "Relying part ID. Must be the domain name without protocol, port or location.\nChanging this *will* break existing credentials.", "optional" : 1, @@ -9896,11 +9925,19 @@ var apiSchema = [ "parameters" : { "additionalProperties" : 0, "properties" : { + "allow-subdomains" : { + "default" : 1, + "description" : "Whether to allow the origin to be a subdomain, rather than the exact URL.", + "optional" : 1, + "type" : "boolean", + "typetext" : "" + }, "delete" : { "description" : "A list of settings you want to delete.", "enum" : [ - "origin", "id", + "origin", + "allow-subdomains", "rp" ], "optional" : 1, @@ -14897,6 +14934,7 @@ var apiSchema = [ "datastore" : { "description" : "Proxmox Backup Server datastore name.", "optional" : 0, + "pattern" : "(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*)", "type" : "string" }, "disable" : { @@ -14957,6 +14995,13 @@ var apiSchema = [ "optional" : 1, "type" : "integer" }, + "namespace" : { + "description" : "Proxmox Backup Server namespace in the datastore, defaults to the root NS.", + "maxLength" : 256, + "optional" : 1, + "pattern" : "(?:(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*)/){0,7}(?:(?:[A-Za-z0-9_][A-Za-z0-9._\\-]*))?", + "type" : "string" + }, "notify" : { "description" : "Specify when to notify via e-mail", "enum" : [ diff --git a/pmgbackup.1-synopsis.adoc b/pmgbackup.1-synopsis.adoc index c90d666..a004995 100644 --- a/pmgbackup.1-synopsis.adoc +++ b/pmgbackup.1-synopsis.adoc @@ -108,7 +108,7 @@ Add Proxmox Backup Server remote instance. Proxmox Backup Server ID. -`--datastore` `` :: +`--datastore` `(?:[A-Za-z0-9_][A-Za-z0-9._\-]*)` :: Proxmox Backup Server datastore name. @@ -148,6 +148,10 @@ Keep backups for the last different weeks. If there ismore than one backup f Keep backups for the last different years. If there is more than one backup for a single year, only the latest one is kept. +`--namespace` `(?:(?:[A-Za-z0-9_][A-Za-z0-9._\-]*)/){0,7}(?:(?:[A-Za-z0-9_][A-Za-z0-9._\-]*))?` :: + +Proxmox Backup Server namespace in the datastore, defaults to the root NS. + `--notify` `` :: Specify when to notify via e-mail @@ -184,7 +188,7 @@ Update PBS remote settings. Proxmox Backup Server ID. -`--datastore` `` :: +`--datastore` `(?:[A-Za-z0-9_][A-Za-z0-9._\-]*)` :: Proxmox Backup Server datastore name. @@ -232,6 +236,10 @@ Keep backups for the last different weeks. If there ismore than one backup f Keep backups for the last different years. If there is more than one backup for a single year, only the latest one is kept. +`--namespace` `(?:(?:[A-Za-z0-9_][A-Za-z0-9._\-]*)/){0,7}(?:(?:[A-Za-z0-9_][A-Za-z0-9._\-]*))?` :: + +Proxmox Backup Server namespace in the datastore, defaults to the root NS. + `--notify` `` :: Specify when to notify via e-mail diff --git a/pmgsubscription.1-synopsis.adoc b/pmgsubscription.1-synopsis.adoc index a78c5ff..ba84134 100644 --- a/pmgsubscription.1-synopsis.adoc +++ b/pmgsubscription.1-synopsis.adoc @@ -28,6 +28,14 @@ Set subscription key. Proxmox Mail Gateway subscription key +*pmgsubscription set-offline-key* `` + +(Internal use only!) Set a signed subscription info blob as offline key + +``: `` :: + +no description available + *pmgsubscription update* `[OPTIONS]` Update subscription info.