{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-data-policy-manifest-list-result-schema.json",
  "title": "DataPolicyManifestListResult",
  "description": "The response of a DataPolicyManifest list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-datapolicymanifests-api-openapi.yml#/components/schemas/DataPolicyManifestListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The DataPolicyManifest items on this page",
      "items": {
        "$ref": "#/$defs/DataPolicyManifest"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "Alias": {
      "type": "object",
      "description": "The alias type.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The alias name."
        },
        "paths": {
          "type": "array",
          "description": "The paths for an alias.",
          "items": {
            "$ref": "#/$defs/AliasPath"
          },
          "x-ms-identifiers": []
        },
        "type": {
          "$ref": "#/$defs/AliasType",
          "description": "The type of the alias."
        },
        "defaultPath": {
          "type": "string",
          "description": "The default path for an alias."
        },
        "defaultPattern": {
          "$ref": "#/$defs/AliasPattern",
          "description": "The default pattern for an alias."
        },
        "defaultMetadata": {
          "$ref": "#/$defs/AliasPathMetadata",
          "description": "The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata."
        }
      }
    },
    "AliasPath": {
      "type": "object",
      "description": "The type of the paths for alias.",
      "properties": {
        "path": {
          "type": "string",
          "description": "The path of an alias."
        },
        "apiVersions": {
          "type": "array",
          "description": "The API versions.",
          "items": {
            "type": "string"
          }
        },
        "pattern": {
          "$ref": "#/$defs/AliasPattern",
          "description": "The pattern for an alias path."
        },
        "metadata": {
          "$ref": "#/$defs/AliasPathMetadata",
          "description": "The metadata of the alias path. If missing, fall back to the default metadata of the alias.",
          "readOnly": true
        }
      }
    },
    "AliasPathAttributes": {
      "type": "string",
      "description": "The attributes of the token that the alias path is referring to.",
      "enum": [
        "None",
        "Modifiable"
      ],
      "x-ms-enum": {
        "name": "AliasPathAttributes",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "The token that the alias path is referring to has no attributes."
          },
          {
            "name": "Modifiable",
            "value": "Modifiable",
            "description": "The token that the alias path is referring to is modifiable by policies with 'modify' effect."
          }
        ]
      }
    },
    "AliasPathMetadata": {
      "type": "object",
      "description": "The alias path metadata.",
      "properties": {
        "type": {
          "$ref": "#/$defs/AliasPathTokenType",
          "description": "The type of the token that the alias path is referring to."
        },
        "attributes": {
          "$ref": "#/$defs/AliasPathAttributes",
          "description": "The attributes of the token that the alias path is referring to."
        }
      }
    },
    "AliasPathTokenType": {
      "type": "string",
      "description": "The type of the token that the alias path is referring to.",
      "enum": [
        "NotSpecified",
        "Any",
        "String",
        "Object",
        "Array",
        "Integer",
        "Number",
        "Boolean"
      ],
      "x-ms-enum": {
        "name": "AliasPathTokenType",
        "modelAsString": true,
        "values": [
          {
            "name": "NotSpecified",
            "value": "NotSpecified",
            "description": "The token type is not specified."
          },
          {
            "name": "Any",
            "value": "Any",
            "description": "The token type can be anything."
          },
          {
            "name": "String",
            "value": "String",
            "description": "The token type is string."
          },
          {
            "name": "Object",
            "value": "Object",
            "description": "The token type is object."
          },
          {
            "name": "Array",
            "value": "Array",
            "description": "The token type is array."
          },
          {
            "name": "Integer",
            "value": "Integer",
            "description": "The token type is integer."
          },
          {
            "name": "Number",
            "value": "Number",
            "description": "The token type is number."
          },
          {
            "name": "Boolean",
            "value": "Boolean",
            "description": "The token type is boolean."
          }
        ]
      }
    },
    "AliasPattern": {
      "type": "object",
      "description": "The type of the pattern for an alias path.",
      "properties": {
        "phrase": {
          "type": "string",
          "description": "The alias pattern phrase."
        },
        "variable": {
          "type": "string",
          "description": "The alias pattern variable."
        },
        "type": {
          "$ref": "#/$defs/AliasPatternType",
          "description": "The pattern for an alias path."
        }
      }
    },
    "AliasPatternType": {
      "type": "string",
      "description": "The type of alias pattern.",
      "enum": [
        "NotSpecified",
        "Extract"
      ],
      "x-ms-enum": {
        "name": "AliasPatternType",
        "modelAsString": false,
        "values": [
          {
            "name": "NotSpecified",
            "value": "NotSpecified",
            "description": "NotSpecified is not allowed."
          },
          {
            "name": "Extract",
            "value": "Extract",
            "description": "Extract is the only allowed value."
          }
        ]
      }
    },
    "AliasType": {
      "type": "string",
      "description": "The type of the alias.",
      "enum": [
        "NotSpecified",
        "PlainText",
        "Mask"
      ],
      "x-ms-enum": {
        "name": "AliasType",
        "modelAsString": false,
        "values": [
          {
            "name": "NotSpecified",
            "value": "NotSpecified",
            "description": "Alias type is unknown (same as not providing alias type)."
          },
          {
            "name": "PlainText",
            "value": "PlainText",
            "description": "Alias value is not secret."
          },
          {
            "name": "Mask",
            "value": "Mask",
            "description": "Alias value is secret."
          }
        ]
      }
    },
    "DataEffect": {
      "type": "object",
      "description": "The data effect definition.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The data effect name."
        },
        "detailsSchema": {
          "description": "The data effect details schema."
        }
      }
    },
    "DataManifestCustomResourceFunctionDefinition": {
      "type": "object",
      "description": "The custom resource function definition.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The function name as it will appear in the policy rule. eg - 'vault'."
        },
        "fullyQualifiedResourceType": {
          "type": "string",
          "description": "The fully qualified control plane resource type that this function represents. eg - 'Microsoft.KeyVault/vaults'."
        },
        "defaultProperties": {
          "type": "array",
          "description": "The top-level properties that can be selected on the function's output. eg - [ \\\"name\\\", \\\"location\\\" ] if vault().name and vault().location are supported.",
          "items": {
            "type": "string"
          }
        },
        "allowCustomProperties": {
          "type": "boolean",
          "description": "A value indicating whether the custom properties within the property bag are allowed. Needs api-version to be specified in the policy rule eg - vault('2019-06-01')."
        }
      }
    },
    "DataManifestResourceFunctionsDefinition": {
      "type": "object",
      "description": "The resource functions supported by a manifest.",
      "properties": {
        "standard": {
          "type": "array",
          "description": "The standard resource functions (subscription and/or resourceGroup).",
          "items": {
            "type": "string"
          }
        },
        "custom": {
          "type": "array",
          "description": "An array of data manifest custom resource definitions.",
          "items": {
            "$ref": "#/$defs/DataManifestCustomResourceFunctionDefinition"
          },
          "x-ms-identifiers": [
            "name",
            "fullyQualifiedResourceType"
          ]
        }
      }
    },
    "DataPolicyManifest": {
      "type": "object",
      "description": "The data policy manifest.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/DataPolicyManifestProperties",
          "description": "The resource-specific properties for this resource.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "DataPolicyManifestProperties": {
      "type": "object",
      "description": "The properties of the data policy manifest.",
      "properties": {
        "namespaces": {
          "type": "array",
          "description": "The list of namespaces for the data policy manifest.",
          "items": {
            "type": "string"
          }
        },
        "policyMode": {
          "type": "string",
          "description": "The policy mode of the data policy manifest."
        },
        "isBuiltInOnly": {
          "type": "boolean",
          "description": "A value indicating whether policy mode is allowed only in built-in definitions."
        },
        "resourceTypeAliases": {
          "type": "array",
          "description": "An array of resource type aliases.",
          "items": {
            "$ref": "#/$defs/ResourceTypeAliases"
          },
          "x-ms-identifiers": [
            "resourceType"
          ]
        },
        "effects": {
          "type": "array",
          "description": "The effect definition.",
          "items": {
            "$ref": "#/$defs/DataEffect"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "fieldValues": {
          "type": "array",
          "description": "The non-alias field accessor values that can be used in the policy rule.",
          "items": {
            "type": "string"
          }
        },
        "resourceFunctions": {
          "$ref": "#/$defs/DataManifestResourceFunctionsDefinition",
          "description": "The resource functions definition specified in the data manifest.",
          "x-ms-client-flatten": true
        }
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "ResourceTypeAliases": {
      "type": "object",
      "description": "The resource type aliases definition.",
      "properties": {
        "resourceType": {
          "type": "string",
          "description": "The resource type name."
        },
        "aliases": {
          "type": "array",
          "description": "The aliases for property names.",
          "items": {
            "$ref": "#/$defs/Alias"
          },
          "x-ms-identifiers": [
            "name"
          ]
        }
      }
    }
  }
}