{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-data-factory/json-schema/microsoft-azure-data-factory-trigger-resource-schema.json",
  "title": "TriggerResource",
  "description": "Trigger resource type.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-data-factory-trigger-api-openapi.yml#/components/schemas/TriggerResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/Trigger",
      "description": "Properties of the trigger."
    },
    "etag": {
      "type": "string",
      "description": "\"If etag is provided in the response body, it may also be provided as a header per the normal etag convention.  Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\")",
      "readOnly": true
    }
  },
  "required": [
    "properties"
  ],
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "Trigger": {
      "type": "object",
      "description": "Azure data factory nested object which contains information about creating pipeline run",
      "properties": {
        "type": {
          "type": "string",
          "description": "Trigger type."
        },
        "description": {
          "type": "string",
          "description": "Trigger description."
        },
        "runtimeState": {
          "$ref": "#/$defs/TriggerRuntimeState",
          "description": "Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger.",
          "readOnly": true
        },
        "annotations": {
          "type": "array",
          "description": "List of tags that can be used for describing the trigger.",
          "items": {}
        }
      },
      "required": [
        "type"
      ],
      "additionalProperties": {}
    },
    "TriggerRuntimeState": {
      "type": "string",
      "description": "Enumerates possible state of Triggers.",
      "enum": [
        "Started",
        "Stopped",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "TriggerRuntimeState",
        "modelAsString": true,
        "values": [
          {
            "name": "Started",
            "value": "Started",
            "description": "Started"
          },
          {
            "name": "Stopped",
            "value": "Stopped",
            "description": "Stopped"
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Disabled"
          }
        ]
      }
    }
  }
}