{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-kubernetes-service/json-schema/microsoft-azure-kubernetes-service-update-run-schema.json",
  "title": "UpdateRun",
  "description": "A multi-stage process to perform update operations across members of a Fleet.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-kubernetes-service-updateruns-api-openapi.yml#/components/schemas/UpdateRun",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/UpdateRunProperties",
      "description": "The resource-specific properties for this resource.",
      "x-ms-client-flatten": true
    },
    "eTag": {
      "type": "string",
      "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.  Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "AutoUpgradeProfileId": {
      "type": "string",
      "format": "arm-id",
      "description": "A type definition that refers the id to an Azure Resource Manager resource.",
      "x-ms-arm-id-details": {
        "allowedResources": [
          {
            "type": "Microsoft.ContainerService/fleets/updateRuns"
          }
        ]
      }
    },
    "DayOfWeek": {
      "type": "string",
      "description": "The days of a week.",
      "enum": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday",
        "Sunday"
      ],
      "x-ms-enum": {
        "name": "DayOfWeek",
        "modelAsString": true,
        "values": [
          {
            "name": "Monday",
            "value": "Monday",
            "description": "The day Monday."
          },
          {
            "name": "Tuesday",
            "value": "Tuesday",
            "description": "The day Tuesday."
          },
          {
            "name": "Wednesday",
            "value": "Wednesday",
            "description": "The day Wednesday."
          },
          {
            "name": "Thursday",
            "value": "Thursday",
            "description": "The day Thursday."
          },
          {
            "name": "Friday",
            "value": "Friday",
            "description": "The day Friday."
          },
          {
            "name": "Saturday",
            "value": "Saturday",
            "description": "The day Saturday."
          },
          {
            "name": "Sunday",
            "value": "Sunday",
            "description": "The day Sunday."
          }
        ]
      }
    },
    "FleetUpdateStrategyResourceId": {
      "type": "string",
      "format": "arm-id",
      "description": "A type definition that refers the id to an Azure Resource Manager resource.",
      "x-ms-arm-id-details": {
        "allowedResources": [
          {
            "type": "Microsoft.ContainerService/fleets/updateStrategies"
          }
        ]
      }
    },
    "GateConfiguration": {
      "type": "object",
      "description": "GateConfiguration is used to define where Gates should be placed within the Update Run.",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "The human-readable display name of the Gate.",
          "minLength": 1,
          "maxLength": 100
        },
        "type": {
          "$ref": "#/$defs/GateType",
          "description": "The type of the Gate determines how it is completed."
        },
        "scheduledStartConfiguration": {
          "$ref": "#/$defs/ScheduledStartConfiguration",
          "description": "Scheduled start configuration for gates of type ScheduledStart."
        }
      },
      "required": [
        "type"
      ]
    },
    "GateResourceId": {
      "type": "string",
      "format": "arm-id",
      "description": "A type definition that refers the id to an Azure Resource Manager resource.",
      "x-ms-arm-id-details": {
        "allowedResources": [
          {
            "type": "Microsoft.ContainerService/fleets/gates"
          }
        ]
      }
    },
    "GateType": {
      "type": "string",
      "description": "The type of the Gate determines how it is completed.",
      "enum": [
        "Approval",
        "ScheduledStart"
      ],
      "x-ms-enum": {
        "name": "GateType",
        "modelAsString": true,
        "values": [
          {
            "name": "Approval",
            "value": "Approval",
            "description": "An approval gate is completed by setting its state to be Completed."
          },
          {
            "name": "ScheduledStart",
            "value": "ScheduledStart",
            "description": "A scheduled start gate is automatically completed when the scheduled time is reached."
          }
        ]
      }
    },
    "KubernetesVersion": {
      "type": "string"
    },
    "ManagedClusterUpdate": {
      "type": "object",
      "description": "The update to be applied to the ManagedClusters.",
      "properties": {
        "upgrade": {
          "$ref": "#/$defs/ManagedClusterUpgradeSpec",
          "description": "The upgrade to apply to the ManagedClusters."
        },
        "nodeImageSelection": {
          "$ref": "#/$defs/NodeImageSelection",
          "description": "The node image upgrade to be applied to the target nodes in update run.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "upgrade"
      ]
    },
    "ManagedClusterUpgradeSpec": {
      "type": "object",
      "description": "The upgrade to apply to a ManagedCluster.",
      "properties": {
        "type": {
          "$ref": "#/$defs/ManagedClusterUpgradeType",
          "description": "ManagedClusterUpgradeType is the type of upgrade to be applied."
        },
        "kubernetesVersion": {
          "$ref": "#/$defs/KubernetesVersion",
          "description": "The Kubernetes version to upgrade the member clusters to."
        }
      },
      "required": [
        "type"
      ]
    },
    "ManagedClusterUpgradeType": {
      "type": "string",
      "description": "The type of upgrade to perform when targeting ManagedClusters.",
      "enum": [
        "Full",
        "NodeImageOnly",
        "ControlPlaneOnly"
      ],
      "x-ms-enum": {
        "name": "ManagedClusterUpgradeType",
        "modelAsString": true,
        "values": [
          {
            "name": "Full",
            "value": "Full",
            "description": "Full upgrades the control plane and all agent pools of the target ManagedClusters. Requires the ManagedClusterUpgradeSpec.KubernetesVersion property to be set."
          },
          {
            "name": "NodeImageOnly",
            "value": "NodeImageOnly",
            "description": "NodeImageOnly upgrades only the node images of the target ManagedClusters. Requires the ManagedClusterUpgradeSpec.KubernetesVersion property to NOT be set."
          },
          {
            "name": "ControlPlaneOnly",
            "value": "ControlPlaneOnly",
            "description": "ControlPlaneOnly upgrades only targets the KubernetesVersion of the ManagedClusters and will not be applied to the AgentPool. Requires the ManagedClusterUpgradeSpec.KubernetesVersion property to be set."
          }
        ]
      }
    },
    "MemberSelector": {
      "type": "object",
      "description": "Select members of a fleet.",
      "properties": {
        "byLabel": {
          "type": "string",
          "description": "Kubernetes-style label selector for selecting Fleet members, e.g. `env=production`.",
          "maxLength": 512,
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "byLabel"
      ]
    },
    "MemberUpdateStatus": {
      "type": "object",
      "description": "The status of a member update operation.",
      "properties": {
        "status": {
          "$ref": "#/$defs/UpdateStatus",
          "description": "The status of the MemberUpdate operation.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the FleetMember.",
          "readOnly": true
        },
        "clusterResourceId": {
          "type": "string",
          "description": "The Azure resource id of the target Kubernetes cluster.",
          "readOnly": true
        },
        "operationId": {
          "type": "string",
          "description": "The operation resource id of the latest attempt to perform the operation.",
          "readOnly": true
        },
        "message": {
          "type": "string",
          "description": "The status message after processing the member update operation.",
          "readOnly": true
        }
      }
    },
    "NodeImageSelection": {
      "type": "object",
      "description": "The node image upgrade to be applied to the target nodes in update run.",
      "properties": {
        "type": {
          "$ref": "#/$defs/NodeImageSelectionType",
          "description": "The node image upgrade type.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "customNodeImageVersions": {
          "type": "array",
          "description": "Custom node image versions to upgrade the nodes to. This field is required if node image selection type is Custom. Otherwise, it must be empty. For each node image family (e.g., 'AKSUbuntu-1804gen2containerd'), this field can contain at most one version (e.g., only one of 'AKSUbuntu-1804gen2containerd-2023.01.12' or 'AKSUbuntu-1804gen2containerd-2023.02.12', not both). If the nodes belong to a family without a matching image version in this field, they are not upgraded.",
          "items": {
            "$ref": "#/$defs/NodeImageVersion"
          },
          "x-ms-identifiers": [
            "version"
          ]
        }
      },
      "required": [
        "type"
      ]
    },
    "NodeImageSelectionStatus": {
      "type": "object",
      "description": "The node image upgrade specs for the update run.",
      "properties": {
        "selectedNodeImageVersions": {
          "type": "array",
          "description": "The image versions to upgrade the nodes to.",
          "items": {
            "$ref": "#/$defs/NodeImageVersion"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "version"
          ]
        }
      }
    },
    "NodeImageSelectionType": {
      "type": "string",
      "description": "The node image upgrade type.",
      "enum": [
        "Latest",
        "Consistent",
        "Custom"
      ],
      "x-ms-enum": {
        "name": "NodeImageSelectionType",
        "modelAsString": true,
        "values": [
          {
            "name": "Latest",
            "value": "Latest",
            "description": "Use the latest image version when upgrading nodes. Clusters may use different image versions (e.g., 'AKSUbuntu-1804gen2containerd-2021.10.12' and 'AKSUbuntu-1804gen2containerd-2021.10.19') because, for example, the latest available version is different in different regions."
          },
          {
            "name": "Consistent",
            "value": "Consistent",
            "description": "The image versions to upgrade nodes to are selected as described below: for each node pool in managed clusters affected by the update run, the system selects the latest image version such that it is available across all other node pools (in all other clusters) of the same image type. As a result, all node pools of the same image type will be upgraded to the same image version. For example, if the latest image version for image type 'AKSUbuntu-1804gen2containerd' is 'AKSUbuntu-1804gen2containerd-2021.10.12' for a node pool in cluster A in region X, and is 'AKSUbuntu-1804gen2containerd-2021.10.17' for a node pool in cluster B in region Y, the system will upgrade both node pools to image version 'AKSUbuntu-1804gen2containerd-2021.10.12'."
          },
          {
            "name": "Custom",
            "value": "Custom",
            "description": "Upgrade the nodes to the custom image versions. When set, update run will use node image versions provided in customNodeImageVersions to upgrade the nodes. If set, customNodeImageVersions must not be empty."
          }
        ]
      }
    },
    "NodeImageVersion": {
      "type": "object",
      "description": "The node upgrade image version.",
      "properties": {
        "version": {
          "type": "string",
          "description": "The image version to upgrade the nodes to (e.g., 'AKSUbuntu-1804gen2containerd-2022.12.13').",
          "readOnly": true
        }
      }
    },
    "ScheduledStartConfiguration": {
      "type": "object",
      "description": "Configuration for ScheduledStart gate",
      "properties": {
        "startDay": {
          "$ref": "#/$defs/DayOfWeek",
          "description": "The day of the week when the scheduled start occurs.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "startTime": {
          "type": "string",
          "description": "The local time of day when the scheduled start occurs in 24-hour (HH:mm) format.",
          "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "utcOffset": {
          "type": "string",
          "description": "The UTC offset for the scheduled time in HH:mm format, -14:00 to +14:00",
          "pattern": "^[+-]((0[0-9]|1[0-3]):[0-5][0-9]|14:00)$",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "startDay",
        "startTime",
        "utcOffset"
      ]
    },
    "UpdateGroup": {
      "type": "object",
      "description": "A group to be updated.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the group.\nIt must match a group name of an existing fleet member.",
          "minLength": 1,
          "maxLength": 50,
          "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
        },
        "maxConcurrency": {
          "type": "string",
          "description": "The max number of upgrades that can run concurrently in this specific group.\nActs as a ceiling (and not a quota) for the number of concurrent upgrades within the group you want to tolerate at a time.\nActual concurrency may be lower depending on stage-level concurrency limits or individual member conditions.\nGroup maxConcurrency has a min value of \"1\". The max value is min(number of clusters in the group, the stage maxConcurrency).\nIf no value is provided, defaults to 1.\nAccepts either:\n    • A fixed count, e.g. \"3\"\n    • A percentage, e.g. \"25%\" (range 1–100). Percentage is of the number of clusters in the group. \n      Fractional results are rounded down. A minimum of 1 upgrade is enforced.\nExamples:\n    • \"3\" --> up to 3 members from this group upgrade at once.\n    • \"100%\" --> “all at once”, up to all members for this group upgrade at the same time.\n    • \"25%\" --> up to 25% of the members in the group will be upgraded at the same time.",
          "pattern": "^(?:([1-9]\\d*)|([1-9]\\d?|100)%)$"
        },
        "memberSelector": {
          "$ref": "#/$defs/MemberSelector",
          "description": "Select the members of the group.\n  * If specified, label-based selection will override group name based selection,\n    and Name is only used as an identifier.\n  * If not specified, group name based selection will be used, and Name must match a\n    group name of an existing fleet member.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "beforeGates": {
          "type": "array",
          "description": "A list of Gates that will be created before this Group is executed.",
          "items": {
            "$ref": "#/$defs/GateConfiguration"
          },
          "x-ms-identifiers": []
        },
        "afterGates": {
          "type": "array",
          "description": "A list of Gates that will be created after this Group is executed.",
          "items": {
            "$ref": "#/$defs/GateConfiguration"
          },
          "x-ms-identifiers": []
        }
      },
      "required": [
        "name"
      ]
    },
    "UpdateGroupStatus": {
      "type": "object",
      "description": "The status of a UpdateGroup.",
      "properties": {
        "status": {
          "$ref": "#/$defs/UpdateStatus",
          "description": "The status of the UpdateGroup.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the UpdateGroup.",
          "readOnly": true
        },
        "maxConcurrency": {
          "type": "integer",
          "format": "int32",
          "description": "  The max number of upgrades that can run concurrently in this group, resolved from the UpdateStrategy.UpdateGroup.maxConcurrency value. If no value was provided, this value defaults to \"1\".",
          "readOnly": true
        },
        "members": {
          "type": "array",
          "description": "The list of member this UpdateGroup updates.",
          "items": {
            "$ref": "#/$defs/MemberUpdateStatus"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        },
        "beforeGates": {
          "type": "array",
          "description": "The list of Gates that will run before this UpdateGroup.",
          "items": {
            "$ref": "#/$defs/UpdateRunGateStatus"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        },
        "afterGates": {
          "type": "array",
          "description": "The list of Gates that will run after this UpdateGroup.",
          "items": {
            "$ref": "#/$defs/UpdateRunGateStatus"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        }
      }
    },
    "UpdateRunGateStatus": {
      "type": "object",
      "description": "The status of the Gate, as represented in the Update Run.",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "The human-readable display name of the Gate.",
          "minLength": 1,
          "maxLength": 100,
          "readOnly": true
        },
        "gateId": {
          "$ref": "#/$defs/GateResourceId",
          "description": "The resource id of the Gate.",
          "readOnly": true
        },
        "status": {
          "$ref": "#/$defs/UpdateStatus",
          "description": "The status of the Gate.",
          "readOnly": true
        }
      }
    },
    "UpdateRunProperties": {
      "type": "object",
      "description": "The properties of the UpdateRun.",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/UpdateRunProvisioningState",
          "description": "The provisioning state of the UpdateRun resource.",
          "readOnly": true
        },
        "updateStrategyId": {
          "$ref": "#/$defs/FleetUpdateStrategyResourceId",
          "description": "The resource id of the FleetUpdateStrategy resource to reference.\n\nWhen creating a new run, there are three ways to define a strategy for the run:\n1. Define a new strategy in place: Set the \"strategy\" field.\n2. Use an existing strategy: Set the \"updateStrategyId\" field. (since 2023-08-15-preview)\n3. Use the default strategy to update all the members one by one: Leave both \"updateStrategyId\" and \"strategy\" unset. (since 2023-08-15-preview)\n\nSetting both \"updateStrategyId\" and \"strategy\" is invalid.\n\nUpdateRuns created by \"updateStrategyId\" snapshot the referenced UpdateStrategy at the time of creation and store it in the \"strategy\" field. \nSubsequent changes to the referenced FleetUpdateStrategy resource do not propagate.\nUpdateRunStrategy changes can be made directly on the \"strategy\" field before launching the UpdateRun."
        },
        "strategy": {
          "$ref": "#/$defs/UpdateRunStrategy",
          "description": "The strategy defines the order in which the clusters will be updated.\nIf not set, all members will be updated sequentially. The UpdateRun status will show a single UpdateStage and a single UpdateGroup targeting all members.\nThe strategy of the UpdateRun can be modified until the run is started."
        },
        "managedClusterUpdate": {
          "$ref": "#/$defs/ManagedClusterUpdate",
          "description": "The update to be applied to all clusters in the UpdateRun. The managedClusterUpdate can be modified until the run is started."
        },
        "status": {
          "$ref": "#/$defs/UpdateRunStatus",
          "description": "The status of the UpdateRun.",
          "readOnly": true
        },
        "autoUpgradeProfileId": {
          "$ref": "#/$defs/AutoUpgradeProfileId",
          "description": "AutoUpgradeProfileId is the id of an auto upgrade profile resource.",
          "readOnly": true
        }
      },
      "required": [
        "managedClusterUpdate"
      ]
    },
    "UpdateRunProvisioningState": {
      "type": "string",
      "description": "The provisioning state of the UpdateRun resource.",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "UpdateRunProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Resource has been created."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Resource creation failed."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Resource creation was canceled."
          }
        ]
      },
      "readOnly": true
    },
    "UpdateRunStatus": {
      "type": "object",
      "description": "The status of a UpdateRun.",
      "properties": {
        "status": {
          "$ref": "#/$defs/UpdateStatus",
          "description": "The status of the UpdateRun.",
          "readOnly": true
        },
        "stages": {
          "type": "array",
          "description": "The stages composing an update run. Stages are run sequentially withing an UpdateRun.",
          "items": {
            "$ref": "#/$defs/UpdateStageStatus"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        },
        "nodeImageSelection": {
          "$ref": "#/$defs/NodeImageSelectionStatus",
          "description": "The node image upgrade specs for the update run. It is only set in update run when `NodeImageSelection.type` is `Consistent`.",
          "readOnly": true
        }
      }
    },
    "UpdateRunStrategy": {
      "type": "object",
      "description": "Defines the update sequence of the clusters via stages and groups.\n\nStages within a run are executed sequentially one after another.\nGroups within a stage are executed in parallel.\nMember clusters within a group are updated sequentially one after another.\n\nA valid strategy contains no duplicate groups within or across stages.",
      "properties": {
        "stages": {
          "type": "array",
          "description": "The list of stages that compose this update run. Min size: 1.",
          "items": {
            "$ref": "#/$defs/UpdateStage"
          },
          "x-ms-identifiers": [
            "name"
          ]
        }
      },
      "required": [
        "stages"
      ]
    },
    "UpdateStage": {
      "type": "object",
      "description": "Defines a stage which contains the groups to update and the steps to take (e.g., wait for a time period) before starting the next stage.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the stage. Must be unique within the UpdateRun.",
          "minLength": 1,
          "maxLength": 50,
          "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
        },
        "groups": {
          "type": "array",
          "description": "Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.",
          "items": {
            "$ref": "#/$defs/UpdateGroup"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "memberSelector": {
          "$ref": "#/$defs/MemberSelector",
          "description": "Select the members of the stage.\n  * If specified without UpdateGroup, one implicit group containing the selected members will be created.\n  * If specified with UpdateGroup, members will be pre-filtered before group-level selection logic is applied.\n  * If not specified, group-level selection logic will be used.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "afterStageWaitInSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified."
        },
        "maxConcurrency": {
          "type": "string",
          "description": "The max number of upgrades that can run concurrently across all groups in this stage.\nActs as a ceiling (and not a quota) for the number of concurrent upgrades within the stage you want to tolerate at a time.\nActual concurrency may be lower depending on group-level concurrency limits or individual member conditions.\nStage maxConcurrency has a min value of \"1\".\nAccepts either:\n    • A fixed count, e.g., \"3\"\n    • A percentage, e.g., \"25%\" (range 1–100). Percentage is of the total number of clusters across all groups in the stage.\n      Fractional results are rounded down. A minimum of 1 upgrade is enforced.\nExamples:\n    • \"3\"     --> up to 3 clusters from this stage upgrade at once (across all groups).\n    • \"100%\"  --> “all at once”; up to all clusters in this stage upgrade at the same time.\n    • \"25%\"   --> up to 25% of the stage’s total clusters upgrade at the same time.",
          "pattern": "^(?:([1-9]\\d*)|([1-9]\\d?|100)%)$"
        },
        "beforeGates": {
          "type": "array",
          "description": "A list of Gates that will be created before this Stage is executed.",
          "items": {
            "$ref": "#/$defs/GateConfiguration"
          },
          "x-ms-identifiers": []
        },
        "afterGates": {
          "type": "array",
          "description": "A list of Gates that will be created after this Stage is executed.",
          "items": {
            "$ref": "#/$defs/GateConfiguration"
          },
          "x-ms-identifiers": []
        }
      },
      "required": [
        "name"
      ]
    },
    "UpdateStageStatus": {
      "type": "object",
      "description": "The status of a UpdateStage.",
      "properties": {
        "status": {
          "$ref": "#/$defs/UpdateStatus",
          "description": "The status of the UpdateStage.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the UpdateStage.",
          "readOnly": true
        },
        "maxConcurrency": {
          "type": "integer",
          "format": "int32",
          "description": "The max number of upgrades that can run concurrently across all groups in this stage, resolved from the UpdateStrategy.UpdateStage.maxConcurrency value.",
          "readOnly": true
        },
        "groups": {
          "type": "array",
          "description": "The list of groups to be updated as part of this UpdateStage.",
          "items": {
            "$ref": "#/$defs/UpdateGroupStatus"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        },
        "beforeGates": {
          "type": "array",
          "description": "The list of Gates that will run before this UpdateStage.",
          "items": {
            "$ref": "#/$defs/UpdateRunGateStatus"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        },
        "afterGates": {
          "type": "array",
          "description": "The list of Gates that will run after this UpdateStage.",
          "items": {
            "$ref": "#/$defs/UpdateRunGateStatus"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        },
        "afterStageWaitStatus": {
          "$ref": "#/$defs/WaitStatus",
          "description": "The status of the wait period configured on the UpdateStage.",
          "readOnly": true
        }
      }
    },
    "UpdateState": {
      "type": "string",
      "description": "The state of the UpdateRun, UpdateStage, UpdateGroup, or MemberUpdate.",
      "enum": [
        "NotStarted",
        "Running",
        "Stopping",
        "Stopped",
        "Skipped",
        "Failed",
        "Pending",
        "Completed"
      ],
      "x-ms-enum": {
        "name": "UpdateState",
        "modelAsString": true,
        "values": [
          {
            "name": "NotStarted",
            "value": "NotStarted",
            "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has not been started."
          },
          {
            "name": "Running",
            "value": "Running",
            "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is running."
          },
          {
            "name": "Stopping",
            "value": "Stopping",
            "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is being stopped."
          },
          {
            "name": "Stopped",
            "value": "Stopped",
            "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has stopped."
          },
          {
            "name": "Skipped",
            "value": "Skipped",
            "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has been skipped."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has failed."
          },
          {
            "name": "Pending",
            "value": "Pending",
            "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is pending."
          },
          {
            "name": "Completed",
            "value": "Completed",
            "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has completed."
          }
        ]
      }
    },
    "UpdateStatus": {
      "type": "object",
      "description": "The status for an operation or group of operations.",
      "properties": {
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the operation or group was started.",
          "readOnly": true
        },
        "completedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the operation or group was completed.",
          "readOnly": true
        },
        "state": {
          "$ref": "#/$defs/UpdateState",
          "description": "The State of the operation or group.",
          "readOnly": true
        },
        "error": {
          "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorDetail",
          "description": "The error details when a failure is encountered.",
          "readOnly": true
        }
      }
    },
    "WaitStatus": {
      "type": "object",
      "description": "The status of the wait duration.",
      "properties": {
        "status": {
          "$ref": "#/$defs/UpdateStatus",
          "description": "The status of the wait duration.",
          "readOnly": true
        },
        "waitDurationInSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "The wait duration configured in seconds.",
          "readOnly": true
        }
      }
    }
  }
}