{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/starsphera-com/json-schema/starsphera-com-order-gpurequest-schema.json",
  "title": "OrderGPURequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/starsphera-com-openapi.json#/components/schemas/OrderGPURequest",
  "properties": {
    "provider_id": {
      "type": "string",
      "title": "Provider Id"
    },
    "duration_hours": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 720.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration Hours"
    },
    "allocated_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 2592000.0,
          "minimum": 60.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Allocated Seconds"
    },
    "billing_period": {
      "type": "string",
      "enum": [
        "task",
        "monthly"
      ],
      "title": "Billing Period",
      "default": "task"
    },
    "deposit_percent": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 10.0,
      "title": "Deposit Percent",
      "default": 10
    },
    "auto_extend": {
      "type": "boolean",
      "title": "Auto Extend",
      "default": false
    },
    "access_type": {
      "type": "string",
      "enum": [
        "ssh",
        "jupyter",
        "ssh_container",
        "jupyter_container"
      ],
      "title": "Access Type",
      "default": "ssh"
    },
    "customer_ssh_public_key": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 4096
        },
        {
          "type": "null"
        }
      ],
      "title": "Customer Ssh Public Key"
    }
  },
  "type": "object",
  "required": [
    "provider_id"
  ]
}