{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/github/json-schema/github-network-configuration-schema.json",
  "title": "Hosted compute network configuration",
  "description": "A hosted compute network configuration.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-hosted-compute-api-openapi.yml#/components/schemas/network-configuration",
  "type": "object",
  "properties": {
    "id": {
      "description": "The unique identifier of the network configuration.",
      "type": "string"
    },
    "name": {
      "description": "The name of the network configuration.",
      "type": "string"
    },
    "compute_service": {
      "description": "The hosted compute service the network configuration supports.",
      "type": "string",
      "enum": [
        "none",
        "actions",
        "codespaces"
      ]
    },
    "network_settings_ids": {
      "description": "The unique identifier of each network settings in the configuration.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "failover_network_settings_ids": {
      "description": "The unique identifier of each failover network settings in the configuration.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "failover_network_enabled": {
      "description": "Indicates whether the failover network resource is enabled.",
      "type": "boolean"
    },
    "created_on": {
      "description": "The time at which the network configuration was created, in ISO 8601 format.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "name",
    "created_on"
  ]
}