{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-group-blob-store-api-create-request-schema.json",
  "title": "GroupBlobStoreApiCreateRequest",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-blob-store-api-openapi.yml#/components/schemas/GroupBlobStoreApiCreateRequest",
  "required": [
    "name"
  ],
  "type": "object",
  "properties": {
    "softQuota": {
      "$ref": "#/$defs/BlobStoreApiSoftQuota"
    },
    "members": {
      "type": "array",
      "description": "List of the names of blob stores that are members of this group",
      "items": {
        "type": "string",
        "description": "List of the names of blob stores that are members of this group"
      }
    },
    "fillPolicy": {
      "type": "string",
      "enum": [
        "roundRobin",
        "writeToFirst"
      ]
    },
    "name": {
      "minLength": 1,
      "pattern": "^[a-zA-Z0-9\\-]{1}[a-zA-Z0-9_\\-\\.]*$",
      "type": "string"
    },
    "softQuotaAttributes": {
      "$ref": "#/$defs/BlobStoreConfiguration"
    }
  },
  "$defs": {
    "BlobStoreApiSoftQuota": {
      "required": [
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "minLength": 1,
          "type": "string",
          "description": "The type to use such as spaceRemainingQuota, or spaceUsedQuotaspaceUsedQuota"
        },
        "limit": {
          "minimum": 0,
          "type": "integer",
          "description": "The limit in MB.",
          "format": "int64"
        }
      },
      "description": "Settings to control the soft quota"
    },
    "BlobStoreConfiguration": {
      "type": "object",
      "properties": {
        "attributes": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "writable": {
          "type": "boolean"
        }
      }
    }
  }
}