From a58614a53ecd06c6e6638b58c407d5bd8e61c009 Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Mon, 3 Jun 2024 12:44:29 -0700 Subject: [PATCH] [EG] System events reformat (#28706) * refactor * updayrd * format * add apicenter * update new events * tsp format * new events * modelAsString for Media Union as False * tsp format * Revert "tsp format" This reverts commit 1a01cf8de33e48e80ccde56cf1748f68a4ff86b8. * Revert "modelAsString for Media Union as False" This reverts commit 6b605812192def3ba6baef1894f53ea5ea71c854. * remove ReadOnly * rename resources * remove duplicate vault * remove Optional from Nullable Types part 1 * add csharp to x-ms-client-names * typo * swagger typo * formatting * Client Name Overrides JS EG System Events * Adding in renames for Go * fix RecordingDurationMs casing * Fixing something that Libba refused to for like months now. * Removing SystemEvents from the constant names * Should be a number == float64. * Field name is labelOperator, not operator. (as shown here: https://github.com/Azure/azure-rest-api-specs/blob/0a8300f818c1df4018e2586540bed4c72c7c5375/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L2120) * Field is state, not selectorState: https://github.com/Azure/azure-rest-api-specs/blob/0a8300f818c1df4018e2586540bed4c72c7c5375/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L2171 * More renames to bring us to par with what we had before. * Adding in some docs that were missing for unions. * format * fix warnigns * moving around clientNames * spellcheck * try to update csharp clientNames * tsp format * missing labelValue x-ms-client-name * format * nit typo * update csharp --------- Co-authored-by: Sarangan Rajamanickam Co-authored-by: ripark --- cSpell.json | 6 + .../{ => Microsoft.AVS}/AVS.tsp | 6 +- .../Microsoft.AVS/client.tsp | 91 + .../Microsoft.ApiCenter/ApiCenter.tsp | 35 + .../Microsoft.ApiCenter/client.tsp | 23 + .../ApiManagement.tsp | 0 .../Microsoft.ApiManagement/client.tsp | 161 ++ .../AppConfiguration.tsp | 0 .../Microsoft.AppConfiguration/client.tsp | 35 + .../{ => Microsoft.Cache}/RedisCache.tsp | 2 +- .../Microsoft.Cache/client.tsp | 29 + .../AzureCommunicationServices.tsp | 454 ++++- .../Microsoft.Communication/client.tsp | 513 +++++ .../ContainerRegistry.tsp | 16 +- .../Microsoft.ContainerRegistry/client.tsp | 77 + .../ContainerService.tsp | 0 .../Microsoft.ContainerService/client.tsp | 53 + .../{ => Microsoft.DataBox}/DataBox.tsp | 4 +- .../Microsoft.DataBox/client.tsp | 25 + .../{ => Microsoft.Devices}/IotHub.tsp | 20 +- .../Microsoft.Devices/client.tsp | 77 + .../{ => Microsoft.EventGrid}/EventGrid.tsp | 25 +- .../Microsoft.EventGrid/client.tsp | 65 + .../{ => Microsoft.EventHub}/EventHub.tsp | 4 +- .../Microsoft.EventHub/client.tsp | 11 + .../HealthcareApis.tsp | 6 +- .../Microsoft.HealthcareApis/client.tsp | 53 + .../{ => Microsoft.KeyVault}/KeyVault.tsp | 2 +- .../Microsoft.KeyVault/client.tsp | 65 + .../MachineLearningServices.tsp | 20 +- .../client.tsp | 35 + .../{ => Microsoft.Maps}/Maps.tsp | 2 +- .../Microsoft.Maps/client.tsp | 31 + .../{ => Microsoft.Media}/MediaServices.tsp | 102 +- .../Microsoft.Media/client.tsp | 171 ++ .../PolicyInsights.tsp | 2 +- .../Microsoft.PolicyInsights/client.tsp | 23 + .../ResourceNotifications.tsp | 14 +- .../client.tsp | 59 + .../{ => Microsoft.Resources}/Resources.tsp | 26 +- .../Microsoft.Resources/client.tsp | 63 + .../{ => Microsoft.ServiceBus}/ServiceBus.tsp | 0 .../Microsoft.ServiceBus/client.tsp | 29 + .../SignalRService.tsp | 2 +- .../Microsoft.SignalRService/client.tsp | 17 + .../{ => Microsoft.Storage}/Storage.tsp | 26 +- .../Microsoft.Storage/client.tsp | 107 + .../{ => Microsoft.Web}/Web.tsp | 14 +- .../Microsoft.Web/client.tsp | 103 + .../client.tsp | 1717 +---------------- .../main.tsp | 47 +- .../propertyNameOverride.tsp | 119 +- .../propertyNameOverrideCsharp.tsp | 206 ++ .../propertyNameOverrideGo.tsp | 592 ++++++ .../propertyNameOverrideJs.tsp | 167 ++ .../stable/2024-01-01/SystemEvents.json | 1563 ++++++++++++--- 56 files changed, 4790 insertions(+), 2325 deletions(-) rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.AVS}/AVS.tsp (93%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/client.tsp create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiCenter/ApiCenter.tsp create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiCenter/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.ApiManagement}/ApiManagement.tsp (100%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiManagement/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.AppConfiguration}/AppConfiguration.tsp (100%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AppConfiguration/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.Cache}/RedisCache.tsp (97%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Cache/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.Communication}/AzureCommunicationServices.tsp (76%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Communication/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.ContainerRegistry}/ContainerRegistry.tsp (93%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerRegistry/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.ContainerService}/ContainerService.tsp (100%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerService/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.DataBox}/DataBox.tsp (94%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.DataBox/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.Devices}/IotHub.tsp (94%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Devices/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.EventGrid}/EventGrid.tsp (90%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventGrid/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.EventHub}/EventHub.tsp (92%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventHub/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.HealthcareApis}/HealthcareApis.tsp (99%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.HealthcareApis/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.KeyVault}/KeyVault.tsp (98%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.KeyVault/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.MachineLearningServices}/MachineLearningServices.tsp (92%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.MachineLearningServices/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.Maps}/Maps.tsp (98%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Maps/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.Media}/MediaServices.tsp (88%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Media/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.PolicyInsights}/PolicyInsights.tsp (98%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.PolicyInsights/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.ResourceNotifications}/ResourceNotifications.tsp (91%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.Resources}/Resources.tsp (87%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Resources/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.ServiceBus}/ServiceBus.tsp (100%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ServiceBus/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.SignalRService}/SignalRService.tsp (97%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.SignalRService/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.Storage}/Storage.tsp (95%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Storage/client.tsp rename specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/{ => Microsoft.Web}/Web.tsp (96%) create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Web/client.tsp create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideCsharp.tsp create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideGo.tsp create mode 100644 specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideJs.tsp diff --git a/cSpell.json b/cSpell.json index ae2a6b889726..0af01c9ee4c6 100644 --- a/cSpell.json +++ b/cSpell.json @@ -378,6 +378,12 @@ "clientsession" ] }, + { + "filename": "**/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/SystemEvents.json", + "words": [ + "whatsapp" + ] + }, { "filename": "**/specification/eventgrid/data-plane/Microsoft.EventGrid/**/EventGrid.json", "words": [ diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/AVS.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/AVS.tsp similarity index 93% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/AVS.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/AVS.tsp index 2ef13e50eb5b..deae256ada7b 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/AVS.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/AVS.tsp @@ -39,11 +39,15 @@ model AvsClusterFailedEventData extends AvsClusterEventData { failureMessage?: string; } +/** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionStarted event. */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." +model AvsScriptExecutionStartedEventData extends AvsScriptExecutionEventData {} + /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionFinished event. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." model AvsScriptExecutionFinishedEventData extends AvsScriptExecutionEventData { /** Named outputs of completed execution, if any. */ - namedOutputs?: Record; + namedOutputs: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionCancelled event. */ diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/client.tsp new file mode 100644 index 000000000000..3809c94f7ef5 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/client.tsp @@ -0,0 +1,91 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudUpdatingEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudUpdatingEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudFailedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudFailedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsClusterCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsClusterDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterUpdatingEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsClusterUpdatingEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsClusterUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterFailedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsClusterFailedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionStartedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionStartedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionFinishedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionFinishedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionCancelledEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionCancelledEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionFailedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionFailedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterEventData, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AvsClusterEventData, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiCenter/ApiCenter.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiCenter/ApiCenter.tsp new file mode 100644 index 000000000000..db7c17afdadc --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiCenter/ApiCenter.tsp @@ -0,0 +1,35 @@ +/** Describes the schema of the Azure API Center events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */ +namespace Microsoft.EventGrid.SystemEvents; + +/** Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionAdded event. */ +model ApiCenterApiDefinitionAddedEventData { + /** API definition title. */ + title?: string; + + /** API definition description. */ + description?: string; + + /** API definition specification. */ + specification: ApiCenterApiSpecification; +} + +/** Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionUpdated event. */ +model ApiCenterApiDefinitionUpdatedEventData { + /** API definition title. */ + title?: string; + + /** API definition description. */ + description?: string; + + /** API definition specification. */ + specification: ApiCenterApiSpecification; +} + +/** API specification details. */ +model ApiCenterApiSpecification { + /** Specification name. */ + name?: string; + + /** Specification version. */ + version?: string; +} diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiCenter/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiCenter/client.tsp new file mode 100644 index 000000000000..efcf1c1ab7c7 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiCenter/client.tsp @@ -0,0 +1,23 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.ApiCenterApiDefinitionAddedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiCenterApiDefinitionAddedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiCenterApiDefinitionUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiCenterApiDefinitionUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiCenterApiSpecification, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiCenterApiSpecification, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ApiManagement.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiManagement/ApiManagement.tsp similarity index 100% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ApiManagement.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiManagement/ApiManagement.tsp diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiManagement/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiManagement/client.tsp new file mode 100644 index 000000000000..fce0ed6f41e5 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ApiManagement/client.tsp @@ -0,0 +1,161 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementUserCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementUserCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementUserUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementUserUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementUserDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementUserDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementProductCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementProductCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementProductUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementProductUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementProductDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementProductDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayApiAddedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayApiAddedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayApiRemovedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayApiRemovedEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/AppConfiguration.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AppConfiguration/AppConfiguration.tsp similarity index 100% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/AppConfiguration.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AppConfiguration/AppConfiguration.tsp diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AppConfiguration/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AppConfiguration/client.tsp new file mode 100644 index 000000000000..35fbae302bfd --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AppConfiguration/client.tsp @@ -0,0 +1,35 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.AppConfigurationKeyValueModifiedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AppConfigurationKeyValueModifiedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AppConfigurationKeyValueDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AppConfigurationKeyValueDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotModifiedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotModifiedEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/RedisCache.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Cache/RedisCache.tsp similarity index 97% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/RedisCache.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Cache/RedisCache.tsp index 23b11d1a29c0..d797c05a7602 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/RedisCache.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Cache/RedisCache.tsp @@ -2,7 +2,7 @@ namespace Microsoft.EventGrid.SystemEvents { alias RedisBaseEventData = { /** The time at which the event occurred. */ - timestamp?: utcDateTime; + timestamp: utcDateTime; /** The name of this event. */ name?: string; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Cache/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Cache/client.tsp new file mode 100644 index 000000000000..8d1d9ec30d62 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Cache/client.tsp @@ -0,0 +1,29 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.RedisPatchingCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.RedisPatchingCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.RedisScalingCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.RedisScalingCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.RedisExportRDBCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.RedisExportRDBCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.RedisImportRDBCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.RedisImportRDBCompletedEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/AzureCommunicationServices.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Communication/AzureCommunicationServices.tsp similarity index 76% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/AzureCommunicationServices.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Communication/AzureCommunicationServices.tsp index a92fe86b11f7..69b9b1966ffb 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/AzureCommunicationServices.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Communication/AzureCommunicationServices.tsp @@ -4,10 +4,10 @@ namespace Microsoft.EventGrid.SystemEvents; /** Schema of the Data property of an EventGridEvent for an Microsoft.Communication.IncomingCall event */ model AcsIncomingCallEventData { /** The communication identifier of the target user. */ - to?: CommunicationIdentifierModel; + to: CommunicationIdentifierModel; /** The communication identifier of the user who initiated the call. */ - from?: CommunicationIdentifierModel; + from: CommunicationIdentifierModel; /** The Id of the server call */ serverCallId?: string; @@ -16,7 +16,7 @@ model AcsIncomingCallEventData { callerDisplayName?: string; /** Custom Context of Incoming Call */ - customContext?: AcsIncomingCallCustomContext; + customContext: AcsIncomingCallCustomContext; /** Signed incoming call context. */ incomingCallContext?: string; @@ -28,7 +28,7 @@ model AcsIncomingCallEventData { /** Schema of the Data property of an EventGridEvent for an Microsoft.Communication.UserDisconnected event. */ model AcsUserDisconnectedEventData { /** The communication identifier of the user who was disconnected */ - userCommunicationIdentifier?: CommunicationIdentifierModel; + userCommunicationIdentifier: CommunicationIdentifierModel; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceived event. */ @@ -51,7 +51,7 @@ model AcsChatMessageEditedEventData extends AcsChatMessageEventBaseProperties { ...AcsChatMessageBaseEventData; /** The time at which the message was edited */ - editTime?: utcDateTime; + editTime: utcDateTime; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEditedInThread event. */ @@ -61,14 +61,14 @@ model AcsChatMessageEditedInThreadEventData ...AcsChatMessageBaseEventData; /** The time at which the message was edited */ - editTime?: utcDateTime; + editTime: utcDateTime; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeleted event. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." model AcsChatMessageDeletedEventData extends AcsChatMessageEventBaseProperties { /** The time at which the message was deleted */ - deleteTime?: utcDateTime; + deleteTime: utcDateTime; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeletedInThread event. */ @@ -76,7 +76,7 @@ model AcsChatMessageDeletedEventData extends AcsChatMessageEventBaseProperties { model AcsChatMessageDeletedInThreadEventData extends AcsChatMessageEventInThreadBaseProperties { /** The time at which the message was deleted */ - deleteTime?: utcDateTime; + deleteTime: utcDateTime; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadCreatedWithUser event. */ @@ -112,17 +112,17 @@ model AcsChatThreadDeletedEventData model AcsChatThreadPropertiesUpdatedPerUserEventData extends AcsChatThreadEventBaseProperties { /** The communication identifier of the user who updated the thread properties */ - editedByCommunicationIdentifier?: CommunicationIdentifierModel; + editedByCommunicationIdentifier: CommunicationIdentifierModel; /** The time at which the properties of the thread were updated */ - editTime?: utcDateTime; + editTime: utcDateTime; /** The thread metadata */ - metadata?: Record; + metadata: Record; /** The updated thread properties */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "The type of properties is object with additionalProperties: object" - properties?: Record; + properties: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdated event. */ @@ -144,13 +144,13 @@ model AcsChatParticipantAddedToThreadWithUserEventData model AcsChatParticipantRemovedFromThreadWithUserEventData extends AcsChatThreadEventBaseProperties { /** The time at which the user was removed to the thread */ - time?: utcDateTime; + time: utcDateTime; /** The communication identifier of the user who removed the user */ - removedByCommunicationIdentifier?: CommunicationIdentifierModel; + removedByCommunicationIdentifier: CommunicationIdentifierModel; /** The details of the user who was removed */ - participantRemoved?: AcsChatThreadParticipantProperties; + participantRemoved: AcsChatThreadParticipantProperties; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadParticipantAdded event. */ @@ -168,13 +168,13 @@ model AcsChatParticipantAddedToThreadEventData model AcsChatParticipantRemovedFromThreadEventData extends AcsChatEventInThreadBaseProperties { /** The time at which the user was removed to the thread */ - time?: utcDateTime; + time: utcDateTime; /** The communication identifier of the user who removed the user */ - removedByCommunicationIdentifier?: CommunicationIdentifierModel; + removedByCommunicationIdentifier: CommunicationIdentifierModel; /** The details of the user who was removed */ - participantRemoved?: AcsChatThreadParticipantProperties; + participantRemoved: AcsChatThreadParticipantProperties; /** The version of the thread */ version?: int64; @@ -190,10 +190,10 @@ model AcsSmsDeliveryReportReceivedEventData extends AcsSmsEventBaseProperties { deliveryStatusDetails?: string; /** List of details of delivery attempts made */ - deliveryAttempts?: AcsSmsDeliveryAttemptProperties[]; + deliveryAttempts: AcsSmsDeliveryAttemptProperties[]; /** The time at which the SMS delivery report was received */ - receivedTimestamp?: utcDateTime; + receivedTimestamp: utcDateTime; /** Customer Content */ tag?: string; @@ -206,29 +206,29 @@ model AcsSmsReceivedEventData extends AcsSmsEventBaseProperties { message?: string; /** The time at which the SMS was received */ - receivedTimestamp?: utcDateTime; + receivedTimestamp: utcDateTime; } //TODO: This might need some fixing /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RecordingFileStatusUpdated event. */ model AcsRecordingFileStatusUpdatedEventData { /** The details of recording storage information */ - recordingStorageInfo?: AcsRecordingStorageInfoProperties; + recordingStorageInfo: AcsRecordingStorageInfoProperties; /** The time at which the recording started */ - recordingStartTime?: utcDateTime; + recordingStartTime: utcDateTime; /** The recording duration in milliseconds */ recordingDurationMs?: int64; /** The recording content type- AudioVideo, or Audio */ - recordingContentType?: recordingContentType; + recordingContentType: recordingContentType; /** The recording channel type - Mixed, Unmixed */ - recordingChannelType?: recordingChannelType; + recordingChannelType: recordingChannelType; /** The recording format type - Mp4, Mp3, Wav */ - recordingFormatType?: recordingFormatType; + recordingFormatType: recordingFormatType; /** The reason for ending recording session */ sessionEndReason?: string; @@ -246,13 +246,13 @@ model AcsEmailDeliveryReportReceivedEventData { messageId?: string; /** The status of the email. Any value other than Delivered is considered failed. */ - status?: AcsEmailDeliveryReportStatus; + status: AcsEmailDeliveryReportStatus; /** Detailed information about the status if any */ - deliveryStatusDetails?: AcsEmailDeliveryReportStatusDetails; + deliveryStatusDetails: AcsEmailDeliveryReportStatusDetails; /** The time at which the email delivery report received timestamp */ - deliveryAttemptTimeStamp?: utcDateTime; + deliveryAttemptTimeStamp: utcDateTime; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.EmailEngagementTrackingReportReceived event. */ @@ -267,7 +267,7 @@ model AcsEmailEngagementTrackingReportReceivedEventData { messageId?: string; /** The time at which the user interacted with the email */ - userActionTimeStamp?: utcDateTime; + userActionTimeStamp: utcDateTime; /** The context of the type of engagement user had with email */ engagementContext?: string; @@ -276,7 +276,7 @@ model AcsEmailEngagementTrackingReportReceivedEventData { userAgent?: string; /** The type of engagement user have with email */ - engagementType?: AcsUserEngagement; + engagementType: AcsUserEngagement; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobCancelled event */ @@ -296,14 +296,14 @@ model AcsRouterJobClassificationFailedEventData extends AcsRouterJobEventData { classificationPolicyId?: string; /** Router Job Classification Failed Errors */ - errors?: AcsRouterCommunicationError[]; + errors: AcsRouterCommunicationError[]; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClassified event */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." model AcsRouterJobClassifiedEventData extends AcsRouterJobEventData { /** Router Job Queue Info */ - queueDetails?: AcsRouterQueueDetails; + queueDetails: AcsRouterQueueDetails; /** Router Job Classification Policy Id */ classificationPolicyId?: string; @@ -312,7 +312,7 @@ model AcsRouterJobClassifiedEventData extends AcsRouterJobEventData { priority?: int32; /** Router Job Attached Worker Selector */ - attachedWorkerSelectors?: AcsRouterWorkerSelector[]; + attachedWorkerSelectors: AcsRouterWorkerSelector[]; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClosed event */ @@ -359,17 +359,17 @@ model AcsRouterJobQueuedEventData extends AcsRouterJobEventData { priority?: int32; /** Router Job Queued Attached Worker Selector */ - attachedWorkerSelectors?: AcsRouterWorkerSelector[]; + attachedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Queued Requested Worker Selector */ - requestedWorkerSelectors?: AcsRouterWorkerSelector[]; + requestedWorkerSelectors: AcsRouterWorkerSelector[]; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobReceived event */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." model AcsRouterJobReceivedEventData extends AcsRouterJobEventData { /** Router Job Received Job Status */ - jobStatus?: AcsRouterJobStatus; + jobStatus: AcsRouterJobStatus; /** Router Job Classification Policy Id */ classificationPolicyId?: string; @@ -378,10 +378,10 @@ model AcsRouterJobReceivedEventData extends AcsRouterJobEventData { priority?: int32; /** Router Job Received Requested Worker Selectors */ - requestedWorkerSelectors?: AcsRouterWorkerSelector[]; + requestedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Received Scheduled Time in UTC */ - scheduledOn?: utcDateTime; + scheduledOn: utcDateTime; /** Unavailable For Matching for Router Job Received */ unavailableForMatching: boolean; @@ -435,14 +435,14 @@ model AcsRouterJobSchedulingFailedEventData extends AcsRouterJobEventData { priority?: int32; /** Router Job Scheduling Failed Attached Worker Selector Expired */ - expiredAttachedWorkerSelectors?: AcsRouterWorkerSelector[]; + expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Scheduling Failed Requested Worker Selector Expired */ - expiredRequestedWorkerSelectors?: AcsRouterWorkerSelector[]; + expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Scheduling Failed Scheduled Time in UTC */ // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - scheduledOn?: utcDateTime; + scheduledOn: utcDateTime; /** Router Job Scheduling Failed Reason */ failureReason?: string; @@ -465,14 +465,14 @@ model AcsRouterJobWaitingForActivationEventData extends AcsRouterJobEventData { priority?: int32; /** Router Job Waiting For Activation Worker Selector Expired */ - expiredAttachedWorkerSelectors?: AcsRouterWorkerSelector[]; + expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Waiting For Activation Requested Worker Selector Expired */ - expiredRequestedWorkerSelectors?: AcsRouterWorkerSelector[]; + expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Waiting For Activation Scheduled Time in UTC */ // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - scheduledOn?: utcDateTime; + scheduledOn: utcDateTime; /** Router Job Waiting For Activation Unavailable For Matching */ unavailableForMatching: boolean; @@ -483,10 +483,10 @@ model AcsRouterJobWaitingForActivationEventData extends AcsRouterJobEventData { model AcsRouterJobWorkerSelectorsExpiredEventData extends AcsRouterJobEventData { /** Router Job Worker Selectors Expired Requested Worker Selectors */ - expiredRequestedWorkerSelectors?: AcsRouterWorkerSelector[]; + expiredRequestedWorkerSelectors: AcsRouterWorkerSelector[]; /** Router Job Worker Selectors Expired Attached Worker Selectors */ - expiredAttachedWorkerSelectors?: AcsRouterWorkerSelector[]; + expiredAttachedWorkerSelectors: AcsRouterWorkerSelector[]; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerDeleted event */ @@ -515,16 +515,16 @@ model AcsRouterWorkerOfferAcceptedEventData extends AcsRouterWorkerEventData { jobPriority?: int32; /** Router Worker Offer Accepted Worker Labels */ - workerLabels?: Record; + workerLabels: Record; /** Router Worker Offer Accepted Worker Tags */ - workerTags?: Record; + workerTags: Record; /** Router Worker Offer Accepted Job Labels */ - jobLabels?: Record; + jobLabels: Record; /** Router Worker Offer Accepted Job Tags */ - jobTags?: Record; + jobTags: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferDeclined event */ @@ -560,24 +560,24 @@ model AcsRouterWorkerOfferIssuedEventData extends AcsRouterWorkerEventData { jobPriority?: int32; /** Router Worker Offer Issued Worker Labels */ - workerLabels?: Record; + workerLabels: Record; /** Router Worker Offer Issued Time in UTC */ // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - offeredOn?: utcDateTime; + offeredOn: utcDateTime; /** Router Worker Offer Issued Expiration Time in UTC */ // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - expiresOn?: utcDateTime; + expiresOn: utcDateTime; /** Router Worker Offer Issued Worker Tags */ - workerTags?: Record; + workerTags: Record; /** Router Worker Offer Issued Job Labels */ - jobLabels?: Record; + jobLabels: Record; /** Router Worker Offer Issued Job Tags */ - jobTags?: Record; + jobTags: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerOfferRevoked event */ @@ -596,19 +596,19 @@ model AcsRouterWorkerRegisteredEventData { workerId?: string; /** Router Worker Registered Queue Info */ - queueAssignments?: AcsRouterQueueDetails[]; + queueAssignments: AcsRouterQueueDetails[]; /** Router Worker Registered Channel Configuration */ - channelConfigurations?: AcsRouterChannelConfiguration[]; + channelConfigurations: AcsRouterChannelConfiguration[]; /** Router Worker Register Total Capacity */ totalCapacity?: int32; /** Router Worker Registered Labels */ - labels?: Record; + labels: Record; /** Router Worker Registered Tags */ - tags?: Record; + tags: Record; } // Base Properties @@ -619,10 +619,10 @@ model AcsRouterJobEventData extends AcsRouterEventData { queueId?: string; /** Router Job events Labels */ - labels?: Record; + labels: Record; /** Router Jobs events Tags */ - tags?: Record; + tags: Record; } /** Schema of common properties of all Router Worker events */ @@ -665,7 +665,7 @@ model AcsRouterQueueDetails { name?: string; /** Router Queue Labels */ - labels?: Record; + labels: Record; } /** Router Communication Error */ @@ -680,10 +680,10 @@ model AcsRouterCommunicationError { target?: string; /** Router Communication Inner Error */ - innererror?: AcsRouterCommunicationError; + innererror: AcsRouterCommunicationError; /** List of Router Communication Errors */ - details?: AcsRouterCommunicationError[]; + details: AcsRouterCommunicationError[]; } /** Router Job Worker Selector */ @@ -692,21 +692,20 @@ model AcsRouterWorkerSelector { key?: string; /** Router Job Worker Selector Label Operator */ - operator?: AcsRouterLabelOperator; + labelOperator: AcsRouterLabelOperator; /** Router Job Worker Selector Value */ #suppress "@azure-tools/typespec-azure-core/no-unknown" "The type of labelValue is object" - labelValue?: unknown; + value: unknown; /** Router Job Worker Selector Time to Live in Seconds */ - @encode("ISO8601") // TODO verify this is timespan in C# - ttlSeconds?: duration; + ttlSeconds: float64; /** Router Job Worker Selector State */ - selectorState?: AcsRouterWorkerSelectorState; + state: AcsRouterWorkerSelectorState; /** Router Job Worker Selector Expiration Time */ - expirationTime?: utcDateTime; + expirationTime: utcDateTime; } alias AcsChatMessageBaseEventData = { @@ -714,56 +713,56 @@ alias AcsChatMessageBaseEventData = { messageBody?: string; /** The chat message metadata */ - metadata?: Record; + metadata: Record; }; alias AcsChatThreadBaseEventData = { /** The communication identifier of the user who created the thread */ - createdByCommunicationIdentifier?: CommunicationIdentifierModel; + createdByCommunicationIdentifier: CommunicationIdentifierModel; /** The thread properties */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "The type of properties is object with additionalProperties: object" - properties?: Record; + properties: Record; /** The thread metadata */ - metadata?: Record; + metadata: Record; /** The list of properties of participants who are part of the thread */ - participants?: AcsChatThreadParticipantProperties[]; + participants: AcsChatThreadParticipantProperties[]; }; alias AcsChatThreadDeletedBaseEventData = { /** The communication identifier of the user who deleted the thread */ - deletedByCommunicationIdentifier?: CommunicationIdentifierModel; + deletedByCommunicationIdentifier: CommunicationIdentifierModel; /** The deletion time of the thread */ - deleteTime?: utcDateTime; + deleteTime: utcDateTime; }; alias AcsChatThreadPropertiesBaseEventData = { /** The communication identifier of the user who updated the thread properties */ - editedByCommunicationIdentifier?: CommunicationIdentifierModel; + editedByCommunicationIdentifier: CommunicationIdentifierModel; /** The time at which the properties of the thread were updated */ - editTime?: utcDateTime; + editTime: utcDateTime; /** The updated thread properties */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "The type of properties is object with additionalProperties: object" - properties?: Record; + properties: Record; /** The thread metadata */ - metadata?: Record; + metadata: Record; }; alias AcsChatParticipantBaseEventData = { /** The time at which the user was added to the thread */ - time?: utcDateTime; + time: utcDateTime; /** The communication identifier of the user who added the user */ - addedByCommunicationIdentifier?: CommunicationIdentifierModel; + addedByCommunicationIdentifier: CommunicationIdentifierModel; /** The details of the user who was added */ - participantAdded?: AcsChatThreadParticipantProperties; + participantAdded: AcsChatThreadParticipantProperties; }; /** Recording content type */ @@ -869,7 +868,7 @@ model AcsEmailDeliveryReportStatusDetails { #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." model AcsChatThreadEventBaseProperties extends AcsChatEventBaseProperties { /** The original creation time of the thread */ - createTime?: utcDateTime; + createTime: utcDateTime; /** The version of the thread */ version?: int64; @@ -880,7 +879,7 @@ model AcsChatThreadEventBaseProperties extends AcsChatEventBaseProperties { model AcsChatThreadEventInThreadBaseProperties extends AcsChatEventInThreadBaseProperties { /** The original creation time of the thread */ - createTime?: utcDateTime; + createTime: utcDateTime; /** The version of the thread */ version?: int64; @@ -893,13 +892,13 @@ model AcsChatMessageEventBaseProperties extends AcsChatEventBaseProperties { messageId?: string; /** The communication identifier of the sender */ - senderCommunicationIdentifier?: CommunicationIdentifierModel; + senderCommunicationIdentifier: CommunicationIdentifierModel; /** The display name of the sender */ senderDisplayName?: string; /** The original compose time of the message */ - composeTime?: utcDateTime; + composeTime: utcDateTime; /** The type of the message */ type?: string; @@ -916,13 +915,13 @@ model AcsChatMessageEventInThreadBaseProperties messageId?: string; /** The communication identifier of the sender */ - senderCommunicationIdentifier?: CommunicationIdentifierModel; + senderCommunicationIdentifier: CommunicationIdentifierModel; /** The display name of the sender */ senderDisplayName?: string; /** The original compose time of the message */ - composeTime?: utcDateTime; + composeTime: utcDateTime; /** The type of the message */ type?: string; @@ -943,7 +942,7 @@ model AcsChatEventInThreadBaseProperties { /** Schema of common properties of all chat events */ model AcsChatEventBaseProperties { /** The communication identifier of the target user */ - recipientCommunicationIdentifier?: CommunicationIdentifierModel; + recipientCommunicationIdentifier: CommunicationIdentifierModel; ...AcsChatEventInThreadBaseProperties; } @@ -954,10 +953,10 @@ model AcsChatThreadParticipantProperties { displayName?: string; /** The communication identifier of the user */ - participantCommunicationIdentifier?: CommunicationIdentifierModel; + participantCommunicationIdentifier: CommunicationIdentifierModel; /** The metadata of the user */ - metadata?: Record; + metadata: Record; } /** Schema of common properties of all SMS events */ @@ -975,7 +974,7 @@ model AcsSmsEventBaseProperties { /** Schema for details of a delivery attempt */ model AcsSmsDeliveryAttemptProperties { /** TimeStamp when delivery was attempted */ - timestamp?: utcDateTime; + timestamp: utcDateTime; /** Number of segments that were successfully delivered */ segmentsSucceeded?: int32; @@ -987,7 +986,7 @@ model AcsSmsDeliveryAttemptProperties { /** Schema for all properties of Recording Storage Information. */ model AcsRecordingStorageInfoProperties { /** List of details of recording chunks information */ - recordingChunks?: AcsRecordingChunkInfoProperties[]; + recordingChunks: AcsRecordingChunkInfoProperties[]; } /** Schema for all properties of Recording Chunk Information. */ @@ -1014,10 +1013,10 @@ model AcsRecordingChunkInfoProperties { /** Custom Context of Incoming Call */ model AcsIncomingCallCustomContext { /** Sip Headers for incoming call */ - sipHeaders?: Record; + sipHeaders: Record; /** Voip Headers for incoming call */ - voipHeaders?: Record; + voipHeaders: Record; } /** The type of engagement user have with email. */ @@ -1033,17 +1032,49 @@ union AcsUserEngagement { /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */ model CommunicationIdentifierModel { + /** The identifier kind. Only required in responses. */ + kind: CommunicationIdentifierModelKind; + /** Raw Id of the identifier. Optional in requests, required in responses. */ rawId?: string; /** The communication user. */ - communicationUser?: CommunicationUserIdentifierModel; + communicationUser: CommunicationUserIdentifierModel; /** The phone number. */ - phoneNumber?: PhoneNumberIdentifierModel; + phoneNumber: PhoneNumberIdentifierModel; /** The Microsoft Teams user. */ - microsoftTeamsUser?: MicrosoftTeamsUserIdentifierModel; + microsoftTeamsUser: MicrosoftTeamsUserIdentifierModel; + + /** The Microsoft Teams application. */ + microsoftTeamsApp: MicrosoftTeamsAppIdentifierModel; +} + +/** Communication model identifier kind */ +union CommunicationIdentifierModelKind { + /** Unknown */ + "unknown", + + /** Communication User */ + "communicationUser", + + /** Phone Number */ + "phoneNumber", + + /** Microsoft Teams User */ + "microsoftTeamsUser", + + string, +} + +/** A Microsoft Teams application. */ +model MicrosoftTeamsAppIdentifierModel { + /** The Id of the Microsoft Teams application */ + appId: string; + + /** The cloud that the Microsoft Teams application belongs to. By default 'public' if missing. */ + cloud: CommunicationCloudEnvironmentModel; } /** A Microsoft Teams user. */ @@ -1055,7 +1086,7 @@ model MicrosoftTeamsUserIdentifierModel { isAnonymous?: boolean; /** The cloud that the Microsoft Teams user belongs to. By default 'public' if missing. */ - cloud?: CommunicationCloudEnvironmentModel; + cloud: CommunicationCloudEnvironmentModel; } /** A phone number. */ @@ -1070,6 +1101,223 @@ model CommunicationUserIdentifierModel { id: string; } +/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerUpdated event. */ +model AcsRouterWorkerUpdatedEventData { + /** Router Worker Updated Worker Id */ + workerId?: string; + + /** Router Worker Updated Queue Info */ + queueAssignments: AcsRouterQueueDetails[]; + + /** Router Worker Updated Channel Configuration */ + channelConfigurations: AcsRouterChannelConfiguration[]; + + /** Router Worker Updated Total Capacity */ + totalCapacity?: int32; + + /** Router Worker Updated Labels */ + labels: Record; + + /** Router Worker Updated Tags */ + tags: Record; + + /** Router Worker Properties Updated */ + updatedWorkerProperties: AcsRouterUpdatedWorkerProperty[]; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated event. */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." +model AcsMessageDeliveryStatusUpdatedEventData extends AcsMessageEventData { + /** The message id */ + messageId?: string; + + /** The updated message status */ + status: AcsMessageDeliveryStatus; + + /** The updated message channel type */ + channelType: AcsMessageChannelKind; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageReceived event. */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." +model AcsMessageReceivedEventData extends AcsMessageEventData { + /** The message content */ + content?: string; + + /** The message channel type */ + channelType: AcsMessageChannelKind; + + /** The received message media content */ + media: AcsMessageMediaContent; + + /** The received message context */ + context: AcsMessageContext; + + /** The received message button content */ + button: AcsMessageButtonContent; + + /** The received message interactive content */ + interactive: AcsMessageInteractiveContent; +} + +/** Message Media Content */ +model AcsMessageMediaContent { + /** The MIME type of the file this media represents */ + mimeType?: string; + + /** The media identifier */ + id?: string; + + /** The filename of the underlying media file as specified when uploaded */ + fileName?: string; + + /** The caption for the media object, if supported and provided */ + caption?: string; +} + +/** Message Context */ +model AcsMessageContext { + /** The WhatsApp ID for the customer who replied to an inbound message. */ + from?: string; + + /** The message ID for the sent message for an inbound reply */ + id?: string; +} + +/** Message Button Content */ +model AcsMessageButtonContent { + /** The Text of the button */ + text?: string; + + /** The Payload of the button which was clicked by the user, setup by the business */ + payload?: string; +} + +/** Message Interactive Content */ +model AcsMessageInteractiveContent { + /** The Message interactive reply type */ + type: AcsInteractiveReplyKind; + + /** The Message Sent when a customer clicks a button */ + buttonReply: AcsMessageInteractiveButtonReplyContent; + + /** The Message Sent when a customer selects an item from a list */ + listReply: AcsMessageInteractiveListReplyContent; +} + +/** Message Interactive button reply content for a user to business message */ +model AcsMessageInteractiveButtonReplyContent { + /** The ID of the button */ + id?: string; + + /** The title of the button */ + title?: string; +} + +/** Message Interactive list reply content for a user to business message */ +model AcsMessageInteractiveListReplyContent { + /** The ID of the selected list item */ + id?: string; + + /** The title of the selected list item */ + title?: string; + + /** The description of the selected row */ + description?: string; +} + +/** Schema of common properties of all chat thread events */ +model AcsMessageEventData { + /** The message sender */ + from?: string; + + /** The message recipient */ + to?: string; + + /** The time message was received */ + receivedTimeStamp: utcDateTime; + + /** The channel event error */ + error: AcsMessageChannelEventError; +} + +/** Message Channel Event Error */ +model AcsMessageChannelEventError { + /** The channel error code */ + channelCode?: string; + + /** The channel error message */ + channelMessage?: string; +} + +/** Interactive reply kind */ +union AcsInteractiveReplyKind { + /** Messaged interactive reply type is ButtonReply */ + "buttonReply", + + /** Messaged interactive reply type is ListReply */ + "listReply", + + /** Messaged interactive reply type is Unknown */ + "unknown", + + string, +} + +/** Message channel kind */ +union AcsMessageChannelKind { + /** Updated message channel type is WhatsApp */ + "whatsapp", + + string, +} + +/** Message delivery status */ +union AcsMessageDeliveryStatus { + /** Read */ + "read", + + /** Delivered */ + "delivered", + + /** Failed */ + "failed", + + /** Sent */ + "sent", + + /** Warning */ + "warning", + + /** Unknown */ + "unknown", + + string, +} + +/** Worker properties that can be updated */ +union AcsRouterUpdatedWorkerProperty { + /** AvailableForOffers */ + "AvailableForOffers", + + /** TotalCapacity */ + "TotalCapacity", + + /** QueueAssignments */ + "QueueAssignments", + + /** Labels */ + "Labels", + + /** Tags */ + "Tags", + + /** ChannelConfigurations */ + "ChannelConfigurations", + + string, +} + /** Communication cloud environment model. */ union CommunicationCloudEnvironmentModel { /** Public */ diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Communication/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Communication/client.tsp new file mode 100644 index 000000000000..71570ba1be06 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Communication/client.tsp @@ -0,0 +1,513 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.AcsIncomingCallEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsIncomingCallEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsUserDisconnectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsUserDisconnectedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageReceivedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageReceivedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageReceivedInThreadEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageReceivedInThreadEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageEditedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageEditedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageEditedInThreadEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageEditedInThreadEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageDeletedInThreadEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageDeletedInThreadEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadCreatedWithUserEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadCreatedWithUserEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadWithUserDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadWithUserDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedPerUserEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedPerUserEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatParticipantAddedToThreadWithUserEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatParticipantAddedToThreadWithUserEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatParticipantRemovedFromThreadWithUserEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatParticipantRemovedFromThreadWithUserEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatParticipantAddedToThreadEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatParticipantAddedToThreadEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatParticipantRemovedFromThreadEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatParticipantRemovedFromThreadEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsSmsDeliveryReportReceivedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsSmsDeliveryReportReceivedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsSmsReceivedEventData, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsSmsReceivedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRecordingFileStatusUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRecordingFileStatusUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportReceivedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportReceivedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsEmailEngagementTrackingReportReceivedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsEmailEngagementTrackingReportReceivedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobCancelledEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobCancelledEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobClassificationFailedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobClassificationFailedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobClassifiedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobClassifiedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobClosedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobClosedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobExceptionTriggeredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobExceptionTriggeredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobQueuedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobQueuedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobReceivedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobReceivedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobSchedulingFailedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobSchedulingFailedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobUnassignedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobUnassignedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobWaitingForActivationEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobWaitingForActivationEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobWorkerSelectorsExpiredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobWorkerSelectorsExpiredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerDeregisteredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerDeregisteredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferAcceptedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferAcceptedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferDeclinedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferDeclinedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferExpiredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferExpiredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferIssuedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferIssuedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferRevokedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferRevokedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerRegisteredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerRegisteredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobEventData, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobEventData, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterEventData, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterEventData, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterChannelConfiguration, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterChannelConfiguration, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterQueueDetails, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterQueueDetails, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterCommunicationError, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterCommunicationError, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerSelector, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerSelector, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadEventBaseProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadEventBaseProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadEventInThreadBaseProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadEventInThreadBaseProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageEventBaseProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageEventBaseProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageEventInThreadBaseProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageEventInThreadBaseProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatEventInThreadBaseProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatEventInThreadBaseProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatEventBaseProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatEventBaseProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadParticipantProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadParticipantProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsSmsEventBaseProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsSmsEventBaseProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsSmsDeliveryAttemptProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsSmsDeliveryAttemptProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRecordingStorageInfoProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRecordingStorageInfoProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRecordingChunkInfoProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRecordingChunkInfoProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsIncomingCallCustomContext, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsIncomingCallCustomContext, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.CommunicationIdentifierModel, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.CommunicationIdentifierModel, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MicrosoftTeamsAppIdentifierModel, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MicrosoftTeamsAppIdentifierModel, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.PhoneNumberIdentifierModel, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.PhoneNumberIdentifierModel, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.CommunicationUserIdentifierModel, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.CommunicationUserIdentifierModel, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageDeliveryStatusUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageDeliveryStatusUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageReceivedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageReceivedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageMediaContent, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageMediaContent, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageContext, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageContext, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageButtonContent, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageButtonContent, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageInteractiveContent, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageInteractiveContent, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageInteractiveButtonReplyContent, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageInteractiveButtonReplyContent, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageInteractiveListReplyContent, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageInteractiveListReplyContent, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageEventData, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageEventData, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageChannelEventError, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageChannelEventError, + Access.public +); +//Enums +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobStatus, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobStatus, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.recordingContentType, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.recordingContentType, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.recordingChannelType, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.recordingChannelType, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.recordingFormatType, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.recordingFormatType, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterLabelOperator, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterLabelOperator, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerSelectorState, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerSelectorState, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsUserEngagement, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsUserEngagement, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.CommunicationIdentifierModelKind, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.CommunicationIdentifierModelKind, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsInteractiveReplyKind, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsInteractiveReplyKind, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageChannelKind, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageChannelKind, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.AcsMessageDeliveryStatus, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsMessageDeliveryStatus, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterUpdatedWorkerProperty, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AcsRouterUpdatedWorkerProperty, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel, + Access.public +); diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ContainerRegistry.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerRegistry/ContainerRegistry.tsp similarity index 93% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ContainerRegistry.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerRegistry/ContainerRegistry.tsp index 3fb624ae24fa..726089a7278c 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ContainerRegistry.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerRegistry/ContainerRegistry.tsp @@ -26,7 +26,7 @@ alias ContainerRegistryBaseEventData = { id?: string; /** The time at which the event occurred. */ - timestamp?: utcDateTime; + timestamp: utcDateTime; /** The action that encompasses the provided event. */ action?: string; @@ -40,19 +40,19 @@ model ContainerRegistryEventData { ...ContainerRegistryBaseEventData; /** The target of the event. */ - target?: ContainerRegistryEventTarget; + target: ContainerRegistryEventTarget; /** The request that generated the event. */ - request?: ContainerRegistryEventRequest; + request: ContainerRegistryEventRequest; /** The agent that initiated the event. For most situations, this could be from the authorization context of the request. */ - actor?: ContainerRegistryEventActor; + actor: ContainerRegistryEventActor; /** The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. */ - source?: ContainerRegistryEventSource; + source: ContainerRegistryEventSource; /** The connected registry information if the event is generated by a connected registry. */ - connectedRegistry?: ContainerRegistryEventConnectedRegistry; + connectedRegistry: ContainerRegistryEventConnectedRegistry; } /** The content of the event request message. */ @@ -60,10 +60,10 @@ model ContainerRegistryArtifactEventData { ...ContainerRegistryBaseEventData; /** The target of the event. */ - target?: ContainerRegistryArtifactEventTarget; + target: ContainerRegistryArtifactEventTarget; /** The connected registry information if the event is generated by a connected registry. */ - connectedRegistry?: ContainerRegistryEventConnectedRegistry; + connectedRegistry: ContainerRegistryEventConnectedRegistry; } /** The target of the event. */ diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerRegistry/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerRegistry/client.tsp new file mode 100644 index 000000000000..a91ee6c7a4b0 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerRegistry/client.tsp @@ -0,0 +1,77 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryImagePushedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryImagePushedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryImageDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryImageDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryChartPushedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryChartPushedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryChartDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryChartDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryArtifactEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryArtifactEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventTarget, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventTarget, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryArtifactEventTarget, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryArtifactEventTarget, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventRequest, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventRequest, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventActor, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventActor, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventSource, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventSource, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventConnectedRegistry, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventConnectedRegistry, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ContainerService.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerService/ContainerService.tsp similarity index 100% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ContainerService.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerService/ContainerService.tsp diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerService/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerService/client.tsp new file mode 100644 index 000000000000..99b6ac242fee --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ContainerService/client.tsp @@ -0,0 +1,53 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceNewKubernetesVersionAvailableEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceNewKubernetesVersionAvailableEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEndedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEndedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEndingEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEndingEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingStartedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingStartedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingSucceededEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingSucceededEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingFailedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingFailedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/DataBox.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.DataBox/DataBox.tsp similarity index 94% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/DataBox.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.DataBox/DataBox.tsp index d771641987e8..05d7129a7c9c 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/DataBox.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.DataBox/DataBox.tsp @@ -20,10 +20,10 @@ namespace Microsoft.EventGrid.SystemEvents { serialNumber?: string; /** Name of the current Stage */ - stageName?: DataBoxStageName; + stageName: DataBoxStageName; /** The time at which the stage happened. */ - stageTime?: utcDateTime; + stageTime: utcDateTime; }; /** Schema of DataBox Stage Name enumeration. */ diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.DataBox/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.DataBox/client.tsp new file mode 100644 index 000000000000..e3f3d6fc0f79 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.DataBox/client.tsp @@ -0,0 +1,25 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.DataBoxCopyStartedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.DataBoxCopyStartedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.DataBoxCopyCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.DataBoxCopyCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.DataBoxOrderCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.DataBoxOrderCompletedEventData, + Access.public +); +//Enums +@@usage(Microsoft.EventGrid.SystemEvents.DataBoxStageName, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.DataBoxStageName, Access.public); diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/IotHub.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Devices/IotHub.tsp similarity index 94% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/IotHub.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Devices/IotHub.tsp index f642c5be9748..30ad8bc8461b 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/IotHub.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Devices/IotHub.tsp @@ -11,7 +11,7 @@ model DeviceLifeCycleEventProperties { hubName?: string; /** Information about the device twin, which is the cloud representation of application device metadata. */ - twin?: DeviceTwinInfo; + twin: DeviceTwinInfo; } /** Metadata information for the properties JSON document. */ @@ -23,7 +23,7 @@ model DeviceTwinMetadata { /** A portion of the properties that can be written only by the application back-end, and read by the device. */ model DeviceTwinProperties { /** Metadata information for the properties JSON document. */ - metadata?: DeviceTwinMetadata; + metadata: DeviceTwinMetadata; /** Version of device twin properties. */ version?: float32; @@ -53,7 +53,7 @@ model DeviceTwinInfo { //TODO: something here needs to change /** Properties JSON element. */ - properties?: DeviceTwinInfoProperties; + properties: DeviceTwinInfoProperties; /** Whether the device twin is enabled or disabled. */ status?: string; @@ -67,7 +67,7 @@ model DeviceTwinInfo { //TODO: also here /** The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate. */ - x509Thumbprint?: DeviceTwinInfoX509Thumbprint; + x509Thumbprint: DeviceTwinInfoX509Thumbprint; } /** Schema of the Data property of an EventGridEvent for a device connection state event (DeviceConnected, DeviceDisconnected). */ @@ -82,20 +82,20 @@ model DeviceConnectionStateEventProperties { hubName?: string; /** Information about the device connection state event. */ - deviceConnectionStateEventInfo?: DeviceConnectionStateEventInfo; + deviceConnectionStateEventInfo: DeviceConnectionStateEventInfo; } /** Schema of the Data property of an EventGridEvent for a device telemetry event (DeviceTelemetry). */ model DeviceTelemetryEventProperties { /** The content of the message from the device. */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "The type of body is object" - body?: Record; + body: Record; /** Application properties are user-defined strings that can be added to the message. These fields are optional. */ - properties?: Record; + properties: Record; /** System properties help identify contents and source of the messages. */ - systemProperties?: Record; + systemProperties: Record; } /** Information about the device connection state event. */ @@ -138,8 +138,8 @@ model DeviceTwinInfoX509Thumbprint { /** Properties JSON element. */ model DeviceTwinInfoProperties { /** A portion of the properties that can be written only by the application back-end, and read by the device. */ - desired?: DeviceTwinProperties; + desired: DeviceTwinProperties; /** A portion of the properties that can be written only by the device, and read by the application back-end. */ - reported?: DeviceTwinProperties; + reported: DeviceTwinProperties; } diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Devices/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Devices/client.tsp new file mode 100644 index 000000000000..85c11a51a1e5 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Devices/client.tsp @@ -0,0 +1,77 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.DeviceLifeCycleEventProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.DeviceLifeCycleEventProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.DeviceTwinMetadata, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.DeviceTwinMetadata, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.DeviceTwinProperties, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.DeviceTwinProperties, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.DeviceTwinInfo, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.DeviceTwinInfo, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.DeviceConnectionStateEventProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.DeviceConnectionStateEventProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.DeviceTelemetryEventProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.DeviceTelemetryEventProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.DeviceConnectionStateEventInfo, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.DeviceConnectionStateEventInfo, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.IotHubDeviceCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.IotHubDeviceCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.IotHubDeviceDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.IotHubDeviceDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.IotHubDeviceConnectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.IotHubDeviceConnectedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.IotHubDeviceDisconnectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.IotHubDeviceDisconnectedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.IotHubDeviceTelemetryEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.IotHubDeviceTelemetryEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.DeviceTwinInfoProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.DeviceTwinInfoProperties, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/EventGrid.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventGrid/EventGrid.tsp similarity index 90% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/EventGrid.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventGrid/EventGrid.tsp index 01ef7c0d7359..f3c1877aa959 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/EventGrid.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventGrid/EventGrid.tsp @@ -50,18 +50,16 @@ union EventGridMQTTClientDisconnectionReason { string, } -/** Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SystemEvents.SubscriptionValidationEvent event. */ +/** Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event. */ model SubscriptionValidationEventData { /** 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). */ - @visibility("read") validationCode?: string; /** 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). */ - @visibility("read") validationUrl?: string; } @@ -78,35 +76,34 @@ model SubscriptionValidationResponse { /** Schema of the Data property of an EventGridEvent for a -Microsoft.EventGrid.SystemEvents.SubscriptionDeletedEvent event. +Microsoft.EventGrid.SubscriptionDeletedEvent event. */ model SubscriptionDeletedEventData { /** The Azure resource ID of the deleted event subscription. */ - @visibility("read") eventSubscriptionId?: string; } -/** Event data for Microsoft.EventGrid.SystemEvents.MQTTClientCreatedOrUpdated event. */ +/** Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Following Swagger Inheritance" #suppress "@azure-tools/typespec-azure-core/casing-style" "MQTT is an acronym and should be all caps" model EventGridMQTTClientCreatedOrUpdatedEventData extends EventGridMQTTClientEventData { /** Configured state of the client. The value could be Enabled or Disabled */ - state?: EventGridMQTTClientState; + state: EventGridMQTTClientState; /** Time the client resource is created based on the provider's UTC time. */ // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - createdOn?: utcDateTime; + createdOn: utcDateTime; /** 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. */ - updatedOn?: utcDateTime; + updatedOn: utcDateTime; /** The key-value attributes that are assigned to the client resource. */ - attributes?: Record; + attributes: Record; } /** Schema of the Data property of an EventGridEvent for MQTT Client state changes. */ @@ -126,13 +123,13 @@ long, and supports UTF-8 characters. namespaceName?: string; } -/** Event data for Microsoft.EventGrid.SystemEvents.MQTTClientDeleted event. */ +/** Event data for Microsoft.EventGrid.MQTTClientDeleted event. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Following Swagger Inheritance" #suppress "@azure-tools/typespec-azure-core/casing-style" "MQTT is an acronym and should be all caps" model EventGridMQTTClientDeletedEventData extends EventGridMQTTClientEventData {} -/** Event data for Microsoft.EventGrid.SystemEvents.MQTTClientSessionConnected event. */ +/** Event data for Microsoft.EventGrid.MQTTClientSessionConnected event. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Following Swagger Inheritance" #suppress "@azure-tools/typespec-azure-core/casing-style" "MQTT is an acronym and should be all caps" model EventGridMQTTClientSessionConnectedEventData @@ -151,7 +148,7 @@ than the previous event. sequenceNumber?: int64; } -/** Event data for Microsoft.EventGrid.SystemEvents.MQTTClientSessionDisconnected event. */ +/** Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Following Swagger Inheritance" #suppress "@azure-tools/typespec-azure-core/casing-style" "MQTT is an acronym and should be all caps" model EventGridMQTTClientSessionDisconnectedEventData @@ -173,5 +170,5 @@ than the previous event. Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table. */ - disconnectionReason?: EventGridMQTTClientDisconnectionReason; + disconnectionReason: EventGridMQTTClientDisconnectionReason; } diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventGrid/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventGrid/client.tsp new file mode 100644 index 000000000000..3590dd1e174b --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventGrid/client.tsp @@ -0,0 +1,65 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.SubscriptionValidationEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.SubscriptionValidationEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.SubscriptionValidationResponse, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.SubscriptionValidationResponse, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.SubscriptionDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.SubscriptionDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientCreatedOrUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientCreatedOrUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientSessionConnectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientSessionConnectedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientSessionDisconnectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientSessionDisconnectedEventData, + Access.public +); +//Enums +@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientState, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientState, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason, + Access.public +); diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/EventHub.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventHub/EventHub.tsp similarity index 92% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/EventHub.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventHub/EventHub.tsp index 8023d448c157..1f903d9d64ad 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/EventHub.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventHub/EventHub.tsp @@ -25,8 +25,8 @@ model EventHubCaptureFileCreatedEventData { lastSequenceNumber?: int32; /** The first time from the queue. */ - firstEnqueueTime?: utcDateTime; + firstEnqueueTime: utcDateTime; /** The last time from the queue. */ - lastEnqueueTime?: utcDateTime; + lastEnqueueTime: utcDateTime; } diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventHub/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventHub/client.tsp new file mode 100644 index 000000000000..29d4e5afec6a --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.EventHub/client.tsp @@ -0,0 +1,11 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.EventHubCaptureFileCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.EventHubCaptureFileCreatedEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/HealthcareApis.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.HealthcareApis/HealthcareApis.tsp similarity index 99% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/HealthcareApis.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.HealthcareApis/HealthcareApis.tsp index 9343b4fefb2f..9256d60c1ed6 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/HealthcareApis.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.HealthcareApis/HealthcareApis.tsp @@ -4,7 +4,7 @@ namespace Microsoft.EventGrid.SystemEvents { /** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceCreated event. */ model HealthcareFhirResourceCreatedEventData { /** Type of HL7 FHIR resource. */ - resourceType?: HealthcareFhirResourceType; + resourceType: HealthcareFhirResourceType; /** Domain name of FHIR account for this resource. */ resourceFhirAccount?: string; @@ -19,7 +19,7 @@ namespace Microsoft.EventGrid.SystemEvents { /** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceUpdated event. */ model HealthcareFhirResourceUpdatedEventData { /** Type of HL7 FHIR resource. */ - resourceType?: HealthcareFhirResourceType; + resourceType: HealthcareFhirResourceType; /** Domain name of FHIR account for this resource. */ resourceFhirAccount?: string; @@ -34,7 +34,7 @@ namespace Microsoft.EventGrid.SystemEvents { /** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceDeleted event. */ model HealthcareFhirResourceDeletedEventData { /** Type of HL7 FHIR resource. */ - resourceType?: HealthcareFhirResourceType; + resourceType: HealthcareFhirResourceType; /** Domain name of FHIR account for this resource. */ resourceFhirAccount?: string; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.HealthcareApis/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.HealthcareApis/client.tsp new file mode 100644 index 000000000000..8fbe10a3c572 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.HealthcareApis/client.tsp @@ -0,0 +1,53 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceType, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceType, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageUpdatedEventData, + Access.public +); +//Enums +@@usage(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceType, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceType, + Access.public +); diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/KeyVault.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.KeyVault/KeyVault.tsp similarity index 98% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/KeyVault.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.KeyVault/KeyVault.tsp index 785bcb739917..a8016e926ba0 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/KeyVault.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.KeyVault/KeyVault.tsp @@ -46,7 +46,7 @@ namespace Microsoft.EventGrid.SystemEvents { } /** Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.VaultAccessPolicyChanged event. */ - model KeyVaultVaultAccessPolicyChangedEventData { + model KeyVaultAccessPolicyChangedEventData { ...KeyVaultCertificateBase; } diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.KeyVault/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.KeyVault/client.tsp new file mode 100644 index 000000000000..a717154cd0e3 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.KeyVault/client.tsp @@ -0,0 +1,65 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateNewVersionCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateNewVersionCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateNearExpiryEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateNearExpiryEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateExpiredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateExpiredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultKeyNewVersionCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.KeyVaultKeyNewVersionCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultKeyNearExpiryEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.KeyVaultKeyNearExpiryEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultKeyExpiredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.KeyVaultKeyExpiredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultSecretNewVersionCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.KeyVaultSecretNewVersionCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultSecretNearExpiryEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.KeyVaultSecretNearExpiryEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultSecretExpiredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.KeyVaultSecretExpiredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultAccessPolicyChangedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.KeyVaultAccessPolicyChangedEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/MachineLearningServices.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.MachineLearningServices/MachineLearningServices.tsp similarity index 92% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/MachineLearningServices.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.MachineLearningServices/MachineLearningServices.tsp index 5527e7d244de..7287fceca6e6 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/MachineLearningServices.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.MachineLearningServices/MachineLearningServices.tsp @@ -11,11 +11,11 @@ model MachineLearningServicesModelRegisteredEventData { /** The tags of the model that was registered. */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Model tags is type object" - modelTags?: Record; + modelTags: Record; /** The properties of the model that was registered. */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Model tags is type object" - modelProperties?: Record; + modelProperties: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.ModelDeployed event. */ @@ -31,11 +31,11 @@ model MachineLearningServicesModelDeployedEventData { /** The tags of the deployed service. */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Service tags is type any" - serviceTags?: Record; + serviceTags: Record; /** The properties of the deployed service. */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Service properties is type any" - serviceProperties?: Record; + serviceProperties: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.RunCompleted event. */ @@ -54,11 +54,11 @@ model MachineLearningServicesRunCompletedEventData { /** The tags of the completed Run. */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Run tags is type any" - runTags?: Record; + runTags: Record; /** The properties of the completed Run. */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Run properties is type any" - runProperties?: Record; + runProperties: Record; } /** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.DatasetDriftDetected event. */ @@ -82,10 +82,10 @@ model MachineLearningServicesDatasetDriftDetectedEventData { driftCoefficient?: float64; /** The start time of the target dataset time series that resulted in drift detection. */ - startTime?: utcDateTime; + startTime: utcDateTime; /** The end time of the target dataset time series that resulted in drift detection. */ - endTime?: utcDateTime; + endTime: utcDateTime; } /** Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.RunStatusChanged event. */ @@ -104,11 +104,11 @@ model MachineLearningServicesRunStatusChangedEventData { /** The tags of the Machine Learning Run. */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Run tags is type object" - runTags?: Record; + runTags: Record; /** The properties of the Machine Learning Run. */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Run properties is type object" - runProperties?: Record; + runProperties: Record; /** The status of the Machine Learning Run. */ runStatus?: string; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.MachineLearningServices/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.MachineLearningServices/client.tsp new file mode 100644 index 000000000000..9fa2d973b84a --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.MachineLearningServices/client.tsp @@ -0,0 +1,35 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.MachineLearningServicesModelRegisteredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MachineLearningServicesModelRegisteredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MachineLearningServicesModelDeployedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MachineLearningServicesModelDeployedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MachineLearningServicesRunCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MachineLearningServicesRunCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MachineLearningServicesDatasetDriftDetectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MachineLearningServicesDatasetDriftDetectedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MachineLearningServicesRunStatusChangedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MachineLearningServicesRunStatusChangedEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Maps.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Maps/Maps.tsp similarity index 98% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Maps.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Maps/Maps.tsp index 5d0ff3d6b22f..9f8cbf7e7494 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Maps.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Maps/Maps.tsp @@ -19,7 +19,7 @@ model MapsGeofenceEventProperties { expiredGeofenceGeometryId?: string[]; /** Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. */ - geometries?: MapsGeofenceGeometry[]; + geometries: MapsGeofenceGeometry[]; /** Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. */ invalidPeriodGeofenceGeometryId?: string[]; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Maps/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Maps/client.tsp new file mode 100644 index 000000000000..b3953a6f2b83 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Maps/client.tsp @@ -0,0 +1,31 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.MapsGeofenceEnteredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MapsGeofenceEnteredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MapsGeofenceExitedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MapsGeofenceExitedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MapsGeofenceResultEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MapsGeofenceResultEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MapsGeofenceEventProperties, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MapsGeofenceEventProperties, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MapsGeofenceGeometry, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.MapsGeofenceGeometry, Access.public); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/MediaServices.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Media/MediaServices.tsp similarity index 88% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/MediaServices.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Media/MediaServices.tsp index cc7faf2af749..83ab45e40a9f 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/MediaServices.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Media/MediaServices.tsp @@ -101,59 +101,51 @@ namespace Microsoft.EventGrid.SystemEvents { */ model MediaJobStateChangeEventData { /** The previous state of the Job. */ - @visibility("read") - previousState?: MediaJobState; + previousState: MediaJobState; /** The new state of the Job. */ - @visibility("read") - state?: MediaJobState; + state: MediaJobState; /** Gets the Job correlation data. */ - correlationData?: Record; + correlationData: Record; } /** Details of JobOutput errors. */ model MediaJobError { /** Error code describing the error. */ - @visibility("read") - code?: MediaJobErrorCode; + code: MediaJobErrorCode; /** A human-readable language-dependent representation of the error. */ - @visibility("read") message?: string; /** Helps with categorization of errors. */ - @visibility("read") - category?: MediaJobErrorCategory; + category: MediaJobErrorCategory; /** Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. */ - @visibility("read") - retry?: MediaJobRetry; + retry: MediaJobRetry; /** An array of details about specific errors that led to this reported error. */ - @visibility("read") - details?: MediaJobErrorDetail[]; + details: MediaJobErrorDetail[]; } /** Details of JobOutput errors. */ model MediaJobErrorDetail { /** Code describing the error detail. */ - @visibility("read") code?: string; /** A human-readable representation of the error. */ - @visibility("read") message?: string; } /** The event data for a Job output. */ - @discriminator("@odataType") + @discriminator("@odata.type") model MediaJobOutput { /** The discriminator for derived types. */ - `@odataType`: string; + #suppress "@azure-tools/typespec-azure-core/casing-style" "Maintain compatibility with existing models." + `@odata.type`: string; /** Gets the Job output error. */ - error?: MediaJobError; + error: MediaJobError; /** Gets the Job output label. */ label?: string; @@ -171,7 +163,8 @@ namespace Microsoft.EventGrid.SystemEvents { assetName?: string; /** The discriminator for derived types. */ - `@odataType`: "#Microsoft.Media.JobOutputAsset"; + #suppress "@azure-tools/typespec-azure-core/casing-style" "Maintain compatibility with existing models." + `@odata.type`: "#Microsoft.Media.JobOutputAsset"; } /** @@ -186,7 +179,7 @@ namespace Microsoft.EventGrid.SystemEvents { progress?: int64; /** Gets the Job correlation data. */ - jobCorrelationData?: Record; + jobCorrelationData: Record; } /** @@ -195,14 +188,13 @@ namespace Microsoft.EventGrid.SystemEvents { */ model MediaJobOutputStateChangeEventData { /** The previous state of the Job. */ - @visibility("read") - previousState?: MediaJobState; + previousState: MediaJobState; /** Gets the output. */ - output?: MediaJobOutput; + output: MediaJobOutput; /** Gets the Job correlation data. */ - jobCorrelationData?: Record; + jobCorrelationData: Record; } /** @@ -233,7 +225,7 @@ Microsoft.Media.JobFinished event. #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." model MediaJobFinishedEventData extends MediaJobStateChangeEventData { /** Gets the Job outputs. */ - outputs?: MediaJobOutput[]; + outputs: MediaJobOutput[]; } /** @@ -243,7 +235,7 @@ Microsoft.Media.JobCanceled event. #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." model MediaJobCanceledEventData extends MediaJobStateChangeEventData { /** Gets the Job outputs. */ - outputs?: MediaJobOutput[]; + outputs: MediaJobOutput[]; } /** @@ -253,7 +245,7 @@ for a Microsoft.Media.JobErrored event. #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." model MediaJobErroredEventData extends MediaJobStateChangeEventData { /** Gets the Job outputs. */ - outputs?: MediaJobOutput[]; + outputs: MediaJobOutput[]; } /** @@ -328,104 +320,81 @@ EventGridEvent for a Microsoft.Media.JobOutputScheduled event. /** Encoder connect event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingStreamReceived event. */ model MediaLiveEventIncomingStreamReceivedEventData { /** Gets the ingest URL provided by the live event. */ - @visibility("read") ingestUrl?: string; /** Gets the type of the track (Audio / Video). */ - @visibility("read") trackType?: string; /** Gets the track name. */ - @visibility("read") trackName?: string; /** Gets the bitrate of the track. */ - @visibility("read") bitrate?: int64; /** Gets the remote IP. */ - @visibility("read") encoderIp?: string; /** Gets the remote port. */ - @visibility("read") encoderPort?: string; /** Gets the first timestamp of the data chunk received. */ - @visibility("read") timestamp?: string; /** Gets the duration of the first data chunk. */ - @visibility("read") duration?: string; /** Gets the timescale in which timestamp is represented. */ - @visibility("read") timescale?: string; } /** Incoming streams out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingStreamsOutOfSync event. */ model MediaLiveEventIncomingStreamsOutOfSyncEventData { /** Gets the minimum last timestamp received. */ - @visibility("read") minLastTimestamp?: string; /** Gets the type of stream with minimum last timestamp. */ - @visibility("read") typeOfStreamWithMinLastTimestamp?: string; /** Gets the maximum timestamp among all the tracks (audio or video). */ - @visibility("read") maxLastTimestamp?: string; /** Gets the type of stream with maximum last timestamp. */ - @visibility("read") typeOfStreamWithMaxLastTimestamp?: string; /** Gets the timescale in which \"MinLastTimestamp\" is represented. */ - @visibility("read") timescaleOfMinLastTimestamp?: string; /** Gets the timescale in which \"MaxLastTimestamp\" is represented. */ - @visibility("read") timescaleOfMaxLastTimestamp?: string; } /** Incoming video stream out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event. */ model MediaLiveEventIncomingVideoStreamsOutOfSyncEventData { /** Gets the first timestamp received for one of the quality levels. */ - @visibility("read") firstTimestamp?: string; /** Gets the duration of the data chunk with first timestamp. */ - @visibility("read") firstDuration?: string; /** Gets the timestamp received for some other quality levels. */ - @visibility("read") secondTimestamp?: string; /** Gets the duration of the data chunk with second timestamp. */ - @visibility("read") secondDuration?: string; /** Gets the timescale in which both the timestamps and durations are represented. */ - @visibility("read") timescale?: string; } /** Ingest fragment dropped event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingDataChunkDropped event. */ model MediaLiveEventIncomingDataChunkDroppedEventData { /** Gets the timestamp of the data chunk dropped. */ - @visibility("read") timestamp?: string; /** Gets the type of the track (Audio / Video). */ - @visibility("read") trackType?: string; /** Gets the bitrate of the track. */ - @visibility("read") bitrate?: int64; /** Gets the timescale of the Timestamp. */ @@ -433,138 +402,107 @@ EventGridEvent for a Microsoft.Media.JobOutputScheduled event. timescale?: string; /** Gets the result code for fragment drop operation. */ - @visibility("read") resultCode?: string; /** Gets the name of the track for which fragment is dropped. */ - @visibility("read") trackName?: string; } /** Ingest heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeat event. */ model MediaLiveEventIngestHeartbeatEventData { /** Gets the type of the track (Audio / Video). */ - @visibility("read") trackType?: string; /** Gets the track name. */ - @visibility("read") trackName?: string; /** Gets the Live Transcription language. */ - @visibility("read") transcriptionLanguage?: string; /** Gets the Live Transcription state. */ - @visibility("read") transcriptionState?: string; /** Gets the bitrate of the track. */ - @visibility("read") bitrate?: int64; /** Gets the incoming bitrate. */ - @visibility("read") incomingBitrate?: int64; /** Gets the track ingest drift value. */ - @visibility("read") ingestDriftValue?: string; /** Gets the arrival UTC time of the last fragment. */ - @visibility("read") lastFragmentArrivalTime?: string; /** Gets the last timestamp. */ - @visibility("read") lastTimestamp?: string; /** Gets the timescale of the last timestamp. */ - @visibility("read") timescale?: string; /** Gets the fragment Overlap count. */ - @visibility("read") overlapCount?: int64; /** Gets the fragment Discontinuity count. */ - @visibility("read") discontinuityCount?: int64; /** Gets Non increasing count. */ - @visibility("read") nonincreasingCount?: int64; /** Gets a value indicating whether unexpected bitrate is present or not. */ - @visibility("read") unexpectedBitrate?: boolean; /** Gets the state of the live event. */ - @visibility("read") state?: string; /** Gets a value indicating whether preview is healthy or not. */ - @visibility("read") healthy?: boolean; } /** Ingest track discontinuity detected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventTrackDiscontinuityDetected event. */ model MediaLiveEventTrackDiscontinuityDetectedEventData { /** Gets the type of the track (Audio / Video). */ - @visibility("read") trackType?: string; /** Gets the track name. */ - @visibility("read") trackName?: string; /** Gets the bitrate. */ - @visibility("read") bitrate?: int64; /** Gets the timestamp of the previous fragment. */ - @visibility("read") previousTimestamp?: string; /** Gets the timestamp of the current fragment. */ - @visibility("read") newTimestamp?: string; /** Gets the timescale in which both timestamps and discontinuity gap are represented. */ - @visibility("read") timescale?: string; /** Gets the discontinuity gap between PreviousTimestamp and NewTimestamp. */ - @visibility("read") discontinuityGap?: string; } /** Channel Archive heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventChannelArchiveHeartbeat event. */ model MediaLiveEventChannelArchiveHeartbeatEventData { /** Gets the channel latency in ms. */ - @visibility("read") channelLatencyMs: string; /** Gets the latency result code. */ - @visibility("read") latencyResultCode: string; } alias MediaLiveEventConnectionBaseData = { /** Gets the ingest URL provided by the live event. */ - @visibility("read") ingestUrl?: string; /** Gets the stream Id. */ - @visibility("read") streamId?: string; /** Gets the remote IP. */ - @visibility("read") encoderIp?: string; /** Gets the remote port. */ - @visibility("read") encoderPort?: string; }; } diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Media/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Media/client.tsp new file mode 100644 index 000000000000..59fd9895e031 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Media/client.tsp @@ -0,0 +1,171 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobStateChangeEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobStateChangeEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobError, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobError, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobErrorDetail, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobErrorDetail, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutput, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutput, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputAsset, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputAsset, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputProgressEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputProgressEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobScheduledEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobScheduledEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobProcessingEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobProcessingEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobCancelingEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobCancelingEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobFinishedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobFinishedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobCanceledEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobCanceledEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobErroredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobErroredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputCanceledEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputCanceledEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputCancelingEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputCancelingEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputErroredEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputErroredEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputFinishedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputFinishedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputProcessingEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputProcessingEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputScheduledEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputScheduledEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventEncoderConnectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventEncoderConnectedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventConnectionRejectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventConnectionRejectedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventEncoderDisconnectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventEncoderDisconnectedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingStreamReceivedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingStreamReceivedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingDataChunkDroppedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingDataChunkDroppedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventIngestHeartbeatEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventIngestHeartbeatEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventTrackDiscontinuityDetectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventTrackDiscontinuityDetectedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventChannelArchiveHeartbeatEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventChannelArchiveHeartbeatEventData, + Access.public +); +//Enums +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobState, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobState, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobErrorCode, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobErrorCode, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobErrorCategory, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobErrorCategory, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.MediaJobRetry, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.MediaJobRetry, Access.public); diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/PolicyInsights.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.PolicyInsights/PolicyInsights.tsp similarity index 98% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/PolicyInsights.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.PolicyInsights/PolicyInsights.tsp index 0422c875de2f..4f1aeb38de12 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/PolicyInsights.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.PolicyInsights/PolicyInsights.tsp @@ -17,7 +17,7 @@ namespace Microsoft.EventGrid.SystemEvents { alias PolicyInsightsBaseEventData = { /** The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. */ - timestamp?: utcDateTime; + timestamp: utcDateTime; /** The resource ID of the policy assignment. */ policyAssignmentId?: string; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.PolicyInsights/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.PolicyInsights/client.tsp new file mode 100644 index 000000000000..a4f1b2130a50 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.PolicyInsights/client.tsp @@ -0,0 +1,23 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateChangedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateChangedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateDeletedEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ResourceNotifications.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/ResourceNotifications.tsp similarity index 91% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ResourceNotifications.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/ResourceNotifications.tsp index 5ce0ff6e35a4..d43977b7fa8c 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ResourceNotifications.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/ResourceNotifications.tsp @@ -16,10 +16,10 @@ model ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData /** Describes the schema of the common properties across all ARN system topic events */ model ResourceNotificationsResourceUpdatedEventData { /** resourceInfo details for update event */ - resourceInfo?: ResourceNotificationsResourceUpdatedDetails; + resourceInfo: ResourceNotificationsResourceUpdatedDetails; /** details about operational info */ - operationalInfo?: ResourceNotificationsOperationalDetails; + operationalInfo: ResourceNotificationsOperationalDetails; /** api version of the resource properties bag */ apiVersion?: string; @@ -43,18 +43,18 @@ model ResourceNotificationsResourceUpdatedDetails { location?: string; /** the tags on the resource for which the event is being emitted */ - tags?: Record; + tags: Record; /** properties in the payload of the resource for which the event is being emitted */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "The type of properties is object with additionalProperties object" - properties?: Record; + properties: Record; } /** details of operational info */ model ResourceNotificationsOperationalDetails { /** Date and Time when resource was updated */ // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - resourceEventTime?: utcDateTime; + resourceEventTime: utcDateTime; } /** @@ -89,10 +89,10 @@ delete events */ model ResourceNotificationsResourceDeletedEventData { /** resourceInfo details for delete event */ - resourceInfo?: ResourceNotificationsResourceDeletedDetails; + resourceInfo: ResourceNotificationsResourceDeletedDetails; /** details about operational info */ - operationalInfo?: ResourceNotificationsOperationalDetails; + operationalInfo: ResourceNotificationsOperationalDetails; } /** diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/client.tsp new file mode 100644 index 000000000000..8783a167984a --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/client.tsp @@ -0,0 +1,59 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAnnotatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAnnotatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceManagementDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceManagementDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceDeletedDetails, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceDeletedDetails, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Resources.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Resources/Resources.tsp similarity index 87% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Resources.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Resources/Resources.tsp index 489bbfb670d9..988522ec27d9 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Resources.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Resources/Resources.tsp @@ -1,47 +1,47 @@ /** Describes the schema of the Azure resource events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */ namespace Microsoft.EventGrid.SystemEvents { /** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteSuccess event. This is raised when a resource create or update operation succeeds. */ - model ResourceWriteSuccessData { + model ResourceWriteSuccessEventData { ...ResourceBaseEventData; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteFailure event. This is raised when a resource create or update operation fails. */ - model ResourceWriteFailureData { + model ResourceWriteFailureEventData { ...ResourceBaseEventData; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteCancel event. This is raised when a resource create or update operation is canceled. */ - model ResourceWriteCancelData { + model ResourceWriteCancelEventData { ...ResourceBaseEventData; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteSuccess event. This is raised when a resource delete operation succeeds. */ - model ResourceDeleteSuccessData { + model ResourceDeleteSuccessEventData { ...ResourceBaseEventData; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteFailure event. This is raised when a resource delete operation fails. */ - model ResourceDeleteFailureData { + model ResourceDeleteFailureEventData { ...ResourceBaseEventData; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteCancel event. This is raised when a resource delete operation is canceled. */ - model ResourceDeleteCancelData { + model ResourceDeleteCancelEventData { ...ResourceBaseEventData; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionSuccess event. This is raised when a resource action operation succeeds. */ - model ResourceActionSuccessData { + model ResourceActionSuccessEventData { ...ResourceBaseEventData; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionFailure event. This is raised when a resource action operation fails. */ - model ResourceActionFailureData { + model ResourceActionFailureEventData { ...ResourceBaseEventData; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionCancel event. This is raised when a resource action operation is canceled. */ - model ResourceActionCancelData { + model ResourceActionCancelEventData { ...ResourceBaseEventData; } @@ -69,7 +69,7 @@ namespace Microsoft.EventGrid.SystemEvents { action?: string; /** The evidence for the authorization. */ - evidence?: Record; + evidence: Record; } alias ResourceBaseEventData = { @@ -95,15 +95,15 @@ namespace Microsoft.EventGrid.SystemEvents { status?: string; /** The requested authorization for the operation. */ - authorization?: ResourceAuthorization; + authorization: ResourceAuthorization; /** The properties of the claims. */ - claims?: Record; + claims: Record; /** An operation ID used for troubleshooting. */ correlationId?: string; /** The details of the operation. */ - httpRequest?: ResourceHttpRequest; + httpRequest: ResourceHttpRequest; }; } diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Resources/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Resources/client.tsp new file mode 100644 index 000000000000..c9c2bb163517 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Resources/client.tsp @@ -0,0 +1,63 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.ResourceWriteSuccessEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceWriteSuccessEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceWriteFailureEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceWriteFailureEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceWriteCancelEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceWriteCancelEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceDeleteSuccessEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceDeleteSuccessEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceDeleteFailureEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceDeleteFailureEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceDeleteCancelEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceDeleteCancelEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceActionSuccessEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceActionSuccessEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceActionFailureEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceActionFailureEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceActionCancelEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceActionCancelEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceHttpRequest, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.ResourceHttpRequest, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceAuthorization, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.ResourceAuthorization, Access.public); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ServiceBus.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ServiceBus/ServiceBus.tsp similarity index 100% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/ServiceBus.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ServiceBus/ServiceBus.tsp diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ServiceBus/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ServiceBus/client.tsp new file mode 100644 index 000000000000..cf03f77c19ec --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ServiceBus/client.tsp @@ -0,0 +1,29 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.ServiceBusActiveMessagesAvailableWithNoListenersEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ServiceBusActiveMessagesAvailableWithNoListenersEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ServiceBusDeadletterMessagesAvailableWithNoListenersEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ServiceBusDeadletterMessagesAvailableWithNoListenersEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/SignalRService.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.SignalRService/SignalRService.tsp similarity index 97% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/SignalRService.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.SignalRService/SignalRService.tsp index ac2f698c5f70..7eec1b99c30e 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/SignalRService.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.SignalRService/SignalRService.tsp @@ -18,7 +18,7 @@ namespace Microsoft.EventGrid.SystemEvents { alias SignalRServiceBaseEventdata = { /** The time at which the event occurred. */ - timestamp?: utcDateTime; + timestamp: utcDateTime; /** The hub of connected client connection. */ hubName?: string; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.SignalRService/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.SignalRService/client.tsp new file mode 100644 index 000000000000..790c2e7a6cde --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.SignalRService/client.tsp @@ -0,0 +1,17 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.SignalRServiceClientConnectionConnectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.SignalRServiceClientConnectionConnectedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.SignalRServiceClientConnectionDisconnectedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.SignalRServiceClientConnectionDisconnectedEventData, + Access.public +); +//Enums diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Storage.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Storage/Storage.tsp similarity index 95% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Storage.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Storage/Storage.tsp index 2d8e72c4db76..88f423a12136 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Storage.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Storage/Storage.tsp @@ -159,13 +159,13 @@ namespace Microsoft.EventGrid.SystemEvents { scheduleTime?: string; /** Execution statistics of a specific policy action in a Blob Management cycle. */ - deleteSummary?: StorageLifecyclePolicyActionSummaryDetail; + deleteSummary: StorageLifecyclePolicyActionSummaryDetail; /** Execution statistics of a specific policy action in a Blob Management cycle. */ - tierToCoolSummary?: StorageLifecyclePolicyActionSummaryDetail; + tierToCoolSummary: StorageLifecyclePolicyActionSummaryDetail; /** Execution statistics of a specific policy action in a Blob Management cycle. */ - tierToArchiveSummary?: StorageLifecyclePolicyActionSummaryDetail; + tierToArchiveSummary: StorageLifecyclePolicyActionSummaryDetail; } /** Execution statistics of a specific policy action in a Blob Management cycle. */ @@ -241,7 +241,7 @@ namespace Microsoft.EventGrid.SystemEvents { /** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobInventoryPolicyCompleted event. */ model StorageBlobInventoryPolicyCompletedEventData { /** The time at which inventory policy was scheduled. */ - scheduleDateTime?: utcDateTime; + scheduleDateTime: utcDateTime; /** The account name for which inventory policy is registered. */ accountName?: string; @@ -265,10 +265,10 @@ namespace Microsoft.EventGrid.SystemEvents { /** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskCompleted event. */ model StorageTaskCompletedEventData { /** The status for a storage task. */ - status?: StorageTaskCompletedStatus; + status: StorageTaskCompletedStatus; /** The time at which a storage task was completed. */ - completedDateTime?: utcDateTime; + completedDateTime: utcDateTime; /** The execution id for a storage task. */ taskExecutionId?: string; @@ -277,13 +277,13 @@ namespace Microsoft.EventGrid.SystemEvents { taskName?: string; /** The summary report blob url for a storage task */ - summaryReportBlobUrl?: url; + summaryReportBlobUrl: url; } /** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskQueued event. */ model StorageTaskQueuedEventData { /** The time at which a storage task was queued. */ - queuedDateTime?: utcDateTime; + queuedDateTime: utcDateTime; /** The execution id for a storage task. */ taskExecutionId?: string; @@ -293,7 +293,7 @@ namespace Microsoft.EventGrid.SystemEvents { model StorageTaskAssignmentQueuedEventData { /** The time at which a storage task was queued. */ // @encode("ISO8601") - queuedDateTime?: utcDateTime; + queuedDateTime: utcDateTime; /** The execution id for a storage task. */ taskExecutionId?: string; @@ -302,11 +302,11 @@ namespace Microsoft.EventGrid.SystemEvents { /** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskAssignmentCompleted event. */ model StorageTaskAssignmentCompletedEventData { /** The status for a storage task. */ - status?: StorageTaskAssignmentCompletedStatus; + status: StorageTaskAssignmentCompletedStatus; /** The time at which a storage task was completed. */ // @encode("ISO8601") - completedDateTime?: utcDateTime; + completedDateTime: utcDateTime; /** The execution id for a storage task. */ taskExecutionId?: string; @@ -315,7 +315,7 @@ namespace Microsoft.EventGrid.SystemEvents { taskName?: string; /** The summary report blob url for a storage task */ - summaryReportBlobUrl?: url; + summaryReportBlobUrl: url; } /** The status for a storage task. */ @@ -346,6 +346,6 @@ namespace Microsoft.EventGrid.SystemEvents { /** For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. */ #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Type is Object in swagger" - storageDiagnostics?: Record; + storageDiagnostics: Record; }; } diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Storage/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Storage/client.tsp new file mode 100644 index 000000000000..d3f6d0014828 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Storage/client.tsp @@ -0,0 +1,107 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.StorageBlobCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageBlobCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageBlobDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageBlobDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageDirectoryCreatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageDirectoryCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageDirectoryDeletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageDirectoryDeletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageBlobRenamedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageBlobRenamedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageDirectoryRenamedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageDirectoryRenamedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageBlobTierChangedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageBlobTierChangedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageAsyncOperationInitiatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageAsyncOperationInitiatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageBlobInventoryPolicyCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageBlobInventoryPolicyCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageTaskCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskQueuedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageTaskQueuedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentQueuedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentQueuedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentCompletedEventData, + Access.public +); +//Enums +@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentCompletedStatus, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentCompletedStatus, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskCompletedStatus, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.StorageTaskCompletedStatus, + Access.public +); diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Web.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Web/Web.tsp similarity index 96% rename from specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Web.tsp rename to specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Web/Web.tsp index 367113ce36dc..762cc4d65ce0 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Web.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Web/Web.tsp @@ -4,7 +4,7 @@ namespace Microsoft.EventGrid.SystemEvents { /** Detail of action on the app. */ model AppEventTypeDetail { /** Type of action of the operation. */ - action?: AppAction; + action: AppAction; } /** Schema of the Data property of an EventGridEvent for a Microsoft.Web.AppUpdated event. */ @@ -70,10 +70,10 @@ namespace Microsoft.EventGrid.SystemEvents { /** Schema of the Data property of an EventGridEvent for a Microsoft.Web.AppServicePlanUpdated event. */ model WebAppServicePlanUpdatedEventData { /** Detail of action on the app service plan. */ - appServicePlanEventTypeDetail?: AppServicePlanEventTypeDetail; + appServicePlanEventTypeDetail: AppServicePlanEventTypeDetail; /** sku of app service plan. */ - sku?: WebAppServicePlanUpdatedEventDataSku; + sku: WebAppServicePlanUpdatedEventDataSku; /** name of the app service plan that had this event. */ name?: string; @@ -142,13 +142,13 @@ namespace Microsoft.EventGrid.SystemEvents { /** Detail of action on the app service plan. */ model AppServicePlanEventTypeDetail { /** Kind of environment where app service plan is. */ - stampKind?: StampKind; + stampKind: StampKind; /** Type of action on the app service plan. */ - action?: AppServicePlanAction; + action: AppServicePlanAction; /** Asynchronous operation status of the operation on the app service plan. */ - status?: AsyncStatus; + status: AsyncStatus; } /** Asynchronous operation status of the operation on the app service plan. */ @@ -167,7 +167,7 @@ namespace Microsoft.EventGrid.SystemEvents { alias WebAppBaseEventData = { /** Detail of action on the app. */ - appEventTypeDetail?: AppEventTypeDetail; + appEventTypeDetail: AppEventTypeDetail; /** name of the web site that had this event. */ name?: string; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Web/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Web/client.tsp new file mode 100644 index 000000000000..c034a51b8e40 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.Web/client.tsp @@ -0,0 +1,103 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +//Models +@@usage(Microsoft.EventGrid.SystemEvents.AppEventTypeDetail, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AppEventTypeDetail, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.WebAppUpdatedEventData, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.WebAppUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebBackupOperationStartedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebBackupOperationStartedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebBackupOperationCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebBackupOperationCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebBackupOperationFailedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebBackupOperationFailedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebRestoreOperationStartedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebRestoreOperationStartedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebRestoreOperationCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebRestoreOperationCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebRestoreOperationFailedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebRestoreOperationFailedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebSlotSwapStartedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebSlotSwapStartedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebSlotSwapCompletedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebSlotSwapCompletedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebSlotSwapFailedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebSlotSwapFailedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebSlotSwapWithPreviewStartedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebSlotSwapWithPreviewStartedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebSlotSwapWithPreviewCancelledEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebSlotSwapWithPreviewCancelledEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventData, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.AppServicePlanEventTypeDetail, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.AppServicePlanEventTypeDetail, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventDataSku, + Usage.output +); +@@access(Microsoft.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventDataSku, + Access.public +); +//Enums +@@usage(Microsoft.EventGrid.SystemEvents.AppAction, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AppAction, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.StampKind, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.StampKind, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.AppServicePlanAction, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AppServicePlanAction, Access.public); +@@usage(Microsoft.EventGrid.SystemEvents.AsyncStatus, Usage.output); +@@access(Microsoft.EventGrid.SystemEvents.AsyncStatus, Access.public); diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/client.tsp index 9efe25648d95..3a7b3f639825 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/client.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/client.tsp @@ -1,1695 +1,26 @@ -import "@azure-tools/typespec-client-generator-core"; -import "@typespec/versioning"; - import "./main.tsp"; -using Azure.ClientGenerator.Core; - -// Models -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementUserCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementUserCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementUserUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementUserUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementUserDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementUserDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementSubscriptionDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementProductCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementProductCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementProductUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementProductUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementProductDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementProductDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementApiReleaseDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayHostnameConfigurationDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayCertificateAuthorityDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayApiAddedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayApiAddedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayApiRemovedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ApiManagementGatewayApiRemovedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AppConfigurationKeyValueModifiedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AppConfigurationKeyValueModifiedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AppConfigurationKeyValueDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AppConfigurationKeyValueDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotModifiedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AppConfigurationSnapshotModifiedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudUpdatingEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudUpdatingEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudFailedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudFailedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsClusterCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsClusterDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterUpdatingEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsClusterUpdatingEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsClusterUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterFailedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsClusterFailedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionFinishedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionFinishedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionCancelledEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionCancelledEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionFailedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionFailedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsPrivateCloudEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AvsClusterEventData, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AvsClusterEventData, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AvsScriptExecutionEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsIncomingCallEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsIncomingCallEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsUserDisconnectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsUserDisconnectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageReceivedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageReceivedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageReceivedInThreadEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageReceivedInThreadEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageEditedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageEditedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageEditedInThreadEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageEditedInThreadEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageDeletedInThreadEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageDeletedInThreadEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadCreatedWithUserEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadCreatedWithUserEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadWithUserDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadWithUserDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedPerUserEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedPerUserEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatParticipantAddedToThreadWithUserEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatParticipantAddedToThreadWithUserEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatParticipantRemovedFromThreadWithUserEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatParticipantRemovedFromThreadWithUserEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatParticipantAddedToThreadEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatParticipantAddedToThreadEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatParticipantRemovedFromThreadEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatParticipantRemovedFromThreadEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsSmsDeliveryReportReceivedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsSmsDeliveryReportReceivedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsSmsReceivedEventData, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AcsSmsReceivedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRecordingFileStatusUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRecordingFileStatusUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportReceivedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportReceivedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsEmailEngagementTrackingReportReceivedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsEmailEngagementTrackingReportReceivedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobCancelledEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobCancelledEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobClassificationFailedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobClassificationFailedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobClassifiedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobClassifiedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobClosedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobClosedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobExceptionTriggeredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobExceptionTriggeredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobQueuedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobQueuedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobReceivedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobReceivedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobSchedulingFailedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobSchedulingFailedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobUnassignedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobUnassignedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobWaitingForActivationEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobWaitingForActivationEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobWorkerSelectorsExpiredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobWorkerSelectorsExpiredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerDeregisteredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerDeregisteredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferAcceptedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferAcceptedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferDeclinedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferDeclinedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferExpiredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferExpiredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferIssuedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferIssuedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferRevokedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerOfferRevokedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerRegisteredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerRegisteredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobEventData, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobEventData, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterEventData, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterEventData, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterChannelConfiguration, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterChannelConfiguration, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterQueueDetails, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterQueueDetails, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterCommunicationError, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterCommunicationError, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerSelector, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerSelector, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadEventBaseProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadEventBaseProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadEventInThreadBaseProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadEventInThreadBaseProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageEventBaseProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageEventBaseProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatMessageEventInThreadBaseProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatMessageEventInThreadBaseProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatEventInThreadBaseProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatEventInThreadBaseProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatEventBaseProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatEventBaseProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsChatThreadParticipantProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsChatThreadParticipantProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsSmsEventBaseProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsSmsEventBaseProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsSmsDeliveryAttemptProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsSmsDeliveryAttemptProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRecordingStorageInfoProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRecordingStorageInfoProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRecordingChunkInfoProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRecordingChunkInfoProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsIncomingCallCustomContext, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsIncomingCallCustomContext, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.CommunicationIdentifierModel, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.CommunicationIdentifierModel, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.PhoneNumberIdentifierModel, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.PhoneNumberIdentifierModel, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.CommunicationUserIdentifierModel, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.CommunicationUserIdentifierModel, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryImagePushedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryImagePushedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryImageDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryImageDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryChartPushedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryChartPushedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryChartDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryChartDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryArtifactEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryArtifactEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventTarget, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventTarget, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryArtifactEventTarget, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryArtifactEventTarget, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventRequest, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventRequest, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventActor, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventActor, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventSource, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventSource, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventConnectedRegistry, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerRegistryEventConnectedRegistry, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceNewKubernetesVersionAvailableEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceNewKubernetesVersionAvailableEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEndedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEndedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEndingEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEndingEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingStartedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingStartedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingSucceededEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingSucceededEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingFailedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingFailedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceClusterSupportEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ContainerServiceNodePoolRollingEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.DataBoxCopyStartedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.DataBoxCopyStartedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.DataBoxCopyCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.DataBoxCopyCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.DataBoxOrderCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.DataBoxOrderCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.SubscriptionValidationEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.SubscriptionValidationEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.SubscriptionValidationResponse, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.SubscriptionValidationResponse, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.SubscriptionDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.SubscriptionDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientCreatedOrUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientCreatedOrUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientSessionConnectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientSessionConnectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientSessionDisconnectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientSessionDisconnectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.EventHubCaptureFileCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.EventHubCaptureFileCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceType, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceType, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.HealthcareDicomImageUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.DeviceLifeCycleEventProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.DeviceLifeCycleEventProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.DeviceTwinMetadata, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.DeviceTwinMetadata, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.DeviceTwinProperties, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.DeviceTwinProperties, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.DeviceTwinInfo, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.DeviceTwinInfo, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.DeviceConnectionStateEventProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.DeviceConnectionStateEventProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.DeviceTelemetryEventProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.DeviceTelemetryEventProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.DeviceConnectionStateEventInfo, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.DeviceConnectionStateEventInfo, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.IotHubDeviceCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.IotHubDeviceCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.IotHubDeviceDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.IotHubDeviceDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.IotHubDeviceConnectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.IotHubDeviceConnectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.IotHubDeviceDisconnectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.IotHubDeviceDisconnectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.IotHubDeviceTelemetryEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.IotHubDeviceTelemetryEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.DeviceTwinInfoProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.DeviceTwinInfoProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateNewVersionCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateNewVersionCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateNearExpiryEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateNearExpiryEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateExpiredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.KeyVaultCertificateExpiredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultKeyNewVersionCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.KeyVaultKeyNewVersionCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultKeyNearExpiryEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.KeyVaultKeyNearExpiryEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultKeyExpiredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.KeyVaultKeyExpiredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultSecretNewVersionCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.KeyVaultSecretNewVersionCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultSecretNearExpiryEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.KeyVaultSecretNearExpiryEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultSecretExpiredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.KeyVaultSecretExpiredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.KeyVaultVaultAccessPolicyChangedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.KeyVaultVaultAccessPolicyChangedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MachineLearningServicesModelRegisteredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MachineLearningServicesModelRegisteredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MachineLearningServicesModelDeployedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MachineLearningServicesModelDeployedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MachineLearningServicesRunCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MachineLearningServicesRunCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MachineLearningServicesDatasetDriftDetectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MachineLearningServicesDatasetDriftDetectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MachineLearningServicesRunStatusChangedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MachineLearningServicesRunStatusChangedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MapsGeofenceEnteredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MapsGeofenceEnteredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MapsGeofenceExitedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MapsGeofenceExitedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MapsGeofenceResultEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MapsGeofenceResultEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MapsGeofenceEventProperties, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MapsGeofenceEventProperties, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MapsGeofenceGeometry, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.MapsGeofenceGeometry, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobStateChangeEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobStateChangeEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobError, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobError, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobErrorDetail, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobErrorDetail, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutput, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutput, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputAsset, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputAsset, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputProgressEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputProgressEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobScheduledEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobScheduledEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobProcessingEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobProcessingEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobCancelingEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobCancelingEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobFinishedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobFinishedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobCanceledEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobCanceledEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobErroredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobErroredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputCanceledEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputCanceledEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputCancelingEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputCancelingEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputErroredEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputErroredEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputFinishedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputFinishedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputProcessingEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputProcessingEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobOutputScheduledEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobOutputScheduledEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventEncoderConnectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventEncoderConnectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventConnectionRejectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventConnectionRejectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventEncoderDisconnectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventEncoderDisconnectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingStreamReceivedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingStreamReceivedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingDataChunkDroppedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventIncomingDataChunkDroppedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventIngestHeartbeatEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventIngestHeartbeatEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventTrackDiscontinuityDetectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventTrackDiscontinuityDetectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaLiveEventChannelArchiveHeartbeatEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.MediaLiveEventChannelArchiveHeartbeatEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateChangedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateChangedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.PolicyInsightsPolicyStateDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.RedisPatchingCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.RedisPatchingCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.RedisScalingCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.RedisScalingCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.RedisExportRDBCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.RedisExportRDBCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.RedisImportRDBCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.RedisImportRDBCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceWriteSuccessData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceWriteSuccessData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceWriteFailureData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceWriteFailureData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceWriteCancelData, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.ResourceWriteCancelData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceDeleteSuccessData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceDeleteSuccessData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceDeleteFailureData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceDeleteFailureData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceDeleteCancelData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceDeleteCancelData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceActionSuccessData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceActionSuccessData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceActionFailureData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceActionFailureData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceActionCancelData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceActionCancelData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceHttpRequest, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.ResourceHttpRequest, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceAuthorization, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.ResourceAuthorization, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.ServiceBusActiveMessagesAvailableWithNoListenersEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ServiceBusActiveMessagesAvailableWithNoListenersEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ServiceBusDeadletterMessagesAvailableWithNoListenersEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ServiceBusDeadletterMessagesAvailableWithNoListenersEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.SignalRServiceClientConnectionConnectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.SignalRServiceClientConnectionConnectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.SignalRServiceClientConnectionDisconnectedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.SignalRServiceClientConnectionDisconnectedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageBlobCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageBlobCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageBlobDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageBlobDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageDirectoryCreatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageDirectoryCreatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageDirectoryDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageDirectoryDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageBlobRenamedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageBlobRenamedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageDirectoryRenamedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageDirectoryRenamedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageBlobTierChangedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageBlobTierChangedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageAsyncOperationInitiatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageAsyncOperationInitiatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageBlobInventoryPolicyCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageBlobInventoryPolicyCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageTaskCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskQueuedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageTaskQueuedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentQueuedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentQueuedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AppEventTypeDetail, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AppEventTypeDetail, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.WebAppUpdatedEventData, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.WebAppUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebBackupOperationStartedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebBackupOperationStartedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebBackupOperationCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebBackupOperationCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebBackupOperationFailedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebBackupOperationFailedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebRestoreOperationStartedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebRestoreOperationStartedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebRestoreOperationCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebRestoreOperationCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebRestoreOperationFailedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebRestoreOperationFailedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebSlotSwapStartedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebSlotSwapStartedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebSlotSwapCompletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebSlotSwapCompletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebSlotSwapFailedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebSlotSwapFailedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebSlotSwapWithPreviewStartedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebSlotSwapWithPreviewStartedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebSlotSwapWithPreviewCancelledEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebSlotSwapWithPreviewCancelledEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AppServicePlanEventTypeDetail, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AppServicePlanEventTypeDetail, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventDataSku, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventDataSku, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAnnotatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAnnotatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceManagementCreatedOrUpdatedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceManagementDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceManagementDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceDeletedEventData, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceDeletedEventData, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceDeletedDetails, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceDeletedDetails, - Access.public -); -// Enums -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterJobStatus, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterJobStatus, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.recordingContentType, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.recordingContentType, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.recordingChannelType, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.recordingChannelType, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.recordingFormatType, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.recordingFormatType, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterLabelOperator, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterLabelOperator, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerSelectorState, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsRouterWorkerSelectorState, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AcsUserEngagement, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AcsUserEngagement, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.DataBoxStageName, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.DataBoxStageName, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientState, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientState, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceType, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceType, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobState, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobState, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobErrorCode, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobErrorCode, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobErrorCategory, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobErrorCategory, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.MediaJobRetry, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.MediaJobRetry, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentCompletedStatus, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentCompletedStatus, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.StorageTaskCompletedStatus, - Usage.output -); -@@access(Microsoft.EventGrid.SystemEvents.StorageTaskCompletedStatus, - Access.public -); -@@usage(Microsoft.EventGrid.SystemEvents.AppAction, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AppAction, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.StampKind, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.StampKind, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.AppServicePlanAction, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AppServicePlanAction, Access.public); -@@usage(Microsoft.EventGrid.SystemEvents.AsyncStatus, Usage.output); -@@access(Microsoft.EventGrid.SystemEvents.AsyncStatus, Access.public); +import "./Microsoft.ApiCenter/client.tsp"; +import "./Microsoft.ApiManagement/client.tsp"; +import "./Microsoft.AppConfiguration/client.tsp"; +import "./Microsoft.AVS/client.tsp"; +import "./Microsoft.Cache/client.tsp"; +import "./Microsoft.Communication/client.tsp"; +import "./Microsoft.ContainerRegistry/client.tsp"; +import "./Microsoft.ContainerService/client.tsp"; +import "./Microsoft.DataBox/client.tsp"; +import "./Microsoft.Devices/client.tsp"; +import "./Microsoft.EventGrid/client.tsp"; +import "./Microsoft.EventHub/client.tsp"; +import "./Microsoft.HealthcareApis/client.tsp"; +import "./Microsoft.KeyVault/client.tsp"; +import "./Microsoft.MachineLearningServices/client.tsp"; +import "./Microsoft.Maps/client.tsp"; +import "./Microsoft.Media/client.tsp"; +import "./Microsoft.PolicyInsights/client.tsp"; +import "./Microsoft.ResourceNotifications/client.tsp"; +import "./Microsoft.Resources/client.tsp"; +import "./Microsoft.ServiceBus/client.tsp"; +import "./Microsoft.SignalRService/client.tsp"; +import "./Microsoft.Storage/client.tsp"; +import "./Microsoft.Web/client.tsp"; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/main.tsp index 5a7752667ea0..89ed7f761fd4 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/main.tsp @@ -1,28 +1,29 @@ import "@typespec/versioning"; -import "./ApiManagement.tsp"; -import "./AppConfiguration.tsp"; -import "./AVS.tsp"; -import "./AzureCommunicationServices.tsp"; -import "./ContainerRegistry.tsp"; -import "./ContainerService.tsp"; -import "./DataBox.tsp"; -import "./EventHub.tsp"; -import "./Maps.tsp"; -import "./IotHub.tsp"; -import "./HealthcareApis.tsp"; -import "./KeyVault.tsp"; -import "./MachineLearningServices.tsp"; -import "./MediaServices.tsp"; -import "./PolicyInsights.tsp"; -import "./RedisCache.tsp"; -import "./Resources.tsp"; -import "./ServiceBus.tsp"; -import "./SignalRService.tsp"; -import "./Storage.tsp"; -import "./Web.tsp"; -import "./EventGrid.tsp"; -import "./ResourceNotifications.tsp"; +import "./Microsoft.ApiCenter/ApiCenter.tsp"; +import "./Microsoft.ApiManagement/ApiManagement.tsp"; +import "./Microsoft.AppConfiguration/AppConfiguration.tsp"; +import "./Microsoft.AVS/AVS.tsp"; +import "./Microsoft.Communication/AzureCommunicationServices.tsp"; +import "./Microsoft.ContainerRegistry/ContainerRegistry.tsp"; +import "./Microsoft.ContainerService/ContainerService.tsp"; +import "./Microsoft.DataBox/DataBox.tsp"; +import "./Microsoft.EventHub/EventHub.tsp"; +import "./Microsoft.Maps/Maps.tsp"; +import "./Microsoft.Devices/IotHub.tsp"; +import "./Microsoft.HealthcareApis/HealthcareApis.tsp"; +import "./Microsoft.KeyVault/KeyVault.tsp"; +import "./Microsoft.MachineLearningServices/MachineLearningServices.tsp"; +import "./Microsoft.Media/MediaServices.tsp"; +import "./Microsoft.PolicyInsights/PolicyInsights.tsp"; +import "./Microsoft.Cache/RedisCache.tsp"; +import "./Microsoft.Resources/Resources.tsp"; +import "./Microsoft.ServiceBus/ServiceBus.tsp"; +import "./Microsoft.SignalRService/SignalRService.tsp"; +import "./Microsoft.Storage/Storage.tsp"; +import "./Microsoft.Web/Web.tsp"; +import "./Microsoft.EventGrid/EventGrid.tsp"; +import "./Microsoft.ResourceNotifications/ResourceNotifications.tsp"; import "./propertyNameOverride.tsp"; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverride.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverride.tsp index 1752c17d9cb0..1b2b2247d318 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverride.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverride.tsp @@ -1,131 +1,160 @@ -import "./AzureCommunicationServices.tsp"; -import "./EventHub.tsp"; -import "./HealthcareApis.tsp"; -import "./IotHub.tsp"; -import "./ResourceNotifications.tsp"; -import "./Storage.tsp"; -import "./DataBox.tsp"; -import "./EventGrid.tsp"; +import "./Microsoft.Communication/AzureCommunicationServices.tsp"; +import "./Microsoft.EventHub/EventHub.tsp"; +import "./Microsoft.HealthcareApis/HealthcareApis.tsp"; +import "./Microsoft.Devices/IotHub.tsp"; +import "./Microsoft.ResourceNotifications/ResourceNotifications.tsp"; +import "./Microsoft.Storage/Storage.tsp"; +import "./Microsoft.DataBox/DataBox.tsp"; +import "./Microsoft.EventGrid/EventGrid.tsp"; +import "./propertyNameOverrideGo.tsp"; +import "./propertyNameOverrideCsharp.tsp"; +import "./propertyNameOverrideJs.tsp"; import "@azure-tools/typespec-client-generator-core"; +using Microsoft.EventGrid.SystemEvents; using Azure.ClientGenerator.Core; -@@clientName(Microsoft.EventGrid.SystemEvents.AcsIncomingCallEventData.to, +@@clientName(AcsIncomingCallEventData.to, "toCommunicationIdentifier", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.AcsIncomingCallEventData.from, +@@clientName(AcsIncomingCallEventData.from, "fromCommunicationIdentifier", "autorest" ); +@@clientName(AcsRouterWorkerSelector.value, "labelValue", "autorest"); -@@clientName(Microsoft.EventGrid.SystemEvents.AcsEmailDeliveryReportReceivedEventData.deliveryAttemptTimeStamp, +@@clientName(AcsEmailDeliveryReportReceivedEventData.deliveryAttemptTimeStamp, "deliveryAttemptTimestamp", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.AcsEmailEngagementTrackingReportReceivedEventData.userActionTimeStamp, +@@clientName(AcsEmailEngagementTrackingReportReceivedEventData.userActionTimeStamp, "userActionTimestamp", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.AcsEmailEngagementTrackingReportReceivedEventData.engagementType, +@@clientName(AcsEmailEngagementTrackingReportReceivedEventData.engagementType, "engagement", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.EventHubCaptureFileCreatedEventData.fileUrl, +@@clientName(EventHubCaptureFileCreatedEventData.fileUrl, "fileurl", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData.resourceFhirAccount, +@@clientName(HealthcareFhirResourceCreatedEventData.resourceFhirAccount, "FhirServiceHostName", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData.resourceFhirId, +@@clientName(HealthcareFhirResourceCreatedEventData.resourceFhirId, "FhirResourceId", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData.resourceVersionId, +@@clientName(HealthcareFhirResourceCreatedEventData.resourceVersionId, "FhirResourceVersionId", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData.resourceType, +@@clientName(HealthcareFhirResourceCreatedEventData.resourceType, "FhirResourceType", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData.resourceFhirAccount, +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceFhirAccount, "FhirServiceHostName", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData.resourceFhirId, +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceFhirId, "FhirResourceId", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData.resourceVersionId, +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceVersionId, "FhirResourceVersionId", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData.resourceType, +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceType, "FhirResourceType", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData.resourceFhirAccount, +@@clientName(HealthcareFhirResourceDeletedEventData.resourceFhirAccount, "FhirServiceHostName", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData.resourceFhirId, +@@clientName(HealthcareFhirResourceDeletedEventData.resourceFhirId, "FhirResourceId", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData.resourceVersionId, +@@clientName(HealthcareFhirResourceDeletedEventData.resourceVersionId, "FhirResourceVersionId", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData.resourceType, +@@clientName(HealthcareFhirResourceDeletedEventData.resourceType, "FhirResourceType", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.DeviceTwinMetadata.lastUpdated, - "$lastUpdated", - "autorest" -); -@@clientName(Microsoft.EventGrid.SystemEvents.DeviceTwinProperties.metadata, - "$metadata", - "autorest" -); -@@clientName(Microsoft.EventGrid.SystemEvents.DeviceTwinProperties.version, - "$version", - "autorest" -); +@@clientName(DeviceTwinMetadata.lastUpdated, "$lastUpdated", "autorest"); +@@clientName(DeviceTwinProperties.metadata, "$metadata", "autorest"); +@@clientName(DeviceTwinProperties.version, "$version", "autorest"); -@@clientName(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData.resourceInfo, +@@clientName(ResourceNotificationsResourceUpdatedEventData.resourceInfo, "resourceDetails", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData.operationalInfo, +@@clientName(ResourceNotificationsResourceUpdatedEventData.operationalInfo, "operationalDetails", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceDeletedEventData.resourceInfo, +@@clientName(ResourceNotificationsResourceDeletedEventData.resourceInfo, "resourceDetails", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.ResourceNotificationsResourceDeletedEventData.operationalInfo, +@@clientName(ResourceNotificationsResourceDeletedEventData.operationalInfo, "operationalDetails", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentQueuedEventData.queuedDateTime, +@@clientName(StorageTaskAssignmentQueuedEventData.queuedDateTime, "queuedOn", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentCompletedEventData.completedDateTime, +@@clientName(StorageTaskAssignmentCompletedEventData.completedDateTime, "completedOn", "autorest" ); -@@clientName(Microsoft.EventGrid.SystemEvents.StorageTaskAssignmentCompletedEventData.summaryReportBlobUrl, +@@clientName(StorageTaskAssignmentCompletedEventData.summaryReportBlobUrl, "summaryReportBlobUri", "autorest" ); + +@@clientName(AcsMessageDeliveryStatusUpdatedEventData.channelType, + "channelKind", + "autorest" +); + +@@clientName(AcsMessageReceivedEventData.channelType, + "channelKind", + "autorest" +); + +@@clientName(AcsMessageReceivedEventData.media, "mediaContent", "autorest"); + +@@clientName(AcsMessageReceivedEventData.interactive, + "interactiveContent", + "autorest" +); + +@@clientName(AcsMessageMediaContent.id, "mediaId", "autorest"); + +@@clientName(AcsMessageContext.id, "messageId", "autorest"); + +@@clientName(AcsMessageInteractiveContent.type, "replyKind", "autorest"); + +@@clientName(AcsMessageInteractiveButtonReplyContent.id, + "buttonId", + "autorest" +); + +@@clientName(AcsMessageInteractiveListReplyContent.id, + "listItemId", + "autorest" +); diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideCsharp.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideCsharp.tsp new file mode 100644 index 000000000000..60933e665420 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideCsharp.tsp @@ -0,0 +1,206 @@ +import "./Microsoft.Communication/AzureCommunicationServices.tsp"; +import "./Microsoft.EventHub/EventHub.tsp"; +import "./Microsoft.HealthcareApis/HealthcareApis.tsp"; +import "./Microsoft.Devices/IotHub.tsp"; +import "./Microsoft.ResourceNotifications/ResourceNotifications.tsp"; +import "./Microsoft.Storage/Storage.tsp"; +import "./Microsoft.DataBox/DataBox.tsp"; +import "./Microsoft.EventGrid/EventGrid.tsp"; +import "./Microsoft.Media/MediaServices.tsp"; +import "./Microsoft.AVS/AVS.tsp"; + +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.EventGrid.SystemEvents; + +@@clientName(AcsIncomingCallEventData.to, + "toCommunicationIdentifier", + "csharp" +); +@@clientName(AcsIncomingCallEventData.from, + "fromCommunicationIdentifier", + "csharp" +); + +@@clientName(AcsEmailDeliveryReportReceivedEventData.deliveryAttemptTimeStamp, + "deliveryAttemptTimestamp", + "csharp" +); +@@clientName(AcsEmailEngagementTrackingReportReceivedEventData.userActionTimeStamp, + "userActionTimestamp", + "csharp" +); +@@clientName(AcsEmailEngagementTrackingReportReceivedEventData.engagementType, + "engagement", + "csharp" +); + +@@clientName(EventHubCaptureFileCreatedEventData.fileUrl, "fileurl", "csharp"); + +@@clientName(HealthcareFhirResourceCreatedEventData.resourceFhirAccount, + "FhirServiceHostName", + "csharp" +); +@@clientName(HealthcareFhirResourceCreatedEventData.resourceFhirId, + "FhirResourceId", + "csharp" +); +@@clientName(HealthcareFhirResourceCreatedEventData.resourceVersionId, + "FhirResourceVersionId", + "csharp" +); +@@clientName(HealthcareFhirResourceCreatedEventData.resourceType, + "FhirResourceType", + "csharp" +); +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceFhirAccount, + "FhirServiceHostName", + "csharp" +); +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceFhirId, + "FhirResourceId", + "csharp" +); +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceVersionId, + "FhirResourceVersionId", + "csharp" +); +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceType, + "FhirResourceType", + "csharp" +); +@@clientName(HealthcareFhirResourceDeletedEventData.resourceFhirAccount, + "FhirServiceHostName", + "csharp" +); +@@clientName(HealthcareFhirResourceDeletedEventData.resourceFhirId, + "FhirResourceId", + "csharp" +); +@@clientName(HealthcareFhirResourceDeletedEventData.resourceVersionId, + "FhirResourceVersionId", + "csharp" +); +@@clientName(HealthcareFhirResourceDeletedEventData.resourceType, + "FhirResourceType", + "csharp" +); + +@@clientName(DeviceTwinMetadata.lastUpdated, "$lastUpdated", "csharp"); +@@clientName(DeviceTwinProperties.metadata, "$metadata", "csharp"); +@@clientName(DeviceTwinProperties.version, "$version", "csharp"); + +@@clientName(ResourceNotificationsResourceUpdatedEventData.resourceInfo, + "resourceDetails", + "csharp" +); +@@clientName(ResourceNotificationsResourceUpdatedEventData.operationalInfo, + "operationalDetails", + "csharp" +); +@@clientName(ResourceNotificationsResourceDeletedEventData.resourceInfo, + "resourceDetails", + "csharp" +); +@@clientName(ResourceNotificationsResourceDeletedEventData.operationalInfo, + "operationalDetails", + "csharp" +); + +@@clientName(StorageTaskAssignmentQueuedEventData.queuedDateTime, + "queuedOn", + "csharp" +); +@@clientName(StorageTaskAssignmentCompletedEventData.completedDateTime, + "completedOn", + "csharp" +); +@@clientName(StorageTaskAssignmentCompletedEventData.summaryReportBlobUrl, + "summaryReportBlobUri", + "csharp" +); + +@@clientName(AcsMessageDeliveryStatusUpdatedEventData.channelType, + "channelKind", + "csharp" +); + +@@clientName(AcsMessageReceivedEventData.channelType, "channelKind", "csharp"); + +@@clientName(AcsMessageReceivedEventData.media, "mediaContent", "csharp"); + +@@clientName(AcsMessageReceivedEventData.interactive, + "interactiveContent", + "csharp" +); + +@@clientName(AcsMessageMediaContent.id, "mediaId", "csharp"); + +@@clientName(AcsMessageContext.id, "messageId", "csharp"); + +@@clientName(AcsMessageInteractiveContent.type, "replyKind", "csharp"); + +@@clientName(AcsMessageInteractiveButtonReplyContent.id, "buttonId", "csharp"); + +@@clientName(AcsMessageInteractiveListReplyContent.id, "listItemId", "csharp"); + +@@clientName(ResourceNotificationsHealthResourcesAnnotatedEventData.resourceInfo, + "ResourceDetails", + "csharp" +); +@@clientName(ResourceNotificationsHealthResourcesAnnotatedEventData.operationalInfo, + "OperationalDetails", + "csharp" +); + +@@clientName(ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.resourceInfo, + "ResourceDetails", + "csharp" +); +@@clientName(ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.operationalInfo, + "OperationalDetails", + "csharp" +); + +@@clientName(ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.resourceInfo, + "ResourceDetails", + "csharp" +); +@@clientName(ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.operationalInfo, + "OperationalDetails", + "csharp" +); +@@clientName(ResourceNotificationsResourceManagementDeletedEventData.resourceInfo, + "ResourceDetails", + "csharp" +); + +@@clientName(ResourceNotificationsResourceManagementDeletedEventData.operationalInfo, + "OperationalDetails", + "csharp" +); + +@@clientName(AcsMessageDeliveryStatusUpdatedEventData.receivedTimeStamp, + "receivedTimestamp", + "csharp" +); + +@@clientName(AcsMessageEventData.receivedTimeStamp, + "receivedTimestamp", + "csharp" +); + +@@clientName(AcsMessageReceivedEventData.receivedTimeStamp, + "receivedTimestamp", + "csharp" +); + +@@clientName(AcsRecordingFileStatusUpdatedEventData.recordingChannelType, + "recordingChannelKind", + "csharp" +); + +@@clientName(AcsRouterWorkerSelector.state, "SelectorState", "csharp"); +@@clientName(AcsRouterWorkerSelector.ttlSeconds, "TimeToLive", "csharp"); +@@clientName(AcsRouterWorkerSelector.value, "labelValue", "csharp"); diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideGo.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideGo.tsp new file mode 100644 index 000000000000..3f1332b43f72 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideGo.tsp @@ -0,0 +1,592 @@ +import "./Microsoft.Communication/AzureCommunicationServices.tsp"; +import "./Microsoft.EventHub/EventHub.tsp"; +import "./Microsoft.HealthcareApis/HealthcareApis.tsp"; +import "./Microsoft.Devices/IotHub.tsp"; +import "./Microsoft.ResourceNotifications/ResourceNotifications.tsp"; +import "./Microsoft.Storage/Storage.tsp"; +import "./Microsoft.DataBox/DataBox.tsp"; +import "./Microsoft.EventGrid/EventGrid.tsp"; +import "./Microsoft.Media/MediaServices.tsp"; +import "./Microsoft.AVS/AVS.tsp"; + +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.EventGrid.SystemEvents; + +// [BEGIN] misc renames + +@@clientName(MediaLiveEventChannelArchiveHeartbeatEventData.channelLatencyMs, + "ChannelLatencyMS", + "go" +); + +@@clientName(AcsRecordingFileStatusUpdatedEventData.recordingDurationMs, + "RecordingDurationMS", + "go" +); + +@@clientName(EventHubCaptureFileCreatedEventData.fileUrl, "FileURL", "go"); + +@@clientName(StorageTaskAssignmentCompletedEventData.completedDateTime, + "CompletedOn", + "go" +); +@@clientName(StorageTaskAssignmentCompletedEventData.summaryReportBlobUrl, + "SummaryReportBlobURI", + "go" +); + +@@clientName(StorageTaskAssignmentQueuedEventData.queuedDateTime, + "QueuedOn", + "go" +); + +// [END] misc renames + +// [BEGIN] ResourceNotifications Info -> Details renames + +@@clientName(ResourceNotificationsHealthResourcesAnnotatedEventData.resourceInfo, + "ResourceDetails", + "go" +); +@@clientName(ResourceNotificationsHealthResourcesAnnotatedEventData.operationalInfo, + "OperationalDetails", + "go" +); + +@@clientName(ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.resourceInfo, + "ResourceDetails", + "go" +); +@@clientName(ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.operationalInfo, + "OperationalDetails", + "go" +); + +@@clientName(ResourceNotificationsResourceDeletedEventData.resourceInfo, + "ResourceDetails", + "go" +); +@@clientName(ResourceNotificationsResourceDeletedEventData.operationalInfo, + "OperationalDetails", + "go" +); + +@@clientName(ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.resourceInfo, + "ResourceDetails", + "go" +); +@@clientName(ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.operationalInfo, + "OperationalDetails", + "go" +); +@@clientName(ResourceNotificationsResourceManagementDeletedEventData.resourceInfo, + "ResourceDetails", + "go" +); + +@@clientName(ResourceNotificationsResourceManagementDeletedEventData.operationalInfo, + "OperationalDetails", + "go" +); + +@@clientName(ResourceNotificationsResourceUpdatedEventData.resourceInfo, + "ResourceDetails", + "go" +); +@@clientName(ResourceNotificationsResourceUpdatedEventData.operationalInfo, + "OperationalDetails", + "go" +); + +// [END] ResourceNotifications Info -> Details renames + +// [BEGIN] AVS fixes. + +@@clientName(AvsClusterCreatedEventData, "AVSClusterCreatedEventData", "go"); +@@clientName(AvsClusterDeletedEventData, "AVSClusterDeletedEventData", "go"); +@@clientName(AvsClusterEventData, "AVSClusterEventData", "go"); +@@clientName(AvsClusterFailedEventData, "AVSClusterFailedEventData", "go"); +@@clientName(AvsClusterUpdatedEventData, "AVSClusterUpdatedEventData", "go"); +@@clientName(AvsClusterUpdatingEventData, "AVSClusterUpdatingEventData", "go"); +@@clientName(AvsPrivateCloudEventData, "AVSPrivateCloudEventData", "go"); +@@clientName(AvsPrivateCloudFailedEventData, + "AVSPrivateCloudFailedEventData", + "go" +); +@@clientName(AvsPrivateCloudUpdatedEventData, + "AVSPrivateCloudUpdatedEventData", + "go" +); +@@clientName(AvsPrivateCloudUpdatingEventData, + "AVSPrivateCloudUpdatingEventData", + "go" +); +@@clientName(AvsScriptExecutionCancelledEventData, + "AVSScriptExecutionCancelledEventData", + "go" +); +@@clientName(AvsScriptExecutionEventData, "AVSScriptExecutionEventData", "go"); +@@clientName(AvsScriptExecutionFailedEventData, + "AVSScriptExecutionFailedEventData", + "go" +); +@@clientName(AvsScriptExecutionFinishedEventData, + "AVSScriptExecutionFinishedEventData", + "go" +); +@@clientName(AvsScriptExecutionStartedEventData, + "AVSScriptExecutionStartedEventData", + "go" +); + +// [END] AVS fixes. + +// [BEGIN] IOT renames + +@@clientName(IotHubDeviceConnectedEventData, + "IOTHubDeviceConnectedEventData", + "go" +); +@@clientName(IotHubDeviceCreatedEventData, + "IOTHubDeviceCreatedEventData", + "go" +); +@@clientName(IotHubDeviceDeletedEventData, + "IOTHubDeviceDeletedEventData", + "go" +); +@@clientName(IotHubDeviceDisconnectedEventData, + "IOTHubDeviceDisconnectedEventData", + "go" +); +@@clientName(IotHubDeviceTelemetryEventData, + "IOTHubDeviceTelemetryEventData", + "go" +); + +// [END] IOT renames + +// [BEGIN] Healthcare renames + +@@clientName(HealthcareFhirResourceCreatedEventData, + "HealthcareFHIRResourceCreatedEventData", + "go" +); +@@clientName(HealthcareFhirResourceDeletedEventData, + "HealthcareFHIRResourceDeletedEventData", + "go" +); +@@clientName(HealthcareFhirResourceUpdatedEventData, + "HealthcareFHIRResourceUpdatedEventData", + "go" +); + +@@clientName(HealthcareFhirResourceCreatedEventData.resourceFhirAccount, + "FHIRServiceHostName", + "go" +); +@@clientName(HealthcareFhirResourceCreatedEventData.resourceFhirId, + "FHIRResourceID", + "go" +); +@@clientName(HealthcareFhirResourceCreatedEventData.resourceVersionId, + "FHIRResourceVersionID", + "go" +); +@@clientName(HealthcareFhirResourceCreatedEventData.resourceType, + "FHIRResourceType", + "go" +); +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceFhirAccount, + "FHIRServiceHostName", + "go" +); +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceFhirId, + "FHIRResourceId", + "go" +); +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceVersionId, + "FHIRResourceVersionID", + "go" +); +@@clientName(HealthcareFhirResourceUpdatedEventData.resourceType, + "FHIRResourceType", + "go" +); +@@clientName(HealthcareFhirResourceDeletedEventData.resourceFhirAccount, + "FHIRServiceHostName", + "go" +); +@@clientName(HealthcareFhirResourceDeletedEventData.resourceFhirId, + "FHIRResourceID", + "go" +); +@@clientName(HealthcareFhirResourceDeletedEventData.resourceVersionId, + "FHIRResourceVersionID", + "go" +); +@@clientName(HealthcareFhirResourceDeletedEventData.resourceType, + "FHIRResourceType", + "go" +); + +// [END] Healthcare renames + +// [BEGIN] ACS renames (and acronym casing) + +@@clientName(AcsChatEventBaseProperties, "ACSChatEventBaseProperties", "go"); +@@clientName(AcsChatEventInThreadBaseProperties, + "ACSChatEventInThreadBaseProperties", + "go" +); +@@clientName(AcsChatMessageDeletedEventData, + "ACSChatMessageDeletedEventData", + "go" +); +@@clientName(AcsChatMessageDeletedInThreadEventData, + "ACSChatMessageDeletedInThreadEventData", + "go" +); +@@clientName(AcsChatMessageEditedEventData, + "ACSChatMessageEditedEventData", + "go" +); +@@clientName(AcsChatMessageEditedInThreadEventData, + "ACSChatMessageEditedInThreadEventData", + "go" +); +@@clientName(AcsChatMessageEventBaseProperties, + "ACSChatMessageEventBaseProperties", + "go" +); +@@clientName(AcsChatMessageEventInThreadBaseProperties, + "ACSChatMessageEventInThreadBaseProperties", + "go" +); +@@clientName(AcsChatMessageReceivedEventData, + "ACSChatMessageReceivedEventData", + "go" +); +@@clientName(AcsChatMessageReceivedEventData, + "ACSChatMessageReceivedEventData", + "go" +); +@@clientName(AcsChatMessageReceivedInThreadEventData, + "ACSChatMessageReceivedInThreadEventData", + "go" +); +@@clientName(AcsChatParticipantAddedToThreadEventData, + "ACSChatParticipantAddedToThreadEventData", + "go" +); +@@clientName(AcsChatParticipantAddedToThreadWithUserEventData, + "ACSChatParticipantAddedToThreadWithUserEventData", + "go" +); +@@clientName(AcsChatParticipantRemovedFromThreadEventData, + "ACSChatParticipantRemovedFromThreadEventData", + "go" +); +@@clientName(AcsChatParticipantRemovedFromThreadWithUserEventData, + "ACSChatParticipantRemovedFromThreadWithUserEventData", + "go" +); +@@clientName(AcsChatThreadCreatedEventData, + "ACSChatThreadCreatedEventData", + "go" +); +@@clientName(AcsChatThreadCreatedWithUserEventData, + "ACSChatThreadCreatedWithUserEventData", + "go" +); +@@clientName(AcsChatThreadDeletedEventData, + "ACSChatThreadDeletedEventData", + "go" +); +@@clientName(AcsChatThreadEventBaseProperties, + "ACSChatThreadEventBaseProperties", + "go" +); +@@clientName(AcsChatThreadEventInThreadBaseProperties, + "ACSChatThreadEventInThreadBaseProperties", + "go" +); +@@clientName(AcsChatThreadParticipantProperties, + "ACSChatThreadParticipantProperties", + "go" +); +@@clientName(AcsChatThreadPropertiesUpdatedEventData, + "ACSChatThreadPropertiesUpdatedEventData", + "go" +); +@@clientName(AcsChatThreadPropertiesUpdatedPerUserEventData, + "ACSChatThreadPropertiesUpdatedPerUserEventData", + "go" +); +@@clientName(AcsChatThreadWithUserDeletedEventData, + "ACSChatThreadWithUserDeletedEventData", + "go" +); +@@clientName(AcsEmailDeliveryReportReceivedEventData, + "ACSEmailDeliveryReportReceivedEventData", + "go" +); +@@clientName(AcsEmailDeliveryReportReceivedEventData.deliveryAttemptTimeStamp, + "DeliveryAttemptTimestamp", + "go" +); + +@@clientName(AcsEmailDeliveryReportStatus, + "ACSEmailDeliveryReportStatus", + "go" +); +@@clientName(AcsEmailDeliveryReportStatusDetails, + "ACSEmailDeliveryReportStatusDetails", + "go" +); + +@@clientName(AcsEmailEngagementTrackingReportReceivedEventData, + "ACSEmailEngagementTrackingReportReceivedEventData", + "go" +); +@@clientName(AcsEmailEngagementTrackingReportReceivedEventData.engagementType, + "Engagement", + "go" +); +@@clientName(AcsEmailEngagementTrackingReportReceivedEventData.userActionTimeStamp, + "UserActionTimestamp", + "go" +); + +@@clientName(AcsIncomingCallCustomContext, + "ACSIncomingCallCustomContext", + "go" +); + +@@clientName(AcsIncomingCallEventData, "ACSIncomingCallEventData", "go"); +@@clientName(AcsIncomingCallEventData.from, + "FromCommunicationIdentifier", + "go" +); +@@clientName(AcsIncomingCallEventData.to, "ToCommunicationIdentifier", "go"); + +@@clientName(AcsInteractiveReplyKind, "ACSInteractiveReplyKind", "go"); +@@clientName(AcsMessageButtonContent, "ACSMessageButtonContent", "go"); + +// we expose a custom error type and use this internally. +@@clientName(AcsMessageChannelEventError, + "internalACSMessageChannelEventError", + "go" +); +@@access(AcsMessageChannelEventError, Access.internal, "go"); + +@@clientName(AcsMessageChannelKind, "ACSMessageChannelKind", "go"); + +@@clientName(AcsMessageContext, "ACSMessageContext", "go"); +@@clientName(AcsMessageContext.id, "MessageID", "go"); + +@@clientName(AcsMessageDeliveryStatus, "ACSMessageDeliveryStatus", "go"); + +@@clientName(AcsMessageDeliveryStatusUpdatedEventData, + "ACSMessageDeliveryStatusUpdatedEventData", + "go" +); +@@clientName(AcsMessageDeliveryStatusUpdatedEventData.channelType, + "ChannelKind", + "go" +); +@@clientName(AcsMessageDeliveryStatusUpdatedEventData.receivedTimeStamp, + "ReceivedTimestamp", + "go" +); + +@@clientName(AcsMessageEventData, "ACSMessageEventData", "go"); +@@clientName(AcsMessageEventData.receivedTimeStamp, "ReceivedTimestamp", "go"); + +@@clientName(AcsMessageInteractiveButtonReplyContent, + "ACSMessageInteractiveButtonReplyContent", + "go" +); +@@clientName(AcsMessageInteractiveButtonReplyContent.id, "ButtonID", "go"); + +@@clientName(AcsMessageInteractiveContent, + "ACSMessageInteractiveContent", + "go" +); +@@clientName(AcsMessageInteractiveContent.type, "ReplyKind", "go"); + +@@clientName(AcsMessageInteractiveListReplyContent.id, "ListItemID", "go"); +@@clientName(AcsMessageInteractiveListReplyContent, + "ACSMessageInteractiveListReplyContent", + "go" +); + +@@clientName(AcsMessageMediaContent, "ACSMessageMediaContent", "go"); +@@clientName(AcsMessageMediaContent.id, "MediaID", "go"); + +@@clientName(AcsMessageReceivedEventData, "ACSMessageReceivedEventData", "go"); +@@clientName(AcsMessageReceivedEventData.channelType, "ChannelKind", "go"); +@@clientName(AcsMessageReceivedEventData.interactive, + "InteractiveContent", + "go" +); +@@clientName(AcsMessageReceivedEventData.media, "MediaContent", "go"); +@@clientName(AcsMessageReceivedEventData.receivedTimeStamp, + "ReceivedTimestamp", + "go" +); + +@@clientName(AcsRecordingChunkInfoProperties, + "ACSRecordingChunkInfoProperties", + "go" +); + +@@clientName(AcsRecordingFileStatusUpdatedEventData, + "ACSRecordingFileStatusUpdatedEventData", + "go" +); + +@@clientName(recordingChannelType, "recordingChannelKind", "go"); + +@@clientName(AcsRecordingFileStatusUpdatedEventData.recordingChannelType, + "recordingChannelKind", + "go" +); + +@@clientName(AcsRecordingStorageInfoProperties, + "ACSRecordingStorageInfoProperties", + "go" +); +@@clientName(AcsRouterChannelConfiguration, + "ACSRouterChannelConfiguration", + "go" +); + +// we expose a custom error type and use this internally. +@@clientName(AcsRouterCommunicationError, + "internalACSRouterCommunicationError", + "go" +); +@@access(AcsRouterCommunicationError, Access.internal, "go"); + +@@clientName(AcsRouterEventData, "ACSRouterEventData", "go"); +@@clientName(AcsRouterJobCancelledEventData, + "ACSRouterJobCancelledEventData", + "go" +); +@@clientName(AcsRouterJobClassificationFailedEventData, + "ACSRouterJobClassificationFailedEventData", + "go" +); +@@clientName(AcsRouterJobClassifiedEventData, + "ACSRouterJobClassifiedEventData", + "go" +); +@@clientName(AcsRouterJobClosedEventData, "ACSRouterJobClosedEventData", "go"); +@@clientName(AcsRouterJobCompletedEventData, + "ACSRouterJobCompletedEventData", + "go" +); +@@clientName(AcsRouterJobDeletedEventData, + "ACSRouterJobDeletedEventData", + "go" +); +@@clientName(AcsRouterJobEventData, "ACSRouterJobEventData", "go"); +@@clientName(AcsRouterJobExceptionTriggeredEventData, + "ACSRouterJobExceptionTriggeredEventData", + "go" +); +@@clientName(AcsRouterJobQueuedEventData, "ACSRouterJobQueuedEventData", "go"); +@@clientName(AcsRouterJobReceivedEventData, + "ACSRouterJobReceivedEventData", + "go" +); +@@clientName(AcsRouterJobSchedulingFailedEventData, + "ACSRouterJobSchedulingFailedEventData", + "go" +); +@@clientName(AcsRouterJobStatus, "ACSRouterJobStatus", "go"); +@@clientName(AcsRouterJobUnassignedEventData, + "ACSRouterJobUnassignedEventData", + "go" +); +@@clientName(AcsRouterJobWaitingForActivationEventData, + "ACSRouterJobWaitingForActivationEventData", + "go" +); +@@clientName(AcsRouterJobWorkerSelectorsExpiredEventData, + "ACSRouterJobWorkerSelectorsExpiredEventData", + "go" +); +@@clientName(AcsRouterLabelOperator, "ACSRouterLabelOperator", "go"); +@@clientName(AcsRouterQueueDetails, "ACSRouterQueueDetails", "go"); +@@clientName(AcsRouterUpdatedWorkerProperty, + "ACSRouterUpdatedWorkerProperty", + "go" +); +@@clientName(AcsRouterWorkerDeletedEventData, + "ACSRouterWorkerDeletedEventData", + "go" +); +@@clientName(AcsRouterWorkerDeregisteredEventData, + "ACSRouterWorkerDeregisteredEventData", + "go" +); +@@clientName(AcsRouterWorkerEventData, "ACSRouterWorkerEventData", "go"); +@@clientName(AcsRouterWorkerOfferAcceptedEventData, + "ACSRouterWorkerOfferAcceptedEventData", + "go" +); +@@clientName(AcsRouterWorkerOfferDeclinedEventData, + "ACSRouterWorkerOfferDeclinedEventData", + "go" +); +@@clientName(AcsRouterWorkerOfferExpiredEventData, + "ACSRouterWorkerOfferExpiredEventData", + "go" +); +@@clientName(AcsRouterWorkerOfferIssuedEventData, + "ACSRouterWorkerOfferIssuedEventData", + "go" +); +@@clientName(AcsRouterWorkerOfferRevokedEventData, + "ACSRouterWorkerOfferRevokedEventData", + "go" +); +@@clientName(AcsRouterWorkerRegisteredEventData, + "ACSRouterWorkerRegisteredEventData", + "go" +); +@@clientName(AcsRouterWorkerSelector, "ACSRouterWorkerSelector", "go"); +@@clientName(AcsRouterWorkerSelector.labelOperator, "Operator", "go"); +@@clientName(AcsRouterWorkerSelector.state, "SelectorState", "go"); +@@clientName(AcsRouterWorkerSelector.ttlSeconds, "TimeToLive", "go"); +@@clientName(AcsRouterWorkerSelector.value, "labelValue", "go"); + +@@clientName(AcsRouterWorkerSelectorState, + "ACSRouterWorkerSelectorState", + "go" +); +@@clientName(AcsRouterWorkerUpdatedEventData, + "ACSRouterWorkerUpdatedEventData", + "go" +); +@@clientName(AcsSmsDeliveryAttemptProperties, + "ACSSmsDeliveryAttemptProperties", + "go" +); +@@clientName(AcsSmsDeliveryReportReceivedEventData, + "ACSSmsDeliveryReportReceivedEventData", + "go" +); +@@clientName(AcsSmsEventBaseProperties, "ACSSmsEventBaseProperties", "go"); +@@clientName(AcsSmsReceivedEventData, "ACSSmsReceivedEventData", "go"); +@@clientName(AcsUserDisconnectedEventData, + "ACSUserDisconnectedEventData", + "go" +); +@@clientName(AcsUserEngagement, "ACSUserEngagement", "go"); + +// [END] ACS renames (and acronym casing) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideJs.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideJs.tsp new file mode 100644 index 000000000000..aae89181bef8 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/propertyNameOverrideJs.tsp @@ -0,0 +1,167 @@ +import "./Microsoft.Communication/AzureCommunicationServices.tsp"; +import "./Microsoft.EventHub/EventHub.tsp"; +import "./Microsoft.HealthcareApis/HealthcareApis.tsp"; +import "./Microsoft.Devices/IotHub.tsp"; +import "./Microsoft.ResourceNotifications/ResourceNotifications.tsp"; +import "./Microsoft.Storage/Storage.tsp"; +import "./Microsoft.DataBox/DataBox.tsp"; +import "./Microsoft.EventGrid/EventGrid.tsp"; + +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.EventGrid.SystemEvents; + +@@clientName(AcsRouterWorkerSelector.value, "labelValue", "javascript"); +@@clientName(AcsMessageMediaContent.id, "mediaId", "javascript"); +@@clientName(AcsMessageContext.id, "messageId", "javascript"); +@@clientName(AcsMessageInteractiveContent.type, "replyKind", "javascript"); +@@clientName(AcsMessageInteractiveButtonReplyContent.id, + "buttonId", + "javascript" +); +@@clientName(AcsMessageInteractiveListReplyContent.id, + "listItemId", + "javascript" +); +@@clientName(AcsMessageDeliveryStatusUpdatedEventData.channelType, + "channelKind", + "javascript" +); +@@clientName(AcsMessageReceivedEventData.channelType, + "channelKind", + "javascript" +); +@@clientName(AcsMessageReceivedEventData.media, "mediaContent", "javascript"); +@@clientName(AcsMessageReceivedEventData.interactive, + "interactiveContent", + "javascript" +); +@@clientName(AcsIncomingCallEventData.from, + "fromCommunicationIdentifier", + "javascript" +); +@@clientName(AcsIncomingCallEventData.to, + "toCommunicationIdentifier", + "javascript" +); +@@clientName(AcsEmailEngagementTrackingReportReceivedEventData.userActionTimeStamp, + "userActionTimestamp", + "javascript" +); +@@clientName(AcsEmailEngagementTrackingReportReceivedEventData.engagementType, + "engagement", + "javascript" +); +@@clientName(StorageTaskAssignmentQueuedEventData.queuedDateTime, + "queuedOn", + "javascript" +); +@@clientName(StorageTaskAssignmentCompletedEventData.completedDateTime, + "completedOn", + "javascript" +); +@@clientName(StorageTaskAssignmentCompletedEventData.summaryReportBlobUrl, + "summaryReportBlobUri", + "javascript" +); +@@clientName(AcsEmailDeliveryReportReceivedEventData.deliveryAttemptTimeStamp, + "deliveryAttemptTimestamp", + "javascript" +); +@@clientName(ResourceNotificationsResourceUpdatedEventData.resourceInfo, + "resourceDetails", + "javascript" +); +@@clientName(ResourceNotificationsResourceUpdatedEventData.operationalInfo, + "operationalDetails", + "javascript" +); +@@clientName(ResourceNotificationsResourceDeletedEventData.resourceInfo, + "resourceDetails", + "javascript" +); +@@clientName(ResourceNotificationsResourceDeletedEventData.operationalInfo, + "operationalDetails", + "javascript" +); +@@clientName(AcsChatEventBaseProperties, "AcsChatEventBase", "javascript"); +@@clientName(AcsChatMessageEventBaseProperties, + "AcsChatMessageEventBase", + "javascript" +); +@@clientName(AcsChatThreadEventBaseProperties, + "AcsChatThreadEventBase", + "javascript" +); +@@clientName(AcsChatEventInThreadBaseProperties, + "AcsChatEventInThreadBase", + "javascript" +); +@@clientName(AcsRecordingStorageInfoProperties, + "AcsRecordingStorageInfo", + "javascript" +); +@@clientName(AcsRecordingChunkInfoProperties, + "AcsRecordingChunkInfo", + "javascript" +); +@@clientName(AcsChatThreadParticipantProperties, + "AcsChatThreadParticipant", + "javascript" +); +@@clientName(AcsSmsDeliveryAttemptProperties, + "AcsSmsDeliveryAttempt", + "javascript" +); +@@clientName(AcsSmsEventBaseProperties, "AcsSmsEventBase", "javascript"); +@@clientName(MapsGeofenceEventProperties, "MapsGeofenceEvent", "javascript"); +@@clientName(DeviceConnectionStateEventProperties, + "DeviceConnectionStateEvent", + "javascript" +); +@@clientName(DeviceLifeCycleEventProperties, + "DeviceLifeCycleEvent", + "javascript" +); +@@clientName(DeviceTelemetryEventProperties, + "DeviceTelemetryEvent", + "javascript" +); +@@clientName(DeviceTwinProperties, "DeviceTwin", "javascript"); +@@clientName(AcsChatThreadEventInThreadBaseProperties, + "AcsChatThreadEventInThreadBase", + "javascript" +); +@@clientName(AcsChatMessageEventInThreadBaseProperties, + "AcsChatMessageEventInThreadBase", + "javascript" +); +@@clientName(EventGridMQTTClientCreatedOrUpdatedEventData, + "EventGridMqttClientCreatedOrUpdatedEventData", + "javascript" +); +@@clientName(EventGridMQTTClientDeletedEventData, + "EventGridMqttClientDeletedEventData", + "javascript" +); +@@clientName(EventGridMQTTClientSessionConnectedEventData, + "EventGridMqttClientSessionConnectedEventData", + "javascript" +); +@@clientName(EventGridMQTTClientSessionDisconnectedEventData, + "EventGridMqttClientSessionDisconnectedEventData", + "javascript" +); +@@clientName(EventGridMQTTClientEventData, + "EventGridMqttClientEventData", + "javascript" +); +@@clientName(EventGridMQTTClientState, + "EventGridMqttClientState", + "javascript" +); +@@clientName(EventGridMQTTClientDisconnectionReason, + "EventGridMqttClientDisconnectionReason", + "javascript" +); diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/SystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/SystemEvents.json index 98ffc0458d1e..292cc198dde2 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/SystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/SystemEvents.json @@ -38,7 +38,10 @@ "type": "string", "description": "The chat thread id" } - } + }, + "required": [ + "recipientCommunicationIdentifier" + ] }, "AcsChatEventInThreadBaseProperties": { "type": "object", @@ -64,6 +67,9 @@ "description": "The time at which the message was deleted" } }, + "required": [ + "deleteTime" + ], "allOf": [ { "$ref": "#/definitions/AcsChatMessageEventBaseProperties" @@ -80,6 +86,9 @@ "description": "The time at which the message was deleted" } }, + "required": [ + "deleteTime" + ], "allOf": [ { "$ref": "#/definitions/AcsChatMessageEventInThreadBaseProperties" @@ -107,6 +116,10 @@ "description": "The time at which the message was edited" } }, + "required": [ + "metadata", + "editTime" + ], "allOf": [ { "$ref": "#/definitions/AcsChatMessageEventBaseProperties" @@ -134,6 +147,10 @@ "description": "The time at which the message was edited" } }, + "required": [ + "metadata", + "editTime" + ], "allOf": [ { "$ref": "#/definitions/AcsChatMessageEventInThreadBaseProperties" @@ -171,6 +188,10 @@ "description": "The version of the message" } }, + "required": [ + "senderCommunicationIdentifier", + "composeTime" + ], "allOf": [ { "$ref": "#/definitions/AcsChatEventBaseProperties" @@ -208,6 +229,10 @@ "description": "The version of the message" } }, + "required": [ + "senderCommunicationIdentifier", + "composeTime" + ], "allOf": [ { "$ref": "#/definitions/AcsChatEventInThreadBaseProperties" @@ -230,6 +255,9 @@ } } }, + "required": [ + "metadata" + ], "allOf": [ { "$ref": "#/definitions/AcsChatMessageEventBaseProperties" @@ -252,6 +280,9 @@ } } }, + "required": [ + "metadata" + ], "allOf": [ { "$ref": "#/definitions/AcsChatMessageEventInThreadBaseProperties" @@ -281,6 +312,11 @@ "description": "The version of the thread" } }, + "required": [ + "time", + "addedByCommunicationIdentifier", + "participantAdded" + ], "allOf": [ { "$ref": "#/definitions/AcsChatEventInThreadBaseProperties" @@ -305,6 +341,11 @@ "description": "The details of the user who was added" } }, + "required": [ + "time", + "addedByCommunicationIdentifier", + "participantAdded" + ], "allOf": [ { "$ref": "#/definitions/AcsChatThreadEventBaseProperties" @@ -334,6 +375,11 @@ "description": "The version of the thread" } }, + "required": [ + "time", + "removedByCommunicationIdentifier", + "participantRemoved" + ], "allOf": [ { "$ref": "#/definitions/AcsChatEventInThreadBaseProperties" @@ -358,6 +404,11 @@ "description": "The details of the user who was removed" } }, + "required": [ + "time", + "removedByCommunicationIdentifier", + "participantRemoved" + ], "allOf": [ { "$ref": "#/definitions/AcsChatThreadEventBaseProperties" @@ -393,6 +444,12 @@ "x-ms-identifiers": [] } }, + "required": [ + "createdByCommunicationIdentifier", + "properties", + "metadata", + "participants" + ], "allOf": [ { "$ref": "#/definitions/AcsChatThreadEventInThreadBaseProperties" @@ -428,6 +485,12 @@ "x-ms-identifiers": [] } }, + "required": [ + "createdByCommunicationIdentifier", + "properties", + "metadata", + "participants" + ], "allOf": [ { "$ref": "#/definitions/AcsChatThreadEventBaseProperties" @@ -448,6 +511,10 @@ "description": "The deletion time of the thread" } }, + "required": [ + "deletedByCommunicationIdentifier", + "deleteTime" + ], "allOf": [ { "$ref": "#/definitions/AcsChatThreadEventInThreadBaseProperties" @@ -469,6 +536,9 @@ "description": "The version of the thread" } }, + "required": [ + "createTime" + ], "allOf": [ { "$ref": "#/definitions/AcsChatEventBaseProperties" @@ -490,6 +560,9 @@ "description": "The version of the thread" } }, + "required": [ + "createTime" + ], "allOf": [ { "$ref": "#/definitions/AcsChatEventInThreadBaseProperties" @@ -515,7 +588,11 @@ "type": "string" } } - } + }, + "required": [ + "participantCommunicationIdentifier", + "metadata" + ] }, "AcsChatThreadPropertiesUpdatedEventData": { "type": "object", @@ -543,6 +620,12 @@ } } }, + "required": [ + "editedByCommunicationIdentifier", + "editTime", + "properties", + "metadata" + ], "allOf": [ { "$ref": "#/definitions/AcsChatThreadEventInThreadBaseProperties" @@ -575,6 +658,12 @@ "additionalProperties": {} } }, + "required": [ + "editedByCommunicationIdentifier", + "editTime", + "metadata", + "properties" + ], "allOf": [ { "$ref": "#/definitions/AcsChatThreadEventBaseProperties" @@ -595,6 +684,10 @@ "description": "The deletion time of the thread" } }, + "required": [ + "deletedByCommunicationIdentifier", + "deleteTime" + ], "allOf": [ { "$ref": "#/definitions/AcsChatThreadEventBaseProperties" @@ -631,7 +724,12 @@ "description": "The time at which the email delivery report received timestamp", "x-ms-client-name": "deliveryAttemptTimestamp" } - } + }, + "required": [ + "status", + "deliveryStatusDetails", + "deliveryAttemptTimeStamp" + ] }, "AcsEmailDeliveryReportStatus": { "type": "string", @@ -726,7 +824,11 @@ "description": "The type of engagement user have with email", "x-ms-client-name": "engagement" } - } + }, + "required": [ + "userActionTimeStamp", + "engagementType" + ] }, "AcsIncomingCallCustomContext": { "type": "object", @@ -746,7 +848,11 @@ "type": "string" } } - } + }, + "required": [ + "sipHeaders", + "voipHeaders" + ] }, "AcsIncomingCallEventData": { "type": "object", @@ -782,8 +888,333 @@ "type": "string", "description": "CorrelationId (CallId)." } + }, + "required": [ + "to", + "from", + "customContext" + ] + }, + "AcsInteractiveReplyKind": { + "type": "string", + "description": "Interactive reply kind", + "enum": [ + "buttonReply", + "listReply", + "unknown" + ], + "x-ms-enum": { + "name": "AcsInteractiveReplyKind", + "modelAsString": true, + "values": [ + { + "name": "buttonReply", + "value": "buttonReply", + "description": "Messaged interactive reply type is ButtonReply" + }, + { + "name": "listReply", + "value": "listReply", + "description": "Messaged interactive reply type is ListReply" + }, + { + "name": "unknown", + "value": "unknown", + "description": "Messaged interactive reply type is Unknown" + } + ] + } + }, + "AcsMessageButtonContent": { + "type": "object", + "description": "Message Button Content", + "properties": { + "text": { + "type": "string", + "description": "The Text of the button" + }, + "payload": { + "type": "string", + "description": "The Payload of the button which was clicked by the user, setup by the business" + } + } + }, + "AcsMessageChannelEventError": { + "type": "object", + "description": "Message Channel Event Error", + "properties": { + "channelCode": { + "type": "string", + "description": "The channel error code" + }, + "channelMessage": { + "type": "string", + "description": "The channel error message" + } } }, + "AcsMessageChannelKind": { + "type": "string", + "description": "Message channel kind", + "enum": [ + "whatsapp" + ], + "x-ms-enum": { + "name": "AcsMessageChannelKind", + "modelAsString": true, + "values": [ + { + "name": "whatsapp", + "value": "whatsapp", + "description": "Updated message channel type is WhatsApp" + } + ] + } + }, + "AcsMessageContext": { + "type": "object", + "description": "Message Context", + "properties": { + "from": { + "type": "string", + "description": "The WhatsApp ID for the customer who replied to an inbound message." + }, + "id": { + "type": "string", + "description": "The message ID for the sent message for an inbound reply", + "x-ms-client-name": "messageId" + } + } + }, + "AcsMessageDeliveryStatus": { + "type": "string", + "description": "Message delivery status", + "enum": [ + "read", + "delivered", + "failed", + "sent", + "warning", + "unknown" + ], + "x-ms-enum": { + "name": "AcsMessageDeliveryStatus", + "modelAsString": true, + "values": [ + { + "name": "read", + "value": "read", + "description": "Read" + }, + { + "name": "delivered", + "value": "delivered", + "description": "Delivered" + }, + { + "name": "failed", + "value": "failed", + "description": "Failed" + }, + { + "name": "sent", + "value": "sent", + "description": "Sent" + }, + { + "name": "warning", + "value": "warning", + "description": "Warning" + }, + { + "name": "unknown", + "value": "unknown", + "description": "Unknown" + } + ] + } + }, + "AcsMessageDeliveryStatusUpdatedEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated event.", + "properties": { + "messageId": { + "type": "string", + "description": "The message id" + }, + "status": { + "$ref": "#/definitions/AcsMessageDeliveryStatus", + "description": "The updated message status" + }, + "channelType": { + "$ref": "#/definitions/AcsMessageChannelKind", + "description": "The updated message channel type", + "x-ms-client-name": "channelKind" + } + }, + "required": [ + "status", + "channelType" + ], + "allOf": [ + { + "$ref": "#/definitions/AcsMessageEventData" + } + ] + }, + "AcsMessageEventData": { + "type": "object", + "description": "Schema of common properties of all chat thread events", + "properties": { + "from": { + "type": "string", + "description": "The message sender" + }, + "to": { + "type": "string", + "description": "The message recipient" + }, + "receivedTimeStamp": { + "type": "string", + "format": "date-time", + "description": "The time message was received" + }, + "error": { + "$ref": "#/definitions/AcsMessageChannelEventError", + "description": "The channel event error" + } + }, + "required": [ + "receivedTimeStamp", + "error" + ] + }, + "AcsMessageInteractiveButtonReplyContent": { + "type": "object", + "description": "Message Interactive button reply content for a user to business message", + "properties": { + "id": { + "type": "string", + "description": "The ID of the button", + "x-ms-client-name": "buttonId" + }, + "title": { + "type": "string", + "description": "The title of the button" + } + } + }, + "AcsMessageInteractiveContent": { + "type": "object", + "description": "Message Interactive Content", + "properties": { + "type": { + "$ref": "#/definitions/AcsInteractiveReplyKind", + "description": "The Message interactive reply type", + "x-ms-client-name": "replyKind" + }, + "buttonReply": { + "$ref": "#/definitions/AcsMessageInteractiveButtonReplyContent", + "description": "The Message Sent when a customer clicks a button" + }, + "listReply": { + "$ref": "#/definitions/AcsMessageInteractiveListReplyContent", + "description": "The Message Sent when a customer selects an item from a list" + } + }, + "required": [ + "type", + "buttonReply", + "listReply" + ] + }, + "AcsMessageInteractiveListReplyContent": { + "type": "object", + "description": "Message Interactive list reply content for a user to business message", + "properties": { + "id": { + "type": "string", + "description": "The ID of the selected list item", + "x-ms-client-name": "listItemId" + }, + "title": { + "type": "string", + "description": "The title of the selected list item" + }, + "description": { + "type": "string", + "description": "The description of the selected row" + } + } + }, + "AcsMessageMediaContent": { + "type": "object", + "description": "Message Media Content", + "properties": { + "mimeType": { + "type": "string", + "description": "The MIME type of the file this media represents" + }, + "id": { + "type": "string", + "description": "The media identifier", + "x-ms-client-name": "mediaId" + }, + "fileName": { + "type": "string", + "description": "The filename of the underlying media file as specified when uploaded" + }, + "caption": { + "type": "string", + "description": "The caption for the media object, if supported and provided" + } + } + }, + "AcsMessageReceivedEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageReceived event.", + "properties": { + "content": { + "type": "string", + "description": "The message content" + }, + "channelType": { + "$ref": "#/definitions/AcsMessageChannelKind", + "description": "The message channel type", + "x-ms-client-name": "channelKind" + }, + "media": { + "$ref": "#/definitions/AcsMessageMediaContent", + "description": "The received message media content", + "x-ms-client-name": "mediaContent" + }, + "context": { + "$ref": "#/definitions/AcsMessageContext", + "description": "The received message context" + }, + "button": { + "$ref": "#/definitions/AcsMessageButtonContent", + "description": "The received message button content" + }, + "interactive": { + "$ref": "#/definitions/AcsMessageInteractiveContent", + "description": "The received message interactive content", + "x-ms-client-name": "interactiveContent" + } + }, + "required": [ + "channelType", + "media", + "context", + "button", + "interactive" + ], + "allOf": [ + { + "$ref": "#/definitions/AcsMessageEventData" + } + ] + }, "AcsRecordingChunkInfoProperties": { "type": "object", "description": "Schema for all properties of Recording Chunk Information.", @@ -849,7 +1280,14 @@ "type": "string", "description": "The reason for ending recording session" } - } + }, + "required": [ + "recordingStorageInfo", + "recordingStartTime", + "recordingContentType", + "recordingChannelType", + "recordingFormatType" + ] }, "AcsRecordingStorageInfoProperties": { "type": "object", @@ -863,7 +1301,10 @@ }, "x-ms-identifiers": [] } - } + }, + "required": [ + "recordingChunks" + ] }, "AcsRouterChannelConfiguration": { "type": "object", @@ -913,7 +1354,11 @@ }, "x-ms-identifiers": [] } - } + }, + "required": [ + "innererror", + "details" + ] }, "AcsRouterEventData": { "type": "object", @@ -969,6 +1414,9 @@ "x-ms-identifiers": [] } }, + "required": [ + "errors" + ], "allOf": [ { "$ref": "#/definitions/AcsRouterJobEventData" @@ -1001,6 +1449,10 @@ "x-ms-identifiers": [] } }, + "required": [ + "queueDetails", + "attachedWorkerSelectors" + ], "allOf": [ { "$ref": "#/definitions/AcsRouterJobEventData" @@ -1081,6 +1533,10 @@ } } }, + "required": [ + "labels", + "tags" + ], "allOf": [ { "$ref": "#/definitions/AcsRouterEventData" @@ -1132,6 +1588,10 @@ "x-ms-identifiers": [] } }, + "required": [ + "attachedWorkerSelectors", + "requestedWorkerSelectors" + ], "allOf": [ { "$ref": "#/definitions/AcsRouterJobEventData" @@ -1174,6 +1634,9 @@ } }, "required": [ + "jobStatus", + "requestedWorkerSelectors", + "scheduledOn", "unavailableForMatching" ], "allOf": [ @@ -1217,6 +1680,11 @@ "description": "Router Job Scheduling Failed Reason" } }, + "required": [ + "expiredAttachedWorkerSelectors", + "expiredRequestedWorkerSelectors", + "scheduledOn" + ], "allOf": [ { "$ref": "#/definitions/AcsRouterJobEventData" @@ -1362,6 +1830,9 @@ } }, "required": [ + "expiredAttachedWorkerSelectors", + "expiredRequestedWorkerSelectors", + "scheduledOn", "unavailableForMatching" ], "allOf": [ @@ -1391,6 +1862,10 @@ "x-ms-identifiers": [] } }, + "required": [ + "expiredRequestedWorkerSelectors", + "expiredAttachedWorkerSelectors" + ], "allOf": [ { "$ref": "#/definitions/AcsRouterJobEventData" @@ -1463,7 +1938,58 @@ "additionalProperties": { "type": "string" } - } + } + }, + "required": [ + "labels" + ] + }, + "AcsRouterUpdatedWorkerProperty": { + "type": "string", + "description": "Worker properties that can be updated", + "enum": [ + "AvailableForOffers", + "TotalCapacity", + "QueueAssignments", + "Labels", + "Tags", + "ChannelConfigurations" + ], + "x-ms-enum": { + "name": "AcsRouterUpdatedWorkerProperty", + "modelAsString": true, + "values": [ + { + "name": "AvailableForOffers", + "value": "AvailableForOffers", + "description": "AvailableForOffers" + }, + { + "name": "TotalCapacity", + "value": "TotalCapacity", + "description": "TotalCapacity" + }, + { + "name": "QueueAssignments", + "value": "QueueAssignments", + "description": "QueueAssignments" + }, + { + "name": "Labels", + "value": "Labels", + "description": "Labels" + }, + { + "name": "Tags", + "value": "Tags", + "description": "Tags" + }, + { + "name": "ChannelConfigurations", + "value": "ChannelConfigurations", + "description": "ChannelConfigurations" + } + ] } }, "AcsRouterWorkerDeletedEventData": { @@ -1550,6 +2076,12 @@ } } }, + "required": [ + "workerLabels", + "workerTags", + "jobLabels", + "jobTags" + ], "allOf": [ { "$ref": "#/definitions/AcsRouterWorkerEventData" @@ -1650,6 +2182,14 @@ } } }, + "required": [ + "workerLabels", + "offeredOn", + "expiresOn", + "workerTags", + "jobLabels", + "jobTags" + ], "allOf": [ { "$ref": "#/definitions/AcsRouterWorkerEventData" @@ -1717,7 +2257,13 @@ "type": "string" } } - } + }, + "required": [ + "queueAssignments", + "channelConfigurations", + "labels", + "tags" + ] }, "AcsRouterWorkerSelector": { "type": "object", @@ -1727,19 +2273,20 @@ "type": "string", "description": "Router Job Worker Selector Key" }, - "operator": { + "labelOperator": { "$ref": "#/definitions/AcsRouterLabelOperator", "description": "Router Job Worker Selector Label Operator" }, - "labelValue": { - "description": "Router Job Worker Selector Value" + "value": { + "description": "Router Job Worker Selector Value", + "x-ms-client-name": "labelValue" }, "ttlSeconds": { - "type": "string", - "format": "duration", + "type": "number", + "format": "double", "description": "Router Job Worker Selector Time to Live in Seconds" }, - "selectorState": { + "state": { "$ref": "#/definitions/AcsRouterWorkerSelectorState", "description": "Router Job Worker Selector State" }, @@ -1748,7 +2295,14 @@ "format": "date-time", "description": "Router Job Worker Selector Expiration Time" } - } + }, + "required": [ + "labelOperator", + "value", + "ttlSeconds", + "state", + "expirationTime" + ] }, "AcsRouterWorkerSelectorState": { "type": "string", @@ -1774,6 +2328,64 @@ ] } }, + "AcsRouterWorkerUpdatedEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterWorkerUpdated event.", + "properties": { + "workerId": { + "type": "string", + "description": "Router Worker Updated Worker Id" + }, + "queueAssignments": { + "type": "array", + "description": "Router Worker Updated Queue Info", + "items": { + "$ref": "#/definitions/AcsRouterQueueDetails" + } + }, + "channelConfigurations": { + "type": "array", + "description": "Router Worker Updated Channel Configuration", + "items": { + "$ref": "#/definitions/AcsRouterChannelConfiguration" + }, + "x-ms-identifiers": [] + }, + "totalCapacity": { + "type": "integer", + "format": "int32", + "description": "Router Worker Updated Total Capacity" + }, + "labels": { + "type": "object", + "description": "Router Worker Updated Labels", + "additionalProperties": { + "type": "string" + } + }, + "tags": { + "type": "object", + "description": "Router Worker Updated Tags", + "additionalProperties": { + "type": "string" + } + }, + "updatedWorkerProperties": { + "type": "array", + "description": "Router Worker Properties Updated", + "items": { + "$ref": "#/definitions/AcsRouterUpdatedWorkerProperty" + } + } + }, + "required": [ + "queueAssignments", + "channelConfigurations", + "labels", + "tags", + "updatedWorkerProperties" + ] + }, "AcsSmsDeliveryAttemptProperties": { "type": "object", "description": "Schema for details of a delivery attempt", @@ -1793,7 +2405,10 @@ "format": "int32", "description": "Number of segments whose delivery failed" } - } + }, + "required": [ + "timestamp" + ] }, "AcsSmsDeliveryReportReceivedEventData": { "type": "object", @@ -1825,6 +2440,10 @@ "description": "Customer Content" } }, + "required": [ + "deliveryAttempts", + "receivedTimestamp" + ], "allOf": [ { "$ref": "#/definitions/AcsSmsEventBaseProperties" @@ -1863,6 +2482,9 @@ "description": "The time at which the SMS was received" } }, + "required": [ + "receivedTimestamp" + ], "allOf": [ { "$ref": "#/definitions/AcsSmsEventBaseProperties" @@ -1877,7 +2499,10 @@ "$ref": "#/definitions/CommunicationIdentifierModel", "description": "The communication identifier of the user who was disconnected" } - } + }, + "required": [ + "userCommunicationIdentifier" + ] }, "AcsUserEngagement": { "type": "string", @@ -1903,6 +2528,62 @@ ] } }, + "ApiCenterApiDefinitionAddedEventData": { + "type": "object", + "description": "Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionAdded event.", + "properties": { + "title": { + "type": "string", + "description": "API definition title." + }, + "description": { + "type": "string", + "description": "API definition description." + }, + "specification": { + "$ref": "#/definitions/ApiCenterApiSpecification", + "description": "API definition specification." + } + }, + "required": [ + "specification" + ] + }, + "ApiCenterApiDefinitionUpdatedEventData": { + "type": "object", + "description": "Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionUpdated event.", + "properties": { + "title": { + "type": "string", + "description": "API definition title." + }, + "description": { + "type": "string", + "description": "API definition description." + }, + "specification": { + "$ref": "#/definitions/ApiCenterApiSpecification", + "description": "API definition specification." + } + }, + "required": [ + "specification" + ] + }, + "ApiCenterApiSpecification": { + "type": "object", + "description": "API specification details.", + "properties": { + "name": { + "type": "string", + "description": "Specification name." + }, + "version": { + "type": "string", + "description": "Specification version." + } + } + }, "ApiManagementApiCreatedEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APICreated event.", @@ -2299,7 +2980,10 @@ "$ref": "#/definitions/AppAction", "description": "Type of action of the operation." } - } + }, + "required": [ + "action" + ] }, "AppServicePlanAction": { "type": "string", @@ -2335,7 +3019,12 @@ "$ref": "#/definitions/AsyncStatus", "description": "Asynchronous operation status of the operation on the app service plan." } - } + }, + "required": [ + "stampKind", + "action", + "status" + ] }, "AsyncStatus": { "type": "string", @@ -2549,6 +3238,18 @@ } } }, + "required": [ + "namedOutputs" + ], + "allOf": [ + { + "$ref": "#/definitions/AvsScriptExecutionEventData" + } + ] + }, + "AvsScriptExecutionStartedEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionStarted event.", "allOf": [ { "$ref": "#/definitions/AvsScriptExecutionEventData" @@ -2589,6 +3290,10 @@ "type": "object", "description": "Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set.", "properties": { + "kind": { + "$ref": "#/definitions/CommunicationIdentifierModelKind", + "description": "The identifier kind. Only required in responses." + }, "rawId": { "type": "string", "description": "Raw Id of the identifier. Optional in requests, required in responses." @@ -2604,7 +3309,54 @@ "microsoftTeamsUser": { "$ref": "#/definitions/MicrosoftTeamsUserIdentifierModel", "description": "The Microsoft Teams user." + }, + "microsoftTeamsApp": { + "$ref": "#/definitions/MicrosoftTeamsAppIdentifierModel", + "description": "The Microsoft Teams application." } + }, + "required": [ + "kind", + "communicationUser", + "phoneNumber", + "microsoftTeamsUser", + "microsoftTeamsApp" + ] + }, + "CommunicationIdentifierModelKind": { + "type": "string", + "description": "Communication model identifier kind", + "enum": [ + "unknown", + "communicationUser", + "phoneNumber", + "microsoftTeamsUser" + ], + "x-ms-enum": { + "name": "CommunicationIdentifierModelKind", + "modelAsString": true, + "values": [ + { + "name": "unknown", + "value": "unknown", + "description": "Unknown" + }, + { + "name": "communicationUser", + "value": "communicationUser", + "description": "Communication User" + }, + { + "name": "phoneNumber", + "value": "phoneNumber", + "description": "Phone Number" + }, + { + "name": "microsoftTeamsUser", + "value": "microsoftTeamsUser", + "description": "Microsoft Teams User" + } + ] } }, "CommunicationUserIdentifierModel": { @@ -2649,7 +3401,12 @@ "$ref": "#/definitions/ContainerRegistryEventConnectedRegistry", "description": "The connected registry information if the event is generated by a connected registry." } - } + }, + "required": [ + "timestamp", + "target", + "connectedRegistry" + ] }, "ContainerRegistryArtifactEventTarget": { "type": "object", @@ -2765,7 +3522,15 @@ "$ref": "#/definitions/ContainerRegistryEventConnectedRegistry", "description": "The connected registry information if the event is generated by a connected registry." } - } + }, + "required": [ + "timestamp", + "target", + "request", + "actor", + "source", + "connectedRegistry" + ] }, "ContainerRegistryEventRequest": { "type": "object", @@ -2965,7 +3730,11 @@ "format": "date-time", "description": "The time at which the stage happened." } - } + }, + "required": [ + "stageName", + "stageTime" + ] }, "DataBoxCopyStartedEventData": { "type": "object", @@ -2984,7 +3753,11 @@ "format": "date-time", "description": "The time at which the stage happened." } - } + }, + "required": [ + "stageName", + "stageTime" + ] }, "DataBoxOrderCompletedEventData": { "type": "object", @@ -3003,7 +3776,11 @@ "format": "date-time", "description": "The time at which the stage happened." } - } + }, + "required": [ + "stageName", + "stageTime" + ] }, "DataBoxStageName": { "type": "string", @@ -3065,7 +3842,10 @@ "$ref": "#/definitions/DeviceConnectionStateEventInfo", "description": "Information about the device connection state event." } - } + }, + "required": [ + "deviceConnectionStateEventInfo" + ] }, "DeviceLifeCycleEventProperties": { "type": "object", @@ -3083,7 +3863,10 @@ "$ref": "#/definitions/DeviceTwinInfo", "description": "Information about the device twin, which is the cloud representation of application device metadata." } - } + }, + "required": [ + "twin" + ] }, "DeviceTelemetryEventProperties": { "type": "object", @@ -3108,7 +3891,12 @@ "type": "string" } } - } + }, + "required": [ + "body", + "properties", + "systemProperties" + ] }, "DeviceTwinInfo": { "type": "object", @@ -3160,7 +3948,11 @@ "$ref": "#/definitions/DeviceTwinInfoX509Thumbprint", "description": "The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate." } - } + }, + "required": [ + "properties", + "x509Thumbprint" + ] }, "DeviceTwinInfoProperties": { "type": "object", @@ -3174,7 +3966,11 @@ "$ref": "#/definitions/DeviceTwinProperties", "description": "A portion of the properties that can be written only by the device, and read by the application back-end." } - } + }, + "required": [ + "desired", + "reported" + ] }, "DeviceTwinInfoX509Thumbprint": { "type": "object", @@ -3216,11 +4012,14 @@ "description": "Version of device twin properties.", "x-ms-client-name": "$version" } - } + }, + "required": [ + "metadata" + ] }, "EventGridMQTTClientCreatedOrUpdatedEventData": { "type": "object", - "description": "Event data for Microsoft.EventGrid.SystemEvents.MQTTClientCreatedOrUpdated event.", + "description": "Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.", "properties": { "state": { "$ref": "#/definitions/EventGridMQTTClientState", @@ -3244,6 +4043,12 @@ } } }, + "required": [ + "state", + "createdOn", + "updatedOn", + "attributes" + ], "allOf": [ { "$ref": "#/definitions/EventGridMQTTClientEventData" @@ -3252,7 +4057,7 @@ }, "EventGridMQTTClientDeletedEventData": { "type": "object", - "description": "Event data for Microsoft.EventGrid.SystemEvents.MQTTClientDeleted event.", + "description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.", "allOf": [ { "$ref": "#/definitions/EventGridMQTTClientEventData" @@ -3357,7 +4162,7 @@ }, "EventGridMQTTClientSessionConnectedEventData": { "type": "object", - "description": "Event data for Microsoft.EventGrid.SystemEvents.MQTTClientSessionConnected event.", + "description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.", "properties": { "clientSessionName": { "type": "string", @@ -3377,7 +4182,7 @@ }, "EventGridMQTTClientSessionDisconnectedEventData": { "type": "object", - "description": "Event data for Microsoft.EventGrid.SystemEvents.MQTTClientSessionDisconnected event.", + "description": "Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.", "properties": { "clientSessionName": { "type": "string", @@ -3393,6 +4198,9 @@ "description": "Reason for the disconnection of the MQTT client's session. The value could be\none of the values in the disconnection reasons table." } }, + "required": [ + "disconnectionReason" + ], "allOf": [ { "$ref": "#/definitions/EventGridMQTTClientEventData" @@ -3470,7 +4278,11 @@ "format": "date-time", "description": "The last time from the queue." } - } + }, + "required": [ + "firstEnqueueTime", + "lastEnqueueTime" + ] }, "HealthcareDicomImageCreatedEventData": { "type": "object", @@ -3590,7 +4402,10 @@ "description": "VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion).", "x-ms-client-name": "FhirResourceVersionId" } - } + }, + "required": [ + "resourceType" + ] }, "HealthcareFhirResourceDeletedEventData": { "type": "object", @@ -3617,7 +4432,10 @@ "description": "VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion).", "x-ms-client-name": "FhirResourceVersionId" } - } + }, + "required": [ + "resourceType" + ] }, "HealthcareFhirResourceType": { "type": "string", @@ -4622,7 +5440,10 @@ "description": "VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion).", "x-ms-client-name": "FhirResourceVersionId" } - } + }, + "required": [ + "resourceType" + ] }, "IotHubDeviceConnectedEventData": { "type": "object", @@ -4669,9 +5490,9 @@ } ] }, - "KeyVaultCertificateExpiredEventData": { + "KeyVaultAccessPolicyChangedEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateExpired event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.VaultAccessPolicyChanged event.", "properties": { "Id": { "type": "string", @@ -4705,9 +5526,9 @@ } } }, - "KeyVaultCertificateNearExpiryEventData": { + "KeyVaultCertificateExpiredEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNearExpiry event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateExpired event.", "properties": { "Id": { "type": "string", @@ -4741,9 +5562,9 @@ } } }, - "KeyVaultCertificateNewVersionCreatedEventData": { + "KeyVaultCertificateNearExpiryEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNewVersionCreated event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNearExpiry event.", "properties": { "Id": { "type": "string", @@ -4777,9 +5598,9 @@ } } }, - "KeyVaultKeyExpiredEventData": { + "KeyVaultCertificateNewVersionCreatedEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyExpired event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNewVersionCreated event.", "properties": { "Id": { "type": "string", @@ -4813,9 +5634,9 @@ } } }, - "KeyVaultKeyNearExpiryEventData": { + "KeyVaultKeyExpiredEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNearExpiry event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyExpired event.", "properties": { "Id": { "type": "string", @@ -4849,9 +5670,9 @@ } } }, - "KeyVaultKeyNewVersionCreatedEventData": { + "KeyVaultKeyNearExpiryEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNewVersionCreated event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNearExpiry event.", "properties": { "Id": { "type": "string", @@ -4885,9 +5706,9 @@ } } }, - "KeyVaultSecretExpiredEventData": { + "KeyVaultKeyNewVersionCreatedEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretExpired event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNewVersionCreated event.", "properties": { "Id": { "type": "string", @@ -4921,9 +5742,9 @@ } } }, - "KeyVaultSecretNearExpiryEventData": { + "KeyVaultSecretExpiredEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNearExpiry event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretExpired event.", "properties": { "Id": { "type": "string", @@ -4957,9 +5778,9 @@ } } }, - "KeyVaultSecretNewVersionCreatedEventData": { + "KeyVaultSecretNearExpiryEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNewVersionCreated event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNearExpiry event.", "properties": { "Id": { "type": "string", @@ -4993,9 +5814,9 @@ } } }, - "KeyVaultVaultAccessPolicyChangedEventData": { + "KeyVaultSecretNewVersionCreatedEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.VaultAccessPolicyChanged event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNewVersionCreated event.", "properties": { "Id": { "type": "string", @@ -5068,7 +5889,11 @@ "format": "date-time", "description": "The end time of the target dataset time series that resulted in drift detection." } - } + }, + "required": [ + "startTime", + "endTime" + ] }, "MachineLearningServicesModelDeployedEventData": { "type": "object", @@ -5096,7 +5921,11 @@ "description": "The properties of the deployed service.", "additionalProperties": {} } - } + }, + "required": [ + "serviceTags", + "serviceProperties" + ] }, "MachineLearningServicesModelRegisteredEventData": { "type": "object", @@ -5120,7 +5949,11 @@ "description": "The properties of the model that was registered.", "additionalProperties": {} } - } + }, + "required": [ + "modelTags", + "modelProperties" + ] }, "MachineLearningServicesRunCompletedEventData": { "type": "object", @@ -5152,7 +5985,11 @@ "description": "The properties of the completed Run.", "additionalProperties": {} } - } + }, + "required": [ + "runTags", + "runProperties" + ] }, "MachineLearningServicesRunStatusChangedEventData": { "type": "object", @@ -5188,7 +6025,11 @@ "type": "string", "description": "The status of the Machine Learning Run." } - } + }, + "required": [ + "runTags", + "runProperties" + ] }, "MapsGeofenceEnteredEventData": { "type": "object", @@ -5229,7 +6070,10 @@ "type": "boolean", "description": "True if at least one event is published to the Azure Maps event subscriber, false if no event is published to the Azure Maps event subscriber." } - } + }, + "required": [ + "geometries" + ] }, "MapsGeofenceExitedEventData": { "type": "object", @@ -5295,6 +6139,9 @@ "x-ms-identifiers": [] } }, + "required": [ + "outputs" + ], "allOf": [ { "$ref": "#/definitions/MediaJobStateChangeEventData" @@ -5316,23 +6163,19 @@ "properties": { "code": { "$ref": "#/definitions/MediaJobErrorCode", - "description": "Error code describing the error.", - "readOnly": true + "description": "Error code describing the error." }, "message": { "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true + "description": "A human-readable language-dependent representation of the error." }, "category": { "$ref": "#/definitions/MediaJobErrorCategory", - "description": "Helps with categorization of errors.", - "readOnly": true + "description": "Helps with categorization of errors." }, "retry": { "$ref": "#/definitions/MediaJobRetry", - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true + "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal." }, "details": { "type": "array", @@ -5340,10 +6183,15 @@ "items": { "$ref": "#/definitions/MediaJobErrorDetail" }, - "readOnly": true, "x-ms-identifiers": [] } - } + }, + "required": [ + "code", + "category", + "retry", + "details" + ] }, "MediaJobErrorCategory": { "type": "string", @@ -5471,13 +6319,11 @@ "properties": { "code": { "type": "string", - "description": "Code describing the error detail.", - "readOnly": true + "description": "Code describing the error detail." }, "message": { "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true + "description": "A human-readable representation of the error." } } }, @@ -5494,6 +6340,9 @@ "x-ms-identifiers": [] } }, + "required": [ + "outputs" + ], "allOf": [ { "$ref": "#/definitions/MediaJobStateChangeEventData" @@ -5513,6 +6362,9 @@ "x-ms-identifiers": [] } }, + "required": [ + "outputs" + ], "allOf": [ { "$ref": "#/definitions/MediaJobStateChangeEventData" @@ -5523,7 +6375,7 @@ "type": "object", "description": "The event data for a Job output.", "properties": { - "@odataType": { + "@odata.type": { "type": "string", "description": "The discriminator for derived types." }, @@ -5545,9 +6397,10 @@ "description": "Gets the Job output state." } }, - "discriminator": "@odataType", + "discriminator": "@odata.type", "required": [ - "@odataType", + "@odata.type", + "error", "progress", "state" ] @@ -5633,7 +6486,10 @@ "type": "string" } } - } + }, + "required": [ + "jobCorrelationData" + ] }, "MediaJobOutputScheduledEventData": { "type": "object", @@ -5650,8 +6506,7 @@ "properties": { "previousState": { "$ref": "#/definitions/MediaJobState", - "description": "The previous state of the Job.", - "readOnly": true + "description": "The previous state of the Job." }, "output": { "$ref": "#/definitions/MediaJobOutput", @@ -5664,7 +6519,12 @@ "type": "string" } } - } + }, + "required": [ + "previousState", + "output", + "jobCorrelationData" + ] }, "MediaJobProcessingEventData": { "type": "object", @@ -5768,13 +6628,11 @@ "properties": { "previousState": { "$ref": "#/definitions/MediaJobState", - "description": "The previous state of the Job.", - "readOnly": true + "description": "The previous state of the Job." }, "state": { "$ref": "#/definitions/MediaJobState", - "description": "The new state of the Job.", - "readOnly": true + "description": "The new state of the Job." }, "correlationData": { "type": "object", @@ -5783,7 +6641,12 @@ "type": "string" } } - } + }, + "required": [ + "previousState", + "state", + "correlationData" + ] }, "MediaLiveEventChannelArchiveHeartbeatEventData": { "type": "object", @@ -5791,13 +6654,11 @@ "properties": { "channelLatencyMs": { "type": "string", - "description": "Gets the channel latency in ms.", - "readOnly": true + "description": "Gets the channel latency in ms." }, "latencyResultCode": { "type": "string", - "description": "Gets the latency result code.", - "readOnly": true + "description": "Gets the latency result code." } }, "required": [ @@ -5811,23 +6672,19 @@ "properties": { "ingestUrl": { "type": "string", - "description": "Gets the ingest URL provided by the live event.", - "readOnly": true + "description": "Gets the ingest URL provided by the live event." }, "streamId": { "type": "string", - "description": "Gets the stream Id.", - "readOnly": true + "description": "Gets the stream Id." }, "encoderIp": { "type": "string", - "description": "Gets the remote IP.", - "readOnly": true + "description": "Gets the remote IP." }, "encoderPort": { "type": "string", - "description": "Gets the remote port.", - "readOnly": true + "description": "Gets the remote port." }, "resultCode": { "type": "string", @@ -5841,23 +6698,19 @@ "properties": { "ingestUrl": { "type": "string", - "description": "Gets the ingest URL provided by the live event.", - "readOnly": true + "description": "Gets the ingest URL provided by the live event." }, "streamId": { "type": "string", - "description": "Gets the stream Id.", - "readOnly": true + "description": "Gets the stream Id." }, "encoderIp": { "type": "string", - "description": "Gets the remote IP.", - "readOnly": true + "description": "Gets the remote IP." }, "encoderPort": { "type": "string", - "description": "Gets the remote port.", - "readOnly": true + "description": "Gets the remote port." } } }, @@ -5867,23 +6720,19 @@ "properties": { "ingestUrl": { "type": "string", - "description": "Gets the ingest URL provided by the live event.", - "readOnly": true + "description": "Gets the ingest URL provided by the live event." }, "streamId": { "type": "string", - "description": "Gets the stream Id.", - "readOnly": true + "description": "Gets the stream Id." }, "encoderIp": { "type": "string", - "description": "Gets the remote IP.", - "readOnly": true + "description": "Gets the remote IP." }, "encoderPort": { "type": "string", - "description": "Gets the remote port.", - "readOnly": true + "description": "Gets the remote port." }, "resultCode": { "type": "string", @@ -5897,19 +6746,16 @@ "properties": { "timestamp": { "type": "string", - "description": "Gets the timestamp of the data chunk dropped.", - "readOnly": true + "description": "Gets the timestamp of the data chunk dropped." }, "trackType": { "type": "string", - "description": "Gets the type of the track (Audio / Video).", - "readOnly": true + "description": "Gets the type of the track (Audio / Video)." }, "bitrate": { "type": "integer", "format": "int64", - "description": "Gets the bitrate of the track.", - "readOnly": true + "description": "Gets the bitrate of the track." }, "timescale": { "type": "string", @@ -5917,13 +6763,11 @@ }, "resultCode": { "type": "string", - "description": "Gets the result code for fragment drop operation.", - "readOnly": true + "description": "Gets the result code for fragment drop operation." }, "trackName": { "type": "string", - "description": "Gets the name of the track for which fragment is dropped.", - "readOnly": true + "description": "Gets the name of the track for which fragment is dropped." } } }, @@ -5933,49 +6777,40 @@ "properties": { "ingestUrl": { "type": "string", - "description": "Gets the ingest URL provided by the live event.", - "readOnly": true + "description": "Gets the ingest URL provided by the live event." }, "trackType": { "type": "string", - "description": "Gets the type of the track (Audio / Video).", - "readOnly": true + "description": "Gets the type of the track (Audio / Video)." }, "trackName": { "type": "string", - "description": "Gets the track name.", - "readOnly": true + "description": "Gets the track name." }, "bitrate": { "type": "integer", "format": "int64", - "description": "Gets the bitrate of the track.", - "readOnly": true + "description": "Gets the bitrate of the track." }, "encoderIp": { "type": "string", - "description": "Gets the remote IP.", - "readOnly": true + "description": "Gets the remote IP." }, "encoderPort": { "type": "string", - "description": "Gets the remote port.", - "readOnly": true + "description": "Gets the remote port." }, "timestamp": { "type": "string", - "description": "Gets the first timestamp of the data chunk received.", - "readOnly": true + "description": "Gets the first timestamp of the data chunk received." }, "duration": { "type": "string", - "description": "Gets the duration of the first data chunk.", - "readOnly": true + "description": "Gets the duration of the first data chunk." }, "timescale": { "type": "string", - "description": "Gets the timescale in which timestamp is represented.", - "readOnly": true + "description": "Gets the timescale in which timestamp is represented." } } }, @@ -5985,33 +6820,27 @@ "properties": { "minLastTimestamp": { "type": "string", - "description": "Gets the minimum last timestamp received.", - "readOnly": true + "description": "Gets the minimum last timestamp received." }, "typeOfStreamWithMinLastTimestamp": { "type": "string", - "description": "Gets the type of stream with minimum last timestamp.", - "readOnly": true + "description": "Gets the type of stream with minimum last timestamp." }, "maxLastTimestamp": { "type": "string", - "description": "Gets the maximum timestamp among all the tracks (audio or video).", - "readOnly": true + "description": "Gets the maximum timestamp among all the tracks (audio or video)." }, "typeOfStreamWithMaxLastTimestamp": { "type": "string", - "description": "Gets the type of stream with maximum last timestamp.", - "readOnly": true + "description": "Gets the type of stream with maximum last timestamp." }, "timescaleOfMinLastTimestamp": { "type": "string", - "description": "Gets the timescale in which \\\"MinLastTimestamp\\\" is represented.", - "readOnly": true + "description": "Gets the timescale in which \\\"MinLastTimestamp\\\" is represented." }, "timescaleOfMaxLastTimestamp": { "type": "string", - "description": "Gets the timescale in which \\\"MaxLastTimestamp\\\" is represented.", - "readOnly": true + "description": "Gets the timescale in which \\\"MaxLastTimestamp\\\" is represented." } } }, @@ -6021,28 +6850,23 @@ "properties": { "firstTimestamp": { "type": "string", - "description": "Gets the first timestamp received for one of the quality levels.", - "readOnly": true + "description": "Gets the first timestamp received for one of the quality levels." }, "firstDuration": { "type": "string", - "description": "Gets the duration of the data chunk with first timestamp.", - "readOnly": true + "description": "Gets the duration of the data chunk with first timestamp." }, "secondTimestamp": { "type": "string", - "description": "Gets the timestamp received for some other quality levels.", - "readOnly": true + "description": "Gets the timestamp received for some other quality levels." }, "secondDuration": { "type": "string", - "description": "Gets the duration of the data chunk with second timestamp.", - "readOnly": true + "description": "Gets the duration of the data chunk with second timestamp." }, "timescale": { "type": "string", - "description": "Gets the timescale in which both the timestamps and durations are represented.", - "readOnly": true + "description": "Gets the timescale in which both the timestamps and durations are represented." } } }, @@ -6052,88 +6876,72 @@ "properties": { "trackType": { "type": "string", - "description": "Gets the type of the track (Audio / Video).", - "readOnly": true + "description": "Gets the type of the track (Audio / Video)." }, "trackName": { "type": "string", - "description": "Gets the track name.", - "readOnly": true + "description": "Gets the track name." }, "transcriptionLanguage": { "type": "string", - "description": "Gets the Live Transcription language.", - "readOnly": true + "description": "Gets the Live Transcription language." }, "transcriptionState": { "type": "string", - "description": "Gets the Live Transcription state.", - "readOnly": true + "description": "Gets the Live Transcription state." }, "bitrate": { "type": "integer", "format": "int64", - "description": "Gets the bitrate of the track.", - "readOnly": true + "description": "Gets the bitrate of the track." }, "incomingBitrate": { "type": "integer", "format": "int64", - "description": "Gets the incoming bitrate.", - "readOnly": true + "description": "Gets the incoming bitrate." }, "ingestDriftValue": { "type": "string", - "description": "Gets the track ingest drift value.", - "readOnly": true + "description": "Gets the track ingest drift value." }, "lastFragmentArrivalTime": { "type": "string", - "description": "Gets the arrival UTC time of the last fragment.", - "readOnly": true + "description": "Gets the arrival UTC time of the last fragment." }, "lastTimestamp": { "type": "string", - "description": "Gets the last timestamp.", - "readOnly": true + "description": "Gets the last timestamp." }, "timescale": { "type": "string", - "description": "Gets the timescale of the last timestamp.", - "readOnly": true + "description": "Gets the timescale of the last timestamp." }, "overlapCount": { "type": "integer", "format": "int64", - "description": "Gets the fragment Overlap count.", - "readOnly": true + "description": "Gets the fragment Overlap count." }, "discontinuityCount": { "type": "integer", "format": "int64", - "description": "Gets the fragment Discontinuity count.", - "readOnly": true + "description": "Gets the fragment Discontinuity count." }, "nonincreasingCount": { "type": "integer", "format": "int64", - "description": "Gets Non increasing count.", - "readOnly": true + "description": "Gets Non increasing count." }, "unexpectedBitrate": { "type": "boolean", - "description": "Gets a value indicating whether unexpected bitrate is present or not.", - "readOnly": true + "description": "Gets a value indicating whether unexpected bitrate is present or not." }, "state": { "type": "string", - "description": "Gets the state of the live event.", - "readOnly": true + "description": "Gets the state of the live event." }, "healthy": { "type": "boolean", - "description": "Gets a value indicating whether preview is healthy or not.", - "readOnly": true + "description": "Gets a value indicating whether preview is healthy or not." } } }, @@ -6143,42 +6951,53 @@ "properties": { "trackType": { "type": "string", - "description": "Gets the type of the track (Audio / Video).", - "readOnly": true + "description": "Gets the type of the track (Audio / Video)." }, "trackName": { "type": "string", - "description": "Gets the track name.", - "readOnly": true + "description": "Gets the track name." }, "bitrate": { "type": "integer", "format": "int64", - "description": "Gets the bitrate.", - "readOnly": true + "description": "Gets the bitrate." }, "previousTimestamp": { "type": "string", - "description": "Gets the timestamp of the previous fragment.", - "readOnly": true + "description": "Gets the timestamp of the previous fragment." }, "newTimestamp": { "type": "string", - "description": "Gets the timestamp of the current fragment.", - "readOnly": true + "description": "Gets the timestamp of the current fragment." }, "timescale": { "type": "string", - "description": "Gets the timescale in which both timestamps and discontinuity gap are represented.", - "readOnly": true + "description": "Gets the timescale in which both timestamps and discontinuity gap are represented." }, "discontinuityGap": { "type": "string", - "description": "Gets the discontinuity gap between PreviousTimestamp and NewTimestamp.", - "readOnly": true + "description": "Gets the discontinuity gap between PreviousTimestamp and NewTimestamp." } } }, + "MicrosoftTeamsAppIdentifierModel": { + "type": "object", + "description": "A Microsoft Teams application.", + "properties": { + "appId": { + "type": "string", + "description": "The Id of the Microsoft Teams application" + }, + "cloud": { + "$ref": "#/definitions/CommunicationCloudEnvironmentModel", + "description": "The cloud that the Microsoft Teams application belongs to. By default 'public' if missing." + } + }, + "required": [ + "appId", + "cloud" + ] + }, "MicrosoftTeamsUserIdentifierModel": { "type": "object", "description": "A Microsoft Teams user.", @@ -6197,7 +7016,8 @@ } }, "required": [ - "userId" + "userId", + "cloud" ] }, "PhoneNumberIdentifierModel": { @@ -6246,7 +7066,10 @@ "type": "string", "description": "The compliance reason code. May be empty." } - } + }, + "required": [ + "timestamp" + ] }, "PolicyInsightsPolicyStateCreatedEventData": { "type": "object", @@ -6281,7 +7104,10 @@ "type": "string", "description": "The compliance reason code. May be empty." } - } + }, + "required": [ + "timestamp" + ] }, "PolicyInsightsPolicyStateDeletedEventData": { "type": "object", @@ -6316,7 +7142,10 @@ "type": "string", "description": "The compliance reason code. May be empty." } - } + }, + "required": [ + "timestamp" + ] }, "RedisExportRDBCompletedEventData": { "type": "object", @@ -6335,7 +7164,10 @@ "type": "string", "description": "The status of this event. Failed or succeeded" } - } + }, + "required": [ + "timestamp" + ] }, "RedisImportRDBCompletedEventData": { "type": "object", @@ -6354,7 +7186,10 @@ "type": "string", "description": "The status of this event. Failed or succeeded" } - } + }, + "required": [ + "timestamp" + ] }, "RedisPatchingCompletedEventData": { "type": "object", @@ -6373,7 +7208,10 @@ "type": "string", "description": "The status of this event. Failed or succeeded" } - } + }, + "required": [ + "timestamp" + ] }, "RedisScalingCompletedEventData": { "type": "object", @@ -6392,9 +7230,12 @@ "type": "string", "description": "The status of this event. Failed or succeeded" } - } + }, + "required": [ + "timestamp" + ] }, - "ResourceActionCancelData": { + "ResourceActionCancelEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionCancel event. This is raised when a resource action operation is canceled.", "properties": { @@ -6445,9 +7286,14 @@ "$ref": "#/definitions/ResourceHttpRequest", "description": "The details of the operation." } - } + }, + "required": [ + "authorization", + "claims", + "httpRequest" + ] }, - "ResourceActionFailureData": { + "ResourceActionFailureEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionFailure event. This is raised when a resource action operation fails.", "properties": { @@ -6498,9 +7344,14 @@ "$ref": "#/definitions/ResourceHttpRequest", "description": "The details of the operation." } - } + }, + "required": [ + "authorization", + "claims", + "httpRequest" + ] }, - "ResourceActionSuccessData": { + "ResourceActionSuccessEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionSuccess event. This is raised when a resource action operation succeeds.", "properties": { @@ -6551,7 +7402,12 @@ "$ref": "#/definitions/ResourceHttpRequest", "description": "The details of the operation." } - } + }, + "required": [ + "authorization", + "claims", + "httpRequest" + ] }, "ResourceAuthorization": { "type": "object", @@ -6572,9 +7428,12 @@ "type": "string" } } - } + }, + "required": [ + "evidence" + ] }, - "ResourceDeleteCancelData": { + "ResourceDeleteCancelEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteCancel event. This is raised when a resource delete operation is canceled.", "properties": { @@ -6625,9 +7484,14 @@ "$ref": "#/definitions/ResourceHttpRequest", "description": "The details of the operation." } - } + }, + "required": [ + "authorization", + "claims", + "httpRequest" + ] }, - "ResourceDeleteFailureData": { + "ResourceDeleteFailureEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteFailure event. This is raised when a resource delete operation fails.", "properties": { @@ -6678,9 +7542,14 @@ "$ref": "#/definitions/ResourceHttpRequest", "description": "The details of the operation." } - } + }, + "required": [ + "authorization", + "claims", + "httpRequest" + ] }, - "ResourceDeleteSuccessData": { + "ResourceDeleteSuccessEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteSuccess event. This is raised when a resource delete operation succeeds.", "properties": { @@ -6731,7 +7600,12 @@ "$ref": "#/definitions/ResourceHttpRequest", "description": "The details of the operation." } - } + }, + "required": [ + "authorization", + "claims", + "httpRequest" + ] }, "ResourceHttpRequest": { "type": "object", @@ -6782,7 +7656,10 @@ "format": "date-time", "description": "Date and Time when resource was updated" } - } + }, + "required": [ + "resourceEventTime" + ] }, "ResourceNotificationsResourceDeletedDetails": { "type": "object", @@ -6816,7 +7693,11 @@ "description": "details about operational info", "x-ms-client-name": "operationalDetails" } - } + }, + "required": [ + "resourceInfo", + "operationalInfo" + ] }, "ResourceNotificationsResourceManagementCreatedOrUpdatedEventData": { "type": "object", @@ -6868,7 +7749,11 @@ "description": "properties in the payload of the resource for which the event is being emitted", "additionalProperties": {} } - } + }, + "required": [ + "tags", + "properties" + ] }, "ResourceNotificationsResourceUpdatedEventData": { "type": "object", @@ -6888,9 +7773,13 @@ "type": "string", "description": "api version of the resource properties bag" } - } + }, + "required": [ + "resourceInfo", + "operationalInfo" + ] }, - "ResourceWriteCancelData": { + "ResourceWriteCancelEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteCancel event. This is raised when a resource create or update operation is canceled.", "properties": { @@ -6941,9 +7830,14 @@ "$ref": "#/definitions/ResourceHttpRequest", "description": "The details of the operation." } - } + }, + "required": [ + "authorization", + "claims", + "httpRequest" + ] }, - "ResourceWriteFailureData": { + "ResourceWriteFailureEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteFailure event. This is raised when a resource create or update operation fails.", "properties": { @@ -6994,9 +7888,14 @@ "$ref": "#/definitions/ResourceHttpRequest", "description": "The details of the operation." } - } + }, + "required": [ + "authorization", + "claims", + "httpRequest" + ] }, - "ResourceWriteSuccessData": { + "ResourceWriteSuccessEventData": { "type": "object", "description": "Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteSuccess event. This is raised when a resource create or update operation succeeds.", "properties": { @@ -7047,7 +7946,12 @@ "$ref": "#/definitions/ResourceHttpRequest", "description": "The details of the operation." } - } + }, + "required": [ + "authorization", + "claims", + "httpRequest" + ] }, "ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData": { "type": "object", @@ -7190,7 +8094,10 @@ "type": "string", "description": "The user Id of connected client connection." } - } + }, + "required": [ + "timestamp" + ] }, "SignalRServiceClientConnectionDisconnectedEventData": { "type": "object", @@ -7217,7 +8124,10 @@ "type": "string", "description": "The message of error that cause the client connection disconnected." } - } + }, + "required": [ + "timestamp" + ] }, "StampKind": { "type": "string", @@ -7295,7 +8205,10 @@ "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", "additionalProperties": {} } - } + }, + "required": [ + "storageDiagnostics" + ] }, "StorageBlobCreatedEventData": { "type": "object", @@ -7352,7 +8265,10 @@ "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", "additionalProperties": {} } - } + }, + "required": [ + "storageDiagnostics" + ] }, "StorageBlobDeletedEventData": { "type": "object", @@ -7395,7 +8311,10 @@ "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", "additionalProperties": {} } - } + }, + "required": [ + "storageDiagnostics" + ] }, "StorageBlobInventoryPolicyCompletedEventData": { "type": "object", @@ -7430,7 +8349,10 @@ "type": "string", "description": "The blob URL for manifest file for inventory run." } - } + }, + "required": [ + "scheduleDateTime" + ] }, "StorageBlobRenamedEventData": { "type": "object", @@ -7469,7 +8391,10 @@ "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", "additionalProperties": {} } - } + }, + "required": [ + "storageDiagnostics" + ] }, "StorageBlobTierChangedEventData": { "type": "object", @@ -7517,7 +8442,10 @@ "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", "additionalProperties": {} } - } + }, + "required": [ + "storageDiagnostics" + ] }, "StorageDirectoryCreatedEventData": { "type": "object", @@ -7556,7 +8484,10 @@ "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", "additionalProperties": {} } - } + }, + "required": [ + "storageDiagnostics" + ] }, "StorageDirectoryDeletedEventData": { "type": "object", @@ -7595,7 +8526,10 @@ "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", "additionalProperties": {} } - } + }, + "required": [ + "storageDiagnostics" + ] }, "StorageDirectoryRenamedEventData": { "type": "object", @@ -7634,7 +8568,10 @@ "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", "additionalProperties": {} } - } + }, + "required": [ + "storageDiagnostics" + ] }, "StorageLifecyclePolicyActionSummaryDetail": { "type": "object", @@ -7676,7 +8613,12 @@ "$ref": "#/definitions/StorageLifecyclePolicyActionSummaryDetail", "description": "Execution statistics of a specific policy action in a Blob Management cycle." } - } + }, + "required": [ + "deleteSummary", + "tierToCoolSummary", + "tierToArchiveSummary" + ] }, "StorageTaskAssignmentCompletedEventData": { "type": "object", @@ -7706,7 +8648,12 @@ "description": "The summary report blob url for a storage task", "x-ms-client-name": "summaryReportBlobUri" } - } + }, + "required": [ + "status", + "completedDateTime", + "summaryReportBlobUrl" + ] }, "StorageTaskAssignmentCompletedStatus": { "type": "string", @@ -7746,7 +8693,10 @@ "type": "string", "description": "The execution id for a storage task." } - } + }, + "required": [ + "queuedDateTime" + ] }, "StorageTaskCompletedEventData": { "type": "object", @@ -7774,7 +8724,12 @@ "format": "uri", "description": "The summary report blob url for a storage task" } - } + }, + "required": [ + "status", + "completedDateTime", + "summaryReportBlobUrl" + ] }, "StorageTaskCompletedStatus": { "type": "string", @@ -7813,32 +8768,32 @@ "type": "string", "description": "The execution id for a storage task." } - } + }, + "required": [ + "queuedDateTime" + ] }, "SubscriptionDeletedEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a\nMicrosoft.EventGrid.SystemEvents.SubscriptionDeletedEvent event.", + "description": "Schema of the Data property of an EventGridEvent for a\nMicrosoft.EventGrid.SubscriptionDeletedEvent event.", "properties": { "eventSubscriptionId": { "type": "string", - "description": "The Azure resource ID of the deleted event subscription.", - "readOnly": true + "description": "The Azure resource ID of the deleted event subscription." } } }, "SubscriptionValidationEventData": { "type": "object", - "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SystemEvents.SubscriptionValidationEvent event.", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event.", "properties": { "validationCode": { "type": "string", - "description": "The validation code sent by Azure Event Grid to validate an event subscription.\nTo complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response,\nor perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", - "readOnly": true + "description": "The validation code sent by Azure Event Grid to validate an event subscription.\nTo complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response,\nor perform a GET request on the validationUrl (available starting version 2018-05-01-preview)." }, "validationUrl": { "type": "string", - "description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview).\nTo complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response,\nor perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", - "readOnly": true + "description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview).\nTo complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response,\nor perform a GET request on the validationUrl (available starting version 2018-05-01-preview)." } } }, @@ -7888,7 +8843,11 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appServicePlanEventTypeDetail", + "sku" + ] }, "WebAppServicePlanUpdatedEventDataSku": { "type": "object", @@ -7948,7 +8907,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebBackupOperationCompletedEventData": { "type": "object", @@ -7982,7 +8944,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebBackupOperationFailedEventData": { "type": "object", @@ -8016,7 +8981,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebBackupOperationStartedEventData": { "type": "object", @@ -8050,7 +9018,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebRestoreOperationCompletedEventData": { "type": "object", @@ -8084,7 +9055,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebRestoreOperationFailedEventData": { "type": "object", @@ -8118,7 +9092,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebRestoreOperationStartedEventData": { "type": "object", @@ -8152,7 +9129,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebSlotSwapCompletedEventData": { "type": "object", @@ -8186,7 +9166,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebSlotSwapFailedEventData": { "type": "object", @@ -8220,7 +9203,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebSlotSwapStartedEventData": { "type": "object", @@ -8254,7 +9240,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebSlotSwapWithPreviewCancelledEventData": { "type": "object", @@ -8288,7 +9277,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "WebSlotSwapWithPreviewStartedEventData": { "type": "object", @@ -8322,7 +9314,10 @@ "type": "string", "description": "HTTP verb of this operation." } - } + }, + "required": [ + "appEventTypeDetail" + ] }, "recordingChannelType": { "type": "string",