{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/leaseweb/main/json-schema/leaseweb-create-object-storage-bucket-opts-schema.json",
  "title": "createObjectStorageBucketOpts",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/leaseweb-objectstorage-openapi.yml#/components/schemas/createObjectStorageBucketOpts",
  "properties": {
    "name": {
      "description": "The bucket name. Must be 3–63 characters, alphanumeric and hyphens only.",
      "maxLength": 63,
      "minLength": 3,
      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9]$",
      "type": "string"
    },
    "isVersioningEnabled": {
      "description": "Indicates if versioning is enabled for the bucket.",
      "type": "boolean"
    },
    "quota": {
      "description": "The quota for the size of the bucket in GB (1–1,000,000). Omit or set to null for no quota. In responses, quota is returned as an object with `value` and `unit` fields.",
      "maximum": 1000000,
      "minimum": 1,
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "isVersioningEnabled",
    "name"
  ],
  "type": "object"
}