{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-policy-set-definition-list-result-schema.json",
  "title": "PolicySetDefinitionListResult",
  "description": "The response of a PolicySetDefinition list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-policysetdefinitions-api-openapi.yml#/components/schemas/PolicySetDefinitionListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The PolicySetDefinition items on this page",
      "items": {
        "$ref": "#/$defs/PolicySetDefinition"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "ParameterDefinitionsValue": {
      "type": "object",
      "description": "The definition of a parameter that can be provided to the policy.",
      "properties": {
        "type": {
          "$ref": "#/$defs/ParameterType",
          "description": "The data type of the parameter."
        },
        "allowedValues": {
          "type": "array",
          "description": "The allowed values for the parameter.",
          "items": {}
        },
        "defaultValue": {
          "description": "The default value for the parameter if no value is provided."
        },
        "schema": {
          "description": "Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/."
        },
        "metadata": {
          "$ref": "#/$defs/ParameterDefinitionsValueMetadata",
          "description": "General metadata for the parameter."
        }
      }
    },
    "ParameterDefinitionsValueMetadata": {
      "type": "object",
      "description": "General metadata for the parameter.",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "The display name for the parameter."
        },
        "description": {
          "type": "string",
          "description": "The description of the parameter."
        },
        "strongType": {
          "type": "string",
          "description": "Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from."
        },
        "assignPermissions": {
          "type": "boolean",
          "description": "Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope."
        }
      },
      "additionalProperties": {}
    },
    "ParameterType": {
      "type": "string",
      "description": "The data type of the parameter.",
      "enum": [
        "String",
        "Array",
        "Object",
        "Boolean",
        "Integer",
        "Float",
        "DateTime"
      ],
      "x-ms-enum": {
        "name": "ParameterType",
        "modelAsString": true,
        "values": [
          {
            "name": "String",
            "value": "String",
            "description": "The string parameter type."
          },
          {
            "name": "Array",
            "value": "Array",
            "description": "The array parameter type."
          },
          {
            "name": "Object",
            "value": "Object",
            "description": "The object parameter type."
          },
          {
            "name": "Boolean",
            "value": "Boolean",
            "description": "The boolean parameter type."
          },
          {
            "name": "Integer",
            "value": "Integer",
            "description": "The integer parameter type."
          },
          {
            "name": "Float",
            "value": "Float",
            "description": "The float parameter type."
          },
          {
            "name": "DateTime",
            "value": "DateTime",
            "description": "The date-time parameter type."
          }
        ]
      }
    },
    "ParameterValuesValue": {
      "type": "object",
      "description": "The value of a parameter.",
      "properties": {
        "value": {
          "description": "The value of the parameter."
        }
      }
    },
    "PolicyDefinitionGroup": {
      "type": "object",
      "description": "The policy definition group.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the group."
        },
        "displayName": {
          "type": "string",
          "description": "The group's display name."
        },
        "category": {
          "type": "string",
          "description": "The group's category."
        },
        "description": {
          "type": "string",
          "description": "The group's description."
        },
        "additionalMetadataId": {
          "type": "string",
          "description": "A resource ID of a resource that contains additional metadata about the group."
        }
      },
      "required": [
        "name"
      ]
    },
    "PolicyDefinitionReference": {
      "type": "object",
      "description": "The policy definition reference.",
      "properties": {
        "policyDefinitionId": {
          "type": "string",
          "description": "The ID of the policy definition or policy set definition."
        },
        "definitionVersion": {
          "type": "string",
          "description": "The version of the policy definition to use."
        },
        "latestDefinitionVersion": {
          "type": "string",
          "description": "The latest version of the policy definition available. This is only present if requested via the $expand query parameter.",
          "readOnly": true
        },
        "effectiveDefinitionVersion": {
          "type": "string",
          "description": "The effective version of the policy definition in use. This is only present if requested via the $expand query parameter.",
          "readOnly": true
        },
        "parameters": {
          "type": "object",
          "description": "The parameter values for the referenced policy rule. The keys are the parameter names.",
          "additionalProperties": {
            "$ref": "#/$defs/ParameterValuesValue"
          }
        },
        "policyDefinitionReferenceId": {
          "type": "string",
          "description": "A unique id (within the policy set definition) for this policy definition reference."
        },
        "groupNames": {
          "type": "array",
          "description": "The name of the groups that this policy definition reference belongs to.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "policyDefinitionId"
      ]
    },
    "PolicySetDefinition": {
      "type": "object",
      "description": "The policy set definition.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PolicySetDefinitionProperties",
          "description": "The policy set definition properties.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "PolicySetDefinitionProperties": {
      "type": "object",
      "description": "The policy set definition properties.",
      "properties": {
        "policyType": {
          "$ref": "#/$defs/PolicyType",
          "description": "The type of policy set definition. Possible values are NotSpecified, BuiltIn, Custom, and Static."
        },
        "displayName": {
          "type": "string",
          "description": "The display name of the policy set definition."
        },
        "description": {
          "type": "string",
          "description": "The policy set definition description."
        },
        "metadata": {
          "description": "The policy set definition metadata.  Metadata is an open ended object and is typically a collection of key value pairs."
        },
        "parameters": {
          "type": "object",
          "description": "The policy set definition parameters that can be used in policy definition references.",
          "additionalProperties": {
            "$ref": "#/$defs/ParameterDefinitionsValue"
          }
        },
        "policyDefinitions": {
          "type": "array",
          "description": "An array of policy definition references.",
          "items": {
            "$ref": "#/$defs/PolicyDefinitionReference"
          },
          "x-ms-identifiers": [
            "policyDefinitionReferenceId"
          ]
        },
        "policyDefinitionGroups": {
          "type": "array",
          "description": "The metadata describing groups of policy definition references within the policy set definition.",
          "items": {
            "$ref": "#/$defs/PolicyDefinitionGroup"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "version": {
          "type": "string",
          "description": "The policy set definition version in #.#.# format."
        },
        "versions": {
          "type": "array",
          "description": "A list of available versions for this policy set definition.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "policyDefinitions"
      ]
    },
    "PolicyType": {
      "type": "string",
      "description": "The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.",
      "enum": [
        "NotSpecified",
        "BuiltIn",
        "Custom",
        "Static"
      ],
      "x-ms-enum": {
        "name": "PolicyType",
        "modelAsString": true,
        "values": [
          {
            "name": "NotSpecified",
            "value": "NotSpecified",
            "description": "The not specified policy definition type."
          },
          {
            "name": "BuiltIn",
            "value": "BuiltIn",
            "description": "The built in policy definition type."
          },
          {
            "name": "Custom",
            "value": "Custom",
            "description": "The custom policy definition type."
          },
          {
            "name": "Static",
            "value": "Static",
            "description": "The static policy definition type."
          }
        ]
      }
    },
    "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"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    }
  }
}