{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yunqi/json-schema/yunqi-virtual-cluster-create-request-schema.json",
  "title": "VirtualClusterCreateRequest",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yunqi-virtualcluster-api-openapi.yml#/components/schemas/VirtualClusterCreateRequest",
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string"
    },
    "instance": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "GENERAL",
        "ANALYTICS",
        "INTEGRATION"
      ]
    },
    "size": {
      "type": "string"
    },
    "minReplicas": {
      "type": [
        "integer",
        "null"
      ]
    },
    "maxReplicas": {
      "type": [
        "integer",
        "null"
      ]
    },
    "maxConcurrency": {
      "type": [
        "integer",
        "null"
      ]
    },
    "autoStopMinutes": {
      "type": "integer",
      "default": 1
    },
    "autoStartEnabled": {
      "type": "boolean",
      "default": true
    },
    "comment": {
      "type": "string"
    }
  },
  "required": [
    "name",
    "autoStopMinutes",
    "autoStartEnabled",
    "workspace",
    "instance",
    "type",
    "size"
  ]
}