{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-migrate/json-schema/microsoft-azure-migrate-hyperv-machine-update-schema.json",
  "title": "HypervMachineUpdate",
  "description": "The type used for update operations of the HypervMachine.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-migrate-hypervmachinescontroller-api-openapi.yml#/components/schemas/HypervMachineUpdate",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/HypervMachineUpdateProperties",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "HypervMachineUpdateProperties": {
      "type": "object",
      "description": "The updatable properties of the HypervMachine.",
      "properties": {
        "firmware": {
          "type": "string",
          "description": "Gets or sets the firmware."
        },
        "runAsAccountId": {
          "type": "string",
          "description": "Gets or sets the run as account ID of the machine."
        },
        "productSupportStatus": {
          "$ref": "#/$defs/ProductSupportStatus",
          "description": "product support status."
        },
        "numberOfProcessorCore": {
          "type": "integer",
          "format": "int32",
          "description": "Gets or sets the Number of Processor Cores \n            allocated for the\nmachine."
        },
        "allocatedMemoryInMb": {
          "type": "number",
          "format": "double",
          "description": "Gets or sets the allocated Memory in MB."
        },
        "operatingSystemDetails": {
          "$ref": "#/$defs/OperatingSystem",
          "description": "Gets or sets the Operating System Details installed on the machine."
        },
        "biosSerialNumber": {
          "type": "string",
          "description": "Gets or sets the Machine BIOS serial number."
        },
        "biosGuid": {
          "type": "string",
          "description": "Gets or sets the BIOS GUID."
        },
        "tags": {
          "type": "object",
          "description": "Gets or sets tags on the resource.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "OperatingSystem": {
      "type": "object",
      "description": "Second level object returned as part of Machine REST resource.",
      "properties": {
        "osType": {
          "type": "string",
          "description": "Gets or sets the type of the operating system."
        },
        "osName": {
          "type": "string",
          "description": "Gets or sets the Name of the operating system."
        },
        "osVersion": {
          "type": "string",
          "description": "Gets or sets the Version of the operating system."
        },
        "osArchitecture": {
          "type": "string",
          "description": "Gets or sets the Architecture of the operating system."
        }
      }
    },
    "ProductSupportStatus": {
      "type": "object",
      "description": "product support status.",
      "properties": {
        "currentVersion": {
          "type": "string",
          "description": "current version."
        },
        "esuStatus": {
          "$ref": "#/$defs/esuStatus",
          "description": "esu status."
        },
        "supportStatus": {
          "$ref": "#/$defs/supportStatus",
          "description": "support status."
        },
        "supportEndDate": {
          "type": "string",
          "format": "date-time",
          "description": "support end date."
        },
        "esuYear": {
          "$ref": "#/$defs/esuYear",
          "description": "esu year."
        }
      }
    },
    "esuStatus": {
      "type": "string",
      "description": "esu Status",
      "enum": [
        "Unknown",
        "Active",
        "InActive"
      ],
      "x-ms-enum": {
        "name": "esuStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown",
            "description": "Unknown value."
          },
          {
            "name": "Active",
            "value": "Active",
            "description": "Active value."
          },
          {
            "name": "InActive",
            "value": "InActive",
            "description": "InActive value."
          }
        ]
      }
    },
    "esuYear": {
      "type": "string",
      "description": "esu year",
      "enum": [
        "Unknown",
        "FirstYear",
        "SecondYear",
        "ThirdYear",
        "UpgradeYear"
      ],
      "x-ms-enum": {
        "name": "esuYear",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown",
            "description": "Unknown value."
          },
          {
            "name": "FirstYear",
            "value": "FirstYear",
            "description": "FirstYear value."
          },
          {
            "name": "SecondYear",
            "value": "SecondYear",
            "description": "SecondYear value."
          },
          {
            "name": "ThirdYear",
            "value": "ThirdYear",
            "description": "ThirdYear value."
          },
          {
            "name": "UpgradeYear",
            "value": "UpgradeYear",
            "description": "UpgradeYear value."
          }
        ]
      }
    },
    "supportStatus": {
      "type": "string",
      "description": "support status",
      "enum": [
        "Unknown",
        "Mainstream",
        "Extended"
      ],
      "x-ms-enum": {
        "name": "supportStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown",
            "description": "Unknown value."
          },
          {
            "name": "Mainstream",
            "value": "Mainstream",
            "description": "Mainstream value."
          },
          {
            "name": "Extended",
            "value": "Extended",
            "description": "Extended value."
          }
        ]
      }
    }
  }
}