{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudovna-eu/json-schema/cloudovna-eu-create-container-request-schema.json",
  "title": "CreateContainerRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudovna-eu-openapi.yml#/components/schemas/CreateContainerRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string"
    },
    "image": {
      "type": "string"
    },
    "containerPort": {
      "type": "integer",
      "format": "int32"
    },
    "interval": {
      "$ref": "#/$defs/BillingInterval"
    },
    "environment": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      }
    },
    "extras": {
      "nullable": true,
      "oneOf": [
        {
          "$ref": "#/$defs/ExtrasDto"
        }
      ]
    },
    "volumes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "companion": {
      "type": "boolean"
    },
    "registryCredentialId": {
      "type": [
        "string",
        "null"
      ],
      "format": "guid"
    },
    "region": {
      "type": [
        "string",
        "null"
      ]
    },
    "allocation": {
      "nullable": true,
      "oneOf": [
        {
          "$ref": "#/$defs/ContainerAllocationDto"
        }
      ]
    },
    "growPool": {
      "type": "boolean"
    },
    "poolSize": {
      "nullable": true,
      "oneOf": [
        {
          "$ref": "#/$defs/PoolSizeDto"
        }
      ]
    },
    "appAddress": {
      "type": "boolean"
    }
  },
  "$defs": {
    "BillingInterval": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Monthly",
        "Annual"
      ],
      "enum": [
        "Monthly",
        "Annual"
      ]
    },
    "ContainerAllocationDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "cpu": {
          "type": "number",
          "format": "decimal"
        },
        "ramMb": {
          "type": "integer",
          "format": "int32"
        },
        "diskMb": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "ExtrasDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "ram": {
          "type": "integer",
          "format": "int32"
        },
        "cpu": {
          "type": "integer",
          "format": "int32"
        },
        "disk": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "PoolSizeDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "cpu": {
          "type": "number",
          "format": "decimal"
        },
        "ramMb": {
          "type": "integer",
          "format": "int32"
        },
        "diskMb": {
          "type": "integer",
          "format": "int32"
        },
        "postgresGb": {
          "type": "integer",
          "format": "int32"
        },
        "sqlServerGb": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}