{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-tags-patch-resource-schema.json",
  "title": "TagsPatchResource",
  "description": "Wrapper resource for tags patch API request only.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-tags-api-openapi.yml#/components/schemas/TagsPatchResource",
  "type": "object",
  "properties": {
    "operation": {
      "$ref": "#/$defs/TagsPatchOperation",
      "description": "The operation type for the patch API."
    },
    "properties": {
      "$ref": "#/$defs/Tags",
      "description": "The set of tags."
    }
  },
  "$defs": {
    "Tags": {
      "type": "object",
      "description": "A dictionary of name and value pairs.",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Dictionary of <string>",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "TagsPatchOperation": {
      "type": "string",
      "description": "The operation type for the patch API.",
      "enum": [
        "Replace",
        "Merge",
        "Delete"
      ],
      "x-ms-enum": {
        "name": "TagsPatchOperation",
        "modelAsString": true,
        "values": [
          {
            "name": "Replace",
            "value": "Replace",
            "description": "The 'replace' option replaces the entire set of existing tags with a new set."
          },
          {
            "name": "Merge",
            "value": "Merge",
            "description": "The 'merge' option allows adding tags with new names and updating the values of tags with existing names."
          },
          {
            "name": "Delete",
            "value": "Delete",
            "description": "The 'delete' option allows selectively deleting tags based on given names or name/value pairs."
          }
        ]
      }
    }
  }
}