{
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "modelSize": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string"
            }
          ],
          "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
          "x-kubernetes-int-or-string": true
        },
        "nodeGroups": {
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        },
        "sourceModelUri": {
          "type": "string",
          "x-kubernetes-validations": [
            {
              "message": "StorageUri is immutable",
              "rule": "self == oldSelf"
            }
          ]
        }
      },
      "required": [
        "modelSize",
        "nodeGroups",
        "sourceModelUri"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "properties": {
        "copies": {
          "properties": {
            "available": {
              "type": "integer"
            },
            "failed": {
              "type": "integer"
            },
            "total": {
              "type": "integer"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "inferenceServices": {
          "items": {
            "properties": {
              "name": {
                "type": "string"
              },
              "namespace": {
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "nodeStatus": {
          "additionalProperties": {
            "enum": [
              "",
              "NodeNotReady",
              "NodeDownloadPending",
              "NodeDownloading",
              "NodeDownloaded",
              "NodeDownloadError"
            ],
            "type": "string"
          },
          "type": "object"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
