Skip to content

Commit

Permalink
{EventGrid}: Update data-plane Swagger to include aeg-channel-name in…
Browse files Browse the repository at this point in the history
… header (Azure#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>
  • Loading branch information
VidyaKukke and lmazuel authored Feb 3, 2022
1 parent fba79b5 commit 5582a35
Show file tree
Hide file tree
Showing 55 changed files with 1,028 additions and 1,013 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"id":"9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType":"Microsoft.Cache.ExportRDBCompleted",
"topic":"/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
"data":{
"name":"ExportRDBCompleted",
"timestamp":"2020-12-09T21:50:19.9995668+00:00",
"status":"Succeeded"},
"subject":"ExportRDBCompleted",
"dataversion":"1.0",
"metadataVersion":"1",
"eventTime":"2020-12-09T21:50:19.9995668+00:00"}
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType": "Microsoft.Cache.ExportRDBCompleted",
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
"data": {
"name": "ExportRDBCompleted",
"timestamp": "2020-12-09T21:50:19.9995668+00:00",
"status": "Succeeded"
},
"subject": "ExportRDBCompleted",
"dataversion": "1.0",
"metadataVersion": "1",
"eventTime": "2020-12-09T21:50:19.9995668+00:00"
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"id":"9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType":"Microsoft.Cache.ImportRDBCompleted",
"topic":"/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
"data":{
"name":"ImportRDBCompleted",
"timestamp":"2020-12-09T21:50:19.9995668+00:00",
"status":"Succeeded"},
"subject":"ImportRDBCompleted",
"dataversion":"1.0",
"metadataVersion":"1",
"eventTime":"2020-12-09T21:50:19.9995668+00:00"}
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType": "Microsoft.Cache.ImportRDBCompleted",
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
"data": {
"name": "ImportRDBCompleted",
"timestamp": "2020-12-09T21:50:19.9995668+00:00",
"status": "Succeeded"
},
"subject": "ImportRDBCompleted",
"dataversion": "1.0",
"metadataVersion": "1",
"eventTime": "2020-12-09T21:50:19.9995668+00:00"
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"id":"9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType":"Microsoft.Cache.PatchingCompleted",
"topic":"/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
"data":{
"name":"PatchingCompleted",
"timestamp":"2020-12-09T21:50:19.9995668+00:00",
"status":"Succeeded"},
"subject":"PatchingCompleted",
"dataversion":"1.0",
"metadataVersion":"1",
"eventTime":"2020-12-09T21:50:19.9995668+00:00"}
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType": "Microsoft.Cache.PatchingCompleted",
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
"data": {
"name": "PatchingCompleted",
"timestamp": "2020-12-09T21:50:19.9995668+00:00",
"status": "Succeeded"
},
"subject": "PatchingCompleted",
"dataversion": "1.0",
"metadataVersion": "1",
"eventTime": "2020-12-09T21:50:19.9995668+00:00"
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"id":"9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType":"Microsoft.Cache.ScalingCompleted",
"topic":"/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
"data":{
"name":"ScalingCompleted",
"timestamp":"2020-12-09T21:50:19.9995668+00:00",
"status":"Succeeded"},
"subject":"ScalingCompleted",
"dataversion":"1.0",
"metadataVersion":"1",
"eventTime":"2020-12-09T21:50:19.9995668+00:00"}
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b",
"eventType": "Microsoft.Cache.ScalingCompleted",
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Cache/Redis/{cache_name}",
"data": {
"name": "ScalingCompleted",
"timestamp": "2020-12-09T21:50:19.9995668+00:00",
"status": "Succeeded"
},
"subject": "ScalingCompleted",
"dataversion": "1.0",
"metadataVersion": "1",
"eventTime": "2020-12-09T21:50:19.9995668+00:00"
}
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"id": "23cfcc13-33f2-4ae1-8d23-b5015b05302b",
"topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
"subject": "thread/{thread-id}/sender/{rawId}/recipient/{rawId}",
"data": {
"deleteTime": "2021-02-19T00:43:10.14Z",
"messageId": "1613695388152",
"senderId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e",
"senderCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e"
}
},
"senderDisplayName": "Bob(Admin)",
"composeTime": "2021-02-19T00:43:08.152Z",
"type": "Text",
"version": 1613695390361,
"recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
"recipientCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f"
}
},
"transactionId": "fFs4InlBn0O/0WyhfQZVSQ.1.1.2.1.1867776045.1.4",
"threadId": "19:48899258eec941e7a281e03edc8f4964@thread.v2"
"id": "23cfcc13-33f2-4ae1-8d23-b5015b05302b",
"topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
"subject": "thread/{thread-id}/sender/{rawId}/recipient/{rawId}",
"data": {
"deleteTime": "2021-02-19T00:43:10.14Z",
"messageId": "1613695388152",
"senderId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e",
"senderCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d07-83fe-084822000f6e"
}
},
"eventType": "Microsoft.Communication.ChatMessageDeleted",
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-02-19T00:43:10.9982947Z"
}
"senderDisplayName": "Bob(Admin)",
"composeTime": "2021-02-19T00:43:08.152Z",
"type": "Text",
"version": 1613695390361,
"recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
"recipientCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f"
}
},
"transactionId": "fFs4InlBn0O/0WyhfQZVSQ.1.1.2.1.1867776045.1.4",
"threadId": "19:48899258eec941e7a281e03edc8f4964@thread.v2"
},
"eventType": "Microsoft.Communication.ChatMessageDeleted",
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-02-19T00:43:10.9982947Z"
}
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"id": "17d9c39d-0c58-4ed8-947d-c55959f57f75",
"topic": "/subscriptions/{subscription-id}/resourcegroups/{group-name}/providers/microsoft.communication/communicationservices/{communication-services-resource-name}",
"subject": "thread/{thread-id}/sender/{rawId}",
"data": {
"deleteTime": "2021-02-20T00:59:10.464+00:00",
"messageId": "1613782685440",
"type": "Text",
"version": "1613782814333",
"senderDisplayName": "Scott",
"senderCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453"
}
},
"composeTime": "2021-02-20T00:58:05.44+00:00",
"threadId": "19:e07c8ddc5bab4c059ea9f11d29b544b6@thread.v2",
"transactionId": "HqU6PeK5AkCRSpW8eAbL0A.1.1.2.1.987824181.1"
"id": "17d9c39d-0c58-4ed8-947d-c55959f57f75",
"topic": "/subscriptions/{subscription-id}/resourcegroups/{group-name}/providers/microsoft.communication/communicationservices/{communication-services-resource-name}",
"subject": "thread/{thread-id}/sender/{rawId}",
"data": {
"deleteTime": "2021-02-20T00:59:10.464+00:00",
"messageId": "1613782685440",
"type": "Text",
"version": "1613782814333",
"senderDisplayName": "Scott",
"senderCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453"
}
},
"eventType": "Microsoft.Communication.ChatMessageDeletedInThread",
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-02-20T01:00:14.8518034Z"
}
"composeTime": "2021-02-20T00:58:05.44+00:00",
"threadId": "19:e07c8ddc5bab4c059ea9f11d29b544b6@thread.v2",
"transactionId": "HqU6PeK5AkCRSpW8eAbL0A.1.1.2.1.987824181.1"
},
"eventType": "Microsoft.Communication.ChatMessageDeletedInThread",
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-02-20T01:00:14.8518034Z"
}
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"id": "93fc1037-b645-4eb0-a0f2-d7bb3ba6e060",
"topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
"subject": "thread/{thread-id}/sender/{rawId}/recipient/{rawId}",
"data": {
"editTime": "2021-02-19T00:28:20.784Z",
"messageBody": "Let's Chat about new communication services.",
"messageId": "1613694357917",
"metadata": {
"key": "value",
"description": "A map of data associated with the message"
},
"senderId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724",
"senderCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724"
}
},
"senderDisplayName": "Bob(Admin)",
"composeTime": "2021-02-19T00:25:57.917Z",
"type": "Text",
"version": 1613694500784,
"recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
"recipientCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f"
}
},
"transactionId": "1mL4XZH2gEecu/alk9tOtw.2.1.2.1.1833042153.1.7",
"threadId": "19:6e5d6ca1d75044a49a36a7965ec4a906@thread.v2"
"id": "93fc1037-b645-4eb0-a0f2-d7bb3ba6e060",
"topic": "/subscriptions/{subscription-id}/resourceGroups/{group-name}/providers/Microsoft.Communication/communicationServices/{communication-services-resource-name}",
"subject": "thread/{thread-id}/sender/{rawId}/recipient/{rawId}",
"data": {
"editTime": "2021-02-19T00:28:20.784Z",
"messageBody": "Let's Chat about new communication services.",
"messageId": "1613694357917",
"metadata": {
"key": "value",
"description": "A map of data associated with the message"
},
"eventType": "Microsoft.Communication.ChatMessageEdited",
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-02-19T00:28:21.7456718Z"
}
"senderId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724",
"senderCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7caf-07fd-084822001724"
}
},
"senderDisplayName": "Bob(Admin)",
"composeTime": "2021-02-19T00:25:57.917Z",
"type": "Text",
"version": 1613694500784,
"recipientId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
"recipientCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-578d-7d60-83fe-084822000f6f"
}
},
"transactionId": "1mL4XZH2gEecu/alk9tOtw.2.1.2.1.1833042153.1.7",
"threadId": "19:6e5d6ca1d75044a49a36a7965ec4a906@thread.v2"
},
"eventType": "Microsoft.Communication.ChatMessageEdited",
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-02-19T00:28:21.7456718Z"
}
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"id": "7b8dc01e-2659-41fa-bc8c-88a967714510",
"topic": "/subscriptions/{subscription-id}/resourcegroups/{group-name}/providers/microsoft.communication/communicationservices/{communication-services-resource-name}",
"subject": "thread/{thread-id}/sender/{rawId}",
"data": {
"editTime": "2021-02-20T00:59:10.464+00:00",
"messageBody": "8effb181-1eb2-4a58-9d03-ed48a461b19b",
"messageId": "1613782685964",
"metadata": {
"key": "value",
"description": "A map of data associated with the message"
},
"type": "Text",
"version": "1613782750464",
"senderDisplayName": "Scott",
"senderCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453"
}
},
"composeTime": "2021-02-20T00:58:05.964+00:00",
"threadId": "19:e07c8ddc5bab4c059ea9f11d29b544b6@thread.v2",
"transactionId": "H8Gpj3NkIU6bXlWw8WPvhQ.2.1.2.1.985333801.1"
"id": "7b8dc01e-2659-41fa-bc8c-88a967714510",
"topic": "/subscriptions/{subscription-id}/resourcegroups/{group-name}/providers/microsoft.communication/communicationservices/{communication-services-resource-name}",
"subject": "thread/{thread-id}/sender/{rawId}",
"data": {
"editTime": "2021-02-20T00:59:10.464+00:00",
"messageBody": "8effb181-1eb2-4a58-9d03-ed48a461b19b",
"messageId": "1613782685964",
"metadata": {
"key": "value",
"description": "A map of data associated with the message"
},
"eventType": "Microsoft.Communication.ChatMessageEditedInThread",
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-02-20T00:59:10.7600061Z"
}
"type": "Text",
"version": "1613782750464",
"senderDisplayName": "Scott",
"senderCommunicationIdentifier": {
"rawId": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453",
"communicationUser": {
"id": "8:acs:109f0644-b956-4cd9-87b1-71024f6e2f44_00000008-5cbb-38a0-88f7-084822002453"
}
},
"composeTime": "2021-02-20T00:58:05.964+00:00",
"threadId": "19:e07c8ddc5bab4c059ea9f11d29b544b6@thread.v2",
"transactionId": "H8Gpj3NkIU6bXlWw8WPvhQ.2.1.2.1.985333801.1"
},
"eventType": "Microsoft.Communication.ChatMessageEditedInThread",
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2021-02-20T00:59:10.7600061Z"
}
Loading

0 comments on commit 5582a35

Please sign in to comment.