{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-container-engine/json-schema/oracle-container-engine-work-request-schema.json",
  "title": "WorkRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-container-engine-work-requests-api-openapi.yml#/components/schemas/WorkRequest",
  "$ref": "#/$defs/WorkRequestSummary",
  "$defs": {
    "WorkRequestSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "operationType": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ACCEPTED",
            "IN_PROGRESS",
            "FAILED",
            "SUCCEEDED",
            "CANCELING",
            "CANCELED"
          ]
        },
        "compartmentId": {
          "type": "string"
        },
        "resources": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "actionType": {
                "type": "string"
              },
              "entityType": {
                "type": "string"
              },
              "identifier": {
                "type": "string"
              }
            }
          }
        },
        "timeAccepted": {
          "type": "string",
          "format": "date-time"
        },
        "timeStarted": {
          "type": "string",
          "format": "date-time"
        },
        "timeFinished": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}