-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fill plan properties in Http Headers and ServiceBus Message Propertie…
…s instead of body and increased the major version. (#6238) * Fill plan properties in Http Headers and ServiceBus Message Properties instead of body and increased the major version. * correct function spelling * mark headers as not mandatory fields
- Loading branch information
1 parent
c108bfb
commit de36681
Showing
9 changed files
with
201 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,129 +1,137 @@ | ||
{ | ||
"id": "537FDB7A-A601-4537-AA70-92645A2B5CE4", | ||
"name": "AzureFunction", | ||
"friendlyName": "ms-resource:loc.friendlyName", | ||
"description": "ms-resource:loc.description", | ||
"author": "Microsoft Corporation", | ||
"helpMarkDown": "ms-resource:loc.helpMarkDown", | ||
"category": "Tool", | ||
"preview": "true", | ||
"visibility": [ | ||
"Release" | ||
], | ||
"runsOn": [ | ||
"Server", | ||
"ServerGate" | ||
], | ||
"version": { | ||
"Major": 0, | ||
"Minor": 0, | ||
"Patch": 5 | ||
}, | ||
"instanceNameFormat": "ms-resource:loc.instanceNameFormat", | ||
"groups": [{ | ||
"name": "completionOptions", | ||
"displayName": "ms-resource:loc.group.displayName.completionOptions", | ||
"isExpanded": false | ||
} | ||
], | ||
"inputs": [{ | ||
"name": "function", | ||
"type": "string", | ||
"label": "ms-resource:loc.input.label.function", | ||
"defaultValue": "", | ||
"required": true, | ||
"helpMarkDown": "ms-resource:loc.input.help.function" | ||
}, { | ||
"name": "key", | ||
"type": "string", | ||
"label": "ms-resource:loc.input.label.key", | ||
"defaultValue": "", | ||
"required": true, | ||
"helpMarkDown": "ms-resource:loc.input.help.key" | ||
}, { | ||
"name": "method", | ||
"type": "pickList", | ||
"label": "ms-resource:loc.input.label.method", | ||
"required": "true", | ||
"defaultValue": "POST", | ||
"options": { | ||
"OPTIONS": "OPTIONS", | ||
"GET": "GET", | ||
"HEAD": "HEAD", | ||
"POST": "POST", | ||
"PUT": "PUT", | ||
"DELETE": "DELETE", | ||
"TRACE": "TRACE", | ||
"PATCH": "PATCH" | ||
}, | ||
"helpMarkDown": "ms-resource:loc.input.help.method" | ||
}, { | ||
"name": "headers", | ||
"type": "multiLine", | ||
"label": "ms-resource:loc.input.label.headers", | ||
"required": "false", | ||
"defaultValue": "{\n\"Content-Type\":\"application/json\"\n}", | ||
"properties": { | ||
"resizable": "true", | ||
"rows": "3", | ||
"maxLength": "500" | ||
}, | ||
"helpMarkDown": "ms-resource:loc.input.help.headers" | ||
}, { | ||
"name": "queryParameters", | ||
"type": "string", | ||
"label": "ms-resource:loc.input.label.queryParameters", | ||
"defaultValue": "", | ||
"required": false, | ||
"helpMarkDown": "ms-resource:loc.input.help.queryParameters" | ||
}, { | ||
"name": "body", | ||
"type": "multiLine", | ||
"label": "ms-resource:loc.input.label.body", | ||
"required": "false", | ||
"defaultValue": "", | ||
"properties": { | ||
"resizable": "true", | ||
"rows": "3", | ||
"maxLength": "2000" | ||
}, | ||
"visibleRule": "method != GET && method != HEAD", | ||
"helpMarkDown": "ms-resource:loc.input.help.body" | ||
}, { | ||
"name": "waitForCompletion", | ||
"type": "pickList", | ||
"label": "ms-resource:loc.input.label.waitForCompletion", | ||
"defaultValue": "false", | ||
"required": true, | ||
"helpMarkDown": "ms-resource:loc.input.help.waitForCompletion", | ||
"groupName": "completionOptions", | ||
"options": { | ||
"true": "Callback", | ||
"false": "ApiResponse" | ||
} | ||
}, { | ||
"name": "successCriteria", | ||
"type": "string", | ||
"label": "ms-resource:loc.input.label.successCriteria", | ||
"defaultValue": "", | ||
"required": false, | ||
"groupName": "completionOptions", | ||
"visibleRule": "waitForCompletion = false", | ||
"helpMarkDown": "ms-resource:loc.input.help.successCriteria" | ||
} | ||
], | ||
|
||
"execution": { | ||
"HttpRequest": { | ||
"Execute": { | ||
"EndpointId": "", | ||
"EndpointUrl": "$(function)?code=$(key)&$(queryParameters)", | ||
"Method": "$(method)", | ||
"Body": "$(body)", | ||
"Headers": "$(headers)", | ||
"WaitForCompletion": "$(waitForCompletion)", | ||
"Expression": "$(successCriteria)" | ||
} | ||
} | ||
} | ||
} | ||
{ | ||
"id": "537FDB7A-A601-4537-AA70-92645A2B5CE4", | ||
"name": "AzureFunction", | ||
"friendlyName": "ms-resource:loc.friendlyName", | ||
"description": "ms-resource:loc.description", | ||
"author": "Microsoft Corporation", | ||
"helpMarkDown": "ms-resource:loc.helpMarkDown", | ||
"category": "Utility", | ||
"preview": "true", | ||
"visibility": [ | ||
"Release" | ||
], | ||
"runsOn": [ | ||
"Server", | ||
"ServerGate" | ||
], | ||
"version": { | ||
"Major": 1, | ||
"Minor": 0, | ||
"Patch": 0 | ||
}, | ||
"instanceNameFormat": "ms-resource:loc.instanceNameFormat", | ||
"groups": [ | ||
{ | ||
"name": "completionOptions", | ||
"displayName": "ms-resource:loc.group.displayName.completionOptions", | ||
"isExpanded": false | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"name": "function", | ||
"type": "string", | ||
"label": "ms-resource:loc.input.label.function", | ||
"defaultValue": "", | ||
"required": true, | ||
"helpMarkDown": "ms-resource:loc.input.help.function" | ||
}, | ||
{ | ||
"name": "key", | ||
"type": "string", | ||
"label": "ms-resource:loc.input.label.key", | ||
"defaultValue": "", | ||
"required": true, | ||
"helpMarkDown": "ms-resource:loc.input.help.key" | ||
}, | ||
{ | ||
"name": "method", | ||
"type": "pickList", | ||
"label": "ms-resource:loc.input.label.method", | ||
"required": "true", | ||
"defaultValue": "POST", | ||
"options": { | ||
"OPTIONS": "OPTIONS", | ||
"GET": "GET", | ||
"HEAD": "HEAD", | ||
"POST": "POST", | ||
"PUT": "PUT", | ||
"DELETE": "DELETE", | ||
"TRACE": "TRACE", | ||
"PATCH": "PATCH" | ||
}, | ||
"helpMarkDown": "ms-resource:loc.input.help.method" | ||
}, | ||
{ | ||
"name": "headers", | ||
"type": "multiLine", | ||
"label": "ms-resource:loc.input.label.headers", | ||
"required": "false", | ||
"defaultValue": "{\n\"Content-Type\":\"application/json\", \n\"PlanUrl\": \"$(system.CollectionUri)\", \n\"ProjectId\": \"$(system.TeamProjectId)\", \n\"HubName\": \"$(system.HostType)\", \n\"PlanId\": \"$(system.PlanId)\", \n\"JobId\": \"$(system.JobId)\", \n\"TimelineId\": \"$(system.TimelineId)\", \n\"TaskInstanceId\": \"$(system.TaskInstanceId)\", \n\"AuthToken\": \"$(system.AccessToken)\"\n}", | ||
"properties": { | ||
"resizable": "true", | ||
"rows": "10", | ||
"maxLength": "2000" | ||
}, | ||
"helpMarkDown": "ms-resource:loc.input.help.headers" | ||
}, | ||
{ | ||
"name": "queryParameters", | ||
"type": "string", | ||
"label": "ms-resource:loc.input.label.queryParameters", | ||
"defaultValue": "", | ||
"required": false, | ||
"helpMarkDown": "ms-resource:loc.input.help.queryParameters" | ||
}, | ||
{ | ||
"name": "body", | ||
"type": "multiLine", | ||
"label": "ms-resource:loc.input.label.body", | ||
"required": "false", | ||
"defaultValue": "", | ||
"properties": { | ||
"resizable": "true", | ||
"rows": "3", | ||
"maxLength": "2000" | ||
}, | ||
"visibleRule": "method != GET && method != HEAD", | ||
"helpMarkDown": "ms-resource:loc.input.help.body" | ||
}, | ||
{ | ||
"name": "waitForCompletion", | ||
"type": "pickList", | ||
"label": "ms-resource:loc.input.label.waitForCompletion", | ||
"defaultValue": "false", | ||
"required": true, | ||
"helpMarkDown": "ms-resource:loc.input.help.waitForCompletion", | ||
"groupName": "completionOptions", | ||
"options": { | ||
"true": "Callback", | ||
"false": "ApiResponse" | ||
} | ||
}, | ||
{ | ||
"name": "successCriteria", | ||
"type": "string", | ||
"label": "ms-resource:loc.input.label.successCriteria", | ||
"defaultValue": "", | ||
"required": false, | ||
"helpMarkDown": "ms-resource:loc.input.help.successCriteria", | ||
"groupName": "completionOptions", | ||
"visibleRule": "waitForCompletion = false" | ||
} | ||
], | ||
"execution": { | ||
"HttpRequest": { | ||
"Execute": { | ||
"EndpointId": "", | ||
"EndpointUrl": "$(function)?code=$(key)&$(queryParameters)", | ||
"Method": "$(method)", | ||
"Body": "$(body)", | ||
"Headers": "$(headers)", | ||
"WaitForCompletion": "$(waitForCompletion)", | ||
"Expression": "$(successCriteria)" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.