{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-arc/json-schema/microsoft-azure-arc-connected-cluster-patch-schema.json",
  "title": "ConnectedClusterPatch",
  "description": "Object containing updates for patch operations.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-arc-connectedclusters-api-openapi.yml#/components/schemas/ConnectedClusterPatch",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "properties": {
      "$ref": "#/$defs/ConnectedClusterPatchProperties",
      "description": "Describes the connected cluster resource properties that can be updated during PATCH operation.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "AzureHybridBenefit": {
      "type": "string",
      "description": "Indicates whether Azure Hybrid Benefit is opted in",
      "enum": [
        "True",
        "False",
        "NotApplicable"
      ],
      "x-ms-enum": {
        "name": "AzureHybridBenefit",
        "modelAsString": true,
        "values": [
          {
            "name": "True",
            "value": "True"
          },
          {
            "name": "False",
            "value": "False"
          },
          {
            "name": "NotApplicable",
            "value": "NotApplicable"
          }
        ]
      }
    },
    "ConnectedClusterPatchProperties": {
      "type": "object",
      "description": "Properties which can be patched on the connected cluster resource.",
      "properties": {
        "distribution": {
          "type": "string",
          "description": "Represents the distribution of the connected cluster"
        },
        "distributionVersion": {
          "type": "string",
          "description": "Represents the Kubernetes distribution version on this connected cluster."
        },
        "azureHybridBenefit": {
          "$ref": "#/$defs/AzureHybridBenefit",
          "description": "Indicates whether Azure Hybrid Benefit is opted in"
        },
        "gateway": {
          "$ref": "#/$defs/Gateway",
          "description": "Indicates whether Gateway is enabled for the connected cluster resource"
        }
      }
    },
    "Gateway": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether the gateway for arc router connectivity is enabled."
        }
      }
    }
  }
}