]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Add API endpoint to set client bandwidth limit
authorMarcin Haba <marcin.haba@bacula.pl>
Thu, 15 Aug 2019 08:13:13 +0000 (10:13 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 14 Dec 2019 14:55:58 +0000 (15:55 +0100)
gui/baculum/protected/API/Class/Bconsole.php
gui/baculum/protected/API/Pages/API/ClientBandwidthLimit.php [new file with mode: 0644]
gui/baculum/protected/API/Pages/API/endpoints.xml
gui/baculum/protected/API/openapi_baculum.json

index ad698d704b59b47bd37947d370e107cd92a027a1..b6bd0596e62f6e011d5943241182b4919cfebcab 100644 (file)
@@ -86,7 +86,8 @@ class Bconsole extends APIModule {
                '.schedule',
                '.api',
                '.status',
-               '.ls'
+               '.ls',
+               'setbandwidth'
        );
 
        private $config;
diff --git a/gui/baculum/protected/API/Pages/API/ClientBandwidthLimit.php b/gui/baculum/protected/API/Pages/API/ClientBandwidthLimit.php
new file mode 100644 (file)
index 0000000..797dec4
--- /dev/null
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Bacula(R) - The Network Backup Solution
+ * Baculum   - Bacula web interface
+ *
+ * Copyright (C) 2013-2019 Kern Sibbald
+ *
+ * The main author of Baculum is Marcin Haba.
+ * The original author of Bacula is Kern Sibbald, with contributions
+ * from many others, a complete list can be found in the file AUTHORS.
+ *
+ * You may use this file and others of this release according to the
+ * license defined in the LICENSE file, which includes the Affero General
+ * Public License, v3.0 ("AGPLv3") and some additional permissions and
+ * terms pursuant to its AGPLv3 Section 7.
+ *
+ * This notice must be preserved when any source code is
+ * conveyed and/or propagated.
+ *
+ * Bacula(R) is a registered trademark of Kern Sibbald.
+ */
+
+class ClientBandwidthLimit extends BaculumAPIServer {
+
+       public function set($id, $params) {
+               $cli = null;
+               if ($id > 0) {
+                       $cli = $this->getModule('client')->getClientById($id);
+               }
+
+               $client = null;
+               $result = $this->getModule('bconsole')->bconsoleCommand($this->director, array('.client'));
+               if ($result->exitcode === 0) {
+                       array_shift($result->output);
+                       if(is_object($cli) && in_array($cli->name, $result->output)) {
+                               $client = $cli->name;
+                       }
+               }
+               if (is_null($client)) {
+                       $this->output = ClientError::MSG_ERROR_CLIENT_DOES_NOT_EXISTS;
+                       $this->error = ClientError::ERROR_CLIENT_DOES_NOT_EXISTS;
+                       return;
+               }
+
+               $limit = property_exists($params, 'limit') && $this->getModule('misc')->isValidInteger($params->limit) ? $params->limit : 0;
+
+               $cmd = array('setbandwidth', 'client="' . $client . '"', 'limit="' . $limit . '"');
+               $result = $this->getModule('bconsole')->bconsoleCommand($this->director, $cmd);
+               $this->output = $result->output;
+               if ($result->exitcode === 0) {
+                       $this->error = GenericError::ERROR_NO_ERRORS;
+               } else {
+                       $this->error = $result->exitcode;
+               }
+       }
+}
+?>
index dd8109ba94d11897d1c30ff74850f6ffb2314598..426f066efa073b65afad458db0ddda8a7abc51e6 100644 (file)
@@ -23,6 +23,7 @@
        <url ServiceParameter="ClientStatus" pattern="api/v1/clients/{id}/status/" parameters.id="\d+" />
        <url ServiceParameter="JobsForClient" pattern="api/v1/clients/{id}/jobs/" parameters.id="\d+" />
        <url ServiceParameter="ClientLs" pattern="api/v1/clients/{id}/ls/" parameters.id="\d+" />
+       <url ServiceParameter="ClientBandwidthLimit" pattern="api/v1/clients/{id}/bandwidth/" parameters.id="\d+" />
        <!-- storages (storage daemons) endpoints -->
        <url ServiceParameter="Storages" pattern="api/v1/storages/" />
        <url ServiceParameter="Storage" pattern="api/v1/storages/{id}/" parameters.id="\d+" />
index ce467e9d5693f2b838f190e9050e1ac0b58e8a79..2a9ff4e2f3cfa6a3e0c31f49da6b29ad66e72780 100644 (file)
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                ]
                        }
                },
+               "/api/v1/clients/{clientid}/bandwidth": {
+                       "put": {
+                               "tags": ["clients"],
+                               "summary": "Set Client bandwidth limit",
+                               "description": "Set Client bandwidth limit in bytesh",
+                               "responses": {
+                                       "200": {
+                                               "description": "Set bandwidth limit output",
+                                               "content": {
+                                                       "application/json": {
+                                                               "schema": {
+                                                                       "type": "object",
+                                                                       "properties": {
+                                                                               "output": {
+                                                                                       "type": "array",
+                                                                                       "items": {
+                                                                                               "type": "string",
+                                                                                               "description": "Bandwidth limit setting output"
+                                                                                       }
+                                                                               },
+                                                                               "error": {
+                                                                                       "type": "integer",
+                                                                                       "description": "Error code",
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 1000]
+                                                                               }
+                                                                       }
+                                                               }
+                                                       }
+                                               }
+                                       }
+                               },
+                               "parameters": [
+                                       {
+                                               "$ref": "#/components/parameters/ClientId"
+                                       },
+                                       {
+                                               "name": "limit",
+                                               "in": "body",
+                                               "required": false,
+                                               "default": 0,
+                                               "description": "Bandwidth limit in bytes",
+                                               "schema": {
+                                                       "type": "integer"
+                                               }
+                                       }
+                               ]
+                       }
+               },
                "/api/v1/clients/show": {
                        "get": {
                                "tags": ["clients"],
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 53, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 53, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 50, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 50, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 50, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 50, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 4, 5, 6, 7, 50, 1000]
+                                                                                       "enum": [0, 1, 4, 5, 6, 7, 11, 50, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 50, 52, 53, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 50, 52, 53, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 50, 51, 52, 53, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 50, 51, 52, 53, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 50, 51, 52, 53, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 50, 51, 52, 53, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 56, 57, 58, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 56, 57, 58, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 20, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 20, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 20, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 20, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 20, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 20, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 20, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 20, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 20, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 20, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 40, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 40, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 40, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 40, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 40, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 40, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 40, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 40, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 40, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 40, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 40, 41, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 40, 41, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 30, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 30, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 30, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 30, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 30, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 30, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 30, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 30, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 30, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 30, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 60, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 60, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 60, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 60, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 73, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 73, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 72, 73, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 72, 73, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 72, 73, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 72, 73, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 77, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 77, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 78, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 78, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 71, 73, 74, 75, 76, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 71, 73, 74, 75, 76, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 80, 81, 82, 83, 84, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 80, 81, 82, 83, 84, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 80, 81, 82, 83, 84, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 80, 81, 82, 83, 84, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 80, 81, 82, 83, 84, 90, 91, 92, 93, 94, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 80, 81, 82, 83, 84, 90, 91, 92, 93, 94, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 80, 81, 82, 83, 84, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 80, 81, 82, 83, 84, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 80, 81, 82, 83, 84, 90, 91, 92, 93, 94, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 80, 81, 82, 83, 84, 90, 91, 92, 93, 94, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 80, 81, 82, 83, 84, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 80, 81, 82, 83, 84, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 80, 81, 82, 83, 84, 90, 91, 92, 93, 94, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 80, 81, 82, 83, 84, 90, 91, 92, 93, 94, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 50, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 50, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }
                                                                                "error": {
                                                                                        "type": "integer",
                                                                                        "description": "Error code",
-                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 1000]
+                                                                                       "enum": [0, 1, 2, 3, 4, 5, 6, 7, 11, 1000]
                                                                                }
                                                                        }
                                                                }