{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-arc/json-schema/microsoft-azure-arc-license-update-schema.json",
  "title": "LicenseUpdate",
  "description": "Describes a License Update.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-arc-licenses-api-openapi.yml#/components/schemas/LicenseUpdate",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/LicenseUpdateProperties",
      "description": "License Update properties",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ResourceUpdate"
    }
  ],
  "$defs": {
    "LicenseCoreType": {
      "type": "string",
      "description": "Describes the license core type (pCore or vCore).",
      "enum": [
        "pCore",
        "vCore"
      ],
      "x-ms-enum": {
        "name": "LicenseCoreType",
        "modelAsString": true,
        "values": [
          {
            "name": "pCore",
            "value": "pCore",
            "description": "pCore"
          },
          {
            "name": "vCore",
            "value": "vCore",
            "description": "vCore"
          }
        ]
      }
    },
    "LicenseEdition": {
      "type": "string",
      "description": "Describes the edition of the license. The values are either Standard or Datacenter.",
      "enum": [
        "Standard",
        "Datacenter"
      ],
      "x-ms-enum": {
        "name": "LicenseEdition",
        "modelAsString": true,
        "values": [
          {
            "name": "Standard",
            "value": "Standard",
            "description": "Standard"
          },
          {
            "name": "Datacenter",
            "value": "Datacenter",
            "description": "Datacenter"
          }
        ]
      }
    },
    "LicenseState": {
      "type": "string",
      "description": "Describes the state of the license.",
      "enum": [
        "Activated",
        "Deactivated"
      ],
      "x-ms-enum": {
        "name": "LicenseState",
        "modelAsString": true,
        "values": [
          {
            "name": "Activated",
            "value": "Activated",
            "description": "Activated"
          },
          {
            "name": "Deactivated",
            "value": "Deactivated",
            "description": "Deactivated"
          }
        ]
      }
    },
    "LicenseTarget": {
      "type": "string",
      "description": "Describes the license target server.",
      "enum": [
        "Windows Server 2012",
        "Windows Server 2012 R2",
        "Windows Server 2016"
      ],
      "x-ms-enum": {
        "name": "LicenseTarget",
        "modelAsString": true,
        "values": [
          {
            "name": "Windows Server 2012",
            "value": "Windows Server 2012",
            "description": "Windows Server 2012"
          },
          {
            "name": "Windows Server 2012 R2",
            "value": "Windows Server 2012 R2",
            "description": "Windows Server 2012 R2"
          },
          {
            "name": "Windows Server 2016",
            "value": "Windows Server 2016",
            "description": "Windows Server 2016 license target."
          }
        ]
      }
    },
    "LicenseType": {
      "type": "string",
      "description": "The type of the license resource.",
      "enum": [
        "ESU"
      ],
      "x-ms-enum": {
        "name": "LicenseType",
        "modelAsString": true,
        "values": [
          {
            "name": "ESU",
            "value": "ESU",
            "description": "ESU"
          }
        ]
      }
    },
    "LicenseUpdateProperties": {
      "type": "object",
      "description": "Describes the Update properties of a License Profile.",
      "properties": {
        "licenseType": {
          "$ref": "#/$defs/LicenseType",
          "description": "The type of the license resource."
        },
        "licenseDetails": {
          "$ref": "#/$defs/LicenseUpdatePropertiesLicenseDetails",
          "x-ms-client-flatten": true
        }
      }
    },
    "LicenseUpdatePropertiesLicenseDetails": {
      "type": "object",
      "properties": {
        "state": {
          "$ref": "#/$defs/LicenseState",
          "description": "Describes the state of the license."
        },
        "target": {
          "$ref": "#/$defs/LicenseTarget",
          "description": "Describes the license target server."
        },
        "edition": {
          "$ref": "#/$defs/LicenseEdition",
          "description": "Describes the edition of the license. The values are either Standard or Datacenter."
        },
        "type": {
          "$ref": "#/$defs/LicenseCoreType",
          "description": "Describes the license core type (pCore or vCore)."
        },
        "processors": {
          "type": "integer",
          "format": "int32",
          "description": "Describes the number of processors."
        }
      }
    },
    "ResourceUpdate": {
      "type": "object",
      "description": "The Update Resource model definition.",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    }
  }
}