forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Event Grid 2019-01-01 API Version: Swagger and related test examples (A…
…zure#4899) * EventGrid: Update README files to include the current new preview api version 2018-09-preview * Update readme.go.md with related api version info * fix parsing failure due to missing closing ``` in readme.go.md * suppress failure due to known tool bug per approval from adxsr * Fix suppression message * add swagger and fix related examples for EventGrid 2019-01-01 API Version * Fix name mismatch in eventgrid.json in the examples to fix build failure * fix readme files to reflect correct location to eventgrid json file for stable version * remove 2019-01-01 from not dot NET multi-api sections to avoid auto-generating the corresponding SDKs * fix text * fix examples * Fix examples * Suppress failure due to known tool bug * example fixes * Adds suppression to readme
- Loading branch information
1 parent
7fffb5b
commit 51cc8f6
Showing
49 changed files
with
4,163 additions
and
15 deletions.
There are no files selected for viewing
2,209 changes: 2,209 additions & 0 deletions
2,209
...ification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2019-01-01/EventGrid.json
Large diffs are not rendered by default.
Oops, something went wrong.
65 changes: 65 additions & 0 deletions
65
...9-01-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-01", | ||
"scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", | ||
"eventSubscriptionName": "examplesubscription1", | ||
"eventSubscriptionInfo": { | ||
"properties": { | ||
"destination": { | ||
"endpointType": "EventHub", | ||
"properties": { | ||
"resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" | ||
} | ||
}, | ||
"filter": { | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
}, | ||
"deadLetterDestination": { | ||
"endpointType": "StorageBlob", | ||
"properties": { | ||
"resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", | ||
"blobContainerName": "contosocontainer" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"destination": { | ||
"properties": { | ||
"resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1" | ||
}, | ||
"endpointType": "EventHub" | ||
}, | ||
"filter": { | ||
"includedEventTypes": [ | ||
"All" | ||
], | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
}, | ||
"topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", | ||
"provisioningState": "Creating", | ||
"labels": null, | ||
"deadLetterDestination": { | ||
"endpointType": "StorageBlob", | ||
"properties": { | ||
"resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", | ||
"blobContainerName": "contosocontainer" | ||
} | ||
} | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", | ||
"name": "examplesubscription1", | ||
"type": "Microsoft.EventGrid/eventSubscriptions" | ||
|
||
} | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-01", | ||
"scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", | ||
"eventSubscriptionName": "examplesubscription1", | ||
"eventSubscriptionInfo": { | ||
"properties": { | ||
"destination": { | ||
"endpointType": "HybridConnection", | ||
"properties": { | ||
"resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1" | ||
} | ||
}, | ||
"filter": { | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
}, | ||
"deadLetterDestination": { | ||
"endpointType": "StorageBlob", | ||
"properties": { | ||
"resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", | ||
"blobContainerName": "contosocontainer" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"destination": { | ||
"properties": { | ||
"resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1" | ||
}, | ||
"endpointType": "HybridConnection" | ||
}, | ||
"filter": { | ||
"includedEventTypes": [ | ||
"All" | ||
], | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
}, | ||
"topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", | ||
"provisioningState": "Creating", | ||
"labels": null, | ||
"deadLetterDestination": { | ||
"endpointType": "StorageBlob", | ||
"properties": { | ||
"resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", | ||
"blobContainerName": "contosocontainer" | ||
} | ||
} | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", | ||
"name": "examplesubscription1", | ||
"type": "Microsoft.EventGrid/eventSubscriptions" | ||
|
||
} | ||
} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
...-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-01", | ||
"scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", | ||
"eventSubscriptionName": "examplesubscription1", | ||
"eventSubscriptionInfo": { | ||
"properties": { | ||
"destination": { | ||
"endpointType": "StorageQueue", | ||
"properties": { | ||
"resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", | ||
"queueName": "queue1" | ||
} | ||
}, | ||
"filter": { | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
}, | ||
"deadLetterDestination": { | ||
"endpointType": "StorageBlob", | ||
"properties": { | ||
"resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", | ||
"blobContainerName": "contosocontainer" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"destination": { | ||
"properties": { | ||
"resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", | ||
"queueName": "queue1" | ||
}, | ||
"endpointType": "StorageQueue" | ||
}, | ||
"filter": { | ||
"includedEventTypes": [ | ||
"All" | ||
], | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
}, | ||
"topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", | ||
"provisioningState": "Creating", | ||
"labels": null, | ||
"deadLetterDestination": { | ||
"endpointType": "StorageBlob", | ||
"properties": { | ||
"resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", | ||
"blobContainerName": "contosocontainer" | ||
} | ||
} | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", | ||
"name": "examplesubscription1", | ||
"type": "Microsoft.EventGrid/eventSubscriptions" | ||
} | ||
} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
...19-01-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-01", | ||
"scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", | ||
"eventSubscriptionName": "examplesubscription1", | ||
"eventSubscriptionInfo": { | ||
"properties": { | ||
"destination": { | ||
"endpointType": "WebHook", | ||
"properties": { | ||
"endpointUrl": "https://contosofunction.azurewebsites.net/api/HttpTriggerCSharp1?code=<HIDDEN>" | ||
} | ||
}, | ||
"filter": { | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
}, | ||
"deadLetterDestination": { | ||
"endpointType": "StorageBlob", | ||
"properties": { | ||
"resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", | ||
"blobContainerName": "contosocontainer" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"destination": { | ||
"properties": { | ||
"endpointUrl": null, | ||
"endpointBaseUrl": "https://contosofunction.azurewebsites.net/api/HttpTriggerCSharp1" | ||
}, | ||
"endpointType": "WebHook" | ||
}, | ||
"filter": { | ||
"includedEventTypes": [ | ||
"All" | ||
], | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
}, | ||
"topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", | ||
"provisioningState": "Creating", | ||
"labels": null, | ||
"deadLetterDestination": { | ||
"endpointType": "StorageBlob", | ||
"properties": { | ||
"resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg", | ||
"blobContainerName": "contosocontainer" | ||
} | ||
} | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1", | ||
"name": "examplesubscription1", | ||
"type": "Microsoft.EventGrid/eventSubscriptions" | ||
|
||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...ft.EventGrid/stable/2019-01-01/examples/EventSubscriptions_CreateOrUpdateForResource.json
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"parameters": { | ||
"scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", | ||
"eventSubscriptionName": "examplesubscription10", | ||
"api-version": "2019-01-01", | ||
"eventSubscriptionInfo": { | ||
"properties": { | ||
"destination": { | ||
"endpointType": "WebHook", | ||
"properties": { | ||
"endpointUrl": "https://requestb.in/15ksip71" | ||
} | ||
}, | ||
"filter": { | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"destination": { | ||
"properties": { | ||
"endpointBaseUrl": "https://requestb.in/15ksip71" | ||
}, | ||
"endpointType": "WebHook" | ||
}, | ||
"filter": { | ||
"includedEventTypes": [ | ||
"All" | ||
], | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
}, | ||
"provisioningState": "Succeeded", | ||
"topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10", | ||
"name": "examplesubscription10", | ||
"type": "Microsoft.EventGrid/eventSubscriptions" | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...entGrid/stable/2019-01-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"parameters": { | ||
"scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", | ||
"eventSubscriptionName": "examplesubscription2", | ||
"api-version": "2019-01-01", | ||
"eventSubscriptionInfo": { | ||
"properties": { | ||
"destination": { | ||
"endpointType": "WebHook", | ||
"properties": { | ||
"endpointUrl": "https://requestb.in/15ksip71" | ||
} | ||
}, | ||
"filter": { | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"destination": { | ||
"properties": { | ||
"endpointBaseUrl": "https://requestb.in/15ksip71" | ||
}, | ||
"endpointType": "WebHook" | ||
}, | ||
"filter": { | ||
"includedEventTypes": [ | ||
"All" | ||
], | ||
"isSubjectCaseSensitive": false, | ||
"subjectBeginsWith": "ExamplePrefix", | ||
"subjectEndsWith": "ExampleSuffix" | ||
}, | ||
"provisioningState": "Succeeded", | ||
"topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", | ||
"name": "examplesubscription2", | ||
"type": "Microsoft.EventGrid/eventSubscriptions" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.