From: Marcin Haba Date: Thu, 15 Dec 2022 12:42:38 +0000 (+0100) Subject: baculum: Add new job, fileset and media properties support X-Git-Tag: Release-13.0.2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bbdf9cac42959139b431d90493c11b7d565d252;p=thirdparty%2Fbacula.git baculum: Add new job, fileset and media properties support --- diff --git a/gui/baculum/protected/API/Modules/FileSetRecord.php b/gui/baculum/protected/API/Modules/FileSetRecord.php index 545923458..ec495f95e 100644 --- a/gui/baculum/protected/API/Modules/FileSetRecord.php +++ b/gui/baculum/protected/API/Modules/FileSetRecord.php @@ -37,6 +37,7 @@ class FileSetRecord extends APIDbModule { public $fileset; public $md5; public $createtime; + public $content; public static function finder($className = __CLASS__) { return parent::finder($className); diff --git a/gui/baculum/protected/API/Modules/VolumeRecord.php b/gui/baculum/protected/API/Modules/VolumeRecord.php index 459699dd0..13edcf983 100644 --- a/gui/baculum/protected/API/Modules/VolumeRecord.php +++ b/gui/baculum/protected/API/Modules/VolumeRecord.php @@ -83,6 +83,9 @@ class VolumeRecord extends APIDbModule { public $volcloudparts; public $lastpartbytes; public $cacheretention; + public $protected; + public $useprotect; + public $volencrypted; // Additional values (not from Media table) public $storage; diff --git a/gui/baculum/protected/API/openapi_baculum.json b/gui/baculum/protected/API/openapi_baculum.json index e4b540142..8b52ad9e0 100644 --- a/gui/baculum/protected/API/openapi_baculum.json +++ b/gui/baculum/protected/API/openapi_baculum.json @@ -7932,6 +7932,51 @@ "description": "File table", "type": "string" }, + "priorjob": { + "description": "Original copied job", + "type": "string" + }, + "realstarttime": { + + "description": "Real start time (YYYY-MM-DD HH:M:SS)", + "type": "string" + }, + "isvirtualfull": { + "description": "Is virtual full job (0 or 1)", + "type": "integer" + }, + "compressratio": { + "description": "Software compression ratio", + "type": "string" + }, + "rate": { + "description": "Job average speed", + "type": "string" + }, + "lastreadstorageid": { + "description": "Last read storage identifier", + "type": "integer" + }, + "lastreaddevice": { + "description": "Last read device name", + "type": "string" + }, + "writestorageid": { + "description": "Write storage storage identifier", + "type": "integer" + }, + "writedevice": { + "description": "Write device name", + "type": "string" + }, + "statusinfo": { + "description": "Status information", + "type": "string" + }, + "encrypted": { + "description": "Encrypted job state (0 or 1)", + "type": "integer" + }, "client": { "description": "Client name", "type": "string" @@ -8313,6 +8358,18 @@ "description": "Cache retention time", "type": "integer" }, + "protected": { + "description": "Protected state. 1 if the volume is currently protected (read-only, immutable, ...), otherwise 0", + "type": "integer" + }, + "useprotect": { + "description": "Use protect state. 1 if the last device can handle volume protection (read-only, immutable, ...), otherwise 0", + "type": "integer" + }, + "volencrypted": { + "description": "Encrypted volume state. 1 if the volume is encrypted using SD encryption, otherwise 0", + "type": "integer" + }, "storage": { "description": "Storage name", "type": "string" @@ -8355,6 +8412,10 @@ "createtime": { "description": "Create date and time", "type": "string" + }, + "content": { + "description": "Comma separated FileSet content types (file, postgresql, mysql...)", + "type": "string" } } },