Skip to content

Commit 5582a35

Browse files
VidyaKukkelmazuel
andauthored
{EventGrid}: Update data-plane Swagger to include aeg-channel-name in header (#17606)
* Update EventGrid data-plane Swagger to include aeg-channel-name in header * Update EventGrid data-plane SDK with aeg-channel-name header requirement * Addressed review comments * Prettier fix * Encoding single quote in description * Fix apostrophe * Remove apos for simplicity Co-authored-by: Laurent Mazuel <lmazuel@microsoft.com>
1 parent fba79b5 commit 5582a35

File tree

55 files changed

+1028
-1013
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1028
-1013
lines changed
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"id":"9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
3-
"eventType":"Microsoft.Cache.ExportRDBCompleted",
4-
"topic":"/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
5-
"data":{
6-
"name":"ExportRDBCompleted",
7-
"timestamp":"2020-12-09T21:50:19.9995668+00:00",
8-
"status":"Succeeded"},
9-
"subject":"ExportRDBCompleted",
10-
"dataversion":"1.0",
11-
"metadataVersion":"1",
12-
"eventTime":"2020-12-09T21:50:19.9995668+00:00"}
2+
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
3+
"eventType": "Microsoft.Cache.ExportRDBCompleted",
4+
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
5+
"data": {
6+
"name": "ExportRDBCompleted",
7+
"timestamp": "2020-12-09T21:50:19.9995668+00:00",
8+
"status": "Succeeded"
9+
},
10+
"subject": "ExportRDBCompleted",
11+
"dataversion": "1.0",
12+
"metadataVersion": "1",
13+
"eventTime": "2020-12-09T21:50:19.9995668+00:00"
14+
}
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"id":"9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
3-
"eventType":"Microsoft.Cache.ImportRDBCompleted",
4-
"topic":"/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
5-
"data":{
6-
"name":"ImportRDBCompleted",
7-
"timestamp":"2020-12-09T21:50:19.9995668+00:00",
8-
"status":"Succeeded"},
9-
"subject":"ImportRDBCompleted",
10-
"dataversion":"1.0",
11-
"metadataVersion":"1",
12-
"eventTime":"2020-12-09T21:50:19.9995668+00:00"}
2+
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
3+
"eventType": "Microsoft.Cache.ImportRDBCompleted",
4+
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
5+
"data": {
6+
"name": "ImportRDBCompleted",
7+
"timestamp": "2020-12-09T21:50:19.9995668+00:00",
8+
"status": "Succeeded"
9+
},
10+
"subject": "ImportRDBCompleted",
11+
"dataversion": "1.0",
12+
"metadataVersion": "1",
13+
"eventTime": "2020-12-09T21:50:19.9995668+00:00"
14+
}
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"id":"9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
3-
"eventType":"Microsoft.Cache.PatchingCompleted",
4-
"topic":"/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
5-
"data":{
6-
"name":"PatchingCompleted",
7-
"timestamp":"2020-12-09T21:50:19.9995668+00:00",
8-
"status":"Succeeded"},
9-
"subject":"PatchingCompleted",
10-
"dataversion":"1.0",
11-
"metadataVersion":"1",
12-
"eventTime":"2020-12-09T21:50:19.9995668+00:00"}
2+
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
3+
"eventType": "Microsoft.Cache.PatchingCompleted",
4+
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
5+
"data": {
6+
"name": "PatchingCompleted",
7+
"timestamp": "2020-12-09T21:50:19.9995668+00:00",
8+
"status": "Succeeded"
9+
},
10+
"subject": "PatchingCompleted",
11+
"dataversion": "1.0",
12+
"metadataVersion": "1",
13+
"eventTime": "2020-12-09T21:50:19.9995668+00:00"
14+
}
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"id":"9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
3-
"eventType":"Microsoft.Cache.ScalingCompleted",
4-
"topic":"/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
5-
"data":{
6-
"name":"ScalingCompleted",
7-
"timestamp":"2020-12-09T21:50:19.9995668+00:00",
8-
"status":"Succeeded"},
9-
"subject":"ScalingCompleted",
10-
"dataversion":"1.0",
11-
"metadataVersion":"1",
12-
"eventTime":"2020-12-09T21:50:19.9995668+00:00"}
2+
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
3+
"eventType": "Microsoft.Cache.ScalingCompleted",
4+
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
5+
"data": {
6+
"name": "ScalingCompleted",
7+
"timestamp": "2020-12-09T21:50:19.9995668+00:00",
8+
"status": "Succeeded"
9+
},
10+
"subject": "ScalingCompleted",
11+
"dataversion": "1.0",
12+
"metadataVersion": "1",
13+
"eventTime": "2020-12-09T21:50:19.9995668+00:00"
14+
}
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
{
2-
"id": "23cfcc13-33f2-4ae1-8d23-b5015b05302b",
3-
"topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
4-
"subject": "thread/{thread-id}/sender/{rawId}/recipient/{rawId}",
5-
"data": {
6-
"deleteTime": "2021-02-19T00:43:10.14Z",
7-
"messageId": "1613695388152",
8-
"senderId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e",
9-
"senderCommunicationIdentifier": {
10-
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e",
11-
"communicationUser": {
12-
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e"
13-
}
14-
},
15-
"senderDisplayName": "Bob(Admin)",
16-
"composeTime": "2021-02-19T00:43:08.152Z",
17-
"type": "Text",
18-
"version": 1613695390361,
19-
"recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
20-
"recipientCommunicationIdentifier": {
21-
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
22-
"communicationUser": {
23-
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f"
24-
}
25-
},
26-
"transactionId": "fFs4InlBn0O/0WyhfQZVSQ.1.1.2.1.1867776045.1.4",
27-
"threadId": "19:48899258eec941e7a281e03edc8f4964@thread.v2"
2+
"id": "23cfcc13-33f2-4ae1-8d23-b5015b05302b",
3+
"topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
4+
"subject": "thread/{thread-id}/sender/{rawId}/recipient/{rawId}",
5+
"data": {
6+
"deleteTime": "2021-02-19T00:43:10.14Z",
7+
"messageId": "1613695388152",
8+
"senderId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e",
9+
"senderCommunicationIdentifier": {
10+
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e",
11+
"communicationUser": {
12+
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e"
13+
}
2814
},
29-
"eventType": "Microsoft.Communication.ChatMessageDeleted",
30-
"dataVersion": "1.0",
31-
"metadataVersion": "1",
32-
"eventTime": "2021-02-19T00:43:10.9982947Z"
33-
}
15+
"senderDisplayName": "Bob(Admin)",
16+
"composeTime": "2021-02-19T00:43:08.152Z",
17+
"type": "Text",
18+
"version": 1613695390361,
19+
"recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
20+
"recipientCommunicationIdentifier": {
21+
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
22+
"communicationUser": {
23+
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f"
24+
}
25+
},
26+
"transactionId": "fFs4InlBn0O/0WyhfQZVSQ.1.1.2.1.1867776045.1.4",
27+
"threadId": "19:48899258eec941e7a281e03edc8f4964@thread.v2"
28+
},
29+
"eventType": "Microsoft.Communication.ChatMessageDeleted",
30+
"dataVersion": "1.0",
31+
"metadataVersion": "1",
32+
"eventTime": "2021-02-19T00:43:10.9982947Z"
33+
}
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
2-
"id": "17d9c39d-0c58-4ed8-947d-c55959f57f75",
3-
"topic": "/subscriptions/{subscription-id}/resourcegroups/{group-name}/providers/microsoft.communication/communicationservices/{communication-services-resource-name}",
4-
"subject": "thread/{thread-id}/sender/{rawId}",
5-
"data": {
6-
"deleteTime": "2021-02-20T00:59:10.464+00:00",
7-
"messageId": "1613782685440",
8-
"type": "Text",
9-
"version": "1613782814333",
10-
"senderDisplayName": "Scott",
11-
"senderCommunicationIdentifier": {
12-
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453",
13-
"communicationUser": {
14-
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453"
15-
}
16-
},
17-
"composeTime": "2021-02-20T00:58:05.44+00:00",
18-
"threadId": "19:e07c8ddc5bab4c059ea9f11d29b544b6@thread.v2",
19-
"transactionId": "HqU6PeK5AkCRSpW8eAbL0A.1.1.2.1.987824181.1"
2+
"id": "17d9c39d-0c58-4ed8-947d-c55959f57f75",
3+
"topic": "/subscriptions/{subscription-id}/resourcegroups/{group-name}/providers/microsoft.communication/communicationservices/{communication-services-resource-name}",
4+
"subject": "thread/{thread-id}/sender/{rawId}",
5+
"data": {
6+
"deleteTime": "2021-02-20T00:59:10.464+00:00",
7+
"messageId": "1613782685440",
8+
"type": "Text",
9+
"version": "1613782814333",
10+
"senderDisplayName": "Scott",
11+
"senderCommunicationIdentifier": {
12+
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453",
13+
"communicationUser": {
14+
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453"
15+
}
2016
},
21-
"eventType": "Microsoft.Communication.ChatMessageDeletedInThread",
22-
"dataVersion": "1.0",
23-
"metadataVersion": "1",
24-
"eventTime": "2021-02-20T01:00:14.8518034Z"
25-
}
17+
"composeTime": "2021-02-20T00:58:05.44+00:00",
18+
"threadId": "19:e07c8ddc5bab4c059ea9f11d29b544b6@thread.v2",
19+
"transactionId": "HqU6PeK5AkCRSpW8eAbL0A.1.1.2.1.987824181.1"
20+
},
21+
"eventType": "Microsoft.Communication.ChatMessageDeletedInThread",
22+
"dataVersion": "1.0",
23+
"metadataVersion": "1",
24+
"eventTime": "2021-02-20T01:00:14.8518034Z"
25+
}
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
{
2-
"id": "93fc1037-b645-4eb0-a0f2-d7bb3ba6e060",
3-
"topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
4-
"subject": "thread/{thread-id}/sender/{rawId}/recipient/{rawId}",
5-
"data": {
6-
"editTime": "2021-02-19T00:28:20.784Z",
7-
"messageBody": "Let's Chat about new communication services.",
8-
"messageId": "1613694357917",
9-
"metadata": {
10-
"key": "value",
11-
"description": "A map of data associated with the message"
12-
},
13-
"senderId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724",
14-
"senderCommunicationIdentifier": {
15-
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724",
16-
"communicationUser": {
17-
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724"
18-
}
19-
},
20-
"senderDisplayName": "Bob(Admin)",
21-
"composeTime": "2021-02-19T00:25:57.917Z",
22-
"type": "Text",
23-
"version": 1613694500784,
24-
"recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
25-
"recipientCommunicationIdentifier": {
26-
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
27-
"communicationUser": {
28-
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f"
29-
}
30-
},
31-
"transactionId": "1mL4XZH2gEecu/alk9tOtw.2.1.2.1.1833042153.1.7",
32-
"threadId": "19:6e5d6ca1d75044a49a36a7965ec4a906@thread.v2"
2+
"id": "93fc1037-b645-4eb0-a0f2-d7bb3ba6e060",
3+
"topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
4+
"subject": "thread/{thread-id}/sender/{rawId}/recipient/{rawId}",
5+
"data": {
6+
"editTime": "2021-02-19T00:28:20.784Z",
7+
"messageBody": "Let's Chat about new communication services.",
8+
"messageId": "1613694357917",
9+
"metadata": {
10+
"key": "value",
11+
"description": "A map of data associated with the message"
3312
},
34-
"eventType": "Microsoft.Communication.ChatMessageEdited",
35-
"dataVersion": "1.0",
36-
"metadataVersion": "1",
37-
"eventTime": "2021-02-19T00:28:21.7456718Z"
38-
}
13+
"senderId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724",
14+
"senderCommunicationIdentifier": {
15+
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724",
16+
"communicationUser": {
17+
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724"
18+
}
19+
},
20+
"senderDisplayName": "Bob(Admin)",
21+
"composeTime": "2021-02-19T00:25:57.917Z",
22+
"type": "Text",
23+
"version": 1613694500784,
24+
"recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
25+
"recipientCommunicationIdentifier": {
26+
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
27+
"communicationUser": {
28+
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f"
29+
}
30+
},
31+
"transactionId": "1mL4XZH2gEecu/alk9tOtw.2.1.2.1.1833042153.1.7",
32+
"threadId": "19:6e5d6ca1d75044a49a36a7965ec4a906@thread.v2"
33+
},
34+
"eventType": "Microsoft.Communication.ChatMessageEdited",
35+
"dataVersion": "1.0",
36+
"metadataVersion": "1",
37+
"eventTime": "2021-02-19T00:28:21.7456718Z"
38+
}
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"id": "7b8dc01e-2659-41fa-bc8c-88a967714510",
3-
"topic": "/subscriptions/{subscription-id}/resourcegroups/{group-name}/providers/microsoft.communication/communicationservices/{communication-services-resource-name}",
4-
"subject": "thread/{thread-id}/sender/{rawId}",
5-
"data": {
6-
"editTime": "2021-02-20T00:59:10.464+00:00",
7-
"messageBody": "8effb181-1eb2-4a58-9d03-ed48a461b19b",
8-
"messageId": "1613782685964",
9-
"metadata": {
10-
"key": "value",
11-
"description": "A map of data associated with the message"
12-
},
13-
"type": "Text",
14-
"version": "1613782750464",
15-
"senderDisplayName": "Scott",
16-
"senderCommunicationIdentifier": {
17-
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453",
18-
"communicationUser": {
19-
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453"
20-
}
21-
},
22-
"composeTime": "2021-02-20T00:58:05.964+00:00",
23-
"threadId": "19:e07c8ddc5bab4c059ea9f11d29b544b6@thread.v2",
24-
"transactionId": "H8Gpj3NkIU6bXlWw8WPvhQ.2.1.2.1.985333801.1"
2+
"id": "7b8dc01e-2659-41fa-bc8c-88a967714510",
3+
"topic": "/subscriptions/{subscription-id}/resourcegroups/{group-name}/providers/microsoft.communication/communicationservices/{communication-services-resource-name}",
4+
"subject": "thread/{thread-id}/sender/{rawId}",
5+
"data": {
6+
"editTime": "2021-02-20T00:59:10.464+00:00",
7+
"messageBody": "8effb181-1eb2-4a58-9d03-ed48a461b19b",
8+
"messageId": "1613782685964",
9+
"metadata": {
10+
"key": "value",
11+
"description": "A map of data associated with the message"
2512
},
26-
"eventType": "Microsoft.Communication.ChatMessageEditedInThread",
27-
"dataVersion": "1.0",
28-
"metadataVersion": "1",
29-
"eventTime": "2021-02-20T00:59:10.7600061Z"
30-
}
13+
"type": "Text",
14+
"version": "1613782750464",
15+
"senderDisplayName": "Scott",
16+
"senderCommunicationIdentifier": {
17+
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453",
18+
"communicationUser": {
19+
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453"
20+
}
21+
},
22+
"composeTime": "2021-02-20T00:58:05.964+00:00",
23+
"threadId": "19:e07c8ddc5bab4c059ea9f11d29b544b6@thread.v2",
24+
"transactionId": "H8Gpj3NkIU6bXlWw8WPvhQ.2.1.2.1.985333801.1"
25+
},
26+
"eventType": "Microsoft.Communication.ChatMessageEditedInThread",
27+
"dataVersion": "1.0",
28+
"metadataVersion": "1",
29+
"eventTime": "2021-02-20T00:59:10.7600061Z"
30+
}

0 commit comments

Comments
 (0)