Skip to content

Commit 30d8eb4

Browse files
committed
Metadata file format changes (function.json)
1 parent c0b6f56 commit 30d8eb4

File tree

39 files changed

+437
-479
lines changed

39 files changed

+437
-479
lines changed

function.json

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
{
2-
"bindings": {
3-
"input": [
4-
{
5-
"type": "eventHubTrigger",
6-
"connectionString": "%AzureWebJobsEventHubReceiver%",
7-
"path": "%AzureWebJobsEventHubPath%"
8-
}
9-
],
10-
11-
"output": [
12-
{
13-
"type": "eventHub",
14-
"name" : "output",
15-
"connectionString": "%AzureWebJobsEventHubSender%",
16-
"path": "%AzureWebJobsEventHubPath%"
17-
}
18-
]
19-
}
2+
"bindings": [
3+
{
4+
"type": "eventHubTrigger",
5+
"direction": "in",
6+
"connectionString": "%AzureWebJobsEventHubReceiver%",
7+
"path": "%AzureWebJobsEventHubPath%"
8+
},
9+
{
10+
"type": "eventHub",
11+
"name": "output",
12+
"direction": "out",
13+
"connectionString": "%AzureWebJobsEventHubSender%",
14+
"path": "%AzureWebJobsEventHubPath%"
15+
}
16+
]
2017
}

sample/BlobTrigger/function.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"bindings": {
3-
"input": [
4-
{
5-
"type": "blobTrigger",
6-
"path": "samples-workitems"
7-
}
8-
]
9-
}
2+
"bindings": [
3+
{
4+
"type": "blobTrigger",
5+
"direction": "in",
6+
"path": "samples-workitems"
7+
}
8+
]
109
}
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{
2-
"bindings": {
3-
"input": [
4-
{
5-
"type": "httpTrigger"
6-
}
7-
],
8-
"output": [
9-
{
10-
"type": "http"
11-
}
12-
]
13-
}
2+
"bindings": [
3+
{
4+
"type": "httpTrigger",
5+
"direction": "in"
6+
},
7+
{
8+
"type": "http",
9+
"direction": "out"
10+
}
11+
]
1412
}

sample/HttpTrigger/function.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{
2-
"bindings": {
3-
"input": [
4-
{
5-
"type": "httpTrigger"
6-
}
7-
],
8-
"output": [
9-
{
10-
"type": "http"
11-
}
12-
]
13-
}
2+
"bindings": [
3+
{
4+
"type": "httpTrigger",
5+
"direction": "in"
6+
},
7+
{
8+
"type": "http",
9+
"direction": "out"
10+
}
11+
]
1412
}

sample/ManualTrigger/function.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"bindings": {
3-
"input": [
4-
{
5-
"type": "manualTrigger"
6-
}
7-
]
8-
}
2+
"bindings": [
3+
{
4+
"type": "manualTrigger",
5+
"direction": "in"
6+
}
7+
]
98
}
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"bindings": {
3-
"input": [
4-
{
5-
"type": "queueTrigger",
6-
"queueName": "samples-bash"
7-
}
8-
]
9-
}
2+
"bindings": [
3+
{
4+
"type": "queueTrigger",
5+
"direction": "in",
6+
"queueName": "samples-bash"
7+
}
8+
]
109
}
Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"bindings": {
3-
"input": [
4-
{
5-
"type": "queueTrigger",
6-
"queueName": "samples-batch"
7-
}
8-
],
9-
"output": [
10-
{
11-
"type": "blob",
12-
"name": "output",
13-
"path": "samples-output/{id}"
14-
}
15-
]
16-
}
2+
"bindings": [
3+
{
4+
"type": "queueTrigger",
5+
"direction": "in",
6+
"queueName": "samples-batch"
7+
},
8+
{
9+
"type": "blob",
10+
"name": "output",
11+
"direction": "out",
12+
"path": "samples-output/{id}"
13+
}
14+
]
1715
}
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"bindings": {
3-
"input": [
4-
{
5-
"type": "queueTrigger",
6-
"queueName": "samples-fsharp"
7-
}
8-
]
9-
}
2+
"bindings": [
3+
{
4+
"type": "queueTrigger",
5+
"direction": "in",
6+
"queueName": "samples-fsharp"
7+
}
8+
]
109
}
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"bindings": {
3-
"input": [
4-
{
5-
"type": "queueTrigger",
6-
"queueName": "samples-php"
7-
}
8-
]
9-
}
2+
"bindings": [
3+
{
4+
"type": "queueTrigger",
5+
"direction": "in",
6+
"queueName": "samples-php"
7+
}
8+
]
109
}
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
2-
"bindings": {
3-
"input": [
4-
{
5-
"type": "queueTrigger",
6-
"queueName": "samples-powershell"
7-
}
8-
],
9-
"output": [
10-
{
11-
"type": "table",
12-
"name": "output",
13-
"tableName": "samples",
14-
"partitionKey": "samples",
15-
"rowKey": "%rand-guid%"
16-
}
17-
]
18-
}
2+
"bindings": [
3+
{
4+
"type": "queueTrigger",
5+
"direction": "in",
6+
"queueName": "samples-powershell"
7+
},
8+
{
9+
"type": "table",
10+
"name": "output",
11+
"direction": "out",
12+
"tableName": "samples",
13+
"partitionKey": "samples",
14+
"rowKey": "%rand-guid%"
15+
}
16+
]
1917
}

0 commit comments

Comments
 (0)