From ba33ac6bad4983d3ac1f7cf982809a0ea38bc44d Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 7 Aug 2023 11:07:11 -0700 Subject: [PATCH 01/26] added event grid namespace system events --- .../preview/2023-06-01-preview/EventGrid.json | 138 +++++++++++++++++- 1 file changed, 137 insertions(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json index b378a3e5b0a6..1b902e80115d 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json @@ -672,7 +672,143 @@ "failedLockTokens", "succeededLockTokens" ] - } + }, + "EventGridNamespaceMQTTClientCreatedOrUpdatedEventData": { + "description": "Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.", + "allOf": [ + { + "$ref": "#/definitions/MQTTClientCreatedOrUpdatedEventProperties" + } + ], + "properties": {} + }, + "EventGridNamespaceMQTTClientDeletedEventData": { + "description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.", + "allOf": [ + { + "$ref": "#/definitions/MQTTClientDeletedEventProperties" + } + ], + "properties": {} + }, + "EventGridNamespaceMQTTClientSessionConnectedEventData": { + "description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.", + "allOf": [ + { + "$ref": "#/definitions/MQTTClientSessionConnectedEventProperties" + } + ], + "properties": {} + }, + "EventGridNamespaceMQTTClientSessionDisconnectedEventData": { + "description": "Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.", + "allOf": [ + { + "$ref": "#/definitions/MQTTClientSessionDisconnectedEventProperties" + } + ], + "properties": {} + }, + "MQTTClientCreatedOrUpdatedEventProperties": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for MQTT Client Created Or Updated event.", + "properties": { + "clientAuthenticationName": { + "type": "string", + "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "clientName": { + "type": "string", + "description": "Name of the client resource in the Event Grid namespace." + }, + "namespaceName": { + "type": "string", + "description": "Name of the Event Grid namespace where the MQTT client was created or updated." + }, + "state": { + "type": "string", + "description": "Configured state of the client. The value could be Enabled or Disabled." + }, + "createdOn": { + "type": "string", + "description": "Time the client resource is created based on the provider's UTC time." + }, + "updatedOn": { + "type": "string", + "description": "Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property." + }, + "attributes": { + "type": "object", + "description": "The key-value attributes that are assigned to the client resource." + } + } + }, + "MQTTClientDeletedEventProperties": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for MQTT Client Deleted event.", + "properties": { + "clientAuthenticationName": { + "type": "string", + "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "clientName": { + "type": "string", + "description": "Name of the client resource in the Event Grid namespace." + }, + "namespaceName": { + "type": "string", + "description": "Name of the Event Grid namespace where the MQTT client was deleted." + } + } + }, + "MQTTClientSessionConnectedEventProperties": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for MQTT Client Session Connected event.", + "properties": { + "clientAuthenticationName": { + "type": "string", + "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "clientSessionName": { + "type": "string", + "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "namespaceName": { + "type": "string", + "description": "Name of the Event Grid namespace where the MQTT client was connected" + }, + "sequenceNumber": { + "type": "string", + "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." + } + } + }, + "MQTTClientSessionDisconnectedEventProperties": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for MQTT Client Session Disconnected.", + "properties": { + "clientAuthenticationName": { + "type": "string", + "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "clientSessionName": { + "type": "string", + "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "namespaceName": { + "type": "string", + "description": "Name of the Event Grid namespace where the MQTT client was disconnected." + }, + "sequenceNumber": { + "type": "string", + "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." + }, + "disconnectionReason": { + "type": "string", + "description": "Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table." + } + } + } }, "parameters": { "Azure.Core.Foundations.ApiVersionParameter": { From 6fafe586e6bc843247801efe712707ef7627ef12 Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 7 Aug 2023 11:11:47 -0700 Subject: [PATCH 02/26] Create client_created_or_updated.json --- .../client_created_or_updated.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_created_or_updated.json diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_created_or_updated.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_created_or_updated.json new file mode 100644 index 000000000000..b90c3434160d --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_created_or_updated.json @@ -0,0 +1,19 @@ +{ + "specversion": "1.0", + "id": "383d1562-c95f-4095-936c-688e72c6b2bb", + "time": "2023-07-29T01:14:35.8928724Z", + "type": "Microsoft.EventGrid.MQTTClientCreatedOrUpdated", + "source": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1", + "data": { + "createdOn": "2023-07-29T01:14:34.2048108Z", + "updatedOn": "2023-07-29T01:14:34.2048108Z", + "namespaceName": "myns", + "clientName": "client1", + "clientAuthenticationName": "client1", + "state": "Enabled", + "attributes": { + "attribute1": "value1" + } + } +} From 95fc10a23f664b7015accb4743a8587b91360882 Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 7 Aug 2023 11:12:22 -0700 Subject: [PATCH 03/26] Add files via upload --- .../cloud-events-schema/client_deleted.json | 13 +++++++++++++ .../clientsession_connected.json | 14 ++++++++++++++ .../clientsession_disconnected.json | 0 3 files changed, 27 insertions(+) create mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_deleted.json create mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_connected.json create mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_disconnected.json diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_deleted.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_deleted.json new file mode 100644 index 000000000000..d6b652b750a8 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_deleted.json @@ -0,0 +1,13 @@ +{ + "specversion": "1.0", + "id": "2a93aaf9-66c2-4f8e-9ba3-8d899c10bf17", + "time": "2023-07-29T01:30:52.5620566Z", + "type": "Microsoft.EventGrid.MQTTClientDeleted", + "source": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1", + "data": { + "namespaceName": "myns", + "clientName": "client1", + "clientAuthenticationName": "client1" + } +} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_connected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_connected.json new file mode 100644 index 000000000000..6878f0551101 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_connected.json @@ -0,0 +1,14 @@ +{ + "specversion": "1.0", + "id": "5249c38a-a048-46dd-8f60-df34fcdab06c", + "time": "2023-07-29T01:23:49.6454046Z", + "type": "Microsoft.EventGrid.MQTTClientSessionConnected", + "source": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1/sessions/session1", + "data": { + "namespaceName": "myns", + "clientAuthenticationName": "client1", + "clientSessionName": "session1", + "sequenceNumber": 1 + } +} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_disconnected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_disconnected.json new file mode 100644 index 000000000000..e69de29bb2d1 From f76607c30bfb12959d18e891eee08513089c3d95 Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 7 Aug 2023 11:14:08 -0700 Subject: [PATCH 04/26] Create client_created_or_updated.json --- .../client_created_or_updated.json | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_created_or_updated.json diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_created_or_updated.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_created_or_updated.json new file mode 100644 index 000000000000..8f2c7fc2af54 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_created_or_updated.json @@ -0,0 +1,20 @@ +{ + "id": "383d1562-c95f-4095-936c-688e72c6b2bb", + "eventTime": "2023-07-29T01:14:35.8928724Z", + "eventType": "Microsoft.EventGrid.MQTTClientCreatedOrUpdated", + "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1", + "dataVersion": "1", + "metadataVersion": "1", + "data": { + "createdOn": "2023-07-29T01:14:34.2048108Z", + "updatedOn": "2023-07-29T01:14:34.2048108Z", + "namespaceName": "myns", + "clientName": "client1", + "clientAuthenticationName": "client1", + "state": "Enabled", + "attributes": { + "attribute1": "value1" + } + } +} From 9e624684c1724deac97da9a9f203dbab977ce0c2 Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 7 Aug 2023 11:14:26 -0700 Subject: [PATCH 05/26] Add files via upload --- .../examples/event-grid-schema/client_deleted.json | 0 .../examples/event-grid-schema/clientsession_connected.json | 0 .../examples/event-grid-schema/clientsession_disconnected.json | 0 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_deleted.json create mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json create mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_disconnected.json diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_deleted.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_deleted.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_disconnected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_disconnected.json new file mode 100644 index 000000000000..e69de29bb2d1 From 44d89e134769b0b9070f1e107ca7171ed1821dbb Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 7 Aug 2023 11:16:02 -0700 Subject: [PATCH 06/26] Update clientsession_disconnected.json --- .../clientsession_disconnected.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_disconnected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_disconnected.json index e69de29bb2d1..1fc62740d7bf 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_disconnected.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_disconnected.json @@ -0,0 +1,15 @@ +{ + "specversion": "1.0", + "id": "e30e5174-787d-4e19-8812-580148bfcf7b", + "time": "2023-07-29T01:27:40.2446871Z", + "type": "Microsoft.EventGrid.MQTTClientSessionDisconnected", + "source": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1/sessions/session1", + "data": { + "namespaceName": "myns", + "clientAuthenticationName": "client1", + "clientSessionName": "session1", + "sequenceNumber": 1, + "disconnectionReason": "ClientInitiatedDisconnect" + } +} From ef4ad4ecdf27b56cea71cdf347cc6deb2050d92e Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 7 Aug 2023 11:16:34 -0700 Subject: [PATCH 07/26] Update client_deleted.json --- .../examples/event-grid-schema/client_deleted.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_deleted.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_deleted.json index e69de29bb2d1..847bf2196242 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_deleted.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_deleted.json @@ -0,0 +1,14 @@ +{ + "id": "2a93aaf9-66c2-4f8e-9ba3-8d899c10bf17", + "eventTime": "2023-07-29T01:30:52.5620566Z", + "eventType": "Microsoft.EventGrid.MQTTClientDeleted", + "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1", + "dataVersion": "1", + "metadataVersion": "1", + "data": { + "clientName": "client1", + "clientAuthenticationName": "client1", + "namespaceName": "myns" + } +} From ecc61ba2ebb77aef5d3cf08b7e64c1d484ef0d8f Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 7 Aug 2023 11:16:58 -0700 Subject: [PATCH 08/26] Update clientsession_connected.json --- .../clientsession_connected.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json index e69de29bb2d1..c2539ba4a33f 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json @@ -0,0 +1,16 @@ +{ + "id": "e30e5174-787d-4e19-8812-580148bfcf7b", + "eventTime": "2023-07-29T01:27:40.2446871Z", + "eventType": "Microsoft.EventGrid.MQTTClientSessionDisconnected", + "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1/sessions/session1", + "dataVersion": "1", + "metadataVersion": "1", + "data": { + "namespaceName": "myns", + "clientAuthenticationName": "client1", + "clientSessionName": "session1", + "sequenceNumber": 1, + "disconnectionReason": "ClientInitiatedDisconnect" + } +} From a874fd8ef58dc0ccdfcf46ec4a79e28868429664 Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 7 Aug 2023 11:17:36 -0700 Subject: [PATCH 09/26] Update clientsession_connected.json --- .../event-grid-schema/clientsession_connected.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json index c2539ba4a33f..a5006a421ef8 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json @@ -1,7 +1,7 @@ { - "id": "e30e5174-787d-4e19-8812-580148bfcf7b", - "eventTime": "2023-07-29T01:27:40.2446871Z", - "eventType": "Microsoft.EventGrid.MQTTClientSessionDisconnected", + "id": "5249c38a-a048-46dd-8f60-df34fcdab06c", + "eventTime": "2023-07-29T01:23:49.6454046Z", + "eventType": "Microsoft.EventGrid.MQTTClientSessionConnected", "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", "subject": "clients/client1/sessions/session1", "dataVersion": "1", @@ -10,7 +10,6 @@ "namespaceName": "myns", "clientAuthenticationName": "client1", "clientSessionName": "session1", - "sequenceNumber": 1, - "disconnectionReason": "ClientInitiatedDisconnect" + "sequenceNumber": 1 } } From d0c124cc46d722baaebc745b06047fc4e62d4a6a Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 7 Aug 2023 11:17:56 -0700 Subject: [PATCH 10/26] Update clientsession_disconnected.json --- .../clientsession_disconnected.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_disconnected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_disconnected.json index e69de29bb2d1..c2539ba4a33f 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_disconnected.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_disconnected.json @@ -0,0 +1,16 @@ +{ + "id": "e30e5174-787d-4e19-8812-580148bfcf7b", + "eventTime": "2023-07-29T01:27:40.2446871Z", + "eventType": "Microsoft.EventGrid.MQTTClientSessionDisconnected", + "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1/sessions/session1", + "dataVersion": "1", + "metadataVersion": "1", + "data": { + "namespaceName": "myns", + "clientAuthenticationName": "client1", + "clientSessionName": "session1", + "sequenceNumber": 1, + "disconnectionReason": "ClientInitiatedDisconnect" + } +} From cd0d4b0b8dd7a446fd5862dd44826c85fb6be963 Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Mon, 21 Aug 2023 23:31:24 +0000 Subject: [PATCH 11/26] keyvalue_deleted --- .../preview/2023-06-01-preview/EventGrid.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json index 1b902e80115d..483227f14b60 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json @@ -674,6 +674,7 @@ ] }, "EventGridNamespaceMQTTClientCreatedOrUpdatedEventData": { + "type": "object", "description": "Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.", "allOf": [ { @@ -683,6 +684,7 @@ "properties": {} }, "EventGridNamespaceMQTTClientDeletedEventData": { + "type": "object", "description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.", "allOf": [ { @@ -692,6 +694,7 @@ "properties": {} }, "EventGridNamespaceMQTTClientSessionConnectedEventData": { + "type": "object", "description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.", "allOf": [ { @@ -701,6 +704,7 @@ "properties": {} }, "EventGridNamespaceMQTTClientSessionDisconnectedEventData": { + "type": "object", "description": "Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.", "allOf": [ { From e48385797a7cc9ca692f89c08fa839d85aec281f Mon Sep 17 00:00:00 2001 From: George Guirguis Date: Tue, 22 Aug 2023 00:14:23 +0000 Subject: [PATCH 12/26] addressed prettiercheck and added object type --- .../preview/2023-06-01-preview/EventGrid.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json index 483227f14b60..590048805829 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json @@ -785,9 +785,9 @@ "type": "string", "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." } - } - }, - "MQTTClientSessionDisconnectedEventProperties": { + } + }, + "MQTTClientSessionDisconnectedEventProperties": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for MQTT Client Session Disconnected.", "properties": { @@ -811,8 +811,8 @@ "type": "string", "description": "Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table." } - } } + } }, "parameters": { "Azure.Core.Foundations.ApiVersionParameter": { From 299dc10beafbb98ebb92b70ecb56e460fd3197ec Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Thu, 24 Aug 2023 13:56:53 -0700 Subject: [PATCH 13/26] fixes for eg events --- .../stable/2018-01-01/SystemEvents.json | 157 ++++++++++++++++++ .../client_created_or_updated.json | 0 .../cloud-events-schema/client_deleted.json | 0 .../clientsession_connected.json | 0 .../clientsession_disconnected.json | 30 ++-- .../client_created_or_updated.json | 0 .../event-grid-schema/client_deleted.json | 28 ++-- .../clientsession_connected.json | 30 ++-- .../clientsession_disconnected.json | 32 ++-- 9 files changed, 217 insertions(+), 60 deletions(-) create mode 100644 specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json rename specification/eventgrid/data-plane/Microsoft.EventGrid/{preview/2023-06-01-preview => stable/2018-01-01}/examples/cloud-events-schema/client_created_or_updated.json (100%) rename specification/eventgrid/data-plane/Microsoft.EventGrid/{preview/2023-06-01-preview => stable/2018-01-01}/examples/cloud-events-schema/client_deleted.json (100%) rename specification/eventgrid/data-plane/Microsoft.EventGrid/{preview/2023-06-01-preview => stable/2018-01-01}/examples/cloud-events-schema/clientsession_connected.json (100%) rename specification/eventgrid/data-plane/Microsoft.EventGrid/{preview/2023-06-01-preview => stable/2018-01-01}/examples/cloud-events-schema/clientsession_disconnected.json (97%) rename specification/eventgrid/data-plane/Microsoft.EventGrid/{preview/2023-06-01-preview => stable/2018-01-01}/examples/event-grid-schema/client_created_or_updated.json (100%) rename specification/eventgrid/data-plane/Microsoft.EventGrid/{preview/2023-06-01-preview => stable/2018-01-01}/examples/event-grid-schema/client_deleted.json (97%) rename specification/eventgrid/data-plane/Microsoft.EventGrid/{preview/2023-06-01-preview => stable/2018-01-01}/examples/event-grid-schema/clientsession_connected.json (97%) rename specification/eventgrid/data-plane/Microsoft.EventGrid/{preview/2023-06-01-preview => stable/2018-01-01}/examples/event-grid-schema/clientsession_disconnected.json (97%) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json new file mode 100644 index 000000000000..87695b5c59dd --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -0,0 +1,157 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-01-01", + "title": "EventGrid SystemEvents", + "description": "Azure EventGrid System Events" + }, + "definitions": { + "SubscriptionValidationEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event.", + "type": "object", + "properties": { + "validationCode": { + "description": "The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", + "type": "string", + "readOnly": true + }, + "validationUrl": { + "description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", + "type": "string", + "readOnly": true + } + } + }, + "SubscriptionValidationResponse": { + "description": "To complete an event subscription validation handshake, a subscriber can use either the validationCode or the validationUrl received in a SubscriptionValidationEvent. When the validationCode is used, the SubscriptionValidationResponse can be used to build the response.", + "type": "object", + "properties": { + "validationResponse": { + "description": "The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription.", + "type": "string" + } + } + }, + "SubscriptionDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent event.", + "type": "object", + "properties": { + "eventSubscriptionId": { + "description": "The Azure resource ID of the deleted event subscription.", + "type": "string", + "readOnly": true + } + } + }, + "EventGridNamespaceMQTTClientCreatedOrUpdatedEventData": { + "type": "object", + "description": "Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.", + "allOf": [ + { + "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" + } + ], + "properties": { + "state": { + "type": "string", + "description": "Configured state of the client. The value could be Enabled or Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "mqttClientState", + "modelAsString": true + } + }, + "createdOn": { + "type": "string", + "description": "Time the client resource is created based on the provider's UTC time." + }, + "updatedOn": { + "type": "string", + "description": "Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property." + }, + "attributes": { + "type": "object", + "description": "The key-value attributes that are assigned to the client resource.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "EventGridNamespaceMQTTClientDeletedEventData": { + "type": "object", + "description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.", + "allOf": [ + { + "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" + } + ], + "properties": {} + }, + "EventGridNamespaceMQTTClientSessionConnectedEventData": { + "type": "object", + "description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.", + "allOf": [ + { + "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" + } + ], + "properties": { + "clientSessionName": { + "type": "string", + "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "sequenceNumber": { + "type": "number", + "format": "int64", + "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." + } + } + }, + "EventGridNamespaceMQTTClientSessionDisconnectedEventData": { + "type": "object", + "description": "Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.", + "allOf": [ + { + "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" + } + ], + "properties": { + "clientSessionName": { + "type": "string", + "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "sequenceNumber": { + "type": "number", + "format": "int64", + "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." + }, + "disconnectionReason": { + "type": "string", + "description": "Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table." + } + } + }, + "EventGridNamespaceMQTTClientEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for MQTT Client Created Or Updated event.", + "properties": { + "clientAuthenticationName": { + "type": "string", + "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "clientName": { + "type": "string", + "description": "Name of the client resource in the Event Grid namespace." + }, + "namespaceName": { + "type": "string", + "description": "Name of the Event Grid namespace where the MQTT client was created or updated." + } + } + } + } +} \ No newline at end of file diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_created_or_updated.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/cloud-events-schema/client_created_or_updated.json similarity index 100% rename from specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_created_or_updated.json rename to specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/cloud-events-schema/client_created_or_updated.json diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_deleted.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/cloud-events-schema/client_deleted.json similarity index 100% rename from specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/client_deleted.json rename to specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/cloud-events-schema/client_deleted.json diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_connected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/cloud-events-schema/clientsession_connected.json similarity index 100% rename from specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_connected.json rename to specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/cloud-events-schema/clientsession_connected.json diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_disconnected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/cloud-events-schema/clientsession_disconnected.json similarity index 97% rename from specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_disconnected.json rename to specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/cloud-events-schema/clientsession_disconnected.json index 1fc62740d7bf..43b24bb935dd 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/cloud-events-schema/clientsession_disconnected.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/cloud-events-schema/clientsession_disconnected.json @@ -1,15 +1,15 @@ -{ - "specversion": "1.0", - "id": "e30e5174-787d-4e19-8812-580148bfcf7b", - "time": "2023-07-29T01:27:40.2446871Z", - "type": "Microsoft.EventGrid.MQTTClientSessionDisconnected", - "source": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", - "subject": "clients/client1/sessions/session1", - "data": { - "namespaceName": "myns", - "clientAuthenticationName": "client1", - "clientSessionName": "session1", - "sequenceNumber": 1, - "disconnectionReason": "ClientInitiatedDisconnect" - } -} +{ + "specversion": "1.0", + "id": "e30e5174-787d-4e19-8812-580148bfcf7b", + "time": "2023-07-29T01:27:40.2446871Z", + "type": "Microsoft.EventGrid.MQTTClientSessionDisconnected", + "source": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1/sessions/session1", + "data": { + "namespaceName": "myns", + "clientAuthenticationName": "client1", + "clientSessionName": "session1", + "sequenceNumber": 1, + "disconnectionReason": "ClientInitiatedDisconnect" + } +} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_created_or_updated.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/client_created_or_updated.json similarity index 100% rename from specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_created_or_updated.json rename to specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/client_created_or_updated.json diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_deleted.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/client_deleted.json similarity index 97% rename from specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_deleted.json rename to specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/client_deleted.json index 847bf2196242..d29b8e3693a3 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/client_deleted.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/client_deleted.json @@ -1,14 +1,14 @@ -{ - "id": "2a93aaf9-66c2-4f8e-9ba3-8d899c10bf17", - "eventTime": "2023-07-29T01:30:52.5620566Z", - "eventType": "Microsoft.EventGrid.MQTTClientDeleted", - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", - "subject": "clients/client1", - "dataVersion": "1", - "metadataVersion": "1", - "data": { - "clientName": "client1", - "clientAuthenticationName": "client1", - "namespaceName": "myns" - } -} +{ + "id": "2a93aaf9-66c2-4f8e-9ba3-8d899c10bf17", + "eventTime": "2023-07-29T01:30:52.5620566Z", + "eventType": "Microsoft.EventGrid.MQTTClientDeleted", + "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1", + "dataVersion": "1", + "metadataVersion": "1", + "data": { + "clientName": "client1", + "clientAuthenticationName": "client1", + "namespaceName": "myns" + } +} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/clientsession_connected.json similarity index 97% rename from specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json rename to specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/clientsession_connected.json index a5006a421ef8..c0eb8f5dbcac 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_connected.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/clientsession_connected.json @@ -1,15 +1,15 @@ -{ - "id": "5249c38a-a048-46dd-8f60-df34fcdab06c", - "eventTime": "2023-07-29T01:23:49.6454046Z", - "eventType": "Microsoft.EventGrid.MQTTClientSessionConnected", - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", - "subject": "clients/client1/sessions/session1", - "dataVersion": "1", - "metadataVersion": "1", - "data": { - "namespaceName": "myns", - "clientAuthenticationName": "client1", - "clientSessionName": "session1", - "sequenceNumber": 1 - } -} +{ + "id": "5249c38a-a048-46dd-8f60-df34fcdab06c", + "eventTime": "2023-07-29T01:23:49.6454046Z", + "eventType": "Microsoft.EventGrid.MQTTClientSessionConnected", + "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1/sessions/session1", + "dataVersion": "1", + "metadataVersion": "1", + "data": { + "namespaceName": "myns", + "clientAuthenticationName": "client1", + "clientSessionName": "session1", + "sequenceNumber": 1 + } +} diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_disconnected.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/clientsession_disconnected.json similarity index 97% rename from specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_disconnected.json rename to specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/clientsession_disconnected.json index c2539ba4a33f..ae9c3b5c0b8d 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/examples/event-grid-schema/clientsession_disconnected.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/examples/event-grid-schema/clientsession_disconnected.json @@ -1,16 +1,16 @@ -{ - "id": "e30e5174-787d-4e19-8812-580148bfcf7b", - "eventTime": "2023-07-29T01:27:40.2446871Z", - "eventType": "Microsoft.EventGrid.MQTTClientSessionDisconnected", - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", - "subject": "clients/client1/sessions/session1", - "dataVersion": "1", - "metadataVersion": "1", - "data": { - "namespaceName": "myns", - "clientAuthenticationName": "client1", - "clientSessionName": "session1", - "sequenceNumber": 1, - "disconnectionReason": "ClientInitiatedDisconnect" - } -} +{ + "id": "e30e5174-787d-4e19-8812-580148bfcf7b", + "eventTime": "2023-07-29T01:27:40.2446871Z", + "eventType": "Microsoft.EventGrid.MQTTClientSessionDisconnected", + "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", + "subject": "clients/client1/sessions/session1", + "dataVersion": "1", + "metadataVersion": "1", + "data": { + "namespaceName": "myns", + "clientAuthenticationName": "client1", + "clientSessionName": "session1", + "sequenceNumber": 1, + "disconnectionReason": "ClientInitiatedDisconnect" + } +} From a48fe1bfe263aee35be431cc4d4d9c0652024e21 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:04:20 -0700 Subject: [PATCH 14/26] more changes --- .../stable/2018-01-01/EventGrid.json | 37 ------------------- specification/eventgrid/data-plane/readme.md | 2 + 2 files changed, 2 insertions(+), 37 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json index a34c66549942..bed95f500c07 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json @@ -262,43 +262,6 @@ "CustomEventEvent": { "type": "object", "description": "Properties of an event published to an Event Grid topic using a custom schema" - }, - "SubscriptionValidationEventData": { - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event.", - "type": "object", - "properties": { - "validationCode": { - "description": "The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", - "type": "string", - "readOnly": true - }, - "validationUrl": { - "description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", - "type": "string", - "readOnly": true - } - } - }, - "SubscriptionValidationResponse": { - "description": "To complete an event subscription validation handshake, a subscriber can use either the validationCode or the validationUrl received in a SubscriptionValidationEvent. When the validationCode is used, the SubscriptionValidationResponse can be used to build the response.", - "type": "object", - "properties": { - "validationResponse": { - "description": "The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription.", - "type": "string" - } - } - }, - "SubscriptionDeletedEventData": { - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent event.", - "type": "object", - "properties": { - "eventSubscriptionId": { - "description": "The Azure resource ID of the deleted event subscription.", - "type": "string", - "readOnly": true - } - } } }, "parameters": { diff --git a/specification/eventgrid/data-plane/readme.md b/specification/eventgrid/data-plane/readme.md index bd96408a73ef..22e518fdd347 100644 --- a/specification/eventgrid/data-plane/readme.md +++ b/specification/eventgrid/data-plane/readme.md @@ -122,6 +122,7 @@ input-file: - Microsoft.EventHub/stable/2018-01-01/EventHub.json - Microsoft.Resources/stable/2018-01-01/Resources.json - Microsoft.EventGrid/stable/2018-01-01/EventGrid.json +- Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json - Microsoft.DataBox/stable/2018-01-01/DataBox.json - Microsoft.Devices/stable/2018-01-01/IotHub.json - Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json @@ -152,6 +153,7 @@ input-file: - Microsoft.EventHub/stable/2018-01-01/EventHub.json - Microsoft.Resources/stable/2018-01-01/Resources.json - Microsoft.EventGrid/stable/2018-01-01/EventGrid.json +- Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json - Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json - Microsoft.DataBox/stable/2018-01-01/DataBox.json - Microsoft.Devices/stable/2018-01-01/IotHub.json From 6ec679d6546a03c9a466212cb6ad019929e7cdcc Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:05:51 -0700 Subject: [PATCH 15/26] paths --- .../Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index 87695b5c59dd..a0448ab9243b 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -5,6 +5,7 @@ "title": "EventGrid SystemEvents", "description": "Azure EventGrid System Events" }, + "paths": {}, "definitions": { "SubscriptionValidationEventData": { "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event.", From 7c9681f665aa648cabe38cc5bb7bc748b66ad597 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:11:30 -0700 Subject: [PATCH 16/26] disconnect enum --- .../stable/2018-01-01/SystemEvents.json | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index a0448ab9243b..f50c1d3885e8 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -132,8 +132,25 @@ }, "disconnectionReason": { "type": "string", - "description": "Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table." - } + "description": "Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table.", + "enum": [ + "ClientAuthenticationError", + "ClientAuthorizationError", + "ClientError", + "ClientInitiatedDisconnect", + "ConnectionLost", + "IpForbidden", + "QuotaExceeded", + "ServerError", + "ServerInitiatedDisconnect", + "SessionOverflow", + "SessionTakenOver" + ], + "x-ms-enum": { + "name": "mqttClientDisconnectionReason", + "modelAsString": true + } + } } }, "EventGridNamespaceMQTTClientEventData": { From 3c03d75d5ce874ebdb82853cbe19f25528aacdc7 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:16:54 -0700 Subject: [PATCH 17/26] date time --- .../Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index f50c1d3885e8..39edc076f66c 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -67,10 +67,12 @@ }, "createdOn": { "type": "string", + "format": "date-time", "description": "Time the client resource is created based on the provider's UTC time." }, "updatedOn": { "type": "string", + "format": "date-time", "description": "Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property." }, "attributes": { From 74d3408eaafbf983ecf00331b87da1b2add77e04 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:22:06 -0700 Subject: [PATCH 18/26] arch board updates --- .../stable/2018-01-01/SystemEvents.json | 75 +++++++++++++++---- 1 file changed, 60 insertions(+), 15 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index 39edc076f66c..e0cf76fa3a9a 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -44,12 +44,12 @@ } } }, - "EventGridNamespaceMQTTClientCreatedOrUpdatedEventData": { + "EventGridMQTTClientCreatedOrUpdatedEventData": { "type": "object", "description": "Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.", "allOf": [ { - "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" + "$ref": "#/definitions/EventGridMQTTClientEventData" } ], "properties": { @@ -61,7 +61,7 @@ "Disabled" ], "x-ms-enum": { - "name": "mqttClientState", + "name": "EventGridMqttClientState", "modelAsString": true } }, @@ -84,7 +84,7 @@ } } }, - "EventGridNamespaceMQTTClientDeletedEventData": { + "EventGridMQTTClientDeletedEventData": { "type": "object", "description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.", "allOf": [ @@ -94,7 +94,7 @@ ], "properties": {} }, - "EventGridNamespaceMQTTClientSessionConnectedEventData": { + "EventGridMQTTClientSessionConnectedEventData": { "type": "object", "description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.", "allOf": [ @@ -114,12 +114,12 @@ } } }, - "EventGridNamespaceMQTTClientSessionDisconnectedEventData": { + "EventGridMQTTClientSessionDisconnectedEventData": { "type": "object", "description": "Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.", "allOf": [ { - "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" + "$ref": "#/definitions/EventGridMQTTClientEventData" } ], "properties": { @@ -128,7 +128,7 @@ "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." }, "sequenceNumber": { - "type": "number", + "type": "integer", "format": "int64", "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." }, @@ -141,7 +141,7 @@ "ClientError", "ClientInitiatedDisconnect", "ConnectionLost", - "IpForbidden", + "IPForbidden", "QuotaExceeded", "ServerError", "ServerInitiatedDisconnect", @@ -149,13 +149,58 @@ "SessionTakenOver" ], "x-ms-enum": { - "name": "mqttClientDisconnectionReason", - "modelAsString": true - } - } - } + "name": "EventGridMqttClientDisconnectionReason", + "modelAsString": true, + "values": [ + { + "value": "ClientAuthenticationError", + "description": "The client got disconnected for any authentication reasons (for example, certificate expired, client got disabled, or client configuration changed)." + }, + { + "value": "ClientAuthorizationError", + "description": "The client got disconnected for any authorization reasons (for example, because of a change in the configuration of topic spaces, permission bindings, or client groups)." + }, + { + "value": "ClientError", + "description": "The client sent a bad request or used one of the unsupported features that resulted in a connection termination by the service." + }, + { + "value": "ClientInitiatedDisconnect", + "description": "The client initiates a graceful disconnect through a DISCONNECT packet for MQTT or a close frame for MQTT over WebSocket." + }, + { + "value": "ConnectionLost", + "description": "The client-server connection is lost. (EXCHANGE ONLINE PROTECTION)." + }, + { + "value": "IpForbidden", + "description": "The client's IP address is blocked by IP filter or Private links configuration." + }, + { + "value": "QuotaExceeded", + "description": "The client exceeded one or more of the throttling limits that resulted in a connection termination by the service." + }, + { + "value": "ServerError", + "description": "The connection got terminated due to an unexpected server error." + }, + { + "value": "ServerInitiatedDisconnect", + "description": "The server initiates a graceful disconnect for any operational reason." + }, + { + "value": "SessionOverflow", + "description": "The client's queue for unacknowledged QoS1 messages reached its limit, which resulted in a connection termination by the server." + }, + { + "value": "SessionTakenOver", + "description": "The client reconnected with the same authentication name, which resulted in the termination of the previous connection." + } + ] + } + } }, - "EventGridNamespaceMQTTClientEventData": { + "EventGridMQTTClientEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for MQTT Client Created Or Updated event.", "properties": { From 015284b98b482d84cf62d1302c87d38602c7bf42 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:27:07 -0700 Subject: [PATCH 19/26] brace --- .../Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index e0cf76fa3a9a..8a7f7cd95ee5 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -218,5 +218,6 @@ } } } + } } } \ No newline at end of file From 23e982ad3cb2d8284b4b8118304a0403ce879979 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:30:03 -0700 Subject: [PATCH 20/26] fix --- .../Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index 8a7f7cd95ee5..17fe30780321 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -89,7 +89,7 @@ "description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.", "allOf": [ { - "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" + "$ref": "#/definitions/EventGridMQTTClientEventData" } ], "properties": {} @@ -99,7 +99,7 @@ "description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.", "allOf": [ { - "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" + "$ref": "#/definitions/EventGridMQTTClientEventData" } ], "properties": { From 4bf1cbc2211534d8d7a3a5b9de41ef1e6b8a77aa Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:32:52 -0700 Subject: [PATCH 21/26] fix --- .../Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index 17fe30780321..6479e343fc3e 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -199,6 +199,7 @@ ] } } + } }, "EventGridMQTTClientEventData": { "type": "object", @@ -217,7 +218,6 @@ "description": "Name of the Event Grid namespace where the MQTT client was created or updated." } } - } } } } \ No newline at end of file From 4f9e31810074528bfbb663cff4605c3f204cae80 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:36:03 -0700 Subject: [PATCH 22/26] fix casing --- .../Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index 6479e343fc3e..eef56589e3e2 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -141,7 +141,7 @@ "ClientError", "ClientInitiatedDisconnect", "ConnectionLost", - "IPForbidden", + "IpForbidden", "QuotaExceeded", "ServerError", "ServerInitiatedDisconnect", From c469ea09dad6b36cc52698e9183f22f2b0189f64 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Tue, 5 Sep 2023 10:41:20 -0700 Subject: [PATCH 23/26] fix description --- .../Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index eef56589e3e2..7ace329b6b76 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -203,7 +203,7 @@ }, "EventGridMQTTClientEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for MQTT Client Created Or Updated event.", + "description": "Schema of the Data property of an EventGridEvent for MQTT Client state changes.", "properties": { "clientAuthenticationName": { "type": "string", From 3c2650601ff2be8f2c09fb7f8ba96ea3dd3109f0 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Tue, 5 Sep 2023 10:47:58 -0700 Subject: [PATCH 24/26] revert swagger changes --- .../preview/2023-06-01-preview/EventGrid.json | 140 ------------------ 1 file changed, 140 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json index 590048805829..b378a3e5b0a6 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json @@ -672,146 +672,6 @@ "failedLockTokens", "succeededLockTokens" ] - }, - "EventGridNamespaceMQTTClientCreatedOrUpdatedEventData": { - "type": "object", - "description": "Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.", - "allOf": [ - { - "$ref": "#/definitions/MQTTClientCreatedOrUpdatedEventProperties" - } - ], - "properties": {} - }, - "EventGridNamespaceMQTTClientDeletedEventData": { - "type": "object", - "description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.", - "allOf": [ - { - "$ref": "#/definitions/MQTTClientDeletedEventProperties" - } - ], - "properties": {} - }, - "EventGridNamespaceMQTTClientSessionConnectedEventData": { - "type": "object", - "description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.", - "allOf": [ - { - "$ref": "#/definitions/MQTTClientSessionConnectedEventProperties" - } - ], - "properties": {} - }, - "EventGridNamespaceMQTTClientSessionDisconnectedEventData": { - "type": "object", - "description": "Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.", - "allOf": [ - { - "$ref": "#/definitions/MQTTClientSessionDisconnectedEventProperties" - } - ], - "properties": {} - }, - "MQTTClientCreatedOrUpdatedEventProperties": { - "type": "object", - "description": "Schema of the Data property of an EventGridEvent for MQTT Client Created Or Updated event.", - "properties": { - "clientAuthenticationName": { - "type": "string", - "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." - }, - "clientName": { - "type": "string", - "description": "Name of the client resource in the Event Grid namespace." - }, - "namespaceName": { - "type": "string", - "description": "Name of the Event Grid namespace where the MQTT client was created or updated." - }, - "state": { - "type": "string", - "description": "Configured state of the client. The value could be Enabled or Disabled." - }, - "createdOn": { - "type": "string", - "description": "Time the client resource is created based on the provider's UTC time." - }, - "updatedOn": { - "type": "string", - "description": "Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property." - }, - "attributes": { - "type": "object", - "description": "The key-value attributes that are assigned to the client resource." - } - } - }, - "MQTTClientDeletedEventProperties": { - "type": "object", - "description": "Schema of the Data property of an EventGridEvent for MQTT Client Deleted event.", - "properties": { - "clientAuthenticationName": { - "type": "string", - "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." - }, - "clientName": { - "type": "string", - "description": "Name of the client resource in the Event Grid namespace." - }, - "namespaceName": { - "type": "string", - "description": "Name of the Event Grid namespace where the MQTT client was deleted." - } - } - }, - "MQTTClientSessionConnectedEventProperties": { - "type": "object", - "description": "Schema of the Data property of an EventGridEvent for MQTT Client Session Connected event.", - "properties": { - "clientAuthenticationName": { - "type": "string", - "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." - }, - "clientSessionName": { - "type": "string", - "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." - }, - "namespaceName": { - "type": "string", - "description": "Name of the Event Grid namespace where the MQTT client was connected" - }, - "sequenceNumber": { - "type": "string", - "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." - } - } - }, - "MQTTClientSessionDisconnectedEventProperties": { - "type": "object", - "description": "Schema of the Data property of an EventGridEvent for MQTT Client Session Disconnected.", - "properties": { - "clientAuthenticationName": { - "type": "string", - "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." - }, - "clientSessionName": { - "type": "string", - "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." - }, - "namespaceName": { - "type": "string", - "description": "Name of the Event Grid namespace where the MQTT client was disconnected." - }, - "sequenceNumber": { - "type": "string", - "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." - }, - "disconnectionReason": { - "type": "string", - "description": "Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table." - } - } } }, "parameters": { From 2005ee8e8bcd857bc41cacddbd481da1e4630baf Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Tue, 5 Sep 2023 11:00:58 -0700 Subject: [PATCH 25/26] add x-ms-examples --- .../stable/2018-01-01/SystemEvents.json | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index 7ace329b6b76..c8dd1bde1c6b 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -82,6 +82,14 @@ "type": "string" } } + }, + "x-ms-examples": { + "EventGridMQTTClientCreatedOrUpdatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/client_created_or_updated.json" + }, + "EventGridMQTTClientCreatedOrUpdatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/client_created_or_updated.json" + } } }, "EventGridMQTTClientDeletedEventData": { @@ -92,7 +100,15 @@ "$ref": "#/definitions/EventGridMQTTClientEventData" } ], - "properties": {} + "properties": {}, + "x-ms-examples": { + "EventGridMQTTClientDeletedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/client_deleted.json" + }, + "EventGridMQTTClientDeletedEventGridSchema": { + "$ref": "./examples/event-grid-schema/client_deleted.json" + } + } }, "EventGridMQTTClientSessionConnectedEventData": { "type": "object", @@ -112,6 +128,14 @@ "format": "int64", "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." } + }, + "x-ms-examples": { + "EventGridMQTTClientSessionConnectedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/clientsession_connected.json" + }, + "EventGridMQTTClientSessionConnectedEventGridSchema": { + "$ref": "./examples/event-grid-schema/clientsession_connected.json" + } } }, "EventGridMQTTClientSessionDisconnectedEventData": { @@ -199,6 +223,14 @@ ] } } + }, + "x-ms-examples": { + "EventGridMQTTClientSessionDisconnectedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/clientsession_disconnected.json" + }, + "EventGridMQTTClientSessionDisconnectedEventGridSchema": { + "$ref": "./examples/event-grid-schema/clientsession_disconnected.json" + } } }, "EventGridMQTTClientEventData": { From 79cf38508fdf2f287ae2094b92498b1d4d26a5f8 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Tue, 5 Sep 2023 11:38:53 -0700 Subject: [PATCH 26/26] apply prettier --- .../stable/2018-01-01/SystemEvents.json | 472 +++++++++--------- 1 file changed, 236 insertions(+), 236 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json index c8dd1bde1c6b..ec0a8c862678 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json @@ -1,255 +1,255 @@ { - "swagger": "2.0", - "info": { - "version": "2018-01-01", - "title": "EventGrid SystemEvents", - "description": "Azure EventGrid System Events" + "swagger": "2.0", + "info": { + "version": "2018-01-01", + "title": "EventGrid SystemEvents", + "description": "Azure EventGrid System Events" + }, + "paths": {}, + "definitions": { + "SubscriptionValidationEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event.", + "type": "object", + "properties": { + "validationCode": { + "description": "The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", + "type": "string", + "readOnly": true + }, + "validationUrl": { + "description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", + "type": "string", + "readOnly": true + } + } + }, + "SubscriptionValidationResponse": { + "description": "To complete an event subscription validation handshake, a subscriber can use either the validationCode or the validationUrl received in a SubscriptionValidationEvent. When the validationCode is used, the SubscriptionValidationResponse can be used to build the response.", + "type": "object", + "properties": { + "validationResponse": { + "description": "The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription.", + "type": "string" + } + } + }, + "SubscriptionDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent event.", + "type": "object", + "properties": { + "eventSubscriptionId": { + "description": "The Azure resource ID of the deleted event subscription.", + "type": "string", + "readOnly": true + } + } }, - "paths": {}, - "definitions": { - "SubscriptionValidationEventData": { - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event.", - "type": "object", - "properties": { - "validationCode": { - "description": "The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", - "type": "string", - "readOnly": true - }, - "validationUrl": { - "description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", - "type": "string", - "readOnly": true - } - } + "EventGridMQTTClientCreatedOrUpdatedEventData": { + "type": "object", + "description": "Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.", + "allOf": [ + { + "$ref": "#/definitions/EventGridMQTTClientEventData" + } + ], + "properties": { + "state": { + "type": "string", + "description": "Configured state of the client. The value could be Enabled or Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EventGridMqttClientState", + "modelAsString": true + } + }, + "createdOn": { + "type": "string", + "format": "date-time", + "description": "Time the client resource is created based on the provider's UTC time." }, - "SubscriptionValidationResponse": { - "description": "To complete an event subscription validation handshake, a subscriber can use either the validationCode or the validationUrl received in a SubscriptionValidationEvent. When the validationCode is used, the SubscriptionValidationResponse can be used to build the response.", - "type": "object", - "properties": { - "validationResponse": { - "description": "The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription.", - "type": "string" - } - } + "updatedOn": { + "type": "string", + "format": "date-time", + "description": "Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property." }, - "SubscriptionDeletedEventData": { - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent event.", - "type": "object", - "properties": { - "eventSubscriptionId": { - "description": "The Azure resource ID of the deleted event subscription.", - "type": "string", - "readOnly": true - } - } + "attributes": { + "type": "object", + "description": "The key-value attributes that are assigned to the client resource.", + "additionalProperties": { + "type": "string" + } + } + }, + "x-ms-examples": { + "EventGridMQTTClientCreatedOrUpdatedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/client_created_or_updated.json" + }, + "EventGridMQTTClientCreatedOrUpdatedEventGridSchema": { + "$ref": "./examples/event-grid-schema/client_created_or_updated.json" + } + } + }, + "EventGridMQTTClientDeletedEventData": { + "type": "object", + "description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.", + "allOf": [ + { + "$ref": "#/definitions/EventGridMQTTClientEventData" + } + ], + "properties": {}, + "x-ms-examples": { + "EventGridMQTTClientDeletedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/client_deleted.json" + }, + "EventGridMQTTClientDeletedEventGridSchema": { + "$ref": "./examples/event-grid-schema/client_deleted.json" + } + } + }, + "EventGridMQTTClientSessionConnectedEventData": { + "type": "object", + "description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.", + "allOf": [ + { + "$ref": "#/definitions/EventGridMQTTClientEventData" + } + ], + "properties": { + "clientSessionName": { + "type": "string", + "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." }, - "EventGridMQTTClientCreatedOrUpdatedEventData": { - "type": "object", - "description": "Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.", - "allOf": [ + "sequenceNumber": { + "type": "number", + "format": "int64", + "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." + } + }, + "x-ms-examples": { + "EventGridMQTTClientSessionConnectedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/clientsession_connected.json" + }, + "EventGridMQTTClientSessionConnectedEventGridSchema": { + "$ref": "./examples/event-grid-schema/clientsession_connected.json" + } + } + }, + "EventGridMQTTClientSessionDisconnectedEventData": { + "type": "object", + "description": "Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.", + "allOf": [ + { + "$ref": "#/definitions/EventGridMQTTClientEventData" + } + ], + "properties": { + "clientSessionName": { + "type": "string", + "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "sequenceNumber": { + "type": "integer", + "format": "int64", + "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." + }, + "disconnectionReason": { + "type": "string", + "description": "Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table.", + "enum": [ + "ClientAuthenticationError", + "ClientAuthorizationError", + "ClientError", + "ClientInitiatedDisconnect", + "ConnectionLost", + "IpForbidden", + "QuotaExceeded", + "ServerError", + "ServerInitiatedDisconnect", + "SessionOverflow", + "SessionTakenOver" + ], + "x-ms-enum": { + "name": "EventGridMqttClientDisconnectionReason", + "modelAsString": true, + "values": [ { - "$ref": "#/definitions/EventGridMQTTClientEventData" - } - ], - "properties": { - "state": { - "type": "string", - "description": "Configured state of the client. The value could be Enabled or Disabled", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "EventGridMqttClientState", - "modelAsString": true - } - }, - "createdOn": { - "type": "string", - "format": "date-time", - "description": "Time the client resource is created based on the provider's UTC time." - }, - "updatedOn": { - "type": "string", - "format": "date-time", - "description": "Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property." - }, - "attributes": { - "type": "object", - "description": "The key-value attributes that are assigned to the client resource.", - "additionalProperties": { - "type": "string" - } - } - }, - "x-ms-examples": { - "EventGridMQTTClientCreatedOrUpdatedCloudEventsSchema": { - "$ref": "./examples/cloud-events-schema/client_created_or_updated.json" + "value": "ClientAuthenticationError", + "description": "The client got disconnected for any authentication reasons (for example, certificate expired, client got disabled, or client configuration changed)." }, - "EventGridMQTTClientCreatedOrUpdatedEventGridSchema": { - "$ref": "./examples/event-grid-schema/client_created_or_updated.json" - } - } - }, - "EventGridMQTTClientDeletedEventData": { - "type": "object", - "description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.", - "allOf": [ { - "$ref": "#/definitions/EventGridMQTTClientEventData" - } - ], - "properties": {}, - "x-ms-examples": { - "EventGridMQTTClientDeletedCloudEventsSchema": { - "$ref": "./examples/cloud-events-schema/client_deleted.json" + "value": "ClientAuthorizationError", + "description": "The client got disconnected for any authorization reasons (for example, because of a change in the configuration of topic spaces, permission bindings, or client groups)." }, - "EventGridMQTTClientDeletedEventGridSchema": { - "$ref": "./examples/event-grid-schema/client_deleted.json" - } - } - }, - "EventGridMQTTClientSessionConnectedEventData": { - "type": "object", - "description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.", - "allOf": [ { - "$ref": "#/definitions/EventGridMQTTClientEventData" - } - ], - "properties": { - "clientSessionName": { - "type": "string", - "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." - }, - "sequenceNumber": { - "type": "number", - "format": "int64", - "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." - } - }, - "x-ms-examples": { - "EventGridMQTTClientSessionConnectedCloudEventsSchema": { - "$ref": "./examples/cloud-events-schema/clientsession_connected.json" + "value": "ClientError", + "description": "The client sent a bad request or used one of the unsupported features that resulted in a connection termination by the service." }, - "EventGridMQTTClientSessionConnectedEventGridSchema": { - "$ref": "./examples/event-grid-schema/clientsession_connected.json" - } - } - }, - "EventGridMQTTClientSessionDisconnectedEventData": { - "type": "object", - "description": "Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.", - "allOf": [ { - "$ref": "#/definitions/EventGridMQTTClientEventData" - } - ], - "properties": { - "clientSessionName": { - "type": "string", - "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." - }, - "sequenceNumber": { - "type": "integer", - "format": "int64", - "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." - }, - "disconnectionReason": { - "type": "string", - "description": "Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table.", - "enum": [ - "ClientAuthenticationError", - "ClientAuthorizationError", - "ClientError", - "ClientInitiatedDisconnect", - "ConnectionLost", - "IpForbidden", - "QuotaExceeded", - "ServerError", - "ServerInitiatedDisconnect", - "SessionOverflow", - "SessionTakenOver" - ], - "x-ms-enum": { - "name": "EventGridMqttClientDisconnectionReason", - "modelAsString": true, - "values": [ - { - "value": "ClientAuthenticationError", - "description": "The client got disconnected for any authentication reasons (for example, certificate expired, client got disabled, or client configuration changed)." - }, - { - "value": "ClientAuthorizationError", - "description": "The client got disconnected for any authorization reasons (for example, because of a change in the configuration of topic spaces, permission bindings, or client groups)." - }, - { - "value": "ClientError", - "description": "The client sent a bad request or used one of the unsupported features that resulted in a connection termination by the service." - }, - { - "value": "ClientInitiatedDisconnect", - "description": "The client initiates a graceful disconnect through a DISCONNECT packet for MQTT or a close frame for MQTT over WebSocket." - }, - { - "value": "ConnectionLost", - "description": "The client-server connection is lost. (EXCHANGE ONLINE PROTECTION)." - }, - { - "value": "IpForbidden", - "description": "The client's IP address is blocked by IP filter or Private links configuration." - }, - { - "value": "QuotaExceeded", - "description": "The client exceeded one or more of the throttling limits that resulted in a connection termination by the service." - }, - { - "value": "ServerError", - "description": "The connection got terminated due to an unexpected server error." - }, - { - "value": "ServerInitiatedDisconnect", - "description": "The server initiates a graceful disconnect for any operational reason." - }, - { - "value": "SessionOverflow", - "description": "The client's queue for unacknowledged QoS1 messages reached its limit, which resulted in a connection termination by the server." - }, - { - "value": "SessionTakenOver", - "description": "The client reconnected with the same authentication name, which resulted in the termination of the previous connection." - } - ] - } - } - }, - "x-ms-examples": { - "EventGridMQTTClientSessionDisconnectedCloudEventsSchema": { - "$ref": "./examples/cloud-events-schema/clientsession_disconnected.json" + "value": "ClientInitiatedDisconnect", + "description": "The client initiates a graceful disconnect through a DISCONNECT packet for MQTT or a close frame for MQTT over WebSocket." }, - "EventGridMQTTClientSessionDisconnectedEventGridSchema": { - "$ref": "./examples/event-grid-schema/clientsession_disconnected.json" - } - } - }, - "EventGridMQTTClientEventData": { - "type": "object", - "description": "Schema of the Data property of an EventGridEvent for MQTT Client state changes.", - "properties": { - "clientAuthenticationName": { - "type": "string", - "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + { + "value": "ConnectionLost", + "description": "The client-server connection is lost. (EXCHANGE ONLINE PROTECTION)." + }, + { + "value": "IpForbidden", + "description": "The client's IP address is blocked by IP filter or Private links configuration." + }, + { + "value": "QuotaExceeded", + "description": "The client exceeded one or more of the throttling limits that resulted in a connection termination by the service." + }, + { + "value": "ServerError", + "description": "The connection got terminated due to an unexpected server error." }, - "clientName": { - "type": "string", - "description": "Name of the client resource in the Event Grid namespace." + { + "value": "ServerInitiatedDisconnect", + "description": "The server initiates a graceful disconnect for any operational reason." }, - "namespaceName": { - "type": "string", - "description": "Name of the Event Grid namespace where the MQTT client was created or updated." + { + "value": "SessionOverflow", + "description": "The client's queue for unacknowledged QoS1 messages reached its limit, which resulted in a connection termination by the server." + }, + { + "value": "SessionTakenOver", + "description": "The client reconnected with the same authentication name, which resulted in the termination of the previous connection." } - } + ] } + } + }, + "x-ms-examples": { + "EventGridMQTTClientSessionDisconnectedCloudEventsSchema": { + "$ref": "./examples/cloud-events-schema/clientsession_disconnected.json" + }, + "EventGridMQTTClientSessionDisconnectedEventGridSchema": { + "$ref": "./examples/event-grid-schema/clientsession_disconnected.json" + } + } + }, + "EventGridMQTTClientEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for MQTT Client state changes.", + "properties": { + "clientAuthenticationName": { + "type": "string", + "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." + }, + "clientName": { + "type": "string", + "description": "Name of the client resource in the Event Grid namespace." + }, + "namespaceName": { + "type": "string", + "description": "Name of the Event Grid namespace where the MQTT client was created or updated." + } + } } + } } \ No newline at end of file