{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sakura-internet/main/json-schema/sakura-internet-config-queue-request-schema.json",
  "title": "ConfigQueueRequest",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sakura-internet-simplemq-sacloud-openapi.yml#/components/schemas/ConfigQueueRequest",
  "type": "object",
  "required": [
    "CommonServiceItem"
  ],
  "properties": {
    "CommonServiceItem": {
      "type": "object",
      "required": [
        "Settings"
      ],
      "properties": {
        "Description": {
          "type": "string"
        },
        "Settings": {
          "$ref": "#/$defs/Settings"
        },
        "Tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Icon": {
          "$ref": "#/$defs/Icon"
        }
      }
    }
  },
  "$defs": {
    "ExpireSeconds": {
      "description": "未処理メッセージ保存期間 (秒)",
      "type": "integer",
      "minimum": 60,
      "maximum": 1209600
    },
    "Icon": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "object",
          "properties": {
            "ID": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ],
              "description": "0を指定することでIconなしに設定することが出来ます"
            },
            "URL": {
              "type": "string"
            },
            "Name": {
              "type": "string"
            },
            "Scope": {
              "type": "string"
            },
            "Tags": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      ]
    },
    "Settings": {
      "type": "object",
      "required": [
        "VisibilityTimeoutSeconds",
        "ExpireSeconds"
      ],
      "properties": {
        "VisibilityTimeoutSeconds": {
          "$ref": "#/$defs/VisibilityTimeoutSeconds"
        },
        "ExpireSeconds": {
          "$ref": "#/$defs/ExpireSeconds"
        }
      }
    },
    "VisibilityTimeoutSeconds": {
      "description": "可視性タイムアウト (秒)",
      "type": "integer",
      "minimum": 5,
      "maximum": 900
    }
  }
}