Skip to content

Commit

Permalink
Metadata file format changes (function.json)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewc committed Mar 1, 2016
1 parent c0b6f56 commit 30d8eb4
Show file tree
Hide file tree
Showing 39 changed files with 437 additions and 479 deletions.
33 changes: 15 additions & 18 deletions function.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
{
"bindings": {
"input": [
{
"type": "eventHubTrigger",
"connectionString": "%AzureWebJobsEventHubReceiver%",
"path": "%AzureWebJobsEventHubPath%"
}
],

"output": [
{
"type": "eventHub",
"name" : "output",
"connectionString": "%AzureWebJobsEventHubSender%",
"path": "%AzureWebJobsEventHubPath%"
}
]
}
"bindings": [
{
"type": "eventHubTrigger",
"direction": "in",
"connectionString": "%AzureWebJobsEventHubReceiver%",
"path": "%AzureWebJobsEventHubPath%"
},
{
"type": "eventHub",
"name": "output",
"direction": "out",
"connectionString": "%AzureWebJobsEventHubSender%",
"path": "%AzureWebJobsEventHubPath%"
}
]
}
15 changes: 7 additions & 8 deletions sample/BlobTrigger/function.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"bindings": {
"input": [
{
"type": "blobTrigger",
"path": "samples-workitems"
}
]
}
"bindings": [
{
"type": "blobTrigger",
"direction": "in",
"path": "samples-workitems"
}
]
}
22 changes: 10 additions & 12 deletions sample/HttpTrigger-Batch/function.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"bindings": {
"input": [
{
"type": "httpTrigger"
}
],
"output": [
{
"type": "http"
}
]
}
"bindings": [
{
"type": "httpTrigger",
"direction": "in"
},
{
"type": "http",
"direction": "out"
}
]
}
22 changes: 10 additions & 12 deletions sample/HttpTrigger/function.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"bindings": {
"input": [
{
"type": "httpTrigger"
}
],
"output": [
{
"type": "http"
}
]
}
"bindings": [
{
"type": "httpTrigger",
"direction": "in"
},
{
"type": "http",
"direction": "out"
}
]
}
13 changes: 6 additions & 7 deletions sample/ManualTrigger/function.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"bindings": {
"input": [
{
"type": "manualTrigger"
}
]
}
"bindings": [
{
"type": "manualTrigger",
"direction": "in"
}
]
}
15 changes: 7 additions & 8 deletions sample/QueueTrigger-Bash/function.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"bindings": {
"input": [
{
"type": "queueTrigger",
"queueName": "samples-bash"
}
]
}
"bindings": [
{
"type": "queueTrigger",
"direction": "in",
"queueName": "samples-bash"
}
]
}
28 changes: 13 additions & 15 deletions sample/QueueTrigger-Batch/function.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"bindings": {
"input": [
{
"type": "queueTrigger",
"queueName": "samples-batch"
}
],
"output": [
{
"type": "blob",
"name": "output",
"path": "samples-output/{id}"
}
]
}
"bindings": [
{
"type": "queueTrigger",
"direction": "in",
"queueName": "samples-batch"
},
{
"type": "blob",
"name": "output",
"direction": "out",
"path": "samples-output/{id}"
}
]
}
15 changes: 7 additions & 8 deletions sample/QueueTrigger-FSharp/function.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"bindings": {
"input": [
{
"type": "queueTrigger",
"queueName": "samples-fsharp"
}
]
}
"bindings": [
{
"type": "queueTrigger",
"direction": "in",
"queueName": "samples-fsharp"
}
]
}
15 changes: 7 additions & 8 deletions sample/QueueTrigger-Php/function.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"bindings": {
"input": [
{
"type": "queueTrigger",
"queueName": "samples-php"
}
]
}
"bindings": [
{
"type": "queueTrigger",
"direction": "in",
"queueName": "samples-php"
}
]
}
32 changes: 15 additions & 17 deletions sample/QueueTrigger-Powershell/function.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{
"bindings": {
"input": [
{
"type": "queueTrigger",
"queueName": "samples-powershell"
}
],
"output": [
{
"type": "table",
"name": "output",
"tableName": "samples",
"partitionKey": "samples",
"rowKey": "%rand-guid%"
}
]
}
"bindings": [
{
"type": "queueTrigger",
"direction": "in",
"queueName": "samples-powershell"
},
{
"type": "table",
"name": "output",
"direction": "out",
"tableName": "samples",
"partitionKey": "samples",
"rowKey": "%rand-guid%"
}
]
}
13 changes: 6 additions & 7 deletions sample/QueueTrigger-Python/function.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{
"bindings": {
"input": [
"bindings": [
{
"type": "queueTrigger",
"direction": "in",
"queueName": "samples-python"
},
{
"type": "table",
"name": "input",
"direction": "in",
"tableName": "samples",
"partitionKey": "samples",
"take": 5,
"filter": "status eq '0'"
}
],
"output": [
},
{
"type": "blob",
"name": "output",
"direction": "out",
"path": "samples-output/{id}"
}
]
}
]
}
28 changes: 13 additions & 15 deletions sample/QueueTrigger/function.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"bindings": {
"input": [
{
"type": "queueTrigger",
"queueName": "samples-workitems"
}
],
"output": [
{
"type": "blob",
"name": "receipt",
"path": "samples-workitems/{id}"
}
]
}
"bindings": [
{
"type": "queueTrigger",
"direction": "in",
"queueName": "samples-workitems"
},
{
"type": "blob",
"name": "receipt",
"direction": "out",
"path": "samples-workitems/{id}"
}
]
}
39 changes: 19 additions & 20 deletions sample/ResizeImage/function.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{
"bindings": {
"input": [
{
"type": "queueTrigger",
"queueName": "image-resize"
},
{
"type": "blob",
"name": "original",
"path": "images-original/{name}"
}
],
"output": [
{
"type": "blob",
"name": "resized",
"path": "images-resized/{name}"
}
]
}
"bindings": [
{
"type": "queueTrigger",
"direction": "in",
"queueName": "image-resize"
},
{
"type": "blob",
"name": "original",
"direction": "in",
"path": "images-original/{name}"
},
{
"type": "blob",
"name": "resized",
"direction": "out",
"path": "images-resized/{name}"
}
]
}
28 changes: 13 additions & 15 deletions sample/ServiceBusQueueTrigger/function.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"bindings": {
"input": [
{
"type": "serviceBusTrigger",
"queueName": "samples-input"
}
],
"output": [
{
"type": "serviceBus",
"name": "message",
"queueName": "samples-input"
}
]
}
"bindings": [
{
"type": "serviceBusTrigger",
"direction": "in",
"queueName": "samples-input"
},
{
"type": "serviceBus",
"name": "message",
"direction": "out",
"queueName": "samples-input"
}
]
}
Loading

0 comments on commit 30d8eb4

Please sign in to comment.