{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-postgresql/json-schema/microsoft-azure-postgresql-migrate-network-status-schema.json",
  "title": "MigrateNetworkStatus",
  "description": "Status of a network migration operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-postgresql-servers-api-openapi.yml#/components/schemas/MigrateNetworkStatus",
  "type": "object",
  "properties": {
    "subscriptionId": {
      "type": "string",
      "description": "Identifier of the subscription."
    },
    "resourceGroupName": {
      "type": "string",
      "description": "Name of the resource group."
    },
    "serverName": {
      "type": "string",
      "description": "Name of the server."
    },
    "state": {
      "$ref": "#/$defs/NetworkMigrationState",
      "description": "State of the network migration operation.",
      "readOnly": true
    }
  },
  "$defs": {
    "NetworkMigrationState": {
      "type": "string",
      "description": "State of the network migration operation.",
      "enum": [
        "Pending",
        "InProgress",
        "Succeeded",
        "Failed",
        "CancelInProgress",
        "Cancelled"
      ],
      "x-ms-enum": {
        "name": "NetworkMigrationState",
        "modelAsString": true,
        "values": [
          {
            "name": "Pending",
            "value": "Pending",
            "description": "Network migration is pending."
          },
          {
            "name": "InProgress",
            "value": "InProgress",
            "description": "Network migration is in progress."
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Network migration succeeded."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Network migration failed."
          },
          {
            "name": "CancelInProgress",
            "value": "CancelInProgress",
            "description": "Network migration cancellation is in progress."
          },
          {
            "name": "Cancelled",
            "value": "Cancelled",
            "description": "Network migration was cancelled."
          }
        ]
      }
    }
  }
}