{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-job-schema.json",
  "title": "Job",
  "description": "A job.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-jobs-api-openapi.yml#/components/schemas/Job",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/JobProperties",
      "description": "Resource properties.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "JobProperties": {
      "type": "object",
      "description": "Properties of a job.",
      "properties": {
        "description": {
          "type": "string",
          "description": "User-defined description of the job.",
          "default": ""
        },
        "version": {
          "type": "integer",
          "format": "int32",
          "description": "The job version number.",
          "readOnly": true
        },
        "schedule": {
          "$ref": "#/$defs/JobSchedule",
          "description": "Schedule properties of the job."
        }
      }
    },
    "JobSchedule": {
      "type": "object",
      "description": "Scheduling properties of a job.",
      "properties": {
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Schedule start time.",
          "default": "0001-01-01T16:00:00-08:00"
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "Schedule end time.",
          "default": "9999-12-31T03:59:59-08:00"
        },
        "type": {
          "type": "string",
          "description": "Schedule interval type",
          "default": "Once",
          "enum": [
            "Once",
            "Recurring"
          ],
          "x-ms-enum": {
            "name": "JobScheduleType",
            "modelAsString": false,
            "values": [
              {
                "name": "Once",
                "value": "Once",
                "description": "Once"
              },
              {
                "name": "Recurring",
                "value": "Recurring",
                "description": "Recurring"
              }
            ]
          }
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether or not the schedule is enabled."
        },
        "interval": {
          "type": "string",
          "description": "Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format."
        }
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    }
  }
}