{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "imunify.database_restore.v1.Counts": {
      "additionalProperties": false,
      "properties": {
        "failed_hits": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "succeeded_hits": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "unconfirmed_hits": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "failed_hits",
        "succeeded_hits",
        "unconfirmed_hits"
      ],
      "type": "object"
    },
    "imunify.database_restore.v1.Operation": {
      "additionalProperties": false,
      "properties": {
        "app_name": {
          "type": "string"
        },
        "completed": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "counts": {
          "$ref": "#/definitions/imunify.database_restore.v1.Counts"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "operation_id": {
          "type": "string"
        },
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "queued": {
          "type": "number"
        },
        "result_complete": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "started": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "enum": [
            "queued",
            "running",
            "succeeded",
            "failed",
            "interrupted"
          ],
          "type": "string"
        }
      },
      "required": [
        "app_name",
        "completed",
        "counts",
        "error",
        "operation_id",
        "path",
        "queued",
        "result_complete",
        "started",
        "state"
      ],
      "type": "object"
    }
  },
  "properties": {
    "items": {
      "items": {
        "$ref": "#/definitions/imunify.database_restore.v1.Operation"
      },
      "type": "array"
    },
    "max_count": {
      "type": "number"
    }
  },
  "required": [
    "items",
    "max_count"
  ],
  "type": "object"
}
