{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-secure-firewall/json-schema/cisco-secure-firewall-mpm-policy-revision-diff-schema.json",
  "title": "MpmPolicyRevisionDiff",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-secure-firewall-mpm-entities-revision-diff-api-openapi.yml#/components/schemas/MpmPolicyRevisionDiff",
  "properties": {
    "action": {
      "enum": [
        "CREATE",
        "UPDATE",
        "DELETE",
        "NO_DIFF"
      ],
      "type": "string"
    },
    "body": {
      "$ref": "#/$defs/MpmPolicyRevisionDiffBody"
    },
    "id": {
      "format": "uuid",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "MpmDynamicGroupRelationshipRevisionDiff": {
      "properties": {
        "added": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "removed": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        }
      },
      "type": "object"
    },
    "MpmNatRuleRevisionDiff": {
      "properties": {
        "action": {
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE",
            "NO_DIFF"
          ],
          "type": "string"
        },
        "body": {
          "$ref": "#/$defs/MpmNatRuleRevisionDiffBody"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        }
      },
      "type": "object"
    },
    "MpmNatRuleRevisionDiffBody": {
      "properties": {
        "apMatch": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "apTranslated": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "apgMatch": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "dstEpMatch": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "dstEpTranslated": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "dstEpgMatch": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "info": {
          "$ref": "#/$defs/NatRuleInfoChange"
        },
        "srcEpMatch": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "srcEpTranslated": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "srcEpgMatch": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        }
      },
      "type": "object"
    },
    "MpmPolicyRevisionDiffBody": {
      "properties": {
        "info": {
          "$ref": "#/$defs/PolicyInfoChange"
        },
        "natRules": {
          "items": {
            "$ref": "#/$defs/MpmNatRuleRevisionDiff"
          },
          "type": "array"
        },
        "ruleOrder": {
          "$ref": "#/$defs/PolicyRuleOrderChange"
        },
        "rules": {
          "items": {
            "$ref": "#/$defs/MpmRuleRevisionDiff"
          },
          "type": "array"
        },
        "targets": {
          "$ref": "#/$defs/MpmTargetRelationshipDiff"
        }
      },
      "type": "object"
    },
    "MpmRelationshipRevisionDiff": {
      "properties": {
        "added": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "removed": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "updated": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        }
      },
      "type": "object"
    },
    "MpmRuleRevisionDiff": {
      "properties": {
        "action": {
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE",
            "NO_DIFF"
          ],
          "type": "string"
        },
        "body": {
          "$ref": "#/$defs/MpmRuleRevisionDiffBody"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        }
      },
      "type": "object"
    },
    "MpmRuleRevisionDiffBody": {
      "properties": {
        "apgs": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "aps": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "dstDgs": {
          "$ref": "#/$defs/MpmDynamicGroupRelationshipRevisionDiff"
        },
        "dstEpgs": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "dstEps": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "info": {
          "$ref": "#/$defs/RuleInfoChange"
        },
        "srcDgs": {
          "$ref": "#/$defs/MpmDynamicGroupRelationshipRevisionDiff"
        },
        "srcEpgs": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        },
        "srcEps": {
          "$ref": "#/$defs/MpmRelationshipRevisionDiff"
        }
      },
      "type": "object"
    },
    "MpmTargetRelationshipDiff": {
      "properties": {
        "added": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "removed": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "NatRuleInfoChange": {
      "properties": {
        "appNatType": {
          "enum": [
            "MATCH",
            "STATIC"
          ],
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "dstNatType": {
          "enum": [
            "MATCH",
            "STATIC"
          ],
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "ruleGroup": {
          "type": "string"
        },
        "srcNatType": {
          "enum": [
            "MATCH",
            "STATIC",
            "HIDE"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "PolicyInfoChange": {
      "properties": {
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "policyType": {
          "enum": [
            "SECURITY",
            "GOVERNANCE_PREPEND",
            "GOVERNANCE_APPEND",
            "NAT"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "PolicyRuleOrderChange": {
      "properties": {
        "newOrder": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array"
        },
        "oldOrder": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "RuleInfoChange": {
      "properties": {
        "action": {
          "enum": [
            "PERMIT",
            "DENY"
          ],
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "fullyPinned": {
          "type": "boolean"
        },
        "onClose": {
          "type": "boolean"
        },
        "onInit": {
          "type": "boolean"
        },
        "ruleGroup": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}