{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "update_ppp_secret",
  "type": "object",
  "properties": {
    "unset": {
      "description": "Properties to UNSET (RouterOS `!prop`), so they no longer apply — e.g. ['dst-address'] removes the destination-address match. snake_case or kebab-case. Not for setting a value.",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z][a-z0-9_-]*$"
      }
    },
    "name": {
      "type": "string",
      "description": "Current username of the secret to update"
    },
    "new_name": {
      "type": "string"
    },
    "password": {
      "type": "string"
    },
    "service": {
      "type": "string",
      "enum": ["any", "l2tp", "pptp", "sstp", "ovpn", "pppoe"]
    },
    "profile": {
      "type": "string"
    },
    "local_address": {
      "type": "string"
    },
    "remote_address": {
      "type": "string"
    },
    "routes": {
      "description": "Routes added while this client is connected",
      "type": "string"
    },
    "caller_id": {
      "type": "string"
    },
    "limit_bytes_in": {
      "description": "Max bytes the client may upload",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "limit_bytes_out": {
      "description": "Max bytes the client may download",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "comment": {
      "type": "string"
    },
    "disabled": {
      "type": "boolean"
    }
  },
  "required": ["name"],
  "additionalProperties": false
}
