Skip to content

Commit

Permalink
[Datafactory] Add Webhook Activity to Azure Data Factory (#5007)
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
  • Loading branch information
arsunda authored and jhendrixMSFT committed Jan 10, 2019
1 parent 8a36f39 commit b7c7e2c
Showing 1 changed file with 71 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@
}
}
},
"SqlSource": {
"SqlSource": {
"description": "A copy activity SQL source.",
"type": "object",
"allOf": [
Expand Down Expand Up @@ -1134,7 +1134,7 @@
"description": "A query to retrieve data from source. Type: string (or Expression with resultType string)."
}
}
} ,
},
"AmazonRedshiftSource": {
"description": "A copy activity source for Amazon Redshift Source.",
"type": "object",
Expand Down Expand Up @@ -2152,7 +2152,7 @@
},
"SSISPackageLocation": {
"description": "SSIS package location.",
"type" : "object",
"type": "object",
"properties": {
"packagePath": {
"description": "The SSIS package path. Type: string (or Expression with resultType string).",
Expand Down Expand Up @@ -2374,16 +2374,16 @@
"type": "object",
"description": "If true, files or sub-folders under current folder path will be deleted recursively. Default is false. Type: boolean (or Expression with resultType boolean)."
},
"maxConcurrentConnections":{
"maxConcurrentConnections": {
"type": "integer",
"minimum": 1,
"description": "The max concurrent connections to connect data source at the same time."
},
"enableLogging":{
"type":"object",
"enableLogging": {
"type": "object",
"description": "Whether to record detailed logs of delete-activity execution. Default value is false. Type: boolean (or Expression with resultType boolean)."
},
"logStorageSettings":{
"logStorageSettings": {
"description": "Log storage settings customer need to provide when enableLogging is true.",
"$ref": "#/definitions/LogStorageSettings"
},
Expand Down Expand Up @@ -2540,6 +2540,69 @@
"url"
]
},
"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": "object",
"description": "Specifies the timeout within which the webhook should be called back. If there is no value specified, it takes the value of TimeSpan.FromMinutes(10) which is 10 minutes as default. Type: string (or Expression with resultType 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"
]
},
"GetMetadataActivity": {
"x-ms-discriminator-value": "GetMetadata",
"description": "Activity to get metadata of dataset",
Expand Down Expand Up @@ -3162,4 +3225,4 @@
}
}
}
}
}

0 comments on commit b7c7e2c

Please sign in to comment.