{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-template-specs-list-result-schema.json",
  "title": "TemplateSpecsListResult",
  "description": "List of Template Specs.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-template-specs-api-openapi.yml#/components/schemas/TemplateSpecsListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TemplateSpec"
      },
      "description": "An array of Template Specs."
    },
    "nextLink": {
      "readOnly": true,
      "type": "string",
      "description": "The URL to use for getting the next set of results."
    }
  },
  "$defs": {
    "AzureResourceBase": {
      "x-ms-azure-resource": true,
      "type": "object",
      "description": "Common properties for all Azure resources.",
      "properties": {
        "id": {
          "readOnly": true,
          "type": "string",
          "description": "String Id used to locate any resource on Azure."
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Name of this resource."
        },
        "type": {
          "readOnly": true,
          "type": "string",
          "description": "Type of this resource."
        },
        "systemData": {
          "readOnly": true,
          "type": "object",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "$ref": "#/$defs/systemData"
        }
      }
    },
    "TemplateSpec": {
      "required": [
        "location"
      ],
      "type": "object",
      "description": "Template Spec object.",
      "allOf": [
        {
          "$ref": "#/$defs/AzureResourceBase"
        }
      ],
      "properties": {
        "location": {
          "type": "string",
          "x-ms-mutability": [
            "read",
            "create"
          ],
          "description": "The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations."
        },
        "properties": {
          "description": "Template Spec properties.",
          "x-ms-client-flatten": true,
          "$ref": "#/$defs/TemplateSpecProperties"
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "TemplateSpecProperties": {
      "type": "object",
      "description": "Template Spec properties.",
      "properties": {
        "description": {
          "type": "string",
          "maxLength": 4096,
          "description": "Template Spec description."
        },
        "displayName": {
          "type": "string",
          "maxLength": 64,
          "description": "Template Spec display name."
        },
        "metadata": {
          "type": "object",
          "description": "The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs."
        },
        "versions": {
          "type": "object",
          "readOnly": true,
          "description": "High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.",
          "additionalProperties": {
            "$ref": "#/$defs/TemplateSpecVersionInfo"
          }
        }
      }
    },
    "TemplateSpecVersionInfo": {
      "type": "object",
      "description": "High-level information about a Template Spec version.",
      "properties": {
        "description": {
          "type": "string",
          "readOnly": true,
          "description": "Template Spec version description."
        },
        "timeCreated": {
          "type": "string",
          "readOnly": true,
          "format": "date-time",
          "description": "The timestamp of when the version was created."
        },
        "timeModified": {
          "type": "string",
          "readOnly": true,
          "format": "date-time",
          "description": "The timestamp of when the version was last modified."
        }
      }
    },
    "systemData": {
      "description": "Metadata pertaining to creation and last modification of the resource.",
      "type": "object",
      "readOnly": true,
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "The identity that created the resource."
        },
        "createdByType": {
          "type": "string",
          "description": "The type of identity that created the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource creation (UTC)."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The identity that last modified the resource."
        },
        "lastModifiedByType": {
          "type": "string",
          "description": "The type of identity that last modified the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource last modification (UTC)"
        }
      }
    }
  }
}