{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-arc/json-schema/microsoft-azure-arc-license-profile-update-schema.json",
  "title": "LicenseProfileUpdate",
  "description": "Describes a License Profile Update.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-arc-licenseprofiles-api-openapi.yml#/components/schemas/LicenseProfileUpdate",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/LicenseProfileUpdateProperties",
      "description": "Describe the Update properties of a license profile.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ResourceUpdate"
    }
  ],
  "$defs": {
    "EsuProfileUpdateProperties": {
      "type": "object",
      "description": "Describes the Update properties of a ESU License Profile.",
      "properties": {
        "assignedLicense": {
          "type": "string",
          "description": "The resource id of the license."
        }
      }
    },
    "LicenseProfileProductType": {
      "type": "string",
      "description": "The product type of the license.",
      "enum": [
        "WindowsServer",
        "WindowsIoTEnterprise"
      ],
      "x-ms-enum": {
        "name": "LicenseProfileProductType",
        "modelAsString": true,
        "values": [
          {
            "name": "WindowsServer",
            "value": "WindowsServer",
            "description": "WindowsServer"
          },
          {
            "name": "WindowsIoTEnterprise",
            "value": "WindowsIoTEnterprise",
            "description": "WindowsIoTEnterprise"
          }
        ]
      }
    },
    "LicenseProfileSubscriptionStatusUpdate": {
      "type": "string",
      "description": "Indicates the new subscription status of the OS or Product Features.",
      "enum": [
        "Enable",
        "Disable"
      ],
      "x-ms-enum": {
        "name": "LicenseProfileSubscriptionStatusUpdate",
        "modelAsString": true,
        "values": [
          {
            "name": "Enable",
            "value": "Enable",
            "description": "Enable"
          },
          {
            "name": "Disable",
            "value": "Disable",
            "description": "Disable"
          }
        ]
      }
    },
    "LicenseProfileUpdateProperties": {
      "type": "object",
      "description": "Describe the Update properties of a license profile.",
      "properties": {
        "softwareAssurance": {
          "$ref": "#/$defs/LicenseProfileUpdatePropertiesSoftwareAssurance",
          "x-ms-client-flatten": true
        },
        "esuProfile": {
          "$ref": "#/$defs/EsuProfileUpdateProperties",
          "description": "Hybrid Compute ESU Profile Update properties",
          "x-ms-client-flatten": true
        },
        "productProfile": {
          "$ref": "#/$defs/ProductProfileUpdateProperties",
          "description": "Hybrid Compute Product Profile Update properties",
          "x-ms-client-flatten": true
        }
      }
    },
    "LicenseProfileUpdatePropertiesSoftwareAssurance": {
      "type": "object",
      "properties": {
        "softwareAssuranceCustomer": {
          "type": "boolean",
          "description": "Specifies if this machine is licensed as part of a Software Assurance agreement."
        }
      }
    },
    "ProductFeatureUpdate": {
      "type": "object",
      "description": "Product Feature",
      "properties": {
        "name": {
          "type": "string",
          "description": "Product feature name."
        },
        "subscriptionStatus": {
          "$ref": "#/$defs/LicenseProfileSubscriptionStatusUpdate",
          "description": "Indicates the new status of the product feature."
        }
      }
    },
    "ProductProfileUpdateProperties": {
      "type": "object",
      "description": "Describes the Update properties of a Product Profile.",
      "properties": {
        "subscriptionStatus": {
          "$ref": "#/$defs/LicenseProfileSubscriptionStatusUpdate",
          "description": "Indicates the subscription status of the product."
        },
        "productType": {
          "$ref": "#/$defs/LicenseProfileProductType",
          "description": "Indicates the product type of the license."
        },
        "productFeatures": {
          "type": "array",
          "description": "The list of product feature updates.",
          "items": {
            "$ref": "#/$defs/ProductFeatureUpdate"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "ResourceUpdate": {
      "type": "object",
      "description": "The Update Resource model definition.",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    }
  }
}