-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EventGrid management APIs: Swagger for new Preview API version (#3765)
* 1) Fix for linter error "Properties of a PATCH request body must not be default-valued. PATCH operation: 'EventSubscriptions_Update' Model Definition: 'EventSubscriptionUpdateParameters' Property: 'eventDeliverySchema'". 2) Updated the default value of EventDeliverySchema to the correct value used by the service. * Initial version of 2018-09-15-preview API version (clone of 2018-05-01-preview to make it easier to view the diffs). * Swagger changes for 2018-09-15-preview API version.
- Loading branch information
1 parent
5ceb33d
commit 6b53dc9
Showing
54 changed files
with
5,352 additions
and
0 deletions.
There are no files selected for viewing
3,306 changes: 3,306 additions & 0 deletions
3,306
.../eventgrid/resource-manager/Microsoft.EventGrid/preview/2018-09-15-preview/EventGrid.json
Large diffs are not rendered by default.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
...rce-manager/Microsoft.EventGrid/preview/2018-09-15-preview/examples/DomainTopics_Get.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,21 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"domainName": "exampledomain2", | ||
"topicName": "topic1", | ||
"api-version": "2018-09-15-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2/topics/topic1", | ||
"location": "westcentralus", | ||
"name": "topic1", | ||
"type": "Microsoft.EventGrid/domains/topics" | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...er/Microsoft.EventGrid/preview/2018-09-15-preview/examples/DomainTopics_ListByDomain.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,43 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"api-version": "2018-09-15-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", | ||
"location": "westus2", | ||
"name": "exampledomain1", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"type": "Microsoft.EventGrid/domains" | ||
}, | ||
{ | ||
"properties": { | ||
"endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", | ||
"location": "westcentralus", | ||
"name": "exampledomain2", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"type": "Microsoft.EventGrid/domains" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...nager/Microsoft.EventGrid/preview/2018-09-15-preview/examples/Domains_CreateOrUpdate.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,33 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"domainName": "exampledomain1", | ||
"api-version": "2018-09-15-preview", | ||
"domainInfo": { | ||
"location": "westus2", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", | ||
"location": "westus2", | ||
"name": "exampledomain1", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"type": "Microsoft.EventGrid/domains" | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ource-manager/Microsoft.EventGrid/preview/2018-09-15-preview/examples/Domains_Delete.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,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"domainName" : "exampledomain1", | ||
"api-version": "2018-09-15-preview" | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...resource-manager/Microsoft.EventGrid/preview/2018-09-15-preview/examples/Domains_Get.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,26 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"domainName": "exampledomain2", | ||
"api-version": "2018-09-15-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", | ||
"location": "westcentralus", | ||
"name": "exampledomain2", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"type": "Microsoft.EventGrid/domains" | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
.../Microsoft.EventGrid/preview/2018-09-15-preview/examples/Domains_ListByResourceGroup.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,43 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"api-version": "2018-09-15-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", | ||
"location": "westus2", | ||
"name": "exampledomain1", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"type": "Microsoft.EventGrid/domains" | ||
}, | ||
{ | ||
"properties": { | ||
"endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", | ||
"location": "westcentralus", | ||
"name": "exampledomain2", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"type": "Microsoft.EventGrid/domains" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...r/Microsoft.EventGrid/preview/2018-09-15-preview/examples/Domains_ListBySubscription.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,42 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"api-version": "2018-09-15-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", | ||
"location": "westus2", | ||
"name": "exampledomain1", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"type": "Microsoft.EventGrid/domains" | ||
}, | ||
{ | ||
"properties": { | ||
"endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2", | ||
"location": "westcentralus", | ||
"name": "exampledomain2", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"type": "Microsoft.EventGrid/domains" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...Microsoft.EventGrid/preview/2018-09-15-preview/examples/Domains_ListSharedAccessKeys.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,16 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"domainName" : "exampledomain2", | ||
"api-version": "2018-09-15-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", | ||
"key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...anager/Microsoft.EventGrid/preview/2018-09-15-preview/examples/Domains_RegenerateKey.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,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"domainName" : "exampledomain2", | ||
"api-version": "2018-09-15-preview", | ||
"regenerateKeyRequest": { | ||
"keyName": "key1" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=", | ||
"key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA=" | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ource-manager/Microsoft.EventGrid/preview/2018-09-15-preview/examples/Domains_Update.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,32 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4", | ||
"resourceGroupName": "examplerg", | ||
"domainName": "exampledomain1", | ||
"api-version": "2018-09-15-preview", | ||
"domainUpdateParameters": { | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1", | ||
"location": "westus2", | ||
"name": "exampledomain1", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"type": "Microsoft.EventGrid/domains" | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
.../preview/2018-09-15-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic.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": { | ||
"api-version": "2018-09-15-preview", | ||
"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" | ||
} | ||
} | ||
} | ||
}, | ||
"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.eventgrid/topics/exampletopic1" | ||
}, | ||
"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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.