{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-machine-learning/json-schema/microsoft-azure-machine-learning-cluster-update-parameters-schema.json",
  "title": "ClusterUpdateParameters",
  "description": "AmlCompute update parameters.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-machine-learning-computeresources-api-openapi.yml#/components/schemas/ClusterUpdateParameters",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ClusterUpdateProperties",
      "description": "The properties of the amlCompute.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "ClusterUpdateProperties": {
      "type": "object",
      "description": "The properties of a amlCompute that need to be updated.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ScaleSettingsInformation",
          "description": "Properties of ClusterUpdate"
        }
      }
    },
    "ScaleSettings": {
      "type": "object",
      "description": "scale settings for AML Compute",
      "properties": {
        "maxNodeCount": {
          "type": "integer",
          "format": "int32",
          "description": "Max number of nodes to use"
        },
        "minNodeCount": {
          "type": "integer",
          "format": "int32",
          "description": "Min number of nodes to use",
          "default": 0
        },
        "nodeIdleTimeBeforeScaleDown": {
          "type": "string",
          "format": "duration",
          "description": "Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format."
        }
      },
      "required": [
        "maxNodeCount"
      ]
    },
    "ScaleSettingsInformation": {
      "type": "object",
      "description": "Desired scale settings for the amlCompute.",
      "properties": {
        "scaleSettings": {
          "$ref": "#/$defs/ScaleSettings",
          "title": "Scale settings."
        }
      }
    }
  }
}