diff --git a/sdk/messaging/eventgrid/azsystemevents/CHANGELOG.md b/sdk/messaging/eventgrid/azsystemevents/CHANGELOG.md index 25f28066df..b885f8b045 100644 --- a/sdk/messaging/eventgrid/azsystemevents/CHANGELOG.md +++ b/sdk/messaging/eventgrid/azsystemevents/CHANGELOG.md @@ -1,14 +1,19 @@ # Release History -## 0.4.4 (Unreleased) +## 0.5.0 (2024-11-19) ### Features Added +- A new system event has been added: `ResourceNotificationsContainerServiceEventResourcesScheduledEventData` +- A new field: `StorageLifecyclePolicyCompletedEventData.PolicyRunSummary` + ### Breaking Changes +- Models, that were not system events, have been removed. Any fields from those types are incorporated into their corresponding system event type. + ### Bugs Fixed -### Other Changes +- ACSMessageDeliveryStatusUpdatedEventData.Error has been corrected to use an exported type. ## 0.4.3 (2024-10-14) diff --git a/sdk/messaging/eventgrid/azsystemevents/constants.go b/sdk/messaging/eventgrid/azsystemevents/constants.go index 632a5a0809..5b422ff128 100644 --- a/sdk/messaging/eventgrid/azsystemevents/constants.go +++ b/sdk/messaging/eventgrid/azsystemevents/constants.go @@ -1181,6 +1181,27 @@ func PossibleStorageBlobAccessTierValues() []StorageBlobAccessTier { } } +// StorageLifecycleCompletionStatus - The status for a LCM policy. +type StorageLifecycleCompletionStatus string + +const ( + // StorageLifecycleCompletionStatusCompleted - Completed + StorageLifecycleCompletionStatusCompleted StorageLifecycleCompletionStatus = "Completed" + // StorageLifecycleCompletionStatusCompletedWithError - CompletedWithError + StorageLifecycleCompletionStatusCompletedWithError StorageLifecycleCompletionStatus = "CompletedWithError" + // StorageLifecycleCompletionStatusIncomplete - Incomplete + StorageLifecycleCompletionStatusIncomplete StorageLifecycleCompletionStatus = "Incomplete" +) + +// PossibleStorageLifecycleCompletionStatusValues returns the possible values for the StorageLifecycleCompletionStatus const type. +func PossibleStorageLifecycleCompletionStatusValues() []StorageLifecycleCompletionStatus { + return []StorageLifecycleCompletionStatus{ + StorageLifecycleCompletionStatusCompleted, + StorageLifecycleCompletionStatusCompletedWithError, + StorageLifecycleCompletionStatusIncomplete, + } +} + // StorageTaskAssignmentCompletedStatus - The status for a storage task. type StorageTaskAssignmentCompletedStatus string diff --git a/sdk/messaging/eventgrid/azsystemevents/go.mod b/sdk/messaging/eventgrid/azsystemevents/go.mod index 96af608c77..fe51bf0af2 100644 --- a/sdk/messaging/eventgrid/azsystemevents/go.mod +++ b/sdk/messaging/eventgrid/azsystemevents/go.mod @@ -3,7 +3,7 @@ module github.com/Azure/azure-sdk-for-go/sdk/messaging/eventgrid/azsystemevents go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.13.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 github.com/joho/godotenv v1.5.1 github.com/stretchr/testify v1.9.0 ) @@ -12,7 +12,7 @@ require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/net v0.27.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/net v0.29.0 // indirect + golang.org/x/text v0.18.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/sdk/messaging/eventgrid/azsystemevents/go.sum b/sdk/messaging/eventgrid/azsystemevents/go.sum index f553f1ca23..97706d5214 100644 --- a/sdk/messaging/eventgrid/azsystemevents/go.sum +++ b/sdk/messaging/eventgrid/azsystemevents/go.sum @@ -1,5 +1,5 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.13.0 h1:GJHeeA2N7xrG3q30L2UXDyuWRzDM900/65j70wcM4Ww= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.13.0/go.mod h1:l38EPgmsp71HHLq9j7De57JcKOWPyhrsW1Awm1JS6K0= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 h1:JZg6HRh6W6U4OLl6lk7BZ7BLisIzM9dG1R50zUk9C/M= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0/go.mod h1:YL1xnZ6QejvQHWJrX/AvhFl4WW4rqHVoKspWNVwFk0M= github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xPBn1663uRv2t2q/ESv9seY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -13,10 +13,10 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= -golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= +golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= +golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= +golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/messaging/eventgrid/azsystemevents/internal/generate/generate.go b/sdk/messaging/eventgrid/azsystemevents/internal/generate/generate.go index 43419e2a85..f16de2b472 100644 --- a/sdk/messaging/eventgrid/azsystemevents/internal/generate/generate.go +++ b/sdk/messaging/eventgrid/azsystemevents/internal/generate/generate.go @@ -26,11 +26,6 @@ func main() { return err } - // remove extraneous types - if err := doRemove(); err != nil { - return err - } - if err := generateSystemEventEnum(); err != nil { return err } @@ -40,7 +35,7 @@ func main() { } if err := fn(); err != nil { - fmt.Printf("Failed with error: %s\n", err) + fmt.Printf("./internal/generate: Failed with error: %s\n", err) os.Exit(1) } @@ -57,6 +52,19 @@ func swapErrorTypes() error { return err } + // NOTE: the renaming of the error type is done in the propertyNameOverrideGo.tsp (AcsMessageChannelEventError) + + // NOTE: there appears to be a bug where my type name is automatically being capitalized, even though I marked it as internal. + // Filed as https://github.com/Azure/autorest.go/issues/1467. + if err := gopls.Rename(syms.Get("InternalACSMessageChannelEventError"), "internalACSMessageChannelEventError"); err != nil { + return err + } + + if err := gopls.Rename(syms.Get("InternalACSRouterCommunicationError"), "internalACSRouterCommunicationError"); err != nil { + return err + } + + // TODO: do I really need to handle these myself? Can I not use TypeSpec to do it? { if err := SwapType(syms.Get("AcsMessageReceivedEventData.Error"), "*Error"); err != nil { return err @@ -67,6 +75,16 @@ func swapErrorTypes() error { } } + { + if err := SwapType(syms.Get("ACSMessageDeliveryStatusUpdatedEventData.Error"), "*Error"); err != nil { + return err + } + + if err := UseCustomUnpopulate(modelsSerdeGoFile, "ACSMessageDeliveryStatusUpdatedEventData.Error", "unmarshalInternalACSMessageChannelEventError"); err != nil { + return err + } + } + { if err := SwapType(syms.Get("AcsRouterJobClassificationFailedEventData.Errors"), "[]*Error"); err != nil { return err @@ -93,7 +111,7 @@ func swapErrorTypes() error { } if strings.HasSuffix(sym.Name, "Error") && !strings.HasPrefix(sym.Name, "internal") && sym.Type == "Struct" { - return fmt.Errorf("found redundant unhandled error type %s\n", sym.Name) + return fmt.Errorf("found error type which should have been deleted/renamed %q", sym.Name) } } @@ -134,38 +152,3 @@ func deleteUnneededFiles() { } } } - -func doRemove() error { - modelsToRemove := []string{ - // These types are base objects of some of our system events in the TypeSpec, giving them a simple way to share fields. - // Our generator handles this parent/child relationship by just inlining those properties into the children, so the base struct is just vestigial. - // Note that these have been annotated with @output, which is why they're not just clipped out using our normal "unused/unreferenced" type logic - // in the Go emitter. - "ACSChatEventBaseProperties", - "ACSChatEventInThreadBaseProperties", - "ACSChatMessageEventBaseProperties", - "ACSChatMessageEventInThreadBaseProperties", - "ACSChatThreadEventBaseProperties", - "ACSChatThreadEventInThreadBaseProperties", - "ACSRouterEventData", - "ACSRouterJobEventData", - "ACSRouterWorkerEventData", - "ACSSmsEventBaseProperties", - "AppConfigurationSnapshotEventData", - "AVSClusterEventData", - "AVSPrivateCloudEventData", - "AVSScriptExecutionEventData", - "ContainerServiceClusterSupportEventData", - "ContainerServiceNodePoolRollingEventData", - "ResourceNotificationsResourceDeletedEventData", - "ResourceNotificationsResourceUpdatedEventData", - } - - for _, m := range modelsToRemove { - if err := DeleteType(m); err != nil { - return err - } - } - - return nil -} diff --git a/sdk/messaging/eventgrid/azsystemevents/internal/version.go b/sdk/messaging/eventgrid/azsystemevents/internal/version.go index c98bff8f5d..de304c2ffd 100644 --- a/sdk/messaging/eventgrid/azsystemevents/internal/version.go +++ b/sdk/messaging/eventgrid/azsystemevents/internal/version.go @@ -9,5 +9,5 @@ const ( ModuleName = "azsystemevents" // ModuleVersion is the semantic version (see http://semver.org) of this module. - ModuleVersion = "v0.4.4" + ModuleVersion = "v0.5.0" ) diff --git a/sdk/messaging/eventgrid/azsystemevents/models.go b/sdk/messaging/eventgrid/azsystemevents/models.go index 25a5f52c96..63f6e69956 100644 --- a/sdk/messaging/eventgrid/azsystemevents/models.go +++ b/sdk/messaging/eventgrid/azsystemevents/models.go @@ -611,7 +611,7 @@ type ACSMessageDeliveryStatusUpdatedEventData struct { ChannelKind *ACSMessageChannelKind // REQUIRED; The channel event error - Error *internalACSMessageChannelEventError + Error *Error // REQUIRED; The time message was received ReceivedTimestamp *time.Time @@ -629,21 +629,6 @@ type ACSMessageDeliveryStatusUpdatedEventData struct { To *string } -// ACSMessageEventData - Schema of common properties of all chat thread events -type ACSMessageEventData struct { - // REQUIRED; The channel event error - Error *internalACSMessageChannelEventError - - // REQUIRED; The time message was received - ReceivedTimestamp *time.Time - - // The message sender - From *string - - // The message recipient - To *string -} - // ACSMessageInteractiveButtonReplyContent - Message Interactive button reply content for a user to business message type ACSMessageInteractiveButtonReplyContent struct { // The ID of the button @@ -2015,27 +2000,6 @@ type CommunicationUserIdentifierModel struct { ID *string } -// ContainerRegistryArtifactEventData - The content of the event request message. -type ContainerRegistryArtifactEventData struct { - // REQUIRED; The connected registry information if the event is generated by a connected registry. - ConnectedRegistry *ContainerRegistryEventConnectedRegistry - - // REQUIRED; The target of the event. - Target *ContainerRegistryArtifactEventTarget - - // REQUIRED; The time at which the event occurred. - Timestamp *time.Time - - // The action that encompasses the provided event. - Action *string - - // The event ID. - ID *string - - // The location of the event. - Location *string -} - // ContainerRegistryArtifactEventTarget - The target of the event. type ContainerRegistryArtifactEventTarget struct { // The digest of the artifact. @@ -2117,38 +2081,6 @@ type ContainerRegistryEventConnectedRegistry struct { Name *string } -// ContainerRegistryEventData - The content of the event request message. -type ContainerRegistryEventData struct { - // REQUIRED; The agent that initiated the event. For most situations, this could be from the authorization context of the - // request. - Actor *ContainerRegistryEventActor - - // REQUIRED; The connected registry information if the event is generated by a connected registry. - ConnectedRegistry *ContainerRegistryEventConnectedRegistry - - // REQUIRED; The request that generated the event. - Request *ContainerRegistryEventRequest - - // REQUIRED; The registry node that generated the event. Put differently, while the actor initiates the event, the source - // generates it. - Source *ContainerRegistryEventSource - - // REQUIRED; The target of the event. - Target *ContainerRegistryEventTarget - - // REQUIRED; The time at which the event occurred. - Timestamp *time.Time - - // The action that encompasses the provided event. - Action *string - - // The event ID. - ID *string - - // The location of the event. - Location *string -} - // ContainerRegistryEventRequest - The request that generated the event. type ContainerRegistryEventRequest struct { // The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the @@ -2367,50 +2299,6 @@ type DeviceConnectionStateEventInfo struct { SequenceNumber *string } -// DeviceConnectionStateEventProperties - Schema of the Data property of an EventGridEvent for a device connection state event -// (DeviceConnected, DeviceDisconnected). -type DeviceConnectionStateEventProperties struct { - // REQUIRED; Information about the device connection state event. - DeviceConnectionStateEventInfo *DeviceConnectionStateEventInfo - - // The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit - // alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = `@` ; $ '. - DeviceID *string - - // Name of the IoT Hub where the device was created or deleted. - HubName *string - - // The unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit - // alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = `@` ; $ '. - ModuleID *string -} - -// DeviceLifeCycleEventProperties - Schema of the Data property of an EventGridEvent for a device life cycle event (DeviceCreated, -// DeviceDeleted). -type DeviceLifeCycleEventProperties struct { - // REQUIRED; Information about the device twin, which is the cloud representation of application device metadata. - Twin *DeviceTwinInfo - - // The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit - // alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = `@` ; $ '. - DeviceID *string - - // Name of the IoT Hub where the device was created or deleted. - HubName *string -} - -// DeviceTelemetryEventProperties - Schema of the Data property of an EventGridEvent for a device telemetry event (DeviceTelemetry). -type DeviceTelemetryEventProperties struct { - // REQUIRED; The content of the message from the device. - Body map[string]any - - // REQUIRED; Application properties are user-defined strings that can be added to the message. These fields are optional. - Properties map[string]*string - - // REQUIRED; System properties help identify contents and source of the messages. - SystemProperties map[string]*string -} - // DeviceTwinInfo - Information about the device twin, which is the cloud representation of application device metadata. type DeviceTwinInfo struct { // REQUIRED; Properties JSON element. @@ -2527,20 +2415,6 @@ type EventGridMQTTClientDeletedEventData struct { NamespaceName *string } -// EventGridMQTTClientEventData - Schema of the Data property of an EventGridEvent for MQTT Client state changes. -type EventGridMQTTClientEventData struct { - // Unique identifier for the MQTT client that the client presents to the service - // for authentication. This case-sensitive string can be up to 128 characters - // long, and supports UTF-8 characters. - ClientAuthenticationName *string - - // Name of the client resource in the Event Grid namespace. - ClientName *string - - // Name of the Event Grid namespace where the MQTT client was created or updated. - NamespaceName *string -} - // EventGridMQTTClientSessionConnectedEventData - Event data for Microsoft.EventGrid.MQTTClientSessionConnected event. type EventGridMQTTClientSessionConnectedEventData struct { // Unique identifier for the MQTT client that the client presents to the service @@ -2811,6 +2685,33 @@ type IOTHubDeviceTelemetryEventData struct { SystemProperties map[string]*string } +// internalACSMessageChannelEventError - Message Channel Event Error +type internalACSMessageChannelEventError struct { + // The channel error code + ChannelCode *string + + // The channel error message + ChannelMessage *string +} + +// internalACSRouterCommunicationError - Router Communication Error +type internalACSRouterCommunicationError struct { + // REQUIRED; List of Router Communication Errors + Details []internalACSRouterCommunicationError + + // REQUIRED; Router Communication Inner Error + Innererror *internalACSRouterCommunicationError + + // Router Communication Error Code + Code *string + + // Router Communication Error Message + Message *string + + // Router Communication Error Target + Target *string +} + // KeyVaultAccessPolicyChangedEventData - Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.VaultAccessPolicyChanged // event. type KeyVaultAccessPolicyChangedEventData struct { @@ -3187,24 +3088,6 @@ type MapsGeofenceEnteredEventData struct { IsEventPublished *bool } -// MapsGeofenceEventProperties - Schema of the Data property of an EventGridEvent for a Geofence event (GeofenceEntered, GeofenceExited, -// GeofenceResult). -type MapsGeofenceEventProperties struct { - // REQUIRED; Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer - // around the fence. - Geometries []MapsGeofenceGeometry - - // Lists of the geometry ID of the geofence which is expired relative to the user time in the request. - ExpiredGeofenceGeometryID []string - - // Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. - InvalidPeriodGeofenceGeometryID []string - - // 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. - IsEventPublished *bool -} - // MapsGeofenceExitedEventData - Schema of the Data property of an EventGridEvent for a Microsoft.Maps.GeofenceExited event. type MapsGeofenceExitedEventData struct { // REQUIRED; Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer @@ -3498,19 +3381,6 @@ type MediaJobOutputScheduledEventData struct { PreviousState *MediaJobState } -// MediaJobOutputStateChangeEventData - Schema of the Data property of an EventGridEvent for a -// Microsoft.Media.JobOutputStateChange event. -type MediaJobOutputStateChangeEventData struct { - // REQUIRED; Gets the Job correlation data. - JobCorrelationData map[string]*string - - // REQUIRED; Gets the output. - Output MediaJobOutputClassification - - // REQUIRED; The previous state of the Job. - PreviousState *MediaJobState -} - // MediaJobProcessingEventData - Job processing event data. Schema of the data property of an EventGridEvent for // a Microsoft.Media.JobProcessing event. type MediaJobProcessingEventData struct { @@ -3537,19 +3407,6 @@ type MediaJobScheduledEventData struct { State *MediaJobState } -// MediaJobStateChangeEventData - Schema of the Data property of an EventGridEvent for a -// Microsoft.Media.JobStateChange event. -type MediaJobStateChangeEventData struct { - // REQUIRED; Gets the Job correlation data. - CorrelationData map[string]*string - - // REQUIRED; The previous state of the Job. - PreviousState *MediaJobState - - // REQUIRED; The new state of the Job. - State *MediaJobState -} - // MediaLiveEventChannelArchiveHeartbeatEventData - Channel Archive heartbeat event data. Schema of the data property of an // EventGridEvent for a Microsoft.Media.LiveEventChannelArchiveHeartbeat event. type MediaLiveEventChannelArchiveHeartbeatEventData struct { @@ -4191,6 +4048,19 @@ type ResourceHTTPRequest struct { URL *string } +// ResourceNotificationsContainerServiceEventResourcesScheduledEventData - Schema of the Data property of an event grid event +// for a Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted preview event. +type ResourceNotificationsContainerServiceEventResourcesScheduledEventData struct { + // REQUIRED; details about operational info + OperationalDetails *ResourceNotificationsOperationalDetails + + // REQUIRED; resourceInfo details for update event + ResourceDetails *ResourceNotificationsResourceUpdatedDetails + + // api version of the resource properties bag + APIVersion *string +} + // ResourceNotificationsHealthResourcesAnnotatedEventData - Schema of the Data property of an EventGridEvent for a // Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated event. type ResourceNotificationsHealthResourcesAnnotatedEventData struct { @@ -4838,6 +4708,9 @@ type StorageLifecyclePolicyCompletedEventData struct { // REQUIRED; Execution statistics of a specific policy action in a Blob Management cycle. DeleteSummary *StorageLifecyclePolicyActionSummaryDetail + // REQUIRED; Policy execution summary which shows the completion status of a LCM run" + PolicyRunSummary *StorageLifecyclePolicyRunSummary + // REQUIRED; Execution statistics of a specific policy action in a Blob Management cycle. TierToArchiveSummary *StorageLifecyclePolicyActionSummaryDetail @@ -4851,6 +4724,12 @@ type StorageLifecyclePolicyCompletedEventData struct { ScheduleTime *string } +// StorageLifecyclePolicyRunSummary - Policy run status of an account in a Blob Management cycle. +type StorageLifecyclePolicyRunSummary struct { + // REQUIRED; Policy status can be Completed/CompletedWithError/Incomplete. + CompletionStatus *StorageLifecycleCompletionStatus +} + // StorageTaskAssignmentCompletedEventData - Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskAssignmentCompleted // event. type StorageTaskAssignmentCompletedEventData struct { @@ -5283,30 +5162,3 @@ type WebSlotSwapWithPreviewStartedEventData struct { // HTTP verb of this operation. Verb *string } - -// internalACSMessageChannelEventError - Message Channel Event Error -type internalACSMessageChannelEventError struct { - // The channel error code - ChannelCode *string - - // The channel error message - ChannelMessage *string -} - -// internalACSRouterCommunicationError - Router Communication Error -type internalACSRouterCommunicationError struct { - // REQUIRED; List of Router Communication Errors - Details []internalACSRouterCommunicationError - - // REQUIRED; Router Communication Inner Error - Innererror *internalACSRouterCommunicationError - - // Router Communication Error Code - Code *string - - // Router Communication Error Message - Message *string - - // Router Communication Error Target - Target *string -} diff --git a/sdk/messaging/eventgrid/azsystemevents/models_serde.go b/sdk/messaging/eventgrid/azsystemevents/models_serde.go index e5824f1252..3c7ec8213d 100644 --- a/sdk/messaging/eventgrid/azsystemevents/models_serde.go +++ b/sdk/messaging/eventgrid/azsystemevents/models_serde.go @@ -1266,7 +1266,7 @@ func (a *ACSMessageDeliveryStatusUpdatedEventData) UnmarshalJSON(data []byte) er err = unpopulate(val, "ChannelKind", &a.ChannelKind) delete(rawMsg, key) case "error": - err = unpopulate(val, "Error", &a.Error) + err = unmarshalInternalACSMessageChannelEventError(val, "Error", &a.Error) delete(rawMsg, key) case "from": err = unpopulate(val, "From", &a.From) @@ -1291,45 +1291,6 @@ func (a *ACSMessageDeliveryStatusUpdatedEventData) UnmarshalJSON(data []byte) er return nil } -// MarshalJSON implements the json.Marshaller interface for type ACSMessageEventData. -func (a ACSMessageEventData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "error", a.Error) - populate(objectMap, "from", a.From) - populateDateTimeRFC3339(objectMap, "receivedTimeStamp", a.ReceivedTimestamp) - populate(objectMap, "to", a.To) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ACSMessageEventData. -func (a *ACSMessageEventData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "error": - err = unpopulate(val, "Error", &a.Error) - delete(rawMsg, key) - case "from": - err = unpopulate(val, "From", &a.From) - delete(rawMsg, key) - case "receivedTimeStamp": - err = unpopulateDateTimeRFC3339(val, "ReceivedTimestamp", &a.ReceivedTimestamp) - delete(rawMsg, key) - case "to": - err = unpopulate(val, "To", &a.To) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type ACSMessageInteractiveButtonReplyContent. func (a ACSMessageInteractiveButtonReplyContent) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -4668,53 +4629,6 @@ func (c *CommunicationUserIdentifierModel) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ContainerRegistryArtifactEventData. -func (c ContainerRegistryArtifactEventData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "action", c.Action) - populate(objectMap, "connectedRegistry", c.ConnectedRegistry) - populate(objectMap, "id", c.ID) - populate(objectMap, "location", c.Location) - populate(objectMap, "target", c.Target) - populateDateTimeRFC3339(objectMap, "timestamp", c.Timestamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerRegistryArtifactEventData. -func (c *ContainerRegistryArtifactEventData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "action": - err = unpopulate(val, "Action", &c.Action) - delete(rawMsg, key) - case "connectedRegistry": - err = unpopulate(val, "ConnectedRegistry", &c.ConnectedRegistry) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &c.ID) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &c.Location) - delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &c.Target) - delete(rawMsg, key) - case "timestamp": - err = unpopulateDateTimeRFC3339(val, "Timestamp", &c.Timestamp) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type ContainerRegistryArtifactEventTarget. func (c ContainerRegistryArtifactEventTarget) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -4914,65 +4828,6 @@ func (c *ContainerRegistryEventConnectedRegistry) UnmarshalJSON(data []byte) err return nil } -// MarshalJSON implements the json.Marshaller interface for type ContainerRegistryEventData. -func (c ContainerRegistryEventData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "action", c.Action) - populate(objectMap, "actor", c.Actor) - populate(objectMap, "connectedRegistry", c.ConnectedRegistry) - populate(objectMap, "id", c.ID) - populate(objectMap, "location", c.Location) - populate(objectMap, "request", c.Request) - populate(objectMap, "source", c.Source) - populate(objectMap, "target", c.Target) - populateDateTimeRFC3339(objectMap, "timestamp", c.Timestamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerRegistryEventData. -func (c *ContainerRegistryEventData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "action": - err = unpopulate(val, "Action", &c.Action) - delete(rawMsg, key) - case "actor": - err = unpopulate(val, "Actor", &c.Actor) - delete(rawMsg, key) - case "connectedRegistry": - err = unpopulate(val, "ConnectedRegistry", &c.ConnectedRegistry) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &c.ID) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &c.Location) - delete(rawMsg, key) - case "request": - err = unpopulate(val, "Request", &c.Request) - delete(rawMsg, key) - case "source": - err = unpopulate(val, "Source", &c.Source) - delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &c.Target) - delete(rawMsg, key) - case "timestamp": - err = unpopulateDateTimeRFC3339(val, "Timestamp", &c.Timestamp) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type ContainerRegistryEventRequest. func (c ContainerRegistryEventRequest) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -5522,115 +5377,6 @@ func (d *DeviceConnectionStateEventInfo) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type DeviceConnectionStateEventProperties. -func (d DeviceConnectionStateEventProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "deviceConnectionStateEventInfo", d.DeviceConnectionStateEventInfo) - populate(objectMap, "deviceId", d.DeviceID) - populate(objectMap, "hubName", d.HubName) - populate(objectMap, "moduleId", d.ModuleID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DeviceConnectionStateEventProperties. -func (d *DeviceConnectionStateEventProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "deviceConnectionStateEventInfo": - err = unpopulate(val, "DeviceConnectionStateEventInfo", &d.DeviceConnectionStateEventInfo) - delete(rawMsg, key) - case "deviceId": - err = unpopulate(val, "DeviceID", &d.DeviceID) - delete(rawMsg, key) - case "hubName": - err = unpopulate(val, "HubName", &d.HubName) - delete(rawMsg, key) - case "moduleId": - err = unpopulate(val, "ModuleID", &d.ModuleID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DeviceLifeCycleEventProperties. -func (d DeviceLifeCycleEventProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "deviceId", d.DeviceID) - populate(objectMap, "hubName", d.HubName) - populate(objectMap, "twin", d.Twin) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DeviceLifeCycleEventProperties. -func (d *DeviceLifeCycleEventProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "deviceId": - err = unpopulate(val, "DeviceID", &d.DeviceID) - delete(rawMsg, key) - case "hubName": - err = unpopulate(val, "HubName", &d.HubName) - delete(rawMsg, key) - case "twin": - err = unpopulate(val, "Twin", &d.Twin) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DeviceTelemetryEventProperties. -func (d DeviceTelemetryEventProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "body", d.Body) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "systemProperties", d.SystemProperties) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DeviceTelemetryEventProperties. -func (d *DeviceTelemetryEventProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "body": - err = unpopulate(val, "Body", &d.Body) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &d.Properties) - delete(rawMsg, key) - case "systemProperties": - err = unpopulate(val, "SystemProperties", &d.SystemProperties) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type DeviceTwinInfo. func (d DeviceTwinInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -5904,41 +5650,6 @@ func (e *EventGridMQTTClientDeletedEventData) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type EventGridMQTTClientEventData. -func (e EventGridMQTTClientEventData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "clientAuthenticationName", e.ClientAuthenticationName) - populate(objectMap, "clientName", e.ClientName) - populate(objectMap, "namespaceName", e.NamespaceName) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EventGridMQTTClientEventData. -func (e *EventGridMQTTClientEventData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "clientAuthenticationName": - err = unpopulate(val, "ClientAuthenticationName", &e.ClientAuthenticationName) - delete(rawMsg, key) - case "clientName": - err = unpopulate(val, "ClientName", &e.ClientName) - delete(rawMsg, key) - case "namespaceName": - err = unpopulate(val, "NamespaceName", &e.NamespaceName) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type EventGridMQTTClientSessionConnectedEventData. func (e EventGridMQTTClientSessionConnectedEventData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -6529,6 +6240,80 @@ func (i *IOTHubDeviceTelemetryEventData) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type InternalACSMessageChannelEventError. +func (i internalACSMessageChannelEventError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "channelCode", i.ChannelCode) + populate(objectMap, "channelMessage", i.ChannelMessage) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InternalACSMessageChannelEventError. +func (i *internalACSMessageChannelEventError) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "channelCode": + err = unpopulate(val, "ChannelCode", &i.ChannelCode) + delete(rawMsg, key) + case "channelMessage": + err = unpopulate(val, "ChannelMessage", &i.ChannelMessage) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type InternalACSRouterCommunicationError. +func (i internalACSRouterCommunicationError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", i.Code) + populate(objectMap, "details", i.Details) + populate(objectMap, "innererror", i.Innererror) + populate(objectMap, "message", i.Message) + populate(objectMap, "target", i.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InternalACSRouterCommunicationError. +func (i *internalACSRouterCommunicationError) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "code": + err = unpopulate(val, "Code", &i.Code) + delete(rawMsg, key) + case "details": + err = unpopulate(val, "Details", &i.Details) + delete(rawMsg, key) + case "innererror": + err = unpopulate(val, "Innererror", &i.Innererror) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &i.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &i.Target) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type KeyVaultAccessPolicyChangedEventData. func (k KeyVaultAccessPolicyChangedEventData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -7313,45 +7098,6 @@ func (m *MapsGeofenceEnteredEventData) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MapsGeofenceEventProperties. -func (m MapsGeofenceEventProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "expiredGeofenceGeometryId", m.ExpiredGeofenceGeometryID) - populate(objectMap, "geometries", m.Geometries) - populate(objectMap, "invalidPeriodGeofenceGeometryId", m.InvalidPeriodGeofenceGeometryID) - populate(objectMap, "isEventPublished", m.IsEventPublished) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type MapsGeofenceEventProperties. -func (m *MapsGeofenceEventProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "expiredGeofenceGeometryId": - err = unpopulate(val, "ExpiredGeofenceGeometryID", &m.ExpiredGeofenceGeometryID) - delete(rawMsg, key) - case "geometries": - err = unpopulate(val, "Geometries", &m.Geometries) - delete(rawMsg, key) - case "invalidPeriodGeofenceGeometryId": - err = unpopulate(val, "InvalidPeriodGeofenceGeometryID", &m.InvalidPeriodGeofenceGeometryID) - delete(rawMsg, key) - case "isEventPublished": - err = unpopulate(val, "IsEventPublished", &m.IsEventPublished) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type MapsGeofenceExitedEventData. func (m MapsGeofenceExitedEventData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -8038,41 +7784,6 @@ func (m *MediaJobOutputScheduledEventData) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MediaJobOutputStateChangeEventData. -func (m MediaJobOutputStateChangeEventData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "jobCorrelationData", m.JobCorrelationData) - populate(objectMap, "output", m.Output) - populate(objectMap, "previousState", m.PreviousState) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type MediaJobOutputStateChangeEventData. -func (m *MediaJobOutputStateChangeEventData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "jobCorrelationData": - err = unpopulate(val, "JobCorrelationData", &m.JobCorrelationData) - delete(rawMsg, key) - case "output": - m.Output, err = unmarshalMediaJobOutputClassification(val) - delete(rawMsg, key) - case "previousState": - err = unpopulate(val, "PreviousState", &m.PreviousState) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type MediaJobProcessingEventData. func (m MediaJobProcessingEventData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -8143,41 +7854,6 @@ func (m *MediaJobScheduledEventData) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MediaJobStateChangeEventData. -func (m MediaJobStateChangeEventData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "correlationData", m.CorrelationData) - populate(objectMap, "previousState", m.PreviousState) - populate(objectMap, "state", m.State) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type MediaJobStateChangeEventData. -func (m *MediaJobStateChangeEventData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "correlationData": - err = unpopulate(val, "CorrelationData", &m.CorrelationData) - delete(rawMsg, key) - case "previousState": - err = unpopulate(val, "PreviousState", &m.PreviousState) - delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &m.State) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type MediaLiveEventChannelArchiveHeartbeatEventData. func (m MediaLiveEventChannelArchiveHeartbeatEventData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -9530,6 +9206,41 @@ func (r *ResourceHTTPRequest) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ResourceNotificationsContainerServiceEventResourcesScheduledEventData. +func (r ResourceNotificationsContainerServiceEventResourcesScheduledEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "apiVersion", r.APIVersion) + populate(objectMap, "operationalInfo", r.OperationalDetails) + populate(objectMap, "resourceInfo", r.ResourceDetails) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceNotificationsContainerServiceEventResourcesScheduledEventData. +func (r *ResourceNotificationsContainerServiceEventResourcesScheduledEventData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "apiVersion": + err = unpopulate(val, "APIVersion", &r.APIVersion) + delete(rawMsg, key) + case "operationalInfo": + err = unpopulate(val, "OperationalDetails", &r.OperationalDetails) + delete(rawMsg, key) + case "resourceInfo": + err = unpopulate(val, "ResourceDetails", &r.ResourceDetails) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ResourceNotificationsHealthResourcesAnnotatedEventData. func (r ResourceNotificationsHealthResourcesAnnotatedEventData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -10824,6 +10535,7 @@ func (s *StorageLifecyclePolicyActionSummaryDetail) UnmarshalJSON(data []byte) e func (s StorageLifecyclePolicyCompletedEventData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "deleteSummary", s.DeleteSummary) + populate(objectMap, "policyRunSummary", s.PolicyRunSummary) populate(objectMap, "scheduleTime", s.ScheduleTime) populate(objectMap, "tierToArchiveSummary", s.TierToArchiveSummary) populate(objectMap, "tierToColdSummary", s.TierToColdSummary) @@ -10843,6 +10555,9 @@ func (s *StorageLifecyclePolicyCompletedEventData) UnmarshalJSON(data []byte) er case "deleteSummary": err = unpopulate(val, "DeleteSummary", &s.DeleteSummary) delete(rawMsg, key) + case "policyRunSummary": + err = unpopulate(val, "PolicyRunSummary", &s.PolicyRunSummary) + delete(rawMsg, key) case "scheduleTime": err = unpopulate(val, "ScheduleTime", &s.ScheduleTime) delete(rawMsg, key) @@ -10863,6 +10578,33 @@ func (s *StorageLifecyclePolicyCompletedEventData) UnmarshalJSON(data []byte) er return nil } +// MarshalJSON implements the json.Marshaller interface for type StorageLifecyclePolicyRunSummary. +func (s StorageLifecyclePolicyRunSummary) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "completionStatus", s.CompletionStatus) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StorageLifecyclePolicyRunSummary. +func (s *StorageLifecyclePolicyRunSummary) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "completionStatus": + err = unpopulate(val, "CompletionStatus", &s.CompletionStatus) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type StorageTaskAssignmentCompletedEventData. func (s StorageTaskAssignmentCompletedEventData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -11806,80 +11548,6 @@ func (w *WebSlotSwapWithPreviewStartedEventData) UnmarshalJSON(data []byte) erro return nil } -// MarshalJSON implements the json.Marshaller interface for type internalACSMessageChannelEventError. -func (i internalACSMessageChannelEventError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "channelCode", i.ChannelCode) - populate(objectMap, "channelMessage", i.ChannelMessage) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type internalACSMessageChannelEventError. -func (i *internalACSMessageChannelEventError) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "channelCode": - err = unpopulate(val, "ChannelCode", &i.ChannelCode) - delete(rawMsg, key) - case "channelMessage": - err = unpopulate(val, "ChannelMessage", &i.ChannelMessage) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type internalACSRouterCommunicationError. -func (i internalACSRouterCommunicationError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "code", i.Code) - populate(objectMap, "details", i.Details) - populate(objectMap, "innererror", i.Innererror) - populate(objectMap, "message", i.Message) - populate(objectMap, "target", i.Target) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type internalACSRouterCommunicationError. -func (i *internalACSRouterCommunicationError) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "code": - err = unpopulate(val, "Code", &i.Code) - delete(rawMsg, key) - case "details": - err = unpopulate(val, "Details", &i.Details) - delete(rawMsg, key) - case "innererror": - err = unpopulate(val, "Innererror", &i.Innererror) - delete(rawMsg, key) - case "message": - err = unpopulate(val, "Message", &i.Message) - delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &i.Target) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - func populate(m map[string]any, k string, v any) { if v == nil { return diff --git a/sdk/messaging/eventgrid/azsystemevents/system_events.go b/sdk/messaging/eventgrid/azsystemevents/system_events.go index 57c7742119..5086184cc8 100644 --- a/sdk/messaging/eventgrid/azsystemevents/system_events.go +++ b/sdk/messaging/eventgrid/azsystemevents/system_events.go @@ -7,222 +7,221 @@ package azsystemevents const ( - TypeAVSClusterCreated = "Microsoft.AVS.ClusterCreated" // maps to AVSClusterCreatedEventData - TypeAVSClusterDeleted = "Microsoft.AVS.ClusterDeleted" // maps to AVSClusterDeletedEventData - TypeAVSClusterFailed = "Microsoft.AVS.ClusterFailed" // maps to AVSClusterFailedEventData - TypeAVSClusterUpdated = "Microsoft.AVS.ClusterUpdated" // maps to AVSClusterUpdatedEventData - TypeAVSClusterUpdating = "Microsoft.AVS.ClusterUpdating" // maps to AVSClusterUpdatingEventData - TypeAVSPrivateCloudFailed = "Microsoft.AVS.PrivateCloudFailed" // maps to AVSPrivateCloudFailedEventData - TypeAVSPrivateCloudUpdated = "Microsoft.AVS.PrivateCloudUpdated" // maps to AVSPrivateCloudUpdatedEventData - TypeAVSPrivateCloudUpdating = "Microsoft.AVS.PrivateCloudUpdating" // maps to AVSPrivateCloudUpdatingEventData - TypeAVSScriptExecutionCancelled = "Microsoft.AVS.ScriptExecutionCancelled" // maps to AVSScriptExecutionCancelledEventData - TypeAVSScriptExecutionFailed = "Microsoft.AVS.ScriptExecutionFailed" // maps to AVSScriptExecutionFailedEventData - TypeAVSScriptExecutionFinished = "Microsoft.AVS.ScriptExecutionFinished" // maps to AVSScriptExecutionFinishedEventData - TypeAVSScriptExecutionStarted = "Microsoft.AVS.ScriptExecutionStarted" // maps to AVSScriptExecutionStartedEventData - TypeAPICenterAPIDefinitionAdded = "Microsoft.ApiCenter.ApiDefinitionAdded" // maps to APICenterAPIDefinitionAddedEventData - TypeAPICenterAPIDefinitionUpdated = "Microsoft.ApiCenter.ApiDefinitionUpdated" // maps to APICenterAPIDefinitionUpdatedEventData - TypeAPIManagementAPICreated = "Microsoft.ApiManagement.APICreated" // maps to APIManagementAPICreatedEventData - TypeAPIManagementAPIDeleted = "Microsoft.ApiManagement.APIDeleted" // maps to APIManagementAPIDeletedEventData - TypeAPIManagementAPIReleaseCreated = "Microsoft.ApiManagement.APIReleaseCreated" // maps to APIManagementAPIReleaseCreatedEventData - TypeAPIManagementAPIReleaseDeleted = "Microsoft.ApiManagement.APIReleaseDeleted" // maps to APIManagementAPIReleaseDeletedEventData - TypeAPIManagementAPIReleaseUpdated = "Microsoft.ApiManagement.APIReleaseUpdated" // maps to APIManagementAPIReleaseUpdatedEventData - TypeAPIManagementAPIUpdated = "Microsoft.ApiManagement.APIUpdated" // maps to APIManagementAPIUpdatedEventData - TypeAPIManagementGatewayAPIAdded = "Microsoft.ApiManagement.GatewayAPIAdded" // maps to APIManagementGatewayAPIAddedEventData - TypeAPIManagementGatewayAPIRemoved = "Microsoft.ApiManagement.GatewayAPIRemoved" // maps to APIManagementGatewayAPIRemovedEventData - TypeAPIManagementGatewayCertificateAuthorityCreated = "Microsoft.ApiManagement.GatewayCertificateAuthorityCreated" // maps to APIManagementGatewayCertificateAuthorityCreatedEventData - TypeAPIManagementGatewayCertificateAuthorityDeleted = "Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted" // maps to APIManagementGatewayCertificateAuthorityDeletedEventData - TypeAPIManagementGatewayCertificateAuthorityUpdated = "Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated" // maps to APIManagementGatewayCertificateAuthorityUpdatedEventData - TypeAPIManagementGatewayCreated = "Microsoft.ApiManagement.GatewayCreated" // maps to APIManagementGatewayCreatedEventData - TypeAPIManagementGatewayDeleted = "Microsoft.ApiManagement.GatewayDeleted" // maps to APIManagementGatewayDeletedEventData - TypeAPIManagementGatewayHostnameConfigurationCreated = "Microsoft.ApiManagement.GatewayHostnameConfigurationCreated" // maps to APIManagementGatewayHostnameConfigurationCreatedEventData - TypeAPIManagementGatewayHostnameConfigurationDeleted = "Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted" // maps to APIManagementGatewayHostnameConfigurationDeletedEventData - TypeAPIManagementGatewayHostnameConfigurationUpdated = "Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated" // maps to APIManagementGatewayHostnameConfigurationUpdatedEventData - TypeAPIManagementGatewayUpdated = "Microsoft.ApiManagement.GatewayUpdated" // maps to APIManagementGatewayUpdatedEventData - TypeAPIManagementProductCreated = "Microsoft.ApiManagement.ProductCreated" // maps to APIManagementProductCreatedEventData - TypeAPIManagementProductDeleted = "Microsoft.ApiManagement.ProductDeleted" // maps to APIManagementProductDeletedEventData - TypeAPIManagementProductUpdated = "Microsoft.ApiManagement.ProductUpdated" // maps to APIManagementProductUpdatedEventData - TypeAPIManagementSubscriptionCreated = "Microsoft.ApiManagement.SubscriptionCreated" // maps to APIManagementSubscriptionCreatedEventData - TypeAPIManagementSubscriptionDeleted = "Microsoft.ApiManagement.SubscriptionDeleted" // maps to APIManagementSubscriptionDeletedEventData - TypeAPIManagementSubscriptionUpdated = "Microsoft.ApiManagement.SubscriptionUpdated" // maps to APIManagementSubscriptionUpdatedEventData - TypeAPIManagementUserCreated = "Microsoft.ApiManagement.UserCreated" // maps to APIManagementUserCreatedEventData - TypeAPIManagementUserDeleted = "Microsoft.ApiManagement.UserDeleted" // maps to APIManagementUserDeletedEventData - TypeAPIManagementUserUpdated = "Microsoft.ApiManagement.UserUpdated" // maps to APIManagementUserUpdatedEventData - TypeAppConfigurationKeyValueDeleted = "Microsoft.AppConfiguration.KeyValueDeleted" // maps to AppConfigurationKeyValueDeletedEventData - TypeAppConfigurationKeyValueModified = "Microsoft.AppConfiguration.KeyValueModified" // maps to AppConfigurationKeyValueModifiedEventData - TypeAppConfigurationSnapshotCreated = "Microsoft.AppConfiguration.SnapshotCreated" // maps to AppConfigurationSnapshotCreatedEventData - TypeAppConfigurationSnapshotModified = "Microsoft.AppConfiguration.SnapshotModified" // maps to AppConfigurationSnapshotModifiedEventData - TypeRedisExportRDBCompleted = "Microsoft.Cache.ExportRDBCompleted" // maps to RedisExportRDBCompletedEventData - TypeRedisImportRDBCompleted = "Microsoft.Cache.ImportRDBCompleted" // maps to RedisImportRDBCompletedEventData - TypeRedisPatchingCompleted = "Microsoft.Cache.PatchingCompleted" // maps to RedisPatchingCompletedEventData - TypeRedisScalingCompleted = "Microsoft.Cache.ScalingCompleted" // maps to RedisScalingCompletedEventData - TypeACSMessageDeliveryStatusUpdated = "Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated" // maps to ACSMessageDeliveryStatusUpdatedEventData - TypeACSMessageReceived = "Microsoft.Communication.AdvancedMessageReceived" // maps to ACSMessageReceivedEventData - TypeACSChatMessageDeleted = "Microsoft.Communication.ChatMessageDeleted" // maps to ACSChatMessageDeletedEventData - TypeACSChatMessageDeletedInThread = "Microsoft.Communication.ChatMessageDeletedInThread" // maps to ACSChatMessageDeletedInThreadEventData - TypeACSChatMessageEdited = "Microsoft.Communication.ChatMessageEdited" // maps to ACSChatMessageEditedEventData - TypeACSChatMessageEditedInThread = "Microsoft.Communication.ChatMessageEditedInThread" // maps to ACSChatMessageEditedInThreadEventData - TypeACSChatMessageReceived = "Microsoft.Communication.ChatMessageReceived" // maps to ACSChatMessageReceivedEventData - TypeACSChatMessageReceivedInThread = "Microsoft.Communication.ChatMessageReceivedInThread" // maps to ACSChatMessageReceivedInThreadEventData - TypeACSChatParticipantAddedToThreadWithUser = "Microsoft.Communication.ChatParticipantAddedToThreadWithUser" // maps to ACSChatParticipantAddedToThreadWithUserEventData - TypeACSChatParticipantRemovedFromThreadWithUser = "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" // maps to ACSChatParticipantRemovedFromThreadWithUserEventData - TypeACSChatThreadCreated = "Microsoft.Communication.ChatThreadCreated" // maps to ACSChatThreadCreatedEventData - TypeACSChatThreadCreatedWithUser = "Microsoft.Communication.ChatThreadCreatedWithUser" // maps to ACSChatThreadCreatedWithUserEventData - TypeACSChatThreadDeleted = "Microsoft.Communication.ChatThreadDeleted" // maps to ACSChatThreadDeletedEventData - TypeACSChatParticipantAddedToThread = "Microsoft.Communication.ChatThreadParticipantAdded" // maps to ACSChatParticipantAddedToThreadEventData - TypeACSChatParticipantRemovedFromThread = "Microsoft.Communication.ChatThreadParticipantRemoved" // maps to ACSChatParticipantRemovedFromThreadEventData - TypeACSChatThreadPropertiesUpdated = "Microsoft.Communication.ChatThreadPropertiesUpdated" // maps to ACSChatThreadPropertiesUpdatedEventData - TypeACSChatThreadPropertiesUpdatedPerUser = "Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser" // maps to ACSChatThreadPropertiesUpdatedPerUserEventData - TypeACSChatThreadWithUserDeleted = "Microsoft.Communication.ChatThreadWithUserDeleted" // maps to ACSChatThreadWithUserDeletedEventData - TypeACSEmailDeliveryReportReceived = "Microsoft.Communication.EmailDeliveryReportReceived" // maps to ACSEmailDeliveryReportReceivedEventData - TypeACSEmailEngagementTrackingReportReceived = "Microsoft.Communication.EmailEngagementTrackingReportReceived" // maps to ACSEmailEngagementTrackingReportReceivedEventData - TypeACSIncomingCall = "Microsoft.Communication.IncomingCall" // maps to ACSIncomingCallEventData - TypeACSRecordingFileStatusUpdated = "Microsoft.Communication.RecordingFileStatusUpdated" // maps to ACSRecordingFileStatusUpdatedEventData - TypeACSRouterJobCancelled = "Microsoft.Communication.RouterJobCancelled" // maps to ACSRouterJobCancelledEventData - TypeACSRouterJobClassificationFailed = "Microsoft.Communication.RouterJobClassificationFailed" // maps to ACSRouterJobClassificationFailedEventData - TypeACSRouterJobClassified = "Microsoft.Communication.RouterJobClassified" // maps to ACSRouterJobClassifiedEventData - TypeACSRouterJobClosed = "Microsoft.Communication.RouterJobClosed" // maps to ACSRouterJobClosedEventData - TypeACSRouterJobCompleted = "Microsoft.Communication.RouterJobCompleted" // maps to ACSRouterJobCompletedEventData - TypeACSRouterJobDeleted = "Microsoft.Communication.RouterJobDeleted" // maps to ACSRouterJobDeletedEventData - TypeACSRouterJobExceptionTriggered = "Microsoft.Communication.RouterJobExceptionTriggered" // maps to ACSRouterJobExceptionTriggeredEventData - TypeACSRouterJobQueued = "Microsoft.Communication.RouterJobQueued" // maps to ACSRouterJobQueuedEventData - TypeACSRouterJobReceived = "Microsoft.Communication.RouterJobReceived" // maps to ACSRouterJobReceivedEventData - TypeACSRouterJobSchedulingFailed = "Microsoft.Communication.RouterJobSchedulingFailed" // maps to ACSRouterJobSchedulingFailedEventData - TypeACSRouterJobUnassigned = "Microsoft.Communication.RouterJobUnassigned" // maps to ACSRouterJobUnassignedEventData - TypeACSRouterJobWaitingForActivation = "Microsoft.Communication.RouterJobWaitingForActivation" // maps to ACSRouterJobWaitingForActivationEventData - TypeACSRouterJobWorkerSelectorsExpired = "Microsoft.Communication.RouterJobWorkerSelectorsExpired" // maps to ACSRouterJobWorkerSelectorsExpiredEventData - TypeACSRouterWorkerDeleted = "Microsoft.Communication.RouterWorkerDeleted" // maps to ACSRouterWorkerDeletedEventData - TypeACSRouterWorkerDeregistered = "Microsoft.Communication.RouterWorkerDeregistered" // maps to ACSRouterWorkerDeregisteredEventData - TypeACSRouterWorkerOfferAccepted = "Microsoft.Communication.RouterWorkerOfferAccepted" // maps to ACSRouterWorkerOfferAcceptedEventData - TypeACSRouterWorkerOfferDeclined = "Microsoft.Communication.RouterWorkerOfferDeclined" // maps to ACSRouterWorkerOfferDeclinedEventData - TypeACSRouterWorkerOfferExpired = "Microsoft.Communication.RouterWorkerOfferExpired" // maps to ACSRouterWorkerOfferExpiredEventData - TypeACSRouterWorkerOfferIssued = "Microsoft.Communication.RouterWorkerOfferIssued" // maps to ACSRouterWorkerOfferIssuedEventData - TypeACSRouterWorkerOfferRevoked = "Microsoft.Communication.RouterWorkerOfferRevoked" // maps to ACSRouterWorkerOfferRevokedEventData - TypeACSRouterWorkerRegistered = "Microsoft.Communication.RouterWorkerRegistered" // maps to ACSRouterWorkerRegisteredEventData - TypeACSRouterWorkerUpdated = "Microsoft.Communication.RouterWorkerUpdated" // maps to ACSRouterWorkerUpdatedEventData - TypeACSSmsDeliveryReportReceived = "Microsoft.Communication.SMSDeliveryReportReceived" // maps to ACSSmsDeliveryReportReceivedEventData - TypeACSSmsReceived = "Microsoft.Communication.SMSReceived" // maps to ACSSmsReceivedEventData - TypeACSUserDisconnected = "Microsoft.Communication.UserDisconnected" // maps to ACSUserDisconnectedEventData - TypeContainerRegistryChartDeleted = "Microsoft.ContainerRegistry.ChartDeleted" // maps to ContainerRegistryChartDeletedEventData - TypeContainerRegistryChartPushed = "Microsoft.ContainerRegistry.ChartPushed" // maps to ContainerRegistryChartPushedEventData - TypeContainerRegistryImageDeleted = "Microsoft.ContainerRegistry.ImageDeleted" // maps to ContainerRegistryImageDeletedEventData - TypeContainerRegistryImagePushed = "Microsoft.ContainerRegistry.ImagePushed" // maps to ContainerRegistryImagePushedEventData - TypeContainerServiceClusterSupportEnded = "Microsoft.ContainerService.ClusterSupportEnded" // maps to ContainerServiceClusterSupportEndedEventData - TypeContainerServiceClusterSupportEnding = "Microsoft.ContainerService.ClusterSupportEnding" // maps to ContainerServiceClusterSupportEndingEventData - TypeContainerServiceNewKubernetesVersionAvailable = "Microsoft.ContainerService.NewKubernetesVersionAvailable" // maps to ContainerServiceNewKubernetesVersionAvailableEventData - TypeContainerServiceNodePoolRollingFailed = "Microsoft.ContainerService.NodePoolRollingFailed" // maps to ContainerServiceNodePoolRollingFailedEventData - TypeContainerServiceNodePoolRollingStarted = "Microsoft.ContainerService.NodePoolRollingStarted" // maps to ContainerServiceNodePoolRollingStartedEventData - TypeContainerServiceNodePoolRollingSucceeded = "Microsoft.ContainerService.NodePoolRollingSucceeded" // maps to ContainerServiceNodePoolRollingSucceededEventData - TypeDataBoxCopyCompleted = "Microsoft.DataBox.CopyCompleted" // maps to DataBoxCopyCompletedEventData - TypeDataBoxCopyStarted = "Microsoft.DataBox.CopyStarted" // maps to DataBoxCopyStartedEventData - TypeDataBoxOrderCompleted = "Microsoft.DataBox.OrderCompleted" // maps to DataBoxOrderCompletedEventData - TypeIOTHubDeviceConnected = "Microsoft.Devices.DeviceConnected" // maps to IOTHubDeviceConnectedEventData - TypeIOTHubDeviceCreated = "Microsoft.Devices.DeviceCreated" // maps to IOTHubDeviceCreatedEventData - TypeIOTHubDeviceDeleted = "Microsoft.Devices.DeviceDeleted" // maps to IOTHubDeviceDeletedEventData - TypeIOTHubDeviceDisconnected = "Microsoft.Devices.DeviceDisconnected" // maps to IOTHubDeviceDisconnectedEventData - TypeIOTHubDeviceTelemetry = "Microsoft.Devices.DeviceTelemetry" // maps to IOTHubDeviceTelemetryEventData - TypeEventGridMQTTClientCreatedOrUpdated = "Microsoft.EventGrid.MQTTClientCreatedOrUpdated" // maps to EventGridMQTTClientCreatedOrUpdatedEventData - TypeEventGridMQTTClientDeleted = "Microsoft.EventGrid.MQTTClientDeleted" // maps to EventGridMQTTClientDeletedEventData - TypeEventGridMQTTClientSessionConnected = "Microsoft.EventGrid.MQTTClientSessionConnected" // maps to EventGridMQTTClientSessionConnectedEventData - TypeEventGridMQTTClientSessionDisconnected = "Microsoft.EventGrid.MQTTClientSessionDisconnected" // maps to EventGridMQTTClientSessionDisconnectedEventData - TypeSubscriptionDeleted = "Microsoft.EventGrid.SubscriptionDeletedEvent" // maps to SubscriptionDeletedEventData - TypeSubscriptionValidation = "Microsoft.EventGrid.SubscriptionValidationEvent" // maps to SubscriptionValidationEventData - TypeEventHubCaptureFileCreated = "Microsoft.EventHub.CaptureFileCreated" // maps to EventHubCaptureFileCreatedEventData - TypeHealthcareDicomImageCreated = "Microsoft.HealthcareApis.DicomImageCreated" // maps to HealthcareDicomImageCreatedEventData - TypeHealthcareDicomImageDeleted = "Microsoft.HealthcareApis.DicomImageDeleted" // maps to HealthcareDicomImageDeletedEventData - TypeHealthcareDicomImageUpdated = "Microsoft.HealthcareApis.DicomImageUpdated" // maps to HealthcareDicomImageUpdatedEventData - TypeHealthcareFHIRResourceCreated = "Microsoft.HealthcareApis.FhirResourceCreated" // maps to HealthcareFHIRResourceCreatedEventData - TypeHealthcareFHIRResourceDeleted = "Microsoft.HealthcareApis.FhirResourceDeleted" // maps to HealthcareFHIRResourceDeletedEventData - TypeHealthcareFHIRResourceUpdated = "Microsoft.HealthcareApis.FhirResourceUpdated" // maps to HealthcareFHIRResourceUpdatedEventData - TypeKeyVaultCertificateExpired = "Microsoft.KeyVault.CertificateExpired" // maps to KeyVaultCertificateExpiredEventData - TypeKeyVaultCertificateNearExpiry = "Microsoft.KeyVault.CertificateNearExpiry" // maps to KeyVaultCertificateNearExpiryEventData - TypeKeyVaultCertificateNewVersionCreated = "Microsoft.KeyVault.CertificateNewVersionCreated" // maps to KeyVaultCertificateNewVersionCreatedEventData - TypeKeyVaultKeyExpired = "Microsoft.KeyVault.KeyExpired" // maps to KeyVaultKeyExpiredEventData - TypeKeyVaultKeyNearExpiry = "Microsoft.KeyVault.KeyNearExpiry" // maps to KeyVaultKeyNearExpiryEventData - TypeKeyVaultKeyNewVersionCreated = "Microsoft.KeyVault.KeyNewVersionCreated" // maps to KeyVaultKeyNewVersionCreatedEventData - TypeKeyVaultSecretExpired = "Microsoft.KeyVault.SecretExpired" // maps to KeyVaultSecretExpiredEventData - TypeKeyVaultSecretNearExpiry = "Microsoft.KeyVault.SecretNearExpiry" // maps to KeyVaultSecretNearExpiryEventData - TypeKeyVaultSecretNewVersionCreated = "Microsoft.KeyVault.SecretNewVersionCreated" // maps to KeyVaultSecretNewVersionCreatedEventData - TypeKeyVaultAccessPolicyChanged = "Microsoft.KeyVault.VaultAccessPolicyChanged" // maps to KeyVaultAccessPolicyChangedEventData - TypeMachineLearningServicesDatasetDriftDetected = "Microsoft.MachineLearningServices.DatasetDriftDetected" // maps to MachineLearningServicesDatasetDriftDetectedEventData - TypeMachineLearningServicesModelDeployed = "Microsoft.MachineLearningServices.ModelDeployed" // maps to MachineLearningServicesModelDeployedEventData - TypeMachineLearningServicesModelRegistered = "Microsoft.MachineLearningServices.ModelRegistered" // maps to MachineLearningServicesModelRegisteredEventData - TypeMachineLearningServicesRunCompleted = "Microsoft.MachineLearningServices.RunCompleted" // maps to MachineLearningServicesRunCompletedEventData - TypeMachineLearningServicesRunStatusChanged = "Microsoft.MachineLearningServices.RunStatusChanged" // maps to MachineLearningServicesRunStatusChangedEventData - TypeMapsGeofenceEntered = "Microsoft.Maps.GeofenceEntered" // maps to MapsGeofenceEnteredEventData - TypeMapsGeofenceExited = "Microsoft.Maps.GeofenceExited" // maps to MapsGeofenceExitedEventData - TypeMapsGeofenceResult = "Microsoft.Maps.GeofenceResult" // maps to MapsGeofenceResultEventData - TypeMediaJobCanceled = "Microsoft.Media.JobCanceled" // maps to MediaJobCanceledEventData - TypeMediaJobCanceling = "Microsoft.Media.JobCanceling" // maps to MediaJobCancelingEventData - TypeMediaJobErrored = "Microsoft.Media.JobErrored" // maps to MediaJobErroredEventData - TypeMediaJobFinished = "Microsoft.Media.JobFinished" // maps to MediaJobFinishedEventData - TypeMediaJobOutputCanceled = "Microsoft.Media.JobOutputCanceled" // maps to MediaJobOutputCanceledEventData - TypeMediaJobOutputCanceling = "Microsoft.Media.JobOutputCanceling" // maps to MediaJobOutputCancelingEventData - TypeMediaJobOutputErrored = "Microsoft.Media.JobOutputErrored" // maps to MediaJobOutputErroredEventData - TypeMediaJobOutputFinished = "Microsoft.Media.JobOutputFinished" // maps to MediaJobOutputFinishedEventData - TypeMediaJobOutputProcessing = "Microsoft.Media.JobOutputProcessing" // maps to MediaJobOutputProcessingEventData - TypeMediaJobOutputProgress = "Microsoft.Media.JobOutputProgress" // maps to MediaJobOutputProgressEventData - TypeMediaJobOutputScheduled = "Microsoft.Media.JobOutputScheduled" // maps to MediaJobOutputScheduledEventData - TypeMediaJobOutputStateChange = "Microsoft.Media.JobOutputStateChange" // maps to MediaJobOutputStateChangeEventData - TypeMediaJobProcessing = "Microsoft.Media.JobProcessing" // maps to MediaJobProcessingEventData - TypeMediaJobScheduled = "Microsoft.Media.JobScheduled" // maps to MediaJobScheduledEventData - TypeMediaJobStateChange = "Microsoft.Media.JobStateChange" // maps to MediaJobStateChangeEventData - TypeMediaLiveEventChannelArchiveHeartbeat = "Microsoft.Media.LiveEventChannelArchiveHeartbeat" // maps to MediaLiveEventChannelArchiveHeartbeatEventData - TypeMediaLiveEventConnectionRejected = "Microsoft.Media.LiveEventConnectionRejected" // maps to MediaLiveEventConnectionRejectedEventData - TypeMediaLiveEventEncoderConnected = "Microsoft.Media.LiveEventEncoderConnected" // maps to MediaLiveEventEncoderConnectedEventData - TypeMediaLiveEventEncoderDisconnected = "Microsoft.Media.LiveEventEncoderDisconnected" // maps to MediaLiveEventEncoderDisconnectedEventData - TypeMediaLiveEventIncomingDataChunkDropped = "Microsoft.Media.LiveEventIncomingDataChunkDropped" // maps to MediaLiveEventIncomingDataChunkDroppedEventData - TypeMediaLiveEventIncomingStreamReceived = "Microsoft.Media.LiveEventIncomingStreamReceived" // maps to MediaLiveEventIncomingStreamReceivedEventData - TypeMediaLiveEventIncomingStreamsOutOfSync = "Microsoft.Media.LiveEventIncomingStreamsOutOfSync" // maps to MediaLiveEventIncomingStreamsOutOfSyncEventData - TypeMediaLiveEventIncomingVideoStreamsOutOfSync = "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync" // maps to MediaLiveEventIncomingVideoStreamsOutOfSyncEventData - TypeMediaLiveEventIngestHeartbeat = "Microsoft.Media.LiveEventIngestHeartbeat" // maps to MediaLiveEventIngestHeartbeatEventData - TypeMediaLiveEventTrackDiscontinuityDetected = "Microsoft.Media.LiveEventTrackDiscontinuityDetected" // maps to MediaLiveEventTrackDiscontinuityDetectedEventData - TypePolicyInsightsPolicyStateChanged = "Microsoft.PolicyInsights.PolicyStateChanged" // maps to PolicyInsightsPolicyStateChangedEventData - TypePolicyInsightsPolicyStateCreated = "Microsoft.PolicyInsights.PolicyStateCreated" // maps to PolicyInsightsPolicyStateCreatedEventData - TypePolicyInsightsPolicyStateDeleted = "Microsoft.PolicyInsights.PolicyStateDeleted" // maps to PolicyInsightsPolicyStateDeletedEventData - TypeResourceNotificationsHealthResourcesAvailabilityStatusChanged = "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged" // maps to ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData - TypeResourceNotificationsHealthResourcesAnnotated = "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" // maps to ResourceNotificationsHealthResourcesAnnotatedEventData - TypeResourceNotificationsResourceManagementCreatedOrUpdated = "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated" // maps to ResourceNotificationsResourceManagementCreatedOrUpdatedEventData - TypeResourceNotificationsResourceManagementDeleted = "Microsoft.ResourceNotifications.Resources.Deleted" // maps to ResourceNotificationsResourceManagementDeletedEventData - TypeResourceActionCancel = "Microsoft.Resources.ResourceActionCancel" // maps to ResourceActionCancelEventData - TypeResourceActionFailure = "Microsoft.Resources.ResourceActionFailure" // maps to ResourceActionFailureEventData - TypeResourceActionSuccess = "Microsoft.Resources.ResourceActionSuccess" // maps to ResourceActionSuccessEventData - TypeResourceDeleteCancel = "Microsoft.Resources.ResourceDeleteCancel" // maps to ResourceDeleteCancelEventData - TypeResourceDeleteFailure = "Microsoft.Resources.ResourceDeleteFailure" // maps to ResourceDeleteFailureEventData - TypeResourceDeleteSuccess = "Microsoft.Resources.ResourceDeleteSuccess" // maps to ResourceDeleteSuccessEventData - TypeResourceWriteCancel = "Microsoft.Resources.ResourceWriteCancel" // maps to ResourceWriteCancelEventData - TypeResourceWriteFailure = "Microsoft.Resources.ResourceWriteFailure" // maps to ResourceWriteFailureEventData - TypeResourceWriteSuccess = "Microsoft.Resources.ResourceWriteSuccess" // maps to ResourceWriteSuccessEventData - TypeServiceBusActiveMessagesAvailablePeriodicNotifications = "Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications" // maps to ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData - TypeServiceBusActiveMessagesAvailableWithNoListeners = "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners" // maps to ServiceBusActiveMessagesAvailableWithNoListenersEventData - TypeServiceBusDeadletterMessagesAvailablePeriodicNotifications = "Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications" // maps to ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData - TypeServiceBusDeadletterMessagesAvailableWithNoListeners = "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" // maps to ServiceBusDeadletterMessagesAvailableWithNoListenersEventData - TypeSignalRServiceClientConnectionConnected = "Microsoft.SignalRService.ClientConnectionConnected" // maps to SignalRServiceClientConnectionConnectedEventData - TypeSignalRServiceClientConnectionDisconnected = "Microsoft.SignalRService.ClientConnectionDisconnected" // maps to SignalRServiceClientConnectionDisconnectedEventData - TypeStorageAsyncOperationInitiated = "Microsoft.Storage.AsyncOperationInitiated" // maps to StorageAsyncOperationInitiatedEventData - TypeStorageBlobCreated = "Microsoft.Storage.BlobCreated" // maps to StorageBlobCreatedEventData - TypeStorageBlobDeleted = "Microsoft.Storage.BlobDeleted" // maps to StorageBlobDeletedEventData - TypeStorageBlobInventoryPolicyCompleted = "Microsoft.Storage.BlobInventoryPolicyCompleted" // maps to StorageBlobInventoryPolicyCompletedEventData - TypeStorageBlobRenamed = "Microsoft.Storage.BlobRenamed" // maps to StorageBlobRenamedEventData - TypeStorageBlobTierChanged = "Microsoft.Storage.BlobTierChanged" // maps to StorageBlobTierChangedEventData - TypeStorageDirectoryCreated = "Microsoft.Storage.DirectoryCreated" // maps to StorageDirectoryCreatedEventData - TypeStorageDirectoryDeleted = "Microsoft.Storage.DirectoryDeleted" // maps to StorageDirectoryDeletedEventData - TypeStorageDirectoryRenamed = "Microsoft.Storage.DirectoryRenamed" // maps to StorageDirectoryRenamedEventData - TypeStorageLifecyclePolicyCompleted = "Microsoft.Storage.LifecyclePolicyCompleted" // maps to StorageLifecyclePolicyCompletedEventData - TypeStorageTaskAssignmentCompleted = "Microsoft.Storage.StorageTaskAssignmentCompleted" // maps to StorageTaskAssignmentCompletedEventData - TypeStorageTaskAssignmentQueued = "Microsoft.Storage.StorageTaskAssignmentQueued" // maps to StorageTaskAssignmentQueuedEventData - TypeStorageTaskCompleted = "Microsoft.Storage.StorageTaskCompleted" // maps to StorageTaskCompletedEventData - TypeStorageTaskQueued = "Microsoft.Storage.StorageTaskQueued" // maps to StorageTaskQueuedEventData - TypeWebAppServicePlanUpdated = "Microsoft.Web.AppServicePlanUpdated" // maps to WebAppServicePlanUpdatedEventData - TypeWebAppUpdated = "Microsoft.Web.AppUpdated" // maps to WebAppUpdatedEventData - TypeWebBackupOperationCompleted = "Microsoft.Web.BackupOperationCompleted" // maps to WebBackupOperationCompletedEventData - TypeWebBackupOperationFailed = "Microsoft.Web.BackupOperationFailed" // maps to WebBackupOperationFailedEventData - TypeWebBackupOperationStarted = "Microsoft.Web.BackupOperationStarted" // maps to WebBackupOperationStartedEventData - TypeWebRestoreOperationCompleted = "Microsoft.Web.RestoreOperationCompleted" // maps to WebRestoreOperationCompletedEventData - TypeWebRestoreOperationFailed = "Microsoft.Web.RestoreOperationFailed" // maps to WebRestoreOperationFailedEventData - TypeWebRestoreOperationStarted = "Microsoft.Web.RestoreOperationStarted" // maps to WebRestoreOperationStartedEventData - TypeWebSlotSwapCompleted = "Microsoft.Web.SlotSwapCompleted" // maps to WebSlotSwapCompletedEventData - TypeWebSlotSwapFailed = "Microsoft.Web.SlotSwapFailed" // maps to WebSlotSwapFailedEventData - TypeWebSlotSwapStarted = "Microsoft.Web.SlotSwapStarted" // maps to WebSlotSwapStartedEventData - TypeWebSlotSwapWithPreviewCancelled = "Microsoft.Web.SlotSwapWithPreviewCancelled" // maps to WebSlotSwapWithPreviewCancelledEventData - TypeWebSlotSwapWithPreviewStarted = "Microsoft.Web.SlotSwapWithPreviewStarted" // maps to WebSlotSwapWithPreviewStartedEventData + TypeAVSClusterCreated = "Microsoft.AVS.ClusterCreated" // maps to AVSClusterCreatedEventData + TypeAVSClusterDeleted = "Microsoft.AVS.ClusterDeleted" // maps to AVSClusterDeletedEventData + TypeAVSClusterFailed = "Microsoft.AVS.ClusterFailed" // maps to AVSClusterFailedEventData + TypeAVSClusterUpdated = "Microsoft.AVS.ClusterUpdated" // maps to AVSClusterUpdatedEventData + TypeAVSClusterUpdating = "Microsoft.AVS.ClusterUpdating" // maps to AVSClusterUpdatingEventData + TypeAVSPrivateCloudFailed = "Microsoft.AVS.PrivateCloudFailed" // maps to AVSPrivateCloudFailedEventData + TypeAVSPrivateCloudUpdated = "Microsoft.AVS.PrivateCloudUpdated" // maps to AVSPrivateCloudUpdatedEventData + TypeAVSPrivateCloudUpdating = "Microsoft.AVS.PrivateCloudUpdating" // maps to AVSPrivateCloudUpdatingEventData + TypeAVSScriptExecutionCancelled = "Microsoft.AVS.ScriptExecutionCancelled" // maps to AVSScriptExecutionCancelledEventData + TypeAVSScriptExecutionFailed = "Microsoft.AVS.ScriptExecutionFailed" // maps to AVSScriptExecutionFailedEventData + TypeAVSScriptExecutionFinished = "Microsoft.AVS.ScriptExecutionFinished" // maps to AVSScriptExecutionFinishedEventData + TypeAVSScriptExecutionStarted = "Microsoft.AVS.ScriptExecutionStarted" // maps to AVSScriptExecutionStartedEventData + TypeAPICenterAPIDefinitionAdded = "Microsoft.ApiCenter.ApiDefinitionAdded" // maps to APICenterAPIDefinitionAddedEventData + TypeAPICenterAPIDefinitionUpdated = "Microsoft.ApiCenter.ApiDefinitionUpdated" // maps to APICenterAPIDefinitionUpdatedEventData + TypeAPIManagementAPICreated = "Microsoft.ApiManagement.APICreated" // maps to APIManagementAPICreatedEventData + TypeAPIManagementAPIDeleted = "Microsoft.ApiManagement.APIDeleted" // maps to APIManagementAPIDeletedEventData + TypeAPIManagementAPIReleaseCreated = "Microsoft.ApiManagement.APIReleaseCreated" // maps to APIManagementAPIReleaseCreatedEventData + TypeAPIManagementAPIReleaseDeleted = "Microsoft.ApiManagement.APIReleaseDeleted" // maps to APIManagementAPIReleaseDeletedEventData + TypeAPIManagementAPIReleaseUpdated = "Microsoft.ApiManagement.APIReleaseUpdated" // maps to APIManagementAPIReleaseUpdatedEventData + TypeAPIManagementAPIUpdated = "Microsoft.ApiManagement.APIUpdated" // maps to APIManagementAPIUpdatedEventData + TypeAPIManagementGatewayAPIAdded = "Microsoft.ApiManagement.GatewayAPIAdded" // maps to APIManagementGatewayAPIAddedEventData + TypeAPIManagementGatewayAPIRemoved = "Microsoft.ApiManagement.GatewayAPIRemoved" // maps to APIManagementGatewayAPIRemovedEventData + TypeAPIManagementGatewayCertificateAuthorityCreated = "Microsoft.ApiManagement.GatewayCertificateAuthorityCreated" // maps to APIManagementGatewayCertificateAuthorityCreatedEventData + TypeAPIManagementGatewayCertificateAuthorityDeleted = "Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted" // maps to APIManagementGatewayCertificateAuthorityDeletedEventData + TypeAPIManagementGatewayCertificateAuthorityUpdated = "Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated" // maps to APIManagementGatewayCertificateAuthorityUpdatedEventData + TypeAPIManagementGatewayCreated = "Microsoft.ApiManagement.GatewayCreated" // maps to APIManagementGatewayCreatedEventData + TypeAPIManagementGatewayDeleted = "Microsoft.ApiManagement.GatewayDeleted" // maps to APIManagementGatewayDeletedEventData + TypeAPIManagementGatewayHostnameConfigurationCreated = "Microsoft.ApiManagement.GatewayHostnameConfigurationCreated" // maps to APIManagementGatewayHostnameConfigurationCreatedEventData + TypeAPIManagementGatewayHostnameConfigurationDeleted = "Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted" // maps to APIManagementGatewayHostnameConfigurationDeletedEventData + TypeAPIManagementGatewayHostnameConfigurationUpdated = "Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated" // maps to APIManagementGatewayHostnameConfigurationUpdatedEventData + TypeAPIManagementGatewayUpdated = "Microsoft.ApiManagement.GatewayUpdated" // maps to APIManagementGatewayUpdatedEventData + TypeAPIManagementProductCreated = "Microsoft.ApiManagement.ProductCreated" // maps to APIManagementProductCreatedEventData + TypeAPIManagementProductDeleted = "Microsoft.ApiManagement.ProductDeleted" // maps to APIManagementProductDeletedEventData + TypeAPIManagementProductUpdated = "Microsoft.ApiManagement.ProductUpdated" // maps to APIManagementProductUpdatedEventData + TypeAPIManagementSubscriptionCreated = "Microsoft.ApiManagement.SubscriptionCreated" // maps to APIManagementSubscriptionCreatedEventData + TypeAPIManagementSubscriptionDeleted = "Microsoft.ApiManagement.SubscriptionDeleted" // maps to APIManagementSubscriptionDeletedEventData + TypeAPIManagementSubscriptionUpdated = "Microsoft.ApiManagement.SubscriptionUpdated" // maps to APIManagementSubscriptionUpdatedEventData + TypeAPIManagementUserCreated = "Microsoft.ApiManagement.UserCreated" // maps to APIManagementUserCreatedEventData + TypeAPIManagementUserDeleted = "Microsoft.ApiManagement.UserDeleted" // maps to APIManagementUserDeletedEventData + TypeAPIManagementUserUpdated = "Microsoft.ApiManagement.UserUpdated" // maps to APIManagementUserUpdatedEventData + TypeAppConfigurationKeyValueDeleted = "Microsoft.AppConfiguration.KeyValueDeleted" // maps to AppConfigurationKeyValueDeletedEventData + TypeAppConfigurationKeyValueModified = "Microsoft.AppConfiguration.KeyValueModified" // maps to AppConfigurationKeyValueModifiedEventData + TypeAppConfigurationSnapshotCreated = "Microsoft.AppConfiguration.SnapshotCreated" // maps to AppConfigurationSnapshotCreatedEventData + TypeAppConfigurationSnapshotModified = "Microsoft.AppConfiguration.SnapshotModified" // maps to AppConfigurationSnapshotModifiedEventData + TypeRedisExportRDBCompleted = "Microsoft.Cache.ExportRDBCompleted" // maps to RedisExportRDBCompletedEventData + TypeRedisImportRDBCompleted = "Microsoft.Cache.ImportRDBCompleted" // maps to RedisImportRDBCompletedEventData + TypeRedisPatchingCompleted = "Microsoft.Cache.PatchingCompleted" // maps to RedisPatchingCompletedEventData + TypeRedisScalingCompleted = "Microsoft.Cache.ScalingCompleted" // maps to RedisScalingCompletedEventData + TypeACSMessageDeliveryStatusUpdated = "Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated" // maps to ACSMessageDeliveryStatusUpdatedEventData + TypeACSMessageReceived = "Microsoft.Communication.AdvancedMessageReceived" // maps to ACSMessageReceivedEventData + TypeACSChatMessageDeleted = "Microsoft.Communication.ChatMessageDeleted" // maps to ACSChatMessageDeletedEventData + TypeACSChatMessageDeletedInThread = "Microsoft.Communication.ChatMessageDeletedInThread" // maps to ACSChatMessageDeletedInThreadEventData + TypeACSChatMessageEdited = "Microsoft.Communication.ChatMessageEdited" // maps to ACSChatMessageEditedEventData + TypeACSChatMessageEditedInThread = "Microsoft.Communication.ChatMessageEditedInThread" // maps to ACSChatMessageEditedInThreadEventData + TypeACSChatMessageReceived = "Microsoft.Communication.ChatMessageReceived" // maps to ACSChatMessageReceivedEventData + TypeACSChatMessageReceivedInThread = "Microsoft.Communication.ChatMessageReceivedInThread" // maps to ACSChatMessageReceivedInThreadEventData + TypeACSChatParticipantAddedToThreadWithUser = "Microsoft.Communication.ChatParticipantAddedToThreadWithUser" // maps to ACSChatParticipantAddedToThreadWithUserEventData + TypeACSChatParticipantRemovedFromThreadWithUser = "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" // maps to ACSChatParticipantRemovedFromThreadWithUserEventData + TypeACSChatThreadCreated = "Microsoft.Communication.ChatThreadCreated" // maps to ACSChatThreadCreatedEventData + TypeACSChatThreadCreatedWithUser = "Microsoft.Communication.ChatThreadCreatedWithUser" // maps to ACSChatThreadCreatedWithUserEventData + TypeACSChatThreadDeleted = "Microsoft.Communication.ChatThreadDeleted" // maps to ACSChatThreadDeletedEventData + TypeACSChatParticipantAddedToThread = "Microsoft.Communication.ChatThreadParticipantAdded" // maps to ACSChatParticipantAddedToThreadEventData + TypeACSChatParticipantRemovedFromThread = "Microsoft.Communication.ChatThreadParticipantRemoved" // maps to ACSChatParticipantRemovedFromThreadEventData + TypeACSChatThreadPropertiesUpdated = "Microsoft.Communication.ChatThreadPropertiesUpdated" // maps to ACSChatThreadPropertiesUpdatedEventData + TypeACSChatThreadPropertiesUpdatedPerUser = "Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser" // maps to ACSChatThreadPropertiesUpdatedPerUserEventData + TypeACSChatThreadWithUserDeleted = "Microsoft.Communication.ChatThreadWithUserDeleted" // maps to ACSChatThreadWithUserDeletedEventData + TypeACSEmailDeliveryReportReceived = "Microsoft.Communication.EmailDeliveryReportReceived" // maps to ACSEmailDeliveryReportReceivedEventData + TypeACSEmailEngagementTrackingReportReceived = "Microsoft.Communication.EmailEngagementTrackingReportReceived" // maps to ACSEmailEngagementTrackingReportReceivedEventData + TypeACSIncomingCall = "Microsoft.Communication.IncomingCall" // maps to ACSIncomingCallEventData + TypeACSRecordingFileStatusUpdated = "Microsoft.Communication.RecordingFileStatusUpdated" // maps to ACSRecordingFileStatusUpdatedEventData + TypeACSRouterJobCancelled = "Microsoft.Communication.RouterJobCancelled" // maps to ACSRouterJobCancelledEventData + TypeACSRouterJobClassificationFailed = "Microsoft.Communication.RouterJobClassificationFailed" // maps to ACSRouterJobClassificationFailedEventData + TypeACSRouterJobClassified = "Microsoft.Communication.RouterJobClassified" // maps to ACSRouterJobClassifiedEventData + TypeACSRouterJobClosed = "Microsoft.Communication.RouterJobClosed" // maps to ACSRouterJobClosedEventData + TypeACSRouterJobCompleted = "Microsoft.Communication.RouterJobCompleted" // maps to ACSRouterJobCompletedEventData + TypeACSRouterJobDeleted = "Microsoft.Communication.RouterJobDeleted" // maps to ACSRouterJobDeletedEventData + TypeACSRouterJobExceptionTriggered = "Microsoft.Communication.RouterJobExceptionTriggered" // maps to ACSRouterJobExceptionTriggeredEventData + TypeACSRouterJobQueued = "Microsoft.Communication.RouterJobQueued" // maps to ACSRouterJobQueuedEventData + TypeACSRouterJobReceived = "Microsoft.Communication.RouterJobReceived" // maps to ACSRouterJobReceivedEventData + TypeACSRouterJobSchedulingFailed = "Microsoft.Communication.RouterJobSchedulingFailed" // maps to ACSRouterJobSchedulingFailedEventData + TypeACSRouterJobUnassigned = "Microsoft.Communication.RouterJobUnassigned" // maps to ACSRouterJobUnassignedEventData + TypeACSRouterJobWaitingForActivation = "Microsoft.Communication.RouterJobWaitingForActivation" // maps to ACSRouterJobWaitingForActivationEventData + TypeACSRouterJobWorkerSelectorsExpired = "Microsoft.Communication.RouterJobWorkerSelectorsExpired" // maps to ACSRouterJobWorkerSelectorsExpiredEventData + TypeACSRouterWorkerDeleted = "Microsoft.Communication.RouterWorkerDeleted" // maps to ACSRouterWorkerDeletedEventData + TypeACSRouterWorkerDeregistered = "Microsoft.Communication.RouterWorkerDeregistered" // maps to ACSRouterWorkerDeregisteredEventData + TypeACSRouterWorkerOfferAccepted = "Microsoft.Communication.RouterWorkerOfferAccepted" // maps to ACSRouterWorkerOfferAcceptedEventData + TypeACSRouterWorkerOfferDeclined = "Microsoft.Communication.RouterWorkerOfferDeclined" // maps to ACSRouterWorkerOfferDeclinedEventData + TypeACSRouterWorkerOfferExpired = "Microsoft.Communication.RouterWorkerOfferExpired" // maps to ACSRouterWorkerOfferExpiredEventData + TypeACSRouterWorkerOfferIssued = "Microsoft.Communication.RouterWorkerOfferIssued" // maps to ACSRouterWorkerOfferIssuedEventData + TypeACSRouterWorkerOfferRevoked = "Microsoft.Communication.RouterWorkerOfferRevoked" // maps to ACSRouterWorkerOfferRevokedEventData + TypeACSRouterWorkerRegistered = "Microsoft.Communication.RouterWorkerRegistered" // maps to ACSRouterWorkerRegisteredEventData + TypeACSRouterWorkerUpdated = "Microsoft.Communication.RouterWorkerUpdated" // maps to ACSRouterWorkerUpdatedEventData + TypeACSSmsDeliveryReportReceived = "Microsoft.Communication.SMSDeliveryReportReceived" // maps to ACSSmsDeliveryReportReceivedEventData + TypeACSSmsReceived = "Microsoft.Communication.SMSReceived" // maps to ACSSmsReceivedEventData + TypeACSUserDisconnected = "Microsoft.Communication.UserDisconnected" // maps to ACSUserDisconnectedEventData + TypeContainerRegistryChartDeleted = "Microsoft.ContainerRegistry.ChartDeleted" // maps to ContainerRegistryChartDeletedEventData + TypeContainerRegistryChartPushed = "Microsoft.ContainerRegistry.ChartPushed" // maps to ContainerRegistryChartPushedEventData + TypeContainerRegistryImageDeleted = "Microsoft.ContainerRegistry.ImageDeleted" // maps to ContainerRegistryImageDeletedEventData + TypeContainerRegistryImagePushed = "Microsoft.ContainerRegistry.ImagePushed" // maps to ContainerRegistryImagePushedEventData + TypeContainerServiceClusterSupportEnded = "Microsoft.ContainerService.ClusterSupportEnded" // maps to ContainerServiceClusterSupportEndedEventData + TypeContainerServiceClusterSupportEnding = "Microsoft.ContainerService.ClusterSupportEnding" // maps to ContainerServiceClusterSupportEndingEventData + TypeContainerServiceNewKubernetesVersionAvailable = "Microsoft.ContainerService.NewKubernetesVersionAvailable" // maps to ContainerServiceNewKubernetesVersionAvailableEventData + TypeContainerServiceNodePoolRollingFailed = "Microsoft.ContainerService.NodePoolRollingFailed" // maps to ContainerServiceNodePoolRollingFailedEventData + TypeContainerServiceNodePoolRollingStarted = "Microsoft.ContainerService.NodePoolRollingStarted" // maps to ContainerServiceNodePoolRollingStartedEventData + TypeContainerServiceNodePoolRollingSucceeded = "Microsoft.ContainerService.NodePoolRollingSucceeded" // maps to ContainerServiceNodePoolRollingSucceededEventData + TypeDataBoxCopyCompleted = "Microsoft.DataBox.CopyCompleted" // maps to DataBoxCopyCompletedEventData + TypeDataBoxCopyStarted = "Microsoft.DataBox.CopyStarted" // maps to DataBoxCopyStartedEventData + TypeDataBoxOrderCompleted = "Microsoft.DataBox.OrderCompleted" // maps to DataBoxOrderCompletedEventData + TypeIOTHubDeviceConnected = "Microsoft.Devices.DeviceConnected" // maps to IOTHubDeviceConnectedEventData + TypeIOTHubDeviceCreated = "Microsoft.Devices.DeviceCreated" // maps to IOTHubDeviceCreatedEventData + TypeIOTHubDeviceDeleted = "Microsoft.Devices.DeviceDeleted" // maps to IOTHubDeviceDeletedEventData + TypeIOTHubDeviceDisconnected = "Microsoft.Devices.DeviceDisconnected" // maps to IOTHubDeviceDisconnectedEventData + TypeIOTHubDeviceTelemetry = "Microsoft.Devices.DeviceTelemetry" // maps to IOTHubDeviceTelemetryEventData + TypeEventGridMQTTClientCreatedOrUpdated = "Microsoft.EventGrid.MQTTClientCreatedOrUpdated" // maps to EventGridMQTTClientCreatedOrUpdatedEventData + TypeEventGridMQTTClientDeleted = "Microsoft.EventGrid.MQTTClientDeleted" // maps to EventGridMQTTClientDeletedEventData + TypeEventGridMQTTClientSessionConnected = "Microsoft.EventGrid.MQTTClientSessionConnected" // maps to EventGridMQTTClientSessionConnectedEventData + TypeEventGridMQTTClientSessionDisconnected = "Microsoft.EventGrid.MQTTClientSessionDisconnected" // maps to EventGridMQTTClientSessionDisconnectedEventData + TypeSubscriptionDeleted = "Microsoft.EventGrid.SubscriptionDeletedEvent" // maps to SubscriptionDeletedEventData + TypeSubscriptionValidation = "Microsoft.EventGrid.SubscriptionValidationEvent" // maps to SubscriptionValidationEventData + TypeEventHubCaptureFileCreated = "Microsoft.EventHub.CaptureFileCreated" // maps to EventHubCaptureFileCreatedEventData + TypeHealthcareDicomImageCreated = "Microsoft.HealthcareApis.DicomImageCreated" // maps to HealthcareDicomImageCreatedEventData + TypeHealthcareDicomImageDeleted = "Microsoft.HealthcareApis.DicomImageDeleted" // maps to HealthcareDicomImageDeletedEventData + TypeHealthcareDicomImageUpdated = "Microsoft.HealthcareApis.DicomImageUpdated" // maps to HealthcareDicomImageUpdatedEventData + TypeHealthcareFHIRResourceCreated = "Microsoft.HealthcareApis.FhirResourceCreated" // maps to HealthcareFHIRResourceCreatedEventData + TypeHealthcareFHIRResourceDeleted = "Microsoft.HealthcareApis.FhirResourceDeleted" // maps to HealthcareFHIRResourceDeletedEventData + TypeHealthcareFHIRResourceUpdated = "Microsoft.HealthcareApis.FhirResourceUpdated" // maps to HealthcareFHIRResourceUpdatedEventData + TypeKeyVaultCertificateExpired = "Microsoft.KeyVault.CertificateExpired" // maps to KeyVaultCertificateExpiredEventData + TypeKeyVaultCertificateNearExpiry = "Microsoft.KeyVault.CertificateNearExpiry" // maps to KeyVaultCertificateNearExpiryEventData + TypeKeyVaultCertificateNewVersionCreated = "Microsoft.KeyVault.CertificateNewVersionCreated" // maps to KeyVaultCertificateNewVersionCreatedEventData + TypeKeyVaultKeyExpired = "Microsoft.KeyVault.KeyExpired" // maps to KeyVaultKeyExpiredEventData + TypeKeyVaultKeyNearExpiry = "Microsoft.KeyVault.KeyNearExpiry" // maps to KeyVaultKeyNearExpiryEventData + TypeKeyVaultKeyNewVersionCreated = "Microsoft.KeyVault.KeyNewVersionCreated" // maps to KeyVaultKeyNewVersionCreatedEventData + TypeKeyVaultSecretExpired = "Microsoft.KeyVault.SecretExpired" // maps to KeyVaultSecretExpiredEventData + TypeKeyVaultSecretNearExpiry = "Microsoft.KeyVault.SecretNearExpiry" // maps to KeyVaultSecretNearExpiryEventData + TypeKeyVaultSecretNewVersionCreated = "Microsoft.KeyVault.SecretNewVersionCreated" // maps to KeyVaultSecretNewVersionCreatedEventData + TypeKeyVaultAccessPolicyChanged = "Microsoft.KeyVault.VaultAccessPolicyChanged" // maps to KeyVaultAccessPolicyChangedEventData + TypeMachineLearningServicesDatasetDriftDetected = "Microsoft.MachineLearningServices.DatasetDriftDetected" // maps to MachineLearningServicesDatasetDriftDetectedEventData + TypeMachineLearningServicesModelDeployed = "Microsoft.MachineLearningServices.ModelDeployed" // maps to MachineLearningServicesModelDeployedEventData + TypeMachineLearningServicesModelRegistered = "Microsoft.MachineLearningServices.ModelRegistered" // maps to MachineLearningServicesModelRegisteredEventData + TypeMachineLearningServicesRunCompleted = "Microsoft.MachineLearningServices.RunCompleted" // maps to MachineLearningServicesRunCompletedEventData + TypeMachineLearningServicesRunStatusChanged = "Microsoft.MachineLearningServices.RunStatusChanged" // maps to MachineLearningServicesRunStatusChangedEventData + TypeMapsGeofenceEntered = "Microsoft.Maps.GeofenceEntered" // maps to MapsGeofenceEnteredEventData + TypeMapsGeofenceExited = "Microsoft.Maps.GeofenceExited" // maps to MapsGeofenceExitedEventData + TypeMapsGeofenceResult = "Microsoft.Maps.GeofenceResult" // maps to MapsGeofenceResultEventData + TypeMediaJobCanceled = "Microsoft.Media.JobCanceled" // maps to MediaJobCanceledEventData + TypeMediaJobCanceling = "Microsoft.Media.JobCanceling" // maps to MediaJobCancelingEventData + TypeMediaJobErrored = "Microsoft.Media.JobErrored" // maps to MediaJobErroredEventData + TypeMediaJobFinished = "Microsoft.Media.JobFinished" // maps to MediaJobFinishedEventData + TypeMediaJobOutputCanceled = "Microsoft.Media.JobOutputCanceled" // maps to MediaJobOutputCanceledEventData + TypeMediaJobOutputCanceling = "Microsoft.Media.JobOutputCanceling" // maps to MediaJobOutputCancelingEventData + TypeMediaJobOutputErrored = "Microsoft.Media.JobOutputErrored" // maps to MediaJobOutputErroredEventData + TypeMediaJobOutputFinished = "Microsoft.Media.JobOutputFinished" // maps to MediaJobOutputFinishedEventData + TypeMediaJobOutputProcessing = "Microsoft.Media.JobOutputProcessing" // maps to MediaJobOutputProcessingEventData + TypeMediaJobOutputProgress = "Microsoft.Media.JobOutputProgress" // maps to MediaJobOutputProgressEventData + TypeMediaJobOutputScheduled = "Microsoft.Media.JobOutputScheduled" // maps to MediaJobOutputScheduledEventData + TypeMediaJobProcessing = "Microsoft.Media.JobProcessing" // maps to MediaJobProcessingEventData + TypeMediaJobScheduled = "Microsoft.Media.JobScheduled" // maps to MediaJobScheduledEventData + TypeMediaLiveEventChannelArchiveHeartbeat = "Microsoft.Media.LiveEventChannelArchiveHeartbeat" // maps to MediaLiveEventChannelArchiveHeartbeatEventData + TypeMediaLiveEventConnectionRejected = "Microsoft.Media.LiveEventConnectionRejected" // maps to MediaLiveEventConnectionRejectedEventData + TypeMediaLiveEventEncoderConnected = "Microsoft.Media.LiveEventEncoderConnected" // maps to MediaLiveEventEncoderConnectedEventData + TypeMediaLiveEventEncoderDisconnected = "Microsoft.Media.LiveEventEncoderDisconnected" // maps to MediaLiveEventEncoderDisconnectedEventData + TypeMediaLiveEventIncomingDataChunkDropped = "Microsoft.Media.LiveEventIncomingDataChunkDropped" // maps to MediaLiveEventIncomingDataChunkDroppedEventData + TypeMediaLiveEventIncomingStreamReceived = "Microsoft.Media.LiveEventIncomingStreamReceived" // maps to MediaLiveEventIncomingStreamReceivedEventData + TypeMediaLiveEventIncomingStreamsOutOfSync = "Microsoft.Media.LiveEventIncomingStreamsOutOfSync" // maps to MediaLiveEventIncomingStreamsOutOfSyncEventData + TypeMediaLiveEventIncomingVideoStreamsOutOfSync = "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync" // maps to MediaLiveEventIncomingVideoStreamsOutOfSyncEventData + TypeMediaLiveEventIngestHeartbeat = "Microsoft.Media.LiveEventIngestHeartbeat" // maps to MediaLiveEventIngestHeartbeatEventData + TypeMediaLiveEventTrackDiscontinuityDetected = "Microsoft.Media.LiveEventTrackDiscontinuityDetected" // maps to MediaLiveEventTrackDiscontinuityDetectedEventData + TypePolicyInsightsPolicyStateChanged = "Microsoft.PolicyInsights.PolicyStateChanged" // maps to PolicyInsightsPolicyStateChangedEventData + TypePolicyInsightsPolicyStateCreated = "Microsoft.PolicyInsights.PolicyStateCreated" // maps to PolicyInsightsPolicyStateCreatedEventData + TypePolicyInsightsPolicyStateDeleted = "Microsoft.PolicyInsights.PolicyStateDeleted" // maps to PolicyInsightsPolicyStateDeletedEventData + TypeResourceNotificationsContainerServiceEventResourcesScheduled = "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted" // maps to ResourceNotificationsContainerServiceEventResourcesScheduledEventData + TypeResourceNotificationsHealthResourcesAvailabilityStatusChanged = "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged" // maps to ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData + TypeResourceNotificationsHealthResourcesAnnotated = "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" // maps to ResourceNotificationsHealthResourcesAnnotatedEventData + TypeResourceNotificationsResourceManagementCreatedOrUpdated = "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated" // maps to ResourceNotificationsResourceManagementCreatedOrUpdatedEventData + TypeResourceNotificationsResourceManagementDeleted = "Microsoft.ResourceNotifications.Resources.Deleted" // maps to ResourceNotificationsResourceManagementDeletedEventData + TypeResourceActionCancel = "Microsoft.Resources.ResourceActionCancel" // maps to ResourceActionCancelEventData + TypeResourceActionFailure = "Microsoft.Resources.ResourceActionFailure" // maps to ResourceActionFailureEventData + TypeResourceActionSuccess = "Microsoft.Resources.ResourceActionSuccess" // maps to ResourceActionSuccessEventData + TypeResourceDeleteCancel = "Microsoft.Resources.ResourceDeleteCancel" // maps to ResourceDeleteCancelEventData + TypeResourceDeleteFailure = "Microsoft.Resources.ResourceDeleteFailure" // maps to ResourceDeleteFailureEventData + TypeResourceDeleteSuccess = "Microsoft.Resources.ResourceDeleteSuccess" // maps to ResourceDeleteSuccessEventData + TypeResourceWriteCancel = "Microsoft.Resources.ResourceWriteCancel" // maps to ResourceWriteCancelEventData + TypeResourceWriteFailure = "Microsoft.Resources.ResourceWriteFailure" // maps to ResourceWriteFailureEventData + TypeResourceWriteSuccess = "Microsoft.Resources.ResourceWriteSuccess" // maps to ResourceWriteSuccessEventData + TypeServiceBusActiveMessagesAvailablePeriodicNotifications = "Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications" // maps to ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData + TypeServiceBusActiveMessagesAvailableWithNoListeners = "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners" // maps to ServiceBusActiveMessagesAvailableWithNoListenersEventData + TypeServiceBusDeadletterMessagesAvailablePeriodicNotifications = "Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications" // maps to ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData + TypeServiceBusDeadletterMessagesAvailableWithNoListeners = "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" // maps to ServiceBusDeadletterMessagesAvailableWithNoListenersEventData + TypeSignalRServiceClientConnectionConnected = "Microsoft.SignalRService.ClientConnectionConnected" // maps to SignalRServiceClientConnectionConnectedEventData + TypeSignalRServiceClientConnectionDisconnected = "Microsoft.SignalRService.ClientConnectionDisconnected" // maps to SignalRServiceClientConnectionDisconnectedEventData + TypeStorageAsyncOperationInitiated = "Microsoft.Storage.AsyncOperationInitiated" // maps to StorageAsyncOperationInitiatedEventData + TypeStorageBlobCreated = "Microsoft.Storage.BlobCreated" // maps to StorageBlobCreatedEventData + TypeStorageBlobDeleted = "Microsoft.Storage.BlobDeleted" // maps to StorageBlobDeletedEventData + TypeStorageBlobInventoryPolicyCompleted = "Microsoft.Storage.BlobInventoryPolicyCompleted" // maps to StorageBlobInventoryPolicyCompletedEventData + TypeStorageBlobRenamed = "Microsoft.Storage.BlobRenamed" // maps to StorageBlobRenamedEventData + TypeStorageBlobTierChanged = "Microsoft.Storage.BlobTierChanged" // maps to StorageBlobTierChangedEventData + TypeStorageDirectoryCreated = "Microsoft.Storage.DirectoryCreated" // maps to StorageDirectoryCreatedEventData + TypeStorageDirectoryDeleted = "Microsoft.Storage.DirectoryDeleted" // maps to StorageDirectoryDeletedEventData + TypeStorageDirectoryRenamed = "Microsoft.Storage.DirectoryRenamed" // maps to StorageDirectoryRenamedEventData + TypeStorageLifecyclePolicyCompleted = "Microsoft.Storage.LifecyclePolicyCompleted" // maps to StorageLifecyclePolicyCompletedEventData + TypeStorageTaskAssignmentCompleted = "Microsoft.Storage.StorageTaskAssignmentCompleted" // maps to StorageTaskAssignmentCompletedEventData + TypeStorageTaskAssignmentQueued = "Microsoft.Storage.StorageTaskAssignmentQueued" // maps to StorageTaskAssignmentQueuedEventData + TypeStorageTaskCompleted = "Microsoft.Storage.StorageTaskCompleted" // maps to StorageTaskCompletedEventData + TypeStorageTaskQueued = "Microsoft.Storage.StorageTaskQueued" // maps to StorageTaskQueuedEventData + TypeWebAppServicePlanUpdated = "Microsoft.Web.AppServicePlanUpdated" // maps to WebAppServicePlanUpdatedEventData + TypeWebAppUpdated = "Microsoft.Web.AppUpdated" // maps to WebAppUpdatedEventData + TypeWebBackupOperationCompleted = "Microsoft.Web.BackupOperationCompleted" // maps to WebBackupOperationCompletedEventData + TypeWebBackupOperationFailed = "Microsoft.Web.BackupOperationFailed" // maps to WebBackupOperationFailedEventData + TypeWebBackupOperationStarted = "Microsoft.Web.BackupOperationStarted" // maps to WebBackupOperationStartedEventData + TypeWebRestoreOperationCompleted = "Microsoft.Web.RestoreOperationCompleted" // maps to WebRestoreOperationCompletedEventData + TypeWebRestoreOperationFailed = "Microsoft.Web.RestoreOperationFailed" // maps to WebRestoreOperationFailedEventData + TypeWebRestoreOperationStarted = "Microsoft.Web.RestoreOperationStarted" // maps to WebRestoreOperationStartedEventData + TypeWebSlotSwapCompleted = "Microsoft.Web.SlotSwapCompleted" // maps to WebSlotSwapCompletedEventData + TypeWebSlotSwapFailed = "Microsoft.Web.SlotSwapFailed" // maps to WebSlotSwapFailedEventData + TypeWebSlotSwapStarted = "Microsoft.Web.SlotSwapStarted" // maps to WebSlotSwapStartedEventData + TypeWebSlotSwapWithPreviewCancelled = "Microsoft.Web.SlotSwapWithPreviewCancelled" // maps to WebSlotSwapWithPreviewCancelledEventData + TypeWebSlotSwapWithPreviewStarted = "Microsoft.Web.SlotSwapWithPreviewStarted" // maps to WebSlotSwapWithPreviewStartedEventData ) diff --git a/sdk/messaging/eventgrid/azsystemevents/temp_models.go b/sdk/messaging/eventgrid/azsystemevents/temp_models.go new file mode 100644 index 0000000000..21f1a87aae --- /dev/null +++ b/sdk/messaging/eventgrid/azsystemevents/temp_models.go @@ -0,0 +1,117 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azsystemevents + +import ( + "encoding/json" + "fmt" +) + +// NOTE: there appears to be a bug where, when a type is used as a base class in TypeSpec, we automatically trim it _but_ there are some +// cases, like these events, where they're not just vestigial, they are legitimate models that should be generated. +// Filed as https://github.com/Azure/autorest.go/issues/1466. Once this is fixed, we can delete these temporarily copied models. + +const ( + TypeMediaJobOutputStateChange = "Microsoft.Media.JobOutputStateChange" // maps to MediaJobOutputStateChangeEventData + TypeMediaJobStateChange = "Microsoft.Media.JobStateChange" // maps to MediaJobStateChangeEventData +) + +// MediaJobOutputStateChangeEventData - Schema of the Data property of an EventGridEvent for a +// Microsoft.Media.JobOutputStateChange event. +type MediaJobOutputStateChangeEventData struct { + // REQUIRED; Gets the Job correlation data. + JobCorrelationData map[string]*string + + // REQUIRED; Gets the output. + Output MediaJobOutputClassification + + // REQUIRED; The previous state of the Job. + PreviousState *MediaJobState +} + +// MediaJobStateChangeEventData - Schema of the Data property of an EventGridEvent for a +// Microsoft.Media.JobStateChange event. +type MediaJobStateChangeEventData struct { + // REQUIRED; Gets the Job correlation data. + CorrelationData map[string]*string + + // REQUIRED; The previous state of the Job. + PreviousState *MediaJobState + + // REQUIRED; The new state of the Job. + State *MediaJobState +} + +// MarshalJSON implements the json.Marshaller interface for type MediaJobOutputStateChangeEventData. +func (m MediaJobOutputStateChangeEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "jobCorrelationData", m.JobCorrelationData) + populate(objectMap, "output", m.Output) + populate(objectMap, "previousState", m.PreviousState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MediaJobOutputStateChangeEventData. +func (m *MediaJobOutputStateChangeEventData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "jobCorrelationData": + err = unpopulate(val, "JobCorrelationData", &m.JobCorrelationData) + delete(rawMsg, key) + case "output": + m.Output, err = unmarshalMediaJobOutputClassification(val) + delete(rawMsg, key) + case "previousState": + err = unpopulate(val, "PreviousState", &m.PreviousState) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type MediaJobStateChangeEventData. +func (m MediaJobStateChangeEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "correlationData", m.CorrelationData) + populate(objectMap, "previousState", m.PreviousState) + populate(objectMap, "state", m.State) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MediaJobStateChangeEventData. +func (m *MediaJobStateChangeEventData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "correlationData": + err = unpopulate(val, "CorrelationData", &m.CorrelationData) + delete(rawMsg, key) + case "previousState": + err = unpopulate(val, "PreviousState", &m.PreviousState) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &m.State) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} diff --git a/sdk/messaging/eventgrid/azsystemevents/testdata/package-lock.json b/sdk/messaging/eventgrid/azsystemevents/testdata/package-lock.json index bc8c8fcaa6..de4b8b3b86 100644 --- a/sdk/messaging/eventgrid/azsystemevents/testdata/package-lock.json +++ b/sdk/messaging/eventgrid/azsystemevents/testdata/package-lock.json @@ -8,56 +8,19 @@ "name": "testdata", "version": "0.1.0", "dependencies": { - "@azure-tools/typespec-azure-core": "^0.45.0", - "@azure-tools/typespec-client-generator-core": "^0.45.2", - "@azure-tools/typespec-go": "^0.3.1", - "@typespec/compiler": "^0.59.1", - "@typespec/versioning": "^0.59.0", + "@azure-tools/typespec-azure-core": "0.48.0", + "@azure-tools/typespec-client-generator-core": "0.48.1", + "@azure-tools/typespec-go": "^0.3.2", + "@typespec/compiler": "0.62.0", + "@typespec/versioning": "0.62.0", "testdata": "^0.1.4" } }, - "../../../../../../autorest-use-joel-typespec/packages/autorest.go": { - "name": "@autorest/go", - "version": "4.0.0-preview.66", - "extraneous": true, - "license": "MIT", - "dependencies": { - "@autorest/codemodel": "~4.19.3", - "@autorest/extension-base": "~3.5.2", - "@azure-tools/async-io": "~3.0.0", - "@azure-tools/codegen": "~2.9.2", - "@azure-tools/linq": "~3.1.0", - "@azure-tools/tasks": "~3.0.0", - "@types/html-to-text": "^5.1.2", - "@types/showdown": "^1.9.3", - "html-to-text": "^5.1.1", - "js-yaml": "~4.1.0", - "showdown": "^1.9.1", - "source-map-support": "0.5.21" - }, - "devDependencies": { - "@autorest/codemodel": "~4.19.3", - "@autorest/extension-base": "~3.5.2", - "@azure-tools/codegen": "~2.9.2", - "@microsoft.azure/autorest.testserver": "3.3.49", - "@types/jest": "~26.0.24", - "@types/js-yaml": "~4.0.6", - "@types/node": "^18.16.3", - "@typescript-eslint/eslint-plugin": "~4.1.1", - "@typescript-eslint/parser": "~4.1.1", - "eslint": "~6.6.0", - "jest": "~27.0.6", - "ts-jest": "~27.0.4", - "typescript": "~5.1.3" - }, - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/@azure-tools/async-io": { "version": "3.0.254", "resolved": "https://registry.npmjs.org/@azure-tools/async-io/-/async-io-3.0.254.tgz", "integrity": "sha512-X1C7XdyCuo50ch9FzKtTvmK18FgDxxf1Bbt3cSoknQqeDaRegHSSCO+zByq2YA4NvUzKXeZ1engh29IDxZXgpQ==", + "license": "MIT", "dependencies": { "@azure-tools/tasks": "~3.0.255", "proper-lockfile": "~2.0.1" @@ -70,6 +33,7 @@ "version": "2.9.2", "resolved": "https://registry.npmjs.org/@azure-tools/codegen/-/codegen-2.9.2.tgz", "integrity": "sha512-brVLyffOtPiEijYYBYgV+4q7IyAfqXIec7XbdEqvv7As6SeEdq5WtbtN9N0LdGVHDWtEfc+JArwIx9aYGFdMUg==", + "license": "MIT", "dependencies": { "@azure-tools/async-io": "~3.0.0", "js-yaml": "~4.0.0", @@ -83,6 +47,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.0.0.tgz", "integrity": "sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==", + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -94,6 +59,7 @@ "version": "3.1.263", "resolved": "https://registry.npmjs.org/@azure-tools/linq/-/linq-3.1.263.tgz", "integrity": "sha512-r104pkF96Sk8MW+PgxWqwiwNXhPbJSkMDcmShu9EDEJem04SM7DnHWmDo8JZR08vHYaecZA126OoGQFe7WikSA==", + "license": "MIT", "engines": { "node": ">=10.12.0" } @@ -102,27 +68,30 @@ "version": "3.0.255", "resolved": "https://registry.npmjs.org/@azure-tools/tasks/-/tasks-3.0.255.tgz", "integrity": "sha512-GjALNLz7kWMEdRVbaN5g0cJHNAr3XVTbP0611Mv2UzMgGL6FOhNZJK+oPHJKLDR8EEDZNnkwPlyi7B+INXUSQA==", + "license": "MIT", "engines": { "node": ">=10.12.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.45.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.45.0.tgz", - "integrity": "sha512-GycGMCmaIVSN+TftPtlPJLyeOrglbLmH08ZiZaVMjSih/TQEJM21RGR6d8QdjlkQWN61ntNDRD+RP2uv9tHmqw==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.48.0.tgz", + "integrity": "sha512-80qyqgTgBbrnCGXtz6eWAMBdEAjYVVL780L0Ye+rBEd6VoA0m3JrgzUqf5bC0Iwju6lEtBAb8o6sefKD/NGA7g==", + "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.59.0", - "@typespec/http": "~0.59.0", - "@typespec/rest": "~0.59.0" + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0", + "@typespec/rest": "~0.62.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.45.2", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.45.2.tgz", - "integrity": "sha512-y/grc0XDFU7q7mTZtiiJmbaoVzRZAks64y9ugKK4T9P9MLdHCj5Wl+Phbkl2tya9P4gklgLcxUlFJRJCR2Rr7A==", + "version": "0.48.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.48.1.tgz", + "integrity": "sha512-pYEZDExltNNLAaA12EwEag5VLESyPoKNQQ/6Olj4rJouA4cBjZDTW80VYgKuPQBt/uCtA0Yn6xxl0nH7TGOwWQ==", + "license": "MIT", "dependencies": { "change-case": "~5.4.4", "pluralize": "^8.0.0" @@ -131,163 +100,41 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.45.0", - "@typespec/compiler": "~0.59.0", - "@typespec/http": "~0.59.0", - "@typespec/openapi": "~0.59.0", - "@typespec/rest": "~0.59.0", - "@typespec/versioning": "~0.59.0" + "@azure-tools/typespec-azure-core": "~0.48.0", + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0", + "@typespec/openapi": "~0.62.0", + "@typespec/rest": "~0.62.0", + "@typespec/versioning": "~0.62.0" } }, "node_modules/@azure-tools/typespec-go": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-go/-/typespec-go-0.3.1.tgz", - "integrity": "sha512-XLzCk+exmxXJ55JAUKM29PytRnqVGEsZcULOf24+CLIVRA6a3bg6WH5a/ktIiwl56KoCUKepZcKZuHD7Cpc7AA==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-go/-/typespec-go-0.3.2.tgz", + "integrity": "sha512-//AqxRkAbQKXLNyGvT6x0GjKNdmkjX79T3ZjnpfBtubny3yaoJDr6U5A3WZf1oFddo/l9M48IbeHbS8Tb2Xzcg==", + "license": "MIT", "dependencies": { "@azure-tools/codegen": "~2.9.2", "@azure-tools/linq": "~3.1.0", - "@azure-tools/typespec-azure-core": ">=0.44.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": "0.44.3", - "@typespec/compiler": "0.58.1", - "@typespec/http": "0.58.0", - "@typespec/rest": "0.58.0", - "@typespec/versioning": "0.58.0", "js-yaml": "~4.1.0", "source-map-support": "0.5.21" }, "engines": { "node": ">=12.0.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@azure-tools/typespec-azure-core": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.44.0.tgz", - "integrity": "sha512-d11QK2v5fOZH8YUqf42FsqHEirKCHzeKFq4Uo/51BXCXmJJahsTaFMAG2M0GoJe8tmTHeMijStnVMfzcGNqCAA==", - "engines": { - "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/rest": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.44.3", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.44.3.tgz", - "integrity": "sha512-HXjxQs7ELrTuIDqOjlYhP4rM4AXb143klbiM8dkEGtqNBRCk77gVCGYVH1M3kWKAEs0dQKhzoUukscqRsfELuw==", - "dependencies": { - "change-case": "~5.4.4", - "pluralize": "^8.0.0" - }, - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@typespec/compiler": { - "version": "0.58.1", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.58.1.tgz", - "integrity": "sha512-bVxxM35r40OtuL4+/9W/g1EevlnWnW6i151nsZAFOJj1xWHoE2G9zkx5/Feic8OlzArjhGGLJOLH3Ez1Wrw35A==", - "dependencies": { - "@babel/code-frame": "~7.24.7", - "ajv": "~8.16.0", - "change-case": "~5.4.4", - "globby": "~14.0.2", - "mustache": "~4.2.0", - "picocolors": "~1.0.1", - "prettier": "~3.3.2", - "prompts": "~2.4.2", - "semver": "^7.6.2", - "temporal-polyfill": "^0.2.5", - "vscode-languageserver": "~9.0.1", - "vscode-languageserver-textdocument": "~1.0.11", - "yaml": "~2.4.5", - "yargs": "~17.7.2" - }, - "bin": { - "tsp": "cmd/tsp.js", - "tsp-server": "cmd/tsp-server.js" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@typespec/http": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.58.0.tgz", - "integrity": "sha512-jQpkugg9AZVrNDMkDIgZRpIoRkkU2b0LtKWqMGg33MItYj9/DYSgDtY7xb7oCBppRtFFZ/h138HyhYl3zQxZRg==", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@typespec/openapi": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.58.0.tgz", - "integrity": "sha512-gu6nXfmpfZrfq8Etpgl1dpMfsXii7EzQyhZgsPhIy7ZwV5bDmFk1/oyhTqIpWrnr4pD3r151T2BQjzJefjf15A==", - "peer": true, - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@typespec/rest": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.58.0.tgz", - "integrity": "sha512-QBxkED0/KQKG22pwzis0n7BY+uLMSZZPSoVe/ESBFika9n5/yyeQ0l58xbFFwwfxAxe4xwuZ5PNwTdEXZbzr5g==", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@typespec/versioning": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.58.0.tgz", - "integrity": "sha512-brnQQ3wKWh4AbgqmnVLj+8zyOaDk9VPWg4QBecdQxzz7PrSrlAzIzRfeIyr67+hwi/0SvkTAB6GNH7YYTypKGA==", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/ajv": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.16.0.tgz", - "integrity": "sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "@azure-tools/typespec-client-generator-core": ">=0.48.0 <1.0.0", + "@typespec/compiler": ">=0.62.0 <1.0.0", + "@typespec/http": ">=0.62.0 <1.0.0" } }, "node_modules/@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.9.tgz", + "integrity": "sha512-z88xeGxnzehn2sqZ8UdGQEvYErF1odv2CftxInpSYJt6uHuPe9YjahKZITGs3l5LeI9d2ROG+obuDAoSlqbNfQ==", + "license": "MIT", "dependencies": { - "@babel/highlight": "^7.24.7", + "@babel/highlight": "^7.25.9", "picocolors": "^1.0.0" }, "engines": { @@ -295,19 +142,21 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", - "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", - "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.9.tgz", + "integrity": "sha512-llL88JShoCsth8fF8R4SJnIn+WLvR6ccFxu1H3FlMhDontdcmZWf2HgIZ7AIqV3Xcck1idlohrN4EUBQz6klbw==", + "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.24.7", + "@babel/helper-validator-identifier": "^7.25.9", "chalk": "^2.4.2", "js-tokens": "^4.0.0", "picocolors": "^1.0.0" @@ -320,6 +169,7 @@ "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -332,6 +182,7 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "license": "MIT", "engines": { "node": ">= 8" } @@ -340,6 +191,7 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -352,6 +204,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.3.0.tgz", "integrity": "sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==", + "license": "MIT", "engines": { "node": ">=18" }, @@ -360,23 +213,24 @@ } }, "node_modules/@typespec/compiler": { - "version": "0.59.1", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.59.1.tgz", - "integrity": "sha512-O2ljgr6YoFaIH6a8lWc90/czdv4B2X6N9wz4WsnQnVvgO0Tj0s+3xkvp4Tv59RKMhT0f3fK6dL8oEGO32FYk1A==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.62.0.tgz", + "integrity": "sha512-RfKJ/rF2Wjxu7dl74oJE8yEfSkeL7NopFlyJ4dW1JQXpRN2IOJYPxas12qZA6H9ZEIB8rBjyrHNxJSQbvn/UDQ==", + "license": "MIT", "dependencies": { - "@babel/code-frame": "~7.24.7", + "@babel/code-frame": "~7.25.7", "ajv": "~8.17.1", "change-case": "~5.4.4", "globby": "~14.0.2", "mustache": "~4.2.0", - "picocolors": "~1.0.1", + "picocolors": "~1.1.0", "prettier": "~3.3.3", "prompts": "~2.4.2", "semver": "^7.6.3", "temporal-polyfill": "^0.2.5", "vscode-languageserver": "~9.0.1", - "vscode-languageserver-textdocument": "~1.0.11", - "yaml": "~2.4.5", + "vscode-languageserver-textdocument": "~1.0.12", + "yaml": "~2.5.1", "yargs": "~17.7.2" }, "bin": { @@ -388,58 +242,69 @@ } }, "node_modules/@typespec/http": { - "version": "0.59.1", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.59.1.tgz", - "integrity": "sha512-Ai8oCAO+Bw1HMSZ9gOI5Od4fNn/ul4HrVtTB01xFuLK6FQj854pxhzao8ylPnr7gIRQ327FV12/QfXR87yCiYQ==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.62.0.tgz", + "integrity": "sha512-6H9y9e32lb2s76MMy29ITCwSZNG42sa/qWthiByUvfbTEXMpu5a1fQHNj7RXg+xmDKmVIHv3gAfjGPAWfXhkaQ==", + "license": "MIT", "peer": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.59.0" + "@typespec/compiler": "~0.62.0", + "@typespec/streams": "~0.62.0" + }, + "peerDependenciesMeta": { + "@typespec/streams": { + "optional": true + } } }, "node_modules/@typespec/openapi": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.59.0.tgz", - "integrity": "sha512-do1Dm5w0MuK3994gYTBg6qMfgeIxmmsDqnz3zimYKMPpbnUBi4F6/o4iCfn0Fn9kaNl+H6UlOzZpsZW9xHui1Q==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.62.0.tgz", + "integrity": "sha512-Xtm0Nd2BuSmEfSWGtc10ok22jyomYm9L2jY+kVTy+v5J89DrVh0o6+YpipUl1QhcItM1YMBphWHIHPfwkDRbnw==", + "license": "MIT", "peer": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.59.0", - "@typespec/http": "~0.59.0" + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0" } }, "node_modules/@typespec/rest": { - "version": "0.59.1", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.59.1.tgz", - "integrity": "sha512-uKU431jBYL2tVQWG5THA75+OtXDa1e8cMAafYK/JJRRiVRd8D/Epd8fp07dzlB8tFGrhCaGlekRMqFPFrHh2/A==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.62.0.tgz", + "integrity": "sha512-ci5UjelEKFwsPTdpgysoUoDCcw02EnbG4GBuYJdR5mRrFCBZMxrbro+OJLgSN3g/TORSsWlW7dEOWLfbyrmlZQ==", + "license": "MIT", "peer": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.59.0", - "@typespec/http": "~0.59.1" + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0" } }, "node_modules/@typespec/versioning": { - "version": "0.59.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.59.0.tgz", - "integrity": "sha512-aihO/ux0lLmsuYAdGVkiBflSudcZokYG42SELk1FtMFo609G3Pd7ep7hau6unBnMIceQZejB0ow5UGRupK4X5A==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.62.0.tgz", + "integrity": "sha512-M5KTCVH5fBniZU8eQlw+NV13vAmPr58HyBLDIyxeOuV+SHNlx+f+qanUEDIPaJheKlaSSNTEZKsDhs83/iIMMA==", + "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.59.0" + "@typespec/compiler": "~0.62.0" } }, "node_modules/ajv": { "version": "8.17.1", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", @@ -455,6 +320,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", "engines": { "node": ">=8" } @@ -463,6 +329,7 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "license": "MIT", "dependencies": { "color-convert": "^1.9.0" }, @@ -473,12 +340,14 @@ "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" }, "node_modules/braces": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, @@ -489,12 +358,14 @@ "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "license": "MIT" }, "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -507,12 +378,14 @@ "node_modules/change-case": { "version": "5.4.4", "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", - "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==" + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", + "license": "MIT" }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -526,6 +399,7 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "license": "MIT", "dependencies": { "color-name": "1.1.3" } @@ -533,17 +407,20 @@ "node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "license": "MIT" }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", "engines": { "node": ">=6" } @@ -552,6 +429,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", "engines": { "node": ">=0.8.0" } @@ -559,12 +437,14 @@ "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" }, "node_modules/fast-glob": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -577,14 +457,16 @@ } }, "node_modules/fast-uri": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz", - "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==" + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz", + "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==", + "license": "BSD-3-Clause" }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "license": "ISC", "dependencies": { "reusify": "^1.0.4" } @@ -593,6 +475,7 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -604,6 +487,7 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } @@ -612,6 +496,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -623,6 +508,7 @@ "version": "14.0.2", "resolved": "https://registry.npmjs.org/globby/-/globby-14.0.2.tgz", "integrity": "sha512-s3Fq41ZVh7vbbe2PN3nrW7yC7U7MFVc5c98/iTl9c2GawNMKx/J648KQRW6WKkuU8GIbbh2IXfIRQjOZnXcTnw==", + "license": "MIT", "dependencies": { "@sindresorhus/merge-streams": "^2.1.0", "fast-glob": "^3.3.2", @@ -641,20 +527,23 @@ "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" }, "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "license": "MIT", "engines": { "node": ">= 4" } @@ -663,6 +552,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -671,6 +561,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", "engines": { "node": ">=8" } @@ -679,6 +570,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -690,6 +582,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -697,12 +590,14 @@ "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -713,12 +608,14 @@ "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "license": "MIT", "engines": { "node": ">=6" } @@ -727,14 +624,16 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/micromatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", - "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "license": "MIT", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -747,6 +646,7 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==", + "license": "MIT", "bin": { "mustache": "bin/mustache" } @@ -755,6 +655,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz", "integrity": "sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -763,14 +664,16 @@ } }, "node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -782,6 +685,7 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", + "license": "MIT", "engines": { "node": ">=4" } @@ -790,6 +694,7 @@ "version": "3.3.3", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" }, @@ -804,6 +709,7 @@ "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -816,6 +722,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-2.0.1.tgz", "integrity": "sha512-rjaeGbsmhNDcDInmwi4MuI6mRwJu6zq8GjYCLuSuE7GF+4UjgzkL69sVKKJ2T2xH61kK7rXvGYpvaTu909oXaQ==", + "license": "MIT", "dependencies": { "graceful-fs": "^4.1.2", "retry": "^0.10.0" @@ -824,14 +731,6 @@ "node": ">=4.0.0" } }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "engines": { - "node": ">=6" - } - }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -849,12 +748,14 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -863,6 +764,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -871,6 +773,7 @@ "version": "0.10.1", "resolved": "https://registry.npmjs.org/retry/-/retry-0.10.1.tgz", "integrity": "sha512-ZXUSQYTHdl3uS7IuCehYfMzKyIDBNoAuUblvy5oGO5UJSUTmStUUVPXbA9Qxd173Bgre53yCQczQuHgRWAdvJQ==", + "license": "MIT", "engines": { "node": "*" } @@ -879,6 +782,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -902,6 +806,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } @@ -910,6 +815,7 @@ "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -920,12 +826,14 @@ "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "license": "MIT" }, "node_modules/slash": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz", "integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==", + "license": "MIT", "engines": { "node": ">=14.16" }, @@ -937,6 +845,7 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -945,6 +854,7 @@ "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -954,6 +864,7 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -967,6 +878,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -978,6 +890,7 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -989,6 +902,7 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/temporal-polyfill/-/temporal-polyfill-0.2.5.tgz", "integrity": "sha512-ye47xp8Cb0nDguAhrrDS1JT1SzwEV9e26sSsrWzVu+yPZ7LzceEcH0i2gci9jWfOfSCCgM3Qv5nOYShVUUFUXA==", + "license": "MIT", "dependencies": { "temporal-spec": "^0.2.4" } @@ -996,17 +910,20 @@ "node_modules/temporal-spec": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/temporal-spec/-/temporal-spec-0.2.4.tgz", - "integrity": "sha512-lDMFv4nKQrSjlkHKAlHVqKrBG4DyFfa9F74cmBZ3Iy3ed8yvWnlWSIdi4IKfSqwmazAohBNwiN64qGx4y5Q3IQ==" + "integrity": "sha512-lDMFv4nKQrSjlkHKAlHVqKrBG4DyFfa9F74cmBZ3Iy3ed8yvWnlWSIdi4IKfSqwmazAohBNwiN64qGx4y5Q3IQ==", + "license": "ISC" }, "node_modules/testdata": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/testdata/-/testdata-0.1.4.tgz", - "integrity": "sha512-tz2ly2UW9oE6EvoaIofyEyMAJm5YHT4WKsec78+XvYDzBHOK7yl0ONORXWlsb3/YgXyC9+HncRo0q1tK+l58qg==" + "integrity": "sha512-tz2ly2UW9oE6EvoaIofyEyMAJm5YHT4WKsec78+XvYDzBHOK7yl0ONORXWlsb3/YgXyC9+HncRo0q1tK+l58qg==", + "license": "MIT" }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -1018,6 +935,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz", "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==", + "license": "MIT", "engines": { "node": ">=18" }, @@ -1025,18 +943,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, "node_modules/vscode-jsonrpc": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==", + "license": "MIT", "engines": { "node": ">=14.0.0" } @@ -1045,6 +956,7 @@ "version": "9.0.1", "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz", "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", + "license": "MIT", "dependencies": { "vscode-languageserver-protocol": "3.17.5" }, @@ -1056,25 +968,29 @@ "version": "3.17.5", "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz", "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", + "license": "MIT", "dependencies": { "vscode-jsonrpc": "8.2.0", "vscode-languageserver-types": "3.17.5" } }, "node_modules/vscode-languageserver-textdocument": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.11.tgz", - "integrity": "sha512-X+8T3GoiwTVlJbicx/sIAF+yuJAqz8VvwJyoMVhwEMoEKE/fkDmrqUgDMyBECcM2A2frVZIUj5HI/ErRXCfOeA==" + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz", + "integrity": "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==", + "license": "MIT" }, "node_modules/vscode-languageserver-types": { "version": "3.17.5", "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", - "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==" + "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==", + "license": "MIT" }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -1091,6 +1007,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -1105,6 +1022,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -1115,20 +1033,23 @@ "node_modules/wrap-ansi/node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", "engines": { "node": ">=10" } }, "node_modules/yaml": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.5.tgz", - "integrity": "sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", + "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", + "license": "ISC", "bin": { "yaml": "bin.mjs" }, @@ -1140,6 +1061,7 @@ "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -1157,6 +1079,7 @@ "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", "engines": { "node": ">=12" } diff --git a/sdk/messaging/eventgrid/azsystemevents/testdata/package.json b/sdk/messaging/eventgrid/azsystemevents/testdata/package.json index 0c1980e9c2..118e8b6efe 100644 --- a/sdk/messaging/eventgrid/azsystemevents/testdata/package.json +++ b/sdk/messaging/eventgrid/azsystemevents/testdata/package.json @@ -7,11 +7,11 @@ "build": "tsp compile ./TempTypeSpecFiles/Azure.Messaging.EventGrid.SystemEvents/client.tsp" }, "dependencies": { - "@azure-tools/typespec-azure-core": "^0.45.0", - "@azure-tools/typespec-client-generator-core": "^0.45.2", - "@azure-tools/typespec-go": "^0.3.1", - "@typespec/compiler": "^0.59.1", - "@typespec/versioning": "^0.59.0", + "@azure-tools/typespec-azure-core": "0.48.0", + "@azure-tools/typespec-client-generator-core": "0.48.1", + "@typespec/compiler": "0.62.0", + "@typespec/versioning": "0.62.0", + "@azure-tools/typespec-go": "^0.3.2", "testdata": "^0.1.4" }, "overrides": { diff --git a/sdk/messaging/eventgrid/azsystemevents/testdata/tsp-location.yaml b/sdk/messaging/eventgrid/azsystemevents/testdata/tsp-location.yaml index eed91cbd02..a16699b966 100644 --- a/sdk/messaging/eventgrid/azsystemevents/testdata/tsp-location.yaml +++ b/sdk/messaging/eventgrid/azsystemevents/testdata/tsp-location.yaml @@ -1,3 +1,3 @@ directory: specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents -commit: 012021c786c360e0c34faf7af888c7fd7dbe2df5 +commit: fb64eaa0dfc7ee8abc8e10369495729d5b3c1cc5 repo: Azure/azure-rest-api-specs