{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-cluster-version-deferral-update-schema.json",
  "title": "ClusterVersionDeferralUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-version-deferral-api-openapi.yml#/components/schemas/ClusterVersionDeferralUpdate",
  "type": "object",
  "properties": {
    "deferral_policy": {
      "$ref": "#/$defs/ClusterVersionDeferralPolicy.Type"
    },
    "deferred_until": {
      "description": "Deprecated: This field is ignored and will be removed in a future version.",
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "deferral_policy"
  ],
  "$defs": {
    "ClusterVersionDeferralPolicy.Type": {
      "description": " - NOT_DEFERRED: automatic patch version upgrades are applied immediately after release.\n - DEFERRAL_60_DAYS: automatic patch version upgrades are applied in a maintenance window at\nleast 60 days after the patch version release date.\n - FIXED_DEFERRAL: Deprecated: FIXED_DEFERRAL is equivalent to DEFERRAL_60_DAYS. It will be\nremoved in a future version.\n - DEFERRAL_30_DAYS: automatic patch version upgrades are applied in a maintenance window at\nleast 30 days after the patch version release date.\n - DEFERRAL_90_DAYS: automatic patch version upgrades are applied in a maintenance window at\nleast 90 days after the patch version release date.",
      "type": "string",
      "enum": [
        "NOT_DEFERRED",
        "DEFERRAL_60_DAYS",
        "FIXED_DEFERRAL",
        "DEFERRAL_30_DAYS",
        "DEFERRAL_90_DAYS"
      ]
    }
  }
}