{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sakura-internet/main/json-schema/sakura-internet-plan-item-schema.json",
  "title": "PlanItem",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sakura-internet-objectstorage-openapi.yml#/components/schemas/PlanItem",
  "type": "object",
  "required": [
    "service_class_path",
    "type",
    "cluster_id",
    "capacity_gib",
    "fee"
  ],
  "properties": {
    "service_class_path": {
      "$ref": "#/$defs/ServiceClassPath"
    },
    "type": {
      "$ref": "#/$defs/model.PlanType"
    },
    "cluster_id": {
      "type": "string"
    },
    "capacity_gib": {
      "type": "integer"
    },
    "fee": {
      "type": "object",
      "required": [
        "for_month",
        "monthly",
        "daily",
        "hourly"
      ],
      "description": "Fee information (tax included)",
      "properties": {
        "for_month": {
          "type": "integer"
        },
        "monthly": {
          "type": "integer"
        },
        "daily": {
          "type": "integer"
        },
        "hourly": {
          "type": "integer"
        }
      }
    }
  },
  "$defs": {
    "ServiceClassPath": {
      "type": "string",
      "description": "Plan identifier (service class path). Attributes such as capacity are resolved by the server based on this value."
    },
    "model.PlanType": {
      "type": "string",
      "description": "Plan type enum",
      "enum": [
        "standard",
        "archive"
      ]
    }
  }
}