]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Add new job, fileset and media properties support
authorMarcin Haba <marcin.haba@bacula.pl>
Thu, 15 Dec 2022 12:42:38 +0000 (13:42 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Mon, 9 Jan 2023 12:34:42 +0000 (13:34 +0100)
gui/baculum/protected/API/Modules/FileSetRecord.php
gui/baculum/protected/API/Modules/VolumeRecord.php
gui/baculum/protected/API/openapi_baculum.json

index 545923458f6d048d3c50348b9d3a52d803ce2417..ec495f95e5a7446a13a988485baad05bb96734bf 100644 (file)
@@ -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);
index 459699dd0d72709ef3b5579d59faf5d3e7e915ce..13edcf983788abd7fb7c1052e0a9fccbab5d03f0 100644 (file)
@@ -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;
index e4b5401429652b8446652634a9ac88b5505c0a35..8b52ad9e091ddb63ebbdf047c42fd71968bade29 100644 (file)
                                        "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"
                                        "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"
                                "createtime": {
                                        "description": "Create date and time",
                                        "type": "string"
+                               },
+                               "content": {
+                                       "description": "Comma separated FileSet content types (file, postgresql, mysql...)",
+                                       "type": "string"
                                }
                        }
                },