From 3868a128d31077ada1c04927d8c175f263c861f5 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 3 Feb 2025 22:27:44 +0000 Subject: [PATCH] CodeGen from PR 32435 in Azure/azure-rest-api-specs Merge 7c04491e133fe7470545d25fb155b7bd968299c4 into cc5e8fab36f265bf7c054fdce6ddd8e42308c2df --- ...Messaging.EventGrid.SystemEvents.net8.0.cs | 915 +++++------------- ...g.EventGrid.SystemEvents.netstandard2.0.cs | 915 +++++------------- ...ryReportReceivedEventData.Serialization.cs | 33 +- ...AcsEmailDeliveryReportReceivedEventData.cs | 23 +- ...liveryReportStatusDetails.Serialization.cs | 13 +- .../AcsEmailDeliveryReportStatusDetails.cs | 6 +- ...ngReportReceivedEventData.Serialization.cs | 10 +- .../AcsIncomingCallEventData.Serialization.cs | 16 + .../src/Generated/AcsIncomingCallEventData.cs | 6 +- .../AcsSmsReceivedEventData.Serialization.cs | 11 +- .../src/Generated/AcsSmsReceivedEventData.cs | 10 +- ...iDefinitionAddedEventData.Serialization.cs | 18 +- .../ApiCenterApiDefinitionAddedEventData.cs | 10 +- ...efinitionUpdatedEventData.Serialization.cs | 18 +- .../ApiCenterApiDefinitionUpdatedEventData.cs | 10 +- ...ApiCenterApiSpecification.Serialization.cs | 7 +- .../Generated/ApiCenterApiSpecification.cs | 12 +- .../Generated/AvsClusterCreatedEventData.cs | 10 +- .../Generated/AvsClusterDeletedEventData.cs | 10 +- .../AvsClusterEventData.Serialization.cs | 7 +- .../src/Generated/AvsClusterEventData.cs | 12 +- .../Generated/AvsClusterFailedEventData.cs | 10 +- .../Generated/AvsClusterUpdatedEventData.cs | 10 +- .../Generated/AvsClusterUpdatingEventData.cs | 10 +- .../AvsPrivateCloudEventData.Serialization.cs | 7 +- .../src/Generated/AvsPrivateCloudEventData.cs | 12 +- .../AvsPrivateCloudFailedEventData.cs | 10 +- .../AvsPrivateCloudUpdatedEventData.cs | 10 +- .../AvsPrivateCloudUpdatingEventData.cs | 10 +- .../AvsScriptExecutionCancelledEventData.cs | 12 +- ...sScriptExecutionEventData.Serialization.cs | 14 +- .../Generated/AvsScriptExecutionEventData.cs | 15 +- .../AvsScriptExecutionFailedEventData.cs | 12 +- .../AvsScriptExecutionFinishedEventData.cs | 8 +- .../AvsScriptExecutionStartedEventData.cs | 12 +- ...RegistryArtifactEventData.Serialization.cs | 32 +- .../ContainerRegistryArtifactEventData.cs | 16 +- ...gistryArtifactEventTarget.Serialization.cs | 14 +- .../ContainerRegistryArtifactEventTarget.cs | 15 +- ...stryChartDeletedEventData.Serialization.cs | 4 + .../ContainerRegistryChartDeletedEventData.cs | 12 +- ...istryChartPushedEventData.Serialization.cs | 4 + .../ContainerRegistryChartPushedEventData.cs | 12 +- ...tryEventConnectedRegistry.Serialization.cs | 7 +- ...ContainerRegistryEventConnectedRegistry.cs | 12 +- ...ontainerRegistryEventData.Serialization.cs | 61 +- .../Generated/ContainerRegistryEventData.cs | 25 +- ...ainerRegistryEventRequest.Serialization.cs | 21 +- .../ContainerRegistryEventRequest.cs | 18 +- ...tainerRegistryEventTarget.Serialization.cs | 14 +- .../Generated/ContainerRegistryEventTarget.cs | 15 +- ...stryImageDeletedEventData.Serialization.cs | 16 + .../ContainerRegistryImageDeletedEventData.cs | 18 +- ...istryImagePushedEventData.Serialization.cs | 16 + .../ContainerRegistryImagePushedEventData.cs | 18 +- ...BoxCopyCompletedEventData.Serialization.cs | 7 +- .../DataBoxCopyCompletedEventData.cs | 7 +- ...taBoxCopyStartedEventData.Serialization.cs | 7 +- .../Generated/DataBoxCopyStartedEventData.cs | 7 +- ...oxOrderCompletedEventData.Serialization.cs | 7 +- .../DataBoxOrderCompletedEventData.cs | 7 +- ...eConnectionStateEventInfo.Serialization.cs | 7 +- .../DeviceConnectionStateEventInfo.cs | 12 +- ...ctionStateEventProperties.Serialization.cs | 14 +- .../DeviceConnectionStateEventProperties.cs | 10 +- ...eLifeCycleEventProperties.Serialization.cs | 14 +- .../DeviceLifeCycleEventProperties.cs | 10 +- .../Generated/DeviceTwinInfo.Serialization.cs | 75 +- .../src/Generated/DeviceTwinInfo.cs | 35 +- ...iceTwinInfoX509Thumbprint.Serialization.cs | 14 +- .../Generated/DeviceTwinInfoX509Thumbprint.cs | 15 +- .../DeviceTwinMetadata.Serialization.cs | 7 +- .../src/Generated/DeviceTwinMetadata.cs | 12 +- .../DeviceTwinProperties.Serialization.cs | 13 +- .../src/Generated/DeviceTwinProperties.cs | 8 +- .../EventGridMQTTClientDeletedEventData.cs | 34 - ...GridMQTTClientSessionConnectedEventData.cs | 57 -- ...reatedOrUpdatedEventData.Serialization.cs} | 46 +- ...ridMqttClientCreatedOrUpdatedEventData.cs} | 28 +- ...ttClientDeletedEventData.Serialization.cs} | 42 +- .../EventGridMqttClientDeletedEventData.cs | 50 + ...EventGridMqttClientDisconnectionReason.cs} | 44 +- ...tGridMqttClientEventData.Serialization.cs} | 63 +- ...ata.cs => EventGridMqttClientEventData.cs} | 30 +- ...essionConnectedEventData.Serialization.cs} | 62 +- ...GridMqttClientSessionConnectedEventData.cs | 86 ++ ...ionDisconnectedEventData.Serialization.cs} | 66 +- ...MqttClientSessionDisconnectedEventData.cs} | 42 +- ...ntState.cs => EventGridMqttClientState.cs} | 26 +- .../EventGridSystemEventsModelFactory.cs | 690 +++---------- ...icomImageCreatedEventData.Serialization.cs | 48 +- .../HealthcareDicomImageCreatedEventData.cs | 30 +- ...icomImageDeletedEventData.Serialization.cs | 48 +- .../HealthcareDicomImageDeletedEventData.cs | 30 +- ...icomImageUpdatedEventData.Serialization.cs | 48 +- .../HealthcareDicomImageUpdatedEventData.cs | 30 +- ...rResourceCreatedEventData.Serialization.cs | 27 +- .../HealthcareFhirResourceCreatedEventData.cs | 16 +- ...rResourceDeletedEventData.Serialization.cs | 27 +- .../HealthcareFhirResourceDeletedEventData.cs | 16 +- ...rResourceUpdatedEventData.Serialization.cs | 27 +- .../HealthcareFhirResourceUpdatedEventData.cs | 16 +- .../IotHubDeviceConnectedEventData.cs | 8 +- .../Generated/IotHubDeviceCreatedEventData.cs | 8 +- .../Generated/IotHubDeviceDeletedEventData.cs | 8 +- .../IotHubDeviceDisconnectedEventData.cs | 8 +- ...essPolicyChangedEventData.Serialization.cs | 61 +- .../KeyVaultAccessPolicyChangedEventData.cs | 34 +- ...rtificateExpiredEventData.Serialization.cs | 61 +- .../KeyVaultCertificateExpiredEventData.cs | 34 +- ...ficateNearExpiryEventData.Serialization.cs | 61 +- .../KeyVaultCertificateNearExpiryEventData.cs | 34 +- ...ewVersionCreatedEventData.Serialization.cs | 61 +- ...ltCertificateNewVersionCreatedEventData.cs | 34 +- ...yVaultKeyExpiredEventData.Serialization.cs | 61 +- .../Generated/KeyVaultKeyExpiredEventData.cs | 34 +- ...ultKeyNearExpiryEventData.Serialization.cs | 61 +- .../KeyVaultKeyNearExpiryEventData.cs | 34 +- ...ewVersionCreatedEventData.Serialization.cs | 61 +- .../KeyVaultKeyNewVersionCreatedEventData.cs | 34 +- ...ultSecretExpiredEventData.Serialization.cs | 61 +- .../KeyVaultSecretExpiredEventData.cs | 34 +- ...SecretNearExpiryEventData.Serialization.cs | 61 +- .../KeyVaultSecretNearExpiryEventData.cs | 34 +- ...ewVersionCreatedEventData.Serialization.cs | 61 +- ...eyVaultSecretNewVersionCreatedEventData.cs | 34 +- ...sGeofenceEnteredEventData.Serialization.cs | 16 +- .../Generated/MapsGeofenceEnteredEventData.cs | 11 +- ...psGeofenceEventProperties.Serialization.cs | 49 +- .../Generated/MapsGeofenceEventProperties.cs | 18 +- ...psGeofenceExitedEventData.Serialization.cs | 16 +- .../Generated/MapsGeofenceExitedEventData.cs | 11 +- .../MapsGeofenceGeometry.Serialization.cs | 53 +- .../src/Generated/MapsGeofenceGeometry.cs | 29 +- ...psGeofenceResultEventData.Serialization.cs | 16 +- .../Generated/MapsGeofenceResultEventData.cs | 11 +- ...MediaJobCanceledEventData.Serialization.cs | 161 --- .../Generated/MediaJobCanceledEventData.cs | 65 -- ...ediaJobCancelingEventData.Serialization.cs | 143 --- .../Generated/MediaJobCancelingEventData.cs | 43 - .../Generated/MediaJobError.Serialization.cs | 193 ---- .../src/Generated/MediaJobError.cs | 98 -- .../src/Generated/MediaJobErrorCategory.cs | 63 -- .../src/Generated/MediaJobErrorCode.cs | 75 -- .../MediaJobErroredEventData.Serialization.cs | 161 --- .../src/Generated/MediaJobErroredEventData.cs | 65 -- ...MediaJobFinishedEventData.Serialization.cs | 161 --- .../Generated/MediaJobFinishedEventData.cs | 65 -- .../Generated/MediaJobOutput.Serialization.cs | 144 --- .../src/Generated/MediaJobOutput.cs | 99 -- .../MediaJobOutputAsset.Serialization.cs | 168 ---- .../src/Generated/MediaJobOutputAsset.cs | 49 - ...obOutputCanceledEventData.Serialization.cs | 143 --- .../MediaJobOutputCanceledEventData.cs | 52 - ...bOutputCancelingEventData.Serialization.cs | 143 --- .../MediaJobOutputCancelingEventData.cs | 52 - ...JobOutputErroredEventData.Serialization.cs | 143 --- .../MediaJobOutputErroredEventData.cs | 52 - ...obOutputFinishedEventData.Serialization.cs | 143 --- .../MediaJobOutputFinishedEventData.cs | 52 - ...OutputProcessingEventData.Serialization.cs | 143 --- .../MediaJobOutputProcessingEventData.cs | 52 - ...obOutputProgressEventData.Serialization.cs | 179 ---- .../MediaJobOutputProgressEventData.cs | 86 -- ...bOutputScheduledEventData.Serialization.cs | 143 --- .../MediaJobOutputScheduledEventData.cs | 52 - ...utputStateChangeEventData.Serialization.cs | 169 ---- .../MediaJobOutputStateChangeEventData.cs | 103 -- ...diaJobProcessingEventData.Serialization.cs | 143 --- .../Generated/MediaJobProcessingEventData.cs | 43 - .../src/Generated/MediaJobRetry.cs | 51 - ...ediaJobScheduledEventData.Serialization.cs | 143 --- .../Generated/MediaJobScheduledEventData.cs | 43 - .../src/Generated/MediaJobState.cs | 66 -- ...iaJobStateChangeEventData.Serialization.cs | 169 ---- .../Generated/MediaJobStateChangeEventData.cs | 90 -- ...ArchiveHeartbeatEventData.Serialization.cs | 150 --- ...veEventChannelArchiveHeartbeatEventData.cs | 82 -- ...nnectionRejectedEventData.Serialization.cs | 195 ---- ...diaLiveEventConnectionRejectedEventData.cs | 81 -- ...EncoderConnectedEventData.Serialization.cs | 178 ---- ...MediaLiveEventEncoderConnectedEventData.cs | 77 -- ...oderDisconnectedEventData.Serialization.cs | 195 ---- ...iaLiveEventEncoderDisconnectedEventData.cs | 81 -- ...DataChunkDroppedEventData.Serialization.cs | 211 ---- ...eEventIncomingDataChunkDroppedEventData.cs | 85 -- ...ngStreamReceivedEventData.Serialization.cs | 247 ----- ...iveEventIncomingStreamReceivedEventData.cs | 97 -- ...StreamsOutOfSyncEventData.Serialization.cs | 207 ---- ...eEventIncomingStreamsOutOfSyncEventData.cs | 85 -- ...StreamsOutOfSyncEventData.Serialization.cs | 195 ---- ...tIncomingVideoStreamsOutOfSyncEventData.cs | 81 -- ...tIngestHeartbeatEventData.Serialization.cs | 355 ------- .../MediaLiveEventIngestHeartbeatEventData.cs | 125 --- ...ntinuityDetectedEventData.Serialization.cs | 223 ----- ...ventTrackDiscontinuityDetectedEventData.cs | 89 -- ...licyStateChangedEventData.Serialization.cs | 42 +- ...licyInsightsPolicyStateChangedEventData.cs | 22 +- ...licyStateCreatedEventData.Serialization.cs | 42 +- ...licyInsightsPolicyStateCreatedEventData.cs | 22 +- ...licyStateDeletedEventData.Serialization.cs | 42 +- ...licyInsightsPolicyStateDeletedEventData.cs | 22 +- ...ortRdbCompletedEventData.Serialization.cs} | 55 +- ...cs => RedisExportRdbCompletedEventData.cs} | 19 +- ...ortRdbCompletedEventData.Serialization.cs} | 55 +- ...cs => RedisImportRdbCompletedEventData.cs} | 19 +- ...atchingCompletedEventData.Serialization.cs | 13 +- .../RedisPatchingCompletedEventData.cs | 13 +- ...ScalingCompletedEventData.Serialization.cs | 13 +- .../RedisScalingCompletedEventData.cs | 13 +- ...sourcesScheduledEventData.Serialization.cs | 138 +++ ...ServiceEventResourcesScheduledEventData.cs | 42 + ...ationsHealthResourcesAnnotatedEventData.cs | 6 +- ...urcesAvailabilityStatusChangedEventData.cs | 6 +- ...onsResourceDeletedDetails.Serialization.cs | 21 +- ...urceNotificationsResourceDeletedDetails.cs | 18 +- ...urceManagementCreatedOrUpdatedEventData.cs | 6 +- ...onsResourceUpdatedDetails.Serialization.cs | 77 +- ...urceNotificationsResourceUpdatedDetails.cs | 21 +- ...sResourceUpdatedEventData.Serialization.cs | 7 +- ...ceNotificationsResourceUpdatedEventData.cs | 7 +- ...dicNotificationsEventData.Serialization.cs | 54 +- ...AvailablePeriodicNotificationsEventData.cs | 24 +- ...eWithNoListenersEventData.Serialization.cs | 54 +- ...ssagesAvailableWithNoListenersEventData.cs | 24 +- ...dicNotificationsEventData.Serialization.cs | 54 +- ...AvailablePeriodicNotificationsEventData.cs | 24 +- ...eWithNoListenersEventData.Serialization.cs | 54 +- ...ssagesAvailableWithNoListenersEventData.cs | 24 +- ...nectionConnectedEventData.Serialization.cs | 14 +- ...rviceClientConnectionConnectedEventData.cs | 10 +- ...tionDisconnectedEventData.Serialization.cs | 14 +- ...ceClientConnectionDisconnectedEventData.cs | 10 +- .../src/Generated/StorageBlobAccessTier.cs | 60 ++ ...orageBlobCreatedEventData.Serialization.cs | 9 + .../Generated/StorageBlobCreatedEventData.cs | 10 +- ...eBlobTierChangedEventData.Serialization.cs | 18 + .../StorageBlobTierChangedEventData.cs | 16 +- .../StorageLifecycleCompletionStatus.cs | 54 ++ ...ePolicyCompletedEventData.Serialization.cs | 25 +- ...torageLifecyclePolicyCompletedEventData.cs | 20 +- ...ifecyclePolicyRunSummary.Serialization.cs} | 66 +- ...cs => StorageLifecyclePolicyRunSummary.cs} | 31 +- ...scriptionDeletedEventData.Serialization.cs | 7 +- .../Generated/SubscriptionDeletedEventData.cs | 12 +- ...iptionValidationEventData.Serialization.cs | 14 +- .../SubscriptionValidationEventData.cs | 23 +- ...riptionValidationResponse.Serialization.cs | 7 +- .../SubscriptionValidationResponse.cs | 12 +- .../Generated/SystemEventsClientOptions.cs | 8 +- .../UnknownMediaJobOutput.Serialization.cs | 156 --- .../src/Generated/UnknownMediaJobOutput.cs | 32 - .../tsp-location.yaml | 5 +- 253 files changed, 3425 insertions(+), 11311 deletions(-) delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientDeletedEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionConnectedEventData.cs rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{EventGridMQTTClientCreatedOrUpdatedEventData.Serialization.cs => EventGridMqttClientCreatedOrUpdatedEventData.Serialization.cs} (80%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{EventGridMQTTClientCreatedOrUpdatedEventData.cs => EventGridMqttClientCreatedOrUpdatedEventData.cs} (68%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{EventGridMQTTClientDeletedEventData.Serialization.cs => EventGridMqttClientDeletedEventData.Serialization.cs} (75%) create mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientDeletedEventData.cs rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{EventGridMQTTClientDisconnectionReason.cs => EventGridMqttClientDisconnectionReason.cs} (64%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{EventGridMQTTClientEventData.Serialization.cs => EventGridMqttClientEventData.Serialization.cs} (71%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{EventGridMQTTClientEventData.cs => EventGridMqttClientEventData.cs} (68%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{EventGridMQTTClientSessionConnectedEventData.Serialization.cs => EventGridMqttClientSessionConnectedEventData.Serialization.cs} (72%) create mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionConnectedEventData.cs rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{EventGridMQTTClientSessionDisconnectedEventData.Serialization.cs => EventGridMqttClientSessionDisconnectedEventData.Serialization.cs} (72%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{EventGridMQTTClientSessionDisconnectedEventData.cs => EventGridMqttClientSessionDisconnectedEventData.cs} (54%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{EventGridMQTTClientState.cs => EventGridMqttClientState.cs} (58%) delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCanceledEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCanceledEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCancelingEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCancelingEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobError.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobError.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorCategory.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorCode.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErroredEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErroredEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobFinishedEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobFinishedEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutput.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutput.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputAsset.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputAsset.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCanceledEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCanceledEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCancelingEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCancelingEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputErroredEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputErroredEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputFinishedEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputFinishedEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProcessingEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProcessingEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProgressEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProgressEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputScheduledEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputScheduledEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputStateChangeEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputStateChangeEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobProcessingEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobProcessingEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobRetry.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobScheduledEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobScheduledEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobState.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobStateChangeEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobStateChangeEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventChannelArchiveHeartbeatEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventChannelArchiveHeartbeatEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventConnectionRejectedEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventConnectionRejectedEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderConnectedEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderConnectedEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderDisconnectedEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderDisconnectedEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingDataChunkDroppedEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingDataChunkDroppedEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamReceivedEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamReceivedEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamsOutOfSyncEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamsOutOfSyncEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIngestHeartbeatEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIngestHeartbeatEventData.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventTrackDiscontinuityDetectedEventData.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventTrackDiscontinuityDetectedEventData.cs rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{RedisExportRDBCompletedEventData.Serialization.cs => RedisExportRdbCompletedEventData.Serialization.cs} (73%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{RedisExportRDBCompletedEventData.cs => RedisExportRdbCompletedEventData.cs} (78%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{RedisImportRDBCompletedEventData.Serialization.cs => RedisImportRdbCompletedEventData.Serialization.cs} (73%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{RedisImportRDBCompletedEventData.cs => RedisImportRdbCompletedEventData.cs} (78%) create mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsContainerServiceEventResourcesScheduledEventData.Serialization.cs create mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsContainerServiceEventResourcesScheduledEventData.cs create mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobAccessTier.cs create mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecycleCompletionStatus.cs rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{MediaJobErrorDetail.Serialization.cs => StorageLifecyclePolicyRunSummary.Serialization.cs} (57%) rename sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/{MediaJobErrorDetail.cs => StorageLifecyclePolicyRunSummary.cs} (58%) delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/UnknownMediaJobOutput.Serialization.cs delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/UnknownMediaJobOutput.cs diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/api/Azure.Messaging.EventGrid.SystemEvents.net8.0.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/api/Azure.Messaging.EventGrid.SystemEvents.net8.0.cs index 5cffdf30386c..02a93f60d244 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/api/Azure.Messaging.EventGrid.SystemEvents.net8.0.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/api/Azure.Messaging.EventGrid.SystemEvents.net8.0.cs @@ -312,6 +312,7 @@ public partial class AcsEmailDeliveryReportReceivedEventData : System.ClientMode internal AcsEmailDeliveryReportReceivedEventData() { } public System.DateTimeOffset DeliveryAttemptTimestamp { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails DeliveryStatusDetails { get { throw null; } } + public string InternetMessageId { get { throw null; } } public string MessageId { get { throw null; } } public string Recipient { get { throw null; } } public string Sender { get { throw null; } } @@ -348,6 +349,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AcsEmailDeliveryReportStatusDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AcsEmailDeliveryReportStatusDetails() { } + public string RecipientMailServerHostName { get { throw null; } } public string StatusMessage { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -393,6 +395,7 @@ internal AcsIncomingCallEventData() { } public Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallCustomContext CustomContext { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel FromCommunicationIdentifier { get { throw null; } } public string IncomingCallContext { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel OnBehalfOfCallee { get { throw null; } } public string ServerCallId { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel ToCommunicationIdentifier { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1160,6 +1163,7 @@ public partial class AcsSmsReceivedEventData : Azure.Messaging.EventGrid.SystemE internal AcsSmsReceivedEventData() { } public string Message { get { throw null; } } public System.DateTimeOffset ReceivedTimestamp { get { throw null; } } + public int SegmentCount { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.AcsSmsReceivedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2248,7 +2252,7 @@ public partial class DeviceTwinInfo : System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2304,7 +2308,7 @@ public partial class DeviceTwinProperties : System.ClientModel.Primitives.IJsonM { internal DeviceTwinProperties() { } public Azure.Messaging.EventGrid.SystemEvents.DeviceTwinMetadata Metadata { get { throw null; } } - public float? Version { get { throw null; } } + public float Version { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.DeviceTwinProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2312,111 +2316,111 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EventGridMQTTClientCreatedOrUpdatedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EventGridMqttClientCreatedOrUpdatedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EventGridMQTTClientCreatedOrUpdatedEventData() { } + internal EventGridMqttClientCreatedOrUpdatedEventData() { } public System.Collections.Generic.IReadOnlyDictionary Attributes { get { throw null; } } public System.DateTimeOffset CreatedOn { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState State { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState State { get { throw null; } } public System.DateTimeOffset UpdatedOn { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientCreatedOrUpdatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientCreatedOrUpdatedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientCreatedOrUpdatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientCreatedOrUpdatedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EventGridMQTTClientDeletedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EventGridMqttClientDeletedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EventGridMQTTClientDeletedEventData() { } + internal EventGridMqttClientDeletedEventData() { } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDeletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDeletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDeletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDeletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EventGridMQTTClientDisconnectionReason : System.IEquatable + public readonly partial struct EventGridMqttClientDisconnectionReason : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public EventGridMQTTClientDisconnectionReason(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ClientAuthenticationError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ClientAuthorizationError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ClientError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ClientInitiatedDisconnect { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ConnectionLost { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason IpForbidden { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason QuotaExceeded { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ServerError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ServerInitiatedDisconnect { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason SessionOverflow { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason SessionTakenOver { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason other) { throw null; } + public EventGridMqttClientDisconnectionReason(string value) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ClientAuthenticationError { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ClientAuthorizationError { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ClientError { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ClientInitiatedDisconnect { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ConnectionLost { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason IpForbidden { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason QuotaExceeded { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ServerError { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ServerInitiatedDisconnect { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason SessionOverflow { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason SessionTakenOver { get { throw null; } } + public bool Equals(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason left, Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason left, Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason right) { throw null; } + public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason left, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason right) { throw null; } + public static implicit operator Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason (string value) { throw null; } + public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason left, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason right) { throw null; } public override string ToString() { throw null; } } - public partial class EventGridMQTTClientEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EventGridMqttClientEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EventGridMQTTClientEventData() { } + internal EventGridMqttClientEventData() { } public string ClientAuthenticationName { get { throw null; } } public string ClientName { get { throw null; } } public string NamespaceName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EventGridMQTTClientSessionConnectedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EventGridMqttClientSessionConnectedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EventGridMQTTClientSessionConnectedEventData() { } + internal EventGridMqttClientSessionConnectedEventData() { } public string ClientSessionName { get { throw null; } } - public long? SequenceNumber { get { throw null; } } + public long SequenceNumber { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionConnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionConnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionConnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionConnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EventGridMQTTClientSessionDisconnectedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EventGridMqttClientSessionDisconnectedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EventGridMQTTClientSessionDisconnectedEventData() { } + internal EventGridMqttClientSessionDisconnectedEventData() { } public string ClientSessionName { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason DisconnectionReason { get { throw null; } } - public long? SequenceNumber { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason DisconnectionReason { get { throw null; } } + public long SequenceNumber { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionDisconnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionDisconnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionDisconnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionDisconnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EventGridMQTTClientState : System.IEquatable + public readonly partial struct EventGridMqttClientState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public EventGridMQTTClientState(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState Disabled { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState Enabled { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState other) { throw null; } + public EventGridMqttClientState(string value) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState Disabled { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState Enabled { get { throw null; } } + public bool Equals(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState left, Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState left, Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState right) { throw null; } + public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState left, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState right) { throw null; } + public static implicit operator Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState (string value) { throw null; } + public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState left, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState right) { throw null; } public override string ToString() { throw null; } } public static partial class EventGridSystemEventsModelFactory @@ -2444,11 +2448,11 @@ public static partial class EventGridSystemEventsModelFactory public static Azure.Messaging.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedEventData AcsChatThreadPropertiesUpdatedEventData(string transactionId = null, string threadId = null, System.DateTimeOffset createTime = default(System.DateTimeOffset), long? version = default(long?), Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel editedByCommunicationIdentifier = null, System.DateTimeOffset editTime = default(System.DateTimeOffset), System.Collections.Generic.IReadOnlyDictionary properties = null, System.Collections.Generic.IReadOnlyDictionary metadata = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedPerUserEventData AcsChatThreadPropertiesUpdatedPerUserEventData(Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel recipientCommunicationIdentifier = null, string transactionId = null, string threadId = null, System.DateTimeOffset createTime = default(System.DateTimeOffset), long? version = default(long?), Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel editedByCommunicationIdentifier = null, System.DateTimeOffset editTime = default(System.DateTimeOffset), System.Collections.Generic.IReadOnlyDictionary metadata = null, System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsChatThreadWithUserDeletedEventData AcsChatThreadWithUserDeletedEventData(Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel recipientCommunicationIdentifier = null, string transactionId = null, string threadId = null, System.DateTimeOffset createTime = default(System.DateTimeOffset), long? version = default(long?), Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel deletedByCommunicationIdentifier = null, System.DateTimeOffset deleteTime = default(System.DateTimeOffset)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportReceivedEventData AcsEmailDeliveryReportReceivedEventData(string sender = null, string recipient = null, string messageId = null, Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus status = default(Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus), Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails deliveryStatusDetails = null, System.DateTimeOffset deliveryAttemptTimestamp = default(System.DateTimeOffset)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails AcsEmailDeliveryReportStatusDetails(string statusMessage = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportReceivedEventData AcsEmailDeliveryReportReceivedEventData(string sender = null, string recipient = null, string internetMessageId = null, string messageId = null, Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus status = default(Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus), Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails deliveryStatusDetails = null, System.DateTimeOffset deliveryAttemptTimestamp = default(System.DateTimeOffset)) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails AcsEmailDeliveryReportStatusDetails(string statusMessage = null, string recipientMailServerHostName = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsEmailEngagementTrackingReportReceivedEventData AcsEmailEngagementTrackingReportReceivedEventData(string sender = null, string recipient = null, string messageId = null, System.DateTimeOffset userActionTimestamp = default(System.DateTimeOffset), string engagementContext = null, string userAgent = null, Azure.Messaging.EventGrid.SystemEvents.AcsUserEngagement engagement = default(Azure.Messaging.EventGrid.SystemEvents.AcsUserEngagement)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallCustomContext AcsIncomingCallCustomContext(System.Collections.Generic.IReadOnlyDictionary sipHeaders = null, System.Collections.Generic.IReadOnlyDictionary voipHeaders = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallEventData AcsIncomingCallEventData(Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel toCommunicationIdentifier = null, Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel fromCommunicationIdentifier = null, string serverCallId = null, string callerDisplayName = null, Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallCustomContext customContext = null, string incomingCallContext = null, string correlationId = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallEventData AcsIncomingCallEventData(Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel toCommunicationIdentifier = null, Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel fromCommunicationIdentifier = null, string serverCallId = null, string callerDisplayName = null, Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallCustomContext customContext = null, string incomingCallContext = null, Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel onBehalfOfCallee = null, string correlationId = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsMessageButtonContent AcsMessageButtonContent(string text = null, string payload = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsMessageChannelEventError AcsMessageChannelEventError(string channelCode = null, string channelMessage = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsMessageContext AcsMessageContext(string from = null, string messageId = null) { throw null; } @@ -2494,7 +2498,7 @@ public static partial class EventGridSystemEventsModelFactory public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsDeliveryAttemptProperties AcsSmsDeliveryAttemptProperties(System.DateTimeOffset timestamp = default(System.DateTimeOffset), int? segmentsSucceeded = default(int?), int? segmentsFailed = default(int?)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsDeliveryReportReceivedEventData AcsSmsDeliveryReportReceivedEventData(string messageId = null, string from = null, string to = null, string deliveryStatus = null, string deliveryStatusDetails = null, System.Collections.Generic.IEnumerable deliveryAttempts = null, System.DateTimeOffset receivedTimestamp = default(System.DateTimeOffset), string tag = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsEventBaseProperties AcsSmsEventBaseProperties(string messageId = null, string from = null, string to = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsReceivedEventData AcsSmsReceivedEventData(string messageId = null, string from = null, string to = null, string message = null, System.DateTimeOffset receivedTimestamp = default(System.DateTimeOffset)) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsReceivedEventData AcsSmsReceivedEventData(string messageId = null, string from = null, string to = null, string message = null, System.DateTimeOffset receivedTimestamp = default(System.DateTimeOffset), int segmentCount = 0) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsUserDisconnectedEventData AcsUserDisconnectedEventData(Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel userCommunicationIdentifier = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ApiCenterApiDefinitionAddedEventData ApiCenterApiDefinitionAddedEventData(string title = null, string description = null, Azure.Messaging.EventGrid.SystemEvents.ApiCenterApiSpecification specification = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ApiCenterApiDefinitionUpdatedEventData ApiCenterApiDefinitionUpdatedEventData(string title = null, string description = null, Azure.Messaging.EventGrid.SystemEvents.ApiCenterApiSpecification specification = null) { throw null; } @@ -2576,87 +2580,58 @@ public static partial class EventGridSystemEventsModelFactory public static Azure.Messaging.EventGrid.SystemEvents.DeviceConnectionStateEventProperties DeviceConnectionStateEventProperties(string deviceId = null, string moduleId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.DeviceLifeCycleEventProperties DeviceLifeCycleEventProperties(string deviceId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo twin = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.DeviceTelemetryEventProperties DeviceTelemetryEventProperties(System.Collections.Generic.IReadOnlyDictionary body = null, System.Collections.Generic.IReadOnlyDictionary properties = null, System.Collections.Generic.IReadOnlyDictionary systemProperties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo DeviceTwinInfo(string authenticationType = null, float? cloudToDeviceMessageCount = default(float?), string connectionState = null, string deviceId = null, string etag = null, string lastActivityTime = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoProperties properties = null, string status = null, string statusUpdateTime = null, float? version = default(float?), Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint x509Thumbprint = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo DeviceTwinInfo(string authenticationType = null, float cloudToDeviceMessageCount = 0f, string connectionState = null, string deviceId = null, string etag = null, string lastActivityTime = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoProperties properties = null, string status = null, string statusUpdateTime = null, float version = 0f, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint x509Thumbprint = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoProperties DeviceTwinInfoProperties(Azure.Messaging.EventGrid.SystemEvents.DeviceTwinProperties desired = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinProperties reported = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint DeviceTwinInfoX509Thumbprint(string primaryThumbprint = null, string secondaryThumbprint = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinMetadata DeviceTwinMetadata(string lastUpdated = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinProperties DeviceTwinProperties(Azure.Messaging.EventGrid.SystemEvents.DeviceTwinMetadata metadata = null, float? version = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientCreatedOrUpdatedEventData EventGridMQTTClientCreatedOrUpdatedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState state = default(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState), System.DateTimeOffset createdOn = default(System.DateTimeOffset), System.DateTimeOffset updatedOn = default(System.DateTimeOffset), System.Collections.Generic.IReadOnlyDictionary attributes = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDeletedEventData EventGridMQTTClientDeletedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData EventGridMQTTClientEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionConnectedEventData EventGridMQTTClientSessionConnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long? sequenceNumber = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionDisconnectedEventData EventGridMQTTClientSessionDisconnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long? sequenceNumber = default(long?), Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason disconnectionReason = default(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason)) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinProperties DeviceTwinProperties(Azure.Messaging.EventGrid.SystemEvents.DeviceTwinMetadata metadata = null, float version = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientCreatedOrUpdatedEventData EventGridMqttClientCreatedOrUpdatedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState state = default(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState), System.DateTimeOffset createdOn = default(System.DateTimeOffset), System.DateTimeOffset updatedOn = default(System.DateTimeOffset), System.Collections.Generic.IReadOnlyDictionary attributes = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDeletedEventData EventGridMqttClientDeletedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData EventGridMqttClientEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionConnectedEventData EventGridMqttClientSessionConnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long sequenceNumber = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionDisconnectedEventData EventGridMqttClientSessionDisconnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long sequenceNumber = (long)0, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason disconnectionReason = default(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.EventHubCaptureFileCreatedEventData EventHubCaptureFileCreatedEventData(string fileurl = null, string fileType = null, string partitionId = null, int? sizeInBytes = default(int?), int? eventCount = default(int?), int? firstSequenceNumber = default(int?), int? lastSequenceNumber = default(int?), System.DateTimeOffset firstEnqueueTime = default(System.DateTimeOffset), System.DateTimeOffset lastEnqueueTime = default(System.DateTimeOffset)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageCreatedEventData HealthcareDicomImageCreatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long? sequenceNumber = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageDeletedEventData HealthcareDicomImageDeletedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long? sequenceNumber = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageUpdatedEventData HealthcareDicomImageUpdatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long? sequenceNumber = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData HealthcareFhirResourceCreatedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long? fhirResourceVersionId = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData HealthcareFhirResourceDeletedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long? fhirResourceVersionId = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData HealthcareFhirResourceUpdatedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long? fhirResourceVersionId = default(long?)) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageCreatedEventData HealthcareDicomImageCreatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long sequenceNumber = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageDeletedEventData HealthcareDicomImageDeletedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long sequenceNumber = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageUpdatedEventData HealthcareDicomImageUpdatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long sequenceNumber = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData HealthcareFhirResourceCreatedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long fhirResourceVersionId = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData HealthcareFhirResourceDeletedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long fhirResourceVersionId = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData HealthcareFhirResourceUpdatedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long fhirResourceVersionId = (long)0) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceConnectedEventData IotHubDeviceConnectedEventData(string deviceId = null, string moduleId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceCreatedEventData IotHubDeviceCreatedEventData(string deviceId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo twin = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceDeletedEventData IotHubDeviceDeletedEventData(string deviceId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo twin = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceDisconnectedEventData IotHubDeviceDisconnectedEventData(string deviceId = null, string moduleId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceTelemetryEventData IotHubDeviceTelemetryEventData(System.Collections.Generic.IReadOnlyDictionary body = null, System.Collections.Generic.IReadOnlyDictionary properties = null, System.Collections.Generic.IReadOnlyDictionary systemProperties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultAccessPolicyChangedEventData KeyVaultAccessPolicyChangedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateExpiredEventData KeyVaultCertificateExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateNearExpiryEventData KeyVaultCertificateNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateNewVersionCreatedEventData KeyVaultCertificateNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyExpiredEventData KeyVaultKeyExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyNearExpiryEventData KeyVaultKeyNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyNewVersionCreatedEventData KeyVaultKeyNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretExpiredEventData KeyVaultSecretExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretNearExpiryEventData KeyVaultSecretNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretNewVersionCreatedEventData KeyVaultSecretNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultAccessPolicyChangedEventData KeyVaultAccessPolicyChangedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateExpiredEventData KeyVaultCertificateExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateNearExpiryEventData KeyVaultCertificateNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateNewVersionCreatedEventData KeyVaultCertificateNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyExpiredEventData KeyVaultKeyExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyNearExpiryEventData KeyVaultKeyNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyNewVersionCreatedEventData KeyVaultKeyNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretExpiredEventData KeyVaultSecretExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretNearExpiryEventData KeyVaultSecretNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretNewVersionCreatedEventData KeyVaultSecretNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesDatasetDriftDetectedEventData MachineLearningServicesDatasetDriftDetectedEventData(string dataDriftId = null, string dataDriftName = null, string runId = null, string baseDatasetId = null, string targetDatasetId = null, double? driftCoefficient = default(double?), System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset endTime = default(System.DateTimeOffset)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesModelDeployedEventData MachineLearningServicesModelDeployedEventData(string serviceName = null, string serviceComputeType = null, string modelIds = null, System.Collections.Generic.IReadOnlyDictionary serviceTags = null, System.Collections.Generic.IReadOnlyDictionary serviceProperties = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesModelRegisteredEventData MachineLearningServicesModelRegisteredEventData(string modelName = null, string modelVersion = null, System.Collections.Generic.IReadOnlyDictionary modelTags = null, System.Collections.Generic.IReadOnlyDictionary modelProperties = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesRunCompletedEventData MachineLearningServicesRunCompletedEventData(string experimentId = null, string experimentName = null, string runId = null, string runType = null, System.Collections.Generic.IReadOnlyDictionary runTags = null, System.Collections.Generic.IReadOnlyDictionary runProperties = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesRunStatusChangedEventData MachineLearningServicesRunStatusChangedEventData(string experimentId = null, string experimentName = null, string runId = null, string runType = null, System.Collections.Generic.IReadOnlyDictionary runTags = null, System.Collections.Generic.IReadOnlyDictionary runProperties = null, string runStatus = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceEnteredEventData MapsGeofenceEnteredEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = default(bool?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceEventProperties MapsGeofenceEventProperties(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = default(bool?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceExitedEventData MapsGeofenceExitedEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = default(bool?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceGeometry MapsGeofenceGeometry(string deviceId = null, float? distance = default(float?), string geometryId = null, float? nearestLat = default(float?), float? nearestLon = default(float?), string udId = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceResultEventData MapsGeofenceResultEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = default(bool?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobCanceledEventData MediaJobCanceledEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null, System.Collections.Generic.IEnumerable outputs = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobCancelingEventData MediaJobCancelingEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobError MediaJobError(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode code = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode), string message = null, Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory category = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory), Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry retry = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry), System.Collections.Generic.IEnumerable details = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorDetail MediaJobErrorDetail(string code = null, string message = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErroredEventData MediaJobErroredEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null, System.Collections.Generic.IEnumerable outputs = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobFinishedEventData MediaJobFinishedEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null, System.Collections.Generic.IEnumerable outputs = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput MediaJobOutput(string odataType = null, Azure.Messaging.EventGrid.SystemEvents.MediaJobError error = null, string label = null, long progress = (long)0, Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputAsset MediaJobOutputAsset(Azure.Messaging.EventGrid.SystemEvents.MediaJobError error = null, string label = null, long progress = (long)0, Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), string assetName = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCanceledEventData MediaJobOutputCanceledEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCancelingEventData MediaJobOutputCancelingEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputErroredEventData MediaJobOutputErroredEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputFinishedEventData MediaJobOutputFinishedEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProcessingEventData MediaJobOutputProcessingEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProgressEventData MediaJobOutputProgressEventData(string label = null, long? progress = default(long?), System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputScheduledEventData MediaJobOutputScheduledEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData MediaJobOutputStateChangeEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobProcessingEventData MediaJobProcessingEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobScheduledEventData MediaJobScheduledEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData MediaJobStateChangeEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventChannelArchiveHeartbeatEventData MediaLiveEventChannelArchiveHeartbeatEventData(string channelLatencyMs = null, string latencyResultCode = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventConnectionRejectedEventData MediaLiveEventConnectionRejectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null, string resultCode = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderConnectedEventData MediaLiveEventEncoderConnectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderDisconnectedEventData MediaLiveEventEncoderDisconnectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null, string resultCode = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingDataChunkDroppedEventData MediaLiveEventIncomingDataChunkDroppedEventData(string timestamp = null, string trackType = null, long? bitrate = default(long?), string timescale = null, string resultCode = null, string trackName = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamReceivedEventData MediaLiveEventIncomingStreamReceivedEventData(string ingestUrl = null, string trackType = null, string trackName = null, long? bitrate = default(long?), string encoderIp = null, string encoderPort = null, string timestamp = null, string duration = null, string timescale = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData MediaLiveEventIncomingStreamsOutOfSyncEventData(string minLastTimestamp = null, string typeOfStreamWithMinLastTimestamp = null, string maxLastTimestamp = null, string typeOfStreamWithMaxLastTimestamp = null, string timescaleOfMinLastTimestamp = null, string timescaleOfMaxLastTimestamp = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData MediaLiveEventIncomingVideoStreamsOutOfSyncEventData(string firstTimestamp = null, string firstDuration = null, string secondTimestamp = null, string secondDuration = null, string timescale = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIngestHeartbeatEventData MediaLiveEventIngestHeartbeatEventData(string trackType = null, string trackName = null, string transcriptionLanguage = null, string transcriptionState = null, long? bitrate = default(long?), long? incomingBitrate = default(long?), string ingestDriftValue = null, string lastFragmentArrivalTime = null, string lastTimestamp = null, string timescale = null, long? overlapCount = default(long?), long? discontinuityCount = default(long?), long? nonincreasingCount = default(long?), bool? unexpectedBitrate = default(bool?), string state = null, bool? healthy = default(bool?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventTrackDiscontinuityDetectedEventData MediaLiveEventTrackDiscontinuityDetectedEventData(string trackType = null, string trackName = null, long? bitrate = default(long?), string previousTimestamp = null, string newTimestamp = null, string timescale = null, string discontinuityGap = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceEnteredEventData MapsGeofenceEnteredEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = false) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceEventProperties MapsGeofenceEventProperties(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = false) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceExitedEventData MapsGeofenceExitedEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = false) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceGeometry MapsGeofenceGeometry(string deviceId = null, float distance = 0f, string geometryId = null, float nearestLat = 0f, float nearestLon = 0f, string udId = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceResultEventData MapsGeofenceResultEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = false) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MicrosoftTeamsAppIdentifierModel MicrosoftTeamsAppIdentifierModel(string appId = null, Azure.Messaging.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel cloud = default(Azure.Messaging.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel MicrosoftTeamsUserIdentifierModel(string userId = null, bool? isAnonymous = default(bool?), Azure.Messaging.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel cloud = default(Azure.Messaging.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.PhoneNumberIdentifierModel PhoneNumberIdentifierModel(string value = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateChangedEventData PolicyInsightsPolicyStateChangedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string policyAssignmentId = null, string policyDefinitionId = null, string policyDefinitionReferenceId = null, string complianceState = null, string subscriptionId = null, string complianceReasonCode = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateCreatedEventData PolicyInsightsPolicyStateCreatedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string policyAssignmentId = null, string policyDefinitionId = null, string policyDefinitionReferenceId = null, string complianceState = null, string subscriptionId = null, string complianceReasonCode = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateDeletedEventData PolicyInsightsPolicyStateDeletedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string policyAssignmentId = null, string policyDefinitionId = null, string policyDefinitionReferenceId = null, string complianceState = null, string subscriptionId = null, string complianceReasonCode = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.RedisExportRDBCompletedEventData RedisExportRDBCompletedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string name = null, string status = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.RedisImportRDBCompletedEventData RedisImportRDBCompletedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string name = null, string status = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.RedisPatchingCompletedEventData RedisPatchingCompletedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string name = null, string status = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.RedisScalingCompletedEventData RedisScalingCompletedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string name = null, string status = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.RedisExportRdbCompletedEventData RedisExportRdbCompletedEventData(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), string name = null, string status = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.RedisImportRdbCompletedEventData RedisImportRdbCompletedEventData(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), string name = null, string status = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.RedisPatchingCompletedEventData RedisPatchingCompletedEventData(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), string name = null, string status = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.RedisScalingCompletedEventData RedisScalingCompletedEventData(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), string name = null, string status = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceActionCancelEventData ResourceActionCancelEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, Azure.Messaging.EventGrid.SystemEvents.ResourceAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string correlationId = null, Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest httpRequest = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceActionFailureEventData ResourceActionFailureEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, Azure.Messaging.EventGrid.SystemEvents.ResourceAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string correlationId = null, Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest httpRequest = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceActionSuccessEventData ResourceActionSuccessEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, Azure.Messaging.EventGrid.SystemEvents.ResourceAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string correlationId = null, Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest httpRequest = null) { throw null; } @@ -2665,6 +2640,7 @@ public static partial class EventGridSystemEventsModelFactory public static Azure.Messaging.EventGrid.SystemEvents.ResourceDeleteFailureEventData ResourceDeleteFailureEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, Azure.Messaging.EventGrid.SystemEvents.ResourceAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string correlationId = null, Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest httpRequest = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceDeleteSuccessEventData ResourceDeleteSuccessEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, Azure.Messaging.EventGrid.SystemEvents.ResourceAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string correlationId = null, Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest httpRequest = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest ResourceHttpRequest(string clientRequestId = null, string clientIpAddress = null, string method = null, string url = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsContainerServiceEventResourcesScheduledEventData ResourceNotificationsContainerServiceEventResourcesScheduledEventData(Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails resourceDetails = null, Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAnnotatedEventData ResourceNotificationsHealthResourcesAnnotatedEventData(Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails resourceDetails = null, Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData(Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails resourceDetails = null, Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails ResourceNotificationsOperationalDetails(System.DateTimeOffset resourceEventTime = default(System.DateTimeOffset)) { throw null; } @@ -2684,16 +2660,17 @@ public static partial class EventGridSystemEventsModelFactory public static Azure.Messaging.EventGrid.SystemEvents.SignalRServiceClientConnectionConnectedEventData SignalRServiceClientConnectionConnectedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string hubName = null, string connectionId = null, string userId = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.SignalRServiceClientConnectionDisconnectedEventData SignalRServiceClientConnectionDisconnectedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string hubName = null, string connectionId = null, string userId = null, string errorMessage = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageAsyncOperationInitiatedEventData StorageAsyncOperationInitiatedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, long? contentLength = default(long?), string blobType = null, string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobCreatedEventData StorageBlobCreatedEventData(string api = null, string clientRequestId = null, string requestId = null, string eTag = null, string contentType = null, long? contentLength = default(long?), long? contentOffset = default(long?), string blobType = null, string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobCreatedEventData StorageBlobCreatedEventData(string api = null, string clientRequestId = null, string requestId = null, string eTag = null, string contentType = null, long? contentLength = default(long?), long? contentOffset = default(long?), string blobType = null, Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier accessTier = default(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier), string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobDeletedEventData StorageBlobDeletedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, string blobType = null, string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobInventoryPolicyCompletedEventData StorageBlobInventoryPolicyCompletedEventData(System.DateTimeOffset scheduleDateTime = default(System.DateTimeOffset), string accountName = null, string ruleName = null, string policyRunStatus = null, string policyRunStatusMessage = null, string policyRunId = null, string manifestBlobUrl = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobRenamedEventData StorageBlobRenamedEventData(string api = null, string clientRequestId = null, string requestId = null, string sourceUrl = null, string destinationUrl = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobTierChangedEventData StorageBlobTierChangedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, long? contentLength = default(long?), string blobType = null, string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobTierChangedEventData StorageBlobTierChangedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, long? contentLength = default(long?), string blobType = null, Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier accessTier = default(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier), Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier previousTier = default(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier), string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageDirectoryCreatedEventData StorageDirectoryCreatedEventData(string api = null, string clientRequestId = null, string requestId = null, string eTag = null, string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageDirectoryDeletedEventData StorageDirectoryDeletedEventData(string api = null, string clientRequestId = null, string requestId = null, string url = null, string recursive = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageDirectoryRenamedEventData StorageDirectoryRenamedEventData(string api = null, string clientRequestId = null, string requestId = null, string sourceUrl = null, string destinationUrl = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail StorageLifecyclePolicyActionSummaryDetail(long? totalObjectsCount = default(long?), long? successCount = default(long?), string errorList = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData StorageLifecyclePolicyCompletedEventData(string scheduleTime = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail deleteSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData StorageLifecyclePolicyCompletedEventData(string scheduleTime = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyRunSummary policyRunSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail deleteSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToColdSummary = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyRunSummary StorageLifecyclePolicyRunSummary(Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus completionStatus = default(Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageTaskAssignmentCompletedEventData StorageTaskAssignmentCompletedEventData(Azure.Messaging.EventGrid.SystemEvents.StorageTaskAssignmentCompletedStatus status = default(Azure.Messaging.EventGrid.SystemEvents.StorageTaskAssignmentCompletedStatus), System.DateTimeOffset completedOn = default(System.DateTimeOffset), string taskExecutionId = null, string taskName = null, System.Uri summaryReportBlobUri = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageTaskAssignmentQueuedEventData StorageTaskAssignmentQueuedEventData(System.DateTimeOffset queuedOn = default(System.DateTimeOffset), string taskExecutionId = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageTaskCompletedEventData StorageTaskCompletedEventData(Azure.Messaging.EventGrid.SystemEvents.StorageTaskCompletedStatus status = default(Azure.Messaging.EventGrid.SystemEvents.StorageTaskCompletedStatus), System.DateTimeOffset completedDateTime = default(System.DateTimeOffset), string taskExecutionId = null, string taskName = null, System.Uri summaryReportBlobUrl = null) { throw null; } @@ -2742,7 +2719,7 @@ internal HealthcareDicomImageCreatedEventData() { } public string ImageSopInstanceUid { get { throw null; } } public string ImageStudyInstanceUid { get { throw null; } } public string PartitionName { get { throw null; } } - public long? SequenceNumber { get { throw null; } } + public long SequenceNumber { get { throw null; } } public string ServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageCreatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2758,7 +2735,7 @@ internal HealthcareDicomImageDeletedEventData() { } public string ImageSopInstanceUid { get { throw null; } } public string ImageStudyInstanceUid { get { throw null; } } public string PartitionName { get { throw null; } } - public long? SequenceNumber { get { throw null; } } + public long SequenceNumber { get { throw null; } } public string ServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageDeletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2774,7 +2751,7 @@ internal HealthcareDicomImageUpdatedEventData() { } public string ImageSopInstanceUid { get { throw null; } } public string ImageStudyInstanceUid { get { throw null; } } public string PartitionName { get { throw null; } } - public long? SequenceNumber { get { throw null; } } + public long SequenceNumber { get { throw null; } } public string ServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageUpdatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2788,7 +2765,7 @@ public partial class HealthcareFhirResourceCreatedEventData : System.ClientModel internal HealthcareFhirResourceCreatedEventData() { } public string FhirResourceId { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType FhirResourceType { get { throw null; } } - public long? FhirResourceVersionId { get { throw null; } } + public long FhirResourceVersionId { get { throw null; } } public string FhirServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2802,7 +2779,7 @@ public partial class HealthcareFhirResourceDeletedEventData : System.ClientModel internal HealthcareFhirResourceDeletedEventData() { } public string FhirResourceId { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType FhirResourceType { get { throw null; } } - public long? FhirResourceVersionId { get { throw null; } } + public long FhirResourceVersionId { get { throw null; } } public string FhirServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2993,7 +2970,7 @@ public partial class HealthcareFhirResourceUpdatedEventData : System.ClientModel internal HealthcareFhirResourceUpdatedEventData() { } public string FhirResourceId { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType FhirResourceType { get { throw null; } } - public long? FhirResourceVersionId { get { throw null; } } + public long FhirResourceVersionId { get { throw null; } } public string FhirServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -3055,9 +3032,9 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class KeyVaultAccessPolicyChangedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultAccessPolicyChangedEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3072,9 +3049,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultCertificateExpiredEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultCertificateExpiredEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3089,9 +3066,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultCertificateNearExpiryEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultCertificateNearExpiryEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3106,9 +3083,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultCertificateNewVersionCreatedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultCertificateNewVersionCreatedEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3123,9 +3100,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultKeyExpiredEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultKeyExpiredEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3140,9 +3117,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultKeyNearExpiryEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultKeyNearExpiryEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3157,9 +3134,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultKeyNewVersionCreatedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultKeyNewVersionCreatedEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3174,9 +3151,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultSecretExpiredEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultSecretExpiredEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3191,9 +3168,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultSecretNearExpiryEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultSecretNearExpiryEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3208,9 +3185,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultSecretNewVersionCreatedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultSecretNewVersionCreatedEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3318,7 +3295,7 @@ internal MapsGeofenceEventProperties() { } public System.Collections.Generic.IReadOnlyList ExpiredGeofenceGeometryId { get { throw null; } } public System.Collections.Generic.IReadOnlyList Geometries { get { throw null; } } public System.Collections.Generic.IReadOnlyList InvalidPeriodGeofenceGeometryId { get { throw null; } } - public bool? IsEventPublished { get { throw null; } } + public bool IsEventPublished { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceEventProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3340,10 +3317,10 @@ public partial class MapsGeofenceGeometry : System.ClientModel.Primitives.IJsonM { internal MapsGeofenceGeometry() { } public string DeviceId { get { throw null; } } - public float? Distance { get { throw null; } } + public float Distance { get { throw null; } } public string GeometryId { get { throw null; } } - public float? NearestLat { get { throw null; } } - public float? NearestLon { get { throw null; } } + public float NearestLat { get { throw null; } } + public float NearestLon { get { throw null; } } public string UdId { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceGeometry System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -3362,474 +3339,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class MediaJobCanceledEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobCanceledEventData() { } - public System.Collections.Generic.IReadOnlyList Outputs { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobCanceledEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobCanceledEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobCancelingEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobCancelingEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobCancelingEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobCancelingEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobError() { } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Category { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode Code { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Details { get { throw null; } } - public string Message { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry Retry { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MediaJobErrorCategory : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MediaJobErrorCategory(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Account { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Configuration { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Content { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Download { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Service { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Upload { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory left, Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory left, Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MediaJobErrorCode : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MediaJobErrorCode(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode ConfigurationUnsupported { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode ContentMalformed { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode ContentUnsupported { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode DownloadNotAccessible { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode DownloadTransientError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode IdentityUnsupported { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode ServiceError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode ServiceTransientError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode UploadNotAccessible { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode UploadTransientError { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode left, Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode left, Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode right) { throw null; } - public override string ToString() { throw null; } - } - public partial class MediaJobErrorDetail : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobErrorDetail() { } - public string Code { get { throw null; } } - public string Message { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorDetail System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorDetail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobErroredEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobErroredEventData() { } - public System.Collections.Generic.IReadOnlyList Outputs { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobErroredEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobErroredEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobFinishedEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobFinishedEventData() { } - public System.Collections.Generic.IReadOnlyList Outputs { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobFinishedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobFinishedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public abstract partial class MediaJobOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected MediaJobOutput(Azure.Messaging.EventGrid.SystemEvents.MediaJobError error, long progress, Azure.Messaging.EventGrid.SystemEvents.MediaJobState state) { } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobError Error { get { throw null; } } - public string Label { get { throw null; } } - public long Progress { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobState State { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputAsset : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputAsset() : base (default(Azure.Messaging.EventGrid.SystemEvents.MediaJobError), default(long), default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState)) { } - public string AssetName { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputAsset System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputAsset System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputCanceledEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputCanceledEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCanceledEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCanceledEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputCancelingEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputCancelingEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCancelingEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCancelingEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputErroredEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputErroredEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputErroredEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputErroredEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputFinishedEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputFinishedEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputFinishedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputFinishedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputProcessingEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputProcessingEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProcessingEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProcessingEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputProgressEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputProgressEventData() { } - public System.Collections.Generic.IReadOnlyDictionary JobCorrelationData { get { throw null; } } - public string Label { get { throw null; } } - public long? Progress { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProgressEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProgressEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputScheduledEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputScheduledEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputScheduledEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputScheduledEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputStateChangeEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputStateChangeEventData() { } - public System.Collections.Generic.IReadOnlyDictionary JobCorrelationData { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput Output { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobState PreviousState { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobProcessingEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobProcessingEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobProcessingEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobProcessingEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MediaJobRetry : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MediaJobRetry(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry DoNotRetry { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry MayRetry { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry left, Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry left, Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry right) { throw null; } - public override string ToString() { throw null; } - } - public partial class MediaJobScheduledEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobScheduledEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobScheduledEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobScheduledEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MediaJobState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MediaJobState(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Canceled { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Canceling { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Error { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Finished { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Processing { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Queued { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Scheduled { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.MediaJobState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.MediaJobState left, Azure.Messaging.EventGrid.SystemEvents.MediaJobState right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.MediaJobState (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.MediaJobState left, Azure.Messaging.EventGrid.SystemEvents.MediaJobState right) { throw null; } - public override string ToString() { throw null; } - } - public partial class MediaJobStateChangeEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobStateChangeEventData() { } - public System.Collections.Generic.IReadOnlyDictionary CorrelationData { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobState PreviousState { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobState State { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventChannelArchiveHeartbeatEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventChannelArchiveHeartbeatEventData() { } - public string ChannelLatencyMs { get { throw null; } } - public string LatencyResultCode { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventChannelArchiveHeartbeatEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventChannelArchiveHeartbeatEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventConnectionRejectedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventConnectionRejectedEventData() { } - public string EncoderIp { get { throw null; } } - public string EncoderPort { get { throw null; } } - public string IngestUrl { get { throw null; } } - public string ResultCode { get { throw null; } } - public string StreamId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventConnectionRejectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventConnectionRejectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventEncoderConnectedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventEncoderConnectedEventData() { } - public string EncoderIp { get { throw null; } } - public string EncoderPort { get { throw null; } } - public string IngestUrl { get { throw null; } } - public string StreamId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderConnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderConnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventEncoderDisconnectedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventEncoderDisconnectedEventData() { } - public string EncoderIp { get { throw null; } } - public string EncoderPort { get { throw null; } } - public string IngestUrl { get { throw null; } } - public string ResultCode { get { throw null; } } - public string StreamId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderDisconnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderDisconnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventIncomingDataChunkDroppedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventIncomingDataChunkDroppedEventData() { } - public long? Bitrate { get { throw null; } } - public string ResultCode { get { throw null; } } - public string Timescale { get { throw null; } } - public string Timestamp { get { throw null; } } - public string TrackName { get { throw null; } } - public string TrackType { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingDataChunkDroppedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingDataChunkDroppedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventIncomingStreamReceivedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventIncomingStreamReceivedEventData() { } - public long? Bitrate { get { throw null; } } - public string Duration { get { throw null; } } - public string EncoderIp { get { throw null; } } - public string EncoderPort { get { throw null; } } - public string IngestUrl { get { throw null; } } - public string Timescale { get { throw null; } } - public string Timestamp { get { throw null; } } - public string TrackName { get { throw null; } } - public string TrackType { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamReceivedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamReceivedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventIncomingStreamsOutOfSyncEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventIncomingStreamsOutOfSyncEventData() { } - public string MaxLastTimestamp { get { throw null; } } - public string MinLastTimestamp { get { throw null; } } - public string TimescaleOfMaxLastTimestamp { get { throw null; } } - public string TimescaleOfMinLastTimestamp { get { throw null; } } - public string TypeOfStreamWithMaxLastTimestamp { get { throw null; } } - public string TypeOfStreamWithMinLastTimestamp { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventIncomingVideoStreamsOutOfSyncEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventIncomingVideoStreamsOutOfSyncEventData() { } - public string FirstDuration { get { throw null; } } - public string FirstTimestamp { get { throw null; } } - public string SecondDuration { get { throw null; } } - public string SecondTimestamp { get { throw null; } } - public string Timescale { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventIngestHeartbeatEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventIngestHeartbeatEventData() { } - public long? Bitrate { get { throw null; } } - public long? DiscontinuityCount { get { throw null; } } - public bool? Healthy { get { throw null; } } - public long? IncomingBitrate { get { throw null; } } - public string IngestDriftValue { get { throw null; } } - public string LastFragmentArrivalTime { get { throw null; } } - public string LastTimestamp { get { throw null; } } - public long? NonincreasingCount { get { throw null; } } - public long? OverlapCount { get { throw null; } } - public string State { get { throw null; } } - public string Timescale { get { throw null; } } - public string TrackName { get { throw null; } } - public string TrackType { get { throw null; } } - public string TranscriptionLanguage { get { throw null; } } - public string TranscriptionState { get { throw null; } } - public bool? UnexpectedBitrate { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIngestHeartbeatEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIngestHeartbeatEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventTrackDiscontinuityDetectedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventTrackDiscontinuityDetectedEventData() { } - public long? Bitrate { get { throw null; } } - public string DiscontinuityGap { get { throw null; } } - public string NewTimestamp { get { throw null; } } - public string PreviousTimestamp { get { throw null; } } - public string Timescale { get { throw null; } } - public string TrackName { get { throw null; } } - public string TrackType { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventTrackDiscontinuityDetectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventTrackDiscontinuityDetectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class MicrosoftTeamsAppIdentifierModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal MicrosoftTeamsAppIdentifierModel() { } @@ -3972,38 +3481,38 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.RecordingFormatType left, Azure.Messaging.EventGrid.SystemEvents.RecordingFormatType right) { throw null; } public override string ToString() { throw null; } } - public partial class RedisExportRDBCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class RedisExportRdbCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal RedisExportRDBCompletedEventData() { } + internal RedisExportRdbCompletedEventData() { } public string Name { get { throw null; } } public string Status { get { throw null; } } - public System.DateTimeOffset Timestamp { get { throw null; } } + public System.DateTimeOffset? Timestamp { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.RedisExportRDBCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.RedisExportRDBCompletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.RedisExportRdbCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.RedisExportRdbCompletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class RedisImportRDBCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class RedisImportRdbCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal RedisImportRDBCompletedEventData() { } + internal RedisImportRdbCompletedEventData() { } public string Name { get { throw null; } } public string Status { get { throw null; } } - public System.DateTimeOffset Timestamp { get { throw null; } } + public System.DateTimeOffset? Timestamp { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.RedisImportRDBCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.RedisImportRDBCompletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.RedisImportRdbCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.RedisImportRdbCompletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class RedisPatchingCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal RedisPatchingCompletedEventData() { } public string Name { get { throw null; } } public string Status { get { throw null; } } - public System.DateTimeOffset Timestamp { get { throw null; } } + public System.DateTimeOffset? Timestamp { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.RedisPatchingCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -4016,7 +3525,7 @@ public partial class RedisScalingCompletedEventData : System.ClientModel.Primiti internal RedisScalingCompletedEventData() { } public string Name { get { throw null; } } public string Status { get { throw null; } } - public System.DateTimeOffset Timestamp { get { throw null; } } + public System.DateTimeOffset? Timestamp { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.RedisScalingCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -4177,6 +3686,16 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class ResourceNotificationsContainerServiceEventResourcesScheduledEventData : Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResourceNotificationsContainerServiceEventResourcesScheduledEventData() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsContainerServiceEventResourcesScheduledEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsContainerServiceEventResourcesScheduledEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ResourceNotificationsHealthResourcesAnnotatedEventData : Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal ResourceNotificationsHealthResourcesAnnotatedEventData() { } @@ -4477,9 +3996,31 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct StorageBlobAccessTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StorageBlobAccessTier(string value) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier Archive { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier Cold { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier Cool { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier Default { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier Hot { get { throw null; } } + public bool Equals(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier left, Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier right) { throw null; } + public static implicit operator Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier (string value) { throw null; } + public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier left, Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier right) { throw null; } + public override string ToString() { throw null; } + } public partial class StorageBlobCreatedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal StorageBlobCreatedEventData() { } + public Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier AccessTier { get { throw null; } } public string Api { get { throw null; } } public string BlobType { get { throw null; } } public string ClientRequestId { get { throw null; } } @@ -4556,12 +4097,14 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class StorageBlobTierChangedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal StorageBlobTierChangedEventData() { } + public Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier AccessTier { get { throw null; } } public string Api { get { throw null; } } public string BlobType { get { throw null; } } public string ClientRequestId { get { throw null; } } public long? ContentLength { get { throw null; } } public string ContentType { get { throw null; } } public string Identity { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier PreviousTier { get { throw null; } } public string RequestId { get { throw null; } } public string Sequencer { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary StorageDiagnostics { get { throw null; } } @@ -4627,6 +4170,25 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct StorageLifecycleCompletionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StorageLifecycleCompletionStatus(string value) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus Completed { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus CompletedWithError { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus Incomplete { get { throw null; } } + public bool Equals(Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus left, Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus right) { throw null; } + public static implicit operator Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus (string value) { throw null; } + public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus left, Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus right) { throw null; } + public override string ToString() { throw null; } + } public partial class StorageLifecyclePolicyActionSummaryDetail : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal StorageLifecyclePolicyActionSummaryDetail() { } @@ -4644,8 +4206,10 @@ public partial class StorageLifecyclePolicyCompletedEventData : System.ClientMod { internal StorageLifecyclePolicyCompletedEventData() { } public Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail DeleteSummary { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyRunSummary PolicyRunSummary { get { throw null; } } public string ScheduleTime { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail TierToArchiveSummary { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail TierToColdSummary { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail TierToCoolSummary { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -4654,6 +4218,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class StorageLifecyclePolicyRunSummary : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StorageLifecyclePolicyRunSummary() { } + public Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus CompletionStatus { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyRunSummary System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyRunSummary System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class StorageTaskAssignmentCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal StorageTaskAssignmentCompletedEventData() { } @@ -4884,10 +4459,10 @@ public static partial class SystemEventNames public const string DataBoxCopyCompleted = "Microsoft.DataBox.CopyCompleted"; public const string DataBoxCopyStarted = "Microsoft.DataBox.CopyStarted"; public const string DataBoxOrderCompleted = "Microsoft.DataBox.OrderCompleted"; - public const string EventGridMQTTClientCreatedOrUpdated = "Microsoft.EventGrid.MQTTClientCreatedOrUpdated"; - public const string EventGridMQTTClientDeleted = "Microsoft.EventGrid.MQTTClientDeleted"; - public const string EventGridMQTTClientSessionConnected = "Microsoft.EventGrid.MQTTClientSessionConnected"; - public const string EventGridMQTTClientSessionDisconnected = "Microsoft.EventGrid.MQTTClientSessionDisconnected"; + public const string EventGridMqttClientCreatedOrUpdated = "Microsoft.EventGrid.MQTTClientCreatedOrUpdated"; + public const string EventGridMqttClientDeleted = "Microsoft.EventGrid.MQTTClientDeleted"; + public const string EventGridMqttClientSessionConnected = "Microsoft.EventGrid.MQTTClientSessionConnected"; + public const string EventGridMqttClientSessionDisconnected = "Microsoft.EventGrid.MQTTClientSessionDisconnected"; public const string EventGridSubscriptionDeleted = "Microsoft.EventGrid.SubscriptionDeletedEvent"; public const string EventGridSubscriptionValidation = "Microsoft.EventGrid.SubscriptionValidationEvent"; public const string EventHubCaptureFileCreated = "Microsoft.EventHub.CaptureFileCreated"; @@ -4920,36 +4495,11 @@ public static partial class SystemEventNames public const string MapsGeofenceEntered = "Microsoft.Maps.GeofenceEntered"; public const string MapsGeofenceExited = "Microsoft.Maps.GeofenceExited"; public const string MapsGeofenceResult = "Microsoft.Maps.GeofenceResult"; - public const string MediaJobCanceled = "Microsoft.Media.JobCanceled"; - public const string MediaJobCanceling = "Microsoft.Media.JobCanceling"; - public const string MediaJobErrored = "Microsoft.Media.JobErrored"; - public const string MediaJobFinished = "Microsoft.Media.JobFinished"; - public const string MediaJobOutputCanceled = "Microsoft.Media.JobOutputCanceled"; - public const string MediaJobOutputCanceling = "Microsoft.Media.JobOutputCanceling"; - public const string MediaJobOutputErrored = "Microsoft.Media.JobOutputErrored"; - public const string MediaJobOutputFinished = "Microsoft.Media.JobOutputFinished"; - public const string MediaJobOutputProcessing = "Microsoft.Media.JobOutputProcessing"; - public const string MediaJobOutputProgress = "Microsoft.Media.JobOutputProgress"; - public const string MediaJobOutputScheduled = "Microsoft.Media.JobOutputScheduled"; - public const string MediaJobOutputStateChange = "Microsoft.Media.JobOutputStateChange"; - public const string MediaJobProcessing = "Microsoft.Media.JobProcessing"; - public const string MediaJobScheduled = "Microsoft.Media.JobScheduled"; - public const string MediaJobStateChange = "Microsoft.Media.JobStateChange"; - public const string MediaLiveEventChannelArchiveHeartbeat = "Microsoft.Media.LiveEventChannelArchiveHeartbeat"; - public const string MediaLiveEventConnectionRejected = "Microsoft.Media.LiveEventConnectionRejected"; - public const string MediaLiveEventEncoderConnected = "Microsoft.Media.LiveEventEncoderConnected"; - public const string MediaLiveEventEncoderDisconnected = "Microsoft.Media.LiveEventEncoderDisconnected"; - public const string MediaLiveEventIncomingDataChunkDropped = "Microsoft.Media.LiveEventIncomingDataChunkDropped"; - public const string MediaLiveEventIncomingStreamReceived = "Microsoft.Media.LiveEventIncomingStreamReceived"; - public const string MediaLiveEventIncomingStreamsOutOfSync = "Microsoft.Media.LiveEventIncomingStreamsOutOfSync"; - public const string MediaLiveEventIncomingVideoStreamsOutOfSync = "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync"; - public const string MediaLiveEventIngestHeartbeat = "Microsoft.Media.LiveEventIngestHeartbeat"; - public const string MediaLiveEventTrackDiscontinuityDetected = "Microsoft.Media.LiveEventTrackDiscontinuityDetected"; public const string PolicyInsightsPolicyStateChanged = "Microsoft.PolicyInsights.PolicyStateChanged"; public const string PolicyInsightsPolicyStateCreated = "Microsoft.PolicyInsights.PolicyStateCreated"; public const string PolicyInsightsPolicyStateDeleted = "Microsoft.PolicyInsights.PolicyStateDeleted"; - public const string RedisExportRDBCompleted = "Microsoft.Cache.ExportRDBCompleted"; - public const string RedisImportRDBCompleted = "Microsoft.Cache.ImportRDBCompleted"; + public const string RedisExportRdbCompleted = "Microsoft.Cache.ExportRDBCompleted"; + public const string RedisImportRdbCompleted = "Microsoft.Cache.ImportRDBCompleted"; public const string RedisPatchingCompleted = "Microsoft.Cache.PatchingCompleted"; public const string RedisScalingCompleted = "Microsoft.Cache.ScalingCompleted"; public const string ResourceActionCancel = "Microsoft.Resources.ResourceActionCancel"; @@ -4958,6 +4508,7 @@ public static partial class SystemEventNames public const string ResourceDeleteCancel = "Microsoft.Resources.ResourceDeleteCancel"; public const string ResourceDeleteFailure = "Microsoft.Resources.ResourceDeleteFailure"; public const string ResourceDeleteSuccess = "Microsoft.Resources.ResourceDeleteSuccess"; + public const string ResourceNotificationsContainerServiceEventResourcesScheduled = "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted"; public const string ResourceNotificationsHealthResourcesAnnotated = "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated"; public const string ResourceNotificationsHealthResourcesAvailabilityStatusChanged = "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged"; public const string ResourceNotificationsResourceManagementCreatedOrUpdated = "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated"; diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/api/Azure.Messaging.EventGrid.SystemEvents.netstandard2.0.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/api/Azure.Messaging.EventGrid.SystemEvents.netstandard2.0.cs index 5cffdf30386c..02a93f60d244 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/api/Azure.Messaging.EventGrid.SystemEvents.netstandard2.0.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/api/Azure.Messaging.EventGrid.SystemEvents.netstandard2.0.cs @@ -312,6 +312,7 @@ public partial class AcsEmailDeliveryReportReceivedEventData : System.ClientMode internal AcsEmailDeliveryReportReceivedEventData() { } public System.DateTimeOffset DeliveryAttemptTimestamp { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails DeliveryStatusDetails { get { throw null; } } + public string InternetMessageId { get { throw null; } } public string MessageId { get { throw null; } } public string Recipient { get { throw null; } } public string Sender { get { throw null; } } @@ -348,6 +349,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AcsEmailDeliveryReportStatusDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AcsEmailDeliveryReportStatusDetails() { } + public string RecipientMailServerHostName { get { throw null; } } public string StatusMessage { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -393,6 +395,7 @@ internal AcsIncomingCallEventData() { } public Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallCustomContext CustomContext { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel FromCommunicationIdentifier { get { throw null; } } public string IncomingCallContext { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel OnBehalfOfCallee { get { throw null; } } public string ServerCallId { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel ToCommunicationIdentifier { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1160,6 +1163,7 @@ public partial class AcsSmsReceivedEventData : Azure.Messaging.EventGrid.SystemE internal AcsSmsReceivedEventData() { } public string Message { get { throw null; } } public System.DateTimeOffset ReceivedTimestamp { get { throw null; } } + public int SegmentCount { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.AcsSmsReceivedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2248,7 +2252,7 @@ public partial class DeviceTwinInfo : System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2304,7 +2308,7 @@ public partial class DeviceTwinProperties : System.ClientModel.Primitives.IJsonM { internal DeviceTwinProperties() { } public Azure.Messaging.EventGrid.SystemEvents.DeviceTwinMetadata Metadata { get { throw null; } } - public float? Version { get { throw null; } } + public float Version { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.DeviceTwinProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2312,111 +2316,111 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EventGridMQTTClientCreatedOrUpdatedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EventGridMqttClientCreatedOrUpdatedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EventGridMQTTClientCreatedOrUpdatedEventData() { } + internal EventGridMqttClientCreatedOrUpdatedEventData() { } public System.Collections.Generic.IReadOnlyDictionary Attributes { get { throw null; } } public System.DateTimeOffset CreatedOn { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState State { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState State { get { throw null; } } public System.DateTimeOffset UpdatedOn { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientCreatedOrUpdatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientCreatedOrUpdatedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientCreatedOrUpdatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientCreatedOrUpdatedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EventGridMQTTClientDeletedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EventGridMqttClientDeletedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EventGridMQTTClientDeletedEventData() { } + internal EventGridMqttClientDeletedEventData() { } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDeletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDeletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDeletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDeletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EventGridMQTTClientDisconnectionReason : System.IEquatable + public readonly partial struct EventGridMqttClientDisconnectionReason : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public EventGridMQTTClientDisconnectionReason(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ClientAuthenticationError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ClientAuthorizationError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ClientError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ClientInitiatedDisconnect { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ConnectionLost { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason IpForbidden { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason QuotaExceeded { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ServerError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason ServerInitiatedDisconnect { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason SessionOverflow { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason SessionTakenOver { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason other) { throw null; } + public EventGridMqttClientDisconnectionReason(string value) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ClientAuthenticationError { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ClientAuthorizationError { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ClientError { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ClientInitiatedDisconnect { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ConnectionLost { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason IpForbidden { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason QuotaExceeded { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ServerError { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason ServerInitiatedDisconnect { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason SessionOverflow { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason SessionTakenOver { get { throw null; } } + public bool Equals(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason left, Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason left, Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason right) { throw null; } + public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason left, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason right) { throw null; } + public static implicit operator Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason (string value) { throw null; } + public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason left, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason right) { throw null; } public override string ToString() { throw null; } } - public partial class EventGridMQTTClientEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EventGridMqttClientEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EventGridMQTTClientEventData() { } + internal EventGridMqttClientEventData() { } public string ClientAuthenticationName { get { throw null; } } public string ClientName { get { throw null; } } public string NamespaceName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EventGridMQTTClientSessionConnectedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EventGridMqttClientSessionConnectedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EventGridMQTTClientSessionConnectedEventData() { } + internal EventGridMqttClientSessionConnectedEventData() { } public string ClientSessionName { get { throw null; } } - public long? SequenceNumber { get { throw null; } } + public long SequenceNumber { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionConnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionConnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionConnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionConnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class EventGridMQTTClientSessionDisconnectedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class EventGridMqttClientSessionDisconnectedEventData : Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal EventGridMQTTClientSessionDisconnectedEventData() { } + internal EventGridMqttClientSessionDisconnectedEventData() { } public string ClientSessionName { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason DisconnectionReason { get { throw null; } } - public long? SequenceNumber { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason DisconnectionReason { get { throw null; } } + public long SequenceNumber { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionDisconnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionDisconnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionDisconnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionDisconnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EventGridMQTTClientState : System.IEquatable + public readonly partial struct EventGridMqttClientState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public EventGridMQTTClientState(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState Disabled { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState Enabled { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState other) { throw null; } + public EventGridMqttClientState(string value) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState Disabled { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState Enabled { get { throw null; } } + public bool Equals(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState left, Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState left, Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState right) { throw null; } + public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState left, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState right) { throw null; } + public static implicit operator Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState (string value) { throw null; } + public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState left, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState right) { throw null; } public override string ToString() { throw null; } } public static partial class EventGridSystemEventsModelFactory @@ -2444,11 +2448,11 @@ public static partial class EventGridSystemEventsModelFactory public static Azure.Messaging.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedEventData AcsChatThreadPropertiesUpdatedEventData(string transactionId = null, string threadId = null, System.DateTimeOffset createTime = default(System.DateTimeOffset), long? version = default(long?), Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel editedByCommunicationIdentifier = null, System.DateTimeOffset editTime = default(System.DateTimeOffset), System.Collections.Generic.IReadOnlyDictionary properties = null, System.Collections.Generic.IReadOnlyDictionary metadata = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsChatThreadPropertiesUpdatedPerUserEventData AcsChatThreadPropertiesUpdatedPerUserEventData(Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel recipientCommunicationIdentifier = null, string transactionId = null, string threadId = null, System.DateTimeOffset createTime = default(System.DateTimeOffset), long? version = default(long?), Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel editedByCommunicationIdentifier = null, System.DateTimeOffset editTime = default(System.DateTimeOffset), System.Collections.Generic.IReadOnlyDictionary metadata = null, System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsChatThreadWithUserDeletedEventData AcsChatThreadWithUserDeletedEventData(Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel recipientCommunicationIdentifier = null, string transactionId = null, string threadId = null, System.DateTimeOffset createTime = default(System.DateTimeOffset), long? version = default(long?), Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel deletedByCommunicationIdentifier = null, System.DateTimeOffset deleteTime = default(System.DateTimeOffset)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportReceivedEventData AcsEmailDeliveryReportReceivedEventData(string sender = null, string recipient = null, string messageId = null, Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus status = default(Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus), Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails deliveryStatusDetails = null, System.DateTimeOffset deliveryAttemptTimestamp = default(System.DateTimeOffset)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails AcsEmailDeliveryReportStatusDetails(string statusMessage = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportReceivedEventData AcsEmailDeliveryReportReceivedEventData(string sender = null, string recipient = null, string internetMessageId = null, string messageId = null, Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus status = default(Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatus), Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails deliveryStatusDetails = null, System.DateTimeOffset deliveryAttemptTimestamp = default(System.DateTimeOffset)) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.AcsEmailDeliveryReportStatusDetails AcsEmailDeliveryReportStatusDetails(string statusMessage = null, string recipientMailServerHostName = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsEmailEngagementTrackingReportReceivedEventData AcsEmailEngagementTrackingReportReceivedEventData(string sender = null, string recipient = null, string messageId = null, System.DateTimeOffset userActionTimestamp = default(System.DateTimeOffset), string engagementContext = null, string userAgent = null, Azure.Messaging.EventGrid.SystemEvents.AcsUserEngagement engagement = default(Azure.Messaging.EventGrid.SystemEvents.AcsUserEngagement)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallCustomContext AcsIncomingCallCustomContext(System.Collections.Generic.IReadOnlyDictionary sipHeaders = null, System.Collections.Generic.IReadOnlyDictionary voipHeaders = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallEventData AcsIncomingCallEventData(Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel toCommunicationIdentifier = null, Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel fromCommunicationIdentifier = null, string serverCallId = null, string callerDisplayName = null, Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallCustomContext customContext = null, string incomingCallContext = null, string correlationId = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallEventData AcsIncomingCallEventData(Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel toCommunicationIdentifier = null, Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel fromCommunicationIdentifier = null, string serverCallId = null, string callerDisplayName = null, Azure.Messaging.EventGrid.SystemEvents.AcsIncomingCallCustomContext customContext = null, string incomingCallContext = null, Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel onBehalfOfCallee = null, string correlationId = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsMessageButtonContent AcsMessageButtonContent(string text = null, string payload = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsMessageChannelEventError AcsMessageChannelEventError(string channelCode = null, string channelMessage = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsMessageContext AcsMessageContext(string from = null, string messageId = null) { throw null; } @@ -2494,7 +2498,7 @@ public static partial class EventGridSystemEventsModelFactory public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsDeliveryAttemptProperties AcsSmsDeliveryAttemptProperties(System.DateTimeOffset timestamp = default(System.DateTimeOffset), int? segmentsSucceeded = default(int?), int? segmentsFailed = default(int?)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsDeliveryReportReceivedEventData AcsSmsDeliveryReportReceivedEventData(string messageId = null, string from = null, string to = null, string deliveryStatus = null, string deliveryStatusDetails = null, System.Collections.Generic.IEnumerable deliveryAttempts = null, System.DateTimeOffset receivedTimestamp = default(System.DateTimeOffset), string tag = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsEventBaseProperties AcsSmsEventBaseProperties(string messageId = null, string from = null, string to = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsReceivedEventData AcsSmsReceivedEventData(string messageId = null, string from = null, string to = null, string message = null, System.DateTimeOffset receivedTimestamp = default(System.DateTimeOffset)) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsReceivedEventData AcsSmsReceivedEventData(string messageId = null, string from = null, string to = null, string message = null, System.DateTimeOffset receivedTimestamp = default(System.DateTimeOffset), int segmentCount = 0) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsUserDisconnectedEventData AcsUserDisconnectedEventData(Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel userCommunicationIdentifier = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ApiCenterApiDefinitionAddedEventData ApiCenterApiDefinitionAddedEventData(string title = null, string description = null, Azure.Messaging.EventGrid.SystemEvents.ApiCenterApiSpecification specification = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ApiCenterApiDefinitionUpdatedEventData ApiCenterApiDefinitionUpdatedEventData(string title = null, string description = null, Azure.Messaging.EventGrid.SystemEvents.ApiCenterApiSpecification specification = null) { throw null; } @@ -2576,87 +2580,58 @@ public static partial class EventGridSystemEventsModelFactory public static Azure.Messaging.EventGrid.SystemEvents.DeviceConnectionStateEventProperties DeviceConnectionStateEventProperties(string deviceId = null, string moduleId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.DeviceLifeCycleEventProperties DeviceLifeCycleEventProperties(string deviceId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo twin = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.DeviceTelemetryEventProperties DeviceTelemetryEventProperties(System.Collections.Generic.IReadOnlyDictionary body = null, System.Collections.Generic.IReadOnlyDictionary properties = null, System.Collections.Generic.IReadOnlyDictionary systemProperties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo DeviceTwinInfo(string authenticationType = null, float? cloudToDeviceMessageCount = default(float?), string connectionState = null, string deviceId = null, string etag = null, string lastActivityTime = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoProperties properties = null, string status = null, string statusUpdateTime = null, float? version = default(float?), Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint x509Thumbprint = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo DeviceTwinInfo(string authenticationType = null, float cloudToDeviceMessageCount = 0f, string connectionState = null, string deviceId = null, string etag = null, string lastActivityTime = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoProperties properties = null, string status = null, string statusUpdateTime = null, float version = 0f, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint x509Thumbprint = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoProperties DeviceTwinInfoProperties(Azure.Messaging.EventGrid.SystemEvents.DeviceTwinProperties desired = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinProperties reported = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint DeviceTwinInfoX509Thumbprint(string primaryThumbprint = null, string secondaryThumbprint = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinMetadata DeviceTwinMetadata(string lastUpdated = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinProperties DeviceTwinProperties(Azure.Messaging.EventGrid.SystemEvents.DeviceTwinMetadata metadata = null, float? version = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientCreatedOrUpdatedEventData EventGridMQTTClientCreatedOrUpdatedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState state = default(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientState), System.DateTimeOffset createdOn = default(System.DateTimeOffset), System.DateTimeOffset updatedOn = default(System.DateTimeOffset), System.Collections.Generic.IReadOnlyDictionary attributes = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDeletedEventData EventGridMQTTClientDeletedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientEventData EventGridMQTTClientEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionConnectedEventData EventGridMQTTClientSessionConnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long? sequenceNumber = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientSessionDisconnectedEventData EventGridMQTTClientSessionDisconnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long? sequenceNumber = default(long?), Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason disconnectionReason = default(Azure.Messaging.EventGrid.SystemEvents.EventGridMQTTClientDisconnectionReason)) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinProperties DeviceTwinProperties(Azure.Messaging.EventGrid.SystemEvents.DeviceTwinMetadata metadata = null, float version = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientCreatedOrUpdatedEventData EventGridMqttClientCreatedOrUpdatedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState state = default(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientState), System.DateTimeOffset createdOn = default(System.DateTimeOffset), System.DateTimeOffset updatedOn = default(System.DateTimeOffset), System.Collections.Generic.IReadOnlyDictionary attributes = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDeletedEventData EventGridMqttClientDeletedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientEventData EventGridMqttClientEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionConnectedEventData EventGridMqttClientSessionConnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long sequenceNumber = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionDisconnectedEventData EventGridMqttClientSessionDisconnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long sequenceNumber = (long)0, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason disconnectionReason = default(Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.EventHubCaptureFileCreatedEventData EventHubCaptureFileCreatedEventData(string fileurl = null, string fileType = null, string partitionId = null, int? sizeInBytes = default(int?), int? eventCount = default(int?), int? firstSequenceNumber = default(int?), int? lastSequenceNumber = default(int?), System.DateTimeOffset firstEnqueueTime = default(System.DateTimeOffset), System.DateTimeOffset lastEnqueueTime = default(System.DateTimeOffset)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageCreatedEventData HealthcareDicomImageCreatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long? sequenceNumber = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageDeletedEventData HealthcareDicomImageDeletedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long? sequenceNumber = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageUpdatedEventData HealthcareDicomImageUpdatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long? sequenceNumber = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData HealthcareFhirResourceCreatedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long? fhirResourceVersionId = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData HealthcareFhirResourceDeletedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long? fhirResourceVersionId = default(long?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData HealthcareFhirResourceUpdatedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long? fhirResourceVersionId = default(long?)) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageCreatedEventData HealthcareDicomImageCreatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long sequenceNumber = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageDeletedEventData HealthcareDicomImageDeletedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long sequenceNumber = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageUpdatedEventData HealthcareDicomImageUpdatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long sequenceNumber = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData HealthcareFhirResourceCreatedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long fhirResourceVersionId = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData HealthcareFhirResourceDeletedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long fhirResourceVersionId = (long)0) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData HealthcareFhirResourceUpdatedEventData(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType fhirResourceType = default(Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType), string fhirServiceHostName = null, string fhirResourceId = null, long fhirResourceVersionId = (long)0) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceConnectedEventData IotHubDeviceConnectedEventData(string deviceId = null, string moduleId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceCreatedEventData IotHubDeviceCreatedEventData(string deviceId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo twin = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceDeletedEventData IotHubDeviceDeletedEventData(string deviceId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo twin = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceDisconnectedEventData IotHubDeviceDisconnectedEventData(string deviceId = null, string moduleId = null, string hubName = null, Azure.Messaging.EventGrid.SystemEvents.DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceTelemetryEventData IotHubDeviceTelemetryEventData(System.Collections.Generic.IReadOnlyDictionary body = null, System.Collections.Generic.IReadOnlyDictionary properties = null, System.Collections.Generic.IReadOnlyDictionary systemProperties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultAccessPolicyChangedEventData KeyVaultAccessPolicyChangedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateExpiredEventData KeyVaultCertificateExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateNearExpiryEventData KeyVaultCertificateNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateNewVersionCreatedEventData KeyVaultCertificateNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyExpiredEventData KeyVaultKeyExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyNearExpiryEventData KeyVaultKeyNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyNewVersionCreatedEventData KeyVaultKeyNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretExpiredEventData KeyVaultSecretExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretNearExpiryEventData KeyVaultSecretNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretNewVersionCreatedEventData KeyVaultSecretNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = default(float?), float? exp = default(float?)) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultAccessPolicyChangedEventData KeyVaultAccessPolicyChangedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateExpiredEventData KeyVaultCertificateExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateNearExpiryEventData KeyVaultCertificateNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultCertificateNewVersionCreatedEventData KeyVaultCertificateNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyExpiredEventData KeyVaultKeyExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyNearExpiryEventData KeyVaultKeyNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultKeyNewVersionCreatedEventData KeyVaultKeyNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretExpiredEventData KeyVaultSecretExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretNearExpiryEventData KeyVaultSecretNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.KeyVaultSecretNewVersionCreatedEventData KeyVaultSecretNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = 0f, float exp = 0f) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesDatasetDriftDetectedEventData MachineLearningServicesDatasetDriftDetectedEventData(string dataDriftId = null, string dataDriftName = null, string runId = null, string baseDatasetId = null, string targetDatasetId = null, double? driftCoefficient = default(double?), System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset endTime = default(System.DateTimeOffset)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesModelDeployedEventData MachineLearningServicesModelDeployedEventData(string serviceName = null, string serviceComputeType = null, string modelIds = null, System.Collections.Generic.IReadOnlyDictionary serviceTags = null, System.Collections.Generic.IReadOnlyDictionary serviceProperties = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesModelRegisteredEventData MachineLearningServicesModelRegisteredEventData(string modelName = null, string modelVersion = null, System.Collections.Generic.IReadOnlyDictionary modelTags = null, System.Collections.Generic.IReadOnlyDictionary modelProperties = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesRunCompletedEventData MachineLearningServicesRunCompletedEventData(string experimentId = null, string experimentName = null, string runId = null, string runType = null, System.Collections.Generic.IReadOnlyDictionary runTags = null, System.Collections.Generic.IReadOnlyDictionary runProperties = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MachineLearningServicesRunStatusChangedEventData MachineLearningServicesRunStatusChangedEventData(string experimentId = null, string experimentName = null, string runId = null, string runType = null, System.Collections.Generic.IReadOnlyDictionary runTags = null, System.Collections.Generic.IReadOnlyDictionary runProperties = null, string runStatus = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceEnteredEventData MapsGeofenceEnteredEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = default(bool?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceEventProperties MapsGeofenceEventProperties(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = default(bool?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceExitedEventData MapsGeofenceExitedEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = default(bool?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceGeometry MapsGeofenceGeometry(string deviceId = null, float? distance = default(float?), string geometryId = null, float? nearestLat = default(float?), float? nearestLon = default(float?), string udId = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceResultEventData MapsGeofenceResultEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = default(bool?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobCanceledEventData MediaJobCanceledEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null, System.Collections.Generic.IEnumerable outputs = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobCancelingEventData MediaJobCancelingEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobError MediaJobError(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode code = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode), string message = null, Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory category = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory), Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry retry = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry), System.Collections.Generic.IEnumerable details = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorDetail MediaJobErrorDetail(string code = null, string message = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErroredEventData MediaJobErroredEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null, System.Collections.Generic.IEnumerable outputs = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobFinishedEventData MediaJobFinishedEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null, System.Collections.Generic.IEnumerable outputs = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput MediaJobOutput(string odataType = null, Azure.Messaging.EventGrid.SystemEvents.MediaJobError error = null, string label = null, long progress = (long)0, Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputAsset MediaJobOutputAsset(Azure.Messaging.EventGrid.SystemEvents.MediaJobError error = null, string label = null, long progress = (long)0, Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), string assetName = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCanceledEventData MediaJobOutputCanceledEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCancelingEventData MediaJobOutputCancelingEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputErroredEventData MediaJobOutputErroredEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputFinishedEventData MediaJobOutputFinishedEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProcessingEventData MediaJobOutputProcessingEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProgressEventData MediaJobOutputProgressEventData(string label = null, long? progress = default(long?), System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputScheduledEventData MediaJobOutputScheduledEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData MediaJobOutputStateChangeEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput output = null, System.Collections.Generic.IReadOnlyDictionary jobCorrelationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobProcessingEventData MediaJobProcessingEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobScheduledEventData MediaJobScheduledEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData MediaJobStateChangeEventData(Azure.Messaging.EventGrid.SystemEvents.MediaJobState previousState = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), Azure.Messaging.EventGrid.SystemEvents.MediaJobState state = default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState), System.Collections.Generic.IReadOnlyDictionary correlationData = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventChannelArchiveHeartbeatEventData MediaLiveEventChannelArchiveHeartbeatEventData(string channelLatencyMs = null, string latencyResultCode = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventConnectionRejectedEventData MediaLiveEventConnectionRejectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null, string resultCode = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderConnectedEventData MediaLiveEventEncoderConnectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderDisconnectedEventData MediaLiveEventEncoderDisconnectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null, string resultCode = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingDataChunkDroppedEventData MediaLiveEventIncomingDataChunkDroppedEventData(string timestamp = null, string trackType = null, long? bitrate = default(long?), string timescale = null, string resultCode = null, string trackName = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamReceivedEventData MediaLiveEventIncomingStreamReceivedEventData(string ingestUrl = null, string trackType = null, string trackName = null, long? bitrate = default(long?), string encoderIp = null, string encoderPort = null, string timestamp = null, string duration = null, string timescale = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData MediaLiveEventIncomingStreamsOutOfSyncEventData(string minLastTimestamp = null, string typeOfStreamWithMinLastTimestamp = null, string maxLastTimestamp = null, string typeOfStreamWithMaxLastTimestamp = null, string timescaleOfMinLastTimestamp = null, string timescaleOfMaxLastTimestamp = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData MediaLiveEventIncomingVideoStreamsOutOfSyncEventData(string firstTimestamp = null, string firstDuration = null, string secondTimestamp = null, string secondDuration = null, string timescale = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIngestHeartbeatEventData MediaLiveEventIngestHeartbeatEventData(string trackType = null, string trackName = null, string transcriptionLanguage = null, string transcriptionState = null, long? bitrate = default(long?), long? incomingBitrate = default(long?), string ingestDriftValue = null, string lastFragmentArrivalTime = null, string lastTimestamp = null, string timescale = null, long? overlapCount = default(long?), long? discontinuityCount = default(long?), long? nonincreasingCount = default(long?), bool? unexpectedBitrate = default(bool?), string state = null, bool? healthy = default(bool?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventTrackDiscontinuityDetectedEventData MediaLiveEventTrackDiscontinuityDetectedEventData(string trackType = null, string trackName = null, long? bitrate = default(long?), string previousTimestamp = null, string newTimestamp = null, string timescale = null, string discontinuityGap = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceEnteredEventData MapsGeofenceEnteredEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = false) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceEventProperties MapsGeofenceEventProperties(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = false) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceExitedEventData MapsGeofenceExitedEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = false) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceGeometry MapsGeofenceGeometry(string deviceId = null, float distance = 0f, string geometryId = null, float nearestLat = 0f, float nearestLon = 0f, string udId = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceResultEventData MapsGeofenceResultEventData(System.Collections.Generic.IEnumerable expiredGeofenceGeometryId = null, System.Collections.Generic.IEnumerable geometries = null, System.Collections.Generic.IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = false) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MicrosoftTeamsAppIdentifierModel MicrosoftTeamsAppIdentifierModel(string appId = null, Azure.Messaging.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel cloud = default(Azure.Messaging.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel MicrosoftTeamsUserIdentifierModel(string userId = null, bool? isAnonymous = default(bool?), Azure.Messaging.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel cloud = default(Azure.Messaging.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.PhoneNumberIdentifierModel PhoneNumberIdentifierModel(string value = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateChangedEventData PolicyInsightsPolicyStateChangedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string policyAssignmentId = null, string policyDefinitionId = null, string policyDefinitionReferenceId = null, string complianceState = null, string subscriptionId = null, string complianceReasonCode = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateCreatedEventData PolicyInsightsPolicyStateCreatedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string policyAssignmentId = null, string policyDefinitionId = null, string policyDefinitionReferenceId = null, string complianceState = null, string subscriptionId = null, string complianceReasonCode = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateDeletedEventData PolicyInsightsPolicyStateDeletedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string policyAssignmentId = null, string policyDefinitionId = null, string policyDefinitionReferenceId = null, string complianceState = null, string subscriptionId = null, string complianceReasonCode = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.RedisExportRDBCompletedEventData RedisExportRDBCompletedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string name = null, string status = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.RedisImportRDBCompletedEventData RedisImportRDBCompletedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string name = null, string status = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.RedisPatchingCompletedEventData RedisPatchingCompletedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string name = null, string status = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.RedisScalingCompletedEventData RedisScalingCompletedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string name = null, string status = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.RedisExportRdbCompletedEventData RedisExportRdbCompletedEventData(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), string name = null, string status = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.RedisImportRdbCompletedEventData RedisImportRdbCompletedEventData(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), string name = null, string status = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.RedisPatchingCompletedEventData RedisPatchingCompletedEventData(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), string name = null, string status = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.RedisScalingCompletedEventData RedisScalingCompletedEventData(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), string name = null, string status = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceActionCancelEventData ResourceActionCancelEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, Azure.Messaging.EventGrid.SystemEvents.ResourceAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string correlationId = null, Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest httpRequest = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceActionFailureEventData ResourceActionFailureEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, Azure.Messaging.EventGrid.SystemEvents.ResourceAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string correlationId = null, Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest httpRequest = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceActionSuccessEventData ResourceActionSuccessEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, Azure.Messaging.EventGrid.SystemEvents.ResourceAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string correlationId = null, Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest httpRequest = null) { throw null; } @@ -2665,6 +2640,7 @@ public static partial class EventGridSystemEventsModelFactory public static Azure.Messaging.EventGrid.SystemEvents.ResourceDeleteFailureEventData ResourceDeleteFailureEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, Azure.Messaging.EventGrid.SystemEvents.ResourceAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string correlationId = null, Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest httpRequest = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceDeleteSuccessEventData ResourceDeleteSuccessEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, Azure.Messaging.EventGrid.SystemEvents.ResourceAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string correlationId = null, Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest httpRequest = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest ResourceHttpRequest(string clientRequestId = null, string clientIpAddress = null, string method = null, string url = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsContainerServiceEventResourcesScheduledEventData ResourceNotificationsContainerServiceEventResourcesScheduledEventData(Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails resourceDetails = null, Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAnnotatedEventData ResourceNotificationsHealthResourcesAnnotatedEventData(Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails resourceDetails = null, Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData(Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails resourceDetails = null, Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails ResourceNotificationsOperationalDetails(System.DateTimeOffset resourceEventTime = default(System.DateTimeOffset)) { throw null; } @@ -2684,16 +2660,17 @@ public static partial class EventGridSystemEventsModelFactory public static Azure.Messaging.EventGrid.SystemEvents.SignalRServiceClientConnectionConnectedEventData SignalRServiceClientConnectionConnectedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string hubName = null, string connectionId = null, string userId = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.SignalRServiceClientConnectionDisconnectedEventData SignalRServiceClientConnectionDisconnectedEventData(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string hubName = null, string connectionId = null, string userId = null, string errorMessage = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageAsyncOperationInitiatedEventData StorageAsyncOperationInitiatedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, long? contentLength = default(long?), string blobType = null, string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobCreatedEventData StorageBlobCreatedEventData(string api = null, string clientRequestId = null, string requestId = null, string eTag = null, string contentType = null, long? contentLength = default(long?), long? contentOffset = default(long?), string blobType = null, string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobCreatedEventData StorageBlobCreatedEventData(string api = null, string clientRequestId = null, string requestId = null, string eTag = null, string contentType = null, long? contentLength = default(long?), long? contentOffset = default(long?), string blobType = null, Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier accessTier = default(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier), string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobDeletedEventData StorageBlobDeletedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, string blobType = null, string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobInventoryPolicyCompletedEventData StorageBlobInventoryPolicyCompletedEventData(System.DateTimeOffset scheduleDateTime = default(System.DateTimeOffset), string accountName = null, string ruleName = null, string policyRunStatus = null, string policyRunStatusMessage = null, string policyRunId = null, string manifestBlobUrl = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobRenamedEventData StorageBlobRenamedEventData(string api = null, string clientRequestId = null, string requestId = null, string sourceUrl = null, string destinationUrl = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobTierChangedEventData StorageBlobTierChangedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, long? contentLength = default(long?), string blobType = null, string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobTierChangedEventData StorageBlobTierChangedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, long? contentLength = default(long?), string blobType = null, Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier accessTier = default(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier), Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier previousTier = default(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier), string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageDirectoryCreatedEventData StorageDirectoryCreatedEventData(string api = null, string clientRequestId = null, string requestId = null, string eTag = null, string url = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageDirectoryDeletedEventData StorageDirectoryDeletedEventData(string api = null, string clientRequestId = null, string requestId = null, string url = null, string recursive = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageDirectoryRenamedEventData StorageDirectoryRenamedEventData(string api = null, string clientRequestId = null, string requestId = null, string sourceUrl = null, string destinationUrl = null, string sequencer = null, string identity = null, System.Collections.Generic.IReadOnlyDictionary storageDiagnostics = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail StorageLifecyclePolicyActionSummaryDetail(long? totalObjectsCount = default(long?), long? successCount = default(long?), string errorList = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData StorageLifecyclePolicyCompletedEventData(string scheduleTime = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail deleteSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData StorageLifecyclePolicyCompletedEventData(string scheduleTime = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyRunSummary policyRunSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail deleteSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToColdSummary = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyRunSummary StorageLifecyclePolicyRunSummary(Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus completionStatus = default(Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus)) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageTaskAssignmentCompletedEventData StorageTaskAssignmentCompletedEventData(Azure.Messaging.EventGrid.SystemEvents.StorageTaskAssignmentCompletedStatus status = default(Azure.Messaging.EventGrid.SystemEvents.StorageTaskAssignmentCompletedStatus), System.DateTimeOffset completedOn = default(System.DateTimeOffset), string taskExecutionId = null, string taskName = null, System.Uri summaryReportBlobUri = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageTaskAssignmentQueuedEventData StorageTaskAssignmentQueuedEventData(System.DateTimeOffset queuedOn = default(System.DateTimeOffset), string taskExecutionId = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.StorageTaskCompletedEventData StorageTaskCompletedEventData(Azure.Messaging.EventGrid.SystemEvents.StorageTaskCompletedStatus status = default(Azure.Messaging.EventGrid.SystemEvents.StorageTaskCompletedStatus), System.DateTimeOffset completedDateTime = default(System.DateTimeOffset), string taskExecutionId = null, string taskName = null, System.Uri summaryReportBlobUrl = null) { throw null; } @@ -2742,7 +2719,7 @@ internal HealthcareDicomImageCreatedEventData() { } public string ImageSopInstanceUid { get { throw null; } } public string ImageStudyInstanceUid { get { throw null; } } public string PartitionName { get { throw null; } } - public long? SequenceNumber { get { throw null; } } + public long SequenceNumber { get { throw null; } } public string ServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageCreatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2758,7 +2735,7 @@ internal HealthcareDicomImageDeletedEventData() { } public string ImageSopInstanceUid { get { throw null; } } public string ImageStudyInstanceUid { get { throw null; } } public string PartitionName { get { throw null; } } - public long? SequenceNumber { get { throw null; } } + public long SequenceNumber { get { throw null; } } public string ServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageDeletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2774,7 +2751,7 @@ internal HealthcareDicomImageUpdatedEventData() { } public string ImageSopInstanceUid { get { throw null; } } public string ImageStudyInstanceUid { get { throw null; } } public string PartitionName { get { throw null; } } - public long? SequenceNumber { get { throw null; } } + public long SequenceNumber { get { throw null; } } public string ServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareDicomImageUpdatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2788,7 +2765,7 @@ public partial class HealthcareFhirResourceCreatedEventData : System.ClientModel internal HealthcareFhirResourceCreatedEventData() { } public string FhirResourceId { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType FhirResourceType { get { throw null; } } - public long? FhirResourceVersionId { get { throw null; } } + public long FhirResourceVersionId { get { throw null; } } public string FhirServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceCreatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2802,7 +2779,7 @@ public partial class HealthcareFhirResourceDeletedEventData : System.ClientModel internal HealthcareFhirResourceDeletedEventData() { } public string FhirResourceId { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType FhirResourceType { get { throw null; } } - public long? FhirResourceVersionId { get { throw null; } } + public long FhirResourceVersionId { get { throw null; } } public string FhirServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceDeletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2993,7 +2970,7 @@ public partial class HealthcareFhirResourceUpdatedEventData : System.ClientModel internal HealthcareFhirResourceUpdatedEventData() { } public string FhirResourceId { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceType FhirResourceType { get { throw null; } } - public long? FhirResourceVersionId { get { throw null; } } + public long FhirResourceVersionId { get { throw null; } } public string FhirServiceHostName { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.HealthcareFhirResourceUpdatedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -3055,9 +3032,9 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class KeyVaultAccessPolicyChangedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultAccessPolicyChangedEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3072,9 +3049,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultCertificateExpiredEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultCertificateExpiredEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3089,9 +3066,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultCertificateNearExpiryEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultCertificateNearExpiryEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3106,9 +3083,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultCertificateNewVersionCreatedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultCertificateNewVersionCreatedEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3123,9 +3100,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultKeyExpiredEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultKeyExpiredEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3140,9 +3117,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultKeyNearExpiryEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultKeyNearExpiryEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3157,9 +3134,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultKeyNewVersionCreatedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultKeyNewVersionCreatedEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3174,9 +3151,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultSecretExpiredEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultSecretExpiredEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3191,9 +3168,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultSecretNearExpiryEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultSecretNearExpiryEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3208,9 +3185,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class KeyVaultSecretNewVersionCreatedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal KeyVaultSecretNewVersionCreatedEventData() { } - public float? EXP { get { throw null; } } + public float EXP { get { throw null; } } public string Id { get { throw null; } } - public float? NBF { get { throw null; } } + public float NBF { get { throw null; } } public string ObjectName { get { throw null; } } public string ObjectType { get { throw null; } } public string VaultName { get { throw null; } } @@ -3318,7 +3295,7 @@ internal MapsGeofenceEventProperties() { } public System.Collections.Generic.IReadOnlyList ExpiredGeofenceGeometryId { get { throw null; } } public System.Collections.Generic.IReadOnlyList Geometries { get { throw null; } } public System.Collections.Generic.IReadOnlyList InvalidPeriodGeofenceGeometryId { get { throw null; } } - public bool? IsEventPublished { get { throw null; } } + public bool IsEventPublished { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceEventProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3340,10 +3317,10 @@ public partial class MapsGeofenceGeometry : System.ClientModel.Primitives.IJsonM { internal MapsGeofenceGeometry() { } public string DeviceId { get { throw null; } } - public float? Distance { get { throw null; } } + public float Distance { get { throw null; } } public string GeometryId { get { throw null; } } - public float? NearestLat { get { throw null; } } - public float? NearestLon { get { throw null; } } + public float NearestLat { get { throw null; } } + public float NearestLon { get { throw null; } } public string UdId { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.MapsGeofenceGeometry System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -3362,474 +3339,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class MediaJobCanceledEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobCanceledEventData() { } - public System.Collections.Generic.IReadOnlyList Outputs { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobCanceledEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobCanceledEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobCancelingEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobCancelingEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobCancelingEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobCancelingEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobError() { } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Category { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode Code { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Details { get { throw null; } } - public string Message { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry Retry { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobError System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobError System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MediaJobErrorCategory : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MediaJobErrorCategory(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Account { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Configuration { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Content { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Download { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Service { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory Upload { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory left, Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory left, Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCategory right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MediaJobErrorCode : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MediaJobErrorCode(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode ConfigurationUnsupported { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode ContentMalformed { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode ContentUnsupported { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode DownloadNotAccessible { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode DownloadTransientError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode IdentityUnsupported { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode ServiceError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode ServiceTransientError { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode UploadNotAccessible { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode UploadTransientError { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode left, Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode left, Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorCode right) { throw null; } - public override string ToString() { throw null; } - } - public partial class MediaJobErrorDetail : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobErrorDetail() { } - public string Code { get { throw null; } } - public string Message { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorDetail System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobErrorDetail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobErroredEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobErroredEventData() { } - public System.Collections.Generic.IReadOnlyList Outputs { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobErroredEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobErroredEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobFinishedEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobFinishedEventData() { } - public System.Collections.Generic.IReadOnlyList Outputs { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobFinishedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobFinishedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public abstract partial class MediaJobOutput : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected MediaJobOutput(Azure.Messaging.EventGrid.SystemEvents.MediaJobError error, long progress, Azure.Messaging.EventGrid.SystemEvents.MediaJobState state) { } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobError Error { get { throw null; } } - public string Label { get { throw null; } } - public long Progress { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobState State { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputAsset : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputAsset() : base (default(Azure.Messaging.EventGrid.SystemEvents.MediaJobError), default(long), default(Azure.Messaging.EventGrid.SystemEvents.MediaJobState)) { } - public string AssetName { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputAsset System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputAsset System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputCanceledEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputCanceledEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCanceledEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCanceledEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputCancelingEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputCancelingEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCancelingEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputCancelingEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputErroredEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputErroredEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputErroredEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputErroredEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputFinishedEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputFinishedEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputFinishedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputFinishedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputProcessingEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputProcessingEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProcessingEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProcessingEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputProgressEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputProgressEventData() { } - public System.Collections.Generic.IReadOnlyDictionary JobCorrelationData { get { throw null; } } - public string Label { get { throw null; } } - public long? Progress { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProgressEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputProgressEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputScheduledEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputScheduledEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputScheduledEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputScheduledEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobOutputStateChangeEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobOutputStateChangeEventData() { } - public System.Collections.Generic.IReadOnlyDictionary JobCorrelationData { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput Output { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobState PreviousState { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobOutputStateChangeEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaJobProcessingEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobProcessingEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobProcessingEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobProcessingEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MediaJobRetry : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MediaJobRetry(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry DoNotRetry { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry MayRetry { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry left, Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry left, Azure.Messaging.EventGrid.SystemEvents.MediaJobRetry right) { throw null; } - public override string ToString() { throw null; } - } - public partial class MediaJobScheduledEventData : Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobScheduledEventData() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobScheduledEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobScheduledEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MediaJobState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MediaJobState(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Canceled { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Canceling { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Error { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Finished { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Processing { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Queued { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.MediaJobState Scheduled { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.MediaJobState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.MediaJobState left, Azure.Messaging.EventGrid.SystemEvents.MediaJobState right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.MediaJobState (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.MediaJobState left, Azure.Messaging.EventGrid.SystemEvents.MediaJobState right) { throw null; } - public override string ToString() { throw null; } - } - public partial class MediaJobStateChangeEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaJobStateChangeEventData() { } - public System.Collections.Generic.IReadOnlyDictionary CorrelationData { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobState PreviousState { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.MediaJobState State { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaJobStateChangeEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventChannelArchiveHeartbeatEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventChannelArchiveHeartbeatEventData() { } - public string ChannelLatencyMs { get { throw null; } } - public string LatencyResultCode { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventChannelArchiveHeartbeatEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventChannelArchiveHeartbeatEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventConnectionRejectedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventConnectionRejectedEventData() { } - public string EncoderIp { get { throw null; } } - public string EncoderPort { get { throw null; } } - public string IngestUrl { get { throw null; } } - public string ResultCode { get { throw null; } } - public string StreamId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventConnectionRejectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventConnectionRejectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventEncoderConnectedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventEncoderConnectedEventData() { } - public string EncoderIp { get { throw null; } } - public string EncoderPort { get { throw null; } } - public string IngestUrl { get { throw null; } } - public string StreamId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderConnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderConnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventEncoderDisconnectedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventEncoderDisconnectedEventData() { } - public string EncoderIp { get { throw null; } } - public string EncoderPort { get { throw null; } } - public string IngestUrl { get { throw null; } } - public string ResultCode { get { throw null; } } - public string StreamId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderDisconnectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventEncoderDisconnectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventIncomingDataChunkDroppedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventIncomingDataChunkDroppedEventData() { } - public long? Bitrate { get { throw null; } } - public string ResultCode { get { throw null; } } - public string Timescale { get { throw null; } } - public string Timestamp { get { throw null; } } - public string TrackName { get { throw null; } } - public string TrackType { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingDataChunkDroppedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingDataChunkDroppedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventIncomingStreamReceivedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventIncomingStreamReceivedEventData() { } - public long? Bitrate { get { throw null; } } - public string Duration { get { throw null; } } - public string EncoderIp { get { throw null; } } - public string EncoderPort { get { throw null; } } - public string IngestUrl { get { throw null; } } - public string Timescale { get { throw null; } } - public string Timestamp { get { throw null; } } - public string TrackName { get { throw null; } } - public string TrackType { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamReceivedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamReceivedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventIncomingStreamsOutOfSyncEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventIncomingStreamsOutOfSyncEventData() { } - public string MaxLastTimestamp { get { throw null; } } - public string MinLastTimestamp { get { throw null; } } - public string TimescaleOfMaxLastTimestamp { get { throw null; } } - public string TimescaleOfMinLastTimestamp { get { throw null; } } - public string TypeOfStreamWithMaxLastTimestamp { get { throw null; } } - public string TypeOfStreamWithMinLastTimestamp { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingStreamsOutOfSyncEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventIncomingVideoStreamsOutOfSyncEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventIncomingVideoStreamsOutOfSyncEventData() { } - public string FirstDuration { get { throw null; } } - public string FirstTimestamp { get { throw null; } } - public string SecondDuration { get { throw null; } } - public string SecondTimestamp { get { throw null; } } - public string Timescale { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventIngestHeartbeatEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventIngestHeartbeatEventData() { } - public long? Bitrate { get { throw null; } } - public long? DiscontinuityCount { get { throw null; } } - public bool? Healthy { get { throw null; } } - public long? IncomingBitrate { get { throw null; } } - public string IngestDriftValue { get { throw null; } } - public string LastFragmentArrivalTime { get { throw null; } } - public string LastTimestamp { get { throw null; } } - public long? NonincreasingCount { get { throw null; } } - public long? OverlapCount { get { throw null; } } - public string State { get { throw null; } } - public string Timescale { get { throw null; } } - public string TrackName { get { throw null; } } - public string TrackType { get { throw null; } } - public string TranscriptionLanguage { get { throw null; } } - public string TranscriptionState { get { throw null; } } - public bool? UnexpectedBitrate { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIngestHeartbeatEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventIngestHeartbeatEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MediaLiveEventTrackDiscontinuityDetectedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MediaLiveEventTrackDiscontinuityDetectedEventData() { } - public long? Bitrate { get { throw null; } } - public string DiscontinuityGap { get { throw null; } } - public string NewTimestamp { get { throw null; } } - public string PreviousTimestamp { get { throw null; } } - public string Timescale { get { throw null; } } - public string TrackName { get { throw null; } } - public string TrackType { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventTrackDiscontinuityDetectedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.MediaLiveEventTrackDiscontinuityDetectedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class MicrosoftTeamsAppIdentifierModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal MicrosoftTeamsAppIdentifierModel() { } @@ -3972,38 +3481,38 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.RecordingFormatType left, Azure.Messaging.EventGrid.SystemEvents.RecordingFormatType right) { throw null; } public override string ToString() { throw null; } } - public partial class RedisExportRDBCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class RedisExportRdbCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal RedisExportRDBCompletedEventData() { } + internal RedisExportRdbCompletedEventData() { } public string Name { get { throw null; } } public string Status { get { throw null; } } - public System.DateTimeOffset Timestamp { get { throw null; } } + public System.DateTimeOffset? Timestamp { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.RedisExportRDBCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.RedisExportRDBCompletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.RedisExportRdbCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.RedisExportRdbCompletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class RedisImportRDBCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class RedisImportRdbCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal RedisImportRDBCompletedEventData() { } + internal RedisImportRdbCompletedEventData() { } public string Name { get { throw null; } } public string Status { get { throw null; } } - public System.DateTimeOffset Timestamp { get { throw null; } } + public System.DateTimeOffset? Timestamp { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.RedisImportRDBCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Messaging.EventGrid.SystemEvents.RedisImportRDBCompletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Messaging.EventGrid.SystemEvents.RedisImportRdbCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.RedisImportRdbCompletedEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class RedisPatchingCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal RedisPatchingCompletedEventData() { } public string Name { get { throw null; } } public string Status { get { throw null; } } - public System.DateTimeOffset Timestamp { get { throw null; } } + public System.DateTimeOffset? Timestamp { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.RedisPatchingCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -4016,7 +3525,7 @@ public partial class RedisScalingCompletedEventData : System.ClientModel.Primiti internal RedisScalingCompletedEventData() { } public string Name { get { throw null; } } public string Status { get { throw null; } } - public System.DateTimeOffset Timestamp { get { throw null; } } + public System.DateTimeOffset? Timestamp { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.RedisScalingCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -4177,6 +3686,16 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class ResourceNotificationsContainerServiceEventResourcesScheduledEventData : Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ResourceNotificationsContainerServiceEventResourcesScheduledEventData() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsContainerServiceEventResourcesScheduledEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsContainerServiceEventResourcesScheduledEventData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ResourceNotificationsHealthResourcesAnnotatedEventData : Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal ResourceNotificationsHealthResourcesAnnotatedEventData() { } @@ -4477,9 +3996,31 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct StorageBlobAccessTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StorageBlobAccessTier(string value) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier Archive { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier Cold { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier Cool { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier Default { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier Hot { get { throw null; } } + public bool Equals(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier left, Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier right) { throw null; } + public static implicit operator Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier (string value) { throw null; } + public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier left, Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier right) { throw null; } + public override string ToString() { throw null; } + } public partial class StorageBlobCreatedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal StorageBlobCreatedEventData() { } + public Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier AccessTier { get { throw null; } } public string Api { get { throw null; } } public string BlobType { get { throw null; } } public string ClientRequestId { get { throw null; } } @@ -4556,12 +4097,14 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class StorageBlobTierChangedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal StorageBlobTierChangedEventData() { } + public Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier AccessTier { get { throw null; } } public string Api { get { throw null; } } public string BlobType { get { throw null; } } public string ClientRequestId { get { throw null; } } public long? ContentLength { get { throw null; } } public string ContentType { get { throw null; } } public string Identity { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.StorageBlobAccessTier PreviousTier { get { throw null; } } public string RequestId { get { throw null; } } public string Sequencer { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary StorageDiagnostics { get { throw null; } } @@ -4627,6 +4170,25 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct StorageLifecycleCompletionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StorageLifecycleCompletionStatus(string value) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus Completed { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus CompletedWithError { get { throw null; } } + public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus Incomplete { get { throw null; } } + public bool Equals(Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus left, Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus right) { throw null; } + public static implicit operator Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus (string value) { throw null; } + public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus left, Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus right) { throw null; } + public override string ToString() { throw null; } + } public partial class StorageLifecyclePolicyActionSummaryDetail : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal StorageLifecyclePolicyActionSummaryDetail() { } @@ -4644,8 +4206,10 @@ public partial class StorageLifecyclePolicyCompletedEventData : System.ClientMod { internal StorageLifecyclePolicyCompletedEventData() { } public Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail DeleteSummary { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyRunSummary PolicyRunSummary { get { throw null; } } public string ScheduleTime { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail TierToArchiveSummary { get { throw null; } } + public Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail TierToColdSummary { get { throw null; } } public Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail TierToCoolSummary { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -4654,6 +4218,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class StorageLifecyclePolicyRunSummary : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StorageLifecyclePolicyRunSummary() { } + public Azure.Messaging.EventGrid.SystemEvents.StorageLifecycleCompletionStatus CompletionStatus { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyRunSummary System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyRunSummary System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class StorageTaskAssignmentCompletedEventData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal StorageTaskAssignmentCompletedEventData() { } @@ -4884,10 +4459,10 @@ public static partial class SystemEventNames public const string DataBoxCopyCompleted = "Microsoft.DataBox.CopyCompleted"; public const string DataBoxCopyStarted = "Microsoft.DataBox.CopyStarted"; public const string DataBoxOrderCompleted = "Microsoft.DataBox.OrderCompleted"; - public const string EventGridMQTTClientCreatedOrUpdated = "Microsoft.EventGrid.MQTTClientCreatedOrUpdated"; - public const string EventGridMQTTClientDeleted = "Microsoft.EventGrid.MQTTClientDeleted"; - public const string EventGridMQTTClientSessionConnected = "Microsoft.EventGrid.MQTTClientSessionConnected"; - public const string EventGridMQTTClientSessionDisconnected = "Microsoft.EventGrid.MQTTClientSessionDisconnected"; + public const string EventGridMqttClientCreatedOrUpdated = "Microsoft.EventGrid.MQTTClientCreatedOrUpdated"; + public const string EventGridMqttClientDeleted = "Microsoft.EventGrid.MQTTClientDeleted"; + public const string EventGridMqttClientSessionConnected = "Microsoft.EventGrid.MQTTClientSessionConnected"; + public const string EventGridMqttClientSessionDisconnected = "Microsoft.EventGrid.MQTTClientSessionDisconnected"; public const string EventGridSubscriptionDeleted = "Microsoft.EventGrid.SubscriptionDeletedEvent"; public const string EventGridSubscriptionValidation = "Microsoft.EventGrid.SubscriptionValidationEvent"; public const string EventHubCaptureFileCreated = "Microsoft.EventHub.CaptureFileCreated"; @@ -4920,36 +4495,11 @@ public static partial class SystemEventNames public const string MapsGeofenceEntered = "Microsoft.Maps.GeofenceEntered"; public const string MapsGeofenceExited = "Microsoft.Maps.GeofenceExited"; public const string MapsGeofenceResult = "Microsoft.Maps.GeofenceResult"; - public const string MediaJobCanceled = "Microsoft.Media.JobCanceled"; - public const string MediaJobCanceling = "Microsoft.Media.JobCanceling"; - public const string MediaJobErrored = "Microsoft.Media.JobErrored"; - public const string MediaJobFinished = "Microsoft.Media.JobFinished"; - public const string MediaJobOutputCanceled = "Microsoft.Media.JobOutputCanceled"; - public const string MediaJobOutputCanceling = "Microsoft.Media.JobOutputCanceling"; - public const string MediaJobOutputErrored = "Microsoft.Media.JobOutputErrored"; - public const string MediaJobOutputFinished = "Microsoft.Media.JobOutputFinished"; - public const string MediaJobOutputProcessing = "Microsoft.Media.JobOutputProcessing"; - public const string MediaJobOutputProgress = "Microsoft.Media.JobOutputProgress"; - public const string MediaJobOutputScheduled = "Microsoft.Media.JobOutputScheduled"; - public const string MediaJobOutputStateChange = "Microsoft.Media.JobOutputStateChange"; - public const string MediaJobProcessing = "Microsoft.Media.JobProcessing"; - public const string MediaJobScheduled = "Microsoft.Media.JobScheduled"; - public const string MediaJobStateChange = "Microsoft.Media.JobStateChange"; - public const string MediaLiveEventChannelArchiveHeartbeat = "Microsoft.Media.LiveEventChannelArchiveHeartbeat"; - public const string MediaLiveEventConnectionRejected = "Microsoft.Media.LiveEventConnectionRejected"; - public const string MediaLiveEventEncoderConnected = "Microsoft.Media.LiveEventEncoderConnected"; - public const string MediaLiveEventEncoderDisconnected = "Microsoft.Media.LiveEventEncoderDisconnected"; - public const string MediaLiveEventIncomingDataChunkDropped = "Microsoft.Media.LiveEventIncomingDataChunkDropped"; - public const string MediaLiveEventIncomingStreamReceived = "Microsoft.Media.LiveEventIncomingStreamReceived"; - public const string MediaLiveEventIncomingStreamsOutOfSync = "Microsoft.Media.LiveEventIncomingStreamsOutOfSync"; - public const string MediaLiveEventIncomingVideoStreamsOutOfSync = "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync"; - public const string MediaLiveEventIngestHeartbeat = "Microsoft.Media.LiveEventIngestHeartbeat"; - public const string MediaLiveEventTrackDiscontinuityDetected = "Microsoft.Media.LiveEventTrackDiscontinuityDetected"; public const string PolicyInsightsPolicyStateChanged = "Microsoft.PolicyInsights.PolicyStateChanged"; public const string PolicyInsightsPolicyStateCreated = "Microsoft.PolicyInsights.PolicyStateCreated"; public const string PolicyInsightsPolicyStateDeleted = "Microsoft.PolicyInsights.PolicyStateDeleted"; - public const string RedisExportRDBCompleted = "Microsoft.Cache.ExportRDBCompleted"; - public const string RedisImportRDBCompleted = "Microsoft.Cache.ImportRDBCompleted"; + public const string RedisExportRdbCompleted = "Microsoft.Cache.ExportRDBCompleted"; + public const string RedisImportRdbCompleted = "Microsoft.Cache.ImportRDBCompleted"; public const string RedisPatchingCompleted = "Microsoft.Cache.PatchingCompleted"; public const string RedisScalingCompleted = "Microsoft.Cache.ScalingCompleted"; public const string ResourceActionCancel = "Microsoft.Resources.ResourceActionCancel"; @@ -4958,6 +4508,7 @@ public static partial class SystemEventNames public const string ResourceDeleteCancel = "Microsoft.Resources.ResourceDeleteCancel"; public const string ResourceDeleteFailure = "Microsoft.Resources.ResourceDeleteFailure"; public const string ResourceDeleteSuccess = "Microsoft.Resources.ResourceDeleteSuccess"; + public const string ResourceNotificationsContainerServiceEventResourcesScheduled = "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted"; public const string ResourceNotificationsHealthResourcesAnnotated = "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated"; public const string ResourceNotificationsHealthResourcesAvailabilityStatusChanged = "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged"; public const string ResourceNotificationsResourceManagementCreatedOrUpdated = "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated"; diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportReceivedEventData.Serialization.cs index e923e3d0b390..dc7446998207 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportReceivedEventData.Serialization.cs @@ -34,16 +34,12 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AcsEmailDeliveryReportReceivedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Sender)) - { - writer.WritePropertyName("sender"u8); - writer.WriteStringValue(Sender); - } - if (Optional.IsDefined(Recipient)) - { - writer.WritePropertyName("recipient"u8); - writer.WriteStringValue(Recipient); - } + writer.WritePropertyName("sender"u8); + writer.WriteStringValue(Sender); + writer.WritePropertyName("recipient"u8); + writer.WriteStringValue(Recipient); + writer.WritePropertyName("internetMessageId"u8); + writer.WriteStringValue(InternetMessageId); if (Optional.IsDefined(MessageId)) { writer.WritePropertyName("messageId"u8); @@ -53,7 +49,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteStringValue(Status.ToString()); writer.WritePropertyName("deliveryStatusDetails"u8); writer.WriteObjectValue(DeliveryStatusDetails, options); - writer.WritePropertyName("deliveryAttemptTimeStamp"u8); + writer.WritePropertyName("deliveryAttemptTimestamp"u8); writer.WriteStringValue(DeliveryAttemptTimestamp, "O"); if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -94,10 +90,11 @@ internal static AcsEmailDeliveryReportReceivedEventData DeserializeAcsEmailDeliv } string sender = default; string recipient = default; + string internetMessageId = default; string messageId = default; AcsEmailDeliveryReportStatus status = default; AcsEmailDeliveryReportStatusDetails deliveryStatusDetails = default; - DateTimeOffset deliveryAttemptTimeStamp = default; + DateTimeOffset deliveryAttemptTimestamp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -112,6 +109,11 @@ internal static AcsEmailDeliveryReportReceivedEventData DeserializeAcsEmailDeliv recipient = property.Value.GetString(); continue; } + if (property.NameEquals("internetMessageId"u8)) + { + internetMessageId = property.Value.GetString(); + continue; + } if (property.NameEquals("messageId"u8)) { messageId = property.Value.GetString(); @@ -127,9 +129,9 @@ internal static AcsEmailDeliveryReportReceivedEventData DeserializeAcsEmailDeliv deliveryStatusDetails = AcsEmailDeliveryReportStatusDetails.DeserializeAcsEmailDeliveryReportStatusDetails(property.Value, options); continue; } - if (property.NameEquals("deliveryAttemptTimeStamp"u8)) + if (property.NameEquals("deliveryAttemptTimestamp"u8)) { - deliveryAttemptTimeStamp = property.Value.GetDateTimeOffset("O"); + deliveryAttemptTimestamp = property.Value.GetDateTimeOffset("O"); continue; } if (options.Format != "W") @@ -141,10 +143,11 @@ internal static AcsEmailDeliveryReportReceivedEventData DeserializeAcsEmailDeliv return new AcsEmailDeliveryReportReceivedEventData( sender, recipient, + internetMessageId, messageId, status, deliveryStatusDetails, - deliveryAttemptTimeStamp, + deliveryAttemptTimestamp, serializedAdditionalRawData); } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportReceivedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportReceivedEventData.cs index f733218d6093..1461b8ec6f88 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportReceivedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportReceivedEventData.cs @@ -46,14 +46,23 @@ public partial class AcsEmailDeliveryReportReceivedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// The Sender Email Address. + /// The recipient Email Address. + /// The Internet Message Id of the email that has been sent. /// The status of the email. Any value other than Delivered is considered failed. /// Detailed information about the status if any. /// The time at which the email delivery report received timestamp. - /// is null. - internal AcsEmailDeliveryReportReceivedEventData(AcsEmailDeliveryReportStatus status, AcsEmailDeliveryReportStatusDetails deliveryStatusDetails, DateTimeOffset deliveryAttemptTimestamp) + /// , , or is null. + internal AcsEmailDeliveryReportReceivedEventData(string sender, string recipient, string internetMessageId, AcsEmailDeliveryReportStatus status, AcsEmailDeliveryReportStatusDetails deliveryStatusDetails, DateTimeOffset deliveryAttemptTimestamp) { + Argument.AssertNotNull(sender, nameof(sender)); + Argument.AssertNotNull(recipient, nameof(recipient)); + Argument.AssertNotNull(internetMessageId, nameof(internetMessageId)); Argument.AssertNotNull(deliveryStatusDetails, nameof(deliveryStatusDetails)); + Sender = sender; + Recipient = recipient; + InternetMessageId = internetMessageId; Status = status; DeliveryStatusDetails = deliveryStatusDetails; DeliveryAttemptTimestamp = deliveryAttemptTimestamp; @@ -62,15 +71,17 @@ internal AcsEmailDeliveryReportReceivedEventData(AcsEmailDeliveryReportStatus st /// Initializes a new instance of . /// The Sender Email Address. /// The recipient Email Address. - /// The Id of the email been sent. + /// The Internet Message Id of the email that has been sent. + /// The Id of the email that has been sent. /// The status of the email. Any value other than Delivered is considered failed. /// Detailed information about the status if any. /// The time at which the email delivery report received timestamp. /// Keeps track of any properties unknown to the library. - internal AcsEmailDeliveryReportReceivedEventData(string sender, string recipient, string messageId, AcsEmailDeliveryReportStatus status, AcsEmailDeliveryReportStatusDetails deliveryStatusDetails, DateTimeOffset deliveryAttemptTimestamp, IDictionary serializedAdditionalRawData) + internal AcsEmailDeliveryReportReceivedEventData(string sender, string recipient, string internetMessageId, string messageId, AcsEmailDeliveryReportStatus status, AcsEmailDeliveryReportStatusDetails deliveryStatusDetails, DateTimeOffset deliveryAttemptTimestamp, IDictionary serializedAdditionalRawData) { Sender = sender; Recipient = recipient; + InternetMessageId = internetMessageId; MessageId = messageId; Status = status; DeliveryStatusDetails = deliveryStatusDetails; @@ -87,7 +98,9 @@ internal AcsEmailDeliveryReportReceivedEventData() public string Sender { get; } /// The recipient Email Address. public string Recipient { get; } - /// The Id of the email been sent. + /// The Internet Message Id of the email that has been sent. + public string InternetMessageId { get; } + /// The Id of the email that has been sent. public string MessageId { get; } /// The status of the email. Any value other than Delivered is considered failed. public AcsEmailDeliveryReportStatus Status { get; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportStatusDetails.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportStatusDetails.Serialization.cs index e1627716463b..19d1f30ccecc 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportStatusDetails.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportStatusDetails.Serialization.cs @@ -39,6 +39,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("statusMessage"u8); writer.WriteStringValue(StatusMessage); } + if (Optional.IsDefined(RecipientMailServerHostName)) + { + writer.WritePropertyName("recipientMailServerHostName"u8); + writer.WriteStringValue(RecipientMailServerHostName); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -77,6 +82,7 @@ internal static AcsEmailDeliveryReportStatusDetails DeserializeAcsEmailDeliveryR return null; } string statusMessage = default; + string recipientMailServerHostName = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -86,13 +92,18 @@ internal static AcsEmailDeliveryReportStatusDetails DeserializeAcsEmailDeliveryR statusMessage = property.Value.GetString(); continue; } + if (property.NameEquals("recipientMailServerHostName"u8)) + { + recipientMailServerHostName = property.Value.GetString(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new AcsEmailDeliveryReportStatusDetails(statusMessage, serializedAdditionalRawData); + return new AcsEmailDeliveryReportStatusDetails(statusMessage, recipientMailServerHostName, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportStatusDetails.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportStatusDetails.cs index 23a571fbcab0..752b6b82d633 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportStatusDetails.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailDeliveryReportStatusDetails.cs @@ -52,14 +52,18 @@ internal AcsEmailDeliveryReportStatusDetails() /// Initializes a new instance of . /// Detailed status message. + /// Recipient mail server host name. /// Keeps track of any properties unknown to the library. - internal AcsEmailDeliveryReportStatusDetails(string statusMessage, IDictionary serializedAdditionalRawData) + internal AcsEmailDeliveryReportStatusDetails(string statusMessage, string recipientMailServerHostName, IDictionary serializedAdditionalRawData) { StatusMessage = statusMessage; + RecipientMailServerHostName = recipientMailServerHostName; _serializedAdditionalRawData = serializedAdditionalRawData; } /// Detailed status message. public string StatusMessage { get; } + /// Recipient mail server host name. + public string RecipientMailServerHostName { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailEngagementTrackingReportReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailEngagementTrackingReportReceivedEventData.Serialization.cs index de59f4582b5e..6e5f98145ae3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailEngagementTrackingReportReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsEmailEngagementTrackingReportReceivedEventData.Serialization.cs @@ -49,7 +49,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("messageId"u8); writer.WriteStringValue(MessageId); } - writer.WritePropertyName("userActionTimeStamp"u8); + writer.WritePropertyName("userActionTimestamp"u8); writer.WriteStringValue(UserActionTimestamp, "O"); if (Optional.IsDefined(EngagementContext)) { @@ -103,7 +103,7 @@ internal static AcsEmailEngagementTrackingReportReceivedEventData DeserializeAcs string sender = default; string recipient = default; string messageId = default; - DateTimeOffset userActionTimeStamp = default; + DateTimeOffset userActionTimestamp = default; string engagementContext = default; string userAgent = default; AcsUserEngagement engagementType = default; @@ -126,9 +126,9 @@ internal static AcsEmailEngagementTrackingReportReceivedEventData DeserializeAcs messageId = property.Value.GetString(); continue; } - if (property.NameEquals("userActionTimeStamp"u8)) + if (property.NameEquals("userActionTimestamp"u8)) { - userActionTimeStamp = property.Value.GetDateTimeOffset("O"); + userActionTimestamp = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("engagementContext"u8)) @@ -156,7 +156,7 @@ internal static AcsEmailEngagementTrackingReportReceivedEventData DeserializeAcs sender, recipient, messageId, - userActionTimeStamp, + userActionTimestamp, engagementContext, userAgent, engagementType, diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsIncomingCallEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsIncomingCallEventData.Serialization.cs index 30e667ddb263..bb6789f2570e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsIncomingCallEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsIncomingCallEventData.Serialization.cs @@ -55,6 +55,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("incomingCallContext"u8); writer.WriteStringValue(IncomingCallContext); } + if (Optional.IsDefined(OnBehalfOfCallee)) + { + writer.WritePropertyName("onBehalfOfCallee"u8); + writer.WriteObjectValue(OnBehalfOfCallee, options); + } if (Optional.IsDefined(CorrelationId)) { writer.WritePropertyName("correlationId"u8); @@ -103,6 +108,7 @@ internal static AcsIncomingCallEventData DeserializeAcsIncomingCallEventData(Jso string callerDisplayName = default; AcsIncomingCallCustomContext customContext = default; string incomingCallContext = default; + CommunicationIdentifierModel onBehalfOfCallee = default; string correlationId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -138,6 +144,15 @@ internal static AcsIncomingCallEventData DeserializeAcsIncomingCallEventData(Jso incomingCallContext = property.Value.GetString(); continue; } + if (property.NameEquals("onBehalfOfCallee"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + onBehalfOfCallee = CommunicationIdentifierModel.DeserializeCommunicationIdentifierModel(property.Value, options); + continue; + } if (property.NameEquals("correlationId"u8)) { correlationId = property.Value.GetString(); @@ -156,6 +171,7 @@ internal static AcsIncomingCallEventData DeserializeAcsIncomingCallEventData(Jso callerDisplayName, customContext, incomingCallContext, + onBehalfOfCallee, correlationId, serializedAdditionalRawData); } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsIncomingCallEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsIncomingCallEventData.cs index a5ce2d8a623d..2a02164d5e87 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsIncomingCallEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsIncomingCallEventData.cs @@ -68,9 +68,10 @@ internal AcsIncomingCallEventData(CommunicationIdentifierModel toCommunicationId /// Display name of caller. /// Custom Context of Incoming Call. /// Signed incoming call context. + /// The communication identifier of the user on behalf of whom the call is made. /// CorrelationId (CallId). /// Keeps track of any properties unknown to the library. - internal AcsIncomingCallEventData(CommunicationIdentifierModel toCommunicationIdentifier, CommunicationIdentifierModel fromCommunicationIdentifier, string serverCallId, string callerDisplayName, AcsIncomingCallCustomContext customContext, string incomingCallContext, string correlationId, IDictionary serializedAdditionalRawData) + internal AcsIncomingCallEventData(CommunicationIdentifierModel toCommunicationIdentifier, CommunicationIdentifierModel fromCommunicationIdentifier, string serverCallId, string callerDisplayName, AcsIncomingCallCustomContext customContext, string incomingCallContext, CommunicationIdentifierModel onBehalfOfCallee, string correlationId, IDictionary serializedAdditionalRawData) { ToCommunicationIdentifier = toCommunicationIdentifier; FromCommunicationIdentifier = fromCommunicationIdentifier; @@ -78,6 +79,7 @@ internal AcsIncomingCallEventData(CommunicationIdentifierModel toCommunicationId CallerDisplayName = callerDisplayName; CustomContext = customContext; IncomingCallContext = incomingCallContext; + OnBehalfOfCallee = onBehalfOfCallee; CorrelationId = correlationId; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -99,6 +101,8 @@ internal AcsIncomingCallEventData() public AcsIncomingCallCustomContext CustomContext { get; } /// Signed incoming call context. public string IncomingCallContext { get; } + /// The communication identifier of the user on behalf of whom the call is made. + public CommunicationIdentifierModel OnBehalfOfCallee { get; } /// CorrelationId (CallId). public string CorrelationId { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsSmsReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsSmsReceivedEventData.Serialization.cs index 0f08b2151d59..c1a21a03a30b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsSmsReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsSmsReceivedEventData.Serialization.cs @@ -42,6 +42,8 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("receivedTimestamp"u8); writer.WriteStringValue(ReceivedTimestamp, "O"); + writer.WritePropertyName("segmentCount"u8); + writer.WriteNumberValue(SegmentCount); } AcsSmsReceivedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -66,6 +68,7 @@ internal static AcsSmsReceivedEventData DeserializeAcsSmsReceivedEventData(JsonE } string message = default; DateTimeOffset receivedTimestamp = default; + int segmentCount = default; string messageId = default; string @from = default; string to = default; @@ -83,6 +86,11 @@ internal static AcsSmsReceivedEventData DeserializeAcsSmsReceivedEventData(JsonE receivedTimestamp = property.Value.GetDateTimeOffset("O"); continue; } + if (property.NameEquals("segmentCount"u8)) + { + segmentCount = property.Value.GetInt32(); + continue; + } if (property.NameEquals("messageId"u8)) { messageId = property.Value.GetString(); @@ -110,7 +118,8 @@ internal static AcsSmsReceivedEventData DeserializeAcsSmsReceivedEventData(JsonE to, serializedAdditionalRawData, message, - receivedTimestamp); + receivedTimestamp, + segmentCount); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsSmsReceivedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsSmsReceivedEventData.cs index 75b7cdc072c2..9f23fe7a7763 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsSmsReceivedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AcsSmsReceivedEventData.cs @@ -15,9 +15,11 @@ public partial class AcsSmsReceivedEventData : AcsSmsEventBaseProperties { /// Initializes a new instance of . /// The time at which the SMS was received. - internal AcsSmsReceivedEventData(DateTimeOffset receivedTimestamp) + /// Number of segments in the message. + internal AcsSmsReceivedEventData(DateTimeOffset receivedTimestamp, int segmentCount) { ReceivedTimestamp = receivedTimestamp; + SegmentCount = segmentCount; } /// Initializes a new instance of . @@ -27,10 +29,12 @@ internal AcsSmsReceivedEventData(DateTimeOffset receivedTimestamp) /// Keeps track of any properties unknown to the library. /// The SMS content. /// The time at which the SMS was received. - internal AcsSmsReceivedEventData(string messageId, string @from, string to, IDictionary serializedAdditionalRawData, string message, DateTimeOffset receivedTimestamp) : base(messageId, @from, to, serializedAdditionalRawData) + /// Number of segments in the message. + internal AcsSmsReceivedEventData(string messageId, string @from, string to, IDictionary serializedAdditionalRawData, string message, DateTimeOffset receivedTimestamp, int segmentCount) : base(messageId, @from, to, serializedAdditionalRawData) { Message = message; ReceivedTimestamp = receivedTimestamp; + SegmentCount = segmentCount; } /// Initializes a new instance of for deserialization. @@ -42,5 +46,7 @@ internal AcsSmsReceivedEventData() public string Message { get; } /// The time at which the SMS was received. public DateTimeOffset ReceivedTimestamp { get; } + /// Number of segments in the message. + public int SegmentCount { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionAddedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionAddedEventData.Serialization.cs index 800e8325ee3a..ba0469f3fa2e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionAddedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionAddedEventData.Serialization.cs @@ -34,18 +34,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ApiCenterApiDefinitionAddedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Title)) - { - writer.WritePropertyName("title"u8); - writer.WriteStringValue(Title); - } + writer.WritePropertyName("title"u8); + writer.WriteStringValue(Title); if (Optional.IsDefined(Description)) { writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } - writer.WritePropertyName("specification"u8); - writer.WriteObjectValue(Specification, options); + if (Optional.IsDefined(Specification)) + { + writer.WritePropertyName("specification"u8); + writer.WriteObjectValue(Specification, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -102,6 +102,10 @@ internal static ApiCenterApiDefinitionAddedEventData DeserializeApiCenterApiDefi } if (property.NameEquals("specification"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } specification = ApiCenterApiSpecification.DeserializeApiCenterApiSpecification(property.Value, options); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionAddedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionAddedEventData.cs index 57570dd11c36..f5920be20c66 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionAddedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionAddedEventData.cs @@ -46,13 +46,13 @@ public partial class ApiCenterApiDefinitionAddedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// API definition specification. - /// is null. - internal ApiCenterApiDefinitionAddedEventData(ApiCenterApiSpecification specification) + /// API definition title. + /// is null. + internal ApiCenterApiDefinitionAddedEventData(string title) { - Argument.AssertNotNull(specification, nameof(specification)); + Argument.AssertNotNull(title, nameof(title)); - Specification = specification; + Title = title; } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionUpdatedEventData.Serialization.cs index 67da914fdaef..7918fff15754 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionUpdatedEventData.Serialization.cs @@ -34,18 +34,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ApiCenterApiDefinitionUpdatedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Title)) - { - writer.WritePropertyName("title"u8); - writer.WriteStringValue(Title); - } + writer.WritePropertyName("title"u8); + writer.WriteStringValue(Title); if (Optional.IsDefined(Description)) { writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } - writer.WritePropertyName("specification"u8); - writer.WriteObjectValue(Specification, options); + if (Optional.IsDefined(Specification)) + { + writer.WritePropertyName("specification"u8); + writer.WriteObjectValue(Specification, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -102,6 +102,10 @@ internal static ApiCenterApiDefinitionUpdatedEventData DeserializeApiCenterApiDe } if (property.NameEquals("specification"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } specification = ApiCenterApiSpecification.DeserializeApiCenterApiSpecification(property.Value, options); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionUpdatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionUpdatedEventData.cs index cc06633b915f..86329b11c419 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionUpdatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiDefinitionUpdatedEventData.cs @@ -46,13 +46,13 @@ public partial class ApiCenterApiDefinitionUpdatedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// API definition specification. - /// is null. - internal ApiCenterApiDefinitionUpdatedEventData(ApiCenterApiSpecification specification) + /// API definition title. + /// is null. + internal ApiCenterApiDefinitionUpdatedEventData(string title) { - Argument.AssertNotNull(specification, nameof(specification)); + Argument.AssertNotNull(title, nameof(title)); - Specification = specification; + Title = title; } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiSpecification.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiSpecification.Serialization.cs index 795c1c8642f9..0e5905742ba1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiSpecification.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiSpecification.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ApiCenterApiSpecification)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); if (Optional.IsDefined(Version)) { writer.WritePropertyName("version"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiSpecification.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiSpecification.cs index 9e0f43020490..3e357444901a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiSpecification.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ApiCenterApiSpecification.cs @@ -46,8 +46,13 @@ public partial class ApiCenterApiSpecification private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ApiCenterApiSpecification() + /// Specification name. + /// is null. + internal ApiCenterApiSpecification(string name) { + Argument.AssertNotNull(name, nameof(name)); + + Name = name; } /// Initializes a new instance of . @@ -61,6 +66,11 @@ internal ApiCenterApiSpecification(string name, string version, IDictionary Initializes a new instance of for deserialization. + internal ApiCenterApiSpecification() + { + } + /// Specification name. public string Name { get; } /// Specification version. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterCreatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterCreatedEventData.cs index 46bc8cc4d87a..3bfe56d1ac5b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterCreatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterCreatedEventData.cs @@ -14,8 +14,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsClusterCreatedEventData : AvsClusterEventData { /// Initializes a new instance of . - internal AvsClusterCreatedEventData() + /// Id of the operation that caused this event. + /// is null. + internal AvsClusterCreatedEventData(string operationId) : base(operationId) { + Argument.AssertNotNull(operationId, nameof(operationId)); } /// Initializes a new instance of . @@ -27,5 +30,10 @@ internal AvsClusterCreatedEventData() internal AvsClusterCreatedEventData(string operationId, IReadOnlyList addedHostNames, IReadOnlyList removedHostNames, IReadOnlyList inMaintenanceHostNames, IDictionary serializedAdditionalRawData) : base(operationId, addedHostNames, removedHostNames, inMaintenanceHostNames, serializedAdditionalRawData) { } + + /// Initializes a new instance of for deserialization. + internal AvsClusterCreatedEventData() + { + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterDeletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterDeletedEventData.cs index 9dc7f3790647..785c205d911b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterDeletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterDeletedEventData.cs @@ -14,8 +14,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsClusterDeletedEventData : AvsClusterEventData { /// Initializes a new instance of . - internal AvsClusterDeletedEventData() + /// Id of the operation that caused this event. + /// is null. + internal AvsClusterDeletedEventData(string operationId) : base(operationId) { + Argument.AssertNotNull(operationId, nameof(operationId)); } /// Initializes a new instance of . @@ -27,5 +30,10 @@ internal AvsClusterDeletedEventData() internal AvsClusterDeletedEventData(string operationId, IReadOnlyList addedHostNames, IReadOnlyList removedHostNames, IReadOnlyList inMaintenanceHostNames, IDictionary serializedAdditionalRawData) : base(operationId, addedHostNames, removedHostNames, inMaintenanceHostNames, serializedAdditionalRawData) { } + + /// Initializes a new instance of for deserialization. + internal AvsClusterDeletedEventData() + { + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterEventData.Serialization.cs index 3b0b93de6011..5164e72eb188 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterEventData.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AvsClusterEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(OperationId)) - { - writer.WritePropertyName("operationId"u8); - writer.WriteStringValue(OperationId); - } + writer.WritePropertyName("operationId"u8); + writer.WriteStringValue(OperationId); if (Optional.IsCollectionDefined(AddedHostNames)) { writer.WritePropertyName("addedHostNames"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterEventData.cs index 4eef16191dbf..9bcbb7937d13 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterEventData.cs @@ -46,8 +46,13 @@ public partial class AvsClusterEventData private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal AvsClusterEventData() + /// Id of the operation that caused this event. + /// is null. + internal AvsClusterEventData(string operationId) { + Argument.AssertNotNull(operationId, nameof(operationId)); + + OperationId = operationId; AddedHostNames = new ChangeTrackingList(); RemovedHostNames = new ChangeTrackingList(); InMaintenanceHostNames = new ChangeTrackingList(); @@ -68,6 +73,11 @@ internal AvsClusterEventData(string operationId, IReadOnlyList addedHost _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal AvsClusterEventData() + { + } + /// Id of the operation that caused this event. public string OperationId { get; } /// Hosts added to the cluster in this event, if any. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterFailedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterFailedEventData.cs index 35f0e1353db6..d1a51d6c905a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterFailedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterFailedEventData.cs @@ -14,8 +14,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsClusterFailedEventData : AvsClusterEventData { /// Initializes a new instance of . - internal AvsClusterFailedEventData() + /// Id of the operation that caused this event. + /// is null. + internal AvsClusterFailedEventData(string operationId) : base(operationId) { + Argument.AssertNotNull(operationId, nameof(operationId)); } /// Initializes a new instance of . @@ -30,6 +33,11 @@ internal AvsClusterFailedEventData(string operationId, IReadOnlyList add FailureMessage = failureMessage; } + /// Initializes a new instance of for deserialization. + internal AvsClusterFailedEventData() + { + } + /// Failure reason of an event. public string FailureMessage { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterUpdatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterUpdatedEventData.cs index 7ec6e28e0484..8c2a1e287b48 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterUpdatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterUpdatedEventData.cs @@ -14,8 +14,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsClusterUpdatedEventData : AvsClusterEventData { /// Initializes a new instance of . - internal AvsClusterUpdatedEventData() + /// Id of the operation that caused this event. + /// is null. + internal AvsClusterUpdatedEventData(string operationId) : base(operationId) { + Argument.AssertNotNull(operationId, nameof(operationId)); } /// Initializes a new instance of . @@ -27,5 +30,10 @@ internal AvsClusterUpdatedEventData() internal AvsClusterUpdatedEventData(string operationId, IReadOnlyList addedHostNames, IReadOnlyList removedHostNames, IReadOnlyList inMaintenanceHostNames, IDictionary serializedAdditionalRawData) : base(operationId, addedHostNames, removedHostNames, inMaintenanceHostNames, serializedAdditionalRawData) { } + + /// Initializes a new instance of for deserialization. + internal AvsClusterUpdatedEventData() + { + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterUpdatingEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterUpdatingEventData.cs index 92b2529146e6..94e2a20e48e5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterUpdatingEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsClusterUpdatingEventData.cs @@ -14,8 +14,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsClusterUpdatingEventData : AvsClusterEventData { /// Initializes a new instance of . - internal AvsClusterUpdatingEventData() + /// Id of the operation that caused this event. + /// is null. + internal AvsClusterUpdatingEventData(string operationId) : base(operationId) { + Argument.AssertNotNull(operationId, nameof(operationId)); } /// Initializes a new instance of . @@ -27,5 +30,10 @@ internal AvsClusterUpdatingEventData() internal AvsClusterUpdatingEventData(string operationId, IReadOnlyList addedHostNames, IReadOnlyList removedHostNames, IReadOnlyList inMaintenanceHostNames, IDictionary serializedAdditionalRawData) : base(operationId, addedHostNames, removedHostNames, inMaintenanceHostNames, serializedAdditionalRawData) { } + + /// Initializes a new instance of for deserialization. + internal AvsClusterUpdatingEventData() + { + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudEventData.Serialization.cs index 2e7a26a87921..15c33bc73eb1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudEventData.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AvsPrivateCloudEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(OperationId)) - { - writer.WritePropertyName("operationId"u8); - writer.WriteStringValue(OperationId); - } + writer.WritePropertyName("operationId"u8); + writer.WriteStringValue(OperationId); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudEventData.cs index 391917dfb4a6..34b79d5aa63c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudEventData.cs @@ -46,8 +46,13 @@ public partial class AvsPrivateCloudEventData private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal AvsPrivateCloudEventData() + /// Id of the operation that caused this event. + /// is null. + internal AvsPrivateCloudEventData(string operationId) { + Argument.AssertNotNull(operationId, nameof(operationId)); + + OperationId = operationId; } /// Initializes a new instance of . @@ -59,6 +64,11 @@ internal AvsPrivateCloudEventData(string operationId, IDictionary Initializes a new instance of for deserialization. + internal AvsPrivateCloudEventData() + { + } + /// Id of the operation that caused this event. public string OperationId { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudFailedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudFailedEventData.cs index 58e2c3216b39..462c74752b07 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudFailedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudFailedEventData.cs @@ -14,8 +14,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsPrivateCloudFailedEventData : AvsPrivateCloudEventData { /// Initializes a new instance of . - internal AvsPrivateCloudFailedEventData() + /// Id of the operation that caused this event. + /// is null. + internal AvsPrivateCloudFailedEventData(string operationId) : base(operationId) { + Argument.AssertNotNull(operationId, nameof(operationId)); } /// Initializes a new instance of . @@ -27,6 +30,11 @@ internal AvsPrivateCloudFailedEventData(string operationId, IDictionary Initializes a new instance of for deserialization. + internal AvsPrivateCloudFailedEventData() + { + } + /// Failure reason of an event. public string FailureMessage { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudUpdatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudUpdatedEventData.cs index 523ad0039dad..08700112d7a0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudUpdatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudUpdatedEventData.cs @@ -14,8 +14,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsPrivateCloudUpdatedEventData : AvsPrivateCloudEventData { /// Initializes a new instance of . - internal AvsPrivateCloudUpdatedEventData() + /// Id of the operation that caused this event. + /// is null. + internal AvsPrivateCloudUpdatedEventData(string operationId) : base(operationId) { + Argument.AssertNotNull(operationId, nameof(operationId)); } /// Initializes a new instance of . @@ -24,5 +27,10 @@ internal AvsPrivateCloudUpdatedEventData() internal AvsPrivateCloudUpdatedEventData(string operationId, IDictionary serializedAdditionalRawData) : base(operationId, serializedAdditionalRawData) { } + + /// Initializes a new instance of for deserialization. + internal AvsPrivateCloudUpdatedEventData() + { + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudUpdatingEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudUpdatingEventData.cs index d3bd82ababd3..160c3343a6cf 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudUpdatingEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsPrivateCloudUpdatingEventData.cs @@ -14,8 +14,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsPrivateCloudUpdatingEventData : AvsPrivateCloudEventData { /// Initializes a new instance of . - internal AvsPrivateCloudUpdatingEventData() + /// Id of the operation that caused this event. + /// is null. + internal AvsPrivateCloudUpdatingEventData(string operationId) : base(operationId) { + Argument.AssertNotNull(operationId, nameof(operationId)); } /// Initializes a new instance of . @@ -24,5 +27,10 @@ internal AvsPrivateCloudUpdatingEventData() internal AvsPrivateCloudUpdatingEventData(string operationId, IDictionary serializedAdditionalRawData) : base(operationId, serializedAdditionalRawData) { } + + /// Initializes a new instance of for deserialization. + internal AvsPrivateCloudUpdatingEventData() + { + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionCancelledEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionCancelledEventData.cs index 0116ef430dee..c19de0780976 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionCancelledEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionCancelledEventData.cs @@ -14,8 +14,13 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsScriptExecutionCancelledEventData : AvsScriptExecutionEventData { /// Initializes a new instance of . - internal AvsScriptExecutionCancelledEventData() + /// Id of the operation that caused this event. + /// Cmdlet referenced in the execution that caused this event. + /// or is null. + internal AvsScriptExecutionCancelledEventData(string operationId, string cmdletId) : base(operationId, cmdletId) { + Argument.AssertNotNull(operationId, nameof(operationId)); + Argument.AssertNotNull(cmdletId, nameof(cmdletId)); } /// Initializes a new instance of . @@ -26,5 +31,10 @@ internal AvsScriptExecutionCancelledEventData() internal AvsScriptExecutionCancelledEventData(string operationId, string cmdletId, IReadOnlyList output, IDictionary serializedAdditionalRawData) : base(operationId, cmdletId, output, serializedAdditionalRawData) { } + + /// Initializes a new instance of for deserialization. + internal AvsScriptExecutionCancelledEventData() + { + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionEventData.Serialization.cs index c22765b20104..06e9dd2ce5b6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionEventData.Serialization.cs @@ -34,16 +34,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AvsScriptExecutionEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(OperationId)) - { - writer.WritePropertyName("operationId"u8); - writer.WriteStringValue(OperationId); - } - if (Optional.IsDefined(CmdletId)) - { - writer.WritePropertyName("cmdletId"u8); - writer.WriteStringValue(CmdletId); - } + writer.WritePropertyName("operationId"u8); + writer.WriteStringValue(OperationId); + writer.WritePropertyName("cmdletId"u8); + writer.WriteStringValue(CmdletId); if (Optional.IsCollectionDefined(Output)) { writer.WritePropertyName("output"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionEventData.cs index d21ddf7920bf..90ddfcbfd12d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionEventData.cs @@ -46,8 +46,16 @@ public partial class AvsScriptExecutionEventData private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal AvsScriptExecutionEventData() + /// Id of the operation that caused this event. + /// Cmdlet referenced in the execution that caused this event. + /// or is null. + internal AvsScriptExecutionEventData(string operationId, string cmdletId) { + Argument.AssertNotNull(operationId, nameof(operationId)); + Argument.AssertNotNull(cmdletId, nameof(cmdletId)); + + OperationId = operationId; + CmdletId = cmdletId; Output = new ChangeTrackingList(); } @@ -64,6 +72,11 @@ internal AvsScriptExecutionEventData(string operationId, string cmdletId, IReadO _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal AvsScriptExecutionEventData() + { + } + /// Id of the operation that caused this event. public string OperationId { get; } /// Cmdlet referenced in the execution that caused this event. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionFailedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionFailedEventData.cs index e5a135482869..c508a421bf97 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionFailedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionFailedEventData.cs @@ -14,8 +14,13 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsScriptExecutionFailedEventData : AvsScriptExecutionEventData { /// Initializes a new instance of . - internal AvsScriptExecutionFailedEventData() + /// Id of the operation that caused this event. + /// Cmdlet referenced in the execution that caused this event. + /// or is null. + internal AvsScriptExecutionFailedEventData(string operationId, string cmdletId) : base(operationId, cmdletId) { + Argument.AssertNotNull(operationId, nameof(operationId)); + Argument.AssertNotNull(cmdletId, nameof(cmdletId)); } /// Initializes a new instance of . @@ -29,6 +34,11 @@ internal AvsScriptExecutionFailedEventData(string operationId, string cmdletId, FailureMessage = failureMessage; } + /// Initializes a new instance of for deserialization. + internal AvsScriptExecutionFailedEventData() + { + } + /// Failure reason of an event. public string FailureMessage { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionFinishedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionFinishedEventData.cs index 84f2fd9fd36a..caca8718ae2e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionFinishedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionFinishedEventData.cs @@ -14,10 +14,14 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsScriptExecutionFinishedEventData : AvsScriptExecutionEventData { /// Initializes a new instance of . + /// Id of the operation that caused this event. + /// Cmdlet referenced in the execution that caused this event. /// Named outputs of completed execution, if any. - /// is null. - internal AvsScriptExecutionFinishedEventData(IReadOnlyDictionary namedOutputs) + /// , or is null. + internal AvsScriptExecutionFinishedEventData(string operationId, string cmdletId, IReadOnlyDictionary namedOutputs) : base(operationId, cmdletId) { + Argument.AssertNotNull(operationId, nameof(operationId)); + Argument.AssertNotNull(cmdletId, nameof(cmdletId)); Argument.AssertNotNull(namedOutputs, nameof(namedOutputs)); NamedOutputs = namedOutputs; diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionStartedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionStartedEventData.cs index 08424798e522..2f07a5a6a36a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionStartedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/AvsScriptExecutionStartedEventData.cs @@ -14,8 +14,13 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class AvsScriptExecutionStartedEventData : AvsScriptExecutionEventData { /// Initializes a new instance of . - internal AvsScriptExecutionStartedEventData() + /// Id of the operation that caused this event. + /// Cmdlet referenced in the execution that caused this event. + /// or is null. + internal AvsScriptExecutionStartedEventData(string operationId, string cmdletId) : base(operationId, cmdletId) { + Argument.AssertNotNull(operationId, nameof(operationId)); + Argument.AssertNotNull(cmdletId, nameof(cmdletId)); } /// Initializes a new instance of . @@ -26,5 +31,10 @@ internal AvsScriptExecutionStartedEventData() internal AvsScriptExecutionStartedEventData(string operationId, string cmdletId, IReadOnlyList output, IDictionary serializedAdditionalRawData) : base(operationId, cmdletId, output, serializedAdditionalRawData) { } + + /// Initializes a new instance of for deserialization. + internal AvsScriptExecutionStartedEventData() + { + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventData.Serialization.cs index 9c0c10f7ce8b..f92b3d8d6f5a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventData.Serialization.cs @@ -34,27 +34,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ContainerRegistryArtifactEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); writer.WritePropertyName("timestamp"u8); writer.WriteStringValue(Timestamp, "O"); - if (Optional.IsDefined(Action)) - { - writer.WritePropertyName("action"u8); - writer.WriteStringValue(Action); - } - if (Optional.IsDefined(Location)) - { - writer.WritePropertyName("location"u8); - writer.WriteStringValue(Location); - } + writer.WritePropertyName("action"u8); + writer.WriteStringValue(Action); + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); writer.WritePropertyName("target"u8); writer.WriteObjectValue(Target, options); - writer.WritePropertyName("connectedRegistry"u8); - writer.WriteObjectValue(ConnectedRegistry, options); + if (Optional.IsDefined(ConnectedRegistry)) + { + writer.WritePropertyName("connectedRegistry"u8); + writer.WriteObjectValue(ConnectedRegistry, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -129,6 +123,10 @@ internal static ContainerRegistryArtifactEventData DeserializeContainerRegistryA } if (property.NameEquals("connectedRegistry"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } connectedRegistry = ContainerRegistryEventConnectedRegistry.DeserializeContainerRegistryEventConnectedRegistry(property.Value, options); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventData.cs index 9fb1972e3d56..9799bd5285da 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventData.cs @@ -46,18 +46,24 @@ public partial class ContainerRegistryArtifactEventData private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// The event ID. /// The time at which the event occurred. + /// The action that encompasses the provided event. + /// The location of the event. /// The target of the event. - /// The connected registry information if the event is generated by a connected registry. - /// or is null. - internal ContainerRegistryArtifactEventData(DateTimeOffset timestamp, ContainerRegistryArtifactEventTarget target, ContainerRegistryEventConnectedRegistry connectedRegistry) + /// , , or is null. + internal ContainerRegistryArtifactEventData(string id, DateTimeOffset timestamp, string action, string location, ContainerRegistryArtifactEventTarget target) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(action, nameof(action)); + Argument.AssertNotNull(location, nameof(location)); Argument.AssertNotNull(target, nameof(target)); - Argument.AssertNotNull(connectedRegistry, nameof(connectedRegistry)); + Id = id; Timestamp = timestamp; + Action = action; + Location = location; Target = target; - ConnectedRegistry = connectedRegistry; } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventTarget.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventTarget.Serialization.cs index a34f0291630d..fbb31f7131e4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventTarget.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventTarget.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ContainerRegistryArtifactEventTarget)} does not support writing '{format}' format."); } - if (Optional.IsDefined(MediaType)) - { - writer.WritePropertyName("mediaType"u8); - writer.WriteStringValue(MediaType); - } + writer.WritePropertyName("mediaType"u8); + writer.WriteStringValue(MediaType); if (Optional.IsDefined(Size)) { writer.WritePropertyName("size"u8); @@ -49,11 +46,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("digest"u8); writer.WriteStringValue(Digest); } - if (Optional.IsDefined(Repository)) - { - writer.WritePropertyName("repository"u8); - writer.WriteStringValue(Repository); - } + writer.WritePropertyName("repository"u8); + writer.WriteStringValue(Repository); if (Optional.IsDefined(Tag)) { writer.WritePropertyName("tag"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventTarget.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventTarget.cs index a0b3692c64ba..c33a1758babc 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventTarget.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryArtifactEventTarget.cs @@ -46,8 +46,16 @@ public partial class ContainerRegistryArtifactEventTarget private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ContainerRegistryArtifactEventTarget() + /// The MIME type of the artifact. + /// The repository name of the artifact. + /// or is null. + internal ContainerRegistryArtifactEventTarget(string mediaType, string repository) { + Argument.AssertNotNull(mediaType, nameof(mediaType)); + Argument.AssertNotNull(repository, nameof(repository)); + + MediaType = mediaType; + Repository = repository; } /// Initializes a new instance of . @@ -71,6 +79,11 @@ internal ContainerRegistryArtifactEventTarget(string mediaType, long? size, stri _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal ContainerRegistryArtifactEventTarget() + { + } + /// The MIME type of the artifact. public string MediaType { get; } /// The size in bytes of the artifact. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartDeletedEventData.Serialization.cs index e10e1f4b30e6..6eb22f641372 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartDeletedEventData.Serialization.cs @@ -94,6 +94,10 @@ internal static ContainerRegistryChartDeletedEventData DeserializeContainerRegis } if (property.NameEquals("connectedRegistry"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } connectedRegistry = ContainerRegistryEventConnectedRegistry.DeserializeContainerRegistryEventConnectedRegistry(property.Value, options); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartDeletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartDeletedEventData.cs index c51cacba09e9..c590ddd992c1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartDeletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartDeletedEventData.cs @@ -14,14 +14,18 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class ContainerRegistryChartDeletedEventData : ContainerRegistryArtifactEventData { /// Initializes a new instance of . + /// The event ID. /// The time at which the event occurred. + /// The action that encompasses the provided event. + /// The location of the event. /// The target of the event. - /// The connected registry information if the event is generated by a connected registry. - /// or is null. - internal ContainerRegistryChartDeletedEventData(DateTimeOffset timestamp, ContainerRegistryArtifactEventTarget target, ContainerRegistryEventConnectedRegistry connectedRegistry) : base(timestamp, target, connectedRegistry) + /// , , or is null. + internal ContainerRegistryChartDeletedEventData(string id, DateTimeOffset timestamp, string action, string location, ContainerRegistryArtifactEventTarget target) : base(id, timestamp, action, location, target) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(action, nameof(action)); + Argument.AssertNotNull(location, nameof(location)); Argument.AssertNotNull(target, nameof(target)); - Argument.AssertNotNull(connectedRegistry, nameof(connectedRegistry)); } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartPushedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartPushedEventData.Serialization.cs index 6e292e2bd1fd..f18a6288100a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartPushedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartPushedEventData.Serialization.cs @@ -94,6 +94,10 @@ internal static ContainerRegistryChartPushedEventData DeserializeContainerRegist } if (property.NameEquals("connectedRegistry"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } connectedRegistry = ContainerRegistryEventConnectedRegistry.DeserializeContainerRegistryEventConnectedRegistry(property.Value, options); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartPushedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartPushedEventData.cs index 1e05ff576eac..b714261d03bf 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartPushedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryChartPushedEventData.cs @@ -14,14 +14,18 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class ContainerRegistryChartPushedEventData : ContainerRegistryArtifactEventData { /// Initializes a new instance of . + /// The event ID. /// The time at which the event occurred. + /// The action that encompasses the provided event. + /// The location of the event. /// The target of the event. - /// The connected registry information if the event is generated by a connected registry. - /// or is null. - internal ContainerRegistryChartPushedEventData(DateTimeOffset timestamp, ContainerRegistryArtifactEventTarget target, ContainerRegistryEventConnectedRegistry connectedRegistry) : base(timestamp, target, connectedRegistry) + /// , , or is null. + internal ContainerRegistryChartPushedEventData(string id, DateTimeOffset timestamp, string action, string location, ContainerRegistryArtifactEventTarget target) : base(id, timestamp, action, location, target) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(action, nameof(action)); + Argument.AssertNotNull(location, nameof(location)); Argument.AssertNotNull(target, nameof(target)); - Argument.AssertNotNull(connectedRegistry, nameof(connectedRegistry)); } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventConnectedRegistry.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventConnectedRegistry.Serialization.cs index b28bb98afa41..d43adc3663fe 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventConnectedRegistry.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventConnectedRegistry.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ContainerRegistryEventConnectedRegistry)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventConnectedRegistry.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventConnectedRegistry.cs index 60e9c7295966..e39009f58d84 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventConnectedRegistry.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventConnectedRegistry.cs @@ -46,8 +46,13 @@ public partial class ContainerRegistryEventConnectedRegistry private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ContainerRegistryEventConnectedRegistry() + /// The name of the connected registry that generated this event. + /// is null. + internal ContainerRegistryEventConnectedRegistry(string name) { + Argument.AssertNotNull(name, nameof(name)); + + Name = name; } /// Initializes a new instance of . @@ -59,6 +64,11 @@ internal ContainerRegistryEventConnectedRegistry(string name, IDictionary Initializes a new instance of for deserialization. + internal ContainerRegistryEventConnectedRegistry() + { + } + /// The name of the connected registry that generated this event. public string Name { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventData.Serialization.cs index e9f801089099..a352ed5abd7f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventData.Serialization.cs @@ -34,33 +34,36 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ContainerRegistryEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); writer.WritePropertyName("timestamp"u8); writer.WriteStringValue(Timestamp, "O"); - if (Optional.IsDefined(Action)) + writer.WritePropertyName("action"u8); + writer.WriteStringValue(Action); + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + writer.WritePropertyName("target"u8); + writer.WriteObjectValue(Target, options); + if (Optional.IsDefined(Request)) { - writer.WritePropertyName("action"u8); - writer.WriteStringValue(Action); + writer.WritePropertyName("request"u8); + writer.WriteObjectValue(Request, options); } - if (Optional.IsDefined(Location)) + if (Optional.IsDefined(Actor)) { - writer.WritePropertyName("location"u8); - writer.WriteStringValue(Location); + writer.WritePropertyName("actor"u8); + writer.WriteObjectValue(Actor, options); + } + if (Optional.IsDefined(Source)) + { + writer.WritePropertyName("source"u8); + writer.WriteObjectValue(Source, options); + } + if (Optional.IsDefined(ConnectedRegistry)) + { + writer.WritePropertyName("connectedRegistry"u8); + writer.WriteObjectValue(ConnectedRegistry, options); } - writer.WritePropertyName("target"u8); - writer.WriteObjectValue(Target, options); - writer.WritePropertyName("request"u8); - writer.WriteObjectValue(Request, options); - writer.WritePropertyName("actor"u8); - writer.WriteObjectValue(Actor, options); - writer.WritePropertyName("source"u8); - writer.WriteObjectValue(Source, options); - writer.WritePropertyName("connectedRegistry"u8); - writer.WriteObjectValue(ConnectedRegistry, options); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -138,21 +141,37 @@ internal static ContainerRegistryEventData DeserializeContainerRegistryEventData } if (property.NameEquals("request"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } request = ContainerRegistryEventRequest.DeserializeContainerRegistryEventRequest(property.Value, options); continue; } if (property.NameEquals("actor"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } actor = ContainerRegistryEventActor.DeserializeContainerRegistryEventActor(property.Value, options); continue; } if (property.NameEquals("source"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } source = ContainerRegistryEventSource.DeserializeContainerRegistryEventSource(property.Value, options); continue; } if (property.NameEquals("connectedRegistry"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } connectedRegistry = ContainerRegistryEventConnectedRegistry.DeserializeContainerRegistryEventConnectedRegistry(property.Value, options); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventData.cs index 6f9e05701bed..0f3c4d02e2d9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventData.cs @@ -46,27 +46,24 @@ public partial class ContainerRegistryEventData private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// The event ID. /// The time at which the event occurred. + /// The action that encompasses the provided event. + /// The location of the event. /// The target of the event. - /// The request that generated the event. - /// The agent that initiated the event. For most situations, this could be from the authorization context of the request. - /// The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. - /// The connected registry information if the event is generated by a connected registry. - /// , , , or is null. - internal ContainerRegistryEventData(DateTimeOffset timestamp, ContainerRegistryEventTarget target, ContainerRegistryEventRequest request, ContainerRegistryEventActor actor, ContainerRegistryEventSource source, ContainerRegistryEventConnectedRegistry connectedRegistry) + /// , , or is null. + internal ContainerRegistryEventData(string id, DateTimeOffset timestamp, string action, string location, ContainerRegistryEventTarget target) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(action, nameof(action)); + Argument.AssertNotNull(location, nameof(location)); Argument.AssertNotNull(target, nameof(target)); - Argument.AssertNotNull(request, nameof(request)); - Argument.AssertNotNull(actor, nameof(actor)); - Argument.AssertNotNull(source, nameof(source)); - Argument.AssertNotNull(connectedRegistry, nameof(connectedRegistry)); + Id = id; Timestamp = timestamp; + Action = action; + Location = location; Target = target; - Request = request; - Actor = actor; - Source = source; - ConnectedRegistry = connectedRegistry; } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventRequest.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventRequest.Serialization.cs index f1d8f38ecf9f..e2216bc68624 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventRequest.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventRequest.Serialization.cs @@ -34,26 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ContainerRegistryEventRequest)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); if (Optional.IsDefined(Addr)) { writer.WritePropertyName("addr"u8); writer.WriteStringValue(Addr); } - if (Optional.IsDefined(Host)) - { - writer.WritePropertyName("host"u8); - writer.WriteStringValue(Host); - } - if (Optional.IsDefined(Method)) - { - writer.WritePropertyName("method"u8); - writer.WriteStringValue(Method); - } + writer.WritePropertyName("host"u8); + writer.WriteStringValue(Host); + writer.WritePropertyName("method"u8); + writer.WriteStringValue(Method); if (Optional.IsDefined(Useragent)) { writer.WritePropertyName("useragent"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventRequest.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventRequest.cs index c53cd2d48a7c..96ca17beee49 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventRequest.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventRequest.cs @@ -46,8 +46,19 @@ public partial class ContainerRegistryEventRequest private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ContainerRegistryEventRequest() + /// The ID of the request that initiated the event. + /// The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests. + /// The request method that generated the event. + /// , or is null. + internal ContainerRegistryEventRequest(string id, string host, string method) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(host, nameof(host)); + Argument.AssertNotNull(method, nameof(method)); + + Id = id; + Host = host; + Method = method; } /// Initializes a new instance of . @@ -67,6 +78,11 @@ internal ContainerRegistryEventRequest(string id, string addr, string host, stri _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal ContainerRegistryEventRequest() + { + } + /// The ID of the request that initiated the event. public string Id { get; } /// The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventTarget.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventTarget.Serialization.cs index b04cd91daf5b..c8ffd31bc848 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventTarget.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventTarget.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ContainerRegistryEventTarget)} does not support writing '{format}' format."); } - if (Optional.IsDefined(MediaType)) - { - writer.WritePropertyName("mediaType"u8); - writer.WriteStringValue(MediaType); - } + writer.WritePropertyName("mediaType"u8); + writer.WriteStringValue(MediaType); if (Optional.IsDefined(Size)) { writer.WritePropertyName("size"u8); @@ -54,11 +51,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("length"u8); writer.WriteNumberValue(Length.Value); } - if (Optional.IsDefined(Repository)) - { - writer.WritePropertyName("repository"u8); - writer.WriteStringValue(Repository); - } + writer.WritePropertyName("repository"u8); + writer.WriteStringValue(Repository); if (Optional.IsDefined(Url)) { writer.WritePropertyName("url"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventTarget.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventTarget.cs index 1494dff1e4ff..c7d5aecf612a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventTarget.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryEventTarget.cs @@ -46,8 +46,16 @@ public partial class ContainerRegistryEventTarget private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ContainerRegistryEventTarget() + /// The MIME type of the referenced object. + /// The repository name. + /// or is null. + internal ContainerRegistryEventTarget(string mediaType, string repository) { + Argument.AssertNotNull(mediaType, nameof(mediaType)); + Argument.AssertNotNull(repository, nameof(repository)); + + MediaType = mediaType; + Repository = repository; } /// Initializes a new instance of . @@ -71,6 +79,11 @@ internal ContainerRegistryEventTarget(string mediaType, long? size, string diges _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal ContainerRegistryEventTarget() + { + } + /// The MIME type of the referenced object. public string MediaType { get; } /// The number of bytes of the content. Same as Length field. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImageDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImageDeletedEventData.Serialization.cs index 2317c3678deb..405e93eb95cd 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImageDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImageDeletedEventData.Serialization.cs @@ -97,21 +97,37 @@ internal static ContainerRegistryImageDeletedEventData DeserializeContainerRegis } if (property.NameEquals("request"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } request = ContainerRegistryEventRequest.DeserializeContainerRegistryEventRequest(property.Value, options); continue; } if (property.NameEquals("actor"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } actor = ContainerRegistryEventActor.DeserializeContainerRegistryEventActor(property.Value, options); continue; } if (property.NameEquals("source"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } source = ContainerRegistryEventSource.DeserializeContainerRegistryEventSource(property.Value, options); continue; } if (property.NameEquals("connectedRegistry"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } connectedRegistry = ContainerRegistryEventConnectedRegistry.DeserializeContainerRegistryEventConnectedRegistry(property.Value, options); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImageDeletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImageDeletedEventData.cs index c839e9590b91..e14ba655f462 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImageDeletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImageDeletedEventData.cs @@ -14,20 +14,18 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class ContainerRegistryImageDeletedEventData : ContainerRegistryEventData { /// Initializes a new instance of . + /// The event ID. /// The time at which the event occurred. + /// The action that encompasses the provided event. + /// The location of the event. /// The target of the event. - /// The request that generated the event. - /// The agent that initiated the event. For most situations, this could be from the authorization context of the request. - /// The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. - /// The connected registry information if the event is generated by a connected registry. - /// , , , or is null. - internal ContainerRegistryImageDeletedEventData(DateTimeOffset timestamp, ContainerRegistryEventTarget target, ContainerRegistryEventRequest request, ContainerRegistryEventActor actor, ContainerRegistryEventSource source, ContainerRegistryEventConnectedRegistry connectedRegistry) : base(timestamp, target, request, actor, source, connectedRegistry) + /// , , or is null. + internal ContainerRegistryImageDeletedEventData(string id, DateTimeOffset timestamp, string action, string location, ContainerRegistryEventTarget target) : base(id, timestamp, action, location, target) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(action, nameof(action)); + Argument.AssertNotNull(location, nameof(location)); Argument.AssertNotNull(target, nameof(target)); - Argument.AssertNotNull(request, nameof(request)); - Argument.AssertNotNull(actor, nameof(actor)); - Argument.AssertNotNull(source, nameof(source)); - Argument.AssertNotNull(connectedRegistry, nameof(connectedRegistry)); } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImagePushedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImagePushedEventData.Serialization.cs index 99f3256056db..6060150768b0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImagePushedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImagePushedEventData.Serialization.cs @@ -97,21 +97,37 @@ internal static ContainerRegistryImagePushedEventData DeserializeContainerRegist } if (property.NameEquals("request"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } request = ContainerRegistryEventRequest.DeserializeContainerRegistryEventRequest(property.Value, options); continue; } if (property.NameEquals("actor"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } actor = ContainerRegistryEventActor.DeserializeContainerRegistryEventActor(property.Value, options); continue; } if (property.NameEquals("source"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } source = ContainerRegistryEventSource.DeserializeContainerRegistryEventSource(property.Value, options); continue; } if (property.NameEquals("connectedRegistry"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } connectedRegistry = ContainerRegistryEventConnectedRegistry.DeserializeContainerRegistryEventConnectedRegistry(property.Value, options); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImagePushedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImagePushedEventData.cs index 32fbf481e6df..33fa9d2bb4a4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImagePushedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ContainerRegistryImagePushedEventData.cs @@ -14,20 +14,18 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class ContainerRegistryImagePushedEventData : ContainerRegistryEventData { /// Initializes a new instance of . + /// The event ID. /// The time at which the event occurred. + /// The action that encompasses the provided event. + /// The location of the event. /// The target of the event. - /// The request that generated the event. - /// The agent that initiated the event. For most situations, this could be from the authorization context of the request. - /// The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. - /// The connected registry information if the event is generated by a connected registry. - /// , , , or is null. - internal ContainerRegistryImagePushedEventData(DateTimeOffset timestamp, ContainerRegistryEventTarget target, ContainerRegistryEventRequest request, ContainerRegistryEventActor actor, ContainerRegistryEventSource source, ContainerRegistryEventConnectedRegistry connectedRegistry) : base(timestamp, target, request, actor, source, connectedRegistry) + /// , , or is null. + internal ContainerRegistryImagePushedEventData(string id, DateTimeOffset timestamp, string action, string location, ContainerRegistryEventTarget target) : base(id, timestamp, action, location, target) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(action, nameof(action)); + Argument.AssertNotNull(location, nameof(location)); Argument.AssertNotNull(target, nameof(target)); - Argument.AssertNotNull(request, nameof(request)); - Argument.AssertNotNull(actor, nameof(actor)); - Argument.AssertNotNull(source, nameof(source)); - Argument.AssertNotNull(connectedRegistry, nameof(connectedRegistry)); } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyCompletedEventData.Serialization.cs index 48825fb0fed9..4b42f94cc270 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyCompletedEventData.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DataBoxCopyCompletedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(SerialNumber)) - { - writer.WritePropertyName("serialNumber"u8); - writer.WriteStringValue(SerialNumber); - } + writer.WritePropertyName("serialNumber"u8); + writer.WriteStringValue(SerialNumber); writer.WritePropertyName("stageName"u8); writer.WriteStringValue(StageName.ToString()); writer.WritePropertyName("stageTime"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyCompletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyCompletedEventData.cs index 75a73c0475e9..f4d359fd70b5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyCompletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyCompletedEventData.cs @@ -46,10 +46,15 @@ public partial class DataBoxCopyCompletedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated. /// Name of the current Stage. /// The time at which the stage happened. - internal DataBoxCopyCompletedEventData(DataBoxStageName stageName, DateTimeOffset stageTime) + /// is null. + internal DataBoxCopyCompletedEventData(string serialNumber, DataBoxStageName stageName, DateTimeOffset stageTime) { + Argument.AssertNotNull(serialNumber, nameof(serialNumber)); + + SerialNumber = serialNumber; StageName = stageName; StageTime = stageTime; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyStartedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyStartedEventData.Serialization.cs index e0603dee3265..e476fd91da23 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyStartedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyStartedEventData.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DataBoxCopyStartedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(SerialNumber)) - { - writer.WritePropertyName("serialNumber"u8); - writer.WriteStringValue(SerialNumber); - } + writer.WritePropertyName("serialNumber"u8); + writer.WriteStringValue(SerialNumber); writer.WritePropertyName("stageName"u8); writer.WriteStringValue(StageName.ToString()); writer.WritePropertyName("stageTime"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyStartedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyStartedEventData.cs index 2c607fcec991..56fa524415b1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyStartedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxCopyStartedEventData.cs @@ -46,10 +46,15 @@ public partial class DataBoxCopyStartedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated. /// Name of the current Stage. /// The time at which the stage happened. - internal DataBoxCopyStartedEventData(DataBoxStageName stageName, DateTimeOffset stageTime) + /// is null. + internal DataBoxCopyStartedEventData(string serialNumber, DataBoxStageName stageName, DateTimeOffset stageTime) { + Argument.AssertNotNull(serialNumber, nameof(serialNumber)); + + SerialNumber = serialNumber; StageName = stageName; StageTime = stageTime; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxOrderCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxOrderCompletedEventData.Serialization.cs index 036c53c1f5ca..3d14c2feab02 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxOrderCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxOrderCompletedEventData.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DataBoxOrderCompletedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(SerialNumber)) - { - writer.WritePropertyName("serialNumber"u8); - writer.WriteStringValue(SerialNumber); - } + writer.WritePropertyName("serialNumber"u8); + writer.WriteStringValue(SerialNumber); writer.WritePropertyName("stageName"u8); writer.WriteStringValue(StageName.ToString()); writer.WritePropertyName("stageTime"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxOrderCompletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxOrderCompletedEventData.cs index b610d5819b26..ae0a8360e4fe 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxOrderCompletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DataBoxOrderCompletedEventData.cs @@ -46,10 +46,15 @@ public partial class DataBoxOrderCompletedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated. /// Name of the current Stage. /// The time at which the stage happened. - internal DataBoxOrderCompletedEventData(DataBoxStageName stageName, DateTimeOffset stageTime) + /// is null. + internal DataBoxOrderCompletedEventData(string serialNumber, DataBoxStageName stageName, DateTimeOffset stageTime) { + Argument.AssertNotNull(serialNumber, nameof(serialNumber)); + + SerialNumber = serialNumber; StageName = stageName; StageTime = stageTime; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventInfo.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventInfo.Serialization.cs index e5f7910703dc..bf902cc3055e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventInfo.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventInfo.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DeviceConnectionStateEventInfo)} does not support writing '{format}' format."); } - if (Optional.IsDefined(SequenceNumber)) - { - writer.WritePropertyName("sequenceNumber"u8); - writer.WriteStringValue(SequenceNumber); - } + writer.WritePropertyName("sequenceNumber"u8); + writer.WriteStringValue(SequenceNumber); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventInfo.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventInfo.cs index 215ec30e9369..94f66c88bade 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventInfo.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventInfo.cs @@ -46,8 +46,13 @@ public partial class DeviceConnectionStateEventInfo private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal DeviceConnectionStateEventInfo() + /// Sequence number is string representation of a hexadecimal number. string compare can be used to identify the larger number because both in ASCII and HEX numbers come after alphabets. If you are converting the string to hex, then the number is a 256 bit number. + /// is null. + internal DeviceConnectionStateEventInfo(string sequenceNumber) { + Argument.AssertNotNull(sequenceNumber, nameof(sequenceNumber)); + + SequenceNumber = sequenceNumber; } /// Initializes a new instance of . @@ -59,6 +64,11 @@ internal DeviceConnectionStateEventInfo(string sequenceNumber, IDictionary Initializes a new instance of for deserialization. + internal DeviceConnectionStateEventInfo() + { + } + /// Sequence number is string representation of a hexadecimal number. string compare can be used to identify the larger number because both in ASCII and HEX numbers come after alphabets. If you are converting the string to hex, then the number is a 256 bit number. public string SequenceNumber { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventProperties.Serialization.cs index f281e719035a..b0ec0a9a35e8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventProperties.Serialization.cs @@ -34,21 +34,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DeviceConnectionStateEventProperties)} does not support writing '{format}' format."); } - if (Optional.IsDefined(DeviceId)) - { - writer.WritePropertyName("deviceId"u8); - writer.WriteStringValue(DeviceId); - } + writer.WritePropertyName("deviceId"u8); + writer.WriteStringValue(DeviceId); if (Optional.IsDefined(ModuleId)) { writer.WritePropertyName("moduleId"u8); writer.WriteStringValue(ModuleId); } - if (Optional.IsDefined(HubName)) - { - writer.WritePropertyName("hubName"u8); - writer.WriteStringValue(HubName); - } + writer.WritePropertyName("hubName"u8); + writer.WriteStringValue(HubName); writer.WritePropertyName("deviceConnectionStateEventInfo"u8); writer.WriteObjectValue(DeviceConnectionStateEventInfo, options); if (options.Format != "W" && _serializedAdditionalRawData != null) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventProperties.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventProperties.cs index d271d4d44c8c..ec2dc0697b9f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventProperties.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceConnectionStateEventProperties.cs @@ -46,12 +46,18 @@ public partial class DeviceConnectionStateEventProperties private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// 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: - : . + % _ # * ? ! ( ) , = `@` ; $ '. + /// Name of the IoT Hub where the device was created or deleted. /// Information about the device connection state event. - /// is null. - internal DeviceConnectionStateEventProperties(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo) + /// , or is null. + internal DeviceConnectionStateEventProperties(string deviceId, string hubName, DeviceConnectionStateEventInfo deviceConnectionStateEventInfo) { + Argument.AssertNotNull(deviceId, nameof(deviceId)); + Argument.AssertNotNull(hubName, nameof(hubName)); Argument.AssertNotNull(deviceConnectionStateEventInfo, nameof(deviceConnectionStateEventInfo)); + DeviceId = deviceId; + HubName = hubName; DeviceConnectionStateEventInfo = deviceConnectionStateEventInfo; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceLifeCycleEventProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceLifeCycleEventProperties.Serialization.cs index 067326794b32..2a8313261233 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceLifeCycleEventProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceLifeCycleEventProperties.Serialization.cs @@ -34,16 +34,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DeviceLifeCycleEventProperties)} does not support writing '{format}' format."); } - if (Optional.IsDefined(DeviceId)) - { - writer.WritePropertyName("deviceId"u8); - writer.WriteStringValue(DeviceId); - } - if (Optional.IsDefined(HubName)) - { - writer.WritePropertyName("hubName"u8); - writer.WriteStringValue(HubName); - } + writer.WritePropertyName("deviceId"u8); + writer.WriteStringValue(DeviceId); + writer.WritePropertyName("hubName"u8); + writer.WriteStringValue(HubName); writer.WritePropertyName("twin"u8); writer.WriteObjectValue(Twin, options); if (options.Format != "W" && _serializedAdditionalRawData != null) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceLifeCycleEventProperties.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceLifeCycleEventProperties.cs index cb931023ce50..3991030cc4f6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceLifeCycleEventProperties.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceLifeCycleEventProperties.cs @@ -46,12 +46,18 @@ public partial class DeviceLifeCycleEventProperties private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// 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: - : . + % _ # * ? ! ( ) , = `@` ; $ '. + /// Name of the IoT Hub where the device was created or deleted. /// Information about the device twin, which is the cloud representation of application device metadata. - /// is null. - internal DeviceLifeCycleEventProperties(DeviceTwinInfo twin) + /// , or is null. + internal DeviceLifeCycleEventProperties(string deviceId, string hubName, DeviceTwinInfo twin) { + Argument.AssertNotNull(deviceId, nameof(deviceId)); + Argument.AssertNotNull(hubName, nameof(hubName)); Argument.AssertNotNull(twin, nameof(twin)); + DeviceId = deviceId; + HubName = hubName; Twin = twin; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfo.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfo.Serialization.cs index e5d3ab3d59e6..646e322e31e6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfo.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfo.Serialization.cs @@ -34,53 +34,26 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DeviceTwinInfo)} does not support writing '{format}' format."); } - if (Optional.IsDefined(AuthenticationType)) - { - writer.WritePropertyName("authenticationType"u8); - writer.WriteStringValue(AuthenticationType); - } - if (Optional.IsDefined(CloudToDeviceMessageCount)) - { - writer.WritePropertyName("cloudToDeviceMessageCount"u8); - writer.WriteNumberValue(CloudToDeviceMessageCount.Value); - } - if (Optional.IsDefined(ConnectionState)) - { - writer.WritePropertyName("connectionState"u8); - writer.WriteStringValue(ConnectionState); - } - if (Optional.IsDefined(DeviceId)) - { - writer.WritePropertyName("deviceId"u8); - writer.WriteStringValue(DeviceId); - } - if (Optional.IsDefined(Etag)) - { - writer.WritePropertyName("etag"u8); - writer.WriteStringValue(Etag); - } - if (Optional.IsDefined(LastActivityTime)) - { - writer.WritePropertyName("lastActivityTime"u8); - writer.WriteStringValue(LastActivityTime); - } + writer.WritePropertyName("authenticationType"u8); + writer.WriteStringValue(AuthenticationType); + writer.WritePropertyName("cloudToDeviceMessageCount"u8); + writer.WriteNumberValue(CloudToDeviceMessageCount); + writer.WritePropertyName("connectionState"u8); + writer.WriteStringValue(ConnectionState); + writer.WritePropertyName("deviceId"u8); + writer.WriteStringValue(DeviceId); + writer.WritePropertyName("etag"u8); + writer.WriteStringValue(Etag); + writer.WritePropertyName("lastActivityTime"u8); + writer.WriteStringValue(LastActivityTime); writer.WritePropertyName("properties"u8); writer.WriteObjectValue(Properties, options); - if (Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status); - } - if (Optional.IsDefined(StatusUpdateTime)) - { - writer.WritePropertyName("statusUpdateTime"u8); - writer.WriteStringValue(StatusUpdateTime); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("version"u8); - writer.WriteNumberValue(Version.Value); - } + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status); + writer.WritePropertyName("statusUpdateTime"u8); + writer.WriteStringValue(StatusUpdateTime); + writer.WritePropertyName("version"u8); + writer.WriteNumberValue(Version); writer.WritePropertyName("x509Thumbprint"u8); writer.WriteObjectValue(X509Thumbprint, options); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -121,7 +94,7 @@ internal static DeviceTwinInfo DeserializeDeviceTwinInfo(JsonElement element, Mo return null; } string authenticationType = default; - float? cloudToDeviceMessageCount = default; + float cloudToDeviceMessageCount = default; string connectionState = default; string deviceId = default; string etag = default; @@ -129,7 +102,7 @@ internal static DeviceTwinInfo DeserializeDeviceTwinInfo(JsonElement element, Mo DeviceTwinInfoProperties properties = default; string status = default; string statusUpdateTime = default; - float? version = default; + float version = default; DeviceTwinInfoX509Thumbprint x509Thumbprint = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -142,10 +115,6 @@ internal static DeviceTwinInfo DeserializeDeviceTwinInfo(JsonElement element, Mo } if (property.NameEquals("cloudToDeviceMessageCount"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } cloudToDeviceMessageCount = property.Value.GetSingle(); continue; } @@ -186,10 +155,6 @@ internal static DeviceTwinInfo DeserializeDeviceTwinInfo(JsonElement element, Mo } if (property.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } version = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfo.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfo.cs index 8852435012fb..d00cce253acc 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfo.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfo.cs @@ -46,15 +46,40 @@ public partial class DeviceTwinInfo private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority. + /// Count of cloud to device messages sent to this device. + /// Whether the device is connected or disconnected. + /// The unique identifier of the device twin. + /// A piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin. + /// The ISO8601 timestamp of the last activity. /// Properties JSON element. + /// Whether the device twin is enabled or disabled. + /// The ISO8601 timestamp of the last device twin status update. + /// An integer that is incremented by one each time the device twin is updated. /// The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate. - /// or is null. - internal DeviceTwinInfo(DeviceTwinInfoProperties properties, DeviceTwinInfoX509Thumbprint x509Thumbprint) + /// , , , , , , , or is null. + internal DeviceTwinInfo(string authenticationType, float cloudToDeviceMessageCount, string connectionState, string deviceId, string etag, string lastActivityTime, DeviceTwinInfoProperties properties, string status, string statusUpdateTime, float version, DeviceTwinInfoX509Thumbprint x509Thumbprint) { + Argument.AssertNotNull(authenticationType, nameof(authenticationType)); + Argument.AssertNotNull(connectionState, nameof(connectionState)); + Argument.AssertNotNull(deviceId, nameof(deviceId)); + Argument.AssertNotNull(etag, nameof(etag)); + Argument.AssertNotNull(lastActivityTime, nameof(lastActivityTime)); Argument.AssertNotNull(properties, nameof(properties)); + Argument.AssertNotNull(status, nameof(status)); + Argument.AssertNotNull(statusUpdateTime, nameof(statusUpdateTime)); Argument.AssertNotNull(x509Thumbprint, nameof(x509Thumbprint)); + AuthenticationType = authenticationType; + CloudToDeviceMessageCount = cloudToDeviceMessageCount; + ConnectionState = connectionState; + DeviceId = deviceId; + Etag = etag; + LastActivityTime = lastActivityTime; Properties = properties; + Status = status; + StatusUpdateTime = statusUpdateTime; + Version = version; X509Thumbprint = x509Thumbprint; } @@ -71,7 +96,7 @@ internal DeviceTwinInfo(DeviceTwinInfoProperties properties, DeviceTwinInfoX509T /// An integer that is incremented by one each time the device twin is updated. /// The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate. /// Keeps track of any properties unknown to the library. - internal DeviceTwinInfo(string authenticationType, float? cloudToDeviceMessageCount, string connectionState, string deviceId, string etag, string lastActivityTime, DeviceTwinInfoProperties properties, string status, string statusUpdateTime, float? version, DeviceTwinInfoX509Thumbprint x509Thumbprint, IDictionary serializedAdditionalRawData) + internal DeviceTwinInfo(string authenticationType, float cloudToDeviceMessageCount, string connectionState, string deviceId, string etag, string lastActivityTime, DeviceTwinInfoProperties properties, string status, string statusUpdateTime, float version, DeviceTwinInfoX509Thumbprint x509Thumbprint, IDictionary serializedAdditionalRawData) { AuthenticationType = authenticationType; CloudToDeviceMessageCount = cloudToDeviceMessageCount; @@ -95,7 +120,7 @@ internal DeviceTwinInfo() /// Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority. public string AuthenticationType { get; } /// Count of cloud to device messages sent to this device. - public float? CloudToDeviceMessageCount { get; } + public float CloudToDeviceMessageCount { get; } /// Whether the device is connected or disconnected. public string ConnectionState { get; } /// The unique identifier of the device twin. @@ -111,7 +136,7 @@ internal DeviceTwinInfo() /// The ISO8601 timestamp of the last device twin status update. public string StatusUpdateTime { get; } /// An integer that is incremented by one each time the device twin is updated. - public float? Version { get; } + public float Version { get; } /// The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate. public DeviceTwinInfoX509Thumbprint X509Thumbprint { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfoX509Thumbprint.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfoX509Thumbprint.Serialization.cs index c239f0edb6a5..4671fa872f9d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfoX509Thumbprint.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfoX509Thumbprint.Serialization.cs @@ -34,16 +34,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DeviceTwinInfoX509Thumbprint)} does not support writing '{format}' format."); } - if (Optional.IsDefined(PrimaryThumbprint)) - { - writer.WritePropertyName("primaryThumbprint"u8); - writer.WriteStringValue(PrimaryThumbprint); - } - if (Optional.IsDefined(SecondaryThumbprint)) - { - writer.WritePropertyName("secondaryThumbprint"u8); - writer.WriteStringValue(SecondaryThumbprint); - } + writer.WritePropertyName("primaryThumbprint"u8); + writer.WriteStringValue(PrimaryThumbprint); + writer.WritePropertyName("secondaryThumbprint"u8); + writer.WriteStringValue(SecondaryThumbprint); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfoX509Thumbprint.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfoX509Thumbprint.cs index f28b11657691..16f1d0d0ff9a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfoX509Thumbprint.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinInfoX509Thumbprint.cs @@ -46,8 +46,16 @@ public partial class DeviceTwinInfoX509Thumbprint private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal DeviceTwinInfoX509Thumbprint() + /// Primary thumbprint for the x509 certificate. + /// Secondary thumbprint for the x509 certificate. + /// or is null. + internal DeviceTwinInfoX509Thumbprint(string primaryThumbprint, string secondaryThumbprint) { + Argument.AssertNotNull(primaryThumbprint, nameof(primaryThumbprint)); + Argument.AssertNotNull(secondaryThumbprint, nameof(secondaryThumbprint)); + + PrimaryThumbprint = primaryThumbprint; + SecondaryThumbprint = secondaryThumbprint; } /// Initializes a new instance of . @@ -61,6 +69,11 @@ internal DeviceTwinInfoX509Thumbprint(string primaryThumbprint, string secondary _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal DeviceTwinInfoX509Thumbprint() + { + } + /// Primary thumbprint for the x509 certificate. public string PrimaryThumbprint { get; } /// Secondary thumbprint for the x509 certificate. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinMetadata.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinMetadata.Serialization.cs index 52a1525e9cec..b1a1702b6dc3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinMetadata.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinMetadata.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DeviceTwinMetadata)} does not support writing '{format}' format."); } - if (Optional.IsDefined(LastUpdated)) - { - writer.WritePropertyName("lastUpdated"u8); - writer.WriteStringValue(LastUpdated); - } + writer.WritePropertyName("lastUpdated"u8); + writer.WriteStringValue(LastUpdated); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinMetadata.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinMetadata.cs index f9e2218438b6..80dcb2ffa49e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinMetadata.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinMetadata.cs @@ -46,8 +46,13 @@ public partial class DeviceTwinMetadata private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal DeviceTwinMetadata() + /// The ISO8601 timestamp of the last time the properties were updated. + /// is null. + internal DeviceTwinMetadata(string lastUpdated) { + Argument.AssertNotNull(lastUpdated, nameof(lastUpdated)); + + LastUpdated = lastUpdated; } /// Initializes a new instance of . @@ -59,6 +64,11 @@ internal DeviceTwinMetadata(string lastUpdated, IDictionary _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal DeviceTwinMetadata() + { + } + /// The ISO8601 timestamp of the last time the properties were updated. public string LastUpdated { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinProperties.Serialization.cs index 1ce535a74966..f6df0bffee58 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinProperties.Serialization.cs @@ -36,11 +36,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("metadata"u8); writer.WriteObjectValue(Metadata, options); - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("version"u8); - writer.WriteNumberValue(Version.Value); - } + writer.WritePropertyName("version"u8); + writer.WriteNumberValue(Version); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -79,7 +76,7 @@ internal static DeviceTwinProperties DeserializeDeviceTwinProperties(JsonElement return null; } DeviceTwinMetadata metadata = default; - float? version = default; + float version = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -91,10 +88,6 @@ internal static DeviceTwinProperties DeserializeDeviceTwinProperties(JsonElement } if (property.NameEquals("version"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } version = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinProperties.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinProperties.cs index c78e2695137a..d87a2761a51b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinProperties.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/DeviceTwinProperties.cs @@ -47,19 +47,21 @@ public partial class DeviceTwinProperties /// Initializes a new instance of . /// Metadata information for the properties JSON document. + /// Version of device twin properties. /// is null. - internal DeviceTwinProperties(DeviceTwinMetadata metadata) + internal DeviceTwinProperties(DeviceTwinMetadata metadata, float version) { Argument.AssertNotNull(metadata, nameof(metadata)); Metadata = metadata; + Version = version; } /// Initializes a new instance of . /// Metadata information for the properties JSON document. /// Version of device twin properties. /// Keeps track of any properties unknown to the library. - internal DeviceTwinProperties(DeviceTwinMetadata metadata, float? version, IDictionary serializedAdditionalRawData) + internal DeviceTwinProperties(DeviceTwinMetadata metadata, float version, IDictionary serializedAdditionalRawData) { Metadata = metadata; Version = version; @@ -74,6 +76,6 @@ internal DeviceTwinProperties() /// Metadata information for the properties JSON document. public DeviceTwinMetadata Metadata { get; } /// Version of device twin properties. - public float? Version { get; } + public float Version { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientDeletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientDeletedEventData.cs deleted file mode 100644 index a5660854989a..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientDeletedEventData.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Event data for Microsoft.EventGrid.MQTTClientDeleted event. - public partial class EventGridMQTTClientDeletedEventData : EventGridMQTTClientEventData - { - /// Initializes a new instance of . - internal EventGridMQTTClientDeletedEventData() - { - } - - /// Initializes a new instance of . - /// - /// 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. - /// - /// Name of the client resource in the Event Grid namespace. - /// Name of the Event Grid namespace where the MQTT client was created or updated. - /// Keeps track of any properties unknown to the library. - internal EventGridMQTTClientDeletedEventData(string clientAuthenticationName, string clientName, string namespaceName, IDictionary serializedAdditionalRawData) : base(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData) - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionConnectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionConnectedEventData.cs deleted file mode 100644 index 3a8dcde09042..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionConnectedEventData.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Event data for Microsoft.EventGrid.MQTTClientSessionConnected event. - public partial class EventGridMQTTClientSessionConnectedEventData : EventGridMQTTClientEventData - { - /// Initializes a new instance of . - internal EventGridMQTTClientSessionConnectedEventData() - { - } - - /// Initializes a new instance of . - /// - /// 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. - /// - /// Name of the client resource in the Event Grid namespace. - /// Name of the Event Grid namespace where the MQTT client was created or updated. - /// Keeps track of any properties unknown to the library. - /// - /// Unique identifier for the MQTT client's session. This case-sensitive string can - /// be up to 128 characters long, and supports UTF-8 characters. - /// - /// - /// A number that helps indicate order of MQTT client session connected or - /// disconnected events. Latest event will have a sequence number that is higher - /// than the previous event. - /// - internal EventGridMQTTClientSessionConnectedEventData(string clientAuthenticationName, string clientName, string namespaceName, IDictionary serializedAdditionalRawData, string clientSessionName, long? sequenceNumber) : base(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData) - { - ClientSessionName = clientSessionName; - SequenceNumber = sequenceNumber; - } - - /// - /// Unique identifier for the MQTT client's session. This case-sensitive string can - /// be up to 128 characters long, and supports UTF-8 characters. - /// - public string ClientSessionName { get; } - /// - /// A number that helps indicate order of MQTT client session connected or - /// disconnected events. Latest event will have a sequence number that is higher - /// than the previous event. - /// - public long? SequenceNumber { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientCreatedOrUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientCreatedOrUpdatedEventData.Serialization.cs similarity index 80% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientCreatedOrUpdatedEventData.Serialization.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientCreatedOrUpdatedEventData.Serialization.cs index 6ca3505ba0e6..e2d3e2fbd686 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientCreatedOrUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientCreatedOrUpdatedEventData.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents { - public partial class EventGridMQTTClientCreatedOrUpdatedEventData : IUtf8JsonSerializable, IJsonModel + public partial class EventGridMqttClientCreatedOrUpdatedEventData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWrit /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EventGridMQTTClientCreatedOrUpdatedEventData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientCreatedOrUpdatedEventData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -51,19 +51,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteEndObject(); } - EventGridMQTTClientCreatedOrUpdatedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + EventGridMqttClientCreatedOrUpdatedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EventGridMQTTClientCreatedOrUpdatedEventData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientCreatedOrUpdatedEventData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeEventGridMQTTClientCreatedOrUpdatedEventData(document.RootElement, options); + return DeserializeEventGridMqttClientCreatedOrUpdatedEventData(document.RootElement, options); } - internal static EventGridMQTTClientCreatedOrUpdatedEventData DeserializeEventGridMQTTClientCreatedOrUpdatedEventData(JsonElement element, ModelReaderWriterOptions options = null) + internal static EventGridMqttClientCreatedOrUpdatedEventData DeserializeEventGridMqttClientCreatedOrUpdatedEventData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -71,7 +71,7 @@ internal static EventGridMQTTClientCreatedOrUpdatedEventData DeserializeEventGri { return null; } - EventGridMQTTClientState state = default; + EventGridMqttClientState state = default; DateTimeOffset createdOn = default; DateTimeOffset updatedOn = default; IReadOnlyDictionary attributes = default; @@ -84,7 +84,7 @@ internal static EventGridMQTTClientCreatedOrUpdatedEventData DeserializeEventGri { if (property.NameEquals("state"u8)) { - state = new EventGridMQTTClientState(property.Value.GetString()); + state = new EventGridMqttClientState(property.Value.GetString()); continue; } if (property.NameEquals("createdOn"u8)) @@ -128,7 +128,7 @@ internal static EventGridMQTTClientCreatedOrUpdatedEventData DeserializeEventGri } } serializedAdditionalRawData = rawDataDictionary; - return new EventGridMQTTClientCreatedOrUpdatedEventData( + return new EventGridMqttClientCreatedOrUpdatedEventData( clientAuthenticationName, clientName, namespaceName, @@ -139,43 +139,43 @@ internal static EventGridMQTTClientCreatedOrUpdatedEventData DeserializeEventGri attributes); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(EventGridMQTTClientCreatedOrUpdatedEventData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientCreatedOrUpdatedEventData)} does not support writing '{options.Format}' format."); } } - EventGridMQTTClientCreatedOrUpdatedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + EventGridMqttClientCreatedOrUpdatedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeEventGridMQTTClientCreatedOrUpdatedEventData(document.RootElement, options); + return DeserializeEventGridMqttClientCreatedOrUpdatedEventData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(EventGridMQTTClientCreatedOrUpdatedEventData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientCreatedOrUpdatedEventData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new EventGridMQTTClientCreatedOrUpdatedEventData FromResponse(Response response) + internal static new EventGridMqttClientCreatedOrUpdatedEventData FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeEventGridMQTTClientCreatedOrUpdatedEventData(document.RootElement); + return DeserializeEventGridMqttClientCreatedOrUpdatedEventData(document.RootElement); } /// Convert into a . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientCreatedOrUpdatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientCreatedOrUpdatedEventData.cs similarity index 68% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientCreatedOrUpdatedEventData.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientCreatedOrUpdatedEventData.cs index dde0c575b475..bc436a774ece 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientCreatedOrUpdatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientCreatedOrUpdatedEventData.cs @@ -11,9 +11,16 @@ namespace Azure.Messaging.EventGrid.SystemEvents { /// Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event. - public partial class EventGridMQTTClientCreatedOrUpdatedEventData : EventGridMQTTClientEventData + public partial class EventGridMqttClientCreatedOrUpdatedEventData : EventGridMqttClientEventData { - /// Initializes a new instance of . + /// Initializes a new instance of . + /// + /// 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. + /// + /// Name of the client resource in the Event Grid namespace. + /// Name of the Event Grid namespace where the MQTT client was created or updated. /// Configured state of the client. The value could be Enabled or Disabled. /// Time the client resource is created based on the provider's UTC time. /// @@ -22,9 +29,12 @@ public partial class EventGridMQTTClientCreatedOrUpdatedEventData : EventGridMQT /// the 'createdOn' property. /// /// The key-value attributes that are assigned to the client resource. - /// is null. - internal EventGridMQTTClientCreatedOrUpdatedEventData(EventGridMQTTClientState state, DateTimeOffset createdOn, DateTimeOffset updatedOn, IReadOnlyDictionary attributes) + /// , , or is null. + internal EventGridMqttClientCreatedOrUpdatedEventData(string clientAuthenticationName, string clientName, string namespaceName, EventGridMqttClientState state, DateTimeOffset createdOn, DateTimeOffset updatedOn, IReadOnlyDictionary attributes) : base(clientAuthenticationName, clientName, namespaceName) { + Argument.AssertNotNull(clientAuthenticationName, nameof(clientAuthenticationName)); + Argument.AssertNotNull(clientName, nameof(clientName)); + Argument.AssertNotNull(namespaceName, nameof(namespaceName)); Argument.AssertNotNull(attributes, nameof(attributes)); State = state; @@ -33,7 +43,7 @@ internal EventGridMQTTClientCreatedOrUpdatedEventData(EventGridMQTTClientState s Attributes = attributes; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// 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 @@ -50,7 +60,7 @@ internal EventGridMQTTClientCreatedOrUpdatedEventData(EventGridMQTTClientState s /// the 'createdOn' property. /// /// The key-value attributes that are assigned to the client resource. - internal EventGridMQTTClientCreatedOrUpdatedEventData(string clientAuthenticationName, string clientName, string namespaceName, IDictionary serializedAdditionalRawData, EventGridMQTTClientState state, DateTimeOffset createdOn, DateTimeOffset updatedOn, IReadOnlyDictionary attributes) : base(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData) + internal EventGridMqttClientCreatedOrUpdatedEventData(string clientAuthenticationName, string clientName, string namespaceName, IDictionary serializedAdditionalRawData, EventGridMqttClientState state, DateTimeOffset createdOn, DateTimeOffset updatedOn, IReadOnlyDictionary attributes) : base(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData) { State = state; CreatedOn = createdOn; @@ -58,13 +68,13 @@ internal EventGridMQTTClientCreatedOrUpdatedEventData(string clientAuthenticatio Attributes = attributes; } - /// Initializes a new instance of for deserialization. - internal EventGridMQTTClientCreatedOrUpdatedEventData() + /// Initializes a new instance of for deserialization. + internal EventGridMqttClientCreatedOrUpdatedEventData() { } /// Configured state of the client. The value could be Enabled or Disabled. - public EventGridMQTTClientState State { get; } + public EventGridMqttClientState State { get; } /// Time the client resource is created based on the provider's UTC time. public DateTimeOffset CreatedOn { get; } /// diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientDeletedEventData.Serialization.cs similarity index 75% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientDeletedEventData.Serialization.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientDeletedEventData.Serialization.cs index 7e81e11c1acd..b07692ad3f7d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientDeletedEventData.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents { - public partial class EventGridMQTTClientDeletedEventData : IUtf8JsonSerializable, IJsonModel + public partial class EventGridMqttClientDeletedEventData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,28 +28,28 @@ void IJsonModel.Write(Utf8JsonWriter writer /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EventGridMQTTClientDeletedEventData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientDeletedEventData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); } - EventGridMQTTClientDeletedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + EventGridMqttClientDeletedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EventGridMQTTClientDeletedEventData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientDeletedEventData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeEventGridMQTTClientDeletedEventData(document.RootElement, options); + return DeserializeEventGridMqttClientDeletedEventData(document.RootElement, options); } - internal static EventGridMQTTClientDeletedEventData DeserializeEventGridMQTTClientDeletedEventData(JsonElement element, ModelReaderWriterOptions options = null) + internal static EventGridMqttClientDeletedEventData DeserializeEventGridMqttClientDeletedEventData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -85,46 +85,46 @@ internal static EventGridMQTTClientDeletedEventData DeserializeEventGridMQTTClie } } serializedAdditionalRawData = rawDataDictionary; - return new EventGridMQTTClientDeletedEventData(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData); + return new EventGridMqttClientDeletedEventData(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(EventGridMQTTClientDeletedEventData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientDeletedEventData)} does not support writing '{options.Format}' format."); } } - EventGridMQTTClientDeletedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + EventGridMqttClientDeletedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeEventGridMQTTClientDeletedEventData(document.RootElement, options); + return DeserializeEventGridMqttClientDeletedEventData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(EventGridMQTTClientDeletedEventData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientDeletedEventData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new EventGridMQTTClientDeletedEventData FromResponse(Response response) + internal static new EventGridMqttClientDeletedEventData FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeEventGridMQTTClientDeletedEventData(document.RootElement); + return DeserializeEventGridMqttClientDeletedEventData(document.RootElement); } /// Convert into a . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientDeletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientDeletedEventData.cs new file mode 100644 index 000000000000..787906968fb7 --- /dev/null +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientDeletedEventData.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Messaging.EventGrid.SystemEvents +{ + /// Event data for Microsoft.EventGrid.MQTTClientDeleted event. + public partial class EventGridMqttClientDeletedEventData : EventGridMqttClientEventData + { + /// Initializes a new instance of . + /// + /// 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. + /// + /// Name of the client resource in the Event Grid namespace. + /// Name of the Event Grid namespace where the MQTT client was created or updated. + /// , or is null. + internal EventGridMqttClientDeletedEventData(string clientAuthenticationName, string clientName, string namespaceName) : base(clientAuthenticationName, clientName, namespaceName) + { + Argument.AssertNotNull(clientAuthenticationName, nameof(clientAuthenticationName)); + Argument.AssertNotNull(clientName, nameof(clientName)); + Argument.AssertNotNull(namespaceName, nameof(namespaceName)); + } + + /// Initializes a new instance of . + /// + /// 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. + /// + /// Name of the client resource in the Event Grid namespace. + /// Name of the Event Grid namespace where the MQTT client was created or updated. + /// Keeps track of any properties unknown to the library. + internal EventGridMqttClientDeletedEventData(string clientAuthenticationName, string clientName, string namespaceName, IDictionary serializedAdditionalRawData) : base(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData) + { + } + + /// Initializes a new instance of for deserialization. + internal EventGridMqttClientDeletedEventData() + { + } + } +} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientDisconnectionReason.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientDisconnectionReason.cs similarity index 64% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientDisconnectionReason.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientDisconnectionReason.cs index a8e88d5b0c30..9f960c3de714 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientDisconnectionReason.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientDisconnectionReason.cs @@ -11,13 +11,13 @@ namespace Azure.Messaging.EventGrid.SystemEvents { /// EventGrid MQTT Client Disconnection Reason. - public readonly partial struct EventGridMQTTClientDisconnectionReason : IEquatable + public readonly partial struct EventGridMqttClientDisconnectionReason : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public EventGridMQTTClientDisconnectionReason(string value) + public EventGridMqttClientDisconnectionReason(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -35,39 +35,39 @@ public EventGridMQTTClientDisconnectionReason(string value) private const string SessionTakenOverValue = "SessionTakenOver"; /// The client got disconnected for any authentication reasons (for example, certificate expired, client got disabled, or client configuration changed). - public static EventGridMQTTClientDisconnectionReason ClientAuthenticationError { get; } = new EventGridMQTTClientDisconnectionReason(ClientAuthenticationErrorValue); + public static EventGridMqttClientDisconnectionReason ClientAuthenticationError { get; } = new EventGridMqttClientDisconnectionReason(ClientAuthenticationErrorValue); /// The client got disconnected for any authorization reasons (for example, because of a change in the configuration of topic spaces, permission bindings, or client groups). - public static EventGridMQTTClientDisconnectionReason ClientAuthorizationError { get; } = new EventGridMQTTClientDisconnectionReason(ClientAuthorizationErrorValue); + public static EventGridMqttClientDisconnectionReason ClientAuthorizationError { get; } = new EventGridMqttClientDisconnectionReason(ClientAuthorizationErrorValue); /// The client sent a bad request or used one of the unsupported features that resulted in a connection termination by the service. - public static EventGridMQTTClientDisconnectionReason ClientError { get; } = new EventGridMQTTClientDisconnectionReason(ClientErrorValue); + public static EventGridMqttClientDisconnectionReason ClientError { get; } = new EventGridMqttClientDisconnectionReason(ClientErrorValue); /// The client initiated a graceful disconnect through a DISCONNECT packet for MQTT or a close frame for MQTT over WebSocket. - public static EventGridMQTTClientDisconnectionReason ClientInitiatedDisconnect { get; } = new EventGridMQTTClientDisconnectionReason(ClientInitiatedDisconnectValue); + public static EventGridMqttClientDisconnectionReason ClientInitiatedDisconnect { get; } = new EventGridMqttClientDisconnectionReason(ClientInitiatedDisconnectValue); /// The client-server connection is lost. (EXCHANGE ONLINE PROTECTION). - public static EventGridMQTTClientDisconnectionReason ConnectionLost { get; } = new EventGridMQTTClientDisconnectionReason(ConnectionLostValue); + public static EventGridMqttClientDisconnectionReason ConnectionLost { get; } = new EventGridMqttClientDisconnectionReason(ConnectionLostValue); /// The client's IP address is blocked by IP filter or Private links configuration. - public static EventGridMQTTClientDisconnectionReason IpForbidden { get; } = new EventGridMQTTClientDisconnectionReason(IpForbiddenValue); + public static EventGridMqttClientDisconnectionReason IpForbidden { get; } = new EventGridMqttClientDisconnectionReason(IpForbiddenValue); /// The client exceeded one or more of the throttling limits that resulted in a connection termination by the service. - public static EventGridMQTTClientDisconnectionReason QuotaExceeded { get; } = new EventGridMQTTClientDisconnectionReason(QuotaExceededValue); + public static EventGridMqttClientDisconnectionReason QuotaExceeded { get; } = new EventGridMqttClientDisconnectionReason(QuotaExceededValue); /// The connection got terminated due to an unexpected server error. - public static EventGridMQTTClientDisconnectionReason ServerError { get; } = new EventGridMQTTClientDisconnectionReason(ServerErrorValue); + public static EventGridMqttClientDisconnectionReason ServerError { get; } = new EventGridMqttClientDisconnectionReason(ServerErrorValue); /// The server initiates a graceful disconnect for any operational reason. - public static EventGridMQTTClientDisconnectionReason ServerInitiatedDisconnect { get; } = new EventGridMQTTClientDisconnectionReason(ServerInitiatedDisconnectValue); + public static EventGridMqttClientDisconnectionReason ServerInitiatedDisconnect { get; } = new EventGridMqttClientDisconnectionReason(ServerInitiatedDisconnectValue); /// The client's queue for unacknowledged QoS1 messages reached its limit, which resulted in a connection termination by the server. - public static EventGridMQTTClientDisconnectionReason SessionOverflow { get; } = new EventGridMQTTClientDisconnectionReason(SessionOverflowValue); + public static EventGridMqttClientDisconnectionReason SessionOverflow { get; } = new EventGridMqttClientDisconnectionReason(SessionOverflowValue); /// The client reconnected with the same authentication name, which resulted in the termination of the previous connection. - public static EventGridMQTTClientDisconnectionReason SessionTakenOver { get; } = new EventGridMQTTClientDisconnectionReason(SessionTakenOverValue); - /// Determines if two values are the same. - public static bool operator ==(EventGridMQTTClientDisconnectionReason left, EventGridMQTTClientDisconnectionReason right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EventGridMQTTClientDisconnectionReason left, EventGridMQTTClientDisconnectionReason right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator EventGridMQTTClientDisconnectionReason(string value) => new EventGridMQTTClientDisconnectionReason(value); + public static EventGridMqttClientDisconnectionReason SessionTakenOver { get; } = new EventGridMqttClientDisconnectionReason(SessionTakenOverValue); + /// Determines if two values are the same. + public static bool operator ==(EventGridMqttClientDisconnectionReason left, EventGridMqttClientDisconnectionReason right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EventGridMqttClientDisconnectionReason left, EventGridMqttClientDisconnectionReason right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator EventGridMqttClientDisconnectionReason(string value) => new EventGridMqttClientDisconnectionReason(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EventGridMQTTClientDisconnectionReason other && Equals(other); + public override bool Equals(object obj) => obj is EventGridMqttClientDisconnectionReason other && Equals(other); /// - public bool Equals(EventGridMQTTClientDisconnectionReason other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(EventGridMqttClientDisconnectionReason other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientEventData.Serialization.cs similarity index 71% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientEventData.Serialization.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientEventData.Serialization.cs index eac1ae874e9f..f7e053d48371 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientEventData.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents { - public partial class EventGridMQTTClientEventData : IUtf8JsonSerializable, IJsonModel + public partial class EventGridMqttClientEventData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,27 +28,18 @@ void IJsonModel.Write(Utf8JsonWriter writer, Model /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EventGridMQTTClientEventData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(ClientAuthenticationName)) - { - writer.WritePropertyName("clientAuthenticationName"u8); - writer.WriteStringValue(ClientAuthenticationName); - } - if (Optional.IsDefined(ClientName)) - { - writer.WritePropertyName("clientName"u8); - writer.WriteStringValue(ClientName); - } - if (Optional.IsDefined(NamespaceName)) - { - writer.WritePropertyName("namespaceName"u8); - writer.WriteStringValue(NamespaceName); - } + writer.WritePropertyName("clientAuthenticationName"u8); + writer.WriteStringValue(ClientAuthenticationName); + writer.WritePropertyName("clientName"u8); + writer.WriteStringValue(ClientName); + writer.WritePropertyName("namespaceName"u8); + writer.WriteStringValue(NamespaceName); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -66,19 +57,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - EventGridMQTTClientEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + EventGridMqttClientEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EventGridMQTTClientEventData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientEventData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeEventGridMQTTClientEventData(document.RootElement, options); + return DeserializeEventGridMqttClientEventData(document.RootElement, options); } - internal static EventGridMQTTClientEventData DeserializeEventGridMQTTClientEventData(JsonElement element, ModelReaderWriterOptions options = null) + internal static EventGridMqttClientEventData DeserializeEventGridMqttClientEventData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -114,46 +105,46 @@ internal static EventGridMQTTClientEventData DeserializeEventGridMQTTClientEvent } } serializedAdditionalRawData = rawDataDictionary; - return new EventGridMQTTClientEventData(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData); + return new EventGridMqttClientEventData(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(EventGridMQTTClientEventData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientEventData)} does not support writing '{options.Format}' format."); } } - EventGridMQTTClientEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + EventGridMqttClientEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeEventGridMQTTClientEventData(document.RootElement, options); + return DeserializeEventGridMqttClientEventData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(EventGridMQTTClientEventData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientEventData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static EventGridMQTTClientEventData FromResponse(Response response) + internal static EventGridMqttClientEventData FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeEventGridMQTTClientEventData(document.RootElement); + return DeserializeEventGridMqttClientEventData(document.RootElement); } /// Convert into a . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientEventData.cs similarity index 68% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientEventData.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientEventData.cs index 8c69eb51fec2..d5c8ab4a5ab6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientEventData.cs @@ -11,7 +11,7 @@ namespace Azure.Messaging.EventGrid.SystemEvents { /// Schema of the Data property of an EventGridEvent for MQTT Client state changes. - public partial class EventGridMQTTClientEventData + public partial class EventGridMqttClientEventData { /// /// Keeps track of any properties unknown to the library. @@ -45,12 +45,27 @@ public partial class EventGridMQTTClientEventData /// private protected IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - internal EventGridMQTTClientEventData() + /// Initializes a new instance of . + /// + /// 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. + /// + /// Name of the client resource in the Event Grid namespace. + /// Name of the Event Grid namespace where the MQTT client was created or updated. + /// , or is null. + internal EventGridMqttClientEventData(string clientAuthenticationName, string clientName, string namespaceName) { + Argument.AssertNotNull(clientAuthenticationName, nameof(clientAuthenticationName)); + Argument.AssertNotNull(clientName, nameof(clientName)); + Argument.AssertNotNull(namespaceName, nameof(namespaceName)); + + ClientAuthenticationName = clientAuthenticationName; + ClientName = clientName; + NamespaceName = namespaceName; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// 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 @@ -59,7 +74,7 @@ internal EventGridMQTTClientEventData() /// Name of the client resource in the Event Grid namespace. /// Name of the Event Grid namespace where the MQTT client was created or updated. /// Keeps track of any properties unknown to the library. - internal EventGridMQTTClientEventData(string clientAuthenticationName, string clientName, string namespaceName, IDictionary serializedAdditionalRawData) + internal EventGridMqttClientEventData(string clientAuthenticationName, string clientName, string namespaceName, IDictionary serializedAdditionalRawData) { ClientAuthenticationName = clientAuthenticationName; ClientName = clientName; @@ -67,6 +82,11 @@ internal EventGridMQTTClientEventData(string clientAuthenticationName, string cl _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal EventGridMqttClientEventData() + { + } + /// /// 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 diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionConnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionConnectedEventData.Serialization.cs similarity index 72% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionConnectedEventData.Serialization.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionConnectedEventData.Serialization.cs index 79241a95385d..fa247e1af5ca 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionConnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionConnectedEventData.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents { - public partial class EventGridMQTTClientSessionConnectedEventData : IUtf8JsonSerializable, IJsonModel + public partial class EventGridMqttClientSessionConnectedEventData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,38 +28,32 @@ void IJsonModel.Write(Utf8JsonWrit /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EventGridMQTTClientSessionConnectedEventData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientSessionConnectedEventData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(ClientSessionName)) - { - writer.WritePropertyName("clientSessionName"u8); - writer.WriteStringValue(ClientSessionName); - } - if (Optional.IsDefined(SequenceNumber)) - { - writer.WritePropertyName("sequenceNumber"u8); - writer.WriteNumberValue(SequenceNumber.Value); - } + writer.WritePropertyName("clientSessionName"u8); + writer.WriteStringValue(ClientSessionName); + writer.WritePropertyName("sequenceNumber"u8); + writer.WriteNumberValue(SequenceNumber); } - EventGridMQTTClientSessionConnectedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + EventGridMqttClientSessionConnectedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EventGridMQTTClientSessionConnectedEventData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientSessionConnectedEventData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeEventGridMQTTClientSessionConnectedEventData(document.RootElement, options); + return DeserializeEventGridMqttClientSessionConnectedEventData(document.RootElement, options); } - internal static EventGridMQTTClientSessionConnectedEventData DeserializeEventGridMQTTClientSessionConnectedEventData(JsonElement element, ModelReaderWriterOptions options = null) + internal static EventGridMqttClientSessionConnectedEventData DeserializeEventGridMqttClientSessionConnectedEventData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -68,7 +62,7 @@ internal static EventGridMQTTClientSessionConnectedEventData DeserializeEventGri return null; } string clientSessionName = default; - long? sequenceNumber = default; + long sequenceNumber = default; string clientAuthenticationName = default; string clientName = default; string namespaceName = default; @@ -83,10 +77,6 @@ internal static EventGridMQTTClientSessionConnectedEventData DeserializeEventGri } if (property.NameEquals("sequenceNumber"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } sequenceNumber = property.Value.GetInt64(); continue; } @@ -111,7 +101,7 @@ internal static EventGridMQTTClientSessionConnectedEventData DeserializeEventGri } } serializedAdditionalRawData = rawDataDictionary; - return new EventGridMQTTClientSessionConnectedEventData( + return new EventGridMqttClientSessionConnectedEventData( clientAuthenticationName, clientName, namespaceName, @@ -120,43 +110,43 @@ internal static EventGridMQTTClientSessionConnectedEventData DeserializeEventGri sequenceNumber); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(EventGridMQTTClientSessionConnectedEventData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientSessionConnectedEventData)} does not support writing '{options.Format}' format."); } } - EventGridMQTTClientSessionConnectedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + EventGridMqttClientSessionConnectedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeEventGridMQTTClientSessionConnectedEventData(document.RootElement, options); + return DeserializeEventGridMqttClientSessionConnectedEventData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(EventGridMQTTClientSessionConnectedEventData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientSessionConnectedEventData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new EventGridMQTTClientSessionConnectedEventData FromResponse(Response response) + internal static new EventGridMqttClientSessionConnectedEventData FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeEventGridMQTTClientSessionConnectedEventData(document.RootElement); + return DeserializeEventGridMqttClientSessionConnectedEventData(document.RootElement); } /// Convert into a . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionConnectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionConnectedEventData.cs new file mode 100644 index 000000000000..c2b6937e70f2 --- /dev/null +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionConnectedEventData.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Messaging.EventGrid.SystemEvents +{ + /// Event data for Microsoft.EventGrid.MQTTClientSessionConnected event. + public partial class EventGridMqttClientSessionConnectedEventData : EventGridMqttClientEventData + { + /// Initializes a new instance of . + /// + /// 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. + /// + /// Name of the client resource in the Event Grid namespace. + /// Name of the Event Grid namespace where the MQTT client was created or updated. + /// + /// Unique identifier for the MQTT client's session. This case-sensitive string can + /// be up to 128 characters long, and supports UTF-8 characters. + /// + /// + /// A number that helps indicate order of MQTT client session connected or + /// disconnected events. Latest event will have a sequence number that is higher + /// than the previous event. + /// + /// , , or is null. + internal EventGridMqttClientSessionConnectedEventData(string clientAuthenticationName, string clientName, string namespaceName, string clientSessionName, long sequenceNumber) : base(clientAuthenticationName, clientName, namespaceName) + { + Argument.AssertNotNull(clientAuthenticationName, nameof(clientAuthenticationName)); + Argument.AssertNotNull(clientName, nameof(clientName)); + Argument.AssertNotNull(namespaceName, nameof(namespaceName)); + Argument.AssertNotNull(clientSessionName, nameof(clientSessionName)); + + ClientSessionName = clientSessionName; + SequenceNumber = sequenceNumber; + } + + /// Initializes a new instance of . + /// + /// 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. + /// + /// Name of the client resource in the Event Grid namespace. + /// Name of the Event Grid namespace where the MQTT client was created or updated. + /// Keeps track of any properties unknown to the library. + /// + /// Unique identifier for the MQTT client's session. This case-sensitive string can + /// be up to 128 characters long, and supports UTF-8 characters. + /// + /// + /// A number that helps indicate order of MQTT client session connected or + /// disconnected events. Latest event will have a sequence number that is higher + /// than the previous event. + /// + internal EventGridMqttClientSessionConnectedEventData(string clientAuthenticationName, string clientName, string namespaceName, IDictionary serializedAdditionalRawData, string clientSessionName, long sequenceNumber) : base(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData) + { + ClientSessionName = clientSessionName; + SequenceNumber = sequenceNumber; + } + + /// Initializes a new instance of for deserialization. + internal EventGridMqttClientSessionConnectedEventData() + { + } + + /// + /// Unique identifier for the MQTT client's session. This case-sensitive string can + /// be up to 128 characters long, and supports UTF-8 characters. + /// + public string ClientSessionName { get; } + /// + /// A number that helps indicate order of MQTT client session connected or + /// disconnected events. Latest event will have a sequence number that is higher + /// than the previous event. + /// + public long SequenceNumber { get; } + } +} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionDisconnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionDisconnectedEventData.Serialization.cs similarity index 72% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionDisconnectedEventData.Serialization.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionDisconnectedEventData.Serialization.cs index b0c2ea8c13df..736f0bec6b32 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionDisconnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionDisconnectedEventData.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents { - public partial class EventGridMQTTClientSessionDisconnectedEventData : IUtf8JsonSerializable, IJsonModel + public partial class EventGridMqttClientSessionDisconnectedEventData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,40 +28,34 @@ void IJsonModel.Write(Utf8JsonW /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EventGridMQTTClientSessionDisconnectedEventData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientSessionDisconnectedEventData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(ClientSessionName)) - { - writer.WritePropertyName("clientSessionName"u8); - writer.WriteStringValue(ClientSessionName); - } - if (Optional.IsDefined(SequenceNumber)) - { - writer.WritePropertyName("sequenceNumber"u8); - writer.WriteNumberValue(SequenceNumber.Value); - } + writer.WritePropertyName("clientSessionName"u8); + writer.WriteStringValue(ClientSessionName); + writer.WritePropertyName("sequenceNumber"u8); + writer.WriteNumberValue(SequenceNumber); writer.WritePropertyName("disconnectionReason"u8); writer.WriteStringValue(DisconnectionReason.ToString()); } - EventGridMQTTClientSessionDisconnectedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + EventGridMqttClientSessionDisconnectedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(EventGridMQTTClientSessionDisconnectedEventData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientSessionDisconnectedEventData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeEventGridMQTTClientSessionDisconnectedEventData(document.RootElement, options); + return DeserializeEventGridMqttClientSessionDisconnectedEventData(document.RootElement, options); } - internal static EventGridMQTTClientSessionDisconnectedEventData DeserializeEventGridMQTTClientSessionDisconnectedEventData(JsonElement element, ModelReaderWriterOptions options = null) + internal static EventGridMqttClientSessionDisconnectedEventData DeserializeEventGridMqttClientSessionDisconnectedEventData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -70,8 +64,8 @@ internal static EventGridMQTTClientSessionDisconnectedEventData DeserializeEvent return null; } string clientSessionName = default; - long? sequenceNumber = default; - EventGridMQTTClientDisconnectionReason disconnectionReason = default; + long sequenceNumber = default; + EventGridMqttClientDisconnectionReason disconnectionReason = default; string clientAuthenticationName = default; string clientName = default; string namespaceName = default; @@ -86,16 +80,12 @@ internal static EventGridMQTTClientSessionDisconnectedEventData DeserializeEvent } if (property.NameEquals("sequenceNumber"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } sequenceNumber = property.Value.GetInt64(); continue; } if (property.NameEquals("disconnectionReason"u8)) { - disconnectionReason = new EventGridMQTTClientDisconnectionReason(property.Value.GetString()); + disconnectionReason = new EventGridMqttClientDisconnectionReason(property.Value.GetString()); continue; } if (property.NameEquals("clientAuthenticationName"u8)) @@ -119,7 +109,7 @@ internal static EventGridMQTTClientSessionDisconnectedEventData DeserializeEvent } } serializedAdditionalRawData = rawDataDictionary; - return new EventGridMQTTClientSessionDisconnectedEventData( + return new EventGridMqttClientSessionDisconnectedEventData( clientAuthenticationName, clientName, namespaceName, @@ -129,43 +119,43 @@ internal static EventGridMQTTClientSessionDisconnectedEventData DeserializeEvent disconnectionReason); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(EventGridMQTTClientSessionDisconnectedEventData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientSessionDisconnectedEventData)} does not support writing '{options.Format}' format."); } } - EventGridMQTTClientSessionDisconnectedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + EventGridMqttClientSessionDisconnectedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeEventGridMQTTClientSessionDisconnectedEventData(document.RootElement, options); + return DeserializeEventGridMqttClientSessionDisconnectedEventData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(EventGridMQTTClientSessionDisconnectedEventData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(EventGridMqttClientSessionDisconnectedEventData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new EventGridMQTTClientSessionDisconnectedEventData FromResponse(Response response) + internal static new EventGridMqttClientSessionDisconnectedEventData FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeEventGridMQTTClientSessionDisconnectedEventData(document.RootElement); + return DeserializeEventGridMqttClientSessionDisconnectedEventData(document.RootElement); } /// Convert into a . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionDisconnectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionDisconnectedEventData.cs similarity index 54% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionDisconnectedEventData.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionDisconnectedEventData.cs index 2f9fcb7f6158..e991d64ec23b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientSessionDisconnectedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientSessionDisconnectedEventData.cs @@ -11,19 +11,43 @@ namespace Azure.Messaging.EventGrid.SystemEvents { /// Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event. - public partial class EventGridMQTTClientSessionDisconnectedEventData : EventGridMQTTClientEventData + public partial class EventGridMqttClientSessionDisconnectedEventData : EventGridMqttClientEventData { - /// Initializes a new instance of . + /// Initializes a new instance of . + /// + /// 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. + /// + /// Name of the client resource in the Event Grid namespace. + /// Name of the Event Grid namespace where the MQTT client was created or updated. + /// + /// Unique identifier for the MQTT client's session. This case-sensitive string can + /// be up to 128 characters long, and supports UTF-8 characters. + /// + /// + /// A number that helps indicate order of MQTT client session connected or + /// disconnected events. Latest event will have a sequence number that is higher + /// than the previous event. + /// /// /// Reason for the disconnection of the MQTT client's session. The value could be /// one of the values in the disconnection reasons table. /// - internal EventGridMQTTClientSessionDisconnectedEventData(EventGridMQTTClientDisconnectionReason disconnectionReason) + /// , , or is null. + internal EventGridMqttClientSessionDisconnectedEventData(string clientAuthenticationName, string clientName, string namespaceName, string clientSessionName, long sequenceNumber, EventGridMqttClientDisconnectionReason disconnectionReason) : base(clientAuthenticationName, clientName, namespaceName) { + Argument.AssertNotNull(clientAuthenticationName, nameof(clientAuthenticationName)); + Argument.AssertNotNull(clientName, nameof(clientName)); + Argument.AssertNotNull(namespaceName, nameof(namespaceName)); + Argument.AssertNotNull(clientSessionName, nameof(clientSessionName)); + + ClientSessionName = clientSessionName; + SequenceNumber = sequenceNumber; DisconnectionReason = disconnectionReason; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// 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 @@ -45,15 +69,15 @@ internal EventGridMQTTClientSessionDisconnectedEventData(EventGridMQTTClientDisc /// Reason for the disconnection of the MQTT client's session. The value could be /// one of the values in the disconnection reasons table. /// - internal EventGridMQTTClientSessionDisconnectedEventData(string clientAuthenticationName, string clientName, string namespaceName, IDictionary serializedAdditionalRawData, string clientSessionName, long? sequenceNumber, EventGridMQTTClientDisconnectionReason disconnectionReason) : base(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData) + internal EventGridMqttClientSessionDisconnectedEventData(string clientAuthenticationName, string clientName, string namespaceName, IDictionary serializedAdditionalRawData, string clientSessionName, long sequenceNumber, EventGridMqttClientDisconnectionReason disconnectionReason) : base(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData) { ClientSessionName = clientSessionName; SequenceNumber = sequenceNumber; DisconnectionReason = disconnectionReason; } - /// Initializes a new instance of for deserialization. - internal EventGridMQTTClientSessionDisconnectedEventData() + /// Initializes a new instance of for deserialization. + internal EventGridMqttClientSessionDisconnectedEventData() { } @@ -67,11 +91,11 @@ internal EventGridMQTTClientSessionDisconnectedEventData() /// disconnected events. Latest event will have a sequence number that is higher /// than the previous event. /// - public long? SequenceNumber { get; } + public long SequenceNumber { get; } /// /// Reason for the disconnection of the MQTT client's session. The value could be /// one of the values in the disconnection reasons table. /// - public EventGridMQTTClientDisconnectionReason DisconnectionReason { get; } + public EventGridMqttClientDisconnectionReason DisconnectionReason { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientState.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientState.cs similarity index 58% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientState.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientState.cs index 7d2907bb7bd0..d12b28d8e9aa 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMQTTClientState.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridMqttClientState.cs @@ -11,13 +11,13 @@ namespace Azure.Messaging.EventGrid.SystemEvents { /// EventGrid MQTT Client State. - public readonly partial struct EventGridMQTTClientState : IEquatable + public readonly partial struct EventGridMqttClientState : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public EventGridMQTTClientState(string value) + public EventGridMqttClientState(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -26,21 +26,21 @@ public EventGridMQTTClientState(string value) private const string DisabledValue = "Disabled"; /// Enabled. - public static EventGridMQTTClientState Enabled { get; } = new EventGridMQTTClientState(EnabledValue); + public static EventGridMqttClientState Enabled { get; } = new EventGridMqttClientState(EnabledValue); /// Disabled. - public static EventGridMQTTClientState Disabled { get; } = new EventGridMQTTClientState(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(EventGridMQTTClientState left, EventGridMQTTClientState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EventGridMQTTClientState left, EventGridMQTTClientState right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator EventGridMQTTClientState(string value) => new EventGridMQTTClientState(value); + public static EventGridMqttClientState Disabled { get; } = new EventGridMqttClientState(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(EventGridMqttClientState left, EventGridMqttClientState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EventGridMqttClientState left, EventGridMqttClientState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator EventGridMqttClientState(string value) => new EventGridMqttClientState(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EventGridMQTTClientState other && Equals(other); + public override bool Equals(object obj) => obj is EventGridMqttClientState other && Equals(other); /// - public bool Equals(EventGridMQTTClientState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(EventGridMqttClientState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridSystemEventsModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridSystemEventsModelFactory.cs index 3b3868356788..aba488d05ea5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridSystemEventsModelFactory.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/EventGridSystemEventsModelFactory.cs @@ -503,9 +503,10 @@ public static AvsScriptExecutionFailedEventData AvsScriptExecutionFailedEventDat /// Display name of caller. /// Custom Context of Incoming Call. /// Signed incoming call context. + /// The communication identifier of the user on behalf of whom the call is made. /// CorrelationId (CallId). /// A new instance for mocking. - public static AcsIncomingCallEventData AcsIncomingCallEventData(CommunicationIdentifierModel toCommunicationIdentifier = null, CommunicationIdentifierModel fromCommunicationIdentifier = null, string serverCallId = null, string callerDisplayName = null, AcsIncomingCallCustomContext customContext = null, string incomingCallContext = null, string correlationId = null) + public static AcsIncomingCallEventData AcsIncomingCallEventData(CommunicationIdentifierModel toCommunicationIdentifier = null, CommunicationIdentifierModel fromCommunicationIdentifier = null, string serverCallId = null, string callerDisplayName = null, AcsIncomingCallCustomContext customContext = null, string incomingCallContext = null, CommunicationIdentifierModel onBehalfOfCallee = null, string correlationId = null) { return new AcsIncomingCallEventData( toCommunicationIdentifier, @@ -514,6 +515,7 @@ public static AcsIncomingCallEventData AcsIncomingCallEventData(CommunicationIde callerDisplayName, customContext, incomingCallContext, + onBehalfOfCallee, correlationId, serializedAdditionalRawData: null); } @@ -1181,8 +1183,9 @@ public static AcsSmsDeliveryAttemptProperties AcsSmsDeliveryAttemptProperties(Da /// The identity of SMS message receiver. /// The SMS content. /// The time at which the SMS was received. + /// Number of segments in the message. /// A new instance for mocking. - public static AcsSmsReceivedEventData AcsSmsReceivedEventData(string messageId = null, string @from = null, string to = null, string message = null, DateTimeOffset receivedTimestamp = default) + public static AcsSmsReceivedEventData AcsSmsReceivedEventData(string messageId = null, string @from = null, string to = null, string message = null, DateTimeOffset receivedTimestamp = default, int segmentCount = default) { return new AcsSmsReceivedEventData( messageId, @@ -1190,7 +1193,8 @@ public static AcsSmsReceivedEventData AcsSmsReceivedEventData(string messageId = to, serializedAdditionalRawData: null, message, - receivedTimestamp); + receivedTimestamp, + segmentCount); } /// Initializes a new instance of . @@ -1248,16 +1252,18 @@ public static AcsRecordingChunkInfoProperties AcsRecordingChunkInfoProperties(st /// Initializes a new instance of . /// The Sender Email Address. /// The recipient Email Address. - /// The Id of the email been sent. + /// The Internet Message Id of the email that has been sent. + /// The Id of the email that has been sent. /// The status of the email. Any value other than Delivered is considered failed. /// Detailed information about the status if any. /// The time at which the email delivery report received timestamp. /// A new instance for mocking. - public static AcsEmailDeliveryReportReceivedEventData AcsEmailDeliveryReportReceivedEventData(string sender = null, string recipient = null, string messageId = null, AcsEmailDeliveryReportStatus status = default, AcsEmailDeliveryReportStatusDetails deliveryStatusDetails = null, DateTimeOffset deliveryAttemptTimestamp = default) + public static AcsEmailDeliveryReportReceivedEventData AcsEmailDeliveryReportReceivedEventData(string sender = null, string recipient = null, string internetMessageId = null, string messageId = null, AcsEmailDeliveryReportStatus status = default, AcsEmailDeliveryReportStatusDetails deliveryStatusDetails = null, DateTimeOffset deliveryAttemptTimestamp = default) { return new AcsEmailDeliveryReportReceivedEventData( sender, recipient, + internetMessageId, messageId, status, deliveryStatusDetails, @@ -1267,10 +1273,11 @@ public static AcsEmailDeliveryReportReceivedEventData AcsEmailDeliveryReportRece /// Initializes a new instance of . /// Detailed status message. + /// Recipient mail server host name. /// A new instance for mocking. - public static AcsEmailDeliveryReportStatusDetails AcsEmailDeliveryReportStatusDetails(string statusMessage = null) + public static AcsEmailDeliveryReportStatusDetails AcsEmailDeliveryReportStatusDetails(string statusMessage = null, string recipientMailServerHostName = null) { - return new AcsEmailDeliveryReportStatusDetails(statusMessage, serializedAdditionalRawData: null); + return new AcsEmailDeliveryReportStatusDetails(statusMessage, recipientMailServerHostName, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -2477,7 +2484,7 @@ public static EventHubCaptureFileCreatedEventData EventHubCaptureFileCreatedEven /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. /// 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. /// A new instance for mocking. - public static MapsGeofenceEventProperties MapsGeofenceEventProperties(IEnumerable expiredGeofenceGeometryId = null, IEnumerable geometries = null, IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = null) + public static MapsGeofenceEventProperties MapsGeofenceEventProperties(IEnumerable expiredGeofenceGeometryId = null, IEnumerable geometries = null, IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = default) { expiredGeofenceGeometryId ??= new List(); geometries ??= new List(); @@ -2494,7 +2501,7 @@ public static MapsGeofenceEventProperties MapsGeofenceEventProperties(IEnumerabl /// Longitude of the nearest point of the geometry. /// The unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API. /// A new instance for mocking. - public static MapsGeofenceGeometry MapsGeofenceGeometry(string deviceId = null, float? distance = null, string geometryId = null, float? nearestLat = null, float? nearestLon = null, string udId = null) + public static MapsGeofenceGeometry MapsGeofenceGeometry(string deviceId = null, float distance = default, string geometryId = null, float nearestLat = default, float nearestLon = default, string udId = null) { return new MapsGeofenceGeometry( deviceId, @@ -2512,7 +2519,7 @@ public static MapsGeofenceGeometry MapsGeofenceGeometry(string deviceId = null, /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. /// 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. /// A new instance for mocking. - public static MapsGeofenceEnteredEventData MapsGeofenceEnteredEventData(IEnumerable expiredGeofenceGeometryId = null, IEnumerable geometries = null, IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = null) + public static MapsGeofenceEnteredEventData MapsGeofenceEnteredEventData(IEnumerable expiredGeofenceGeometryId = null, IEnumerable geometries = null, IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = default) { expiredGeofenceGeometryId ??= new List(); geometries ??= new List(); @@ -2527,7 +2534,7 @@ public static MapsGeofenceEnteredEventData MapsGeofenceEnteredEventData(IEnumera /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. /// 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. /// A new instance for mocking. - public static MapsGeofenceExitedEventData MapsGeofenceExitedEventData(IEnumerable expiredGeofenceGeometryId = null, IEnumerable geometries = null, IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = null) + public static MapsGeofenceExitedEventData MapsGeofenceExitedEventData(IEnumerable expiredGeofenceGeometryId = null, IEnumerable geometries = null, IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = default) { expiredGeofenceGeometryId ??= new List(); geometries ??= new List(); @@ -2542,7 +2549,7 @@ public static MapsGeofenceExitedEventData MapsGeofenceExitedEventData(IEnumerabl /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. /// 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. /// A new instance for mocking. - public static MapsGeofenceResultEventData MapsGeofenceResultEventData(IEnumerable expiredGeofenceGeometryId = null, IEnumerable geometries = null, IEnumerable invalidPeriodGeofenceGeometryId = null, bool? isEventPublished = null) + public static MapsGeofenceResultEventData MapsGeofenceResultEventData(IEnumerable expiredGeofenceGeometryId = null, IEnumerable geometries = null, IEnumerable invalidPeriodGeofenceGeometryId = null, bool isEventPublished = default) { expiredGeofenceGeometryId ??= new List(); geometries ??= new List(); @@ -2574,7 +2581,7 @@ public static DeviceLifeCycleEventProperties DeviceLifeCycleEventProperties(stri /// An integer that is incremented by one each time the device twin is updated. /// The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate. /// A new instance for mocking. - public static DeviceTwinInfo DeviceTwinInfo(string authenticationType = null, float? cloudToDeviceMessageCount = null, string connectionState = null, string deviceId = null, string etag = null, string lastActivityTime = null, DeviceTwinInfoProperties properties = null, string status = null, string statusUpdateTime = null, float? version = null, DeviceTwinInfoX509Thumbprint x509Thumbprint = null) + public static DeviceTwinInfo DeviceTwinInfo(string authenticationType = null, float cloudToDeviceMessageCount = default, string connectionState = null, string deviceId = null, string etag = null, string lastActivityTime = null, DeviceTwinInfoProperties properties = null, string status = null, string statusUpdateTime = null, float version = default, DeviceTwinInfoX509Thumbprint x509Thumbprint = null) { return new DeviceTwinInfo( authenticationType, @@ -2604,7 +2611,7 @@ public static DeviceTwinInfoProperties DeviceTwinInfoProperties(DeviceTwinProper /// Metadata information for the properties JSON document. /// Version of device twin properties. /// A new instance for mocking. - public static DeviceTwinProperties DeviceTwinProperties(DeviceTwinMetadata metadata = null, float? version = null) + public static DeviceTwinProperties DeviceTwinProperties(DeviceTwinMetadata metadata = null, float version = default) { return new DeviceTwinProperties(metadata, version, serializedAdditionalRawData: null); } @@ -2721,7 +2728,7 @@ public static IotHubDeviceTelemetryEventData IotHubDeviceTelemetryEventData(IRea /// Id of HL7 FHIR resource. /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). /// A new instance for mocking. - public static HealthcareFhirResourceCreatedEventData HealthcareFhirResourceCreatedEventData(HealthcareFhirResourceType fhirResourceType = default, string fhirServiceHostName = null, string fhirResourceId = null, long? fhirResourceVersionId = null) + public static HealthcareFhirResourceCreatedEventData HealthcareFhirResourceCreatedEventData(HealthcareFhirResourceType fhirResourceType = default, string fhirServiceHostName = null, string fhirResourceId = null, long fhirResourceVersionId = default) { return new HealthcareFhirResourceCreatedEventData(fhirResourceType, fhirServiceHostName, fhirResourceId, fhirResourceVersionId, serializedAdditionalRawData: null); } @@ -2732,7 +2739,7 @@ public static HealthcareFhirResourceCreatedEventData HealthcareFhirResourceCreat /// Id of HL7 FHIR resource. /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). /// A new instance for mocking. - public static HealthcareFhirResourceUpdatedEventData HealthcareFhirResourceUpdatedEventData(HealthcareFhirResourceType fhirResourceType = default, string fhirServiceHostName = null, string fhirResourceId = null, long? fhirResourceVersionId = null) + public static HealthcareFhirResourceUpdatedEventData HealthcareFhirResourceUpdatedEventData(HealthcareFhirResourceType fhirResourceType = default, string fhirServiceHostName = null, string fhirResourceId = null, long fhirResourceVersionId = default) { return new HealthcareFhirResourceUpdatedEventData(fhirResourceType, fhirServiceHostName, fhirResourceId, fhirResourceVersionId, serializedAdditionalRawData: null); } @@ -2743,7 +2750,7 @@ public static HealthcareFhirResourceUpdatedEventData HealthcareFhirResourceUpdat /// Id of HL7 FHIR resource. /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). /// A new instance for mocking. - public static HealthcareFhirResourceDeletedEventData HealthcareFhirResourceDeletedEventData(HealthcareFhirResourceType fhirResourceType = default, string fhirServiceHostName = null, string fhirResourceId = null, long? fhirResourceVersionId = null) + public static HealthcareFhirResourceDeletedEventData HealthcareFhirResourceDeletedEventData(HealthcareFhirResourceType fhirResourceType = default, string fhirServiceHostName = null, string fhirResourceId = null, long fhirResourceVersionId = default) { return new HealthcareFhirResourceDeletedEventData(fhirResourceType, fhirServiceHostName, fhirResourceId, fhirResourceVersionId, serializedAdditionalRawData: null); } @@ -2756,7 +2763,7 @@ public static HealthcareFhirResourceDeletedEventData HealthcareFhirResourceDelet /// Domain name of the DICOM account for this image. /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service. /// A new instance for mocking. - public static HealthcareDicomImageCreatedEventData HealthcareDicomImageCreatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long? sequenceNumber = null) + public static HealthcareDicomImageCreatedEventData HealthcareDicomImageCreatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long sequenceNumber = default) { return new HealthcareDicomImageCreatedEventData( partitionName, @@ -2776,7 +2783,7 @@ public static HealthcareDicomImageCreatedEventData HealthcareDicomImageCreatedEv /// Host name of the DICOM account for this image. /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service. /// A new instance for mocking. - public static HealthcareDicomImageDeletedEventData HealthcareDicomImageDeletedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long? sequenceNumber = null) + public static HealthcareDicomImageDeletedEventData HealthcareDicomImageDeletedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long sequenceNumber = default) { return new HealthcareDicomImageDeletedEventData( partitionName, @@ -2796,7 +2803,7 @@ public static HealthcareDicomImageDeletedEventData HealthcareDicomImageDeletedEv /// Domain name of the DICOM account for this image. /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation, updation and deletion within the service. /// A new instance for mocking. - public static HealthcareDicomImageUpdatedEventData HealthcareDicomImageUpdatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long? sequenceNumber = null) + public static HealthcareDicomImageUpdatedEventData HealthcareDicomImageUpdatedEventData(string partitionName = null, string imageStudyInstanceUid = null, string imageSeriesInstanceUid = null, string imageSopInstanceUid = null, string serviceHostName = null, long sequenceNumber = default) { return new HealthcareDicomImageUpdatedEventData( partitionName, @@ -2817,7 +2824,7 @@ public static HealthcareDicomImageUpdatedEventData HealthcareDicomImageUpdatedEv /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// A new instance for mocking. - public static KeyVaultCertificateNewVersionCreatedEventData KeyVaultCertificateNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = null, float? exp = null) + public static KeyVaultCertificateNewVersionCreatedEventData KeyVaultCertificateNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = default, float exp = default) { return new KeyVaultCertificateNewVersionCreatedEventData( id, @@ -2839,7 +2846,7 @@ public static KeyVaultCertificateNewVersionCreatedEventData KeyVaultCertificateN /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// A new instance for mocking. - public static KeyVaultCertificateNearExpiryEventData KeyVaultCertificateNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = null, float? exp = null) + public static KeyVaultCertificateNearExpiryEventData KeyVaultCertificateNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = default, float exp = default) { return new KeyVaultCertificateNearExpiryEventData( id, @@ -2861,7 +2868,7 @@ public static KeyVaultCertificateNearExpiryEventData KeyVaultCertificateNearExpi /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// A new instance for mocking. - public static KeyVaultCertificateExpiredEventData KeyVaultCertificateExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = null, float? exp = null) + public static KeyVaultCertificateExpiredEventData KeyVaultCertificateExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = default, float exp = default) { return new KeyVaultCertificateExpiredEventData( id, @@ -2883,7 +2890,7 @@ public static KeyVaultCertificateExpiredEventData KeyVaultCertificateExpiredEven /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// A new instance for mocking. - public static KeyVaultKeyNewVersionCreatedEventData KeyVaultKeyNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = null, float? exp = null) + public static KeyVaultKeyNewVersionCreatedEventData KeyVaultKeyNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = default, float exp = default) { return new KeyVaultKeyNewVersionCreatedEventData( id, @@ -2905,7 +2912,7 @@ public static KeyVaultKeyNewVersionCreatedEventData KeyVaultKeyNewVersionCreated /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// A new instance for mocking. - public static KeyVaultKeyNearExpiryEventData KeyVaultKeyNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = null, float? exp = null) + public static KeyVaultKeyNearExpiryEventData KeyVaultKeyNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = default, float exp = default) { return new KeyVaultKeyNearExpiryEventData( id, @@ -2927,7 +2934,7 @@ public static KeyVaultKeyNearExpiryEventData KeyVaultKeyNearExpiryEventData(stri /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// A new instance for mocking. - public static KeyVaultKeyExpiredEventData KeyVaultKeyExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = null, float? exp = null) + public static KeyVaultKeyExpiredEventData KeyVaultKeyExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = default, float exp = default) { return new KeyVaultKeyExpiredEventData( id, @@ -2949,7 +2956,7 @@ public static KeyVaultKeyExpiredEventData KeyVaultKeyExpiredEventData(string id /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// A new instance for mocking. - public static KeyVaultSecretNewVersionCreatedEventData KeyVaultSecretNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = null, float? exp = null) + public static KeyVaultSecretNewVersionCreatedEventData KeyVaultSecretNewVersionCreatedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = default, float exp = default) { return new KeyVaultSecretNewVersionCreatedEventData( id, @@ -2971,7 +2978,7 @@ public static KeyVaultSecretNewVersionCreatedEventData KeyVaultSecretNewVersionC /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// A new instance for mocking. - public static KeyVaultSecretNearExpiryEventData KeyVaultSecretNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = null, float? exp = null) + public static KeyVaultSecretNearExpiryEventData KeyVaultSecretNearExpiryEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = default, float exp = default) { return new KeyVaultSecretNearExpiryEventData( id, @@ -2993,7 +3000,7 @@ public static KeyVaultSecretNearExpiryEventData KeyVaultSecretNearExpiryEventDat /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// A new instance for mocking. - public static KeyVaultSecretExpiredEventData KeyVaultSecretExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = null, float? exp = null) + public static KeyVaultSecretExpiredEventData KeyVaultSecretExpiredEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = default, float exp = default) { return new KeyVaultSecretExpiredEventData( id, @@ -3015,7 +3022,7 @@ public static KeyVaultSecretExpiredEventData KeyVaultSecretExpiredEventData(stri /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// A new instance for mocking. - public static KeyVaultAccessPolicyChangedEventData KeyVaultAccessPolicyChangedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float? nbf = null, float? exp = null) + public static KeyVaultAccessPolicyChangedEventData KeyVaultAccessPolicyChangedEventData(string id = null, string vaultName = null, string objectType = null, string objectName = null, string version = null, float nbf = default, float exp = default) { return new KeyVaultAccessPolicyChangedEventData( id, @@ -3135,500 +3142,6 @@ public static MachineLearningServicesRunStatusChangedEventData MachineLearningSe serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobStateChangeEventData MediaJobStateChangeEventData(MediaJobState previousState = default, MediaJobState state = default, IReadOnlyDictionary correlationData = null) - { - correlationData ??= new Dictionary(); - - return new MediaJobStateChangeEventData(previousState, state, correlationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Error code describing the error. - /// A human-readable language-dependent representation of the error. - /// Helps with categorization of errors. - /// Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. - /// An array of details about specific errors that led to this reported error. - /// A new instance for mocking. - public static MediaJobError MediaJobError(MediaJobErrorCode code = default, string message = null, MediaJobErrorCategory category = default, MediaJobRetry retry = default, IEnumerable details = null) - { - details ??= new List(); - - return new MediaJobError( - code, - message, - category, - retry, - details?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Code describing the error detail. - /// A human-readable representation of the error. - /// A new instance for mocking. - public static MediaJobErrorDetail MediaJobErrorDetail(string code = null, string message = null) - { - return new MediaJobErrorDetail(code, message, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The discriminator for derived types. - /// Gets the Job output error. - /// Gets the Job output label. - /// Gets the Job output progress. - /// Gets the Job output state. - /// A new instance for mocking. - public static MediaJobOutput MediaJobOutput(string odataType = null, MediaJobError error = null, string label = null, long progress = default, MediaJobState state = default) - { - return new UnknownMediaJobOutput( - odataType, - error, - label, - progress, - state, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the Job output error. - /// Gets the Job output label. - /// Gets the Job output progress. - /// Gets the Job output state. - /// Gets the Job output asset name. - /// A new instance for mocking. - public static MediaJobOutputAsset MediaJobOutputAsset(MediaJobError error = null, string label = null, long progress = default, MediaJobState state = default, string assetName = null) - { - return new MediaJobOutputAsset( - "#Microsoft.Media.JobOutputAsset", - error, - label, - progress, - state, - serializedAdditionalRawData: null, - assetName); - } - - /// Initializes a new instance of . - /// Gets the Job output label. - /// Gets the Job output progress. - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobOutputProgressEventData MediaJobOutputProgressEventData(string label = null, long? progress = null, IReadOnlyDictionary jobCorrelationData = null) - { - jobCorrelationData ??= new Dictionary(); - - return new MediaJobOutputProgressEventData(label, progress, jobCorrelationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobOutputStateChangeEventData MediaJobOutputStateChangeEventData(MediaJobState previousState = default, MediaJobOutput output = null, IReadOnlyDictionary jobCorrelationData = null) - { - jobCorrelationData ??= new Dictionary(); - - return new MediaJobOutputStateChangeEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobScheduledEventData MediaJobScheduledEventData(MediaJobState previousState = default, MediaJobState state = default, IReadOnlyDictionary correlationData = null) - { - correlationData ??= new Dictionary(); - - return new MediaJobScheduledEventData(previousState, state, correlationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobProcessingEventData MediaJobProcessingEventData(MediaJobState previousState = default, MediaJobState state = default, IReadOnlyDictionary correlationData = null) - { - correlationData ??= new Dictionary(); - - return new MediaJobProcessingEventData(previousState, state, correlationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobCancelingEventData MediaJobCancelingEventData(MediaJobState previousState = default, MediaJobState state = default, IReadOnlyDictionary correlationData = null) - { - correlationData ??= new Dictionary(); - - return new MediaJobCancelingEventData(previousState, state, correlationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// A new instance for mocking. - public static MediaJobFinishedEventData MediaJobFinishedEventData(MediaJobState previousState = default, MediaJobState state = default, IReadOnlyDictionary correlationData = null, IEnumerable outputs = null) - { - correlationData ??= new Dictionary(); - outputs ??= new List(); - - return new MediaJobFinishedEventData(previousState, state, correlationData, serializedAdditionalRawData: null, outputs?.ToList()); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// A new instance for mocking. - public static MediaJobCanceledEventData MediaJobCanceledEventData(MediaJobState previousState = default, MediaJobState state = default, IReadOnlyDictionary correlationData = null, IEnumerable outputs = null) - { - correlationData ??= new Dictionary(); - outputs ??= new List(); - - return new MediaJobCanceledEventData(previousState, state, correlationData, serializedAdditionalRawData: null, outputs?.ToList()); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// A new instance for mocking. - public static MediaJobErroredEventData MediaJobErroredEventData(MediaJobState previousState = default, MediaJobState state = default, IReadOnlyDictionary correlationData = null, IEnumerable outputs = null) - { - correlationData ??= new Dictionary(); - outputs ??= new List(); - - return new MediaJobErroredEventData(previousState, state, correlationData, serializedAdditionalRawData: null, outputs?.ToList()); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobOutputCanceledEventData MediaJobOutputCanceledEventData(MediaJobState previousState = default, MediaJobOutput output = null, IReadOnlyDictionary jobCorrelationData = null) - { - jobCorrelationData ??= new Dictionary(); - - return new MediaJobOutputCanceledEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobOutputCancelingEventData MediaJobOutputCancelingEventData(MediaJobState previousState = default, MediaJobOutput output = null, IReadOnlyDictionary jobCorrelationData = null) - { - jobCorrelationData ??= new Dictionary(); - - return new MediaJobOutputCancelingEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobOutputErroredEventData MediaJobOutputErroredEventData(MediaJobState previousState = default, MediaJobOutput output = null, IReadOnlyDictionary jobCorrelationData = null) - { - jobCorrelationData ??= new Dictionary(); - - return new MediaJobOutputErroredEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobOutputFinishedEventData MediaJobOutputFinishedEventData(MediaJobState previousState = default, MediaJobOutput output = null, IReadOnlyDictionary jobCorrelationData = null) - { - jobCorrelationData ??= new Dictionary(); - - return new MediaJobOutputFinishedEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobOutputProcessingEventData MediaJobOutputProcessingEventData(MediaJobState previousState = default, MediaJobOutput output = null, IReadOnlyDictionary jobCorrelationData = null) - { - jobCorrelationData ??= new Dictionary(); - - return new MediaJobOutputProcessingEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// A new instance for mocking. - public static MediaJobOutputScheduledEventData MediaJobOutputScheduledEventData(MediaJobState previousState = default, MediaJobOutput output = null, IReadOnlyDictionary jobCorrelationData = null) - { - jobCorrelationData ??= new Dictionary(); - - return new MediaJobOutputScheduledEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the ingest URL provided by the live event. - /// Gets the stream Id. - /// Gets the remote IP. - /// Gets the remote port. - /// A new instance for mocking. - public static MediaLiveEventEncoderConnectedEventData MediaLiveEventEncoderConnectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null) - { - return new MediaLiveEventEncoderConnectedEventData(ingestUrl, streamId, encoderIp, encoderPort, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the ingest URL provided by the live event. - /// Gets the stream Id. - /// Gets the remote IP. - /// Gets the remote port. - /// Gets the result code. - /// A new instance for mocking. - public static MediaLiveEventConnectionRejectedEventData MediaLiveEventConnectionRejectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null, string resultCode = null) - { - return new MediaLiveEventConnectionRejectedEventData( - ingestUrl, - streamId, - encoderIp, - encoderPort, - resultCode, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the ingest URL provided by the live event. - /// Gets the stream Id. - /// Gets the remote IP. - /// Gets the remote port. - /// Gets the result code. - /// A new instance for mocking. - public static MediaLiveEventEncoderDisconnectedEventData MediaLiveEventEncoderDisconnectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null, string resultCode = null) - { - return new MediaLiveEventEncoderDisconnectedEventData( - ingestUrl, - streamId, - encoderIp, - encoderPort, - resultCode, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the ingest URL provided by the live event. - /// Gets the type of the track (Audio / Video). - /// Gets the track name. - /// Gets the bitrate of the track. - /// Gets the remote IP. - /// Gets the remote port. - /// Gets the first timestamp of the data chunk received. - /// Gets the duration of the first data chunk. - /// Gets the timescale in which timestamp is represented. - /// A new instance for mocking. - public static MediaLiveEventIncomingStreamReceivedEventData MediaLiveEventIncomingStreamReceivedEventData(string ingestUrl = null, string trackType = null, string trackName = null, long? bitrate = null, string encoderIp = null, string encoderPort = null, string timestamp = null, string duration = null, string timescale = null) - { - return new MediaLiveEventIncomingStreamReceivedEventData( - ingestUrl, - trackType, - trackName, - bitrate, - encoderIp, - encoderPort, - timestamp, - duration, - timescale, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the minimum last timestamp received. - /// Gets the type of stream with minimum last timestamp. - /// Gets the maximum timestamp among all the tracks (audio or video). - /// Gets the type of stream with maximum last timestamp. - /// Gets the timescale in which \"MinLastTimestamp\" is represented. - /// Gets the timescale in which \"MaxLastTimestamp\" is represented. - /// A new instance for mocking. - public static MediaLiveEventIncomingStreamsOutOfSyncEventData MediaLiveEventIncomingStreamsOutOfSyncEventData(string minLastTimestamp = null, string typeOfStreamWithMinLastTimestamp = null, string maxLastTimestamp = null, string typeOfStreamWithMaxLastTimestamp = null, string timescaleOfMinLastTimestamp = null, string timescaleOfMaxLastTimestamp = null) - { - return new MediaLiveEventIncomingStreamsOutOfSyncEventData( - minLastTimestamp, - typeOfStreamWithMinLastTimestamp, - maxLastTimestamp, - typeOfStreamWithMaxLastTimestamp, - timescaleOfMinLastTimestamp, - timescaleOfMaxLastTimestamp, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the first timestamp received for one of the quality levels. - /// Gets the duration of the data chunk with first timestamp. - /// Gets the timestamp received for some other quality levels. - /// Gets the duration of the data chunk with second timestamp. - /// Gets the timescale in which both the timestamps and durations are represented. - /// A new instance for mocking. - public static MediaLiveEventIncomingVideoStreamsOutOfSyncEventData MediaLiveEventIncomingVideoStreamsOutOfSyncEventData(string firstTimestamp = null, string firstDuration = null, string secondTimestamp = null, string secondDuration = null, string timescale = null) - { - return new MediaLiveEventIncomingVideoStreamsOutOfSyncEventData( - firstTimestamp, - firstDuration, - secondTimestamp, - secondDuration, - timescale, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the timestamp of the data chunk dropped. - /// Gets the type of the track (Audio / Video). - /// Gets the bitrate of the track. - /// Gets the timescale of the Timestamp. - /// Gets the result code for fragment drop operation. - /// Gets the name of the track for which fragment is dropped. - /// A new instance for mocking. - public static MediaLiveEventIncomingDataChunkDroppedEventData MediaLiveEventIncomingDataChunkDroppedEventData(string timestamp = null, string trackType = null, long? bitrate = null, string timescale = null, string resultCode = null, string trackName = null) - { - return new MediaLiveEventIncomingDataChunkDroppedEventData( - timestamp, - trackType, - bitrate, - timescale, - resultCode, - trackName, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the type of the track (Audio / Video). - /// Gets the track name. - /// Gets the Live Transcription language. - /// Gets the Live Transcription state. - /// Gets the bitrate of the track. - /// Gets the incoming bitrate. - /// Gets the track ingest drift value. - /// Gets the arrival UTC time of the last fragment. - /// Gets the last timestamp. - /// Gets the timescale of the last timestamp. - /// Gets the fragment Overlap count. - /// Gets the fragment Discontinuity count. - /// Gets Non increasing count. - /// Gets a value indicating whether unexpected bitrate is present or not. - /// Gets the state of the live event. - /// Gets a value indicating whether preview is healthy or not. - /// A new instance for mocking. - public static MediaLiveEventIngestHeartbeatEventData MediaLiveEventIngestHeartbeatEventData(string trackType = null, string trackName = null, string transcriptionLanguage = null, string transcriptionState = null, long? bitrate = null, long? incomingBitrate = null, string ingestDriftValue = null, string lastFragmentArrivalTime = null, string lastTimestamp = null, string timescale = null, long? overlapCount = null, long? discontinuityCount = null, long? nonincreasingCount = null, bool? unexpectedBitrate = null, string state = null, bool? healthy = null) - { - return new MediaLiveEventIngestHeartbeatEventData( - trackType, - trackName, - transcriptionLanguage, - transcriptionState, - bitrate, - incomingBitrate, - ingestDriftValue, - lastFragmentArrivalTime, - lastTimestamp, - timescale, - overlapCount, - discontinuityCount, - nonincreasingCount, - unexpectedBitrate, - state, - healthy, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the type of the track (Audio / Video). - /// Gets the track name. - /// Gets the bitrate. - /// Gets the timestamp of the previous fragment. - /// Gets the timestamp of the current fragment. - /// Gets the timescale in which both timestamps and discontinuity gap are represented. - /// Gets the discontinuity gap between PreviousTimestamp and NewTimestamp. - /// A new instance for mocking. - public static MediaLiveEventTrackDiscontinuityDetectedEventData MediaLiveEventTrackDiscontinuityDetectedEventData(string trackType = null, string trackName = null, long? bitrate = null, string previousTimestamp = null, string newTimestamp = null, string timescale = null, string discontinuityGap = null) - { - return new MediaLiveEventTrackDiscontinuityDetectedEventData( - trackType, - trackName, - bitrate, - previousTimestamp, - newTimestamp, - timescale, - discontinuityGap, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets the channel latency in ms. - /// Gets the latency result code. - /// A new instance for mocking. - public static MediaLiveEventChannelArchiveHeartbeatEventData MediaLiveEventChannelArchiveHeartbeatEventData(string channelLatencyMs = null, string latencyResultCode = null) - { - return new MediaLiveEventChannelArchiveHeartbeatEventData(channelLatencyMs, latencyResultCode, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. /// The resource ID of the policy assignment. @@ -3700,7 +3213,7 @@ public static PolicyInsightsPolicyStateDeletedEventData PolicyInsightsPolicyStat /// The name of this event. /// The status of this event. Failed or succeeded. /// A new instance for mocking. - public static RedisPatchingCompletedEventData RedisPatchingCompletedEventData(DateTimeOffset timestamp = default, string name = null, string status = null) + public static RedisPatchingCompletedEventData RedisPatchingCompletedEventData(DateTimeOffset? timestamp = null, string name = null, string status = null) { return new RedisPatchingCompletedEventData(timestamp, name, status, serializedAdditionalRawData: null); } @@ -3710,29 +3223,29 @@ public static RedisPatchingCompletedEventData RedisPatchingCompletedEventData(Da /// The name of this event. /// The status of this event. Failed or succeeded. /// A new instance for mocking. - public static RedisScalingCompletedEventData RedisScalingCompletedEventData(DateTimeOffset timestamp = default, string name = null, string status = null) + public static RedisScalingCompletedEventData RedisScalingCompletedEventData(DateTimeOffset? timestamp = null, string name = null, string status = null) { return new RedisScalingCompletedEventData(timestamp, name, status, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The time at which the event occurred. /// The name of this event. /// The status of this event. Failed or succeeded. - /// A new instance for mocking. - public static RedisExportRDBCompletedEventData RedisExportRDBCompletedEventData(DateTimeOffset timestamp = default, string name = null, string status = null) + /// A new instance for mocking. + public static RedisExportRdbCompletedEventData RedisExportRdbCompletedEventData(DateTimeOffset? timestamp = null, string name = null, string status = null) { - return new RedisExportRDBCompletedEventData(timestamp, name, status, serializedAdditionalRawData: null); + return new RedisExportRdbCompletedEventData(timestamp, name, status, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The time at which the event occurred. /// The name of this event. /// The status of this event. Failed or succeeded. - /// A new instance for mocking. - public static RedisImportRDBCompletedEventData RedisImportRDBCompletedEventData(DateTimeOffset timestamp = default, string name = null, string status = null) + /// A new instance for mocking. + public static RedisImportRdbCompletedEventData RedisImportRdbCompletedEventData(DateTimeOffset? timestamp = null, string name = null, string status = null) { - return new RedisImportRDBCompletedEventData(timestamp, name, status, serializedAdditionalRawData: null); + return new RedisImportRdbCompletedEventData(timestamp, name, status, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -4164,12 +3677,13 @@ public static SignalRServiceClientConnectionDisconnectedEventData SignalRService /// The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. /// The offset of the blob in bytes. /// The type of blob. + /// The current tier of the blob. /// The path to the blob. /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. /// The identity of the requester that triggered this event. /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. /// A new instance for mocking. - public static StorageBlobCreatedEventData StorageBlobCreatedEventData(string api = null, string clientRequestId = null, string requestId = null, string eTag = null, string contentType = null, long? contentLength = null, long? contentOffset = null, string blobType = null, string url = null, string sequencer = null, string identity = null, IReadOnlyDictionary storageDiagnostics = null) + public static StorageBlobCreatedEventData StorageBlobCreatedEventData(string api = null, string clientRequestId = null, string requestId = null, string eTag = null, string contentType = null, long? contentLength = null, long? contentOffset = null, string blobType = null, StorageBlobAccessTier accessTier = default, string url = null, string sequencer = null, string identity = null, IReadOnlyDictionary storageDiagnostics = null) { storageDiagnostics ??= new Dictionary(); @@ -4182,6 +3696,7 @@ public static StorageBlobCreatedEventData StorageBlobCreatedEventData(string api contentLength, contentOffset, blobType, + accessTier, url, sequencer, identity, @@ -4323,13 +3838,30 @@ public static StorageDirectoryRenamedEventData StorageDirectoryRenamedEventData( /// Initializes a new instance of . /// The time the policy task was scheduled. + /// Policy execution summary which shows the completion status of a LCM run". /// Execution statistics of a specific policy action in a Blob Management cycle. /// Execution statistics of a specific policy action in a Blob Management cycle. /// Execution statistics of a specific policy action in a Blob Management cycle. + /// Execution statistics of a specific policy action in a Blob Management cycle. /// A new instance for mocking. - public static StorageLifecyclePolicyCompletedEventData StorageLifecyclePolicyCompletedEventData(string scheduleTime = null, StorageLifecyclePolicyActionSummaryDetail deleteSummary = null, StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary = null, StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary = null) + public static StorageLifecyclePolicyCompletedEventData StorageLifecyclePolicyCompletedEventData(string scheduleTime = null, StorageLifecyclePolicyRunSummary policyRunSummary = null, StorageLifecyclePolicyActionSummaryDetail deleteSummary = null, StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary = null, StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary = null, StorageLifecyclePolicyActionSummaryDetail tierToColdSummary = null) + { + return new StorageLifecyclePolicyCompletedEventData( + scheduleTime, + policyRunSummary, + deleteSummary, + tierToCoolSummary, + tierToArchiveSummary, + tierToColdSummary, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Policy status can be Completed/CompletedWithError/Incomplete. + /// A new instance for mocking. + public static StorageLifecyclePolicyRunSummary StorageLifecyclePolicyRunSummary(StorageLifecycleCompletionStatus completionStatus = default) { - return new StorageLifecyclePolicyCompletedEventData(scheduleTime, deleteSummary, tierToCoolSummary, tierToArchiveSummary, serializedAdditionalRawData: null); + return new StorageLifecyclePolicyRunSummary(completionStatus, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -4349,12 +3881,14 @@ public static StorageLifecyclePolicyActionSummaryDetail StorageLifecyclePolicyAc /// The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. /// The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. /// The type of blob. + /// The current tier of the blob. + /// The previous tier of the blob. /// The path to the blob. /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. /// The identity of the requester that triggered this event. /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. /// A new instance for mocking. - public static StorageBlobTierChangedEventData StorageBlobTierChangedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, long? contentLength = null, string blobType = null, string url = null, string sequencer = null, string identity = null, IReadOnlyDictionary storageDiagnostics = null) + public static StorageBlobTierChangedEventData StorageBlobTierChangedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, long? contentLength = null, string blobType = null, StorageBlobAccessTier accessTier = default, StorageBlobAccessTier previousTier = default, string url = null, string sequencer = null, string identity = null, IReadOnlyDictionary storageDiagnostics = null) { storageDiagnostics ??= new Dictionary(); @@ -4365,6 +3899,8 @@ public static StorageBlobTierChangedEventData StorageBlobTierChangedEventData(st contentType, contentLength, blobType, + accessTier, + previousTier, url, sequencer, identity, @@ -4835,7 +4371,7 @@ public static SubscriptionDeletedEventData SubscriptionDeletedEventData(string e return new SubscriptionDeletedEventData(eventSubscriptionId, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// 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 @@ -4843,13 +4379,13 @@ public static SubscriptionDeletedEventData SubscriptionDeletedEventData(string e /// /// Name of the client resource in the Event Grid namespace. /// Name of the Event Grid namespace where the MQTT client was created or updated. - /// A new instance for mocking. - public static EventGridMQTTClientEventData EventGridMQTTClientEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) + /// A new instance for mocking. + public static EventGridMqttClientEventData EventGridMqttClientEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) { - return new EventGridMQTTClientEventData(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData: null); + return new EventGridMqttClientEventData(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// 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 @@ -4865,12 +4401,12 @@ public static EventGridMQTTClientEventData EventGridMQTTClientEventData(string c /// the 'createdOn' property. /// /// The key-value attributes that are assigned to the client resource. - /// A new instance for mocking. - public static EventGridMQTTClientCreatedOrUpdatedEventData EventGridMQTTClientCreatedOrUpdatedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, EventGridMQTTClientState state = default, DateTimeOffset createdOn = default, DateTimeOffset updatedOn = default, IReadOnlyDictionary attributes = null) + /// A new instance for mocking. + public static EventGridMqttClientCreatedOrUpdatedEventData EventGridMqttClientCreatedOrUpdatedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, EventGridMqttClientState state = default, DateTimeOffset createdOn = default, DateTimeOffset updatedOn = default, IReadOnlyDictionary attributes = null) { attributes ??= new Dictionary(); - return new EventGridMQTTClientCreatedOrUpdatedEventData( + return new EventGridMqttClientCreatedOrUpdatedEventData( clientAuthenticationName, clientName, namespaceName, @@ -4881,7 +4417,7 @@ public static EventGridMQTTClientCreatedOrUpdatedEventData EventGridMQTTClientCr attributes); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// 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 @@ -4889,13 +4425,13 @@ public static EventGridMQTTClientCreatedOrUpdatedEventData EventGridMQTTClientCr /// /// Name of the client resource in the Event Grid namespace. /// Name of the Event Grid namespace where the MQTT client was created or updated. - /// A new instance for mocking. - public static EventGridMQTTClientDeletedEventData EventGridMQTTClientDeletedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) + /// A new instance for mocking. + public static EventGridMqttClientDeletedEventData EventGridMqttClientDeletedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null) { - return new EventGridMQTTClientDeletedEventData(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData: null); + return new EventGridMqttClientDeletedEventData(clientAuthenticationName, clientName, namespaceName, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// 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 @@ -4912,10 +4448,10 @@ public static EventGridMQTTClientDeletedEventData EventGridMQTTClientDeletedEven /// disconnected events. Latest event will have a sequence number that is higher /// than the previous event. /// - /// A new instance for mocking. - public static EventGridMQTTClientSessionConnectedEventData EventGridMQTTClientSessionConnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long? sequenceNumber = null) + /// A new instance for mocking. + public static EventGridMqttClientSessionConnectedEventData EventGridMqttClientSessionConnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long sequenceNumber = default) { - return new EventGridMQTTClientSessionConnectedEventData( + return new EventGridMqttClientSessionConnectedEventData( clientAuthenticationName, clientName, namespaceName, @@ -4924,7 +4460,7 @@ public static EventGridMQTTClientSessionConnectedEventData EventGridMQTTClientSe sequenceNumber); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// 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 @@ -4945,10 +4481,10 @@ public static EventGridMQTTClientSessionConnectedEventData EventGridMQTTClientSe /// Reason for the disconnection of the MQTT client's session. The value could be /// one of the values in the disconnection reasons table. /// - /// A new instance for mocking. - public static EventGridMQTTClientSessionDisconnectedEventData EventGridMQTTClientSessionDisconnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long? sequenceNumber = null, EventGridMQTTClientDisconnectionReason disconnectionReason = default) + /// A new instance for mocking. + public static EventGridMqttClientSessionDisconnectedEventData EventGridMqttClientSessionDisconnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long sequenceNumber = default, EventGridMqttClientDisconnectionReason disconnectionReason = default) { - return new EventGridMQTTClientSessionDisconnectedEventData( + return new EventGridMqttClientSessionDisconnectedEventData( clientAuthenticationName, clientName, namespaceName, @@ -5019,14 +4555,14 @@ public static ResourceNotificationsHealthResourcesAnnotatedEventData ResourceNot return new ResourceNotificationsHealthResourcesAnnotatedEventData(resourceDetails, operationalDetails, apiVersion, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// resourceInfo details for update event. - /// details about operational info. - /// api version of the resource properties bag. - /// A new instance for mocking. - public static ResourceNotificationsResourceManagementCreatedOrUpdatedEventData ResourceNotificationsResourceManagementCreatedOrUpdatedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails = null, ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) + /// Initializes a new instance of . + /// id of the resource for which the event is being emitted. + /// name of the resource for which the event is being emitted. + /// the type of the resource for which the event is being emitted. + /// A new instance for mocking. + public static ResourceNotificationsResourceDeletedDetails ResourceNotificationsResourceDeletedDetails(string id = null, string name = null, string type = null) { - return new ResourceNotificationsResourceManagementCreatedOrUpdatedEventData(resourceDetails, operationalDetails, apiVersion, serializedAdditionalRawData: null); + return new ResourceNotificationsResourceDeletedDetails(id, name, type, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -5038,14 +4574,14 @@ public static ResourceNotificationsResourceDeletedEventData ResourceNotification return new ResourceNotificationsResourceDeletedEventData(resourceDetails, operationalDetails, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// id of the resource for which the event is being emitted. - /// name of the resource for which the event is being emitted. - /// the type of the resource for which the event is being emitted. - /// A new instance for mocking. - public static ResourceNotificationsResourceDeletedDetails ResourceNotificationsResourceDeletedDetails(string id = null, string name = null, string type = null) + /// Initializes a new instance of . + /// resourceInfo details for update event. + /// details about operational info. + /// api version of the resource properties bag. + /// A new instance for mocking. + public static ResourceNotificationsResourceManagementCreatedOrUpdatedEventData ResourceNotificationsResourceManagementCreatedOrUpdatedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails = null, ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) { - return new ResourceNotificationsResourceDeletedDetails(id, name, type, serializedAdditionalRawData: null); + return new ResourceNotificationsResourceManagementCreatedOrUpdatedEventData(resourceDetails, operationalDetails, apiVersion, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -5056,5 +4592,15 @@ public static ResourceNotificationsResourceManagementDeletedEventData ResourceNo { return new ResourceNotificationsResourceManagementDeletedEventData(resourceDetails, operationalDetails, serializedAdditionalRawData: null); } + + /// Initializes a new instance of . + /// resourceInfo details for update event. + /// details about operational info. + /// api version of the resource properties bag. + /// A new instance for mocking. + public static ResourceNotificationsContainerServiceEventResourcesScheduledEventData ResourceNotificationsContainerServiceEventResourcesScheduledEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails = null, ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) + { + return new ResourceNotificationsContainerServiceEventResourcesScheduledEventData(resourceDetails, operationalDetails, apiVersion, serializedAdditionalRawData: null); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageCreatedEventData.Serialization.cs index feacefff2563..59a55d558ba7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageCreatedEventData.Serialization.cs @@ -34,36 +34,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(HealthcareDicomImageCreatedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(PartitionName)) - { - writer.WritePropertyName("partitionName"u8); - writer.WriteStringValue(PartitionName); - } - if (Optional.IsDefined(ImageStudyInstanceUid)) - { - writer.WritePropertyName("imageStudyInstanceUid"u8); - writer.WriteStringValue(ImageStudyInstanceUid); - } - if (Optional.IsDefined(ImageSeriesInstanceUid)) - { - writer.WritePropertyName("imageSeriesInstanceUid"u8); - writer.WriteStringValue(ImageSeriesInstanceUid); - } - if (Optional.IsDefined(ImageSopInstanceUid)) - { - writer.WritePropertyName("imageSopInstanceUid"u8); - writer.WriteStringValue(ImageSopInstanceUid); - } - if (Optional.IsDefined(ServiceHostName)) - { - writer.WritePropertyName("serviceHostName"u8); - writer.WriteStringValue(ServiceHostName); - } - if (Optional.IsDefined(SequenceNumber)) - { - writer.WritePropertyName("sequenceNumber"u8); - writer.WriteNumberValue(SequenceNumber.Value); - } + writer.WritePropertyName("partitionName"u8); + writer.WriteStringValue(PartitionName); + writer.WritePropertyName("imageStudyInstanceUid"u8); + writer.WriteStringValue(ImageStudyInstanceUid); + writer.WritePropertyName("imageSeriesInstanceUid"u8); + writer.WriteStringValue(ImageSeriesInstanceUid); + writer.WritePropertyName("imageSopInstanceUid"u8); + writer.WriteStringValue(ImageSopInstanceUid); + writer.WritePropertyName("serviceHostName"u8); + writer.WriteStringValue(ServiceHostName); + writer.WritePropertyName("sequenceNumber"u8); + writer.WriteNumberValue(SequenceNumber); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -106,7 +88,7 @@ internal static HealthcareDicomImageCreatedEventData DeserializeHealthcareDicomI string imageSeriesInstanceUid = default; string imageSopInstanceUid = default; string serviceHostName = default; - long? sequenceNumber = default; + long sequenceNumber = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -138,10 +120,6 @@ internal static HealthcareDicomImageCreatedEventData DeserializeHealthcareDicomI } if (property.NameEquals("sequenceNumber"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } sequenceNumber = property.Value.GetInt64(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageCreatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageCreatedEventData.cs index debb8542d70c..5cda8ffaa4cc 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageCreatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageCreatedEventData.cs @@ -46,8 +46,27 @@ public partial class HealthcareDicomImageCreatedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal HealthcareDicomImageCreatedEventData() + /// Data partition name. + /// Unique identifier for the Study. + /// Unique identifier for the Series. + /// Unique identifier for the DICOM Image. + /// Domain name of the DICOM account for this image. + /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service. + /// , , , or is null. + internal HealthcareDicomImageCreatedEventData(string partitionName, string imageStudyInstanceUid, string imageSeriesInstanceUid, string imageSopInstanceUid, string serviceHostName, long sequenceNumber) { + Argument.AssertNotNull(partitionName, nameof(partitionName)); + Argument.AssertNotNull(imageStudyInstanceUid, nameof(imageStudyInstanceUid)); + Argument.AssertNotNull(imageSeriesInstanceUid, nameof(imageSeriesInstanceUid)); + Argument.AssertNotNull(imageSopInstanceUid, nameof(imageSopInstanceUid)); + Argument.AssertNotNull(serviceHostName, nameof(serviceHostName)); + + PartitionName = partitionName; + ImageStudyInstanceUid = imageStudyInstanceUid; + ImageSeriesInstanceUid = imageSeriesInstanceUid; + ImageSopInstanceUid = imageSopInstanceUid; + ServiceHostName = serviceHostName; + SequenceNumber = sequenceNumber; } /// Initializes a new instance of . @@ -58,7 +77,7 @@ internal HealthcareDicomImageCreatedEventData() /// Domain name of the DICOM account for this image. /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service. /// Keeps track of any properties unknown to the library. - internal HealthcareDicomImageCreatedEventData(string partitionName, string imageStudyInstanceUid, string imageSeriesInstanceUid, string imageSopInstanceUid, string serviceHostName, long? sequenceNumber, IDictionary serializedAdditionalRawData) + internal HealthcareDicomImageCreatedEventData(string partitionName, string imageStudyInstanceUid, string imageSeriesInstanceUid, string imageSopInstanceUid, string serviceHostName, long sequenceNumber, IDictionary serializedAdditionalRawData) { PartitionName = partitionName; ImageStudyInstanceUid = imageStudyInstanceUid; @@ -69,6 +88,11 @@ internal HealthcareDicomImageCreatedEventData(string partitionName, string image _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal HealthcareDicomImageCreatedEventData() + { + } + /// Data partition name. public string PartitionName { get; } /// Unique identifier for the Study. @@ -80,6 +104,6 @@ internal HealthcareDicomImageCreatedEventData(string partitionName, string image /// Domain name of the DICOM account for this image. public string ServiceHostName { get; } /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service. - public long? SequenceNumber { get; } + public long SequenceNumber { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageDeletedEventData.Serialization.cs index bb9a3dfd42ae..2e46ec8ec6e3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageDeletedEventData.Serialization.cs @@ -34,36 +34,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(HealthcareDicomImageDeletedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(PartitionName)) - { - writer.WritePropertyName("partitionName"u8); - writer.WriteStringValue(PartitionName); - } - if (Optional.IsDefined(ImageStudyInstanceUid)) - { - writer.WritePropertyName("imageStudyInstanceUid"u8); - writer.WriteStringValue(ImageStudyInstanceUid); - } - if (Optional.IsDefined(ImageSeriesInstanceUid)) - { - writer.WritePropertyName("imageSeriesInstanceUid"u8); - writer.WriteStringValue(ImageSeriesInstanceUid); - } - if (Optional.IsDefined(ImageSopInstanceUid)) - { - writer.WritePropertyName("imageSopInstanceUid"u8); - writer.WriteStringValue(ImageSopInstanceUid); - } - if (Optional.IsDefined(ServiceHostName)) - { - writer.WritePropertyName("serviceHostName"u8); - writer.WriteStringValue(ServiceHostName); - } - if (Optional.IsDefined(SequenceNumber)) - { - writer.WritePropertyName("sequenceNumber"u8); - writer.WriteNumberValue(SequenceNumber.Value); - } + writer.WritePropertyName("partitionName"u8); + writer.WriteStringValue(PartitionName); + writer.WritePropertyName("imageStudyInstanceUid"u8); + writer.WriteStringValue(ImageStudyInstanceUid); + writer.WritePropertyName("imageSeriesInstanceUid"u8); + writer.WriteStringValue(ImageSeriesInstanceUid); + writer.WritePropertyName("imageSopInstanceUid"u8); + writer.WriteStringValue(ImageSopInstanceUid); + writer.WritePropertyName("serviceHostName"u8); + writer.WriteStringValue(ServiceHostName); + writer.WritePropertyName("sequenceNumber"u8); + writer.WriteNumberValue(SequenceNumber); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -106,7 +88,7 @@ internal static HealthcareDicomImageDeletedEventData DeserializeHealthcareDicomI string imageSeriesInstanceUid = default; string imageSopInstanceUid = default; string serviceHostName = default; - long? sequenceNumber = default; + long sequenceNumber = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -138,10 +120,6 @@ internal static HealthcareDicomImageDeletedEventData DeserializeHealthcareDicomI } if (property.NameEquals("sequenceNumber"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } sequenceNumber = property.Value.GetInt64(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageDeletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageDeletedEventData.cs index abac35f2b0bc..a73070cb785c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageDeletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageDeletedEventData.cs @@ -46,8 +46,27 @@ public partial class HealthcareDicomImageDeletedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal HealthcareDicomImageDeletedEventData() + /// Data partition name. + /// Unique identifier for the Study. + /// Unique identifier for the Series. + /// Unique identifier for the DICOM Image. + /// Host name of the DICOM account for this image. + /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service. + /// , , , or is null. + internal HealthcareDicomImageDeletedEventData(string partitionName, string imageStudyInstanceUid, string imageSeriesInstanceUid, string imageSopInstanceUid, string serviceHostName, long sequenceNumber) { + Argument.AssertNotNull(partitionName, nameof(partitionName)); + Argument.AssertNotNull(imageStudyInstanceUid, nameof(imageStudyInstanceUid)); + Argument.AssertNotNull(imageSeriesInstanceUid, nameof(imageSeriesInstanceUid)); + Argument.AssertNotNull(imageSopInstanceUid, nameof(imageSopInstanceUid)); + Argument.AssertNotNull(serviceHostName, nameof(serviceHostName)); + + PartitionName = partitionName; + ImageStudyInstanceUid = imageStudyInstanceUid; + ImageSeriesInstanceUid = imageSeriesInstanceUid; + ImageSopInstanceUid = imageSopInstanceUid; + ServiceHostName = serviceHostName; + SequenceNumber = sequenceNumber; } /// Initializes a new instance of . @@ -58,7 +77,7 @@ internal HealthcareDicomImageDeletedEventData() /// Host name of the DICOM account for this image. /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service. /// Keeps track of any properties unknown to the library. - internal HealthcareDicomImageDeletedEventData(string partitionName, string imageStudyInstanceUid, string imageSeriesInstanceUid, string imageSopInstanceUid, string serviceHostName, long? sequenceNumber, IDictionary serializedAdditionalRawData) + internal HealthcareDicomImageDeletedEventData(string partitionName, string imageStudyInstanceUid, string imageSeriesInstanceUid, string imageSopInstanceUid, string serviceHostName, long sequenceNumber, IDictionary serializedAdditionalRawData) { PartitionName = partitionName; ImageStudyInstanceUid = imageStudyInstanceUid; @@ -69,6 +88,11 @@ internal HealthcareDicomImageDeletedEventData(string partitionName, string image _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal HealthcareDicomImageDeletedEventData() + { + } + /// Data partition name. public string PartitionName { get; } /// Unique identifier for the Study. @@ -80,6 +104,6 @@ internal HealthcareDicomImageDeletedEventData(string partitionName, string image /// Host name of the DICOM account for this image. public string ServiceHostName { get; } /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service. - public long? SequenceNumber { get; } + public long SequenceNumber { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageUpdatedEventData.Serialization.cs index 54bba1c9d572..215ae2c31387 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageUpdatedEventData.Serialization.cs @@ -34,36 +34,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(HealthcareDicomImageUpdatedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(PartitionName)) - { - writer.WritePropertyName("partitionName"u8); - writer.WriteStringValue(PartitionName); - } - if (Optional.IsDefined(ImageStudyInstanceUid)) - { - writer.WritePropertyName("imageStudyInstanceUid"u8); - writer.WriteStringValue(ImageStudyInstanceUid); - } - if (Optional.IsDefined(ImageSeriesInstanceUid)) - { - writer.WritePropertyName("imageSeriesInstanceUid"u8); - writer.WriteStringValue(ImageSeriesInstanceUid); - } - if (Optional.IsDefined(ImageSopInstanceUid)) - { - writer.WritePropertyName("imageSopInstanceUid"u8); - writer.WriteStringValue(ImageSopInstanceUid); - } - if (Optional.IsDefined(ServiceHostName)) - { - writer.WritePropertyName("serviceHostName"u8); - writer.WriteStringValue(ServiceHostName); - } - if (Optional.IsDefined(SequenceNumber)) - { - writer.WritePropertyName("sequenceNumber"u8); - writer.WriteNumberValue(SequenceNumber.Value); - } + writer.WritePropertyName("partitionName"u8); + writer.WriteStringValue(PartitionName); + writer.WritePropertyName("imageStudyInstanceUid"u8); + writer.WriteStringValue(ImageStudyInstanceUid); + writer.WritePropertyName("imageSeriesInstanceUid"u8); + writer.WriteStringValue(ImageSeriesInstanceUid); + writer.WritePropertyName("imageSopInstanceUid"u8); + writer.WriteStringValue(ImageSopInstanceUid); + writer.WritePropertyName("serviceHostName"u8); + writer.WriteStringValue(ServiceHostName); + writer.WritePropertyName("sequenceNumber"u8); + writer.WriteNumberValue(SequenceNumber); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -106,7 +88,7 @@ internal static HealthcareDicomImageUpdatedEventData DeserializeHealthcareDicomI string imageSeriesInstanceUid = default; string imageSopInstanceUid = default; string serviceHostName = default; - long? sequenceNumber = default; + long sequenceNumber = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -138,10 +120,6 @@ internal static HealthcareDicomImageUpdatedEventData DeserializeHealthcareDicomI } if (property.NameEquals("sequenceNumber"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } sequenceNumber = property.Value.GetInt64(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageUpdatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageUpdatedEventData.cs index eb248a7f72ad..52db6405eca6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageUpdatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareDicomImageUpdatedEventData.cs @@ -46,8 +46,27 @@ public partial class HealthcareDicomImageUpdatedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal HealthcareDicomImageUpdatedEventData() + /// Data partition name. + /// Unique identifier for the Study. + /// Unique identifier for the Series. + /// Unique identifier for the DICOM Image. + /// Domain name of the DICOM account for this image. + /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation, updation and deletion within the service. + /// , , , or is null. + internal HealthcareDicomImageUpdatedEventData(string partitionName, string imageStudyInstanceUid, string imageSeriesInstanceUid, string imageSopInstanceUid, string serviceHostName, long sequenceNumber) { + Argument.AssertNotNull(partitionName, nameof(partitionName)); + Argument.AssertNotNull(imageStudyInstanceUid, nameof(imageStudyInstanceUid)); + Argument.AssertNotNull(imageSeriesInstanceUid, nameof(imageSeriesInstanceUid)); + Argument.AssertNotNull(imageSopInstanceUid, nameof(imageSopInstanceUid)); + Argument.AssertNotNull(serviceHostName, nameof(serviceHostName)); + + PartitionName = partitionName; + ImageStudyInstanceUid = imageStudyInstanceUid; + ImageSeriesInstanceUid = imageSeriesInstanceUid; + ImageSopInstanceUid = imageSopInstanceUid; + ServiceHostName = serviceHostName; + SequenceNumber = sequenceNumber; } /// Initializes a new instance of . @@ -58,7 +77,7 @@ internal HealthcareDicomImageUpdatedEventData() /// Domain name of the DICOM account for this image. /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation, updation and deletion within the service. /// Keeps track of any properties unknown to the library. - internal HealthcareDicomImageUpdatedEventData(string partitionName, string imageStudyInstanceUid, string imageSeriesInstanceUid, string imageSopInstanceUid, string serviceHostName, long? sequenceNumber, IDictionary serializedAdditionalRawData) + internal HealthcareDicomImageUpdatedEventData(string partitionName, string imageStudyInstanceUid, string imageSeriesInstanceUid, string imageSopInstanceUid, string serviceHostName, long sequenceNumber, IDictionary serializedAdditionalRawData) { PartitionName = partitionName; ImageStudyInstanceUid = imageStudyInstanceUid; @@ -69,6 +88,11 @@ internal HealthcareDicomImageUpdatedEventData(string partitionName, string image _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal HealthcareDicomImageUpdatedEventData() + { + } + /// Data partition name. public string PartitionName { get; } /// Unique identifier for the Study. @@ -80,6 +104,6 @@ internal HealthcareDicomImageUpdatedEventData(string partitionName, string image /// Domain name of the DICOM account for this image. public string ServiceHostName { get; } /// Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation, updation and deletion within the service. - public long? SequenceNumber { get; } + public long SequenceNumber { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceCreatedEventData.Serialization.cs index 5750aeda70b5..421ac2033a74 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceCreatedEventData.Serialization.cs @@ -36,21 +36,12 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("resourceType"u8); writer.WriteStringValue(FhirResourceType.ToString()); - if (Optional.IsDefined(FhirServiceHostName)) - { - writer.WritePropertyName("resourceFhirAccount"u8); - writer.WriteStringValue(FhirServiceHostName); - } - if (Optional.IsDefined(FhirResourceId)) - { - writer.WritePropertyName("resourceFhirId"u8); - writer.WriteStringValue(FhirResourceId); - } - if (Optional.IsDefined(FhirResourceVersionId)) - { - writer.WritePropertyName("resourceVersionId"u8); - writer.WriteNumberValue(FhirResourceVersionId.Value); - } + writer.WritePropertyName("resourceFhirAccount"u8); + writer.WriteStringValue(FhirServiceHostName); + writer.WritePropertyName("resourceFhirId"u8); + writer.WriteStringValue(FhirResourceId); + writer.WritePropertyName("resourceVersionId"u8); + writer.WriteNumberValue(FhirResourceVersionId); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -91,7 +82,7 @@ internal static HealthcareFhirResourceCreatedEventData DeserializeHealthcareFhir HealthcareFhirResourceType resourceType = default; string resourceFhirAccount = default; string resourceFhirId = default; - long? resourceVersionId = default; + long resourceVersionId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -113,10 +104,6 @@ internal static HealthcareFhirResourceCreatedEventData DeserializeHealthcareFhir } if (property.NameEquals("resourceVersionId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } resourceVersionId = property.Value.GetInt64(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceCreatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceCreatedEventData.cs index ed48894c3e41..55d9704fb30f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceCreatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceCreatedEventData.cs @@ -47,9 +47,19 @@ public partial class HealthcareFhirResourceCreatedEventData /// Initializes a new instance of . /// Type of HL7 FHIR resource. - internal HealthcareFhirResourceCreatedEventData(HealthcareFhirResourceType fhirResourceType) + /// Domain name of FHIR account for this resource. + /// Id of HL7 FHIR resource. + /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). + /// or is null. + internal HealthcareFhirResourceCreatedEventData(HealthcareFhirResourceType fhirResourceType, string fhirServiceHostName, string fhirResourceId, long fhirResourceVersionId) { + Argument.AssertNotNull(fhirServiceHostName, nameof(fhirServiceHostName)); + Argument.AssertNotNull(fhirResourceId, nameof(fhirResourceId)); + FhirResourceType = fhirResourceType; + FhirServiceHostName = fhirServiceHostName; + FhirResourceId = fhirResourceId; + FhirResourceVersionId = fhirResourceVersionId; } /// Initializes a new instance of . @@ -58,7 +68,7 @@ internal HealthcareFhirResourceCreatedEventData(HealthcareFhirResourceType fhirR /// Id of HL7 FHIR resource. /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). /// Keeps track of any properties unknown to the library. - internal HealthcareFhirResourceCreatedEventData(HealthcareFhirResourceType fhirResourceType, string fhirServiceHostName, string fhirResourceId, long? fhirResourceVersionId, IDictionary serializedAdditionalRawData) + internal HealthcareFhirResourceCreatedEventData(HealthcareFhirResourceType fhirResourceType, string fhirServiceHostName, string fhirResourceId, long fhirResourceVersionId, IDictionary serializedAdditionalRawData) { FhirResourceType = fhirResourceType; FhirServiceHostName = fhirServiceHostName; @@ -79,6 +89,6 @@ internal HealthcareFhirResourceCreatedEventData() /// Id of HL7 FHIR resource. public string FhirResourceId { get; } /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). - public long? FhirResourceVersionId { get; } + public long FhirResourceVersionId { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceDeletedEventData.Serialization.cs index f51a529553b5..f703e5c7d157 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceDeletedEventData.Serialization.cs @@ -36,21 +36,12 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("resourceType"u8); writer.WriteStringValue(FhirResourceType.ToString()); - if (Optional.IsDefined(FhirServiceHostName)) - { - writer.WritePropertyName("resourceFhirAccount"u8); - writer.WriteStringValue(FhirServiceHostName); - } - if (Optional.IsDefined(FhirResourceId)) - { - writer.WritePropertyName("resourceFhirId"u8); - writer.WriteStringValue(FhirResourceId); - } - if (Optional.IsDefined(FhirResourceVersionId)) - { - writer.WritePropertyName("resourceVersionId"u8); - writer.WriteNumberValue(FhirResourceVersionId.Value); - } + writer.WritePropertyName("resourceFhirAccount"u8); + writer.WriteStringValue(FhirServiceHostName); + writer.WritePropertyName("resourceFhirId"u8); + writer.WriteStringValue(FhirResourceId); + writer.WritePropertyName("resourceVersionId"u8); + writer.WriteNumberValue(FhirResourceVersionId); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -91,7 +82,7 @@ internal static HealthcareFhirResourceDeletedEventData DeserializeHealthcareFhir HealthcareFhirResourceType resourceType = default; string resourceFhirAccount = default; string resourceFhirId = default; - long? resourceVersionId = default; + long resourceVersionId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -113,10 +104,6 @@ internal static HealthcareFhirResourceDeletedEventData DeserializeHealthcareFhir } if (property.NameEquals("resourceVersionId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } resourceVersionId = property.Value.GetInt64(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceDeletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceDeletedEventData.cs index 6e883f6f61e4..c6a9b9319de3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceDeletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceDeletedEventData.cs @@ -47,9 +47,19 @@ public partial class HealthcareFhirResourceDeletedEventData /// Initializes a new instance of . /// Type of HL7 FHIR resource. - internal HealthcareFhirResourceDeletedEventData(HealthcareFhirResourceType fhirResourceType) + /// Domain name of FHIR account for this resource. + /// Id of HL7 FHIR resource. + /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). + /// or is null. + internal HealthcareFhirResourceDeletedEventData(HealthcareFhirResourceType fhirResourceType, string fhirServiceHostName, string fhirResourceId, long fhirResourceVersionId) { + Argument.AssertNotNull(fhirServiceHostName, nameof(fhirServiceHostName)); + Argument.AssertNotNull(fhirResourceId, nameof(fhirResourceId)); + FhirResourceType = fhirResourceType; + FhirServiceHostName = fhirServiceHostName; + FhirResourceId = fhirResourceId; + FhirResourceVersionId = fhirResourceVersionId; } /// Initializes a new instance of . @@ -58,7 +68,7 @@ internal HealthcareFhirResourceDeletedEventData(HealthcareFhirResourceType fhirR /// Id of HL7 FHIR resource. /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). /// Keeps track of any properties unknown to the library. - internal HealthcareFhirResourceDeletedEventData(HealthcareFhirResourceType fhirResourceType, string fhirServiceHostName, string fhirResourceId, long? fhirResourceVersionId, IDictionary serializedAdditionalRawData) + internal HealthcareFhirResourceDeletedEventData(HealthcareFhirResourceType fhirResourceType, string fhirServiceHostName, string fhirResourceId, long fhirResourceVersionId, IDictionary serializedAdditionalRawData) { FhirResourceType = fhirResourceType; FhirServiceHostName = fhirServiceHostName; @@ -79,6 +89,6 @@ internal HealthcareFhirResourceDeletedEventData() /// Id of HL7 FHIR resource. public string FhirResourceId { get; } /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). - public long? FhirResourceVersionId { get; } + public long FhirResourceVersionId { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceUpdatedEventData.Serialization.cs index c8002a984a9c..2f437e213ad0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceUpdatedEventData.Serialization.cs @@ -36,21 +36,12 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("resourceType"u8); writer.WriteStringValue(FhirResourceType.ToString()); - if (Optional.IsDefined(FhirServiceHostName)) - { - writer.WritePropertyName("resourceFhirAccount"u8); - writer.WriteStringValue(FhirServiceHostName); - } - if (Optional.IsDefined(FhirResourceId)) - { - writer.WritePropertyName("resourceFhirId"u8); - writer.WriteStringValue(FhirResourceId); - } - if (Optional.IsDefined(FhirResourceVersionId)) - { - writer.WritePropertyName("resourceVersionId"u8); - writer.WriteNumberValue(FhirResourceVersionId.Value); - } + writer.WritePropertyName("resourceFhirAccount"u8); + writer.WriteStringValue(FhirServiceHostName); + writer.WritePropertyName("resourceFhirId"u8); + writer.WriteStringValue(FhirResourceId); + writer.WritePropertyName("resourceVersionId"u8); + writer.WriteNumberValue(FhirResourceVersionId); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -91,7 +82,7 @@ internal static HealthcareFhirResourceUpdatedEventData DeserializeHealthcareFhir HealthcareFhirResourceType resourceType = default; string resourceFhirAccount = default; string resourceFhirId = default; - long? resourceVersionId = default; + long resourceVersionId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -113,10 +104,6 @@ internal static HealthcareFhirResourceUpdatedEventData DeserializeHealthcareFhir } if (property.NameEquals("resourceVersionId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } resourceVersionId = property.Value.GetInt64(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceUpdatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceUpdatedEventData.cs index 7133f01a47d2..ac83de83deb1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceUpdatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/HealthcareFhirResourceUpdatedEventData.cs @@ -47,9 +47,19 @@ public partial class HealthcareFhirResourceUpdatedEventData /// Initializes a new instance of . /// Type of HL7 FHIR resource. - internal HealthcareFhirResourceUpdatedEventData(HealthcareFhirResourceType fhirResourceType) + /// Domain name of FHIR account for this resource. + /// Id of HL7 FHIR resource. + /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). + /// or is null. + internal HealthcareFhirResourceUpdatedEventData(HealthcareFhirResourceType fhirResourceType, string fhirServiceHostName, string fhirResourceId, long fhirResourceVersionId) { + Argument.AssertNotNull(fhirServiceHostName, nameof(fhirServiceHostName)); + Argument.AssertNotNull(fhirResourceId, nameof(fhirResourceId)); + FhirResourceType = fhirResourceType; + FhirServiceHostName = fhirServiceHostName; + FhirResourceId = fhirResourceId; + FhirResourceVersionId = fhirResourceVersionId; } /// Initializes a new instance of . @@ -58,7 +68,7 @@ internal HealthcareFhirResourceUpdatedEventData(HealthcareFhirResourceType fhirR /// Id of HL7 FHIR resource. /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). /// Keeps track of any properties unknown to the library. - internal HealthcareFhirResourceUpdatedEventData(HealthcareFhirResourceType fhirResourceType, string fhirServiceHostName, string fhirResourceId, long? fhirResourceVersionId, IDictionary serializedAdditionalRawData) + internal HealthcareFhirResourceUpdatedEventData(HealthcareFhirResourceType fhirResourceType, string fhirServiceHostName, string fhirResourceId, long fhirResourceVersionId, IDictionary serializedAdditionalRawData) { FhirResourceType = fhirResourceType; FhirServiceHostName = fhirServiceHostName; @@ -79,6 +89,6 @@ internal HealthcareFhirResourceUpdatedEventData() /// Id of HL7 FHIR resource. public string FhirResourceId { get; } /// VersionId of HL7 FHIR resource. It changes when the resource is created, updated, or deleted(soft-deletion). - public long? FhirResourceVersionId { get; } + public long FhirResourceVersionId { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceConnectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceConnectedEventData.cs index bab1f7fd67b6..f94cca1d08ef 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceConnectedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceConnectedEventData.cs @@ -14,10 +14,14 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class IotHubDeviceConnectedEventData : DeviceConnectionStateEventProperties { /// Initializes a new instance of . + /// 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: - : . + % _ # * ? ! ( ) , = `@` ; $ '. + /// Name of the IoT Hub where the device was created or deleted. /// Information about the device connection state event. - /// is null. - internal IotHubDeviceConnectedEventData(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo) : base(deviceConnectionStateEventInfo) + /// , or is null. + internal IotHubDeviceConnectedEventData(string deviceId, string hubName, DeviceConnectionStateEventInfo deviceConnectionStateEventInfo) : base(deviceId, hubName, deviceConnectionStateEventInfo) { + Argument.AssertNotNull(deviceId, nameof(deviceId)); + Argument.AssertNotNull(hubName, nameof(hubName)); Argument.AssertNotNull(deviceConnectionStateEventInfo, nameof(deviceConnectionStateEventInfo)); } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceCreatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceCreatedEventData.cs index 6fff044ca2cd..b2e7faff176b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceCreatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceCreatedEventData.cs @@ -14,10 +14,14 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class IotHubDeviceCreatedEventData : DeviceLifeCycleEventProperties { /// Initializes a new instance of . + /// 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: - : . + % _ # * ? ! ( ) , = `@` ; $ '. + /// Name of the IoT Hub where the device was created or deleted. /// Information about the device twin, which is the cloud representation of application device metadata. - /// is null. - internal IotHubDeviceCreatedEventData(DeviceTwinInfo twin) : base(twin) + /// , or is null. + internal IotHubDeviceCreatedEventData(string deviceId, string hubName, DeviceTwinInfo twin) : base(deviceId, hubName, twin) { + Argument.AssertNotNull(deviceId, nameof(deviceId)); + Argument.AssertNotNull(hubName, nameof(hubName)); Argument.AssertNotNull(twin, nameof(twin)); } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceDeletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceDeletedEventData.cs index 3bc2d22cdc0e..6226a6094009 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceDeletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceDeletedEventData.cs @@ -14,10 +14,14 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class IotHubDeviceDeletedEventData : DeviceLifeCycleEventProperties { /// Initializes a new instance of . + /// 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: - : . + % _ # * ? ! ( ) , = `@` ; $ '. + /// Name of the IoT Hub where the device was created or deleted. /// Information about the device twin, which is the cloud representation of application device metadata. - /// is null. - internal IotHubDeviceDeletedEventData(DeviceTwinInfo twin) : base(twin) + /// , or is null. + internal IotHubDeviceDeletedEventData(string deviceId, string hubName, DeviceTwinInfo twin) : base(deviceId, hubName, twin) { + Argument.AssertNotNull(deviceId, nameof(deviceId)); + Argument.AssertNotNull(hubName, nameof(hubName)); Argument.AssertNotNull(twin, nameof(twin)); } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceDisconnectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceDisconnectedEventData.cs index 3d5cbc20be6d..ca74eb38c106 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceDisconnectedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/IotHubDeviceDisconnectedEventData.cs @@ -14,10 +14,14 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class IotHubDeviceDisconnectedEventData : DeviceConnectionStateEventProperties { /// Initializes a new instance of . + /// 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: - : . + % _ # * ? ! ( ) , = `@` ; $ '. + /// Name of the IoT Hub where the device was created or deleted. /// Information about the device connection state event. - /// is null. - internal IotHubDeviceDisconnectedEventData(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo) : base(deviceConnectionStateEventInfo) + /// , or is null. + internal IotHubDeviceDisconnectedEventData(string deviceId, string hubName, DeviceConnectionStateEventInfo deviceConnectionStateEventInfo) : base(deviceId, hubName, deviceConnectionStateEventInfo) { + Argument.AssertNotNull(deviceId, nameof(deviceId)); + Argument.AssertNotNull(hubName, nameof(hubName)); Argument.AssertNotNull(deviceConnectionStateEventInfo, nameof(deviceConnectionStateEventInfo)); } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultAccessPolicyChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultAccessPolicyChangedEventData.Serialization.cs index 1889a7a88d95..94857dc10773 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultAccessPolicyChangedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultAccessPolicyChangedEventData.Serialization.cs @@ -34,41 +34,20 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(KeyVaultAccessPolicyChangedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("Id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(VaultName)) - { - writer.WritePropertyName("VaultName"u8); - writer.WriteStringValue(VaultName); - } - if (Optional.IsDefined(ObjectType)) - { - writer.WritePropertyName("ObjectType"u8); - writer.WriteStringValue(ObjectType); - } - if (Optional.IsDefined(ObjectName)) - { - writer.WritePropertyName("ObjectName"u8); - writer.WriteStringValue(ObjectName); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("Version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(NBF)) - { - writer.WritePropertyName("NBF"u8); - writer.WriteNumberValue(NBF.Value); - } - if (Optional.IsDefined(EXP)) - { - writer.WritePropertyName("EXP"u8); - writer.WriteNumberValue(EXP.Value); - } + writer.WritePropertyName("Id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("VaultName"u8); + writer.WriteStringValue(VaultName); + writer.WritePropertyName("ObjectType"u8); + writer.WriteStringValue(ObjectType); + writer.WritePropertyName("ObjectName"u8); + writer.WriteStringValue(ObjectName); + writer.WritePropertyName("Version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("NBF"u8); + writer.WriteNumberValue(NBF); + writer.WritePropertyName("EXP"u8); + writer.WriteNumberValue(EXP); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -111,8 +90,8 @@ internal static KeyVaultAccessPolicyChangedEventData DeserializeKeyVaultAccessPo string objectType = default; string objectName = default; string version = default; - float? nbf = default; - float? exp = default; + float nbf = default; + float exp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -144,19 +123,11 @@ internal static KeyVaultAccessPolicyChangedEventData DeserializeKeyVaultAccessPo } if (property.NameEquals("NBF"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nbf = property.Value.GetSingle(); continue; } if (property.NameEquals("EXP"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } exp = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultAccessPolicyChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultAccessPolicyChangedEventData.cs index 98eb5f13d699..b1b338134f95 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultAccessPolicyChangedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultAccessPolicyChangedEventData.cs @@ -46,8 +46,29 @@ public partial class KeyVaultAccessPolicyChangedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal KeyVaultAccessPolicyChangedEventData() + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// , , , or is null. + internal KeyVaultAccessPolicyChangedEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(vaultName, nameof(vaultName)); + Argument.AssertNotNull(objectType, nameof(objectType)); + Argument.AssertNotNull(objectName, nameof(objectName)); + Argument.AssertNotNull(version, nameof(version)); + + Id = id; + VaultName = vaultName; + ObjectType = objectType; + ObjectName = objectName; + Version = version; + NBF = nbf; + EXP = exp; } /// Initializes a new instance of . @@ -59,7 +80,7 @@ internal KeyVaultAccessPolicyChangedEventData() /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// Keeps track of any properties unknown to the library. - internal KeyVaultAccessPolicyChangedEventData(string id, string vaultName, string objectType, string objectName, string version, float? nbf, float? exp, IDictionary serializedAdditionalRawData) + internal KeyVaultAccessPolicyChangedEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp, IDictionary serializedAdditionalRawData) { Id = id; VaultName = vaultName; @@ -71,6 +92,11 @@ internal KeyVaultAccessPolicyChangedEventData(string id, string vaultName, strin _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal KeyVaultAccessPolicyChangedEventData() + { + } + /// The id of the object that triggered this event. public string Id { get; } /// Key vault name of the object that triggered this event. @@ -82,8 +108,8 @@ internal KeyVaultAccessPolicyChangedEventData(string id, string vaultName, strin /// The version of the object that triggered this event. public string Version { get; } /// Not before date of the object that triggered this event. - public float? NBF { get; } + public float NBF { get; } /// The expiration date of the object that triggered this event. - public float? EXP { get; } + public float EXP { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateExpiredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateExpiredEventData.Serialization.cs index 97133d32eff4..eab9adff61db 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateExpiredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateExpiredEventData.Serialization.cs @@ -34,41 +34,20 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(KeyVaultCertificateExpiredEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("Id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(VaultName)) - { - writer.WritePropertyName("VaultName"u8); - writer.WriteStringValue(VaultName); - } - if (Optional.IsDefined(ObjectType)) - { - writer.WritePropertyName("ObjectType"u8); - writer.WriteStringValue(ObjectType); - } - if (Optional.IsDefined(ObjectName)) - { - writer.WritePropertyName("ObjectName"u8); - writer.WriteStringValue(ObjectName); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("Version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(NBF)) - { - writer.WritePropertyName("NBF"u8); - writer.WriteNumberValue(NBF.Value); - } - if (Optional.IsDefined(EXP)) - { - writer.WritePropertyName("EXP"u8); - writer.WriteNumberValue(EXP.Value); - } + writer.WritePropertyName("Id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("VaultName"u8); + writer.WriteStringValue(VaultName); + writer.WritePropertyName("ObjectType"u8); + writer.WriteStringValue(ObjectType); + writer.WritePropertyName("ObjectName"u8); + writer.WriteStringValue(ObjectName); + writer.WritePropertyName("Version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("NBF"u8); + writer.WriteNumberValue(NBF); + writer.WritePropertyName("EXP"u8); + writer.WriteNumberValue(EXP); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -111,8 +90,8 @@ internal static KeyVaultCertificateExpiredEventData DeserializeKeyVaultCertifica string objectType = default; string objectName = default; string version = default; - float? nbf = default; - float? exp = default; + float nbf = default; + float exp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -144,19 +123,11 @@ internal static KeyVaultCertificateExpiredEventData DeserializeKeyVaultCertifica } if (property.NameEquals("NBF"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nbf = property.Value.GetSingle(); continue; } if (property.NameEquals("EXP"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } exp = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateExpiredEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateExpiredEventData.cs index c210c2b0a99a..d34016bd6338 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateExpiredEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateExpiredEventData.cs @@ -46,8 +46,29 @@ public partial class KeyVaultCertificateExpiredEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal KeyVaultCertificateExpiredEventData() + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// , , , or is null. + internal KeyVaultCertificateExpiredEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(vaultName, nameof(vaultName)); + Argument.AssertNotNull(objectType, nameof(objectType)); + Argument.AssertNotNull(objectName, nameof(objectName)); + Argument.AssertNotNull(version, nameof(version)); + + Id = id; + VaultName = vaultName; + ObjectType = objectType; + ObjectName = objectName; + Version = version; + NBF = nbf; + EXP = exp; } /// Initializes a new instance of . @@ -59,7 +80,7 @@ internal KeyVaultCertificateExpiredEventData() /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// Keeps track of any properties unknown to the library. - internal KeyVaultCertificateExpiredEventData(string id, string vaultName, string objectType, string objectName, string version, float? nbf, float? exp, IDictionary serializedAdditionalRawData) + internal KeyVaultCertificateExpiredEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp, IDictionary serializedAdditionalRawData) { Id = id; VaultName = vaultName; @@ -71,6 +92,11 @@ internal KeyVaultCertificateExpiredEventData(string id, string vaultName, string _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal KeyVaultCertificateExpiredEventData() + { + } + /// The id of the object that triggered this event. public string Id { get; } /// Key vault name of the object that triggered this event. @@ -82,8 +108,8 @@ internal KeyVaultCertificateExpiredEventData(string id, string vaultName, string /// The version of the object that triggered this event. public string Version { get; } /// Not before date of the object that triggered this event. - public float? NBF { get; } + public float NBF { get; } /// The expiration date of the object that triggered this event. - public float? EXP { get; } + public float EXP { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNearExpiryEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNearExpiryEventData.Serialization.cs index 93bdba22a7c9..89861cdea27b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNearExpiryEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNearExpiryEventData.Serialization.cs @@ -34,41 +34,20 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(KeyVaultCertificateNearExpiryEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("Id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(VaultName)) - { - writer.WritePropertyName("VaultName"u8); - writer.WriteStringValue(VaultName); - } - if (Optional.IsDefined(ObjectType)) - { - writer.WritePropertyName("ObjectType"u8); - writer.WriteStringValue(ObjectType); - } - if (Optional.IsDefined(ObjectName)) - { - writer.WritePropertyName("ObjectName"u8); - writer.WriteStringValue(ObjectName); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("Version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(NBF)) - { - writer.WritePropertyName("NBF"u8); - writer.WriteNumberValue(NBF.Value); - } - if (Optional.IsDefined(EXP)) - { - writer.WritePropertyName("EXP"u8); - writer.WriteNumberValue(EXP.Value); - } + writer.WritePropertyName("Id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("VaultName"u8); + writer.WriteStringValue(VaultName); + writer.WritePropertyName("ObjectType"u8); + writer.WriteStringValue(ObjectType); + writer.WritePropertyName("ObjectName"u8); + writer.WriteStringValue(ObjectName); + writer.WritePropertyName("Version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("NBF"u8); + writer.WriteNumberValue(NBF); + writer.WritePropertyName("EXP"u8); + writer.WriteNumberValue(EXP); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -111,8 +90,8 @@ internal static KeyVaultCertificateNearExpiryEventData DeserializeKeyVaultCertif string objectType = default; string objectName = default; string version = default; - float? nbf = default; - float? exp = default; + float nbf = default; + float exp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -144,19 +123,11 @@ internal static KeyVaultCertificateNearExpiryEventData DeserializeKeyVaultCertif } if (property.NameEquals("NBF"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nbf = property.Value.GetSingle(); continue; } if (property.NameEquals("EXP"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } exp = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNearExpiryEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNearExpiryEventData.cs index 149ea3648db0..fb6084a2e245 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNearExpiryEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNearExpiryEventData.cs @@ -46,8 +46,29 @@ public partial class KeyVaultCertificateNearExpiryEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal KeyVaultCertificateNearExpiryEventData() + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// , , , or is null. + internal KeyVaultCertificateNearExpiryEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(vaultName, nameof(vaultName)); + Argument.AssertNotNull(objectType, nameof(objectType)); + Argument.AssertNotNull(objectName, nameof(objectName)); + Argument.AssertNotNull(version, nameof(version)); + + Id = id; + VaultName = vaultName; + ObjectType = objectType; + ObjectName = objectName; + Version = version; + NBF = nbf; + EXP = exp; } /// Initializes a new instance of . @@ -59,7 +80,7 @@ internal KeyVaultCertificateNearExpiryEventData() /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// Keeps track of any properties unknown to the library. - internal KeyVaultCertificateNearExpiryEventData(string id, string vaultName, string objectType, string objectName, string version, float? nbf, float? exp, IDictionary serializedAdditionalRawData) + internal KeyVaultCertificateNearExpiryEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp, IDictionary serializedAdditionalRawData) { Id = id; VaultName = vaultName; @@ -71,6 +92,11 @@ internal KeyVaultCertificateNearExpiryEventData(string id, string vaultName, str _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal KeyVaultCertificateNearExpiryEventData() + { + } + /// The id of the object that triggered this event. public string Id { get; } /// Key vault name of the object that triggered this event. @@ -82,8 +108,8 @@ internal KeyVaultCertificateNearExpiryEventData(string id, string vaultName, str /// The version of the object that triggered this event. public string Version { get; } /// Not before date of the object that triggered this event. - public float? NBF { get; } + public float NBF { get; } /// The expiration date of the object that triggered this event. - public float? EXP { get; } + public float EXP { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNewVersionCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNewVersionCreatedEventData.Serialization.cs index 20a19baa3ea8..3fbc39657ba9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNewVersionCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNewVersionCreatedEventData.Serialization.cs @@ -34,41 +34,20 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(KeyVaultCertificateNewVersionCreatedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("Id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(VaultName)) - { - writer.WritePropertyName("VaultName"u8); - writer.WriteStringValue(VaultName); - } - if (Optional.IsDefined(ObjectType)) - { - writer.WritePropertyName("ObjectType"u8); - writer.WriteStringValue(ObjectType); - } - if (Optional.IsDefined(ObjectName)) - { - writer.WritePropertyName("ObjectName"u8); - writer.WriteStringValue(ObjectName); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("Version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(NBF)) - { - writer.WritePropertyName("NBF"u8); - writer.WriteNumberValue(NBF.Value); - } - if (Optional.IsDefined(EXP)) - { - writer.WritePropertyName("EXP"u8); - writer.WriteNumberValue(EXP.Value); - } + writer.WritePropertyName("Id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("VaultName"u8); + writer.WriteStringValue(VaultName); + writer.WritePropertyName("ObjectType"u8); + writer.WriteStringValue(ObjectType); + writer.WritePropertyName("ObjectName"u8); + writer.WriteStringValue(ObjectName); + writer.WritePropertyName("Version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("NBF"u8); + writer.WriteNumberValue(NBF); + writer.WritePropertyName("EXP"u8); + writer.WriteNumberValue(EXP); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -111,8 +90,8 @@ internal static KeyVaultCertificateNewVersionCreatedEventData DeserializeKeyVaul string objectType = default; string objectName = default; string version = default; - float? nbf = default; - float? exp = default; + float nbf = default; + float exp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -144,19 +123,11 @@ internal static KeyVaultCertificateNewVersionCreatedEventData DeserializeKeyVaul } if (property.NameEquals("NBF"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nbf = property.Value.GetSingle(); continue; } if (property.NameEquals("EXP"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } exp = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNewVersionCreatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNewVersionCreatedEventData.cs index 317264ad4e2e..46a4bb9b5513 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNewVersionCreatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultCertificateNewVersionCreatedEventData.cs @@ -46,8 +46,29 @@ public partial class KeyVaultCertificateNewVersionCreatedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal KeyVaultCertificateNewVersionCreatedEventData() + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// , , , or is null. + internal KeyVaultCertificateNewVersionCreatedEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(vaultName, nameof(vaultName)); + Argument.AssertNotNull(objectType, nameof(objectType)); + Argument.AssertNotNull(objectName, nameof(objectName)); + Argument.AssertNotNull(version, nameof(version)); + + Id = id; + VaultName = vaultName; + ObjectType = objectType; + ObjectName = objectName; + Version = version; + NBF = nbf; + EXP = exp; } /// Initializes a new instance of . @@ -59,7 +80,7 @@ internal KeyVaultCertificateNewVersionCreatedEventData() /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// Keeps track of any properties unknown to the library. - internal KeyVaultCertificateNewVersionCreatedEventData(string id, string vaultName, string objectType, string objectName, string version, float? nbf, float? exp, IDictionary serializedAdditionalRawData) + internal KeyVaultCertificateNewVersionCreatedEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp, IDictionary serializedAdditionalRawData) { Id = id; VaultName = vaultName; @@ -71,6 +92,11 @@ internal KeyVaultCertificateNewVersionCreatedEventData(string id, string vaultNa _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal KeyVaultCertificateNewVersionCreatedEventData() + { + } + /// The id of the object that triggered this event. public string Id { get; } /// Key vault name of the object that triggered this event. @@ -82,8 +108,8 @@ internal KeyVaultCertificateNewVersionCreatedEventData(string id, string vaultNa /// The version of the object that triggered this event. public string Version { get; } /// Not before date of the object that triggered this event. - public float? NBF { get; } + public float NBF { get; } /// The expiration date of the object that triggered this event. - public float? EXP { get; } + public float EXP { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyExpiredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyExpiredEventData.Serialization.cs index f3399ac7eb99..e3d525a235c0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyExpiredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyExpiredEventData.Serialization.cs @@ -34,41 +34,20 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(KeyVaultKeyExpiredEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("Id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(VaultName)) - { - writer.WritePropertyName("VaultName"u8); - writer.WriteStringValue(VaultName); - } - if (Optional.IsDefined(ObjectType)) - { - writer.WritePropertyName("ObjectType"u8); - writer.WriteStringValue(ObjectType); - } - if (Optional.IsDefined(ObjectName)) - { - writer.WritePropertyName("ObjectName"u8); - writer.WriteStringValue(ObjectName); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("Version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(NBF)) - { - writer.WritePropertyName("NBF"u8); - writer.WriteNumberValue(NBF.Value); - } - if (Optional.IsDefined(EXP)) - { - writer.WritePropertyName("EXP"u8); - writer.WriteNumberValue(EXP.Value); - } + writer.WritePropertyName("Id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("VaultName"u8); + writer.WriteStringValue(VaultName); + writer.WritePropertyName("ObjectType"u8); + writer.WriteStringValue(ObjectType); + writer.WritePropertyName("ObjectName"u8); + writer.WriteStringValue(ObjectName); + writer.WritePropertyName("Version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("NBF"u8); + writer.WriteNumberValue(NBF); + writer.WritePropertyName("EXP"u8); + writer.WriteNumberValue(EXP); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -111,8 +90,8 @@ internal static KeyVaultKeyExpiredEventData DeserializeKeyVaultKeyExpiredEventDa string objectType = default; string objectName = default; string version = default; - float? nbf = default; - float? exp = default; + float nbf = default; + float exp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -144,19 +123,11 @@ internal static KeyVaultKeyExpiredEventData DeserializeKeyVaultKeyExpiredEventDa } if (property.NameEquals("NBF"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nbf = property.Value.GetSingle(); continue; } if (property.NameEquals("EXP"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } exp = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyExpiredEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyExpiredEventData.cs index 673c5bcc5b78..995dac115d3e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyExpiredEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyExpiredEventData.cs @@ -46,8 +46,29 @@ public partial class KeyVaultKeyExpiredEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal KeyVaultKeyExpiredEventData() + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// , , , or is null. + internal KeyVaultKeyExpiredEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(vaultName, nameof(vaultName)); + Argument.AssertNotNull(objectType, nameof(objectType)); + Argument.AssertNotNull(objectName, nameof(objectName)); + Argument.AssertNotNull(version, nameof(version)); + + Id = id; + VaultName = vaultName; + ObjectType = objectType; + ObjectName = objectName; + Version = version; + NBF = nbf; + EXP = exp; } /// Initializes a new instance of . @@ -59,7 +80,7 @@ internal KeyVaultKeyExpiredEventData() /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// Keeps track of any properties unknown to the library. - internal KeyVaultKeyExpiredEventData(string id, string vaultName, string objectType, string objectName, string version, float? nbf, float? exp, IDictionary serializedAdditionalRawData) + internal KeyVaultKeyExpiredEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp, IDictionary serializedAdditionalRawData) { Id = id; VaultName = vaultName; @@ -71,6 +92,11 @@ internal KeyVaultKeyExpiredEventData(string id, string vaultName, string objectT _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal KeyVaultKeyExpiredEventData() + { + } + /// The id of the object that triggered this event. public string Id { get; } /// Key vault name of the object that triggered this event. @@ -82,8 +108,8 @@ internal KeyVaultKeyExpiredEventData(string id, string vaultName, string objectT /// The version of the object that triggered this event. public string Version { get; } /// Not before date of the object that triggered this event. - public float? NBF { get; } + public float NBF { get; } /// The expiration date of the object that triggered this event. - public float? EXP { get; } + public float EXP { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNearExpiryEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNearExpiryEventData.Serialization.cs index 57bfc5f4618c..7fcffc4d630b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNearExpiryEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNearExpiryEventData.Serialization.cs @@ -34,41 +34,20 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(KeyVaultKeyNearExpiryEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("Id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(VaultName)) - { - writer.WritePropertyName("VaultName"u8); - writer.WriteStringValue(VaultName); - } - if (Optional.IsDefined(ObjectType)) - { - writer.WritePropertyName("ObjectType"u8); - writer.WriteStringValue(ObjectType); - } - if (Optional.IsDefined(ObjectName)) - { - writer.WritePropertyName("ObjectName"u8); - writer.WriteStringValue(ObjectName); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("Version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(NBF)) - { - writer.WritePropertyName("NBF"u8); - writer.WriteNumberValue(NBF.Value); - } - if (Optional.IsDefined(EXP)) - { - writer.WritePropertyName("EXP"u8); - writer.WriteNumberValue(EXP.Value); - } + writer.WritePropertyName("Id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("VaultName"u8); + writer.WriteStringValue(VaultName); + writer.WritePropertyName("ObjectType"u8); + writer.WriteStringValue(ObjectType); + writer.WritePropertyName("ObjectName"u8); + writer.WriteStringValue(ObjectName); + writer.WritePropertyName("Version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("NBF"u8); + writer.WriteNumberValue(NBF); + writer.WritePropertyName("EXP"u8); + writer.WriteNumberValue(EXP); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -111,8 +90,8 @@ internal static KeyVaultKeyNearExpiryEventData DeserializeKeyVaultKeyNearExpiryE string objectType = default; string objectName = default; string version = default; - float? nbf = default; - float? exp = default; + float nbf = default; + float exp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -144,19 +123,11 @@ internal static KeyVaultKeyNearExpiryEventData DeserializeKeyVaultKeyNearExpiryE } if (property.NameEquals("NBF"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nbf = property.Value.GetSingle(); continue; } if (property.NameEquals("EXP"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } exp = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNearExpiryEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNearExpiryEventData.cs index 97ceefad9691..3f0f47acdb7f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNearExpiryEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNearExpiryEventData.cs @@ -46,8 +46,29 @@ public partial class KeyVaultKeyNearExpiryEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal KeyVaultKeyNearExpiryEventData() + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// , , , or is null. + internal KeyVaultKeyNearExpiryEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(vaultName, nameof(vaultName)); + Argument.AssertNotNull(objectType, nameof(objectType)); + Argument.AssertNotNull(objectName, nameof(objectName)); + Argument.AssertNotNull(version, nameof(version)); + + Id = id; + VaultName = vaultName; + ObjectType = objectType; + ObjectName = objectName; + Version = version; + NBF = nbf; + EXP = exp; } /// Initializes a new instance of . @@ -59,7 +80,7 @@ internal KeyVaultKeyNearExpiryEventData() /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// Keeps track of any properties unknown to the library. - internal KeyVaultKeyNearExpiryEventData(string id, string vaultName, string objectType, string objectName, string version, float? nbf, float? exp, IDictionary serializedAdditionalRawData) + internal KeyVaultKeyNearExpiryEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp, IDictionary serializedAdditionalRawData) { Id = id; VaultName = vaultName; @@ -71,6 +92,11 @@ internal KeyVaultKeyNearExpiryEventData(string id, string vaultName, string obje _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal KeyVaultKeyNearExpiryEventData() + { + } + /// The id of the object that triggered this event. public string Id { get; } /// Key vault name of the object that triggered this event. @@ -82,8 +108,8 @@ internal KeyVaultKeyNearExpiryEventData(string id, string vaultName, string obje /// The version of the object that triggered this event. public string Version { get; } /// Not before date of the object that triggered this event. - public float? NBF { get; } + public float NBF { get; } /// The expiration date of the object that triggered this event. - public float? EXP { get; } + public float EXP { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNewVersionCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNewVersionCreatedEventData.Serialization.cs index ff158b77a99d..864da1f89f00 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNewVersionCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNewVersionCreatedEventData.Serialization.cs @@ -34,41 +34,20 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(KeyVaultKeyNewVersionCreatedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("Id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(VaultName)) - { - writer.WritePropertyName("VaultName"u8); - writer.WriteStringValue(VaultName); - } - if (Optional.IsDefined(ObjectType)) - { - writer.WritePropertyName("ObjectType"u8); - writer.WriteStringValue(ObjectType); - } - if (Optional.IsDefined(ObjectName)) - { - writer.WritePropertyName("ObjectName"u8); - writer.WriteStringValue(ObjectName); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("Version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(NBF)) - { - writer.WritePropertyName("NBF"u8); - writer.WriteNumberValue(NBF.Value); - } - if (Optional.IsDefined(EXP)) - { - writer.WritePropertyName("EXP"u8); - writer.WriteNumberValue(EXP.Value); - } + writer.WritePropertyName("Id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("VaultName"u8); + writer.WriteStringValue(VaultName); + writer.WritePropertyName("ObjectType"u8); + writer.WriteStringValue(ObjectType); + writer.WritePropertyName("ObjectName"u8); + writer.WriteStringValue(ObjectName); + writer.WritePropertyName("Version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("NBF"u8); + writer.WriteNumberValue(NBF); + writer.WritePropertyName("EXP"u8); + writer.WriteNumberValue(EXP); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -111,8 +90,8 @@ internal static KeyVaultKeyNewVersionCreatedEventData DeserializeKeyVaultKeyNewV string objectType = default; string objectName = default; string version = default; - float? nbf = default; - float? exp = default; + float nbf = default; + float exp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -144,19 +123,11 @@ internal static KeyVaultKeyNewVersionCreatedEventData DeserializeKeyVaultKeyNewV } if (property.NameEquals("NBF"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nbf = property.Value.GetSingle(); continue; } if (property.NameEquals("EXP"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } exp = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNewVersionCreatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNewVersionCreatedEventData.cs index 1f656d1e5b92..44c37ea3aea3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNewVersionCreatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultKeyNewVersionCreatedEventData.cs @@ -46,8 +46,29 @@ public partial class KeyVaultKeyNewVersionCreatedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal KeyVaultKeyNewVersionCreatedEventData() + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// , , , or is null. + internal KeyVaultKeyNewVersionCreatedEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(vaultName, nameof(vaultName)); + Argument.AssertNotNull(objectType, nameof(objectType)); + Argument.AssertNotNull(objectName, nameof(objectName)); + Argument.AssertNotNull(version, nameof(version)); + + Id = id; + VaultName = vaultName; + ObjectType = objectType; + ObjectName = objectName; + Version = version; + NBF = nbf; + EXP = exp; } /// Initializes a new instance of . @@ -59,7 +80,7 @@ internal KeyVaultKeyNewVersionCreatedEventData() /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// Keeps track of any properties unknown to the library. - internal KeyVaultKeyNewVersionCreatedEventData(string id, string vaultName, string objectType, string objectName, string version, float? nbf, float? exp, IDictionary serializedAdditionalRawData) + internal KeyVaultKeyNewVersionCreatedEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp, IDictionary serializedAdditionalRawData) { Id = id; VaultName = vaultName; @@ -71,6 +92,11 @@ internal KeyVaultKeyNewVersionCreatedEventData(string id, string vaultName, stri _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal KeyVaultKeyNewVersionCreatedEventData() + { + } + /// The id of the object that triggered this event. public string Id { get; } /// Key vault name of the object that triggered this event. @@ -82,8 +108,8 @@ internal KeyVaultKeyNewVersionCreatedEventData(string id, string vaultName, stri /// The version of the object that triggered this event. public string Version { get; } /// Not before date of the object that triggered this event. - public float? NBF { get; } + public float NBF { get; } /// The expiration date of the object that triggered this event. - public float? EXP { get; } + public float EXP { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretExpiredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretExpiredEventData.Serialization.cs index efa809daa4ef..946a6ed70e05 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretExpiredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretExpiredEventData.Serialization.cs @@ -34,41 +34,20 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(KeyVaultSecretExpiredEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("Id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(VaultName)) - { - writer.WritePropertyName("VaultName"u8); - writer.WriteStringValue(VaultName); - } - if (Optional.IsDefined(ObjectType)) - { - writer.WritePropertyName("ObjectType"u8); - writer.WriteStringValue(ObjectType); - } - if (Optional.IsDefined(ObjectName)) - { - writer.WritePropertyName("ObjectName"u8); - writer.WriteStringValue(ObjectName); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("Version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(NBF)) - { - writer.WritePropertyName("NBF"u8); - writer.WriteNumberValue(NBF.Value); - } - if (Optional.IsDefined(EXP)) - { - writer.WritePropertyName("EXP"u8); - writer.WriteNumberValue(EXP.Value); - } + writer.WritePropertyName("Id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("VaultName"u8); + writer.WriteStringValue(VaultName); + writer.WritePropertyName("ObjectType"u8); + writer.WriteStringValue(ObjectType); + writer.WritePropertyName("ObjectName"u8); + writer.WriteStringValue(ObjectName); + writer.WritePropertyName("Version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("NBF"u8); + writer.WriteNumberValue(NBF); + writer.WritePropertyName("EXP"u8); + writer.WriteNumberValue(EXP); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -111,8 +90,8 @@ internal static KeyVaultSecretExpiredEventData DeserializeKeyVaultSecretExpiredE string objectType = default; string objectName = default; string version = default; - float? nbf = default; - float? exp = default; + float nbf = default; + float exp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -144,19 +123,11 @@ internal static KeyVaultSecretExpiredEventData DeserializeKeyVaultSecretExpiredE } if (property.NameEquals("NBF"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nbf = property.Value.GetSingle(); continue; } if (property.NameEquals("EXP"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } exp = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretExpiredEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretExpiredEventData.cs index 8746341b9068..5ca16d6e269d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretExpiredEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretExpiredEventData.cs @@ -46,8 +46,29 @@ public partial class KeyVaultSecretExpiredEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal KeyVaultSecretExpiredEventData() + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// , , , or is null. + internal KeyVaultSecretExpiredEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(vaultName, nameof(vaultName)); + Argument.AssertNotNull(objectType, nameof(objectType)); + Argument.AssertNotNull(objectName, nameof(objectName)); + Argument.AssertNotNull(version, nameof(version)); + + Id = id; + VaultName = vaultName; + ObjectType = objectType; + ObjectName = objectName; + Version = version; + NBF = nbf; + EXP = exp; } /// Initializes a new instance of . @@ -59,7 +80,7 @@ internal KeyVaultSecretExpiredEventData() /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// Keeps track of any properties unknown to the library. - internal KeyVaultSecretExpiredEventData(string id, string vaultName, string objectType, string objectName, string version, float? nbf, float? exp, IDictionary serializedAdditionalRawData) + internal KeyVaultSecretExpiredEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp, IDictionary serializedAdditionalRawData) { Id = id; VaultName = vaultName; @@ -71,6 +92,11 @@ internal KeyVaultSecretExpiredEventData(string id, string vaultName, string obje _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal KeyVaultSecretExpiredEventData() + { + } + /// The id of the object that triggered this event. public string Id { get; } /// Key vault name of the object that triggered this event. @@ -82,8 +108,8 @@ internal KeyVaultSecretExpiredEventData(string id, string vaultName, string obje /// The version of the object that triggered this event. public string Version { get; } /// Not before date of the object that triggered this event. - public float? NBF { get; } + public float NBF { get; } /// The expiration date of the object that triggered this event. - public float? EXP { get; } + public float EXP { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNearExpiryEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNearExpiryEventData.Serialization.cs index 563a0c32ffe0..de7f6e51a646 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNearExpiryEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNearExpiryEventData.Serialization.cs @@ -34,41 +34,20 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(KeyVaultSecretNearExpiryEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("Id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(VaultName)) - { - writer.WritePropertyName("VaultName"u8); - writer.WriteStringValue(VaultName); - } - if (Optional.IsDefined(ObjectType)) - { - writer.WritePropertyName("ObjectType"u8); - writer.WriteStringValue(ObjectType); - } - if (Optional.IsDefined(ObjectName)) - { - writer.WritePropertyName("ObjectName"u8); - writer.WriteStringValue(ObjectName); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("Version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(NBF)) - { - writer.WritePropertyName("NBF"u8); - writer.WriteNumberValue(NBF.Value); - } - if (Optional.IsDefined(EXP)) - { - writer.WritePropertyName("EXP"u8); - writer.WriteNumberValue(EXP.Value); - } + writer.WritePropertyName("Id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("VaultName"u8); + writer.WriteStringValue(VaultName); + writer.WritePropertyName("ObjectType"u8); + writer.WriteStringValue(ObjectType); + writer.WritePropertyName("ObjectName"u8); + writer.WriteStringValue(ObjectName); + writer.WritePropertyName("Version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("NBF"u8); + writer.WriteNumberValue(NBF); + writer.WritePropertyName("EXP"u8); + writer.WriteNumberValue(EXP); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -111,8 +90,8 @@ internal static KeyVaultSecretNearExpiryEventData DeserializeKeyVaultSecretNearE string objectType = default; string objectName = default; string version = default; - float? nbf = default; - float? exp = default; + float nbf = default; + float exp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -144,19 +123,11 @@ internal static KeyVaultSecretNearExpiryEventData DeserializeKeyVaultSecretNearE } if (property.NameEquals("NBF"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nbf = property.Value.GetSingle(); continue; } if (property.NameEquals("EXP"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } exp = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNearExpiryEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNearExpiryEventData.cs index a80db5eef3f0..b6a1637f0a49 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNearExpiryEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNearExpiryEventData.cs @@ -46,8 +46,29 @@ public partial class KeyVaultSecretNearExpiryEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal KeyVaultSecretNearExpiryEventData() + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// , , , or is null. + internal KeyVaultSecretNearExpiryEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(vaultName, nameof(vaultName)); + Argument.AssertNotNull(objectType, nameof(objectType)); + Argument.AssertNotNull(objectName, nameof(objectName)); + Argument.AssertNotNull(version, nameof(version)); + + Id = id; + VaultName = vaultName; + ObjectType = objectType; + ObjectName = objectName; + Version = version; + NBF = nbf; + EXP = exp; } /// Initializes a new instance of . @@ -59,7 +80,7 @@ internal KeyVaultSecretNearExpiryEventData() /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// Keeps track of any properties unknown to the library. - internal KeyVaultSecretNearExpiryEventData(string id, string vaultName, string objectType, string objectName, string version, float? nbf, float? exp, IDictionary serializedAdditionalRawData) + internal KeyVaultSecretNearExpiryEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp, IDictionary serializedAdditionalRawData) { Id = id; VaultName = vaultName; @@ -71,6 +92,11 @@ internal KeyVaultSecretNearExpiryEventData(string id, string vaultName, string o _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal KeyVaultSecretNearExpiryEventData() + { + } + /// The id of the object that triggered this event. public string Id { get; } /// Key vault name of the object that triggered this event. @@ -82,8 +108,8 @@ internal KeyVaultSecretNearExpiryEventData(string id, string vaultName, string o /// The version of the object that triggered this event. public string Version { get; } /// Not before date of the object that triggered this event. - public float? NBF { get; } + public float NBF { get; } /// The expiration date of the object that triggered this event. - public float? EXP { get; } + public float EXP { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNewVersionCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNewVersionCreatedEventData.Serialization.cs index 867bf49c9495..728803b8a73b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNewVersionCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNewVersionCreatedEventData.Serialization.cs @@ -34,41 +34,20 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(KeyVaultSecretNewVersionCreatedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("Id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(VaultName)) - { - writer.WritePropertyName("VaultName"u8); - writer.WriteStringValue(VaultName); - } - if (Optional.IsDefined(ObjectType)) - { - writer.WritePropertyName("ObjectType"u8); - writer.WriteStringValue(ObjectType); - } - if (Optional.IsDefined(ObjectName)) - { - writer.WritePropertyName("ObjectName"u8); - writer.WriteStringValue(ObjectName); - } - if (Optional.IsDefined(Version)) - { - writer.WritePropertyName("Version"u8); - writer.WriteStringValue(Version); - } - if (Optional.IsDefined(NBF)) - { - writer.WritePropertyName("NBF"u8); - writer.WriteNumberValue(NBF.Value); - } - if (Optional.IsDefined(EXP)) - { - writer.WritePropertyName("EXP"u8); - writer.WriteNumberValue(EXP.Value); - } + writer.WritePropertyName("Id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("VaultName"u8); + writer.WriteStringValue(VaultName); + writer.WritePropertyName("ObjectType"u8); + writer.WriteStringValue(ObjectType); + writer.WritePropertyName("ObjectName"u8); + writer.WriteStringValue(ObjectName); + writer.WritePropertyName("Version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("NBF"u8); + writer.WriteNumberValue(NBF); + writer.WritePropertyName("EXP"u8); + writer.WriteNumberValue(EXP); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -111,8 +90,8 @@ internal static KeyVaultSecretNewVersionCreatedEventData DeserializeKeyVaultSecr string objectType = default; string objectName = default; string version = default; - float? nbf = default; - float? exp = default; + float nbf = default; + float exp = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -144,19 +123,11 @@ internal static KeyVaultSecretNewVersionCreatedEventData DeserializeKeyVaultSecr } if (property.NameEquals("NBF"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nbf = property.Value.GetSingle(); continue; } if (property.NameEquals("EXP"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } exp = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNewVersionCreatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNewVersionCreatedEventData.cs index b3c890bb7462..c5dad2469ee8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNewVersionCreatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/KeyVaultSecretNewVersionCreatedEventData.cs @@ -46,8 +46,29 @@ public partial class KeyVaultSecretNewVersionCreatedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal KeyVaultSecretNewVersionCreatedEventData() + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// , , , or is null. + internal KeyVaultSecretNewVersionCreatedEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(vaultName, nameof(vaultName)); + Argument.AssertNotNull(objectType, nameof(objectType)); + Argument.AssertNotNull(objectName, nameof(objectName)); + Argument.AssertNotNull(version, nameof(version)); + + Id = id; + VaultName = vaultName; + ObjectType = objectType; + ObjectName = objectName; + Version = version; + NBF = nbf; + EXP = exp; } /// Initializes a new instance of . @@ -59,7 +80,7 @@ internal KeyVaultSecretNewVersionCreatedEventData() /// Not before date of the object that triggered this event. /// The expiration date of the object that triggered this event. /// Keeps track of any properties unknown to the library. - internal KeyVaultSecretNewVersionCreatedEventData(string id, string vaultName, string objectType, string objectName, string version, float? nbf, float? exp, IDictionary serializedAdditionalRawData) + internal KeyVaultSecretNewVersionCreatedEventData(string id, string vaultName, string objectType, string objectName, string version, float nbf, float exp, IDictionary serializedAdditionalRawData) { Id = id; VaultName = vaultName; @@ -71,6 +92,11 @@ internal KeyVaultSecretNewVersionCreatedEventData(string id, string vaultName, s _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal KeyVaultSecretNewVersionCreatedEventData() + { + } + /// The id of the object that triggered this event. public string Id { get; } /// Key vault name of the object that triggered this event. @@ -82,8 +108,8 @@ internal KeyVaultSecretNewVersionCreatedEventData(string id, string vaultName, s /// The version of the object that triggered this event. public string Version { get; } /// Not before date of the object that triggered this event. - public float? NBF { get; } + public float NBF { get; } /// The expiration date of the object that triggered this event. - public float? EXP { get; } + public float EXP { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEnteredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEnteredEventData.Serialization.cs index f7b0985ec757..6b0dd63c965c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEnteredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEnteredEventData.Serialization.cs @@ -60,17 +60,13 @@ internal static MapsGeofenceEnteredEventData DeserializeMapsGeofenceEnteredEvent IReadOnlyList expiredGeofenceGeometryId = default; IReadOnlyList geometries = default; IReadOnlyList invalidPeriodGeofenceGeometryId = default; - bool? isEventPublished = default; + bool isEventPublished = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("expiredGeofenceGeometryId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -91,10 +87,6 @@ internal static MapsGeofenceEnteredEventData DeserializeMapsGeofenceEnteredEvent } if (property.NameEquals("invalidPeriodGeofenceGeometryId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -105,10 +97,6 @@ internal static MapsGeofenceEnteredEventData DeserializeMapsGeofenceEnteredEvent } if (property.NameEquals("isEventPublished"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } isEventPublished = property.Value.GetBoolean(); continue; } @@ -118,7 +106,7 @@ internal static MapsGeofenceEnteredEventData DeserializeMapsGeofenceEnteredEvent } } serializedAdditionalRawData = rawDataDictionary; - return new MapsGeofenceEnteredEventData(expiredGeofenceGeometryId ?? new ChangeTrackingList(), geometries, invalidPeriodGeofenceGeometryId ?? new ChangeTrackingList(), isEventPublished, serializedAdditionalRawData); + return new MapsGeofenceEnteredEventData(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEnteredEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEnteredEventData.cs index caa8d8598b3a..ee0574c67bfd 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEnteredEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEnteredEventData.cs @@ -14,11 +14,16 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class MapsGeofenceEnteredEventData : MapsGeofenceEventProperties { /// Initializes a new instance of . + /// Lists of the geometry ID of the geofence which is expired relative to the user time in the request. /// Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. - /// is null. - internal MapsGeofenceEnteredEventData(IEnumerable geometries) : base(geometries) + /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. + /// 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. + /// , or is null. + internal MapsGeofenceEnteredEventData(IEnumerable expiredGeofenceGeometryId, IEnumerable geometries, IEnumerable invalidPeriodGeofenceGeometryId, bool isEventPublished) : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished) { + Argument.AssertNotNull(expiredGeofenceGeometryId, nameof(expiredGeofenceGeometryId)); Argument.AssertNotNull(geometries, nameof(geometries)); + Argument.AssertNotNull(invalidPeriodGeofenceGeometryId, nameof(invalidPeriodGeofenceGeometryId)); } /// Initializes a new instance of . @@ -27,7 +32,7 @@ internal MapsGeofenceEnteredEventData(IEnumerable geometri /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. /// 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. /// Keeps track of any properties unknown to the library. - internal MapsGeofenceEnteredEventData(IReadOnlyList expiredGeofenceGeometryId, IReadOnlyList geometries, IReadOnlyList invalidPeriodGeofenceGeometryId, bool? isEventPublished, IDictionary serializedAdditionalRawData) : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished, serializedAdditionalRawData) + internal MapsGeofenceEnteredEventData(IReadOnlyList expiredGeofenceGeometryId, IReadOnlyList geometries, IReadOnlyList invalidPeriodGeofenceGeometryId, bool isEventPublished, IDictionary serializedAdditionalRawData) : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished, serializedAdditionalRawData) { } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEventProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEventProperties.Serialization.cs index 635983826079..06ee886f7b39 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEventProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEventProperties.Serialization.cs @@ -34,16 +34,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(MapsGeofenceEventProperties)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(ExpiredGeofenceGeometryId)) + writer.WritePropertyName("expiredGeofenceGeometryId"u8); + writer.WriteStartArray(); + foreach (var item in ExpiredGeofenceGeometryId) { - writer.WritePropertyName("expiredGeofenceGeometryId"u8); - writer.WriteStartArray(); - foreach (var item in ExpiredGeofenceGeometryId) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); + writer.WriteStringValue(item); } + writer.WriteEndArray(); writer.WritePropertyName("geometries"u8); writer.WriteStartArray(); foreach (var item in Geometries) @@ -51,21 +48,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteObjectValue(item, options); } writer.WriteEndArray(); - if (Optional.IsCollectionDefined(InvalidPeriodGeofenceGeometryId)) - { - writer.WritePropertyName("invalidPeriodGeofenceGeometryId"u8); - writer.WriteStartArray(); - foreach (var item in InvalidPeriodGeofenceGeometryId) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(IsEventPublished)) + writer.WritePropertyName("invalidPeriodGeofenceGeometryId"u8); + writer.WriteStartArray(); + foreach (var item in InvalidPeriodGeofenceGeometryId) { - writer.WritePropertyName("isEventPublished"u8); - writer.WriteBooleanValue(IsEventPublished.Value); + writer.WriteStringValue(item); } + writer.WriteEndArray(); + writer.WritePropertyName("isEventPublished"u8); + writer.WriteBooleanValue(IsEventPublished); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -106,17 +97,13 @@ internal static MapsGeofenceEventProperties DeserializeMapsGeofenceEventProperti IReadOnlyList expiredGeofenceGeometryId = default; IReadOnlyList geometries = default; IReadOnlyList invalidPeriodGeofenceGeometryId = default; - bool? isEventPublished = default; + bool isEventPublished = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("expiredGeofenceGeometryId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -137,10 +124,6 @@ internal static MapsGeofenceEventProperties DeserializeMapsGeofenceEventProperti } if (property.NameEquals("invalidPeriodGeofenceGeometryId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -151,10 +134,6 @@ internal static MapsGeofenceEventProperties DeserializeMapsGeofenceEventProperti } if (property.NameEquals("isEventPublished"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } isEventPublished = property.Value.GetBoolean(); continue; } @@ -164,7 +143,7 @@ internal static MapsGeofenceEventProperties DeserializeMapsGeofenceEventProperti } } serializedAdditionalRawData = rawDataDictionary; - return new MapsGeofenceEventProperties(expiredGeofenceGeometryId ?? new ChangeTrackingList(), geometries, invalidPeriodGeofenceGeometryId ?? new ChangeTrackingList(), isEventPublished, serializedAdditionalRawData); + return new MapsGeofenceEventProperties(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEventProperties.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEventProperties.cs index 24bbadc64e67..33b1e78064c4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEventProperties.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceEventProperties.cs @@ -47,15 +47,21 @@ public partial class MapsGeofenceEventProperties private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// Lists of the geometry ID of the geofence which is expired relative to the user time in the request. /// Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. - /// is null. - internal MapsGeofenceEventProperties(IEnumerable geometries) + /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. + /// 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. + /// , or is null. + internal MapsGeofenceEventProperties(IEnumerable expiredGeofenceGeometryId, IEnumerable geometries, IEnumerable invalidPeriodGeofenceGeometryId, bool isEventPublished) { + Argument.AssertNotNull(expiredGeofenceGeometryId, nameof(expiredGeofenceGeometryId)); Argument.AssertNotNull(geometries, nameof(geometries)); + Argument.AssertNotNull(invalidPeriodGeofenceGeometryId, nameof(invalidPeriodGeofenceGeometryId)); - ExpiredGeofenceGeometryId = new ChangeTrackingList(); + ExpiredGeofenceGeometryId = expiredGeofenceGeometryId.ToList(); Geometries = geometries.ToList(); - InvalidPeriodGeofenceGeometryId = new ChangeTrackingList(); + InvalidPeriodGeofenceGeometryId = invalidPeriodGeofenceGeometryId.ToList(); + IsEventPublished = isEventPublished; } /// Initializes a new instance of . @@ -64,7 +70,7 @@ internal MapsGeofenceEventProperties(IEnumerable geometrie /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. /// 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. /// Keeps track of any properties unknown to the library. - internal MapsGeofenceEventProperties(IReadOnlyList expiredGeofenceGeometryId, IReadOnlyList geometries, IReadOnlyList invalidPeriodGeofenceGeometryId, bool? isEventPublished, IDictionary serializedAdditionalRawData) + internal MapsGeofenceEventProperties(IReadOnlyList expiredGeofenceGeometryId, IReadOnlyList geometries, IReadOnlyList invalidPeriodGeofenceGeometryId, bool isEventPublished, IDictionary serializedAdditionalRawData) { ExpiredGeofenceGeometryId = expiredGeofenceGeometryId; Geometries = geometries; @@ -85,6 +91,6 @@ internal MapsGeofenceEventProperties() /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. public IReadOnlyList InvalidPeriodGeofenceGeometryId { get; } /// 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. - public bool? IsEventPublished { get; } + public bool IsEventPublished { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceExitedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceExitedEventData.Serialization.cs index 935bd573b2b1..f3ee40d742ad 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceExitedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceExitedEventData.Serialization.cs @@ -60,17 +60,13 @@ internal static MapsGeofenceExitedEventData DeserializeMapsGeofenceExitedEventDa IReadOnlyList expiredGeofenceGeometryId = default; IReadOnlyList geometries = default; IReadOnlyList invalidPeriodGeofenceGeometryId = default; - bool? isEventPublished = default; + bool isEventPublished = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("expiredGeofenceGeometryId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -91,10 +87,6 @@ internal static MapsGeofenceExitedEventData DeserializeMapsGeofenceExitedEventDa } if (property.NameEquals("invalidPeriodGeofenceGeometryId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -105,10 +97,6 @@ internal static MapsGeofenceExitedEventData DeserializeMapsGeofenceExitedEventDa } if (property.NameEquals("isEventPublished"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } isEventPublished = property.Value.GetBoolean(); continue; } @@ -118,7 +106,7 @@ internal static MapsGeofenceExitedEventData DeserializeMapsGeofenceExitedEventDa } } serializedAdditionalRawData = rawDataDictionary; - return new MapsGeofenceExitedEventData(expiredGeofenceGeometryId ?? new ChangeTrackingList(), geometries, invalidPeriodGeofenceGeometryId ?? new ChangeTrackingList(), isEventPublished, serializedAdditionalRawData); + return new MapsGeofenceExitedEventData(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceExitedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceExitedEventData.cs index 3503ee43ec5b..1d3cfaf73291 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceExitedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceExitedEventData.cs @@ -14,11 +14,16 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class MapsGeofenceExitedEventData : MapsGeofenceEventProperties { /// Initializes a new instance of . + /// Lists of the geometry ID of the geofence which is expired relative to the user time in the request. /// Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. - /// is null. - internal MapsGeofenceExitedEventData(IEnumerable geometries) : base(geometries) + /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. + /// 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. + /// , or is null. + internal MapsGeofenceExitedEventData(IEnumerable expiredGeofenceGeometryId, IEnumerable geometries, IEnumerable invalidPeriodGeofenceGeometryId, bool isEventPublished) : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished) { + Argument.AssertNotNull(expiredGeofenceGeometryId, nameof(expiredGeofenceGeometryId)); Argument.AssertNotNull(geometries, nameof(geometries)); + Argument.AssertNotNull(invalidPeriodGeofenceGeometryId, nameof(invalidPeriodGeofenceGeometryId)); } /// Initializes a new instance of . @@ -27,7 +32,7 @@ internal MapsGeofenceExitedEventData(IEnumerable geometrie /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. /// 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. /// Keeps track of any properties unknown to the library. - internal MapsGeofenceExitedEventData(IReadOnlyList expiredGeofenceGeometryId, IReadOnlyList geometries, IReadOnlyList invalidPeriodGeofenceGeometryId, bool? isEventPublished, IDictionary serializedAdditionalRawData) : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished, serializedAdditionalRawData) + internal MapsGeofenceExitedEventData(IReadOnlyList expiredGeofenceGeometryId, IReadOnlyList geometries, IReadOnlyList invalidPeriodGeofenceGeometryId, bool isEventPublished, IDictionary serializedAdditionalRawData) : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished, serializedAdditionalRawData) { } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceGeometry.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceGeometry.Serialization.cs index b0c581705604..d0e2c4794890 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceGeometry.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceGeometry.Serialization.cs @@ -34,31 +34,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(MapsGeofenceGeometry)} does not support writing '{format}' format."); } - if (Optional.IsDefined(DeviceId)) - { - writer.WritePropertyName("deviceId"u8); - writer.WriteStringValue(DeviceId); - } - if (Optional.IsDefined(Distance)) - { - writer.WritePropertyName("distance"u8); - writer.WriteNumberValue(Distance.Value); - } - if (Optional.IsDefined(GeometryId)) - { - writer.WritePropertyName("geometryId"u8); - writer.WriteStringValue(GeometryId); - } - if (Optional.IsDefined(NearestLat)) - { - writer.WritePropertyName("nearestLat"u8); - writer.WriteNumberValue(NearestLat.Value); - } - if (Optional.IsDefined(NearestLon)) - { - writer.WritePropertyName("nearestLon"u8); - writer.WriteNumberValue(NearestLon.Value); - } + writer.WritePropertyName("deviceId"u8); + writer.WriteStringValue(DeviceId); + writer.WritePropertyName("distance"u8); + writer.WriteNumberValue(Distance); + writer.WritePropertyName("geometryId"u8); + writer.WriteStringValue(GeometryId); + writer.WritePropertyName("nearestLat"u8); + writer.WriteNumberValue(NearestLat); + writer.WritePropertyName("nearestLon"u8); + writer.WriteNumberValue(NearestLon); if (Optional.IsDefined(UdId)) { writer.WritePropertyName("udId"u8); @@ -102,10 +87,10 @@ internal static MapsGeofenceGeometry DeserializeMapsGeofenceGeometry(JsonElement return null; } string deviceId = default; - float? distance = default; + float distance = default; string geometryId = default; - float? nearestLat = default; - float? nearestLon = default; + float nearestLat = default; + float nearestLon = default; string udId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -118,10 +103,6 @@ internal static MapsGeofenceGeometry DeserializeMapsGeofenceGeometry(JsonElement } if (property.NameEquals("distance"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } distance = property.Value.GetSingle(); continue; } @@ -132,19 +113,11 @@ internal static MapsGeofenceGeometry DeserializeMapsGeofenceGeometry(JsonElement } if (property.NameEquals("nearestLat"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nearestLat = property.Value.GetSingle(); continue; } if (property.NameEquals("nearestLon"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } nearestLon = property.Value.GetSingle(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceGeometry.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceGeometry.cs index cbbb6ca42ac1..3791ecd21ca1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceGeometry.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceGeometry.cs @@ -46,8 +46,22 @@ public partial class MapsGeofenceGeometry private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal MapsGeofenceGeometry() + /// ID of the device. + /// Distance from the coordinate to the closest border of the geofence. Positive means the coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more than the value of searchBuffer away from the closest geofence border, then the value is 999. Negative means the coordinate is inside of the geofence. If the coordinate is inside the polygon, but more than the value of searchBuffer away from the closest geofencing border,then the value is -999. A value of 999 means that there is great confidence the coordinate is well outside the geofence. A value of -999 means that there is great confidence the coordinate is well within the geofence. + /// The unique ID for the geofence geometry. + /// Latitude of the nearest point of the geometry. + /// Longitude of the nearest point of the geometry. + /// or is null. + internal MapsGeofenceGeometry(string deviceId, float distance, string geometryId, float nearestLat, float nearestLon) { + Argument.AssertNotNull(deviceId, nameof(deviceId)); + Argument.AssertNotNull(geometryId, nameof(geometryId)); + + DeviceId = deviceId; + Distance = distance; + GeometryId = geometryId; + NearestLat = nearestLat; + NearestLon = nearestLon; } /// Initializes a new instance of . @@ -58,7 +72,7 @@ internal MapsGeofenceGeometry() /// Longitude of the nearest point of the geometry. /// The unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API. /// Keeps track of any properties unknown to the library. - internal MapsGeofenceGeometry(string deviceId, float? distance, string geometryId, float? nearestLat, float? nearestLon, string udId, IDictionary serializedAdditionalRawData) + internal MapsGeofenceGeometry(string deviceId, float distance, string geometryId, float nearestLat, float nearestLon, string udId, IDictionary serializedAdditionalRawData) { DeviceId = deviceId; Distance = distance; @@ -69,16 +83,21 @@ internal MapsGeofenceGeometry(string deviceId, float? distance, string geometryI _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal MapsGeofenceGeometry() + { + } + /// ID of the device. public string DeviceId { get; } /// Distance from the coordinate to the closest border of the geofence. Positive means the coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more than the value of searchBuffer away from the closest geofence border, then the value is 999. Negative means the coordinate is inside of the geofence. If the coordinate is inside the polygon, but more than the value of searchBuffer away from the closest geofencing border,then the value is -999. A value of 999 means that there is great confidence the coordinate is well outside the geofence. A value of -999 means that there is great confidence the coordinate is well within the geofence. - public float? Distance { get; } + public float Distance { get; } /// The unique ID for the geofence geometry. public string GeometryId { get; } /// Latitude of the nearest point of the geometry. - public float? NearestLat { get; } + public float NearestLat { get; } /// Longitude of the nearest point of the geometry. - public float? NearestLon { get; } + public float NearestLon { get; } /// The unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API. public string UdId { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceResultEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceResultEventData.Serialization.cs index a17622e006ac..b41b7034422b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceResultEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceResultEventData.Serialization.cs @@ -60,17 +60,13 @@ internal static MapsGeofenceResultEventData DeserializeMapsGeofenceResultEventDa IReadOnlyList expiredGeofenceGeometryId = default; IReadOnlyList geometries = default; IReadOnlyList invalidPeriodGeofenceGeometryId = default; - bool? isEventPublished = default; + bool isEventPublished = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("expiredGeofenceGeometryId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -91,10 +87,6 @@ internal static MapsGeofenceResultEventData DeserializeMapsGeofenceResultEventDa } if (property.NameEquals("invalidPeriodGeofenceGeometryId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -105,10 +97,6 @@ internal static MapsGeofenceResultEventData DeserializeMapsGeofenceResultEventDa } if (property.NameEquals("isEventPublished"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } isEventPublished = property.Value.GetBoolean(); continue; } @@ -118,7 +106,7 @@ internal static MapsGeofenceResultEventData DeserializeMapsGeofenceResultEventDa } } serializedAdditionalRawData = rawDataDictionary; - return new MapsGeofenceResultEventData(expiredGeofenceGeometryId ?? new ChangeTrackingList(), geometries, invalidPeriodGeofenceGeometryId ?? new ChangeTrackingList(), isEventPublished, serializedAdditionalRawData); + return new MapsGeofenceResultEventData(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceResultEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceResultEventData.cs index e7568ca67003..50baa505f6f2 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceResultEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MapsGeofenceResultEventData.cs @@ -14,11 +14,16 @@ namespace Azure.Messaging.EventGrid.SystemEvents public partial class MapsGeofenceResultEventData : MapsGeofenceEventProperties { /// Initializes a new instance of . + /// Lists of the geometry ID of the geofence which is expired relative to the user time in the request. /// Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. - /// is null. - internal MapsGeofenceResultEventData(IEnumerable geometries) : base(geometries) + /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. + /// 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. + /// , or is null. + internal MapsGeofenceResultEventData(IEnumerable expiredGeofenceGeometryId, IEnumerable geometries, IEnumerable invalidPeriodGeofenceGeometryId, bool isEventPublished) : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished) { + Argument.AssertNotNull(expiredGeofenceGeometryId, nameof(expiredGeofenceGeometryId)); Argument.AssertNotNull(geometries, nameof(geometries)); + Argument.AssertNotNull(invalidPeriodGeofenceGeometryId, nameof(invalidPeriodGeofenceGeometryId)); } /// Initializes a new instance of . @@ -27,7 +32,7 @@ internal MapsGeofenceResultEventData(IEnumerable geometrie /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. /// 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. /// Keeps track of any properties unknown to the library. - internal MapsGeofenceResultEventData(IReadOnlyList expiredGeofenceGeometryId, IReadOnlyList geometries, IReadOnlyList invalidPeriodGeofenceGeometryId, bool? isEventPublished, IDictionary serializedAdditionalRawData) : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished, serializedAdditionalRawData) + internal MapsGeofenceResultEventData(IReadOnlyList expiredGeofenceGeometryId, IReadOnlyList geometries, IReadOnlyList invalidPeriodGeofenceGeometryId, bool isEventPublished, IDictionary serializedAdditionalRawData) : base(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished, serializedAdditionalRawData) { } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCanceledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCanceledEventData.Serialization.cs deleted file mode 100644 index 1a4b66647616..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCanceledEventData.Serialization.cs +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobCanceledEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobCanceledEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("outputs"u8); - writer.WriteStartArray(); - foreach (var item in Outputs) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - - MediaJobCanceledEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobCanceledEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobCanceledEventData(document.RootElement, options); - } - - internal static MediaJobCanceledEventData DeserializeMediaJobCanceledEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList outputs = default; - MediaJobState previousState = default; - MediaJobState state = default; - IReadOnlyDictionary correlationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("outputs"u8)) - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(MediaJobOutput.DeserializeMediaJobOutput(item, options)); - } - outputs = array; - continue; - } - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("state"u8)) - { - state = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("correlationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - correlationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobCanceledEventData(previousState, state, correlationData, serializedAdditionalRawData, outputs); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobCanceledEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobCanceledEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobCanceledEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobCanceledEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobCanceledEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobCanceledEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCanceledEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCanceledEventData.cs deleted file mode 100644 index 953505804d20..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCanceledEventData.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job canceled event data. Schema of the data property of an EventGridEvent for a - /// Microsoft.Media.JobCanceled event. - /// - public partial class MediaJobCanceledEventData : MediaJobStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// or is null. - internal MediaJobCanceledEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData, IEnumerable outputs) : base(previousState, state, correlationData) - { - Argument.AssertNotNull(correlationData, nameof(correlationData)); - Argument.AssertNotNull(outputs, nameof(outputs)); - - Outputs = outputs.ToList(); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - internal MediaJobCanceledEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData, IDictionary serializedAdditionalRawData, IReadOnlyList outputs) : base(previousState, state, correlationData, serializedAdditionalRawData) - { - Outputs = outputs; - } - - /// Initializes a new instance of for deserialization. - internal MediaJobCanceledEventData() - { - } - - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - public IReadOnlyList Outputs { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCancelingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCancelingEventData.Serialization.cs deleted file mode 100644 index 45fd962e0fcd..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCancelingEventData.Serialization.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobCancelingEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobCancelingEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - - MediaJobCancelingEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobCancelingEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobCancelingEventData(document.RootElement, options); - } - - internal static MediaJobCancelingEventData DeserializeMediaJobCancelingEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobState state = default; - IReadOnlyDictionary correlationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("state"u8)) - { - state = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("correlationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - correlationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobCancelingEventData(previousState, state, correlationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobCancelingEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobCancelingEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobCancelingEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobCancelingEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobCancelingEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobCancelingEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCancelingEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCancelingEventData.cs deleted file mode 100644 index c1493f0f200e..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobCancelingEventData.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job canceling event data. Schema of the data property of an EventGridEvent for - /// a Microsoft.Media.JobCanceling event. - /// - public partial class MediaJobCancelingEventData : MediaJobStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// is null. - internal MediaJobCancelingEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData) : base(previousState, state, correlationData) - { - Argument.AssertNotNull(correlationData, nameof(correlationData)); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobCancelingEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData, IDictionary serializedAdditionalRawData) : base(previousState, state, correlationData, serializedAdditionalRawData) - { - } - - /// Initializes a new instance of for deserialization. - internal MediaJobCancelingEventData() - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobError.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobError.Serialization.cs deleted file mode 100644 index c3fae6ec7856..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobError.Serialization.cs +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobError : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobError)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("code"u8); - writer.WriteStringValue(Code.ToString()); - if (Optional.IsDefined(Message)) - { - writer.WritePropertyName("message"u8); - writer.WriteStringValue(Message); - } - writer.WritePropertyName("category"u8); - writer.WriteStringValue(Category.ToString()); - writer.WritePropertyName("retry"u8); - writer.WriteStringValue(Retry.ToString()); - writer.WritePropertyName("details"u8); - writer.WriteStartArray(); - foreach (var item in Details) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaJobError IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobError)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobError(document.RootElement, options); - } - - internal static MediaJobError DeserializeMediaJobError(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobErrorCode code = default; - string message = default; - MediaJobErrorCategory category = default; - MediaJobRetry retry = default; - IReadOnlyList details = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("code"u8)) - { - code = new MediaJobErrorCode(property.Value.GetString()); - continue; - } - if (property.NameEquals("message"u8)) - { - message = property.Value.GetString(); - continue; - } - if (property.NameEquals("category"u8)) - { - category = new MediaJobErrorCategory(property.Value.GetString()); - continue; - } - if (property.NameEquals("retry"u8)) - { - retry = new MediaJobRetry(property.Value.GetString()); - continue; - } - if (property.NameEquals("details"u8)) - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(MediaJobErrorDetail.DeserializeMediaJobErrorDetail(item, options)); - } - details = array; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobError( - code, - message, - category, - retry, - details, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobError)} does not support writing '{options.Format}' format."); - } - } - - MediaJobError IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobError(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobError)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaJobError FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobError(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobError.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobError.cs deleted file mode 100644 index 751ed7d395fe..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobError.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Details of JobOutput errors. - public partial class MediaJobError - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Error code describing the error. - /// Helps with categorization of errors. - /// Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. - /// An array of details about specific errors that led to this reported error. - /// is null. - internal MediaJobError(MediaJobErrorCode code, MediaJobErrorCategory category, MediaJobRetry retry, IEnumerable details) - { - Argument.AssertNotNull(details, nameof(details)); - - Code = code; - Category = category; - Retry = retry; - Details = details.ToList(); - } - - /// Initializes a new instance of . - /// Error code describing the error. - /// A human-readable language-dependent representation of the error. - /// Helps with categorization of errors. - /// Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. - /// An array of details about specific errors that led to this reported error. - /// Keeps track of any properties unknown to the library. - internal MediaJobError(MediaJobErrorCode code, string message, MediaJobErrorCategory category, MediaJobRetry retry, IReadOnlyList details, IDictionary serializedAdditionalRawData) - { - Code = code; - Message = message; - Category = category; - Retry = retry; - Details = details; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal MediaJobError() - { - } - - /// Error code describing the error. - public MediaJobErrorCode Code { get; } - /// A human-readable language-dependent representation of the error. - public string Message { get; } - /// Helps with categorization of errors. - public MediaJobErrorCategory Category { get; } - /// Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. - public MediaJobRetry Retry { get; } - /// An array of details about specific errors that led to this reported error. - public IReadOnlyList Details { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorCategory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorCategory.cs deleted file mode 100644 index 1500025725f5..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorCategory.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Error categories for Media Job Errors. - public readonly partial struct MediaJobErrorCategory : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MediaJobErrorCategory(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ServiceValue = "Service"; - private const string DownloadValue = "Download"; - private const string UploadValue = "Upload"; - private const string ConfigurationValue = "Configuration"; - private const string ContentValue = "Content"; - private const string AccountValue = "Account"; - - /// The error is service related. - public static MediaJobErrorCategory Service { get; } = new MediaJobErrorCategory(ServiceValue); - /// The error is download related. - public static MediaJobErrorCategory Download { get; } = new MediaJobErrorCategory(DownloadValue); - /// The error is upload related. - public static MediaJobErrorCategory Upload { get; } = new MediaJobErrorCategory(UploadValue); - /// The error is configuration related. - public static MediaJobErrorCategory Configuration { get; } = new MediaJobErrorCategory(ConfigurationValue); - /// The error is related to data in the input files. - public static MediaJobErrorCategory Content { get; } = new MediaJobErrorCategory(ContentValue); - /// The error is related to account information. - public static MediaJobErrorCategory Account { get; } = new MediaJobErrorCategory(AccountValue); - /// Determines if two values are the same. - public static bool operator ==(MediaJobErrorCategory left, MediaJobErrorCategory right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MediaJobErrorCategory left, MediaJobErrorCategory right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator MediaJobErrorCategory(string value) => new MediaJobErrorCategory(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MediaJobErrorCategory other && Equals(other); - /// - public bool Equals(MediaJobErrorCategory other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorCode.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorCode.cs deleted file mode 100644 index a306a0f40470..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorCode.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Media Job Error Codes. - public readonly partial struct MediaJobErrorCode : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MediaJobErrorCode(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ServiceErrorValue = "ServiceError"; - private const string ServiceTransientErrorValue = "ServiceTransientError"; - private const string DownloadNotAccessibleValue = "DownloadNotAccessible"; - private const string DownloadTransientErrorValue = "DownloadTransientError"; - private const string UploadNotAccessibleValue = "UploadNotAccessible"; - private const string UploadTransientErrorValue = "UploadTransientError"; - private const string ConfigurationUnsupportedValue = "ConfigurationUnsupported"; - private const string ContentMalformedValue = "ContentMalformed"; - private const string ContentUnsupportedValue = "ContentUnsupported"; - private const string IdentityUnsupportedValue = "IdentityUnsupported"; - - /// Fatal service error, please contact support. - public static MediaJobErrorCode ServiceError { get; } = new MediaJobErrorCode(ServiceErrorValue); - /// Transient error, please retry, if retry is unsuccessful, please contact support. - public static MediaJobErrorCode ServiceTransientError { get; } = new MediaJobErrorCode(ServiceTransientErrorValue); - /// While trying to download the input files, the files were not accessible, please check the availability of the source. - public static MediaJobErrorCode DownloadNotAccessible { get; } = new MediaJobErrorCode(DownloadNotAccessibleValue); - /// While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source. - public static MediaJobErrorCode DownloadTransientError { get; } = new MediaJobErrorCode(DownloadTransientErrorValue); - /// While trying to upload the output files, the destination was not reachable, please check the availability of the destination. - public static MediaJobErrorCode UploadNotAccessible { get; } = new MediaJobErrorCode(UploadNotAccessibleValue); - /// While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination. - public static MediaJobErrorCode UploadTransientError { get; } = new MediaJobErrorCode(UploadTransientErrorValue); - /// There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration. - public static MediaJobErrorCode ConfigurationUnsupported { get; } = new MediaJobErrorCode(ConfigurationUnsupportedValue); - /// There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files. - public static MediaJobErrorCode ContentMalformed { get; } = new MediaJobErrorCode(ContentMalformedValue); - /// There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files. - public static MediaJobErrorCode ContentUnsupported { get; } = new MediaJobErrorCode(ContentUnsupportedValue); - /// There is an error verifying to the account identity. Check and fix the identity configurations and retry. If unsuccessful, please contact support. - public static MediaJobErrorCode IdentityUnsupported { get; } = new MediaJobErrorCode(IdentityUnsupportedValue); - /// Determines if two values are the same. - public static bool operator ==(MediaJobErrorCode left, MediaJobErrorCode right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MediaJobErrorCode left, MediaJobErrorCode right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator MediaJobErrorCode(string value) => new MediaJobErrorCode(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MediaJobErrorCode other && Equals(other); - /// - public bool Equals(MediaJobErrorCode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErroredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErroredEventData.Serialization.cs deleted file mode 100644 index 2453e6462a1e..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErroredEventData.Serialization.cs +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobErroredEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobErroredEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("outputs"u8); - writer.WriteStartArray(); - foreach (var item in Outputs) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - - MediaJobErroredEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobErroredEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobErroredEventData(document.RootElement, options); - } - - internal static MediaJobErroredEventData DeserializeMediaJobErroredEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList outputs = default; - MediaJobState previousState = default; - MediaJobState state = default; - IReadOnlyDictionary correlationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("outputs"u8)) - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(MediaJobOutput.DeserializeMediaJobOutput(item, options)); - } - outputs = array; - continue; - } - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("state"u8)) - { - state = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("correlationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - correlationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobErroredEventData(previousState, state, correlationData, serializedAdditionalRawData, outputs); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobErroredEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobErroredEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobErroredEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobErroredEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobErroredEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobErroredEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErroredEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErroredEventData.cs deleted file mode 100644 index 0c76f70e4bc5..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErroredEventData.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job error state event data. Schema of the data property of an EventGridEvent - /// for a Microsoft.Media.JobErrored event. - /// - public partial class MediaJobErroredEventData : MediaJobStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// or is null. - internal MediaJobErroredEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData, IEnumerable outputs) : base(previousState, state, correlationData) - { - Argument.AssertNotNull(correlationData, nameof(correlationData)); - Argument.AssertNotNull(outputs, nameof(outputs)); - - Outputs = outputs.ToList(); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - internal MediaJobErroredEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData, IDictionary serializedAdditionalRawData, IReadOnlyList outputs) : base(previousState, state, correlationData, serializedAdditionalRawData) - { - Outputs = outputs; - } - - /// Initializes a new instance of for deserialization. - internal MediaJobErroredEventData() - { - } - - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - public IReadOnlyList Outputs { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobFinishedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobFinishedEventData.Serialization.cs deleted file mode 100644 index 5c0168553591..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobFinishedEventData.Serialization.cs +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobFinishedEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobFinishedEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("outputs"u8); - writer.WriteStartArray(); - foreach (var item in Outputs) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - - MediaJobFinishedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobFinishedEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobFinishedEventData(document.RootElement, options); - } - - internal static MediaJobFinishedEventData DeserializeMediaJobFinishedEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList outputs = default; - MediaJobState previousState = default; - MediaJobState state = default; - IReadOnlyDictionary correlationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("outputs"u8)) - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(MediaJobOutput.DeserializeMediaJobOutput(item, options)); - } - outputs = array; - continue; - } - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("state"u8)) - { - state = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("correlationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - correlationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobFinishedEventData(previousState, state, correlationData, serializedAdditionalRawData, outputs); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobFinishedEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobFinishedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobFinishedEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobFinishedEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobFinishedEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobFinishedEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobFinishedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobFinishedEventData.cs deleted file mode 100644 index 64a495eac9b8..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobFinishedEventData.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job finished event data. Schema of the data property of an EventGridEvent for a - /// Microsoft.Media.JobFinished event. - /// - public partial class MediaJobFinishedEventData : MediaJobStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// or is null. - internal MediaJobFinishedEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData, IEnumerable outputs) : base(previousState, state, correlationData) - { - Argument.AssertNotNull(correlationData, nameof(correlationData)); - Argument.AssertNotNull(outputs, nameof(outputs)); - - Outputs = outputs.ToList(); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - internal MediaJobFinishedEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData, IDictionary serializedAdditionalRawData, IReadOnlyList outputs) : base(previousState, state, correlationData, serializedAdditionalRawData) - { - Outputs = outputs; - } - - /// Initializes a new instance of for deserialization. - internal MediaJobFinishedEventData() - { - } - - /// - /// Gets the Job outputs. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - public IReadOnlyList Outputs { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutput.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutput.Serialization.cs deleted file mode 100644 index 0e23a14437ba..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutput.Serialization.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - [PersistableModelProxy(typeof(UnknownMediaJobOutput))] - public partial class MediaJobOutput : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutput)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("@odata.type"u8); - writer.WriteStringValue(OdataType); - writer.WritePropertyName("error"u8); - writer.WriteObjectValue(Error, options); - if (Optional.IsDefined(Label)) - { - writer.WritePropertyName("label"u8); - writer.WriteStringValue(Label); - } - writer.WritePropertyName("progress"u8); - writer.WriteNumberValue(Progress); - writer.WritePropertyName("state"u8); - writer.WriteStringValue(State.ToString()); - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaJobOutput IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutput)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutput(document.RootElement, options); - } - - internal static MediaJobOutput DeserializeMediaJobOutput(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - if (element.TryGetProperty("@odata.type", out JsonElement discriminator)) - { - switch (discriminator.GetString()) - { - case "#Microsoft.Media.JobOutputAsset": return MediaJobOutputAsset.DeserializeMediaJobOutputAsset(element, options); - } - } - return UnknownMediaJobOutput.DeserializeUnknownMediaJobOutput(element, options); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutput)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutput IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutput(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutput)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaJobOutput FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobOutput(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutput.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutput.cs deleted file mode 100644 index 2a5881ab7ec5..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutput.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// The event data for a Job output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - public abstract partial class MediaJobOutput - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private protected IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Gets the Job output error. - /// Gets the Job output progress. - /// Gets the Job output state. - /// is null. - protected MediaJobOutput(MediaJobError error, long progress, MediaJobState state) - { - Argument.AssertNotNull(error, nameof(error)); - - Error = error; - Progress = progress; - State = state; - } - - /// Initializes a new instance of . - /// The discriminator for derived types. - /// Gets the Job output error. - /// Gets the Job output label. - /// Gets the Job output progress. - /// Gets the Job output state. - /// Keeps track of any properties unknown to the library. - internal MediaJobOutput(string odataType, MediaJobError error, string label, long progress, MediaJobState state, IDictionary serializedAdditionalRawData) - { - OdataType = odataType; - Error = error; - Label = label; - Progress = progress; - State = state; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal MediaJobOutput() - { - } - - /// The discriminator for derived types. - internal string OdataType { get; set; } - /// Gets the Job output error. - public MediaJobError Error { get; } - /// Gets the Job output label. - public string Label { get; } - /// Gets the Job output progress. - public long Progress { get; } - /// Gets the Job output state. - public MediaJobState State { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputAsset.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputAsset.Serialization.cs deleted file mode 100644 index b9d1022e7fc9..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputAsset.Serialization.cs +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobOutputAsset : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputAsset)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(AssetName)) - { - writer.WritePropertyName("assetName"u8); - writer.WriteStringValue(AssetName); - } - } - - MediaJobOutputAsset IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputAsset)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutputAsset(document.RootElement, options); - } - - internal static MediaJobOutputAsset DeserializeMediaJobOutputAsset(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string assetName = default; - string odataType = default; - MediaJobError error = default; - string label = default; - long progress = default; - MediaJobState state = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("assetName"u8)) - { - assetName = property.Value.GetString(); - continue; - } - if (property.NameEquals("@odata.type"u8)) - { - odataType = property.Value.GetString(); - continue; - } - if (property.NameEquals("error"u8)) - { - error = MediaJobError.DeserializeMediaJobError(property.Value, options); - continue; - } - if (property.NameEquals("label"u8)) - { - label = property.Value.GetString(); - continue; - } - if (property.NameEquals("progress"u8)) - { - progress = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("state"u8)) - { - state = new MediaJobState(property.Value.GetString()); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobOutputAsset( - odataType, - error, - label, - progress, - state, - serializedAdditionalRawData, - assetName); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutputAsset)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutputAsset IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutputAsset(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutputAsset)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobOutputAsset FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobOutputAsset(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputAsset.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputAsset.cs deleted file mode 100644 index b43e0081261b..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputAsset.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// The event data for a Job output asset. - public partial class MediaJobOutputAsset : MediaJobOutput - { - /// Initializes a new instance of . - /// Gets the Job output error. - /// Gets the Job output progress. - /// Gets the Job output state. - /// is null. - internal MediaJobOutputAsset(MediaJobError error, long progress, MediaJobState state) : base(error, progress, state) - { - Argument.AssertNotNull(error, nameof(error)); - - OdataType = "#Microsoft.Media.JobOutputAsset"; - } - - /// Initializes a new instance of . - /// The discriminator for derived types. - /// Gets the Job output error. - /// Gets the Job output label. - /// Gets the Job output progress. - /// Gets the Job output state. - /// Keeps track of any properties unknown to the library. - /// Gets the Job output asset name. - internal MediaJobOutputAsset(string odataType, MediaJobError error, string label, long progress, MediaJobState state, IDictionary serializedAdditionalRawData, string assetName) : base(odataType, error, label, progress, state, serializedAdditionalRawData) - { - AssetName = assetName; - } - - /// Initializes a new instance of for deserialization. - internal MediaJobOutputAsset() - { - } - - /// Gets the Job output asset name. - public string AssetName { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCanceledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCanceledEventData.Serialization.cs deleted file mode 100644 index 0ac5b829f1dc..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCanceledEventData.Serialization.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobOutputCanceledEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputCanceledEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - - MediaJobOutputCanceledEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputCanceledEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutputCanceledEventData(document.RootElement, options); - } - - internal static MediaJobOutputCanceledEventData DeserializeMediaJobOutputCanceledEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobOutput output = default; - IReadOnlyDictionary jobCorrelationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("output"u8)) - { - output = MediaJobOutput.DeserializeMediaJobOutput(property.Value, options); - continue; - } - if (property.NameEquals("jobCorrelationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - jobCorrelationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobOutputCanceledEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutputCanceledEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutputCanceledEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutputCanceledEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutputCanceledEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobOutputCanceledEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobOutputCanceledEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCanceledEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCanceledEventData.cs deleted file mode 100644 index 55ec62b58492..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCanceledEventData.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job output canceled event data. Schema of the data property of an - /// EventGridEvent for a Microsoft.Media.JobOutputCanceled event. - /// - public partial class MediaJobOutputCanceledEventData : MediaJobOutputStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// or is null. - internal MediaJobOutputCanceledEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData) : base(previousState, output, jobCorrelationData) - { - Argument.AssertNotNull(output, nameof(output)); - Argument.AssertNotNull(jobCorrelationData, nameof(jobCorrelationData)); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobOutputCanceledEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData, IDictionary serializedAdditionalRawData) : base(previousState, output, jobCorrelationData, serializedAdditionalRawData) - { - } - - /// Initializes a new instance of for deserialization. - internal MediaJobOutputCanceledEventData() - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCancelingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCancelingEventData.Serialization.cs deleted file mode 100644 index e1447404365e..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCancelingEventData.Serialization.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobOutputCancelingEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputCancelingEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - - MediaJobOutputCancelingEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputCancelingEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutputCancelingEventData(document.RootElement, options); - } - - internal static MediaJobOutputCancelingEventData DeserializeMediaJobOutputCancelingEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobOutput output = default; - IReadOnlyDictionary jobCorrelationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("output"u8)) - { - output = MediaJobOutput.DeserializeMediaJobOutput(property.Value, options); - continue; - } - if (property.NameEquals("jobCorrelationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - jobCorrelationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobOutputCancelingEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutputCancelingEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutputCancelingEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutputCancelingEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutputCancelingEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobOutputCancelingEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobOutputCancelingEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCancelingEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCancelingEventData.cs deleted file mode 100644 index 30e7d163aaa6..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputCancelingEventData.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job output canceling event data. Schema of the data property of an - /// EventGridEvent for a Microsoft.Media.JobOutputCanceling event. - /// - public partial class MediaJobOutputCancelingEventData : MediaJobOutputStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// or is null. - internal MediaJobOutputCancelingEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData) : base(previousState, output, jobCorrelationData) - { - Argument.AssertNotNull(output, nameof(output)); - Argument.AssertNotNull(jobCorrelationData, nameof(jobCorrelationData)); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobOutputCancelingEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData, IDictionary serializedAdditionalRawData) : base(previousState, output, jobCorrelationData, serializedAdditionalRawData) - { - } - - /// Initializes a new instance of for deserialization. - internal MediaJobOutputCancelingEventData() - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputErroredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputErroredEventData.Serialization.cs deleted file mode 100644 index ee7d8c142784..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputErroredEventData.Serialization.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobOutputErroredEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputErroredEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - - MediaJobOutputErroredEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputErroredEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutputErroredEventData(document.RootElement, options); - } - - internal static MediaJobOutputErroredEventData DeserializeMediaJobOutputErroredEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobOutput output = default; - IReadOnlyDictionary jobCorrelationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("output"u8)) - { - output = MediaJobOutput.DeserializeMediaJobOutput(property.Value, options); - continue; - } - if (property.NameEquals("jobCorrelationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - jobCorrelationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobOutputErroredEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutputErroredEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutputErroredEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutputErroredEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutputErroredEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobOutputErroredEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobOutputErroredEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputErroredEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputErroredEventData.cs deleted file mode 100644 index 22535aa75e81..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputErroredEventData.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job output error event data. Schema of the data property of an EventGridEvent - /// for a Microsoft.Media.JobOutputErrored event. - /// - public partial class MediaJobOutputErroredEventData : MediaJobOutputStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// or is null. - internal MediaJobOutputErroredEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData) : base(previousState, output, jobCorrelationData) - { - Argument.AssertNotNull(output, nameof(output)); - Argument.AssertNotNull(jobCorrelationData, nameof(jobCorrelationData)); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobOutputErroredEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData, IDictionary serializedAdditionalRawData) : base(previousState, output, jobCorrelationData, serializedAdditionalRawData) - { - } - - /// Initializes a new instance of for deserialization. - internal MediaJobOutputErroredEventData() - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputFinishedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputFinishedEventData.Serialization.cs deleted file mode 100644 index 129a88fa4d80..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputFinishedEventData.Serialization.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobOutputFinishedEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputFinishedEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - - MediaJobOutputFinishedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputFinishedEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutputFinishedEventData(document.RootElement, options); - } - - internal static MediaJobOutputFinishedEventData DeserializeMediaJobOutputFinishedEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobOutput output = default; - IReadOnlyDictionary jobCorrelationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("output"u8)) - { - output = MediaJobOutput.DeserializeMediaJobOutput(property.Value, options); - continue; - } - if (property.NameEquals("jobCorrelationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - jobCorrelationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobOutputFinishedEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutputFinishedEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutputFinishedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutputFinishedEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutputFinishedEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobOutputFinishedEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobOutputFinishedEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputFinishedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputFinishedEventData.cs deleted file mode 100644 index 701290e6f1cf..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputFinishedEventData.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job output finished event data. Schema of the data property of an - /// EventGridEvent for a Microsoft.Media.JobOutputFinished event. - /// - public partial class MediaJobOutputFinishedEventData : MediaJobOutputStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// or is null. - internal MediaJobOutputFinishedEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData) : base(previousState, output, jobCorrelationData) - { - Argument.AssertNotNull(output, nameof(output)); - Argument.AssertNotNull(jobCorrelationData, nameof(jobCorrelationData)); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobOutputFinishedEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData, IDictionary serializedAdditionalRawData) : base(previousState, output, jobCorrelationData, serializedAdditionalRawData) - { - } - - /// Initializes a new instance of for deserialization. - internal MediaJobOutputFinishedEventData() - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProcessingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProcessingEventData.Serialization.cs deleted file mode 100644 index c07318cc5eab..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProcessingEventData.Serialization.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobOutputProcessingEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputProcessingEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - - MediaJobOutputProcessingEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputProcessingEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutputProcessingEventData(document.RootElement, options); - } - - internal static MediaJobOutputProcessingEventData DeserializeMediaJobOutputProcessingEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobOutput output = default; - IReadOnlyDictionary jobCorrelationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("output"u8)) - { - output = MediaJobOutput.DeserializeMediaJobOutput(property.Value, options); - continue; - } - if (property.NameEquals("jobCorrelationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - jobCorrelationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobOutputProcessingEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutputProcessingEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutputProcessingEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutputProcessingEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutputProcessingEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobOutputProcessingEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobOutputProcessingEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProcessingEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProcessingEventData.cs deleted file mode 100644 index 1d4c4de32283..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProcessingEventData.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job output processing event data. Schema of the data property of an - /// EventGridEvent for a Microsoft.Media.JobOutputProcessing event. - /// - public partial class MediaJobOutputProcessingEventData : MediaJobOutputStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// or is null. - internal MediaJobOutputProcessingEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData) : base(previousState, output, jobCorrelationData) - { - Argument.AssertNotNull(output, nameof(output)); - Argument.AssertNotNull(jobCorrelationData, nameof(jobCorrelationData)); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobOutputProcessingEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData, IDictionary serializedAdditionalRawData) : base(previousState, output, jobCorrelationData, serializedAdditionalRawData) - { - } - - /// Initializes a new instance of for deserialization. - internal MediaJobOutputProcessingEventData() - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProgressEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProgressEventData.Serialization.cs deleted file mode 100644 index dce247a47310..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProgressEventData.Serialization.cs +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobOutputProgressEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputProgressEventData)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(Label)) - { - writer.WritePropertyName("label"u8); - writer.WriteStringValue(Label); - } - if (Optional.IsDefined(Progress)) - { - writer.WritePropertyName("progress"u8); - writer.WriteNumberValue(Progress.Value); - } - writer.WritePropertyName("jobCorrelationData"u8); - writer.WriteStartObject(); - foreach (var item in JobCorrelationData) - { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaJobOutputProgressEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputProgressEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutputProgressEventData(document.RootElement, options); - } - - internal static MediaJobOutputProgressEventData DeserializeMediaJobOutputProgressEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string label = default; - long? progress = default; - IReadOnlyDictionary jobCorrelationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("label"u8)) - { - label = property.Value.GetString(); - continue; - } - if (property.NameEquals("progress"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - progress = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("jobCorrelationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - jobCorrelationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobOutputProgressEventData(label, progress, jobCorrelationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutputProgressEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutputProgressEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutputProgressEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutputProgressEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaJobOutputProgressEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobOutputProgressEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProgressEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProgressEventData.cs deleted file mode 100644 index ea1d37aa0f91..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputProgressEventData.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job Output Progress Event Data. Schema of the Data property of an - /// EventGridEvent for a Microsoft.Media.JobOutputProgress event. - /// - public partial class MediaJobOutputProgressEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Gets the Job correlation data. - /// is null. - internal MediaJobOutputProgressEventData(IReadOnlyDictionary jobCorrelationData) - { - Argument.AssertNotNull(jobCorrelationData, nameof(jobCorrelationData)); - - JobCorrelationData = jobCorrelationData; - } - - /// Initializes a new instance of . - /// Gets the Job output label. - /// Gets the Job output progress. - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobOutputProgressEventData(string label, long? progress, IReadOnlyDictionary jobCorrelationData, IDictionary serializedAdditionalRawData) - { - Label = label; - Progress = progress; - JobCorrelationData = jobCorrelationData; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal MediaJobOutputProgressEventData() - { - } - - /// Gets the Job output label. - public string Label { get; } - /// Gets the Job output progress. - public long? Progress { get; } - /// Gets the Job correlation data. - public IReadOnlyDictionary JobCorrelationData { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputScheduledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputScheduledEventData.Serialization.cs deleted file mode 100644 index 46d2415e5d34..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputScheduledEventData.Serialization.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobOutputScheduledEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputScheduledEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - - MediaJobOutputScheduledEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputScheduledEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutputScheduledEventData(document.RootElement, options); - } - - internal static MediaJobOutputScheduledEventData DeserializeMediaJobOutputScheduledEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobOutput output = default; - IReadOnlyDictionary jobCorrelationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("output"u8)) - { - output = MediaJobOutput.DeserializeMediaJobOutput(property.Value, options); - continue; - } - if (property.NameEquals("jobCorrelationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - jobCorrelationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobOutputScheduledEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutputScheduledEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutputScheduledEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutputScheduledEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutputScheduledEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobOutputScheduledEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobOutputScheduledEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputScheduledEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputScheduledEventData.cs deleted file mode 100644 index a11011667492..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputScheduledEventData.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job output scheduled event data. Schema of the data property of an - /// EventGridEvent for a Microsoft.Media.JobOutputScheduled event. - /// - public partial class MediaJobOutputScheduledEventData : MediaJobOutputStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// or is null. - internal MediaJobOutputScheduledEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData) : base(previousState, output, jobCorrelationData) - { - Argument.AssertNotNull(output, nameof(output)); - Argument.AssertNotNull(jobCorrelationData, nameof(jobCorrelationData)); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobOutputScheduledEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData, IDictionary serializedAdditionalRawData) : base(previousState, output, jobCorrelationData, serializedAdditionalRawData) - { - } - - /// Initializes a new instance of for deserialization. - internal MediaJobOutputScheduledEventData() - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputStateChangeEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputStateChangeEventData.Serialization.cs deleted file mode 100644 index 7cf2827360e4..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputStateChangeEventData.Serialization.cs +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobOutputStateChangeEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputStateChangeEventData)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("previousState"u8); - writer.WriteStringValue(PreviousState.ToString()); - writer.WritePropertyName("output"u8); - writer.WriteObjectValue(Output, options); - writer.WritePropertyName("jobCorrelationData"u8); - writer.WriteStartObject(); - foreach (var item in JobCorrelationData) - { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaJobOutputStateChangeEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutputStateChangeEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutputStateChangeEventData(document.RootElement, options); - } - - internal static MediaJobOutputStateChangeEventData DeserializeMediaJobOutputStateChangeEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobOutput output = default; - IReadOnlyDictionary jobCorrelationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("output"u8)) - { - output = MediaJobOutput.DeserializeMediaJobOutput(property.Value, options); - continue; - } - if (property.NameEquals("jobCorrelationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - jobCorrelationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobOutputStateChangeEventData(previousState, output, jobCorrelationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutputStateChangeEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutputStateChangeEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutputStateChangeEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutputStateChangeEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaJobOutputStateChangeEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobOutputStateChangeEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputStateChangeEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputStateChangeEventData.cs deleted file mode 100644 index d647fa5feff2..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobOutputStateChangeEventData.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Schema of the Data property of an EventGridEvent for a - /// Microsoft.Media.JobOutputStateChange event. - /// - public partial class MediaJobOutputStateChangeEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private protected IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// or is null. - internal MediaJobOutputStateChangeEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData) - { - Argument.AssertNotNull(output, nameof(output)); - Argument.AssertNotNull(jobCorrelationData, nameof(jobCorrelationData)); - - PreviousState = previousState; - Output = output; - JobCorrelationData = jobCorrelationData; - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobOutputStateChangeEventData(MediaJobState previousState, MediaJobOutput output, IReadOnlyDictionary jobCorrelationData, IDictionary serializedAdditionalRawData) - { - PreviousState = previousState; - Output = output; - JobCorrelationData = jobCorrelationData; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal MediaJobOutputStateChangeEventData() - { - } - - /// The previous state of the Job. - public MediaJobState PreviousState { get; } - /// - /// Gets the output. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - public MediaJobOutput Output { get; } - /// Gets the Job correlation data. - public IReadOnlyDictionary JobCorrelationData { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobProcessingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobProcessingEventData.Serialization.cs deleted file mode 100644 index 093588eafc6b..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobProcessingEventData.Serialization.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobProcessingEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobProcessingEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - - MediaJobProcessingEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobProcessingEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobProcessingEventData(document.RootElement, options); - } - - internal static MediaJobProcessingEventData DeserializeMediaJobProcessingEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobState state = default; - IReadOnlyDictionary correlationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("state"u8)) - { - state = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("correlationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - correlationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobProcessingEventData(previousState, state, correlationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobProcessingEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobProcessingEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobProcessingEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobProcessingEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobProcessingEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobProcessingEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobProcessingEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobProcessingEventData.cs deleted file mode 100644 index 1298b135d442..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobProcessingEventData.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job processing event data. Schema of the data property of an EventGridEvent for - /// a Microsoft.Media.JobProcessing event. - /// - public partial class MediaJobProcessingEventData : MediaJobStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// is null. - internal MediaJobProcessingEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData) : base(previousState, state, correlationData) - { - Argument.AssertNotNull(correlationData, nameof(correlationData)); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobProcessingEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData, IDictionary serializedAdditionalRawData) : base(previousState, state, correlationData, serializedAdditionalRawData) - { - } - - /// Initializes a new instance of for deserialization. - internal MediaJobProcessingEventData() - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobRetry.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobRetry.cs deleted file mode 100644 index cf01dfb61c9b..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobRetry.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Media Job Retry Options. - public readonly partial struct MediaJobRetry : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MediaJobRetry(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string DoNotRetryValue = "DoNotRetry"; - private const string MayRetryValue = "MayRetry"; - - /// Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected. - public static MediaJobRetry DoNotRetry { get; } = new MediaJobRetry(DoNotRetryValue); - /// Issue may be resolved after waiting for a period of time and resubmitting the same Job. - public static MediaJobRetry MayRetry { get; } = new MediaJobRetry(MayRetryValue); - /// Determines if two values are the same. - public static bool operator ==(MediaJobRetry left, MediaJobRetry right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MediaJobRetry left, MediaJobRetry right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator MediaJobRetry(string value) => new MediaJobRetry(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MediaJobRetry other && Equals(other); - /// - public bool Equals(MediaJobRetry other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobScheduledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobScheduledEventData.Serialization.cs deleted file mode 100644 index 3f381fba4854..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobScheduledEventData.Serialization.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobScheduledEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobScheduledEventData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - - MediaJobScheduledEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobScheduledEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobScheduledEventData(document.RootElement, options); - } - - internal static MediaJobScheduledEventData DeserializeMediaJobScheduledEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobState state = default; - IReadOnlyDictionary correlationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("state"u8)) - { - state = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("correlationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - correlationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobScheduledEventData(previousState, state, correlationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobScheduledEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobScheduledEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobScheduledEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobScheduledEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new MediaJobScheduledEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobScheduledEventData(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobScheduledEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobScheduledEventData.cs deleted file mode 100644 index f7f96abda48f..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobScheduledEventData.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Job scheduled event data. Schema of the data property of an EventGridEvent for - /// a Microsoft.Media.JobScheduled event. - /// - public partial class MediaJobScheduledEventData : MediaJobStateChangeEventData - { - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// is null. - internal MediaJobScheduledEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData) : base(previousState, state, correlationData) - { - Argument.AssertNotNull(correlationData, nameof(correlationData)); - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobScheduledEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData, IDictionary serializedAdditionalRawData) : base(previousState, state, correlationData, serializedAdditionalRawData) - { - } - - /// Initializes a new instance of for deserialization. - internal MediaJobScheduledEventData() - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobState.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobState.cs deleted file mode 100644 index dafd83fecbd1..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobState.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// State of a Media Job. - public readonly partial struct MediaJobState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public MediaJobState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string CanceledValue = "Canceled"; - private const string CancelingValue = "Canceling"; - private const string ErrorValue = "Error"; - private const string FinishedValue = "Finished"; - private const string ProcessingValue = "Processing"; - private const string QueuedValue = "Queued"; - private const string ScheduledValue = "Scheduled"; - - /// The job was canceled. This is a final state for the job. - public static MediaJobState Canceled { get; } = new MediaJobState(CanceledValue); - /// The job is in the process of being canceled. This is a transient state for the job. - public static MediaJobState Canceling { get; } = new MediaJobState(CancelingValue); - /// The job has encountered an error. This is a final state for the job. - public static MediaJobState Error { get; } = new MediaJobState(ErrorValue); - /// The job is finished. This is a final state for the job. - public static MediaJobState Finished { get; } = new MediaJobState(FinishedValue); - /// The job is processing. This is a transient state for the job. - public static MediaJobState Processing { get; } = new MediaJobState(ProcessingValue); - /// The job is in a queued state, waiting for resources to become available. This is a transient state. - public static MediaJobState Queued { get; } = new MediaJobState(QueuedValue); - /// The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states. - public static MediaJobState Scheduled { get; } = new MediaJobState(ScheduledValue); - /// Determines if two values are the same. - public static bool operator ==(MediaJobState left, MediaJobState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MediaJobState left, MediaJobState right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator MediaJobState(string value) => new MediaJobState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MediaJobState other && Equals(other); - /// - public bool Equals(MediaJobState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobStateChangeEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobStateChangeEventData.Serialization.cs deleted file mode 100644 index 65b844ceb28b..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobStateChangeEventData.Serialization.cs +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaJobStateChangeEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobStateChangeEventData)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("previousState"u8); - writer.WriteStringValue(PreviousState.ToString()); - writer.WritePropertyName("state"u8); - writer.WriteStringValue(State.ToString()); - writer.WritePropertyName("correlationData"u8); - writer.WriteStartObject(); - foreach (var item in CorrelationData) - { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaJobStateChangeEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobStateChangeEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobStateChangeEventData(document.RootElement, options); - } - - internal static MediaJobStateChangeEventData DeserializeMediaJobStateChangeEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - MediaJobState previousState = default; - MediaJobState state = default; - IReadOnlyDictionary correlationData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("previousState"u8)) - { - previousState = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("state"u8)) - { - state = new MediaJobState(property.Value.GetString()); - continue; - } - if (property.NameEquals("correlationData"u8)) - { - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - correlationData = dictionary; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaJobStateChangeEventData(previousState, state, correlationData, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobStateChangeEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaJobStateChangeEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobStateChangeEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobStateChangeEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaJobStateChangeEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobStateChangeEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobStateChangeEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobStateChangeEventData.cs deleted file mode 100644 index ce4898df35b8..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobStateChangeEventData.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// - /// Schema of the Data property of an EventGridEvent for a - /// Microsoft.Media.JobStateChange event. - /// - public partial class MediaJobStateChangeEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private protected IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// is null. - internal MediaJobStateChangeEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData) - { - Argument.AssertNotNull(correlationData, nameof(correlationData)); - - PreviousState = previousState; - State = state; - CorrelationData = correlationData; - } - - /// Initializes a new instance of . - /// The previous state of the Job. - /// The new state of the Job. - /// Gets the Job correlation data. - /// Keeps track of any properties unknown to the library. - internal MediaJobStateChangeEventData(MediaJobState previousState, MediaJobState state, IReadOnlyDictionary correlationData, IDictionary serializedAdditionalRawData) - { - PreviousState = previousState; - State = state; - CorrelationData = correlationData; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal MediaJobStateChangeEventData() - { - } - - /// The previous state of the Job. - public MediaJobState PreviousState { get; } - /// The new state of the Job. - public MediaJobState State { get; } - /// Gets the Job correlation data. - public IReadOnlyDictionary CorrelationData { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventChannelArchiveHeartbeatEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventChannelArchiveHeartbeatEventData.Serialization.cs deleted file mode 100644 index 8e6b9507b93a..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventChannelArchiveHeartbeatEventData.Serialization.cs +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaLiveEventChannelArchiveHeartbeatEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventChannelArchiveHeartbeatEventData)} does not support writing '{format}' format."); - } - - writer.WritePropertyName("channelLatencyMs"u8); - writer.WriteStringValue(ChannelLatencyMs); - writer.WritePropertyName("latencyResultCode"u8); - writer.WriteStringValue(LatencyResultCode); - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaLiveEventChannelArchiveHeartbeatEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventChannelArchiveHeartbeatEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaLiveEventChannelArchiveHeartbeatEventData(document.RootElement, options); - } - - internal static MediaLiveEventChannelArchiveHeartbeatEventData DeserializeMediaLiveEventChannelArchiveHeartbeatEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string channelLatencyMs = default; - string latencyResultCode = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("channelLatencyMs"u8)) - { - channelLatencyMs = property.Value.GetString(); - continue; - } - if (property.NameEquals("latencyResultCode"u8)) - { - latencyResultCode = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaLiveEventChannelArchiveHeartbeatEventData(channelLatencyMs, latencyResultCode, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaLiveEventChannelArchiveHeartbeatEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaLiveEventChannelArchiveHeartbeatEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaLiveEventChannelArchiveHeartbeatEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaLiveEventChannelArchiveHeartbeatEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaLiveEventChannelArchiveHeartbeatEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaLiveEventChannelArchiveHeartbeatEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventChannelArchiveHeartbeatEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventChannelArchiveHeartbeatEventData.cs deleted file mode 100644 index 1a2e1674b510..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventChannelArchiveHeartbeatEventData.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Channel Archive heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventChannelArchiveHeartbeat event. - public partial class MediaLiveEventChannelArchiveHeartbeatEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// Gets the channel latency in ms. - /// Gets the latency result code. - /// or is null. - internal MediaLiveEventChannelArchiveHeartbeatEventData(string channelLatencyMs, string latencyResultCode) - { - Argument.AssertNotNull(channelLatencyMs, nameof(channelLatencyMs)); - Argument.AssertNotNull(latencyResultCode, nameof(latencyResultCode)); - - ChannelLatencyMs = channelLatencyMs; - LatencyResultCode = latencyResultCode; - } - - /// Initializes a new instance of . - /// Gets the channel latency in ms. - /// Gets the latency result code. - /// Keeps track of any properties unknown to the library. - internal MediaLiveEventChannelArchiveHeartbeatEventData(string channelLatencyMs, string latencyResultCode, IDictionary serializedAdditionalRawData) - { - ChannelLatencyMs = channelLatencyMs; - LatencyResultCode = latencyResultCode; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal MediaLiveEventChannelArchiveHeartbeatEventData() - { - } - - /// Gets the channel latency in ms. - public string ChannelLatencyMs { get; } - /// Gets the latency result code. - public string LatencyResultCode { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventConnectionRejectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventConnectionRejectedEventData.Serialization.cs deleted file mode 100644 index 4fb52f66dce3..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventConnectionRejectedEventData.Serialization.cs +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaLiveEventConnectionRejectedEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventConnectionRejectedEventData)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(IngestUrl)) - { - writer.WritePropertyName("ingestUrl"u8); - writer.WriteStringValue(IngestUrl); - } - if (Optional.IsDefined(StreamId)) - { - writer.WritePropertyName("streamId"u8); - writer.WriteStringValue(StreamId); - } - if (Optional.IsDefined(EncoderIp)) - { - writer.WritePropertyName("encoderIp"u8); - writer.WriteStringValue(EncoderIp); - } - if (Optional.IsDefined(EncoderPort)) - { - writer.WritePropertyName("encoderPort"u8); - writer.WriteStringValue(EncoderPort); - } - if (Optional.IsDefined(ResultCode)) - { - writer.WritePropertyName("resultCode"u8); - writer.WriteStringValue(ResultCode); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaLiveEventConnectionRejectedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventConnectionRejectedEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaLiveEventConnectionRejectedEventData(document.RootElement, options); - } - - internal static MediaLiveEventConnectionRejectedEventData DeserializeMediaLiveEventConnectionRejectedEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string ingestUrl = default; - string streamId = default; - string encoderIp = default; - string encoderPort = default; - string resultCode = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("ingestUrl"u8)) - { - ingestUrl = property.Value.GetString(); - continue; - } - if (property.NameEquals("streamId"u8)) - { - streamId = property.Value.GetString(); - continue; - } - if (property.NameEquals("encoderIp"u8)) - { - encoderIp = property.Value.GetString(); - continue; - } - if (property.NameEquals("encoderPort"u8)) - { - encoderPort = property.Value.GetString(); - continue; - } - if (property.NameEquals("resultCode"u8)) - { - resultCode = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaLiveEventConnectionRejectedEventData( - ingestUrl, - streamId, - encoderIp, - encoderPort, - resultCode, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaLiveEventConnectionRejectedEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaLiveEventConnectionRejectedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaLiveEventConnectionRejectedEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaLiveEventConnectionRejectedEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaLiveEventConnectionRejectedEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaLiveEventConnectionRejectedEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventConnectionRejectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventConnectionRejectedEventData.cs deleted file mode 100644 index 9e86f61c5768..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventConnectionRejectedEventData.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Encoder connection rejected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventConnectionRejected event. - public partial class MediaLiveEventConnectionRejectedEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal MediaLiveEventConnectionRejectedEventData() - { - } - - /// Initializes a new instance of . - /// Gets the ingest URL provided by the live event. - /// Gets the stream Id. - /// Gets the remote IP. - /// Gets the remote port. - /// Gets the result code. - /// Keeps track of any properties unknown to the library. - internal MediaLiveEventConnectionRejectedEventData(string ingestUrl, string streamId, string encoderIp, string encoderPort, string resultCode, IDictionary serializedAdditionalRawData) - { - IngestUrl = ingestUrl; - StreamId = streamId; - EncoderIp = encoderIp; - EncoderPort = encoderPort; - ResultCode = resultCode; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets the ingest URL provided by the live event. - public string IngestUrl { get; } - /// Gets the stream Id. - public string StreamId { get; } - /// Gets the remote IP. - public string EncoderIp { get; } - /// Gets the remote port. - public string EncoderPort { get; } - /// Gets the result code. - public string ResultCode { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderConnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderConnectedEventData.Serialization.cs deleted file mode 100644 index 8caba084c648..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderConnectedEventData.Serialization.cs +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaLiveEventEncoderConnectedEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventEncoderConnectedEventData)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(IngestUrl)) - { - writer.WritePropertyName("ingestUrl"u8); - writer.WriteStringValue(IngestUrl); - } - if (Optional.IsDefined(StreamId)) - { - writer.WritePropertyName("streamId"u8); - writer.WriteStringValue(StreamId); - } - if (Optional.IsDefined(EncoderIp)) - { - writer.WritePropertyName("encoderIp"u8); - writer.WriteStringValue(EncoderIp); - } - if (Optional.IsDefined(EncoderPort)) - { - writer.WritePropertyName("encoderPort"u8); - writer.WriteStringValue(EncoderPort); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaLiveEventEncoderConnectedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventEncoderConnectedEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaLiveEventEncoderConnectedEventData(document.RootElement, options); - } - - internal static MediaLiveEventEncoderConnectedEventData DeserializeMediaLiveEventEncoderConnectedEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string ingestUrl = default; - string streamId = default; - string encoderIp = default; - string encoderPort = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("ingestUrl"u8)) - { - ingestUrl = property.Value.GetString(); - continue; - } - if (property.NameEquals("streamId"u8)) - { - streamId = property.Value.GetString(); - continue; - } - if (property.NameEquals("encoderIp"u8)) - { - encoderIp = property.Value.GetString(); - continue; - } - if (property.NameEquals("encoderPort"u8)) - { - encoderPort = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaLiveEventEncoderConnectedEventData(ingestUrl, streamId, encoderIp, encoderPort, serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaLiveEventEncoderConnectedEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaLiveEventEncoderConnectedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaLiveEventEncoderConnectedEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaLiveEventEncoderConnectedEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaLiveEventEncoderConnectedEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaLiveEventEncoderConnectedEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderConnectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderConnectedEventData.cs deleted file mode 100644 index ae72ea53ee7d..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderConnectedEventData.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Encoder connect event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventEncoderConnected event. - public partial class MediaLiveEventEncoderConnectedEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal MediaLiveEventEncoderConnectedEventData() - { - } - - /// Initializes a new instance of . - /// Gets the ingest URL provided by the live event. - /// Gets the stream Id. - /// Gets the remote IP. - /// Gets the remote port. - /// Keeps track of any properties unknown to the library. - internal MediaLiveEventEncoderConnectedEventData(string ingestUrl, string streamId, string encoderIp, string encoderPort, IDictionary serializedAdditionalRawData) - { - IngestUrl = ingestUrl; - StreamId = streamId; - EncoderIp = encoderIp; - EncoderPort = encoderPort; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets the ingest URL provided by the live event. - public string IngestUrl { get; } - /// Gets the stream Id. - public string StreamId { get; } - /// Gets the remote IP. - public string EncoderIp { get; } - /// Gets the remote port. - public string EncoderPort { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderDisconnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderDisconnectedEventData.Serialization.cs deleted file mode 100644 index a568208756a4..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderDisconnectedEventData.Serialization.cs +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaLiveEventEncoderDisconnectedEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventEncoderDisconnectedEventData)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(IngestUrl)) - { - writer.WritePropertyName("ingestUrl"u8); - writer.WriteStringValue(IngestUrl); - } - if (Optional.IsDefined(StreamId)) - { - writer.WritePropertyName("streamId"u8); - writer.WriteStringValue(StreamId); - } - if (Optional.IsDefined(EncoderIp)) - { - writer.WritePropertyName("encoderIp"u8); - writer.WriteStringValue(EncoderIp); - } - if (Optional.IsDefined(EncoderPort)) - { - writer.WritePropertyName("encoderPort"u8); - writer.WriteStringValue(EncoderPort); - } - if (Optional.IsDefined(ResultCode)) - { - writer.WritePropertyName("resultCode"u8); - writer.WriteStringValue(ResultCode); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaLiveEventEncoderDisconnectedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventEncoderDisconnectedEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaLiveEventEncoderDisconnectedEventData(document.RootElement, options); - } - - internal static MediaLiveEventEncoderDisconnectedEventData DeserializeMediaLiveEventEncoderDisconnectedEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string ingestUrl = default; - string streamId = default; - string encoderIp = default; - string encoderPort = default; - string resultCode = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("ingestUrl"u8)) - { - ingestUrl = property.Value.GetString(); - continue; - } - if (property.NameEquals("streamId"u8)) - { - streamId = property.Value.GetString(); - continue; - } - if (property.NameEquals("encoderIp"u8)) - { - encoderIp = property.Value.GetString(); - continue; - } - if (property.NameEquals("encoderPort"u8)) - { - encoderPort = property.Value.GetString(); - continue; - } - if (property.NameEquals("resultCode"u8)) - { - resultCode = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaLiveEventEncoderDisconnectedEventData( - ingestUrl, - streamId, - encoderIp, - encoderPort, - resultCode, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaLiveEventEncoderDisconnectedEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaLiveEventEncoderDisconnectedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaLiveEventEncoderDisconnectedEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaLiveEventEncoderDisconnectedEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaLiveEventEncoderDisconnectedEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaLiveEventEncoderDisconnectedEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderDisconnectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderDisconnectedEventData.cs deleted file mode 100644 index 93e701277824..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventEncoderDisconnectedEventData.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Encoder disconnected event data. Schema of the Data property of an EventGridEvent for a Microsoft.Media.LiveEventEncoderDisconnected event. - public partial class MediaLiveEventEncoderDisconnectedEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal MediaLiveEventEncoderDisconnectedEventData() - { - } - - /// Initializes a new instance of . - /// Gets the ingest URL provided by the live event. - /// Gets the stream Id. - /// Gets the remote IP. - /// Gets the remote port. - /// Gets the result code. - /// Keeps track of any properties unknown to the library. - internal MediaLiveEventEncoderDisconnectedEventData(string ingestUrl, string streamId, string encoderIp, string encoderPort, string resultCode, IDictionary serializedAdditionalRawData) - { - IngestUrl = ingestUrl; - StreamId = streamId; - EncoderIp = encoderIp; - EncoderPort = encoderPort; - ResultCode = resultCode; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets the ingest URL provided by the live event. - public string IngestUrl { get; } - /// Gets the stream Id. - public string StreamId { get; } - /// Gets the remote IP. - public string EncoderIp { get; } - /// Gets the remote port. - public string EncoderPort { get; } - /// Gets the result code. - public string ResultCode { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingDataChunkDroppedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingDataChunkDroppedEventData.Serialization.cs deleted file mode 100644 index 25bb532b0546..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingDataChunkDroppedEventData.Serialization.cs +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaLiveEventIncomingDataChunkDroppedEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventIncomingDataChunkDroppedEventData)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(Timestamp)) - { - writer.WritePropertyName("timestamp"u8); - writer.WriteStringValue(Timestamp); - } - if (Optional.IsDefined(TrackType)) - { - writer.WritePropertyName("trackType"u8); - writer.WriteStringValue(TrackType); - } - if (Optional.IsDefined(Bitrate)) - { - writer.WritePropertyName("bitrate"u8); - writer.WriteNumberValue(Bitrate.Value); - } - if (Optional.IsDefined(Timescale)) - { - writer.WritePropertyName("timescale"u8); - writer.WriteStringValue(Timescale); - } - if (Optional.IsDefined(ResultCode)) - { - writer.WritePropertyName("resultCode"u8); - writer.WriteStringValue(ResultCode); - } - if (Optional.IsDefined(TrackName)) - { - writer.WritePropertyName("trackName"u8); - writer.WriteStringValue(TrackName); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaLiveEventIncomingDataChunkDroppedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventIncomingDataChunkDroppedEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaLiveEventIncomingDataChunkDroppedEventData(document.RootElement, options); - } - - internal static MediaLiveEventIncomingDataChunkDroppedEventData DeserializeMediaLiveEventIncomingDataChunkDroppedEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string timestamp = default; - string trackType = default; - long? bitrate = default; - string timescale = default; - string resultCode = default; - string trackName = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("timestamp"u8)) - { - timestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("trackType"u8)) - { - trackType = property.Value.GetString(); - continue; - } - if (property.NameEquals("bitrate"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - bitrate = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("timescale"u8)) - { - timescale = property.Value.GetString(); - continue; - } - if (property.NameEquals("resultCode"u8)) - { - resultCode = property.Value.GetString(); - continue; - } - if (property.NameEquals("trackName"u8)) - { - trackName = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaLiveEventIncomingDataChunkDroppedEventData( - timestamp, - trackType, - bitrate, - timescale, - resultCode, - trackName, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaLiveEventIncomingDataChunkDroppedEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaLiveEventIncomingDataChunkDroppedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaLiveEventIncomingDataChunkDroppedEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaLiveEventIncomingDataChunkDroppedEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaLiveEventIncomingDataChunkDroppedEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaLiveEventIncomingDataChunkDroppedEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingDataChunkDroppedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingDataChunkDroppedEventData.cs deleted file mode 100644 index 55ee088b611c..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingDataChunkDroppedEventData.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Ingest fragment dropped event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingDataChunkDropped event. - public partial class MediaLiveEventIncomingDataChunkDroppedEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal MediaLiveEventIncomingDataChunkDroppedEventData() - { - } - - /// Initializes a new instance of . - /// Gets the timestamp of the data chunk dropped. - /// Gets the type of the track (Audio / Video). - /// Gets the bitrate of the track. - /// Gets the timescale of the Timestamp. - /// Gets the result code for fragment drop operation. - /// Gets the name of the track for which fragment is dropped. - /// Keeps track of any properties unknown to the library. - internal MediaLiveEventIncomingDataChunkDroppedEventData(string timestamp, string trackType, long? bitrate, string timescale, string resultCode, string trackName, IDictionary serializedAdditionalRawData) - { - Timestamp = timestamp; - TrackType = trackType; - Bitrate = bitrate; - Timescale = timescale; - ResultCode = resultCode; - TrackName = trackName; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets the timestamp of the data chunk dropped. - public string Timestamp { get; } - /// Gets the type of the track (Audio / Video). - public string TrackType { get; } - /// Gets the bitrate of the track. - public long? Bitrate { get; } - /// Gets the timescale of the Timestamp. - public string Timescale { get; } - /// Gets the result code for fragment drop operation. - public string ResultCode { get; } - /// Gets the name of the track for which fragment is dropped. - public string TrackName { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamReceivedEventData.Serialization.cs deleted file mode 100644 index be42947c0456..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamReceivedEventData.Serialization.cs +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaLiveEventIncomingStreamReceivedEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventIncomingStreamReceivedEventData)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(IngestUrl)) - { - writer.WritePropertyName("ingestUrl"u8); - writer.WriteStringValue(IngestUrl); - } - if (Optional.IsDefined(TrackType)) - { - writer.WritePropertyName("trackType"u8); - writer.WriteStringValue(TrackType); - } - if (Optional.IsDefined(TrackName)) - { - writer.WritePropertyName("trackName"u8); - writer.WriteStringValue(TrackName); - } - if (Optional.IsDefined(Bitrate)) - { - writer.WritePropertyName("bitrate"u8); - writer.WriteNumberValue(Bitrate.Value); - } - if (Optional.IsDefined(EncoderIp)) - { - writer.WritePropertyName("encoderIp"u8); - writer.WriteStringValue(EncoderIp); - } - if (Optional.IsDefined(EncoderPort)) - { - writer.WritePropertyName("encoderPort"u8); - writer.WriteStringValue(EncoderPort); - } - if (Optional.IsDefined(Timestamp)) - { - writer.WritePropertyName("timestamp"u8); - writer.WriteStringValue(Timestamp); - } - if (Optional.IsDefined(Duration)) - { - writer.WritePropertyName("duration"u8); - writer.WriteStringValue(Duration); - } - if (Optional.IsDefined(Timescale)) - { - writer.WritePropertyName("timescale"u8); - writer.WriteStringValue(Timescale); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaLiveEventIncomingStreamReceivedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventIncomingStreamReceivedEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaLiveEventIncomingStreamReceivedEventData(document.RootElement, options); - } - - internal static MediaLiveEventIncomingStreamReceivedEventData DeserializeMediaLiveEventIncomingStreamReceivedEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string ingestUrl = default; - string trackType = default; - string trackName = default; - long? bitrate = default; - string encoderIp = default; - string encoderPort = default; - string timestamp = default; - string duration = default; - string timescale = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("ingestUrl"u8)) - { - ingestUrl = property.Value.GetString(); - continue; - } - if (property.NameEquals("trackType"u8)) - { - trackType = property.Value.GetString(); - continue; - } - if (property.NameEquals("trackName"u8)) - { - trackName = property.Value.GetString(); - continue; - } - if (property.NameEquals("bitrate"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - bitrate = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("encoderIp"u8)) - { - encoderIp = property.Value.GetString(); - continue; - } - if (property.NameEquals("encoderPort"u8)) - { - encoderPort = property.Value.GetString(); - continue; - } - if (property.NameEquals("timestamp"u8)) - { - timestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("duration"u8)) - { - duration = property.Value.GetString(); - continue; - } - if (property.NameEquals("timescale"u8)) - { - timescale = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaLiveEventIncomingStreamReceivedEventData( - ingestUrl, - trackType, - trackName, - bitrate, - encoderIp, - encoderPort, - timestamp, - duration, - timescale, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaLiveEventIncomingStreamReceivedEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaLiveEventIncomingStreamReceivedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaLiveEventIncomingStreamReceivedEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaLiveEventIncomingStreamReceivedEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaLiveEventIncomingStreamReceivedEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaLiveEventIncomingStreamReceivedEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamReceivedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamReceivedEventData.cs deleted file mode 100644 index c16535f3a93b..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamReceivedEventData.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Encoder connect event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingStreamReceived event. - public partial class MediaLiveEventIncomingStreamReceivedEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal MediaLiveEventIncomingStreamReceivedEventData() - { - } - - /// Initializes a new instance of . - /// Gets the ingest URL provided by the live event. - /// Gets the type of the track (Audio / Video). - /// Gets the track name. - /// Gets the bitrate of the track. - /// Gets the remote IP. - /// Gets the remote port. - /// Gets the first timestamp of the data chunk received. - /// Gets the duration of the first data chunk. - /// Gets the timescale in which timestamp is represented. - /// Keeps track of any properties unknown to the library. - internal MediaLiveEventIncomingStreamReceivedEventData(string ingestUrl, string trackType, string trackName, long? bitrate, string encoderIp, string encoderPort, string timestamp, string duration, string timescale, IDictionary serializedAdditionalRawData) - { - IngestUrl = ingestUrl; - TrackType = trackType; - TrackName = trackName; - Bitrate = bitrate; - EncoderIp = encoderIp; - EncoderPort = encoderPort; - Timestamp = timestamp; - Duration = duration; - Timescale = timescale; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets the ingest URL provided by the live event. - public string IngestUrl { get; } - /// Gets the type of the track (Audio / Video). - public string TrackType { get; } - /// Gets the track name. - public string TrackName { get; } - /// Gets the bitrate of the track. - public long? Bitrate { get; } - /// Gets the remote IP. - public string EncoderIp { get; } - /// Gets the remote port. - public string EncoderPort { get; } - /// Gets the first timestamp of the data chunk received. - public string Timestamp { get; } - /// Gets the duration of the first data chunk. - public string Duration { get; } - /// Gets the timescale in which timestamp is represented. - public string Timescale { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamsOutOfSyncEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamsOutOfSyncEventData.Serialization.cs deleted file mode 100644 index dc5a7de96c8d..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamsOutOfSyncEventData.Serialization.cs +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaLiveEventIncomingStreamsOutOfSyncEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventIncomingStreamsOutOfSyncEventData)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(MinLastTimestamp)) - { - writer.WritePropertyName("minLastTimestamp"u8); - writer.WriteStringValue(MinLastTimestamp); - } - if (Optional.IsDefined(TypeOfStreamWithMinLastTimestamp)) - { - writer.WritePropertyName("typeOfStreamWithMinLastTimestamp"u8); - writer.WriteStringValue(TypeOfStreamWithMinLastTimestamp); - } - if (Optional.IsDefined(MaxLastTimestamp)) - { - writer.WritePropertyName("maxLastTimestamp"u8); - writer.WriteStringValue(MaxLastTimestamp); - } - if (Optional.IsDefined(TypeOfStreamWithMaxLastTimestamp)) - { - writer.WritePropertyName("typeOfStreamWithMaxLastTimestamp"u8); - writer.WriteStringValue(TypeOfStreamWithMaxLastTimestamp); - } - if (Optional.IsDefined(TimescaleOfMinLastTimestamp)) - { - writer.WritePropertyName("timescaleOfMinLastTimestamp"u8); - writer.WriteStringValue(TimescaleOfMinLastTimestamp); - } - if (Optional.IsDefined(TimescaleOfMaxLastTimestamp)) - { - writer.WritePropertyName("timescaleOfMaxLastTimestamp"u8); - writer.WriteStringValue(TimescaleOfMaxLastTimestamp); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaLiveEventIncomingStreamsOutOfSyncEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventIncomingStreamsOutOfSyncEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaLiveEventIncomingStreamsOutOfSyncEventData(document.RootElement, options); - } - - internal static MediaLiveEventIncomingStreamsOutOfSyncEventData DeserializeMediaLiveEventIncomingStreamsOutOfSyncEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string minLastTimestamp = default; - string typeOfStreamWithMinLastTimestamp = default; - string maxLastTimestamp = default; - string typeOfStreamWithMaxLastTimestamp = default; - string timescaleOfMinLastTimestamp = default; - string timescaleOfMaxLastTimestamp = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("minLastTimestamp"u8)) - { - minLastTimestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("typeOfStreamWithMinLastTimestamp"u8)) - { - typeOfStreamWithMinLastTimestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("maxLastTimestamp"u8)) - { - maxLastTimestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("typeOfStreamWithMaxLastTimestamp"u8)) - { - typeOfStreamWithMaxLastTimestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("timescaleOfMinLastTimestamp"u8)) - { - timescaleOfMinLastTimestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("timescaleOfMaxLastTimestamp"u8)) - { - timescaleOfMaxLastTimestamp = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaLiveEventIncomingStreamsOutOfSyncEventData( - minLastTimestamp, - typeOfStreamWithMinLastTimestamp, - maxLastTimestamp, - typeOfStreamWithMaxLastTimestamp, - timescaleOfMinLastTimestamp, - timescaleOfMaxLastTimestamp, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaLiveEventIncomingStreamsOutOfSyncEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaLiveEventIncomingStreamsOutOfSyncEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaLiveEventIncomingStreamsOutOfSyncEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaLiveEventIncomingStreamsOutOfSyncEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaLiveEventIncomingStreamsOutOfSyncEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaLiveEventIncomingStreamsOutOfSyncEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamsOutOfSyncEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamsOutOfSyncEventData.cs deleted file mode 100644 index 48d04136a2fd..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingStreamsOutOfSyncEventData.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Incoming streams out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingStreamsOutOfSync event. - public partial class MediaLiveEventIncomingStreamsOutOfSyncEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal MediaLiveEventIncomingStreamsOutOfSyncEventData() - { - } - - /// Initializes a new instance of . - /// Gets the minimum last timestamp received. - /// Gets the type of stream with minimum last timestamp. - /// Gets the maximum timestamp among all the tracks (audio or video). - /// Gets the type of stream with maximum last timestamp. - /// Gets the timescale in which \"MinLastTimestamp\" is represented. - /// Gets the timescale in which \"MaxLastTimestamp\" is represented. - /// Keeps track of any properties unknown to the library. - internal MediaLiveEventIncomingStreamsOutOfSyncEventData(string minLastTimestamp, string typeOfStreamWithMinLastTimestamp, string maxLastTimestamp, string typeOfStreamWithMaxLastTimestamp, string timescaleOfMinLastTimestamp, string timescaleOfMaxLastTimestamp, IDictionary serializedAdditionalRawData) - { - MinLastTimestamp = minLastTimestamp; - TypeOfStreamWithMinLastTimestamp = typeOfStreamWithMinLastTimestamp; - MaxLastTimestamp = maxLastTimestamp; - TypeOfStreamWithMaxLastTimestamp = typeOfStreamWithMaxLastTimestamp; - TimescaleOfMinLastTimestamp = timescaleOfMinLastTimestamp; - TimescaleOfMaxLastTimestamp = timescaleOfMaxLastTimestamp; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets the minimum last timestamp received. - public string MinLastTimestamp { get; } - /// Gets the type of stream with minimum last timestamp. - public string TypeOfStreamWithMinLastTimestamp { get; } - /// Gets the maximum timestamp among all the tracks (audio or video). - public string MaxLastTimestamp { get; } - /// Gets the type of stream with maximum last timestamp. - public string TypeOfStreamWithMaxLastTimestamp { get; } - /// Gets the timescale in which \"MinLastTimestamp\" is represented. - public string TimescaleOfMinLastTimestamp { get; } - /// Gets the timescale in which \"MaxLastTimestamp\" is represented. - public string TimescaleOfMaxLastTimestamp { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.Serialization.cs deleted file mode 100644 index cdf63959dbb9..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.Serialization.cs +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaLiveEventIncomingVideoStreamsOutOfSyncEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventIncomingVideoStreamsOutOfSyncEventData)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(FirstTimestamp)) - { - writer.WritePropertyName("firstTimestamp"u8); - writer.WriteStringValue(FirstTimestamp); - } - if (Optional.IsDefined(FirstDuration)) - { - writer.WritePropertyName("firstDuration"u8); - writer.WriteStringValue(FirstDuration); - } - if (Optional.IsDefined(SecondTimestamp)) - { - writer.WritePropertyName("secondTimestamp"u8); - writer.WriteStringValue(SecondTimestamp); - } - if (Optional.IsDefined(SecondDuration)) - { - writer.WritePropertyName("secondDuration"u8); - writer.WriteStringValue(SecondDuration); - } - if (Optional.IsDefined(Timescale)) - { - writer.WritePropertyName("timescale"u8); - writer.WriteStringValue(Timescale); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaLiveEventIncomingVideoStreamsOutOfSyncEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventIncomingVideoStreamsOutOfSyncEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaLiveEventIncomingVideoStreamsOutOfSyncEventData(document.RootElement, options); - } - - internal static MediaLiveEventIncomingVideoStreamsOutOfSyncEventData DeserializeMediaLiveEventIncomingVideoStreamsOutOfSyncEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string firstTimestamp = default; - string firstDuration = default; - string secondTimestamp = default; - string secondDuration = default; - string timescale = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("firstTimestamp"u8)) - { - firstTimestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("firstDuration"u8)) - { - firstDuration = property.Value.GetString(); - continue; - } - if (property.NameEquals("secondTimestamp"u8)) - { - secondTimestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("secondDuration"u8)) - { - secondDuration = property.Value.GetString(); - continue; - } - if (property.NameEquals("timescale"u8)) - { - timescale = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaLiveEventIncomingVideoStreamsOutOfSyncEventData( - firstTimestamp, - firstDuration, - secondTimestamp, - secondDuration, - timescale, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaLiveEventIncomingVideoStreamsOutOfSyncEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaLiveEventIncomingVideoStreamsOutOfSyncEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaLiveEventIncomingVideoStreamsOutOfSyncEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaLiveEventIncomingVideoStreamsOutOfSyncEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaLiveEventIncomingVideoStreamsOutOfSyncEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaLiveEventIncomingVideoStreamsOutOfSyncEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.cs deleted file mode 100644 index 00316740b3de..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Incoming video stream out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event. - public partial class MediaLiveEventIncomingVideoStreamsOutOfSyncEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal MediaLiveEventIncomingVideoStreamsOutOfSyncEventData() - { - } - - /// Initializes a new instance of . - /// Gets the first timestamp received for one of the quality levels. - /// Gets the duration of the data chunk with first timestamp. - /// Gets the timestamp received for some other quality levels. - /// Gets the duration of the data chunk with second timestamp. - /// Gets the timescale in which both the timestamps and durations are represented. - /// Keeps track of any properties unknown to the library. - internal MediaLiveEventIncomingVideoStreamsOutOfSyncEventData(string firstTimestamp, string firstDuration, string secondTimestamp, string secondDuration, string timescale, IDictionary serializedAdditionalRawData) - { - FirstTimestamp = firstTimestamp; - FirstDuration = firstDuration; - SecondTimestamp = secondTimestamp; - SecondDuration = secondDuration; - Timescale = timescale; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets the first timestamp received for one of the quality levels. - public string FirstTimestamp { get; } - /// Gets the duration of the data chunk with first timestamp. - public string FirstDuration { get; } - /// Gets the timestamp received for some other quality levels. - public string SecondTimestamp { get; } - /// Gets the duration of the data chunk with second timestamp. - public string SecondDuration { get; } - /// Gets the timescale in which both the timestamps and durations are represented. - public string Timescale { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIngestHeartbeatEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIngestHeartbeatEventData.Serialization.cs deleted file mode 100644 index 2e196fa43664..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIngestHeartbeatEventData.Serialization.cs +++ /dev/null @@ -1,355 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaLiveEventIngestHeartbeatEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventIngestHeartbeatEventData)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(TrackType)) - { - writer.WritePropertyName("trackType"u8); - writer.WriteStringValue(TrackType); - } - if (Optional.IsDefined(TrackName)) - { - writer.WritePropertyName("trackName"u8); - writer.WriteStringValue(TrackName); - } - if (Optional.IsDefined(TranscriptionLanguage)) - { - writer.WritePropertyName("transcriptionLanguage"u8); - writer.WriteStringValue(TranscriptionLanguage); - } - if (Optional.IsDefined(TranscriptionState)) - { - writer.WritePropertyName("transcriptionState"u8); - writer.WriteStringValue(TranscriptionState); - } - if (Optional.IsDefined(Bitrate)) - { - writer.WritePropertyName("bitrate"u8); - writer.WriteNumberValue(Bitrate.Value); - } - if (Optional.IsDefined(IncomingBitrate)) - { - writer.WritePropertyName("incomingBitrate"u8); - writer.WriteNumberValue(IncomingBitrate.Value); - } - if (Optional.IsDefined(IngestDriftValue)) - { - writer.WritePropertyName("ingestDriftValue"u8); - writer.WriteStringValue(IngestDriftValue); - } - if (Optional.IsDefined(LastFragmentArrivalTime)) - { - writer.WritePropertyName("lastFragmentArrivalTime"u8); - writer.WriteStringValue(LastFragmentArrivalTime); - } - if (Optional.IsDefined(LastTimestamp)) - { - writer.WritePropertyName("lastTimestamp"u8); - writer.WriteStringValue(LastTimestamp); - } - if (Optional.IsDefined(Timescale)) - { - writer.WritePropertyName("timescale"u8); - writer.WriteStringValue(Timescale); - } - if (Optional.IsDefined(OverlapCount)) - { - writer.WritePropertyName("overlapCount"u8); - writer.WriteNumberValue(OverlapCount.Value); - } - if (Optional.IsDefined(DiscontinuityCount)) - { - writer.WritePropertyName("discontinuityCount"u8); - writer.WriteNumberValue(DiscontinuityCount.Value); - } - if (Optional.IsDefined(NonincreasingCount)) - { - writer.WritePropertyName("nonincreasingCount"u8); - writer.WriteNumberValue(NonincreasingCount.Value); - } - if (Optional.IsDefined(UnexpectedBitrate)) - { - writer.WritePropertyName("unexpectedBitrate"u8); - writer.WriteBooleanValue(UnexpectedBitrate.Value); - } - if (Optional.IsDefined(State)) - { - writer.WritePropertyName("state"u8); - writer.WriteStringValue(State); - } - if (Optional.IsDefined(Healthy)) - { - writer.WritePropertyName("healthy"u8); - writer.WriteBooleanValue(Healthy.Value); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaLiveEventIngestHeartbeatEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventIngestHeartbeatEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaLiveEventIngestHeartbeatEventData(document.RootElement, options); - } - - internal static MediaLiveEventIngestHeartbeatEventData DeserializeMediaLiveEventIngestHeartbeatEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string trackType = default; - string trackName = default; - string transcriptionLanguage = default; - string transcriptionState = default; - long? bitrate = default; - long? incomingBitrate = default; - string ingestDriftValue = default; - string lastFragmentArrivalTime = default; - string lastTimestamp = default; - string timescale = default; - long? overlapCount = default; - long? discontinuityCount = default; - long? nonincreasingCount = default; - bool? unexpectedBitrate = default; - string state = default; - bool? healthy = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("trackType"u8)) - { - trackType = property.Value.GetString(); - continue; - } - if (property.NameEquals("trackName"u8)) - { - trackName = property.Value.GetString(); - continue; - } - if (property.NameEquals("transcriptionLanguage"u8)) - { - transcriptionLanguage = property.Value.GetString(); - continue; - } - if (property.NameEquals("transcriptionState"u8)) - { - transcriptionState = property.Value.GetString(); - continue; - } - if (property.NameEquals("bitrate"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - bitrate = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("incomingBitrate"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - incomingBitrate = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("ingestDriftValue"u8)) - { - ingestDriftValue = property.Value.GetString(); - continue; - } - if (property.NameEquals("lastFragmentArrivalTime"u8)) - { - lastFragmentArrivalTime = property.Value.GetString(); - continue; - } - if (property.NameEquals("lastTimestamp"u8)) - { - lastTimestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("timescale"u8)) - { - timescale = property.Value.GetString(); - continue; - } - if (property.NameEquals("overlapCount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - overlapCount = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("discontinuityCount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - discontinuityCount = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("nonincreasingCount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nonincreasingCount = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("unexpectedBitrate"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - unexpectedBitrate = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("state"u8)) - { - state = property.Value.GetString(); - continue; - } - if (property.NameEquals("healthy"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - healthy = property.Value.GetBoolean(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaLiveEventIngestHeartbeatEventData( - trackType, - trackName, - transcriptionLanguage, - transcriptionState, - bitrate, - incomingBitrate, - ingestDriftValue, - lastFragmentArrivalTime, - lastTimestamp, - timescale, - overlapCount, - discontinuityCount, - nonincreasingCount, - unexpectedBitrate, - state, - healthy, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaLiveEventIngestHeartbeatEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaLiveEventIngestHeartbeatEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaLiveEventIngestHeartbeatEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaLiveEventIngestHeartbeatEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaLiveEventIngestHeartbeatEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaLiveEventIngestHeartbeatEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIngestHeartbeatEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIngestHeartbeatEventData.cs deleted file mode 100644 index 0171662bcace..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventIngestHeartbeatEventData.cs +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Ingest heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeat event. - public partial class MediaLiveEventIngestHeartbeatEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal MediaLiveEventIngestHeartbeatEventData() - { - } - - /// Initializes a new instance of . - /// Gets the type of the track (Audio / Video). - /// Gets the track name. - /// Gets the Live Transcription language. - /// Gets the Live Transcription state. - /// Gets the bitrate of the track. - /// Gets the incoming bitrate. - /// Gets the track ingest drift value. - /// Gets the arrival UTC time of the last fragment. - /// Gets the last timestamp. - /// Gets the timescale of the last timestamp. - /// Gets the fragment Overlap count. - /// Gets the fragment Discontinuity count. - /// Gets Non increasing count. - /// Gets a value indicating whether unexpected bitrate is present or not. - /// Gets the state of the live event. - /// Gets a value indicating whether preview is healthy or not. - /// Keeps track of any properties unknown to the library. - internal MediaLiveEventIngestHeartbeatEventData(string trackType, string trackName, string transcriptionLanguage, string transcriptionState, long? bitrate, long? incomingBitrate, string ingestDriftValue, string lastFragmentArrivalTime, string lastTimestamp, string timescale, long? overlapCount, long? discontinuityCount, long? nonincreasingCount, bool? unexpectedBitrate, string state, bool? healthy, IDictionary serializedAdditionalRawData) - { - TrackType = trackType; - TrackName = trackName; - TranscriptionLanguage = transcriptionLanguage; - TranscriptionState = transcriptionState; - Bitrate = bitrate; - IncomingBitrate = incomingBitrate; - IngestDriftValue = ingestDriftValue; - LastFragmentArrivalTime = lastFragmentArrivalTime; - LastTimestamp = lastTimestamp; - Timescale = timescale; - OverlapCount = overlapCount; - DiscontinuityCount = discontinuityCount; - NonincreasingCount = nonincreasingCount; - UnexpectedBitrate = unexpectedBitrate; - State = state; - Healthy = healthy; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets the type of the track (Audio / Video). - public string TrackType { get; } - /// Gets the track name. - public string TrackName { get; } - /// Gets the Live Transcription language. - public string TranscriptionLanguage { get; } - /// Gets the Live Transcription state. - public string TranscriptionState { get; } - /// Gets the bitrate of the track. - public long? Bitrate { get; } - /// Gets the incoming bitrate. - public long? IncomingBitrate { get; } - /// Gets the track ingest drift value. - public string IngestDriftValue { get; } - /// Gets the arrival UTC time of the last fragment. - public string LastFragmentArrivalTime { get; } - /// Gets the last timestamp. - public string LastTimestamp { get; } - /// Gets the timescale of the last timestamp. - public string Timescale { get; } - /// Gets the fragment Overlap count. - public long? OverlapCount { get; } - /// Gets the fragment Discontinuity count. - public long? DiscontinuityCount { get; } - /// Gets Non increasing count. - public long? NonincreasingCount { get; } - /// Gets a value indicating whether unexpected bitrate is present or not. - public bool? UnexpectedBitrate { get; } - /// Gets the state of the live event. - public string State { get; } - /// Gets a value indicating whether preview is healthy or not. - public bool? Healthy { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventTrackDiscontinuityDetectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventTrackDiscontinuityDetectedEventData.Serialization.cs deleted file mode 100644 index 58ca54e43916..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventTrackDiscontinuityDetectedEventData.Serialization.cs +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - public partial class MediaLiveEventTrackDiscontinuityDetectedEventData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventTrackDiscontinuityDetectedEventData)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(TrackType)) - { - writer.WritePropertyName("trackType"u8); - writer.WriteStringValue(TrackType); - } - if (Optional.IsDefined(TrackName)) - { - writer.WritePropertyName("trackName"u8); - writer.WriteStringValue(TrackName); - } - if (Optional.IsDefined(Bitrate)) - { - writer.WritePropertyName("bitrate"u8); - writer.WriteNumberValue(Bitrate.Value); - } - if (Optional.IsDefined(PreviousTimestamp)) - { - writer.WritePropertyName("previousTimestamp"u8); - writer.WriteStringValue(PreviousTimestamp); - } - if (Optional.IsDefined(NewTimestamp)) - { - writer.WritePropertyName("newTimestamp"u8); - writer.WriteStringValue(NewTimestamp); - } - if (Optional.IsDefined(Timescale)) - { - writer.WritePropertyName("timescale"u8); - writer.WriteStringValue(Timescale); - } - if (Optional.IsDefined(DiscontinuityGap)) - { - writer.WritePropertyName("discontinuityGap"u8); - writer.WriteStringValue(DiscontinuityGap); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - MediaLiveEventTrackDiscontinuityDetectedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaLiveEventTrackDiscontinuityDetectedEventData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaLiveEventTrackDiscontinuityDetectedEventData(document.RootElement, options); - } - - internal static MediaLiveEventTrackDiscontinuityDetectedEventData DeserializeMediaLiveEventTrackDiscontinuityDetectedEventData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string trackType = default; - string trackName = default; - long? bitrate = default; - string previousTimestamp = default; - string newTimestamp = default; - string timescale = default; - string discontinuityGap = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("trackType"u8)) - { - trackType = property.Value.GetString(); - continue; - } - if (property.NameEquals("trackName"u8)) - { - trackName = property.Value.GetString(); - continue; - } - if (property.NameEquals("bitrate"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - bitrate = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("previousTimestamp"u8)) - { - previousTimestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("newTimestamp"u8)) - { - newTimestamp = property.Value.GetString(); - continue; - } - if (property.NameEquals("timescale"u8)) - { - timescale = property.Value.GetString(); - continue; - } - if (property.NameEquals("discontinuityGap"u8)) - { - discontinuityGap = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new MediaLiveEventTrackDiscontinuityDetectedEventData( - trackType, - trackName, - bitrate, - previousTimestamp, - newTimestamp, - timescale, - discontinuityGap, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaLiveEventTrackDiscontinuityDetectedEventData)} does not support writing '{options.Format}' format."); - } - } - - MediaLiveEventTrackDiscontinuityDetectedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaLiveEventTrackDiscontinuityDetectedEventData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaLiveEventTrackDiscontinuityDetectedEventData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static MediaLiveEventTrackDiscontinuityDetectedEventData FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaLiveEventTrackDiscontinuityDetectedEventData(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventTrackDiscontinuityDetectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventTrackDiscontinuityDetectedEventData.cs deleted file mode 100644 index e077f783f04a..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaLiveEventTrackDiscontinuityDetectedEventData.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Ingest track discontinuity detected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventTrackDiscontinuityDetected event. - public partial class MediaLiveEventTrackDiscontinuityDetectedEventData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal MediaLiveEventTrackDiscontinuityDetectedEventData() - { - } - - /// Initializes a new instance of . - /// Gets the type of the track (Audio / Video). - /// Gets the track name. - /// Gets the bitrate. - /// Gets the timestamp of the previous fragment. - /// Gets the timestamp of the current fragment. - /// Gets the timescale in which both timestamps and discontinuity gap are represented. - /// Gets the discontinuity gap between PreviousTimestamp and NewTimestamp. - /// Keeps track of any properties unknown to the library. - internal MediaLiveEventTrackDiscontinuityDetectedEventData(string trackType, string trackName, long? bitrate, string previousTimestamp, string newTimestamp, string timescale, string discontinuityGap, IDictionary serializedAdditionalRawData) - { - TrackType = trackType; - TrackName = trackName; - Bitrate = bitrate; - PreviousTimestamp = previousTimestamp; - NewTimestamp = newTimestamp; - Timescale = timescale; - DiscontinuityGap = discontinuityGap; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets the type of the track (Audio / Video). - public string TrackType { get; } - /// Gets the track name. - public string TrackName { get; } - /// Gets the bitrate. - public long? Bitrate { get; } - /// Gets the timestamp of the previous fragment. - public string PreviousTimestamp { get; } - /// Gets the timestamp of the current fragment. - public string NewTimestamp { get; } - /// Gets the timescale in which both timestamps and discontinuity gap are represented. - public string Timescale { get; } - /// Gets the discontinuity gap between PreviousTimestamp and NewTimestamp. - public string DiscontinuityGap { get; } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateChangedEventData.Serialization.cs index d0a89e1b3172..70c90e5cdd7c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateChangedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateChangedEventData.Serialization.cs @@ -36,36 +36,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("timestamp"u8); writer.WriteStringValue(Timestamp, "O"); - if (Optional.IsDefined(PolicyAssignmentId)) - { - writer.WritePropertyName("policyAssignmentId"u8); - writer.WriteStringValue(PolicyAssignmentId); - } - if (Optional.IsDefined(PolicyDefinitionId)) - { - writer.WritePropertyName("policyDefinitionId"u8); - writer.WriteStringValue(PolicyDefinitionId); - } - if (Optional.IsDefined(PolicyDefinitionReferenceId)) - { - writer.WritePropertyName("policyDefinitionReferenceId"u8); - writer.WriteStringValue(PolicyDefinitionReferenceId); - } - if (Optional.IsDefined(ComplianceState)) - { - writer.WritePropertyName("complianceState"u8); - writer.WriteStringValue(ComplianceState); - } - if (Optional.IsDefined(SubscriptionId)) - { - writer.WritePropertyName("subscriptionId"u8); - writer.WriteStringValue(SubscriptionId); - } - if (Optional.IsDefined(ComplianceReasonCode)) - { - writer.WritePropertyName("complianceReasonCode"u8); - writer.WriteStringValue(ComplianceReasonCode); - } + writer.WritePropertyName("policyAssignmentId"u8); + writer.WriteStringValue(PolicyAssignmentId); + writer.WritePropertyName("policyDefinitionId"u8); + writer.WriteStringValue(PolicyDefinitionId); + writer.WritePropertyName("policyDefinitionReferenceId"u8); + writer.WriteStringValue(PolicyDefinitionReferenceId); + writer.WritePropertyName("complianceState"u8); + writer.WriteStringValue(ComplianceState); + writer.WritePropertyName("subscriptionId"u8); + writer.WriteStringValue(SubscriptionId); + writer.WritePropertyName("complianceReasonCode"u8); + writer.WriteStringValue(ComplianceReasonCode); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateChangedEventData.cs index 3c38df1b64d7..babbcee944ed 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateChangedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateChangedEventData.cs @@ -47,9 +47,29 @@ public partial class PolicyInsightsPolicyStateChangedEventData /// Initializes a new instance of . /// The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. - internal PolicyInsightsPolicyStateChangedEventData(DateTimeOffset timestamp) + /// The resource ID of the policy assignment. + /// The resource ID of the policy definition. + /// The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. + /// The compliance state of the resource with respect to the policy assignment. + /// The subscription ID of the resource. + /// The compliance reason code. May be empty. + /// , , , , or is null. + internal PolicyInsightsPolicyStateChangedEventData(DateTimeOffset timestamp, string policyAssignmentId, string policyDefinitionId, string policyDefinitionReferenceId, string complianceState, string subscriptionId, string complianceReasonCode) { + Argument.AssertNotNull(policyAssignmentId, nameof(policyAssignmentId)); + Argument.AssertNotNull(policyDefinitionId, nameof(policyDefinitionId)); + Argument.AssertNotNull(policyDefinitionReferenceId, nameof(policyDefinitionReferenceId)); + Argument.AssertNotNull(complianceState, nameof(complianceState)); + Argument.AssertNotNull(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(complianceReasonCode, nameof(complianceReasonCode)); + Timestamp = timestamp; + PolicyAssignmentId = policyAssignmentId; + PolicyDefinitionId = policyDefinitionId; + PolicyDefinitionReferenceId = policyDefinitionReferenceId; + ComplianceState = complianceState; + SubscriptionId = subscriptionId; + ComplianceReasonCode = complianceReasonCode; } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateCreatedEventData.Serialization.cs index 7300f5a3a9cc..eab6ad76b2d7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateCreatedEventData.Serialization.cs @@ -36,36 +36,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("timestamp"u8); writer.WriteStringValue(Timestamp, "O"); - if (Optional.IsDefined(PolicyAssignmentId)) - { - writer.WritePropertyName("policyAssignmentId"u8); - writer.WriteStringValue(PolicyAssignmentId); - } - if (Optional.IsDefined(PolicyDefinitionId)) - { - writer.WritePropertyName("policyDefinitionId"u8); - writer.WriteStringValue(PolicyDefinitionId); - } - if (Optional.IsDefined(PolicyDefinitionReferenceId)) - { - writer.WritePropertyName("policyDefinitionReferenceId"u8); - writer.WriteStringValue(PolicyDefinitionReferenceId); - } - if (Optional.IsDefined(ComplianceState)) - { - writer.WritePropertyName("complianceState"u8); - writer.WriteStringValue(ComplianceState); - } - if (Optional.IsDefined(SubscriptionId)) - { - writer.WritePropertyName("subscriptionId"u8); - writer.WriteStringValue(SubscriptionId); - } - if (Optional.IsDefined(ComplianceReasonCode)) - { - writer.WritePropertyName("complianceReasonCode"u8); - writer.WriteStringValue(ComplianceReasonCode); - } + writer.WritePropertyName("policyAssignmentId"u8); + writer.WriteStringValue(PolicyAssignmentId); + writer.WritePropertyName("policyDefinitionId"u8); + writer.WriteStringValue(PolicyDefinitionId); + writer.WritePropertyName("policyDefinitionReferenceId"u8); + writer.WriteStringValue(PolicyDefinitionReferenceId); + writer.WritePropertyName("complianceState"u8); + writer.WriteStringValue(ComplianceState); + writer.WritePropertyName("subscriptionId"u8); + writer.WriteStringValue(SubscriptionId); + writer.WritePropertyName("complianceReasonCode"u8); + writer.WriteStringValue(ComplianceReasonCode); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateCreatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateCreatedEventData.cs index deb18f455881..5db708584ec9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateCreatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateCreatedEventData.cs @@ -47,9 +47,29 @@ public partial class PolicyInsightsPolicyStateCreatedEventData /// Initializes a new instance of . /// The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. - internal PolicyInsightsPolicyStateCreatedEventData(DateTimeOffset timestamp) + /// The resource ID of the policy assignment. + /// The resource ID of the policy definition. + /// The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. + /// The compliance state of the resource with respect to the policy assignment. + /// The subscription ID of the resource. + /// The compliance reason code. May be empty. + /// , , , , or is null. + internal PolicyInsightsPolicyStateCreatedEventData(DateTimeOffset timestamp, string policyAssignmentId, string policyDefinitionId, string policyDefinitionReferenceId, string complianceState, string subscriptionId, string complianceReasonCode) { + Argument.AssertNotNull(policyAssignmentId, nameof(policyAssignmentId)); + Argument.AssertNotNull(policyDefinitionId, nameof(policyDefinitionId)); + Argument.AssertNotNull(policyDefinitionReferenceId, nameof(policyDefinitionReferenceId)); + Argument.AssertNotNull(complianceState, nameof(complianceState)); + Argument.AssertNotNull(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(complianceReasonCode, nameof(complianceReasonCode)); + Timestamp = timestamp; + PolicyAssignmentId = policyAssignmentId; + PolicyDefinitionId = policyDefinitionId; + PolicyDefinitionReferenceId = policyDefinitionReferenceId; + ComplianceState = complianceState; + SubscriptionId = subscriptionId; + ComplianceReasonCode = complianceReasonCode; } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateDeletedEventData.Serialization.cs index f7b41e8af79d..d99e08a8688c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateDeletedEventData.Serialization.cs @@ -36,36 +36,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("timestamp"u8); writer.WriteStringValue(Timestamp, "O"); - if (Optional.IsDefined(PolicyAssignmentId)) - { - writer.WritePropertyName("policyAssignmentId"u8); - writer.WriteStringValue(PolicyAssignmentId); - } - if (Optional.IsDefined(PolicyDefinitionId)) - { - writer.WritePropertyName("policyDefinitionId"u8); - writer.WriteStringValue(PolicyDefinitionId); - } - if (Optional.IsDefined(PolicyDefinitionReferenceId)) - { - writer.WritePropertyName("policyDefinitionReferenceId"u8); - writer.WriteStringValue(PolicyDefinitionReferenceId); - } - if (Optional.IsDefined(ComplianceState)) - { - writer.WritePropertyName("complianceState"u8); - writer.WriteStringValue(ComplianceState); - } - if (Optional.IsDefined(SubscriptionId)) - { - writer.WritePropertyName("subscriptionId"u8); - writer.WriteStringValue(SubscriptionId); - } - if (Optional.IsDefined(ComplianceReasonCode)) - { - writer.WritePropertyName("complianceReasonCode"u8); - writer.WriteStringValue(ComplianceReasonCode); - } + writer.WritePropertyName("policyAssignmentId"u8); + writer.WriteStringValue(PolicyAssignmentId); + writer.WritePropertyName("policyDefinitionId"u8); + writer.WriteStringValue(PolicyDefinitionId); + writer.WritePropertyName("policyDefinitionReferenceId"u8); + writer.WriteStringValue(PolicyDefinitionReferenceId); + writer.WritePropertyName("complianceState"u8); + writer.WriteStringValue(ComplianceState); + writer.WritePropertyName("subscriptionId"u8); + writer.WriteStringValue(SubscriptionId); + writer.WritePropertyName("complianceReasonCode"u8); + writer.WriteStringValue(ComplianceReasonCode); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateDeletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateDeletedEventData.cs index 412c1ba32b64..903e137b748e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateDeletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/PolicyInsightsPolicyStateDeletedEventData.cs @@ -47,9 +47,29 @@ public partial class PolicyInsightsPolicyStateDeletedEventData /// Initializes a new instance of . /// The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. - internal PolicyInsightsPolicyStateDeletedEventData(DateTimeOffset timestamp) + /// The resource ID of the policy assignment. + /// The resource ID of the policy definition. + /// The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. + /// The compliance state of the resource with respect to the policy assignment. + /// The subscription ID of the resource. + /// The compliance reason code. May be empty. + /// , , , , or is null. + internal PolicyInsightsPolicyStateDeletedEventData(DateTimeOffset timestamp, string policyAssignmentId, string policyDefinitionId, string policyDefinitionReferenceId, string complianceState, string subscriptionId, string complianceReasonCode) { + Argument.AssertNotNull(policyAssignmentId, nameof(policyAssignmentId)); + Argument.AssertNotNull(policyDefinitionId, nameof(policyDefinitionId)); + Argument.AssertNotNull(policyDefinitionReferenceId, nameof(policyDefinitionReferenceId)); + Argument.AssertNotNull(complianceState, nameof(complianceState)); + Argument.AssertNotNull(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(complianceReasonCode, nameof(complianceReasonCode)); + Timestamp = timestamp; + PolicyAssignmentId = policyAssignmentId; + PolicyDefinitionId = policyDefinitionId; + PolicyDefinitionReferenceId = policyDefinitionReferenceId; + ComplianceState = complianceState; + SubscriptionId = subscriptionId; + ComplianceReasonCode = complianceReasonCode; } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRDBCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRdbCompletedEventData.Serialization.cs similarity index 73% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRDBCompletedEventData.Serialization.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRdbCompletedEventData.Serialization.cs index 371ef947d88d..327a7513568e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRDBCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRdbCompletedEventData.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents { - public partial class RedisExportRDBCompletedEventData : IUtf8JsonSerializable, IJsonModel + public partial class RedisExportRdbCompletedEventData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,14 +28,17 @@ void IJsonModel.Write(Utf8JsonWriter writer, M /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(RedisExportRDBCompletedEventData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(RedisExportRdbCompletedEventData)} does not support writing '{format}' format."); } - writer.WritePropertyName("timestamp"u8); - writer.WriteStringValue(Timestamp, "O"); + if (Optional.IsDefined(Timestamp)) + { + writer.WritePropertyName("timestamp"u8); + writer.WriteStringValue(Timestamp.Value, "O"); + } if (Optional.IsDefined(Name)) { writer.WritePropertyName("name"u8); @@ -63,19 +66,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - RedisExportRDBCompletedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + RedisExportRdbCompletedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(RedisExportRDBCompletedEventData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(RedisExportRdbCompletedEventData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeRedisExportRDBCompletedEventData(document.RootElement, options); + return DeserializeRedisExportRdbCompletedEventData(document.RootElement, options); } - internal static RedisExportRDBCompletedEventData DeserializeRedisExportRDBCompletedEventData(JsonElement element, ModelReaderWriterOptions options = null) + internal static RedisExportRdbCompletedEventData DeserializeRedisExportRdbCompletedEventData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -83,7 +86,7 @@ internal static RedisExportRDBCompletedEventData DeserializeRedisExportRDBComple { return null; } - DateTimeOffset timestamp = default; + DateTimeOffset? timestamp = default; string name = default; string status = default; IDictionary serializedAdditionalRawData = default; @@ -92,6 +95,10 @@ internal static RedisExportRDBCompletedEventData DeserializeRedisExportRDBComple { if (property.NameEquals("timestamp"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } timestamp = property.Value.GetDateTimeOffset("O"); continue; } @@ -111,46 +118,46 @@ internal static RedisExportRDBCompletedEventData DeserializeRedisExportRDBComple } } serializedAdditionalRawData = rawDataDictionary; - return new RedisExportRDBCompletedEventData(timestamp, name, status, serializedAdditionalRawData); + return new RedisExportRdbCompletedEventData(timestamp, name, status, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(RedisExportRDBCompletedEventData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(RedisExportRdbCompletedEventData)} does not support writing '{options.Format}' format."); } } - RedisExportRDBCompletedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + RedisExportRdbCompletedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeRedisExportRDBCompletedEventData(document.RootElement, options); + return DeserializeRedisExportRdbCompletedEventData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(RedisExportRDBCompletedEventData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(RedisExportRdbCompletedEventData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static RedisExportRDBCompletedEventData FromResponse(Response response) + internal static RedisExportRdbCompletedEventData FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeRedisExportRDBCompletedEventData(document.RootElement); + return DeserializeRedisExportRdbCompletedEventData(document.RootElement); } /// Convert into a . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRDBCompletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRdbCompletedEventData.cs similarity index 78% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRDBCompletedEventData.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRdbCompletedEventData.cs index 4d02e07eeb4c..f689ff3f1242 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRDBCompletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisExportRdbCompletedEventData.cs @@ -11,7 +11,7 @@ namespace Azure.Messaging.EventGrid.SystemEvents { /// Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ExportRDBCompleted event. - public partial class RedisExportRDBCompletedEventData + public partial class RedisExportRdbCompletedEventData { /// /// Keeps track of any properties unknown to the library. @@ -45,19 +45,17 @@ public partial class RedisExportRDBCompletedEventData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - /// The time at which the event occurred. - internal RedisExportRDBCompletedEventData(DateTimeOffset timestamp) + /// Initializes a new instance of . + internal RedisExportRdbCompletedEventData() { - Timestamp = timestamp; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The time at which the event occurred. /// The name of this event. /// The status of this event. Failed or succeeded. /// Keeps track of any properties unknown to the library. - internal RedisExportRDBCompletedEventData(DateTimeOffset timestamp, string name, string status, IDictionary serializedAdditionalRawData) + internal RedisExportRdbCompletedEventData(DateTimeOffset? timestamp, string name, string status, IDictionary serializedAdditionalRawData) { Timestamp = timestamp; Name = name; @@ -65,13 +63,8 @@ internal RedisExportRDBCompletedEventData(DateTimeOffset timestamp, string name, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal RedisExportRDBCompletedEventData() - { - } - /// The time at which the event occurred. - public DateTimeOffset Timestamp { get; } + public DateTimeOffset? Timestamp { get; } /// The name of this event. public string Name { get; } /// The status of this event. Failed or succeeded. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRDBCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRdbCompletedEventData.Serialization.cs similarity index 73% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRDBCompletedEventData.Serialization.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRdbCompletedEventData.Serialization.cs index 1e4a780d09d4..4b84a11d6d3b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRDBCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRdbCompletedEventData.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents { - public partial class RedisImportRDBCompletedEventData : IUtf8JsonSerializable, IJsonModel + public partial class RedisImportRdbCompletedEventData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,14 +28,17 @@ void IJsonModel.Write(Utf8JsonWriter writer, M /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(RedisImportRDBCompletedEventData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(RedisImportRdbCompletedEventData)} does not support writing '{format}' format."); } - writer.WritePropertyName("timestamp"u8); - writer.WriteStringValue(Timestamp, "O"); + if (Optional.IsDefined(Timestamp)) + { + writer.WritePropertyName("timestamp"u8); + writer.WriteStringValue(Timestamp.Value, "O"); + } if (Optional.IsDefined(Name)) { writer.WritePropertyName("name"u8); @@ -63,19 +66,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - RedisImportRDBCompletedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + RedisImportRdbCompletedEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(RedisImportRDBCompletedEventData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(RedisImportRdbCompletedEventData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeRedisImportRDBCompletedEventData(document.RootElement, options); + return DeserializeRedisImportRdbCompletedEventData(document.RootElement, options); } - internal static RedisImportRDBCompletedEventData DeserializeRedisImportRDBCompletedEventData(JsonElement element, ModelReaderWriterOptions options = null) + internal static RedisImportRdbCompletedEventData DeserializeRedisImportRdbCompletedEventData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -83,7 +86,7 @@ internal static RedisImportRDBCompletedEventData DeserializeRedisImportRDBComple { return null; } - DateTimeOffset timestamp = default; + DateTimeOffset? timestamp = default; string name = default; string status = default; IDictionary serializedAdditionalRawData = default; @@ -92,6 +95,10 @@ internal static RedisImportRDBCompletedEventData DeserializeRedisImportRDBComple { if (property.NameEquals("timestamp"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } timestamp = property.Value.GetDateTimeOffset("O"); continue; } @@ -111,46 +118,46 @@ internal static RedisImportRDBCompletedEventData DeserializeRedisImportRDBComple } } serializedAdditionalRawData = rawDataDictionary; - return new RedisImportRDBCompletedEventData(timestamp, name, status, serializedAdditionalRawData); + return new RedisImportRdbCompletedEventData(timestamp, name, status, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(RedisImportRDBCompletedEventData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(RedisImportRdbCompletedEventData)} does not support writing '{options.Format}' format."); } } - RedisImportRDBCompletedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + RedisImportRdbCompletedEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeRedisImportRDBCompletedEventData(document.RootElement, options); + return DeserializeRedisImportRdbCompletedEventData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(RedisImportRDBCompletedEventData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(RedisImportRdbCompletedEventData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static RedisImportRDBCompletedEventData FromResponse(Response response) + internal static RedisImportRdbCompletedEventData FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeRedisImportRDBCompletedEventData(document.RootElement); + return DeserializeRedisImportRdbCompletedEventData(document.RootElement); } /// Convert into a . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRDBCompletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRdbCompletedEventData.cs similarity index 78% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRDBCompletedEventData.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRdbCompletedEventData.cs index 58ca83a77ce3..7381f6f760ab 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRDBCompletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisImportRdbCompletedEventData.cs @@ -11,7 +11,7 @@ namespace Azure.Messaging.EventGrid.SystemEvents { /// Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ImportRDBCompleted event. - public partial class RedisImportRDBCompletedEventData + public partial class RedisImportRdbCompletedEventData { /// /// Keeps track of any properties unknown to the library. @@ -45,19 +45,17 @@ public partial class RedisImportRDBCompletedEventData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - /// The time at which the event occurred. - internal RedisImportRDBCompletedEventData(DateTimeOffset timestamp) + /// Initializes a new instance of . + internal RedisImportRdbCompletedEventData() { - Timestamp = timestamp; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The time at which the event occurred. /// The name of this event. /// The status of this event. Failed or succeeded. /// Keeps track of any properties unknown to the library. - internal RedisImportRDBCompletedEventData(DateTimeOffset timestamp, string name, string status, IDictionary serializedAdditionalRawData) + internal RedisImportRdbCompletedEventData(DateTimeOffset? timestamp, string name, string status, IDictionary serializedAdditionalRawData) { Timestamp = timestamp; Name = name; @@ -65,13 +63,8 @@ internal RedisImportRDBCompletedEventData(DateTimeOffset timestamp, string name, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal RedisImportRDBCompletedEventData() - { - } - /// The time at which the event occurred. - public DateTimeOffset Timestamp { get; } + public DateTimeOffset? Timestamp { get; } /// The name of this event. public string Name { get; } /// The status of this event. Failed or succeeded. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisPatchingCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisPatchingCompletedEventData.Serialization.cs index 345b18790fea..cd0e5ba95459 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisPatchingCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisPatchingCompletedEventData.Serialization.cs @@ -34,8 +34,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RedisPatchingCompletedEventData)} does not support writing '{format}' format."); } - writer.WritePropertyName("timestamp"u8); - writer.WriteStringValue(Timestamp, "O"); + if (Optional.IsDefined(Timestamp)) + { + writer.WritePropertyName("timestamp"u8); + writer.WriteStringValue(Timestamp.Value, "O"); + } if (Optional.IsDefined(Name)) { writer.WritePropertyName("name"u8); @@ -83,7 +86,7 @@ internal static RedisPatchingCompletedEventData DeserializeRedisPatchingComplete { return null; } - DateTimeOffset timestamp = default; + DateTimeOffset? timestamp = default; string name = default; string status = default; IDictionary serializedAdditionalRawData = default; @@ -92,6 +95,10 @@ internal static RedisPatchingCompletedEventData DeserializeRedisPatchingComplete { if (property.NameEquals("timestamp"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } timestamp = property.Value.GetDateTimeOffset("O"); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisPatchingCompletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisPatchingCompletedEventData.cs index 0497287ee8e2..3cc0aee40d81 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisPatchingCompletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisPatchingCompletedEventData.cs @@ -46,10 +46,8 @@ public partial class RedisPatchingCompletedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The time at which the event occurred. - internal RedisPatchingCompletedEventData(DateTimeOffset timestamp) + internal RedisPatchingCompletedEventData() { - Timestamp = timestamp; } /// Initializes a new instance of . @@ -57,7 +55,7 @@ internal RedisPatchingCompletedEventData(DateTimeOffset timestamp) /// The name of this event. /// The status of this event. Failed or succeeded. /// Keeps track of any properties unknown to the library. - internal RedisPatchingCompletedEventData(DateTimeOffset timestamp, string name, string status, IDictionary serializedAdditionalRawData) + internal RedisPatchingCompletedEventData(DateTimeOffset? timestamp, string name, string status, IDictionary serializedAdditionalRawData) { Timestamp = timestamp; Name = name; @@ -65,13 +63,8 @@ internal RedisPatchingCompletedEventData(DateTimeOffset timestamp, string name, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal RedisPatchingCompletedEventData() - { - } - /// The time at which the event occurred. - public DateTimeOffset Timestamp { get; } + public DateTimeOffset? Timestamp { get; } /// The name of this event. public string Name { get; } /// The status of this event. Failed or succeeded. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisScalingCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisScalingCompletedEventData.Serialization.cs index 9fd879604e0f..99dfee48a702 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisScalingCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisScalingCompletedEventData.Serialization.cs @@ -34,8 +34,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RedisScalingCompletedEventData)} does not support writing '{format}' format."); } - writer.WritePropertyName("timestamp"u8); - writer.WriteStringValue(Timestamp, "O"); + if (Optional.IsDefined(Timestamp)) + { + writer.WritePropertyName("timestamp"u8); + writer.WriteStringValue(Timestamp.Value, "O"); + } if (Optional.IsDefined(Name)) { writer.WritePropertyName("name"u8); @@ -83,7 +86,7 @@ internal static RedisScalingCompletedEventData DeserializeRedisScalingCompletedE { return null; } - DateTimeOffset timestamp = default; + DateTimeOffset? timestamp = default; string name = default; string status = default; IDictionary serializedAdditionalRawData = default; @@ -92,6 +95,10 @@ internal static RedisScalingCompletedEventData DeserializeRedisScalingCompletedE { if (property.NameEquals("timestamp"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } timestamp = property.Value.GetDateTimeOffset("O"); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisScalingCompletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisScalingCompletedEventData.cs index 0d7b4896c816..ac341ec49072 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisScalingCompletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/RedisScalingCompletedEventData.cs @@ -46,10 +46,8 @@ public partial class RedisScalingCompletedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The time at which the event occurred. - internal RedisScalingCompletedEventData(DateTimeOffset timestamp) + internal RedisScalingCompletedEventData() { - Timestamp = timestamp; } /// Initializes a new instance of . @@ -57,7 +55,7 @@ internal RedisScalingCompletedEventData(DateTimeOffset timestamp) /// The name of this event. /// The status of this event. Failed or succeeded. /// Keeps track of any properties unknown to the library. - internal RedisScalingCompletedEventData(DateTimeOffset timestamp, string name, string status, IDictionary serializedAdditionalRawData) + internal RedisScalingCompletedEventData(DateTimeOffset? timestamp, string name, string status, IDictionary serializedAdditionalRawData) { Timestamp = timestamp; Name = name; @@ -65,13 +63,8 @@ internal RedisScalingCompletedEventData(DateTimeOffset timestamp, string name, s _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal RedisScalingCompletedEventData() - { - } - /// The time at which the event occurred. - public DateTimeOffset Timestamp { get; } + public DateTimeOffset? Timestamp { get; } /// The name of this event. public string Name { get; } /// The status of this event. Failed or succeeded. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsContainerServiceEventResourcesScheduledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsContainerServiceEventResourcesScheduledEventData.Serialization.cs new file mode 100644 index 000000000000..310f71a39f5e --- /dev/null +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsContainerServiceEventResourcesScheduledEventData.Serialization.cs @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Messaging.EventGrid.SystemEvents +{ + public partial class ResourceNotificationsContainerServiceEventResourcesScheduledEventData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ResourceNotificationsContainerServiceEventResourcesScheduledEventData)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + ResourceNotificationsContainerServiceEventResourcesScheduledEventData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ResourceNotificationsContainerServiceEventResourcesScheduledEventData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeResourceNotificationsContainerServiceEventResourcesScheduledEventData(document.RootElement, options); + } + + internal static ResourceNotificationsContainerServiceEventResourcesScheduledEventData DeserializeResourceNotificationsContainerServiceEventResourcesScheduledEventData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceNotificationsResourceUpdatedDetails resourceInfo = default; + ResourceNotificationsOperationalDetails operationalInfo = default; + string apiVersion = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceInfo"u8)) + { + resourceInfo = ResourceNotificationsResourceUpdatedDetails.DeserializeResourceNotificationsResourceUpdatedDetails(property.Value, options); + continue; + } + if (property.NameEquals("operationalInfo"u8)) + { + operationalInfo = ResourceNotificationsOperationalDetails.DeserializeResourceNotificationsOperationalDetails(property.Value, options); + continue; + } + if (property.NameEquals("apiVersion"u8)) + { + apiVersion = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ResourceNotificationsContainerServiceEventResourcesScheduledEventData(resourceInfo, operationalInfo, apiVersion, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ResourceNotificationsContainerServiceEventResourcesScheduledEventData)} does not support writing '{options.Format}' format."); + } + } + + ResourceNotificationsContainerServiceEventResourcesScheduledEventData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeResourceNotificationsContainerServiceEventResourcesScheduledEventData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ResourceNotificationsContainerServiceEventResourcesScheduledEventData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ResourceNotificationsContainerServiceEventResourcesScheduledEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceNotificationsContainerServiceEventResourcesScheduledEventData(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsContainerServiceEventResourcesScheduledEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsContainerServiceEventResourcesScheduledEventData.cs new file mode 100644 index 000000000000..8425b15b75fa --- /dev/null +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsContainerServiceEventResourcesScheduledEventData.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Messaging.EventGrid.SystemEvents +{ + /// Schema of the Data property of an event grid event for a Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted preview event. + public partial class ResourceNotificationsContainerServiceEventResourcesScheduledEventData : ResourceNotificationsResourceUpdatedEventData + { + /// Initializes a new instance of . + /// resourceInfo details for update event. + /// details about operational info. + /// api version of the resource properties bag. + /// , or is null. + internal ResourceNotificationsContainerServiceEventResourcesScheduledEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails, string apiVersion) : base(resourceDetails, operationalDetails, apiVersion) + { + Argument.AssertNotNull(resourceDetails, nameof(resourceDetails)); + Argument.AssertNotNull(operationalDetails, nameof(operationalDetails)); + Argument.AssertNotNull(apiVersion, nameof(apiVersion)); + } + + /// Initializes a new instance of . + /// resourceInfo details for update event. + /// details about operational info. + /// api version of the resource properties bag. + /// Keeps track of any properties unknown to the library. + internal ResourceNotificationsContainerServiceEventResourcesScheduledEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails, string apiVersion, IDictionary serializedAdditionalRawData) : base(resourceDetails, operationalDetails, apiVersion, serializedAdditionalRawData) + { + } + + /// Initializes a new instance of for deserialization. + internal ResourceNotificationsContainerServiceEventResourcesScheduledEventData() + { + } + } +} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsHealthResourcesAnnotatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsHealthResourcesAnnotatedEventData.cs index f4b757f2f691..514fa2729468 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsHealthResourcesAnnotatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsHealthResourcesAnnotatedEventData.cs @@ -19,11 +19,13 @@ public partial class ResourceNotificationsHealthResourcesAnnotatedEventData : Re /// Initializes a new instance of . /// resourceInfo details for update event. /// details about operational info. - /// or is null. - internal ResourceNotificationsHealthResourcesAnnotatedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails) : base(resourceDetails, operationalDetails) + /// api version of the resource properties bag. + /// , or is null. + internal ResourceNotificationsHealthResourcesAnnotatedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails, string apiVersion) : base(resourceDetails, operationalDetails, apiVersion) { Argument.AssertNotNull(resourceDetails, nameof(resourceDetails)); Argument.AssertNotNull(operationalDetails, nameof(operationalDetails)); + Argument.AssertNotNull(apiVersion, nameof(apiVersion)); } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.cs index 8bcffeb43c47..69c82e046f26 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.cs @@ -20,11 +20,13 @@ public partial class ResourceNotificationsHealthResourcesAvailabilityStatusChang /// Initializes a new instance of . /// resourceInfo details for update event. /// details about operational info. - /// or is null. - internal ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails) : base(resourceDetails, operationalDetails) + /// api version of the resource properties bag. + /// , or is null. + internal ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails, string apiVersion) : base(resourceDetails, operationalDetails, apiVersion) { Argument.AssertNotNull(resourceDetails, nameof(resourceDetails)); Argument.AssertNotNull(operationalDetails, nameof(operationalDetails)); + Argument.AssertNotNull(apiVersion, nameof(apiVersion)); } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceDeletedDetails.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceDeletedDetails.Serialization.cs index f55a187c67ac..6c2baac7d820 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceDeletedDetails.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceDeletedDetails.Serialization.cs @@ -34,21 +34,12 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ResourceNotificationsResourceDeletedDetails)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (Optional.IsDefined(Type)) - { - writer.WritePropertyName("type"u8); - writer.WriteStringValue(Type); - } + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceDeletedDetails.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceDeletedDetails.cs index cf7a4a0ccdf0..cb1dc20585ee 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceDeletedDetails.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceDeletedDetails.cs @@ -49,8 +49,19 @@ public partial class ResourceNotificationsResourceDeletedDetails private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ResourceNotificationsResourceDeletedDetails() + /// id of the resource for which the event is being emitted. + /// name of the resource for which the event is being emitted. + /// the type of the resource for which the event is being emitted. + /// , or is null. + internal ResourceNotificationsResourceDeletedDetails(string id, string name, string type) { + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(type, nameof(type)); + + Id = id; + Name = name; + Type = type; } /// Initializes a new instance of . @@ -66,6 +77,11 @@ internal ResourceNotificationsResourceDeletedDetails(string id, string name, str _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal ResourceNotificationsResourceDeletedDetails() + { + } + /// id of the resource for which the event is being emitted. public string Id { get; } /// name of the resource for which the event is being emitted. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.cs index 6b62866b0201..d4621dbc6f13 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.cs @@ -19,11 +19,13 @@ public partial class ResourceNotificationsResourceManagementCreatedOrUpdatedEven /// Initializes a new instance of . /// resourceInfo details for update event. /// details about operational info. - /// or is null. - internal ResourceNotificationsResourceManagementCreatedOrUpdatedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails) : base(resourceDetails, operationalDetails) + /// api version of the resource properties bag. + /// , or is null. + internal ResourceNotificationsResourceManagementCreatedOrUpdatedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails, string apiVersion) : base(resourceDetails, operationalDetails, apiVersion) { Argument.AssertNotNull(resourceDetails, nameof(resourceDetails)); Argument.AssertNotNull(operationalDetails, nameof(operationalDetails)); + Argument.AssertNotNull(apiVersion, nameof(apiVersion)); } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedDetails.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedDetails.Serialization.cs index 72e405e281d4..e837045be079 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedDetails.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedDetails.Serialization.cs @@ -34,54 +34,51 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ResourceNotificationsResourceUpdatedDetails)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (Optional.IsDefined(Type)) - { - writer.WritePropertyName("type"u8); - writer.WriteStringValue(Type); - } + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); if (Optional.IsDefined(Location)) { writer.WritePropertyName("location"u8); writer.WriteStringValue(Location); } - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) + if (Optional.IsCollectionDefined(Tags)) { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); } - writer.WriteEndObject(); - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - foreach (var item in Properties) + if (Optional.IsCollectionDefined(Properties)) { - writer.WritePropertyName(item.Key); - if (item.Value == null) + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + foreach (var item in Properties) { - writer.WriteNullValue(); - continue; - } + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } #if NET6_0_OR_GREATER writer.WriteRawValue(item.Value); #else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } #endif + } + writer.WriteEndObject(); } - writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -151,6 +148,10 @@ internal static ResourceNotificationsResourceUpdatedDetails DeserializeResourceN } if (property.NameEquals("tags"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { @@ -161,6 +162,10 @@ internal static ResourceNotificationsResourceUpdatedDetails DeserializeResourceN } if (property.NameEquals("properties"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { @@ -187,8 +192,8 @@ internal static ResourceNotificationsResourceUpdatedDetails DeserializeResourceN name, type, location, - tags, - properties, + tags ?? new ChangeTrackingDictionary(), + properties ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedDetails.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedDetails.cs index 59b8832d8be3..837aa7700a76 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedDetails.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedDetails.cs @@ -49,16 +49,21 @@ public partial class ResourceNotificationsResourceUpdatedDetails private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// the tags on the resource for which the event is being emitted. - /// properties in the payload of the resource for which the event is being emitted. - /// or is null. - internal ResourceNotificationsResourceUpdatedDetails(IReadOnlyDictionary tags, IReadOnlyDictionary properties) + /// id of the resource for which the event is being emitted. + /// name of the resource for which the event is being emitted. + /// the type of the resource for which the event is being emitted. + /// , or is null. + internal ResourceNotificationsResourceUpdatedDetails(string id, string name, string type) { - Argument.AssertNotNull(tags, nameof(tags)); - Argument.AssertNotNull(properties, nameof(properties)); + Argument.AssertNotNull(id, nameof(id)); + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(type, nameof(type)); - Tags = tags; - Properties = properties; + Id = id; + Name = name; + Type = type; + Tags = new ChangeTrackingDictionary(); + Properties = new ChangeTrackingDictionary(); } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedEventData.Serialization.cs index bdbca4cbd7fe..dfb986b04630 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedEventData.Serialization.cs @@ -38,11 +38,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteObjectValue(ResourceDetails, options); writer.WritePropertyName("operationalInfo"u8); writer.WriteObjectValue(OperationalDetails, options); - if (Optional.IsDefined(ApiVersion)) - { - writer.WritePropertyName("apiVersion"u8); - writer.WriteStringValue(ApiVersion); - } + writer.WritePropertyName("apiVersion"u8); + writer.WriteStringValue(ApiVersion); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedEventData.cs index 3bb624a3b0b1..72653d401f46 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ResourceNotificationsResourceUpdatedEventData.cs @@ -48,14 +48,17 @@ public partial class ResourceNotificationsResourceUpdatedEventData /// Initializes a new instance of . /// resourceInfo details for update event. /// details about operational info. - /// or is null. - internal ResourceNotificationsResourceUpdatedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails) + /// api version of the resource properties bag. + /// , or is null. + internal ResourceNotificationsResourceUpdatedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails, string apiVersion) { Argument.AssertNotNull(resourceDetails, nameof(resourceDetails)); Argument.AssertNotNull(operationalDetails, nameof(operationalDetails)); + Argument.AssertNotNull(apiVersion, nameof(apiVersion)); ResourceDetails = resourceDetails; OperationalDetails = operationalDetails; + ApiVersion = apiVersion; } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.Serialization.cs index 93f730db151a..2ef933e9f701 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.Serialization.cs @@ -34,36 +34,39 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(NamespaceName)) - { - writer.WritePropertyName("namespaceName"u8); - writer.WriteStringValue(NamespaceName); - } - if (Optional.IsDefined(RequestUri)) - { - writer.WritePropertyName("requestUri"u8); - writer.WriteStringValue(RequestUri); - } - if (Optional.IsDefined(EntityType)) - { - writer.WritePropertyName("entityType"u8); - writer.WriteStringValue(EntityType); - } - if (Optional.IsDefined(QueueName)) + writer.WritePropertyName("namespaceName"u8); + writer.WriteStringValue(NamespaceName); + writer.WritePropertyName("requestUri"u8); + writer.WriteStringValue(RequestUri); + writer.WritePropertyName("entityType"u8); + writer.WriteStringValue(EntityType); + if (QueueName != null) { writer.WritePropertyName("queueName"u8); writer.WriteStringValue(QueueName); } - if (Optional.IsDefined(TopicName)) + else + { + writer.WriteNull("queueName"); + } + if (TopicName != null) { writer.WritePropertyName("topicName"u8); writer.WriteStringValue(TopicName); } - if (Optional.IsDefined(SubscriptionName)) + else + { + writer.WriteNull("topicName"); + } + if (SubscriptionName != null) { writer.WritePropertyName("subscriptionName"u8); writer.WriteStringValue(SubscriptionName); } + else + { + writer.WriteNull("subscriptionName"); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -128,16 +131,31 @@ internal static ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData } if (property.NameEquals("queueName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + queueName = null; + continue; + } queueName = property.Value.GetString(); continue; } if (property.NameEquals("topicName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + topicName = null; + continue; + } topicName = property.Value.GetString(); continue; } if (property.NameEquals("subscriptionName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subscriptionName = null; + continue; + } subscriptionName = property.Value.GetString(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.cs index a5b443e63add..f22d23f2fda6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.cs @@ -46,8 +46,25 @@ public partial class ServiceBusActiveMessagesAvailablePeriodicNotificationsEvent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData() + /// The namespace name of the Microsoft.ServiceBus resource. + /// The endpoint of the Microsoft.ServiceBus resource. + /// The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. + /// The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. + /// The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. + /// The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. + /// , or is null. + internal ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData(string namespaceName, string requestUri, string entityType, string queueName, string topicName, string subscriptionName) { + Argument.AssertNotNull(namespaceName, nameof(namespaceName)); + Argument.AssertNotNull(requestUri, nameof(requestUri)); + Argument.AssertNotNull(entityType, nameof(entityType)); + + NamespaceName = namespaceName; + RequestUri = requestUri; + EntityType = entityType; + QueueName = queueName; + TopicName = topicName; + SubscriptionName = subscriptionName; } /// Initializes a new instance of . @@ -69,6 +86,11 @@ internal ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData(string _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData() + { + } + /// The namespace name of the Microsoft.ServiceBus resource. public string NamespaceName { get; } /// The endpoint of the Microsoft.ServiceBus resource. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailableWithNoListenersEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailableWithNoListenersEventData.Serialization.cs index 10f23c8c7709..df9b26574131 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailableWithNoListenersEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailableWithNoListenersEventData.Serialization.cs @@ -34,36 +34,39 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ServiceBusActiveMessagesAvailableWithNoListenersEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(NamespaceName)) - { - writer.WritePropertyName("namespaceName"u8); - writer.WriteStringValue(NamespaceName); - } - if (Optional.IsDefined(RequestUri)) - { - writer.WritePropertyName("requestUri"u8); - writer.WriteStringValue(RequestUri); - } - if (Optional.IsDefined(EntityType)) - { - writer.WritePropertyName("entityType"u8); - writer.WriteStringValue(EntityType); - } - if (Optional.IsDefined(QueueName)) + writer.WritePropertyName("namespaceName"u8); + writer.WriteStringValue(NamespaceName); + writer.WritePropertyName("requestUri"u8); + writer.WriteStringValue(RequestUri); + writer.WritePropertyName("entityType"u8); + writer.WriteStringValue(EntityType); + if (QueueName != null) { writer.WritePropertyName("queueName"u8); writer.WriteStringValue(QueueName); } - if (Optional.IsDefined(TopicName)) + else + { + writer.WriteNull("queueName"); + } + if (TopicName != null) { writer.WritePropertyName("topicName"u8); writer.WriteStringValue(TopicName); } - if (Optional.IsDefined(SubscriptionName)) + else + { + writer.WriteNull("topicName"); + } + if (SubscriptionName != null) { writer.WritePropertyName("subscriptionName"u8); writer.WriteStringValue(SubscriptionName); } + else + { + writer.WriteNull("subscriptionName"); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -128,16 +131,31 @@ internal static ServiceBusActiveMessagesAvailableWithNoListenersEventData Deseri } if (property.NameEquals("queueName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + queueName = null; + continue; + } queueName = property.Value.GetString(); continue; } if (property.NameEquals("topicName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + topicName = null; + continue; + } topicName = property.Value.GetString(); continue; } if (property.NameEquals("subscriptionName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subscriptionName = null; + continue; + } subscriptionName = property.Value.GetString(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailableWithNoListenersEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailableWithNoListenersEventData.cs index 5b06715deecb..a13c94aa72e8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailableWithNoListenersEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusActiveMessagesAvailableWithNoListenersEventData.cs @@ -46,8 +46,25 @@ public partial class ServiceBusActiveMessagesAvailableWithNoListenersEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ServiceBusActiveMessagesAvailableWithNoListenersEventData() + /// The namespace name of the Microsoft.ServiceBus resource. + /// The endpoint of the Microsoft.ServiceBus resource. + /// The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. + /// The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. + /// The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. + /// The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. + /// , or is null. + internal ServiceBusActiveMessagesAvailableWithNoListenersEventData(string namespaceName, string requestUri, string entityType, string queueName, string topicName, string subscriptionName) { + Argument.AssertNotNull(namespaceName, nameof(namespaceName)); + Argument.AssertNotNull(requestUri, nameof(requestUri)); + Argument.AssertNotNull(entityType, nameof(entityType)); + + NamespaceName = namespaceName; + RequestUri = requestUri; + EntityType = entityType; + QueueName = queueName; + TopicName = topicName; + SubscriptionName = subscriptionName; } /// Initializes a new instance of . @@ -69,6 +86,11 @@ internal ServiceBusActiveMessagesAvailableWithNoListenersEventData(string namesp _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal ServiceBusActiveMessagesAvailableWithNoListenersEventData() + { + } + /// The namespace name of the Microsoft.ServiceBus resource. public string NamespaceName { get; } /// The endpoint of the Microsoft.ServiceBus resource. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.Serialization.cs index 4db6bbbb3307..f9139111dab8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.Serialization.cs @@ -34,36 +34,39 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(NamespaceName)) - { - writer.WritePropertyName("namespaceName"u8); - writer.WriteStringValue(NamespaceName); - } - if (Optional.IsDefined(RequestUri)) - { - writer.WritePropertyName("requestUri"u8); - writer.WriteStringValue(RequestUri); - } - if (Optional.IsDefined(EntityType)) - { - writer.WritePropertyName("entityType"u8); - writer.WriteStringValue(EntityType); - } - if (Optional.IsDefined(QueueName)) + writer.WritePropertyName("namespaceName"u8); + writer.WriteStringValue(NamespaceName); + writer.WritePropertyName("requestUri"u8); + writer.WriteStringValue(RequestUri); + writer.WritePropertyName("entityType"u8); + writer.WriteStringValue(EntityType); + if (QueueName != null) { writer.WritePropertyName("queueName"u8); writer.WriteStringValue(QueueName); } - if (Optional.IsDefined(TopicName)) + else + { + writer.WriteNull("queueName"); + } + if (TopicName != null) { writer.WritePropertyName("topicName"u8); writer.WriteStringValue(TopicName); } - if (Optional.IsDefined(SubscriptionName)) + else + { + writer.WriteNull("topicName"); + } + if (SubscriptionName != null) { writer.WritePropertyName("subscriptionName"u8); writer.WriteStringValue(SubscriptionName); } + else + { + writer.WriteNull("subscriptionName"); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -128,16 +131,31 @@ internal static ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventD } if (property.NameEquals("queueName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + queueName = null; + continue; + } queueName = property.Value.GetString(); continue; } if (property.NameEquals("topicName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + topicName = null; + continue; + } topicName = property.Value.GetString(); continue; } if (property.NameEquals("subscriptionName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subscriptionName = null; + continue; + } subscriptionName = property.Value.GetString(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.cs index dcbc6d7da593..85e82fe95556 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.cs @@ -46,8 +46,25 @@ public partial class ServiceBusDeadletterMessagesAvailablePeriodicNotificationsE private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData() + /// The namespace name of the Microsoft.ServiceBus resource. + /// The endpoint of the Microsoft.ServiceBus resource. + /// The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. + /// The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. + /// The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. + /// The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. + /// , or is null. + internal ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData(string namespaceName, string requestUri, string entityType, string queueName, string topicName, string subscriptionName) { + Argument.AssertNotNull(namespaceName, nameof(namespaceName)); + Argument.AssertNotNull(requestUri, nameof(requestUri)); + Argument.AssertNotNull(entityType, nameof(entityType)); + + NamespaceName = namespaceName; + RequestUri = requestUri; + EntityType = entityType; + QueueName = queueName; + TopicName = topicName; + SubscriptionName = subscriptionName; } /// Initializes a new instance of . @@ -69,6 +86,11 @@ internal ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData(str _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData() + { + } + /// The namespace name of the Microsoft.ServiceBus resource. public string NamespaceName { get; } /// The endpoint of the Microsoft.ServiceBus resource. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.Serialization.cs index 53f8605d54c4..82de74cfc978 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.Serialization.cs @@ -34,36 +34,39 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ServiceBusDeadletterMessagesAvailableWithNoListenersEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(NamespaceName)) - { - writer.WritePropertyName("namespaceName"u8); - writer.WriteStringValue(NamespaceName); - } - if (Optional.IsDefined(RequestUri)) - { - writer.WritePropertyName("requestUri"u8); - writer.WriteStringValue(RequestUri); - } - if (Optional.IsDefined(EntityType)) - { - writer.WritePropertyName("entityType"u8); - writer.WriteStringValue(EntityType); - } - if (Optional.IsDefined(QueueName)) + writer.WritePropertyName("namespaceName"u8); + writer.WriteStringValue(NamespaceName); + writer.WritePropertyName("requestUri"u8); + writer.WriteStringValue(RequestUri); + writer.WritePropertyName("entityType"u8); + writer.WriteStringValue(EntityType); + if (QueueName != null) { writer.WritePropertyName("queueName"u8); writer.WriteStringValue(QueueName); } - if (Optional.IsDefined(TopicName)) + else + { + writer.WriteNull("queueName"); + } + if (TopicName != null) { writer.WritePropertyName("topicName"u8); writer.WriteStringValue(TopicName); } - if (Optional.IsDefined(SubscriptionName)) + else + { + writer.WriteNull("topicName"); + } + if (SubscriptionName != null) { writer.WritePropertyName("subscriptionName"u8); writer.WriteStringValue(SubscriptionName); } + else + { + writer.WriteNull("subscriptionName"); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -128,16 +131,31 @@ internal static ServiceBusDeadletterMessagesAvailableWithNoListenersEventData De } if (property.NameEquals("queueName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + queueName = null; + continue; + } queueName = property.Value.GetString(); continue; } if (property.NameEquals("topicName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + topicName = null; + continue; + } topicName = property.Value.GetString(); continue; } if (property.NameEquals("subscriptionName"u8)) { + if (property.Value.ValueKind == JsonValueKind.Null) + { + subscriptionName = null; + continue; + } subscriptionName = property.Value.GetString(); continue; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.cs index ea92138d8a82..530fc9265aee 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.cs @@ -46,8 +46,25 @@ public partial class ServiceBusDeadletterMessagesAvailableWithNoListenersEventDa private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ServiceBusDeadletterMessagesAvailableWithNoListenersEventData() + /// The namespace name of the Microsoft.ServiceBus resource. + /// The endpoint of the Microsoft.ServiceBus resource. + /// The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. + /// The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. + /// The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. + /// The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. + /// , or is null. + internal ServiceBusDeadletterMessagesAvailableWithNoListenersEventData(string namespaceName, string requestUri, string entityType, string queueName, string topicName, string subscriptionName) { + Argument.AssertNotNull(namespaceName, nameof(namespaceName)); + Argument.AssertNotNull(requestUri, nameof(requestUri)); + Argument.AssertNotNull(entityType, nameof(entityType)); + + NamespaceName = namespaceName; + RequestUri = requestUri; + EntityType = entityType; + QueueName = queueName; + TopicName = topicName; + SubscriptionName = subscriptionName; } /// Initializes a new instance of . @@ -69,6 +86,11 @@ internal ServiceBusDeadletterMessagesAvailableWithNoListenersEventData(string na _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal ServiceBusDeadletterMessagesAvailableWithNoListenersEventData() + { + } + /// The namespace name of the Microsoft.ServiceBus resource. public string NamespaceName { get; } /// The endpoint of the Microsoft.ServiceBus resource. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionConnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionConnectedEventData.Serialization.cs index 13dd8294ddcd..1646d3730cd4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionConnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionConnectedEventData.Serialization.cs @@ -36,16 +36,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("timestamp"u8); writer.WriteStringValue(Timestamp, "O"); - if (Optional.IsDefined(HubName)) - { - writer.WritePropertyName("hubName"u8); - writer.WriteStringValue(HubName); - } - if (Optional.IsDefined(ConnectionId)) - { - writer.WritePropertyName("connectionId"u8); - writer.WriteStringValue(ConnectionId); - } + writer.WritePropertyName("hubName"u8); + writer.WriteStringValue(HubName); + writer.WritePropertyName("connectionId"u8); + writer.WriteStringValue(ConnectionId); if (Optional.IsDefined(UserId)) { writer.WritePropertyName("userId"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionConnectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionConnectedEventData.cs index dcb093dd889d..cc7172385e49 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionConnectedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionConnectedEventData.cs @@ -47,9 +47,17 @@ public partial class SignalRServiceClientConnectionConnectedEventData /// Initializes a new instance of . /// The time at which the event occurred. - internal SignalRServiceClientConnectionConnectedEventData(DateTimeOffset timestamp) + /// The hub of connected client connection. + /// The connection Id of connected client connection. + /// or is null. + internal SignalRServiceClientConnectionConnectedEventData(DateTimeOffset timestamp, string hubName, string connectionId) { + Argument.AssertNotNull(hubName, nameof(hubName)); + Argument.AssertNotNull(connectionId, nameof(connectionId)); + Timestamp = timestamp; + HubName = hubName; + ConnectionId = connectionId; } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionDisconnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionDisconnectedEventData.Serialization.cs index 33279e9b4fe6..8bc2ad04ac07 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionDisconnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionDisconnectedEventData.Serialization.cs @@ -36,16 +36,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("timestamp"u8); writer.WriteStringValue(Timestamp, "O"); - if (Optional.IsDefined(HubName)) - { - writer.WritePropertyName("hubName"u8); - writer.WriteStringValue(HubName); - } - if (Optional.IsDefined(ConnectionId)) - { - writer.WritePropertyName("connectionId"u8); - writer.WriteStringValue(ConnectionId); - } + writer.WritePropertyName("hubName"u8); + writer.WriteStringValue(HubName); + writer.WritePropertyName("connectionId"u8); + writer.WriteStringValue(ConnectionId); if (Optional.IsDefined(UserId)) { writer.WritePropertyName("userId"u8); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionDisconnectedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionDisconnectedEventData.cs index 6a0f3883fc81..3be254708bf3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionDisconnectedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SignalRServiceClientConnectionDisconnectedEventData.cs @@ -47,9 +47,17 @@ public partial class SignalRServiceClientConnectionDisconnectedEventData /// Initializes a new instance of . /// The time at which the event occurred. - internal SignalRServiceClientConnectionDisconnectedEventData(DateTimeOffset timestamp) + /// The hub of connected client connection. + /// The connection Id of connected client connection. + /// or is null. + internal SignalRServiceClientConnectionDisconnectedEventData(DateTimeOffset timestamp, string hubName, string connectionId) { + Argument.AssertNotNull(hubName, nameof(hubName)); + Argument.AssertNotNull(connectionId, nameof(connectionId)); + Timestamp = timestamp; + HubName = hubName; + ConnectionId = connectionId; } /// Initializes a new instance of . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobAccessTier.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobAccessTier.cs new file mode 100644 index 000000000000..60a044fd8b4f --- /dev/null +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobAccessTier.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Messaging.EventGrid.SystemEvents +{ + /// The access tier of the blob. + public readonly partial struct StorageBlobAccessTier : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public StorageBlobAccessTier(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string HotValue = "Hot"; + private const string CoolValue = "Cool"; + private const string ColdValue = "Cold"; + private const string ArchiveValue = "Archive"; + private const string DefaultValue = "Default"; + + /// The blob is in access tier Hot. + public static StorageBlobAccessTier Hot { get; } = new StorageBlobAccessTier(HotValue); + /// The blob is in access tier Cool. + public static StorageBlobAccessTier Cool { get; } = new StorageBlobAccessTier(CoolValue); + /// The blob is in access tier Cold. + public static StorageBlobAccessTier Cold { get; } = new StorageBlobAccessTier(ColdValue); + /// The blob is in access tier Archive. + public static StorageBlobAccessTier Archive { get; } = new StorageBlobAccessTier(ArchiveValue); + /// The blob is in access tier Default(Inferred). + public static StorageBlobAccessTier Default { get; } = new StorageBlobAccessTier(DefaultValue); + /// Determines if two values are the same. + public static bool operator ==(StorageBlobAccessTier left, StorageBlobAccessTier right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(StorageBlobAccessTier left, StorageBlobAccessTier right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator StorageBlobAccessTier(string value) => new StorageBlobAccessTier(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is StorageBlobAccessTier other && Equals(other); + /// + public bool Equals(StorageBlobAccessTier other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobCreatedEventData.Serialization.cs index 2612495b4542..1bb9829c4a57 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobCreatedEventData.Serialization.cs @@ -74,6 +74,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("blobType"u8); writer.WriteStringValue(BlobType); } + writer.WritePropertyName("accessTier"u8); + writer.WriteStringValue(AccessTier.ToString()); if (Optional.IsDefined(Url)) { writer.WritePropertyName("url"u8); @@ -154,6 +156,7 @@ internal static StorageBlobCreatedEventData DeserializeStorageBlobCreatedEventDa long? contentLength = default; long? contentOffset = default; string blobType = default; + StorageBlobAccessTier accessTier = default; string url = default; string sequencer = default; string identity = default; @@ -210,6 +213,11 @@ internal static StorageBlobCreatedEventData DeserializeStorageBlobCreatedEventDa blobType = property.Value.GetString(); continue; } + if (property.NameEquals("accessTier"u8)) + { + accessTier = new StorageBlobAccessTier(property.Value.GetString()); + continue; + } if (property.NameEquals("url"u8)) { url = property.Value.GetString(); @@ -257,6 +265,7 @@ internal static StorageBlobCreatedEventData DeserializeStorageBlobCreatedEventDa contentLength, contentOffset, blobType, + accessTier, url, sequencer, identity, diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobCreatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobCreatedEventData.cs index a1799eea345a..5b97c6b1bddc 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobCreatedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobCreatedEventData.cs @@ -46,12 +46,14 @@ public partial class StorageBlobCreatedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// The current tier of the blob. /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. /// is null. - internal StorageBlobCreatedEventData(IReadOnlyDictionary storageDiagnostics) + internal StorageBlobCreatedEventData(StorageBlobAccessTier accessTier, IReadOnlyDictionary storageDiagnostics) { Argument.AssertNotNull(storageDiagnostics, nameof(storageDiagnostics)); + AccessTier = accessTier; StorageDiagnostics = storageDiagnostics; } @@ -64,12 +66,13 @@ internal StorageBlobCreatedEventData(IReadOnlyDictionary sto /// The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. /// The offset of the blob in bytes. /// The type of blob. + /// The current tier of the blob. /// The path to the blob. /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. /// The identity of the requester that triggered this event. /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. /// Keeps track of any properties unknown to the library. - internal StorageBlobCreatedEventData(string api, string clientRequestId, string requestId, string eTag, string contentType, long? contentLength, long? contentOffset, string blobType, string url, string sequencer, string identity, IReadOnlyDictionary storageDiagnostics, IDictionary serializedAdditionalRawData) + internal StorageBlobCreatedEventData(string api, string clientRequestId, string requestId, string eTag, string contentType, long? contentLength, long? contentOffset, string blobType, StorageBlobAccessTier accessTier, string url, string sequencer, string identity, IReadOnlyDictionary storageDiagnostics, IDictionary serializedAdditionalRawData) { Api = api; ClientRequestId = clientRequestId; @@ -79,6 +82,7 @@ internal StorageBlobCreatedEventData(string api, string clientRequestId, string ContentLength = contentLength; ContentOffset = contentOffset; BlobType = blobType; + AccessTier = accessTier; Url = url; Sequencer = sequencer; Identity = identity; @@ -107,6 +111,8 @@ internal StorageBlobCreatedEventData() public long? ContentOffset { get; } /// The type of blob. public string BlobType { get; } + /// The current tier of the blob. + public StorageBlobAccessTier AccessTier { get; } /// The path to the blob. public string Url { get; } /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobTierChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobTierChangedEventData.Serialization.cs index 7ecdd6aae802..477263107825 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobTierChangedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobTierChangedEventData.Serialization.cs @@ -64,6 +64,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("blobType"u8); writer.WriteStringValue(BlobType); } + writer.WritePropertyName("accessTier"u8); + writer.WriteStringValue(AccessTier.ToString()); + writer.WritePropertyName("previousTier"u8); + writer.WriteStringValue(PreviousTier.ToString()); if (Optional.IsDefined(Url)) { writer.WritePropertyName("url"u8); @@ -142,6 +146,8 @@ internal static StorageBlobTierChangedEventData DeserializeStorageBlobTierChange string contentType = default; long? contentLength = default; string blobType = default; + StorageBlobAccessTier accessTier = default; + StorageBlobAccessTier previousTier = default; string url = default; string sequencer = default; string identity = default; @@ -184,6 +190,16 @@ internal static StorageBlobTierChangedEventData DeserializeStorageBlobTierChange blobType = property.Value.GetString(); continue; } + if (property.NameEquals("accessTier"u8)) + { + accessTier = new StorageBlobAccessTier(property.Value.GetString()); + continue; + } + if (property.NameEquals("previousTier"u8)) + { + previousTier = new StorageBlobAccessTier(property.Value.GetString()); + continue; + } if (property.NameEquals("url"u8)) { url = property.Value.GetString(); @@ -229,6 +245,8 @@ internal static StorageBlobTierChangedEventData DeserializeStorageBlobTierChange contentType, contentLength, blobType, + accessTier, + previousTier, url, sequencer, identity, diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobTierChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobTierChangedEventData.cs index e1f0f18db416..ae0660ee74c4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobTierChangedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageBlobTierChangedEventData.cs @@ -46,12 +46,16 @@ public partial class StorageBlobTierChangedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// The current tier of the blob. + /// The previous tier of the blob. /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. /// is null. - internal StorageBlobTierChangedEventData(IReadOnlyDictionary storageDiagnostics) + internal StorageBlobTierChangedEventData(StorageBlobAccessTier accessTier, StorageBlobAccessTier previousTier, IReadOnlyDictionary storageDiagnostics) { Argument.AssertNotNull(storageDiagnostics, nameof(storageDiagnostics)); + AccessTier = accessTier; + PreviousTier = previousTier; StorageDiagnostics = storageDiagnostics; } @@ -62,12 +66,14 @@ internal StorageBlobTierChangedEventData(IReadOnlyDictionary /// The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. /// The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. /// The type of blob. + /// The current tier of the blob. + /// The previous tier of the blob. /// The path to the blob. /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. /// The identity of the requester that triggered this event. /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. /// Keeps track of any properties unknown to the library. - internal StorageBlobTierChangedEventData(string api, string clientRequestId, string requestId, string contentType, long? contentLength, string blobType, string url, string sequencer, string identity, IReadOnlyDictionary storageDiagnostics, IDictionary serializedAdditionalRawData) + internal StorageBlobTierChangedEventData(string api, string clientRequestId, string requestId, string contentType, long? contentLength, string blobType, StorageBlobAccessTier accessTier, StorageBlobAccessTier previousTier, string url, string sequencer, string identity, IReadOnlyDictionary storageDiagnostics, IDictionary serializedAdditionalRawData) { Api = api; ClientRequestId = clientRequestId; @@ -75,6 +81,8 @@ internal StorageBlobTierChangedEventData(string api, string clientRequestId, str ContentType = contentType; ContentLength = contentLength; BlobType = blobType; + AccessTier = accessTier; + PreviousTier = previousTier; Url = url; Sequencer = sequencer; Identity = identity; @@ -99,6 +107,10 @@ internal StorageBlobTierChangedEventData() public long? ContentLength { get; } /// The type of blob. public string BlobType { get; } + /// The current tier of the blob. + public StorageBlobAccessTier AccessTier { get; } + /// The previous tier of the blob. + public StorageBlobAccessTier PreviousTier { get; } /// The path to the blob. public string Url { get; } /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecycleCompletionStatus.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecycleCompletionStatus.cs new file mode 100644 index 000000000000..a52a3baab266 --- /dev/null +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecycleCompletionStatus.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Messaging.EventGrid.SystemEvents +{ + /// The status for a LCM policy. + public readonly partial struct StorageLifecycleCompletionStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public StorageLifecycleCompletionStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CompletedValue = "Completed"; + private const string CompletedWithErrorValue = "CompletedWithError"; + private const string IncompleteValue = "Incomplete"; + + /// Completed. + public static StorageLifecycleCompletionStatus Completed { get; } = new StorageLifecycleCompletionStatus(CompletedValue); + /// CompletedWithError. + public static StorageLifecycleCompletionStatus CompletedWithError { get; } = new StorageLifecycleCompletionStatus(CompletedWithErrorValue); + /// Incomplete. + public static StorageLifecycleCompletionStatus Incomplete { get; } = new StorageLifecycleCompletionStatus(IncompleteValue); + /// Determines if two values are the same. + public static bool operator ==(StorageLifecycleCompletionStatus left, StorageLifecycleCompletionStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(StorageLifecycleCompletionStatus left, StorageLifecycleCompletionStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator StorageLifecycleCompletionStatus(string value) => new StorageLifecycleCompletionStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is StorageLifecycleCompletionStatus other && Equals(other); + /// + public bool Equals(StorageLifecycleCompletionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyCompletedEventData.Serialization.cs index 7101b2b07c72..853459a93bb6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyCompletedEventData.Serialization.cs @@ -39,12 +39,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("scheduleTime"u8); writer.WriteStringValue(ScheduleTime); } + writer.WritePropertyName("policyRunSummary"u8); + writer.WriteObjectValue(PolicyRunSummary, options); writer.WritePropertyName("deleteSummary"u8); writer.WriteObjectValue(DeleteSummary, options); writer.WritePropertyName("tierToCoolSummary"u8); writer.WriteObjectValue(TierToCoolSummary, options); writer.WritePropertyName("tierToArchiveSummary"u8); writer.WriteObjectValue(TierToArchiveSummary, options); + writer.WritePropertyName("tierToColdSummary"u8); + writer.WriteObjectValue(TierToColdSummary, options); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -83,9 +87,11 @@ internal static StorageLifecyclePolicyCompletedEventData DeserializeStorageLifec return null; } string scheduleTime = default; + StorageLifecyclePolicyRunSummary policyRunSummary = default; StorageLifecyclePolicyActionSummaryDetail deleteSummary = default; StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary = default; StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary = default; + StorageLifecyclePolicyActionSummaryDetail tierToColdSummary = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -95,6 +101,11 @@ internal static StorageLifecyclePolicyCompletedEventData DeserializeStorageLifec scheduleTime = property.Value.GetString(); continue; } + if (property.NameEquals("policyRunSummary"u8)) + { + policyRunSummary = StorageLifecyclePolicyRunSummary.DeserializeStorageLifecyclePolicyRunSummary(property.Value, options); + continue; + } if (property.NameEquals("deleteSummary"u8)) { deleteSummary = StorageLifecyclePolicyActionSummaryDetail.DeserializeStorageLifecyclePolicyActionSummaryDetail(property.Value, options); @@ -110,13 +121,25 @@ internal static StorageLifecyclePolicyCompletedEventData DeserializeStorageLifec tierToArchiveSummary = StorageLifecyclePolicyActionSummaryDetail.DeserializeStorageLifecyclePolicyActionSummaryDetail(property.Value, options); continue; } + if (property.NameEquals("tierToColdSummary"u8)) + { + tierToColdSummary = StorageLifecyclePolicyActionSummaryDetail.DeserializeStorageLifecyclePolicyActionSummaryDetail(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new StorageLifecyclePolicyCompletedEventData(scheduleTime, deleteSummary, tierToCoolSummary, tierToArchiveSummary, serializedAdditionalRawData); + return new StorageLifecyclePolicyCompletedEventData( + scheduleTime, + policyRunSummary, + deleteSummary, + tierToCoolSummary, + tierToArchiveSummary, + tierToColdSummary, + serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyCompletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyCompletedEventData.cs index 392cff3c1e1e..9619c44a21f2 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyCompletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyCompletedEventData.cs @@ -46,33 +46,43 @@ public partial class StorageLifecyclePolicyCompletedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + /// Policy execution summary which shows the completion status of a LCM run". /// Execution statistics of a specific policy action in a Blob Management cycle. /// Execution statistics of a specific policy action in a Blob Management cycle. /// Execution statistics of a specific policy action in a Blob Management cycle. - /// , or is null. - internal StorageLifecyclePolicyCompletedEventData(StorageLifecyclePolicyActionSummaryDetail deleteSummary, StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary, StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary) + /// Execution statistics of a specific policy action in a Blob Management cycle. + /// , , , or is null. + internal StorageLifecyclePolicyCompletedEventData(StorageLifecyclePolicyRunSummary policyRunSummary, StorageLifecyclePolicyActionSummaryDetail deleteSummary, StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary, StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary, StorageLifecyclePolicyActionSummaryDetail tierToColdSummary) { + Argument.AssertNotNull(policyRunSummary, nameof(policyRunSummary)); Argument.AssertNotNull(deleteSummary, nameof(deleteSummary)); Argument.AssertNotNull(tierToCoolSummary, nameof(tierToCoolSummary)); Argument.AssertNotNull(tierToArchiveSummary, nameof(tierToArchiveSummary)); + Argument.AssertNotNull(tierToColdSummary, nameof(tierToColdSummary)); + PolicyRunSummary = policyRunSummary; DeleteSummary = deleteSummary; TierToCoolSummary = tierToCoolSummary; TierToArchiveSummary = tierToArchiveSummary; + TierToColdSummary = tierToColdSummary; } /// Initializes a new instance of . /// The time the policy task was scheduled. + /// Policy execution summary which shows the completion status of a LCM run". /// Execution statistics of a specific policy action in a Blob Management cycle. /// Execution statistics of a specific policy action in a Blob Management cycle. /// Execution statistics of a specific policy action in a Blob Management cycle. + /// Execution statistics of a specific policy action in a Blob Management cycle. /// Keeps track of any properties unknown to the library. - internal StorageLifecyclePolicyCompletedEventData(string scheduleTime, StorageLifecyclePolicyActionSummaryDetail deleteSummary, StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary, StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary, IDictionary serializedAdditionalRawData) + internal StorageLifecyclePolicyCompletedEventData(string scheduleTime, StorageLifecyclePolicyRunSummary policyRunSummary, StorageLifecyclePolicyActionSummaryDetail deleteSummary, StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary, StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary, StorageLifecyclePolicyActionSummaryDetail tierToColdSummary, IDictionary serializedAdditionalRawData) { ScheduleTime = scheduleTime; + PolicyRunSummary = policyRunSummary; DeleteSummary = deleteSummary; TierToCoolSummary = tierToCoolSummary; TierToArchiveSummary = tierToArchiveSummary; + TierToColdSummary = tierToColdSummary; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -83,11 +93,15 @@ internal StorageLifecyclePolicyCompletedEventData() /// The time the policy task was scheduled. public string ScheduleTime { get; } + /// Policy execution summary which shows the completion status of a LCM run". + public StorageLifecyclePolicyRunSummary PolicyRunSummary { get; } /// Execution statistics of a specific policy action in a Blob Management cycle. public StorageLifecyclePolicyActionSummaryDetail DeleteSummary { get; } /// Execution statistics of a specific policy action in a Blob Management cycle. public StorageLifecyclePolicyActionSummaryDetail TierToCoolSummary { get; } /// Execution statistics of a specific policy action in a Blob Management cycle. public StorageLifecyclePolicyActionSummaryDetail TierToArchiveSummary { get; } + /// Execution statistics of a specific policy action in a Blob Management cycle. + public StorageLifecyclePolicyActionSummaryDetail TierToColdSummary { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorDetail.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyRunSummary.Serialization.cs similarity index 57% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorDetail.Serialization.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyRunSummary.Serialization.cs index 61ea5a6e9dfd..6ffc70a405b2 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorDetail.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyRunSummary.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Messaging.EventGrid.SystemEvents { - public partial class MediaJobErrorDetail : IUtf8JsonSerializable, IJsonModel + public partial class StorageLifecyclePolicyRunSummary : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,22 +28,14 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(MediaJobErrorDetail)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(StorageLifecyclePolicyRunSummary)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Code)) - { - writer.WritePropertyName("code"u8); - writer.WriteStringValue(Code); - } - if (Optional.IsDefined(Message)) - { - writer.WritePropertyName("message"u8); - writer.WriteStringValue(Message); - } + writer.WritePropertyName("completionStatus"u8); + writer.WriteStringValue(CompletionStatus.ToString()); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -61,19 +53,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - MediaJobErrorDetail IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + StorageLifecyclePolicyRunSummary IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(MediaJobErrorDetail)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(StorageLifecyclePolicyRunSummary)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobErrorDetail(document.RootElement, options); + return DeserializeStorageLifecyclePolicyRunSummary(document.RootElement, options); } - internal static MediaJobErrorDetail DeserializeMediaJobErrorDetail(JsonElement element, ModelReaderWriterOptions options = null) + internal static StorageLifecyclePolicyRunSummary DeserializeStorageLifecyclePolicyRunSummary(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -81,20 +73,14 @@ internal static MediaJobErrorDetail DeserializeMediaJobErrorDetail(JsonElement e { return null; } - string code = default; - string message = default; + StorageLifecycleCompletionStatus completionStatus = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("code"u8)) - { - code = property.Value.GetString(); - continue; - } - if (property.NameEquals("message"u8)) + if (property.NameEquals("completionStatus"u8)) { - message = property.Value.GetString(); + completionStatus = new StorageLifecycleCompletionStatus(property.Value.GetString()); continue; } if (options.Format != "W") @@ -103,46 +89,46 @@ internal static MediaJobErrorDetail DeserializeMediaJobErrorDetail(JsonElement e } } serializedAdditionalRawData = rawDataDictionary; - return new MediaJobErrorDetail(code, message, serializedAdditionalRawData); + return new StorageLifecyclePolicyRunSummary(completionStatus, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(MediaJobErrorDetail)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(StorageLifecyclePolicyRunSummary)} does not support writing '{options.Format}' format."); } } - MediaJobErrorDetail IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + StorageLifecyclePolicyRunSummary IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobErrorDetail(document.RootElement, options); + return DeserializeStorageLifecyclePolicyRunSummary(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(MediaJobErrorDetail)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(StorageLifecyclePolicyRunSummary)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static MediaJobErrorDetail FromResponse(Response response) + internal static StorageLifecyclePolicyRunSummary FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeMediaJobErrorDetail(document.RootElement); + return DeserializeStorageLifecyclePolicyRunSummary(document.RootElement); } /// Convert into a . diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorDetail.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyRunSummary.cs similarity index 58% rename from sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorDetail.cs rename to sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyRunSummary.cs index 4db19c083c43..11674a6b8cf6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/MediaJobErrorDetail.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/StorageLifecyclePolicyRunSummary.cs @@ -10,8 +10,8 @@ namespace Azure.Messaging.EventGrid.SystemEvents { - /// Details of JobOutput errors. - public partial class MediaJobErrorDetail + /// Policy run status of an account in a Blob Management cycle. + public partial class StorageLifecyclePolicyRunSummary { /// /// Keeps track of any properties unknown to the library. @@ -45,25 +45,28 @@ public partial class MediaJobErrorDetail /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - internal MediaJobErrorDetail() + /// Initializes a new instance of . + /// Policy status can be Completed/CompletedWithError/Incomplete. + internal StorageLifecyclePolicyRunSummary(StorageLifecycleCompletionStatus completionStatus) { + CompletionStatus = completionStatus; } - /// Initializes a new instance of . - /// Code describing the error detail. - /// A human-readable representation of the error. + /// Initializes a new instance of . + /// Policy status can be Completed/CompletedWithError/Incomplete. /// Keeps track of any properties unknown to the library. - internal MediaJobErrorDetail(string code, string message, IDictionary serializedAdditionalRawData) + internal StorageLifecyclePolicyRunSummary(StorageLifecycleCompletionStatus completionStatus, IDictionary serializedAdditionalRawData) { - Code = code; - Message = message; + CompletionStatus = completionStatus; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Code describing the error detail. - public string Code { get; } - /// A human-readable representation of the error. - public string Message { get; } + /// Initializes a new instance of for deserialization. + internal StorageLifecyclePolicyRunSummary() + { + } + + /// Policy status can be Completed/CompletedWithError/Incomplete. + public StorageLifecycleCompletionStatus CompletionStatus { get; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionDeletedEventData.Serialization.cs index 118af3e2917b..e91610458fd8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionDeletedEventData.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(SubscriptionDeletedEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(EventSubscriptionId)) - { - writer.WritePropertyName("eventSubscriptionId"u8); - writer.WriteStringValue(EventSubscriptionId); - } + writer.WritePropertyName("eventSubscriptionId"u8); + writer.WriteStringValue(EventSubscriptionId); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionDeletedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionDeletedEventData.cs index 323175400bcf..6056e51310b1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionDeletedEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionDeletedEventData.cs @@ -49,8 +49,13 @@ public partial class SubscriptionDeletedEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal SubscriptionDeletedEventData() + /// The Azure resource ID of the deleted event subscription. + /// is null. + internal SubscriptionDeletedEventData(string eventSubscriptionId) { + Argument.AssertNotNull(eventSubscriptionId, nameof(eventSubscriptionId)); + + EventSubscriptionId = eventSubscriptionId; } /// Initializes a new instance of . @@ -62,6 +67,11 @@ internal SubscriptionDeletedEventData(string eventSubscriptionId, IDictionary Initializes a new instance of for deserialization. + internal SubscriptionDeletedEventData() + { + } + /// The Azure resource ID of the deleted event subscription. public string EventSubscriptionId { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationEventData.Serialization.cs index 73797c8a2b8b..f822716e6f12 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationEventData.Serialization.cs @@ -34,16 +34,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(SubscriptionValidationEventData)} does not support writing '{format}' format."); } - if (Optional.IsDefined(ValidationCode)) - { - writer.WritePropertyName("validationCode"u8); - writer.WriteStringValue(ValidationCode); - } - if (Optional.IsDefined(ValidationUrl)) - { - writer.WritePropertyName("validationUrl"u8); - writer.WriteStringValue(ValidationUrl); - } + writer.WritePropertyName("validationCode"u8); + writer.WriteStringValue(ValidationCode); + writer.WritePropertyName("validationUrl"u8); + writer.WriteStringValue(ValidationUrl); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationEventData.cs index 78d90aa69318..a9db22f6fe88 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationEventData.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationEventData.cs @@ -46,8 +46,24 @@ public partial class SubscriptionValidationEventData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal SubscriptionValidationEventData() + /// + /// The validation code sent by Azure Event Grid to validate an event subscription. + /// To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, + /// or perform a GET request on the validationUrl (available starting version 2018-05-01-preview). + /// + /// + /// The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). + /// To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, + /// or perform a GET request on the validationUrl (available starting version 2018-05-01-preview). + /// + /// or is null. + internal SubscriptionValidationEventData(string validationCode, string validationUrl) { + Argument.AssertNotNull(validationCode, nameof(validationCode)); + Argument.AssertNotNull(validationUrl, nameof(validationUrl)); + + ValidationCode = validationCode; + ValidationUrl = validationUrl; } /// Initializes a new instance of . @@ -69,6 +85,11 @@ internal SubscriptionValidationEventData(string validationCode, string validatio _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Initializes a new instance of for deserialization. + internal SubscriptionValidationEventData() + { + } + /// /// The validation code sent by Azure Event Grid to validate an event subscription. /// To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationResponse.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationResponse.Serialization.cs index 5b5ffbe5c353..6312e1f1c734 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationResponse.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationResponse.Serialization.cs @@ -34,11 +34,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(SubscriptionValidationResponse)} does not support writing '{format}' format."); } - if (Optional.IsDefined(ValidationResponse)) - { - writer.WritePropertyName("validationResponse"u8); - writer.WriteStringValue(ValidationResponse); - } + writer.WritePropertyName("validationResponse"u8); + writer.WriteStringValue(ValidationResponse); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationResponse.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationResponse.cs index 7343bc21df38..af53c93e7db9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationResponse.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SubscriptionValidationResponse.cs @@ -51,8 +51,13 @@ public partial class SubscriptionValidationResponse private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal SubscriptionValidationResponse() + /// The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. + /// is null. + internal SubscriptionValidationResponse(string validationResponse) { + Argument.AssertNotNull(validationResponse, nameof(validationResponse)); + + ValidationResponse = validationResponse; } /// Initializes a new instance of . @@ -64,6 +69,11 @@ internal SubscriptionValidationResponse(string validationResponse, IDictionary Initializes a new instance of for deserialization. + internal SubscriptionValidationResponse() + { + } + /// The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. public string ValidationResponse { get; } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SystemEventsClientOptions.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SystemEventsClientOptions.cs index 0d99553ffa77..17e37e2f9d4b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SystemEventsClientOptions.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/SystemEventsClientOptions.cs @@ -13,13 +13,13 @@ namespace Azure.Messaging.EventGrid.SystemEvents /// Client options for SystemEventsClient. internal partial class SystemEventsClientOptions : ClientOptions { - private const ServiceVersion LatestVersion = ServiceVersion.V2024_01_01; + private const ServiceVersion LatestVersion = ServiceVersion.V2018_01_01; /// The version of the service to use. internal enum ServiceVersion { - /// Service version "2024-01-01". - V2024_01_01 = 1, + /// Service version "2018-01-01". + V2018_01_01 = 1, } internal string Version { get; } @@ -29,7 +29,7 @@ public SystemEventsClientOptions(ServiceVersion version = LatestVersion) { Version = version switch { - ServiceVersion.V2024_01_01 => "2024-01-01", + ServiceVersion.V2018_01_01 => "2018-01-01", _ => throw new NotSupportedException() }; } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/UnknownMediaJobOutput.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/UnknownMediaJobOutput.Serialization.cs deleted file mode 100644 index 237a41a34578..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/UnknownMediaJobOutput.Serialization.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - internal partial class UnknownMediaJobOutput : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutput)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - - MediaJobOutput IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MediaJobOutput)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMediaJobOutput(document.RootElement, options); - } - - internal static UnknownMediaJobOutput DeserializeUnknownMediaJobOutput(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string odataType = "Unknown"; - MediaJobError error = default; - string label = default; - long progress = default; - MediaJobState state = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("@odata.type"u8)) - { - odataType = property.Value.GetString(); - continue; - } - if (property.NameEquals("error"u8)) - { - error = MediaJobError.DeserializeMediaJobError(property.Value, options); - continue; - } - if (property.NameEquals("label"u8)) - { - label = property.Value.GetString(); - continue; - } - if (property.NameEquals("progress"u8)) - { - progress = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("state"u8)) - { - state = new MediaJobState(property.Value.GetString()); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new UnknownMediaJobOutput( - odataType, - error, - label, - progress, - state, - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(MediaJobOutput)} does not support writing '{options.Format}' format."); - } - } - - MediaJobOutput IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeMediaJobOutput(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MediaJobOutput)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static new UnknownMediaJobOutput FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content); - return DeserializeUnknownMediaJobOutput(document.RootElement); - } - - /// Convert into a . - internal override RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/UnknownMediaJobOutput.cs b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/UnknownMediaJobOutput.cs deleted file mode 100644 index 0bfb2f76e943..000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/src/Generated/UnknownMediaJobOutput.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Messaging.EventGrid.SystemEvents -{ - /// Unknown version of MediaJobOutput. - internal partial class UnknownMediaJobOutput : MediaJobOutput - { - /// Initializes a new instance of . - /// The discriminator for derived types. - /// Gets the Job output error. - /// Gets the Job output label. - /// Gets the Job output progress. - /// Gets the Job output state. - /// Keeps track of any properties unknown to the library. - internal UnknownMediaJobOutput(string odataType, MediaJobError error, string label, long progress, MediaJobState state, IDictionary serializedAdditionalRawData) : base(odataType, error, label, progress, state, serializedAdditionalRawData) - { - } - - /// Initializes a new instance of for deserialization. - internal UnknownMediaJobOutput() - { - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tsp-location.yaml b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tsp-location.yaml index e59d0681c201..c1e2cb4adbb6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tsp-location.yaml +++ b/sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tsp-location.yaml @@ -1,3 +1,4 @@ +directory: specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents +commit: 359611ec09e8181bae43f7e1e1ce68be5ac460e5 repo: Azure/azure-rest-api-specs -directory: "specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents" -commit: 9f024124361561030653abd1e8ec6d5ad1080c1a +additionalDirectories: