{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-migrate/json-schema/microsoft-azure-migrate-update-group-body-schema.json",
  "title": "UpdateGroupBody",
  "description": "Properties of group update.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-migrate-groupsoperations-api-openapi.yml#/components/schemas/UpdateGroupBody",
  "type": "object",
  "properties": {
    "eTag": {
      "type": "string",
      "description": "For optimistic concurrency control."
    },
    "properties": {
      "$ref": "#/$defs/GroupBodyProperties",
      "description": "Properties of the group."
    }
  },
  "$defs": {
    "GroupBodyProperties": {
      "type": "object",
      "description": "Body properties of group update.",
      "properties": {
        "operationType": {
          "$ref": "#/$defs/GroupUpdateOperation",
          "description": "Whether to add or remove the machines."
        },
        "machines": {
          "type": "array",
          "description": "List of machine names that are part of this group.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "GroupUpdateOperation": {
      "type": "string",
      "enum": [
        "Add",
        "Remove"
      ],
      "x-ms-enum": {
        "name": "GroupUpdateOperation",
        "modelAsString": true
      }
    }
  }
}