{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-mysql/json-schema/microsoft-azure-mysql-server-restart-parameter-schema.json",
  "title": "ServerRestartParameter",
  "description": "Server restart parameters.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-mysql-servers-api-openapi.yml#/components/schemas/ServerRestartParameter",
  "type": "object",
  "properties": {
    "restartWithFailover": {
      "$ref": "#/$defs/EnableStatusEnum",
      "description": "Whether or not failover to standby server when restarting a server with high availability enabled."
    },
    "maxFailoverSeconds": {
      "type": "integer",
      "format": "int32",
      "description": "The maximum allowed failover time in seconds."
    }
  },
  "$defs": {
    "EnableStatusEnum": {
      "type": "string",
      "description": "Enum to indicate whether value is 'Enabled' or 'Disabled'",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "EnableStatusEnum",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    }
  }
}