Skip to content

Commit

Permalink
[Datafactory] Webhook activity (#5468)
Browse files Browse the repository at this point in the history
* webhook changes

* remove timeout as required

* combine and update web auth definitions

* revert auth type enum change

* Added webhook activity

* update type to string

* Update description
  • Loading branch information
arsunda authored and praries880 committed Mar 28, 2019
1 parent 09e04e7 commit 80591a0
Showing 1 changed file with 64 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
"description": "Redirect incompatible row settings when EnableSkipIncompatibleRow is true.",
"$ref": "#/definitions/RedirectIncompatibleRowSettings"
},
"preserveRules":{
"preserveRules": {
"type": "array",
"items": {
"type": "object",
Expand Down Expand Up @@ -3529,6 +3529,69 @@
"method",
"functionName"
]
},
"WebHookActivity": {
"x-ms-discriminator-value": "WebHook",
"description": "WebHook activity.",
"allOf": [
{
"$ref": "#/definitions/ControlActivity"
}
],
"properties": {
"typeProperties": {
"description": "WebHook activity properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/WebHookActivityTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"WebHookActivityMethod": {
"description": "The list of HTTP methods supported by a WebHook activity.",
"type": "string",
"enum": [
"POST"
],
"x-ms-enum": {
"name": "WebHookActivityMethod",
"modelAsString": true
}
},
"WebHookActivityTypeProperties": {
"description": "WebHook activity type properties.",
"properties": {
"method": {
"description": "Rest API method for target endpoint.",
"$ref": "#/definitions/WebHookActivityMethod"
},
"url": {
"type": "object",
"description": "WebHook activity target endpoint and path. Type: string (or Expression with resultType string)."
},
"timeout": {
"type": "string",
"description": "The timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. Type: string. Pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))."
},
"headers": {
"type": "object",
"description": "Represents the headers that will be sent to the request. For example, to set the language and type on a request: \"headers\" : { \"Accept-Language\": \"en-us\", \"Content-Type\": \"application/json\" }. Type: string (or Expression with resultType string)."
},
"body": {
"type": "object",
"description": "Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string)."
},
"authentication": {
"description": "Authentication method used for calling the endpoint.",
"$ref": "#/definitions/WebActivityAuthentication"
}
},
"required": [
"method",
"url"
]
}
}
}

0 comments on commit 80591a0

Please sign in to comment.