Hugging Face · Schema

UpdateEndpointRequest

Properties

Name Type Description
type string
compute object
model object
View JSON Schema on GitHub

JSON Schema

hugging-face-updateendpointrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UpdateEndpointRequest",
  "title": "UpdateEndpointRequest",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "public",
        "protected",
        "private"
      ],
      "example": "public"
    },
    "compute": {
      "type": "object",
      "properties": {
        "accelerator": {
          "type": "string"
        },
        "instanceType": {
          "type": "string"
        },
        "instanceSize": {
          "type": "string"
        },
        "scaling": {
          "type": "object",
          "properties": {
            "minReplica": {
              "type": "integer"
            },
            "maxReplica": {
              "type": "integer"
            },
            "scaleToZeroTimeout": {
              "type": "integer"
            }
          }
        }
      },
      "example": "example_value"
    },
    "model": {
      "type": "object",
      "properties": {
        "repository": {
          "type": "string"
        },
        "revision": {
          "type": "string"
        },
        "task": {
          "type": "string"
        }
      },
      "example": "example_value"
    }
  }
}