{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-postgresql/json-schema/microsoft-azure-postgresql-virtual-endpoint-resource-for-patch-schema.json",
  "title": "VirtualEndpointResourceForPatch",
  "description": "Pair of virtual endpoints for a server.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-postgresql-virtualendpoints-api-openapi.yml#/components/schemas/VirtualEndpointResourceForPatch",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/VirtualEndpointResourceProperties",
      "description": "Properties of the pair of virtual endpoints.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "VirtualEndpointResourceProperties": {
      "type": "object",
      "description": "Properties of a pair of virtual endpoints.",
      "properties": {
        "endpointType": {
          "$ref": "#/$defs/VirtualEndpointType",
          "description": "Type of endpoint for the virtual endpoints."
        },
        "members": {
          "type": "array",
          "description": "List of servers that one of the virtual endpoints can refer to.",
          "items": {
            "type": "string"
          }
        },
        "virtualEndpoints": {
          "type": "array",
          "description": "List of virtual endpoints for a server.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        }
      }
    },
    "VirtualEndpointType": {
      "type": "string",
      "description": "Type of endpoint for the virtual endpoints.",
      "enum": [
        "ReadWrite"
      ],
      "x-ms-enum": {
        "name": "VirtualEndpointType",
        "modelAsString": true,
        "values": [
          {
            "name": "ReadWrite",
            "value": "ReadWrite",
            "description": "Read-write endpoint."
          }
        ]
      }
    }
  }
}