{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-migrate/json-schema/microsoft-azure-migrate-group-list-result-schema.json",
  "title": "GroupListResult",
  "description": "The response of a Group list operation.",
  "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/GroupListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The Group items on this page",
      "items": {
        "$ref": "#/$defs/Group"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "AssessmentType": {
      "type": "string",
      "enum": [
        "Unknown",
        "MachineAssessment",
        "AvsAssessment",
        "SqlAssessment",
        "WebAppAssessment"
      ],
      "x-ms-enum": {
        "name": "AssessmentType",
        "modelAsString": true
      }
    },
    "AzureResourceProperties": {
      "type": "object",
      "description": "Common properties for all azure tracked and proxy resources.",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The status of the last operation."
        }
      }
    },
    "Group": {
      "type": "object",
      "description": "Group resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/GroupProperties",
          "description": "The resource-specific properties for this resource.",
          "x-ms-client-flatten": true,
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "GroupProperties": {
      "type": "object",
      "description": "Properties of group resource.",
      "properties": {
        "groupStatus": {
          "$ref": "#/$defs/GroupStatus",
          "description": "Whether the group has been created and is valid.",
          "readOnly": true
        },
        "machineCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of machines part of this group.",
          "readOnly": true
        },
        "assessments": {
          "type": "array",
          "description": "List of References to Assessments created on this group.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "supportedAssessmentTypes": {
          "type": "array",
          "description": "List of assessment types supported on this group.",
          "items": {
            "$ref": "#/$defs/AssessmentType"
          }
        },
        "areAssessmentsRunning": {
          "type": "boolean",
          "description": "If the assessments are in running state.",
          "readOnly": true
        },
        "createdTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "Time when this group was created. Date-Time represented in ISO-8601 format.",
          "readOnly": true
        },
        "updatedTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "Time when this group was last updated. Date-Time represented in ISO-8601 format.",
          "readOnly": true
        },
        "groupType": {
          "$ref": "#/$defs/GroupType",
          "description": "The type of group.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/AzureResourceProperties"
        }
      ]
    },
    "GroupStatus": {
      "type": "string",
      "enum": [
        "Created",
        "Updated",
        "Running",
        "Completed",
        "Invalid"
      ],
      "x-ms-enum": {
        "name": "GroupStatus",
        "modelAsString": true
      }
    },
    "GroupType": {
      "type": "string",
      "enum": [
        "Default",
        "Import"
      ],
      "x-ms-enum": {
        "name": "GroupType",
        "modelAsString": true
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "The status of the current operation.",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled",
        "Provisioning",
        "Updating",
        "Deleting",
        "Accepted"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "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."
          },
          {
            "name": "Provisioning",
            "value": "Provisioning",
            "description": "Resource is being Provisioned."
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Resource is being Updated."
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Resource is being Deleted."
          },
          {
            "name": "Accepted",
            "value": "Accepted",
            "description": "Resource is being Accepted."
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}