From a22079b7eb30f828dc0dbdfe89af18b11c9874cd Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Fri, 1 Nov 2024 08:54:34 -0700 Subject: [PATCH 1/2] Remove and/or fix track 1 dead or broken stuff --- eng/.docsettings.yml | 11 - eng/pipelines/aggregate-reports.yml | 4 +- eng/versioning/version_data.txt | 4 - sdk/cognitiveservices/ci.data.yml | 3 - sdk/eventgrid/ci.data.yml | 39 - .../microsoft-azure-eventgrid/README.md | 59 - .../microsoft-azure-eventgrid/pom.xml | 133 --- .../azure/eventgrid/DomainCredentials.java | 30 - .../azure/eventgrid/EventGridClient.java | 134 --- .../azure/eventgrid/TopicCredentials.java | 30 - .../customization/EventGridSubscriber.java | 183 --- .../SystemEventTypeMappings.java | 191 --- .../customization/SystemEventTypes.java | 275 ----- .../implementation/EventGridClientImpl.java | 282 ----- .../implementation/package-info.java | 11 - ...ConfigurationKeyValueDeletedEventData.java | 96 -- ...onfigurationKeyValueModifiedEventData.java | 96 -- .../ContainerRegistryArtifactEventData.java | 122 -- .../ContainerRegistryArtifactEventTarget.java | 199 ---- ...ontainerRegistryChartDeletedEventData.java | 17 - ...ContainerRegistryChartPushedEventData.java | 17 - .../models/ContainerRegistryEventActor.java | 45 - .../models/ContainerRegistryEventData.java | 202 ---- .../models/ContainerRegistryEventRequest.java | 150 --- .../models/ContainerRegistryEventSource.java | 72 -- .../models/ContainerRegistryEventTarget.java | 200 ---- ...ontainerRegistryImageDeletedEventData.java | 17 - ...ContainerRegistryImagePushedEventData.java | 17 - .../DeviceConnectionStateEventInfo.java | 46 - .../DeviceConnectionStateEventProperties.java | 128 -- .../DeviceLifeCycleEventProperties.java | 100 -- .../DeviceTelemetryEventProperties.java | 98 -- .../eventgrid/models/DeviceTwinInfo.java | 310 ----- .../models/DeviceTwinInfoProperties.java | 71 -- .../models/DeviceTwinInfoX509Thumbprint.java | 72 -- .../eventgrid/models/DeviceTwinMetadata.java | 43 - .../models/DeviceTwinProperties.java | 70 -- .../eventgrid/models/EventGridEvent.java | 173 --- .../EventHubCaptureFileCreatedEventData.java | 253 ---- .../IotHubDeviceConnectedEventData.java | 16 - .../models/IotHubDeviceCreatedEventData.java | 16 - .../models/IotHubDeviceDeletedEventData.java | 16 - .../IotHubDeviceDisconnectedEventData.java | 16 - .../IotHubDeviceTelemetryEventData.java | 16 - .../azure/eventgrid/models/JobState.java | 68 -- .../models/MapsGeofenceEnteredEventData.java | 17 - .../models/MapsGeofenceEventProperties.java | 128 -- .../models/MapsGeofenceExitedEventData.java | 17 - .../models/MapsGeofenceGeometry.java | 183 --- .../models/MapsGeofenceResultEventData.java | 17 - .../models/MediaJobCanceledEventData.java | 44 - .../models/MediaJobCancelingEventData.java | 16 - .../azure/eventgrid/models/MediaJobError.java | 100 -- .../models/MediaJobErrorCategory.java | 62 - .../eventgrid/models/MediaJobErrorCode.java | 74 -- .../eventgrid/models/MediaJobErrorDetail.java | 47 - .../models/MediaJobErroredEventData.java | 44 - .../models/MediaJobFinishedEventData.java | 44 - .../eventgrid/models/MediaJobOutput.java | 124 -- .../eventgrid/models/MediaJobOutputAsset.java | 47 - .../MediaJobOutputCanceledEventData.java | 16 - .../MediaJobOutputCancelingEventData.java | 16 - .../MediaJobOutputErroredEventData.java | 16 - .../MediaJobOutputFinishedEventData.java | 16 - .../MediaJobOutputProcessingEventData.java | 16 - .../MediaJobOutputProgressEventData.java | 96 -- .../MediaJobOutputScheduledEventData.java | 16 - .../MediaJobOutputStateChangeEventData.java | 87 -- .../models/MediaJobProcessingEventData.java | 16 - .../azure/eventgrid/models/MediaJobRetry.java | 53 - .../models/MediaJobScheduledEventData.java | 16 - .../azure/eventgrid/models/MediaJobState.java | 68 -- .../models/MediaJobStateChangeEventData.java | 77 -- ...aLiveEventConnectionRejectedEventData.java | 92 -- ...diaLiveEventEncoderConnectedEventData.java | 77 -- ...LiveEventEncoderDisconnectedEventData.java | 92 -- ...ventIncomingDataChunkDroppedEventData.java | 107 -- ...eEventIncomingStreamReceivedEventData.java | 152 --- ...ventIncomingStreamsOutOfSyncEventData.java | 107 -- ...ncomingVideoStreamsOutOfSyncEventData.java | 93 -- ...ediaLiveEventIngestHeartbeatEventData.java | 197 ---- ...ntTrackDiscontinuityDetectedEventData.java | 123 -- .../models/ResourceActionCancelData.java | 305 ----- .../models/ResourceActionFailureData.java | 305 ----- .../models/ResourceActionSuccessData.java | 305 ----- .../models/ResourceDeleteCancelData.java | 305 ----- .../models/ResourceDeleteFailureData.java | 305 ----- .../models/ResourceDeleteSuccessData.java | 305 ----- .../models/ResourceWriteCancelData.java | 305 ----- .../models/ResourceWriteFailureData.java | 305 ----- .../models/ResourceWriteSuccessData.java | 305 ----- ...agesAvailableWithNoListenersEventData.java | 178 --- ...agesAvailableWithNoListenersEventData.java | 178 --- .../models/StorageBlobCreatedEventData.java | 285 ----- .../models/StorageBlobDeletedEventData.java | 232 ---- .../models/SubscriptionDeletedEventData.java | 33 - .../SubscriptionValidationEventData.java | 56 - .../SubscriptionValidationResponse.java | 47 - .../azure/eventgrid/models/package-info.java | 11 - .../azure/eventgrid/package-info.java | 11 - .../azure/eventgrid/EventGridTests.java | 74 -- .../customization/CustomizationTests.java | 1044 ----------------- .../models/ContosoItemReceivedEventData.java | 22 - .../models/ContosoItemSentEventData.java | 17 - .../models/DroneShippingInfo.java | 21 - .../models/RocketShippingInfo.java | 21 - .../customization/models/ShippingInfo.java | 26 - .../AppConfigurationKeyValueDeleted.json | 16 - .../AppConfigurationKeyValueModified.json | 16 - .../ContainerRegistryChartDeletedEvent.json | 22 - .../ContainerRegistryChartPushedEvent.json | 22 - .../ContainerRegistryImageDeletedEvent.json | 39 - .../ContainerRegistryImagePushedEvent.json | 39 - .../CustomEventWithArrayData.json | 17 - .../CustomEventWithBooleanData.json | 12 - .../CustomEventWithPolymorphicData.json | 34 - .../CustomEventWithStringData.json | 12 - .../resources/customization/CustomEvents.json | 15 - .../EventGridSubscriptionDeletedEvent.json | 14 - .../EventGridSubscriptionValidationEvent.json | 15 - .../EventHubCaptureFileCreatedEvent.json | 22 - .../IoTHubDeviceConnectedEvent.json | 19 - .../IoTHubDeviceCreatedEvent.json | 46 - .../IoTHubDeviceDeletedEvent.json | 46 - .../IoTHubDeviceDisconnectedEvent.json | 19 - .../IoTHubDeviceTelemetryEvent.json | 31 - .../MapsGeofenceEnteredEvent.json | 26 - .../MapsGeofenceExitedEvent.json | 26 - .../MapsGeofenceResultEvent.json | 26 - .../customization/MediaJobCanceledEvent.json | 1 - .../customization/MediaJobCancelingEvent.json | 1 - .../customization/MediaJobErroredEvent.json | 1 - .../customization/MediaJobFinishedEvent.json | 1 - .../MediaJobOutputCanceledEvent.json | 1 - .../MediaJobOutputCancelingEvent.json | 1 - .../MediaJobOutputErroredEvent.json | 1 - .../MediaJobOutputFinishedEvent.json | 1 - .../MediaJobOutputProcessingEvent.json | 1 - .../MediaJobOutputProgressEvent.json | 1 - .../MediaJobOutputScheduledEvent.json | 1 - .../MediaJobOutputStateChangeEvent.json | 1 - .../MediaJobProcessingEvent.json | 1 - .../customization/MediaJobScheduledEvent.json | 1 - .../MediaJobStateChangeEvent.json | 1 - ...MediaLiveEventConnectionRejectedEvent.json | 1 - .../MediaLiveEventEncoderConnectedEvent.json | 1 - ...ediaLiveEventEncoderDisconnectedEvent.json | 1 - ...iveEventIncomingDataChunkDroppedEvent.json | 1 - ...aLiveEventIncomingStreamReceivedEvent.json | 1 - ...iveEventIncomingStreamsOutOfSyncEvent.json | 1 - ...entIncomingVideoStreamsOutOfSyncEvent.json | 8 - .../MediaLiveEventIngestHeartbeatEvent.json | 1 - ...eEventTrackDiscontinuityDetectedEvent.json | 1 - .../MediaServicesJobStateChangedEvent.json | 15 - .../MultipleEventsInSameBatch.json | 79 -- .../ResourceActionCancelEvent.json | 23 - .../ResourceActionFailureEvent.json | 23 - .../ResourceActionSuccessEvent.json | 23 - .../ResourceDeleteCancelEvent.json | 23 - .../ResourceDeleteFailureEvent.json | 23 - .../ResourceDeleteSuccessEvent.json | 23 - .../ResourceWriteCancelEvent.json | 23 - .../ResourceWriteFailureEvent.json | 23 - .../ResourceWriteSuccessEvent.json | 23 - ...MessagesAvailableWithNoListenersEvent.json | 19 - ...MessagesAvailableWithNoListenersEvent.json | 19 - .../StorageBlobCreatedEvent.json | 22 - .../StorageBlobDeletedEvent.json | 22 - ...rageBlobDeletedEventWithExtraProperty.json | 24 - sdk/eventgrid/pom.xml | 1 - .../microsoft-azure-storage-perf/CHANGELOG.md | 4 - .../microsoft-azure-storage-perf/README.md | 33 - .../microsoft-azure-storage-perf/pom.xml | 58 - .../java/com/microsoft/azure/storage/App.java | 41 - .../storage/blob/perf/DownloadBlobTest.java | 58 - .../storage/blob/perf/ListBlobsTest.java | 47 - .../storage/blob/perf/UploadBlobTest.java | 38 - .../storage/blob/perf/UploadFromFileTest.java | 74 -- .../blob/perf/UploadOutputStreamTest.java | 38 - .../storage/blob/perf/core/BlobTestBase.java | 26 - .../storage/blob/perf/core/ContainerTest.java | 51 - .../storage/blob/perf/core/ServiceTest.java | 33 - .../share/perf/DownloadFileShareTest.java | 66 -- .../share/perf/DownloadToFileShareTest.java | 73 -- .../file/share/perf/UploadFileShareTest.java | 39 - .../share/perf/UploadFromFileShareTest.java | 78 -- .../file/share/perf/core/DirectoryTest.java | 37 - .../file/share/perf/core/FileTestBase.java | 38 - .../file/share/perf/core/ServiceTest.java | 31 - .../file/share/perf/core/ShareTest.java | 46 - sdk/storage/pom.xml | 1 - 191 files changed, 2 insertions(+), 13546 deletions(-) delete mode 100644 sdk/eventgrid/ci.data.yml delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/README.md delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/pom.xml delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/DomainCredentials.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/EventGridClient.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/TopicCredentials.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypeMappings.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypes.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/implementation/EventGridClientImpl.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/implementation/package-info.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/AppConfigurationKeyValueDeletedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/AppConfigurationKeyValueModifiedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryArtifactEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryArtifactEventTarget.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryChartDeletedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryChartPushedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventActor.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventRequest.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventSource.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventTarget.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryImageDeletedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryImagePushedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceConnectionStateEventInfo.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceConnectionStateEventProperties.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceLifeCycleEventProperties.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTelemetryEventProperties.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfo.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfoProperties.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfoX509Thumbprint.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinMetadata.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinProperties.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/EventGridEvent.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/EventHubCaptureFileCreatedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceConnectedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceCreatedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceDeletedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceDisconnectedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceTelemetryEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/JobState.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceEnteredEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceEventProperties.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceExitedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceGeometry.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceResultEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobCanceledEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobCancelingEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobError.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorCategory.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorCode.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorDetail.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErroredEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobFinishedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutput.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputAsset.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputCanceledEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputCancelingEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputErroredEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputFinishedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputProcessingEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputProgressEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputScheduledEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputStateChangeEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobProcessingEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobRetry.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobScheduledEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobState.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobStateChangeEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventConnectionRejectedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventEncoderConnectedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventEncoderDisconnectedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingDataChunkDroppedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingStreamReceivedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingStreamsOutOfSyncEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIngestHeartbeatEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventTrackDiscontinuityDetectedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionCancelData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionFailureData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionSuccessData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteCancelData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteFailureData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteSuccessData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteCancelData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteFailureData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteSuccessData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ServiceBusActiveMessagesAvailableWithNoListenersEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/StorageBlobCreatedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/StorageBlobDeletedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionDeletedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionValidationEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionValidationResponse.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/package-info.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/package-info.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/EventGridTests.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/CustomizationTests.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ContosoItemReceivedEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ContosoItemSentEventData.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/DroneShippingInfo.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/RocketShippingInfo.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ShippingInfo.java delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/AppConfigurationKeyValueDeleted.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/AppConfigurationKeyValueModified.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryChartDeletedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryChartPushedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryImageDeletedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryImagePushedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithArrayData.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithBooleanData.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithPolymorphicData.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithStringData.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEvents.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventGridSubscriptionDeletedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventGridSubscriptionValidationEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventHubCaptureFileCreatedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceConnectedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceCreatedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceDeletedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceDisconnectedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceTelemetryEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceEnteredEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceExitedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceResultEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobCanceledEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobCancelingEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobErroredEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobFinishedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputCanceledEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputCancelingEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputErroredEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputFinishedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputProcessingEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputProgressEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputScheduledEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputStateChangeEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobProcessingEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobScheduledEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobStateChangeEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventConnectionRejectedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventEncoderConnectedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventEncoderDisconnectedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingDataChunkDroppedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingStreamReceivedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingStreamsOutOfSyncEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingVideoStreamsOutOfSyncEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIngestHeartbeatEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventTrackDiscontinuityDetectedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaServicesJobStateChangedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MultipleEventsInSameBatch.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionCancelEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionFailureEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionSuccessEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteCancelEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteFailureEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteSuccessEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteCancelEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteFailureEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteSuccessEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ServiceBusActiveMessagesAvailableWithNoListenersEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ServiceBusDeadletterMessagesAvailableWithNoListenersEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobCreatedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobDeletedEvent.json delete mode 100644 sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobDeletedEventWithExtraProperty.json delete mode 100644 sdk/storage/microsoft-azure-storage-perf/CHANGELOG.md delete mode 100644 sdk/storage/microsoft-azure-storage-perf/README.md delete mode 100644 sdk/storage/microsoft-azure-storage-perf/pom.xml delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/App.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/DownloadBlobTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/ListBlobsTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadBlobTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadFromFileTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadOutputStreamTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/BlobTestBase.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/ContainerTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/ServiceTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/DownloadFileShareTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/DownloadToFileShareTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/UploadFileShareTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/UploadFromFileShareTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/DirectoryTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/FileTestBase.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/ServiceTest.java delete mode 100644 sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/ShareTest.java diff --git a/eng/.docsettings.yml b/eng/.docsettings.yml index 113ae76621dbb..f1de2876111c1 100644 --- a/eng/.docsettings.yml +++ b/eng/.docsettings.yml @@ -5,13 +5,11 @@ omitted_paths: - sdk/*/azure-*/samples/* - sdk/authorization/microsoft-azure-authentication-msi-token-provider/* - sdk/*/azure-monitor-opentelemetry-exporter/*/samples/* - - sdk/applicationinsights/microsoft-azure-applicationinsights-query/samples/* - sdk/boms/spring-cloud-azure-dependencies/* - sdk/spring/* - "sdk/spring/*/*" - sdk/spring-experimental/* - "sdk/spring-experimental/*/*" - - sdk/loganalytics/microsoft-azure-loganalytics/samples/* - sdk/vision/azure-ai-vision-imageanalysis/src/test/* - "*/resource-manager/*" - "sdk/*/mgmt-*/*" @@ -48,7 +46,6 @@ known_presence_issues: - ['sdk/cognitiveservices/ms-azure-cs-newssearch', '#2847'] - ['sdk/cognitiveservices/ms-azure-cs-qnamaker', '#2847'] - ['sdk/cognitiveservices/ms-azure-cs-spellcheck', '#2847'] - - ['sdk/cognitiveservices/ms-azure-cs-textanalytics', '#2847'] - ['sdk/cognitiveservices/ms-azure-cs-videosearch', '#2847'] - ['sdk/cognitiveservices/ms-azure-cs-visualsearch', '#2847'] - ['sdk/cognitiveservices/ms-azure-cs-websearch', '#2847'] @@ -79,7 +76,6 @@ known_presence_issues: - ['sdk/cognitiveservices/ms-azure-cs-newssearch/CHANGELOG.md', '#2847'] - ['sdk/cognitiveservices/ms-azure-cs-qnamaker/CHANGELOG.md', '#2847'] - ['sdk/cognitiveservices/ms-azure-cs-spellcheck/CHANGELOG.md', '#2847'] - - ['sdk/cognitiveservices/ms-azure-cs-textanalytics/CHANGELOG.md', '#2847'] - ['sdk/cognitiveservices/ms-azure-cs-videosearch/CHANGELOG.md', '#2847'] - ['sdk/cognitiveservices/ms-azure-cs-visualsearch/CHANGELOG.md', '#2847'] - ['sdk/cognitiveservices/ms-azure-cs-websearch/CHANGELOG.md', '#2847'] @@ -88,7 +84,6 @@ known_presence_issues: - ['sdk/cosmos/azure-cosmos-spark-account-data-resolver-sample/CHANGELOG.md', '#2847'] - ['sdk/cosmos/CHANGELOG.md', '#2847'] - ['sdk/eventgrid/azure-messaging-eventgrid/CHANGELOG.md', '#2847'] - - ['sdk/eventgrid/microsoft-azure-eventgrid/CHANGELOG.md', '#2847'] - ['sdk/eventhubs/microsoft-azure-eventhubs/CHANGELOG.md', '#2847'] - ['sdk/eventhubs/microsoft-azure-eventhubs-eph/CHANGELOG.md', '#2847'] - ['sdk/eventhubs/microsoft-azure-eventhubs-extensions/CHANGELOG.md', '#2847'] @@ -98,10 +93,8 @@ known_presence_issues: - ['sdk/keyvault/microsoft-azure-keyvault-extensions/CHANGELOG.md', '#2847'] - ['sdk/keyvault/microsoft-azure-keyvault-webkey/CHANGELOG.md', '#2847'] - ['sdk/keyvault/microsoft-azure-keyvault-test/CHANGELOG.md', '#2847'] - - ['sdk/loganalytics/microsoft-azure-loganalytics/CHANGELOG.md', '#2847'] - ['sdk/mediaservices/microsoft-azure-media/CHANGELOG.md', '#2847'] - ['sdk/servicebus/microsoft-azure-servicebus/CHANGELOG.md', '#2847'] - - ['sdk/storage/microsoft-azure-storage-blob/CHANGELOG.md', '#2847'] - ['sdk/keyvault/microsoft-azure-keyvault-complete/CHANGELOG.md', '#2847'] known_content_issues: @@ -117,7 +110,6 @@ known_content_issues: - ['sdk/clientcore/core-json/README.md', '#3113'] - ['sdk/clientcore/core-json/src/samples/README.md', '#3113'] - ['sdk/core/azure-core-experimental/README.md', '#3113'] - - ['sdk/cognitiveservices/ms-azure-cs-textanalytics/README.md', '#3113'] - ['sdk/cosmos/faq/README.md', '#3113'] - ['sdk/cosmos/azure-cosmos-benchmark/README.md', '#3113'] - ['sdk/cosmos/azure-cosmos-examples/README.md', '#3113'] @@ -139,12 +131,10 @@ known_content_issues: - ['sdk/cosmos/azure-cosmos-spark_3_2-12/Samples/DatabricksLiveContainerMigration/README.md', '#3113'] - ['sdk/cosmos/README.md', '#3113'] - ['sdk/e2e/README.md', '#3113'] - - ['sdk/eventgrid/microsoft-azure-eventgrid/README.md', '#3113'] - ['sdk/eventhubs/microsoft-azure-eventhubs-eph/README.md', '#3113'] - ['sdk/eventhubs/README.md', '#3113'] - ['sdk/keyvault/README.md', '#3113'] - ['sdk/keyvault/azure-security-keyvault-administration/README.md', '#3113'] - - ['sdk/loganalytics/microsoft-azure-loganalytics/README.md', '#3113'] - ['sdk/monitor/azure-monitor-spring-native/README.md', '#3113'] - ['sdk/parents/azure-client-sdk-parent/README.md', '#3113'] - ['sdk/parents/azure-code-customization-parent/README.md', '#3113'] @@ -157,7 +147,6 @@ known_content_issues: - ['sdk/servicebus/microsoft-azure-servicebus/README.md', '#3113'] - ['sdk/storage/azure-storage-blob-nio/README.md', '#3113'] - ['sdk/storage/azure-storage-common/README.md', '#3113'] - - ['sdk/storage/microsoft-azure-storage-blob/README.md', '#3113'] - ['sdk/storage/azure-storage-blob-nio/README.md', '#3113'] - ['sdk/storage/azure-storage-internal-avro/README.md', '#3113'] - ['sdk/storage/README.md', '#3113'] diff --git a/eng/pipelines/aggregate-reports.yml b/eng/pipelines/aggregate-reports.yml index 267e955f6db3b..21ad50b157b7f 100644 --- a/eng/pipelines/aggregate-reports.yml +++ b/eng/pipelines/aggregate-reports.yml @@ -41,7 +41,7 @@ stages: displayName: 'Build all libraries that support Java $(JavaBuildVersion)' inputs: mavenPomFile: pom.xml - options: '$(DefaultOptions) -T 2C -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcodesnippet.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Djacoco.skip=true -Drevapi.skip=true -Dshade.skip=true -pl !com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12,!com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12,!com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12,!com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12,!com.microsoft.azure:azure-batch,!com.microsoft.azure:azure-eventgrid,!com.microsoft.azure:azure-loganalytics,!com.microsoft.azure:azure-media' + options: '$(DefaultOptions) -T 2C -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcodesnippet.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Djacoco.skip=true -Drevapi.skip=true -Dshade.skip=true -pl !com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12,!com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12,!com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12,!com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12,!com.microsoft.azure:azure-batch,!com.microsoft.azure:azure-loganalytics,!com.microsoft.azure:azure-media' mavenOptions: '$(MemoryOptions) $(LoggingOptions)' javaHomeOption: 'JDKVersion' jdkVersionOption: $(JavaBuildVersion) @@ -53,7 +53,7 @@ stages: displayName: 'Build remaining libraries with Java $(FallbackJavaBuildVersion)' inputs: mavenPomFile: pom.xml - options: '$(DefaultOptions) -T 2C -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcodesnippet.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Djacoco.skip=true -Drevapi.skip=true -Dshade.skip=true -pl com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12,com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12,com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12,com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12,com.microsoft.azure:azure-batch,com.microsoft.azure:azure-eventgrid,com.microsoft.azure:azure-loganalytics,com.microsoft.azure:azure-media' + options: '$(DefaultOptions) -T 2C -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcodesnippet.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Djacoco.skip=true -Drevapi.skip=true -Dshade.skip=true -pl com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12,com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12,com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12,com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12,com.microsoft.azure:azure-batch,com.microsoft.azure:azure-loganalytics,com.microsoft.azure:azure-media' mavenOptions: '$(MemoryOptions) $(LoggingOptions)' javaHomeOption: 'JDKVersion' jdkVersionOption: $(FallbackJavaBuildVersion) diff --git a/eng/versioning/version_data.txt b/eng/versioning/version_data.txt index 7cc92b31432c7..570e58cd1a39a 100644 --- a/eng/versioning/version_data.txt +++ b/eng/versioning/version_data.txt @@ -4,7 +4,6 @@ com.azure:azure-data-sdk-parent;1.3.0;1.3.0 com.microsoft.azure:azure-batch;11.2.0;11.3.0-beta.1 -com.microsoft.azure:azure-applicationinsights-query-sample;1.0.0-Preview-1;1.0.0-Preview-1 com.microsoft.azure.cognitiveservices:azure-cognitiveservices-spellcheck;1.1.0-beta.1;1.1.0-beta.1 com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-runtime;1.1.0-beta.1;1.1.0-beta.1 com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-authoring;1.0.5-beta;1.0.5-beta @@ -31,7 +30,4 @@ com.microsoft.azure:azure-keyvault-core;1.2.6;1.3.0-beta.1 com.microsoft.azure:azure-keyvault-extensions;1.2.6;1.3.0-beta.1 com.microsoft.azure:azure-keyvault-test;1.2.3;1.2.6 com.microsoft.azure:azure-servicebus;3.6.7;3.7.0-beta.1 -com.microsoft.azure:azure-eventgrid;1.4.0;1.5.0-beta.1 com.microsoft.azure:azure-media;1.0.0-beta.1;1.0.0-beta.1 -com.microsoft.azure:azure-loganalytics-sample;1.0.0-Preview-1;1.0.0-Preview-1 -com.microsoft.azure:microsoft-azure-storage-perf;1.0.0-beta.1;1.0.0-beta.1 diff --git a/sdk/cognitiveservices/ci.data.yml b/sdk/cognitiveservices/ci.data.yml index ed7c245164f80..cea1652053a60 100644 --- a/sdk/cognitiveservices/ci.data.yml +++ b/sdk/cognitiveservices/ci.data.yml @@ -73,9 +73,6 @@ extends: - name: azure-cognitiveservices-spellcheck groupId: com.microsoft.azure.cognitiveservices safeName: azurecognitiveservicesspellcheck - - name: azure-cognitiveservices-textanalytics - groupId: com.microsoft.azure.cognitiveservices - safeName: azurecognitiveservicestextanalytics - name: azure-cognitiveservices-videosearch groupId: com.microsoft.azure.cognitiveservices safeName: azurecognitiveservicesvideosearch diff --git a/sdk/eventgrid/ci.data.yml b/sdk/eventgrid/ci.data.yml deleted file mode 100644 index 8fcd163070228..0000000000000 --- a/sdk/eventgrid/ci.data.yml +++ /dev/null @@ -1,39 +0,0 @@ -# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. -trigger: - branches: - include: - - main - - hotfix/* - - release/* - paths: - include: - - sdk/eventgrid/ci.data.yml - - sdk/eventgrid/microsoft-azure-eventgrid/ - exclude: - - sdk/eventgrid/pom.xml - - sdk/eventgrid/microsoft-azure-eventgrid/pom.xml - -pr: - branches: - include: - - main - - feature/* - - hotfix/* - - release/* - paths: - include: - - sdk/eventgrid/ci.data.yml - - sdk/eventgrid/microsoft-azure-eventgrid/ - exclude: - - sdk/eventgrid/pom.xml - - sdk/eventgrid/microsoft-azure-eventgrid/pom.xml - -extends: - template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml - parameters: - SDKType: data - ServiceDirectory: eventgrid - Artifacts: - - name: azure-eventgrid - groupId: com.microsoft.azure - safeName: azureeventgrid diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/README.md b/sdk/eventgrid/microsoft-azure-eventgrid/README.md deleted file mode 100644 index 78db092fe8700..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/README.md +++ /dev/null @@ -1,59 +0,0 @@ -# Azure Event Grid -> Please note, a newer package [com.azure:azure-messaging-eventgrid](https://central.sonatype.com/artifact/com.azure/azure-messaging-eventgrid) for [Azure EventGrid](https://docs.microsoft.com/azure/event-grid/) is available as of March 2021. While this package will continue to receive critical bug fixes, we strongly encourage you to upgrade. Read the [migration guide](https://aka.ms/azsdk/java/migrate/eg) for more details. -> -This project provides client tools or utilities in Java that make it east to interact with [Azure Event Grid](https://azure.com/eventgrid). For documentation please see the Microsoft Azure [Java Developer Center](https://azure.microsoft.com/develop/java/) or the [JavaDocs](https://azure.github.io/azure-sdk-for-java/). - -Azure Event Grid is a fully-managed intelligent event routing service that allows for uniform event consumption using a publish-subscribe model. - -## Table of contents - -## Code snippets and samples - -Please check back as we add samples and link them here. - -## Download - -### Latest stable release - -To get the binaries of the official Microsoft Azure Event Grid Java SDK as distributed by Microsoft, reade for use within your project, you can use Maven. - -[//]: # ({x-version-update-start;com.microsoft.azure:azure-eventgrid;current}) -```xml - - com.microsoft.azure - azure-eventgrid - 1.4.0 - -``` -[//]: # ({x-version-update-end}) - -## Prerequisites - -- A Java Developer Kit (JDK), v 1.7 or later -- Maven - -## Help and Issues - -If you encounter any bugs with these SDKs, please file issues via [Issues](https://github.com/Azure/azure-sdk-for-java/issues) or checkout [StackOverflow for Azure Java SDK](https://stackoverflow.com/questions/tagged/azure-java-sdk). - -## Contribute Code - -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). - -1. Fork it -2. Create your feature branch (`git checkout -b my-new-feature`) -3. Commit your changes (`git commit -am 'Add some feature'`) -4. Push to the branch (`git push origin my-new-feature`) -5. Create new Pull Request - -## More information - -- [Javadoc](https://azure.github.io/azure-sdk-for-java/) -- [Azure Java SDKs](https://docs.microsoft.com/java/azure/) -- If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](https://go.microsoft.com/fwlink/?LinkId=330212) - ---- - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Feventgrid%2Fmicrosoft-azure-eventgrid%2FREADME.png) diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/pom.xml b/sdk/eventgrid/microsoft-azure-eventgrid/pom.xml deleted file mode 100644 index c003d4ca77cf6..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/pom.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - 4.0.0 - com.microsoft.azure - azure-eventgrid - 1.5.0-beta.1 - jar - Microsoft Azure SDK for eventgrid - This package contains Microsoft Azure EventGrid SDK.${line.separator} - This library has been replaced by new Azure SDKs, you can read about them at https://aka.ms/azsdkvalueprop. The latest libraries to interact with the Azure EventGrid service are:${line.separator} - https://central.sonatype.com/artifact/com.azure/azure-messaging-eventgrid${line.separator} - It is recommended that you move to the new package. - - - com.azure - azure-data-sdk-parent - 1.3.0 - ../../parents/azure-data-sdk-parent - - https://github.com/Azure/azure-sdk-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-sdk-for-java - scm:git:git@github.com:Azure/azure-sdk-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - 1.7.14 - - - junit - junit - 4.13.2 - test - - - com.microsoft.azure - azure-client-authentication - 1.7.14 - test - - - commons-io - commons-io - 2.7 - - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.4.2 - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.6.0 - - - org.apache.maven.plugins - maven-compiler-plugin - 3.13.0 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.10.1 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/DomainCredentials.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/DomainCredentials.java deleted file mode 100644 index 58246b17e0edd..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/DomainCredentials.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid; - -import com.microsoft.rest.credentials.ServiceClientCredentials; -import okhttp3.Interceptor; -import okhttp3.OkHttpClient.Builder; -import okhttp3.Request; -import okhttp3.Response; - -import java.io.IOException; - -public class DomainCredentials implements ServiceClientCredentials { - private String domainKey; - - public DomainCredentials(String domainKey) { - this.domainKey = domainKey; - } - - @Override - public void applyCredentialsFilter(Builder clientBuilder) { - clientBuilder.addInterceptor(new Interceptor() { - @Override - public Response intercept(Chain chain) throws IOException { - Request newRequest = chain.request().newBuilder().addHeader("aeg-sas-key", domainKey).build(); - return chain.proceed(newRequest); - } - }); - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/EventGridClient.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/EventGridClient.java deleted file mode 100644 index 114b837c94a97..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/EventGridClient.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid; - -import com.microsoft.azure.AzureClient; -import com.microsoft.azure.CloudException; -import com.microsoft.azure.eventgrid.models.EventGridEvent; -import com.microsoft.rest.RestClient; -import com.microsoft.rest.ServiceCallback; -import com.microsoft.rest.ServiceFuture; -import com.microsoft.rest.ServiceResponse; -import rx.Observable; - -import java.util.List; - -/** - * The interface for EventGridClient class. - */ -public interface EventGridClient { - /** - * Gets the REST client. - * - * @return the {@link RestClient} object. - */ - RestClient restClient(); - - /** - * Gets the {@link AzureClient} used for long running operations. - * @return the azure client; - */ - AzureClient getAzureClient(); - - /** - * Gets the User-Agent header for the client. - * - * @return the user agent string. - */ - String userAgent(); - - /** - * Gets Version of the API to be used with the client request.. - * - * @return the apiVersion value. - */ - String apiVersion(); - - /** - * Gets Gets or sets the preferred language for the response.. - * - * @return the acceptLanguage value. - */ - String acceptLanguage(); - - /** - * Sets Gets or sets the preferred language for the response.. - * - * @param acceptLanguage the acceptLanguage value. - * @return the service client itself - */ - EventGridClient withAcceptLanguage(String acceptLanguage); - - /** - * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. - * - * @return the longRunningOperationRetryTimeout value. - */ - int longRunningOperationRetryTimeout(); - - /** - * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. - * - * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. - * @return the service client itself - */ - EventGridClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); - - /** - * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. - * - * @return the generateClientRequestId value. - */ - boolean generateClientRequestId(); - - /** - * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. - * - * @param generateClientRequestId the generateClientRequestId value. - * @return the service client itself - */ - EventGridClient withGenerateClientRequestId(boolean generateClientRequestId); - - /** - * Publishes a batch of events to an Azure Event Grid topic. - * - * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net - * @param events An array of events to be published to Event Grid. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - */ - void publishEvents(String topicHostname, List events); - - /** - * Publishes a batch of events to an Azure Event Grid topic. - * - * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net - * @param events An array of events to be published to Event Grid. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - ServiceFuture publishEventsAsync(String topicHostname, List events, ServiceCallback serviceCallback); - - /** - * Publishes a batch of events to an Azure Event Grid topic. - * - * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net - * @param events An array of events to be published to Event Grid. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - Observable publishEventsAsync(String topicHostname, List events); - - /** - * Publishes a batch of events to an Azure Event Grid topic. - * - * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net - * @param events An array of events to be published to Event Grid. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - Observable> publishEventsWithServiceResponseAsync(String topicHostname, List events); - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/TopicCredentials.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/TopicCredentials.java deleted file mode 100644 index ac844c5dea7fe..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/TopicCredentials.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid; - -import com.microsoft.rest.credentials.ServiceClientCredentials; -import okhttp3.Interceptor; -import okhttp3.OkHttpClient.Builder; -import okhttp3.Request; -import okhttp3.Response; - -import java.io.IOException; - -public class TopicCredentials implements ServiceClientCredentials { - private String topicKey; - - public TopicCredentials(String topicKey) { - this.topicKey = topicKey; - } - - @Override - public void applyCredentialsFilter(Builder clientBuilder) { - clientBuilder.addInterceptor(new Interceptor() { - @Override - public Response intercept(Chain chain) throws IOException { - Request newRequest = chain.request().newBuilder().addHeader("aeg-sas-key", topicKey).build(); - return chain.proceed(newRequest); - } - }); - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java deleted file mode 100644 index d1aab307d28ee..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/EventGridSubscriber.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid.customization; - -import com.fasterxml.jackson.databind.ObjectMapper; -import com.microsoft.azure.eventgrid.models.EventGridEvent; -import com.microsoft.azure.management.apigeneration.Beta; -import com.microsoft.azure.serializer.AzureJacksonAdapter; -import com.microsoft.rest.protocol.SerializerAdapter; - -import java.io.IOException; -import java.lang.reflect.Field; -import java.lang.reflect.Type; -import java.util.Collections; -import java.util.HashMap; -import java.util.Locale; -import java.util.Map; -import java.util.Set; - -/** - * The type that can be used to de-serialize eventgrid events. - */ -@Beta -public class EventGridSubscriber { - /** - * The default adapter to be used for de-serializing the events. - */ - private final AzureJacksonAdapter defaultSerializerAdapter; - /** - * The map containing user defined mapping of eventType to Java model type. - */ - private Map eventTypeToEventDataMapping; - - /** - * Creates EventGridSubscriber with default de-serializer. - */ - @Beta - public EventGridSubscriber() { - this.defaultSerializerAdapter = new AzureJacksonAdapter(); - this.eventTypeToEventDataMapping = new HashMap<>(); - } - - /** - * Add a custom event mapping. If a mapping with same eventType exists then the old eventDataType is replaced by - * the specified eventDataType. - * - * @param eventType the event type name. - * @param eventDataType type of the Java model that the event type name mapped to. - */ - @Beta - public void putCustomEventMapping(final String eventType, final Type eventDataType) { - if (eventType == null || eventType.isEmpty()) { - throw new IllegalArgumentException("eventType parameter is required and cannot be null or empty"); - } - if (eventDataType == null) { - throw new IllegalArgumentException("eventDataType parameter is required and cannot be null"); - } - this.eventTypeToEventDataMapping.put(canonicalizeEventType(eventType), eventDataType); - } - - /** - * Get type of the Java model that is mapped to the given eventType. - * - * @param eventType the event type name. - * @return type of the Java model if mapping exists, null otherwise. - */ - @Beta - public Type getCustomEventMapping(final String eventType) { - if (!containsCustomEventMappingFor(eventType)) { - return null; - } else { - return this.eventTypeToEventDataMapping.get(canonicalizeEventType(eventType)); - } - } - - /** - * @return get all registered custom event mappings. - */ - @Beta - public Set> getAllCustomEventMappings() { - return Collections.unmodifiableSet(this.eventTypeToEventDataMapping.entrySet()); - } - - /** - * Removes the mapping with the given eventType. - * - * @param eventType the event type name. - * @return true if the mapping exists and removed, false if mapping does not exists. - */ - @Beta - public boolean removeCustomEventMapping(final String eventType) { - if (!containsCustomEventMappingFor(eventType)) { - return false; - } else { - this.eventTypeToEventDataMapping.remove(canonicalizeEventType(eventType)); - return true; - } - } - - /** - * Checks if an event mapping with the given eventType exists. - * - * @param eventType the event type name. - * @return true if the mapping exists, false otherwise. - */ - @Beta - public boolean containsCustomEventMappingFor(final String eventType) { - if (eventType == null || eventType.isEmpty()) { - return false; - } else { - return this.eventTypeToEventDataMapping.containsKey(canonicalizeEventType(eventType)); - } - } - - /** - * De-serialize the events in the given requested content using default de-serializer. - * - * @param requestContent the request content in string format. - * @return De-serialized events. - * - * @throws IOException - */ - @Beta - public EventGridEvent[] deserializeEventGridEvents(final String requestContent) throws IOException { - return this.deserializeEventGridEvents(requestContent, this.defaultSerializerAdapter); - } - - /** - * De-serialize the events in the given requested content using the provided de-serializer. - * - * @param requestContent the request content as string. - * @param serializerAdapter the de-serializer. - * @return de-serialized events. - * @throws IOException - */ - @Beta - public EventGridEvent[] deserializeEventGridEvents(final String requestContent, final SerializerAdapter serializerAdapter) throws IOException { - EventGridEvent[] eventGridEvents = serializerAdapter.deserialize(requestContent, EventGridEvent[].class); - for (EventGridEvent receivedEvent : eventGridEvents) { - if (receivedEvent.data() == null) { - continue; - } else { - final String eventType = receivedEvent.eventType(); - final Type eventDataType; - if (SystemEventTypeMappings.containsMappingFor(eventType)) { - eventDataType = SystemEventTypeMappings.getMapping(eventType); - } else if (containsCustomEventMappingFor(eventType)) { - eventDataType = getCustomEventMapping(eventType); - } else { - eventDataType = null; - } - if (eventDataType != null) { - final String eventDataAsString = serializerAdapter.serializeRaw(receivedEvent.data()); - final Object eventData = serializerAdapter.deserialize(eventDataAsString, eventDataType); - setEventData(receivedEvent, eventData); - } - } - } - return eventGridEvents; - } - - private static void setEventData(EventGridEvent event, final Object data) { - // This reflection based way to set the data field needs to be removed once - // we expose a wither in EventGridEvent to set the data. (Check swagger + codegen) - try { - Field dataField = event.getClass().getDeclaredField("data"); - dataField.setAccessible(true); - dataField.set(event, data); - } catch (NoSuchFieldException nsfe) { - throw new RuntimeException(nsfe); - } catch (IllegalAccessException iae) { - throw new RuntimeException(iae); - } - } - - private static String canonicalizeEventType(final String eventType) { - if (eventType == null) { - return null; - } else { - return eventType.toLowerCase(Locale.ROOT); - } - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypeMappings.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypeMappings.java deleted file mode 100644 index 2642a87a501e4..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypeMappings.java +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid.customization; - -import com.microsoft.azure.eventgrid.models.AppConfigurationKeyValueDeletedEventData; -import com.microsoft.azure.eventgrid.models.AppConfigurationKeyValueModifiedEventData; -import com.microsoft.azure.eventgrid.models.ContainerRegistryChartDeletedEventData; -import com.microsoft.azure.eventgrid.models.ContainerRegistryChartPushedEventData; -import com.microsoft.azure.eventgrid.models.ContainerRegistryImageDeletedEventData; -import com.microsoft.azure.eventgrid.models.ContainerRegistryImagePushedEventData; -import com.microsoft.azure.eventgrid.models.EventHubCaptureFileCreatedEventData; -import com.microsoft.azure.eventgrid.models.IotHubDeviceConnectedEventData; -import com.microsoft.azure.eventgrid.models.IotHubDeviceCreatedEventData; -import com.microsoft.azure.eventgrid.models.IotHubDeviceDeletedEventData; -import com.microsoft.azure.eventgrid.models.IotHubDeviceDisconnectedEventData; -import com.microsoft.azure.eventgrid.models.IotHubDeviceTelemetryEventData; -import com.microsoft.azure.eventgrid.models.MapsGeofenceEnteredEventData; -import com.microsoft.azure.eventgrid.models.MapsGeofenceResultEventData; -import com.microsoft.azure.eventgrid.models.MapsGeofenceExitedEventData; -import com.microsoft.azure.eventgrid.models.MediaJobCanceledEventData; -import com.microsoft.azure.eventgrid.models.MediaJobCancelingEventData; -import com.microsoft.azure.eventgrid.models.MediaJobErroredEventData; -import com.microsoft.azure.eventgrid.models.MediaJobFinishedEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputCanceledEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputCancelingEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputErroredEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputFinishedEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputProcessingEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputProgressEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputScheduledEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputStateChangeEventData; -import com.microsoft.azure.eventgrid.models.MediaJobProcessingEventData; -import com.microsoft.azure.eventgrid.models.MediaJobScheduledEventData; -import com.microsoft.azure.eventgrid.models.MediaJobStateChangeEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventConnectionRejectedEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventEncoderConnectedEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventEncoderDisconnectedEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventIncomingDataChunkDroppedEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventIncomingStreamReceivedEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventIncomingStreamsOutOfSyncEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventIngestHeartbeatEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventTrackDiscontinuityDetectedEventData; -import com.microsoft.azure.eventgrid.models.ResourceActionCancelData; -import com.microsoft.azure.eventgrid.models.ResourceActionFailureData; -import com.microsoft.azure.eventgrid.models.ResourceActionSuccessData; -import com.microsoft.azure.eventgrid.models.ResourceDeleteCancelData; -import com.microsoft.azure.eventgrid.models.ResourceDeleteFailureData; -import com.microsoft.azure.eventgrid.models.ResourceDeleteSuccessData; -import com.microsoft.azure.eventgrid.models.ResourceWriteCancelData; -import com.microsoft.azure.eventgrid.models.ResourceWriteFailureData; -import com.microsoft.azure.eventgrid.models.ResourceWriteSuccessData; -import com.microsoft.azure.eventgrid.models.ServiceBusActiveMessagesAvailableWithNoListenersEventData; -import com.microsoft.azure.eventgrid.models.ServiceBusDeadletterMessagesAvailableWithNoListenersEventData; -import com.microsoft.azure.eventgrid.models.StorageBlobCreatedEventData; -import com.microsoft.azure.eventgrid.models.StorageBlobDeletedEventData; -import com.microsoft.azure.eventgrid.models.SubscriptionDeletedEventData; -import com.microsoft.azure.eventgrid.models.SubscriptionValidationEventData; -import com.microsoft.azure.management.apigeneration.Beta; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.Locale; -import java.util.Map; - -/** - * Mapping of system event type name to corresponding type of the Java model. - */ -@Beta -final class SystemEventTypeMappings { - /** - * The map containing system eventType to Java model type mapping. - */ - private static Map systemEventMappings; - - static { - systemEventMappings = new HashMap<>(); // key: eventType, Value:eventDataType - - // - // AppConfiguration events. - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.APP_CONFIGURATION_KEY_VALUE_DELETED_EVENT), AppConfigurationKeyValueDeletedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.APP_CONFIGURATION_KEY_VALUE_MODIFIED_EVENT), AppConfigurationKeyValueModifiedEventData.class); - // - // ContainerRegistry events. - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.CONTAINER_REGISTRY_IMAGE_PUSHED_EVENT), ContainerRegistryImagePushedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.CONTAINER_REGISTRY_IMAGE_DELETED_EVENT), ContainerRegistryImageDeletedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.CONTAINER_REGISTRY_CHART_DELETED_EVENT), ContainerRegistryChartDeletedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.CONTAINER_REGISTRY_CHART_PUSHED_EVENT), ContainerRegistryChartPushedEventData.class); - // - // Device events. - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.IOT_HUB_DEVICE_CREATED_EVENT), IotHubDeviceCreatedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.IOT_HUB_DEVICE_DELETED_EVENT), IotHubDeviceDeletedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.IOT_HUB_DEVICE_CONNECTED_EVENT), IotHubDeviceConnectedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.IOT_HUB_DEVICE_DISCONNECTED_EVENT), IotHubDeviceDisconnectedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.IOT_HUB_DEVICE_TELEMETRY_EVENT), IotHubDeviceTelemetryEventData.class); - // - // EventGrid events. - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.EVENT_GRID_SUBSCRIPTION_VALIDATION_EVENT), SubscriptionValidationEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.EVENT_GRID_SUBSCRIPTION_DELETED_EVENT), SubscriptionDeletedEventData.class); - // - // Event Hub Events. - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.EVENT_HUB_CAPTURE_FILE_CREATED_EVENT), EventHubCaptureFileCreatedEventData.class); - // Maps events - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MAPS_GEOFENCE_ENTERED), MapsGeofenceEnteredEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MAPS_GEOFENCE_EXITED), MapsGeofenceExitedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MAPS_GEOFENCE_RESULT), MapsGeofenceResultEventData.class); - // - // Media Services events. - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_CANCELED_EVENT), MediaJobCanceledEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_CANCELING_EVENT), MediaJobCancelingEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_ERRORED_EVENT), MediaJobErroredEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_FINISHED_EVENT), MediaJobFinishedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_OUTPUT_CANCELED_EVENT), MediaJobOutputCanceledEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_OUTPUT_CANCELING_EVENT), MediaJobOutputCancelingEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_OUTPUT_ERRORED_EVENT), MediaJobOutputErroredEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_OUTPUT_FINISHED_EVENT), MediaJobOutputFinishedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_OUTPUT_PROCESSING_EVENT), MediaJobOutputProcessingEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_OUTPUT_PROGRESS_EVENT), MediaJobOutputProgressEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_OUTPUT_SCHEDULED_EVENT), MediaJobOutputScheduledEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_OUTPUT_STATE_CHANGE_EVENT), MediaJobOutputStateChangeEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_PROCESSING_EVENT), MediaJobProcessingEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_SCHEDULED_EVENT), MediaJobScheduledEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_JOB_STATE_CHANGE_EVENT), MediaJobStateChangeEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_LIVE_EVENT_CONNECTION_REJECTED_EVENT), MediaLiveEventConnectionRejectedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_LIVE_EVENT_ENCODER_CONNECTED_EVENT), MediaLiveEventEncoderConnectedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_LIVE_EVENT_ENCODER_DISCONNECTED_EVENT), MediaLiveEventEncoderDisconnectedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_LIVE_EVENT_INCOMING_DATA_CHUNK_DROPPED_EVENT), MediaLiveEventIncomingDataChunkDroppedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_LIVE_EVENT_INCOMING_STREAMS_OUTOFSYNC_EVENT), MediaLiveEventIncomingStreamsOutOfSyncEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_LIVE_EVENT_INCOMING_STREAM_RECEIVED_EVENT), MediaLiveEventIncomingStreamReceivedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_LIVE_EVENT_INCOMING_VIDEO_STREAMS_OUTOFSYNC_EVENT), MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_LIVE_EVENT_INGEST_HEARTBEAT_EVENT), MediaLiveEventIngestHeartbeatEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.MEDIA_LIVE_EVENT_TRACK_DISCONTINUITY_DETECTED_EVENT), MediaLiveEventTrackDiscontinuityDetectedEventData.class); - // - // Resource Manager (Azure Subscription/Resource Group) events. - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.RESOURCE_WRITE_SUCCESS_EVENT), ResourceWriteSuccessData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.RESOURCE_WRITE_FAILURE_EVENT), ResourceWriteFailureData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.RESOURCE_WRITE_CANCEL_EVENT), ResourceWriteCancelData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.RESOURCE_DELETE_SUCCESS_EVENT), ResourceDeleteSuccessData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.RESOURCE_DELETE_FAILURE_EVENT), ResourceDeleteFailureData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.RESOURCE_DELETE_CANCEL_EVENT), ResourceDeleteCancelData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.RESOURCE_ACTION_SUCCESS_EVENT), ResourceActionSuccessData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.RESOURCE_ACTION_FAILURE_EVENT), ResourceActionFailureData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.RESOURCE_ACTION_CANCEL_EVENT), ResourceActionCancelData.class); - // - // ServiceBus events. - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.SERVICE_BUS_ACTIVE_MESSAGES_AVAILABLE_WITH_NO_LISTENERS_EVENT), ServiceBusActiveMessagesAvailableWithNoListenersEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.SERVICE_BUS_DEADLETTER_MESSAGES_AVAILABLE_WITH_NO_LISTENER_EVENT), ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.class); - // - // Storage events. - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.STORAGE_BLOB_CREATED_EVENT), StorageBlobCreatedEventData.class); - systemEventMappings.put(canonicalizeEventType(SystemEventTypes.STORAGE_BLOB_DELETED_EVENT), StorageBlobDeletedEventData.class); - } - - /** - * Checks if a mapping exists for the given type. - * - * @param eventType the event type. - * @return true if mapping exists, false otherwise. - */ - @Beta - public static boolean containsMappingFor(final String eventType) { - if (eventType == null || eventType.isEmpty()) { - return false; - } else { - return systemEventMappings.containsKey(canonicalizeEventType(eventType)); - } - } - - /** - * Get Java model type for the given event type. - * - * @param eventType the event type. - * @return the Java model type if mapping exists, null otherwise. - */ - @Beta - public static Type getMapping(final String eventType) { - if (!containsMappingFor(eventType)) { - return null; - } else { - return systemEventMappings.get(canonicalizeEventType(eventType)); - } - } - - private static String canonicalizeEventType(final String eventType) { - if (eventType == null) { - return null; - } else { - return eventType.toLowerCase(Locale.ROOT); - } - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypes.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypes.java deleted file mode 100644 index f654db431d99e..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/customization/SystemEventTypes.java +++ /dev/null @@ -1,275 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid.customization; - -import com.microsoft.azure.management.apigeneration.Beta; - -/** - * Represents the names of the various event types for the system events published to Azure Event Grid. - */ -@Beta -public class SystemEventTypes { - // Keep this sorted by the name of the service publishing the events. - - // AppConfiguration events. - /** - * indicate an event of KeyValueDeleted in AppConfiguration. - */ - public static final String APP_CONFIGURATION_KEY_VALUE_DELETED_EVENT = "Microsoft.AppConfiguration.KeyValueDeleted"; - /** - * indicate an event of KeyValueModified in AppConfiguration. - */ - public static final String APP_CONFIGURATION_KEY_VALUE_MODIFIED_EVENT = "Microsoft.AppConfiguration.KeyValueModified"; - - // ContainerRegistry events. - /** - * indicate an event of pushing an image to container registry. - */ - public static final String CONTAINER_REGISTRY_IMAGE_PUSHED_EVENT = "Microsoft.ContainerRegistry.ImagePushed"; - /** - * indicate an event of deleting an image from container registry. - */ - public static final String CONTAINER_REGISTRY_IMAGE_DELETED_EVENT = "Microsoft.ContainerRegistry.ImageDeleted"; - /** - * indicate an event of chart deletion in container registry. - */ - public static final String CONTAINER_REGISTRY_CHART_DELETED_EVENT = "Microsoft.ContainerRegistry.ChartDeleted"; - /** - * indicate an event of chart pushed in container registry. - */ - public static final String CONTAINER_REGISTRY_CHART_PUSHED_EVENT = "Microsoft.ContainerRegistry.ChartPushed"; - - // Device events. - /** - * indicate an event of creating an IoT hub device. - */ - public static final String IOT_HUB_DEVICE_CREATED_EVENT = "Microsoft.Devices.DeviceCreated"; - /** - * indicate an event of deleting an IoT hub device. - */ - public static final String IOT_HUB_DEVICE_DELETED_EVENT = "Microsoft.Devices.DeviceDeleted"; - /** - * indicate an event of connecting an IoT hub device. - */ - public static final String IOT_HUB_DEVICE_CONNECTED_EVENT = "Microsoft.Devices.DeviceConnected"; - /** - * indicate an event of disconnecting an IoT hub device. - */ - public static final String IOT_HUB_DEVICE_DISCONNECTED_EVENT = "Microsoft.Devices.DeviceDisconnected"; - /** - * indicate an event of telemetry from an IoT hub device. - */ - public static final String IOT_HUB_DEVICE_TELEMETRY_EVENT = "Microsoft.Devices.DeviceTelemetry"; - - // EventGrid events. - /** - * indicate an event of validating eventgrid subscription. - */ - public static final String EVENT_GRID_SUBSCRIPTION_VALIDATION_EVENT = "Microsoft.EventGrid.SubscriptionValidationEvent"; - /** - * indicate an event of deleting eventgrid subscription. - */ - public static final String EVENT_GRID_SUBSCRIPTION_DELETED_EVENT = "Microsoft.EventGrid.SubscriptionDeletedEvent"; - - // Event Hub Events. - /** - * indicate an event of creation of capture file in eventhub. - */ - public static final String EVENT_HUB_CAPTURE_FILE_CREATED_EVENT = "Microsoft.EventHub.CaptureFileCreated"; - - // Maps Events. - /** - * Maps GeoFence Entered Event. - */ - public static final String MAPS_GEOFENCE_ENTERED = "Microsoft.Maps.GeofenceEntered"; - - /** - * Maps GeoFence Exited Event. - */ - public static final String MAPS_GEOFENCE_EXITED = "Microsoft.Maps.GeofenceExited"; - - /** - * Maps GeoFence Result Event. - */ - public static final String MAPS_GEOFENCE_RESULT = "Microsoft.Maps.GeofenceResult"; - - // Media Services events. - /** - * Media Services Job Canceled Event. - */ - public static final String MEDIA_JOB_CANCELED_EVENT = "Microsoft.Media.JobCanceled"; - - /** - * Media Services Job Canceling Event. - */ - public static final String MEDIA_JOB_CANCELING_EVENT = "Microsoft.Media.JobCanceling"; - - /** - * Media Services Job Errored event. - */ - public static final String MEDIA_JOB_ERRORED_EVENT = "Microsoft.Media.JobErrored"; - - /** - * Media Services Job Finished event. - */ - public static final String MEDIA_JOB_FINISHED_EVENT = "Microsoft.Media.JobFinished"; - - /** - * Media Services Job Ouput Canceled event. - */ - public static final String MEDIA_JOB_OUTPUT_CANCELED_EVENT = "Microsoft.Media.JobOutputCanceled"; - - /** - * Media Services Job Output Canceling event. - */ - public static final String MEDIA_JOB_OUTPUT_CANCELING_EVENT = "Microsoft.Media.JobOutputCanceling"; - - /** - * Media Services Job Output Errored event. - */ - public static final String MEDIA_JOB_OUTPUT_ERRORED_EVENT = "Microsoft.Media.JobOutputErrored"; - - /** - * Media Services Job Output Finished event. - */ - public static final String MEDIA_JOB_OUTPUT_FINISHED_EVENT = "Microsoft.Media.JobOutputFinished"; - - /** - * Media Services Job Output Processing event. - */ - public static final String MEDIA_JOB_OUTPUT_PROCESSING_EVENT = "Microsoft.Media.JobOutputProcessing"; - - /** - * Media Services Job Output Progress event. - */ - public static final String MEDIA_JOB_OUTPUT_PROGRESS_EVENT = "Microsoft.Media.JobOutputProgress"; - - /** - * Media Services Job Output Scheduled event. - */ - public static final String MEDIA_JOB_OUTPUT_SCHEDULED_EVENT = "Microsoft.Media.JobOutputScheduled"; - - /** - * Media Services Job Output State Change event. - */ - public static final String MEDIA_JOB_OUTPUT_STATE_CHANGE_EVENT = "Microsoft.Media.JobOutputStateChange"; - - /** - * Media Services Job Processing event. - */ - public static final String MEDIA_JOB_PROCESSING_EVENT = "Microsoft.Media.JobProcessing"; - - /** - * Media Services Job Scheduled event. - */ - public static final String MEDIA_JOB_SCHEDULED_EVENT = "Microsoft.Media.JobScheduled"; - - /** - * Media Services Job State Change event. - */ - public static final String MEDIA_JOB_STATE_CHANGE_EVENT = "Microsoft.Media.JobStateChange"; - - /** - * Media Services Live Event Connection Rejected event. - */ - public static final String MEDIA_LIVE_EVENT_CONNECTION_REJECTED_EVENT = "Microsoft.Media.LiveEventConnectionRejected"; - - /** - * Media Services Live Event Encoder Connected event. - */ - public static final String MEDIA_LIVE_EVENT_ENCODER_CONNECTED_EVENT = "Microsoft.Media.LiveEventEncoderConnected"; - - /** - * Media Services Live Event Encoder Disconnected event. - */ - public static final String MEDIA_LIVE_EVENT_ENCODER_DISCONNECTED_EVENT = "Microsoft.Media.LiveEventEncoderDisconnected"; - - /** - * Media Services Live Event Incoming Data Chunk Dropped event. - */ - public static final String MEDIA_LIVE_EVENT_INCOMING_DATA_CHUNK_DROPPED_EVENT = "Microsoft.Media.LiveEventIncomingDataChunkDropped"; - - /** - * Media Services Live Event Incoming Stream Received event. - */ - public static final String MEDIA_LIVE_EVENT_INCOMING_STREAM_RECEIVED_EVENT = "Microsoft.Media.LiveEventIncomingStreamReceived"; - - /** - * Media Services Live Event Incoming Streams OutofSync event. - */ - public static final String MEDIA_LIVE_EVENT_INCOMING_STREAMS_OUTOFSYNC_EVENT = "Microsoft.Media.LiveEventIncomingStreamsOutOfSync"; - - /** - * Media Services Live Event Incoming Video Streams OutOfSync event. - */ - public static final String MEDIA_LIVE_EVENT_INCOMING_VIDEO_STREAMS_OUTOFSYNC_EVENT = "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync"; - - /** - * Media Services Live Event Ingest Heartbeat event. - */ - public static final String MEDIA_LIVE_EVENT_INGEST_HEARTBEAT_EVENT = "Microsoft.Media.LiveEventIngestHeartbeat"; - - /** - * Media Services Live Event Track Discontinuity Detected event. - */ - public static final String MEDIA_LIVE_EVENT_TRACK_DISCONTINUITY_DETECTED_EVENT = "Microsoft.Media.LiveEventTrackDiscontinuityDetected"; - - - // Resource Manager (Azure Subscription/Resource Group) events - /** - * indicate an event of successful write of a resource. - */ - public static final String RESOURCE_WRITE_SUCCESS_EVENT = "Microsoft.Resources.ResourceWriteSuccess"; - /** - * indicate an event of write failure of a resource. - */ - public static final String RESOURCE_WRITE_FAILURE_EVENT = "Microsoft.Resources.ResourceWriteFailure"; - /** - * indicate an event of write cancellation of a resource. - */ - public static final String RESOURCE_WRITE_CANCEL_EVENT = "Microsoft.Resources.ResourceWriteCancel"; - /** - * indicate an event of successful deletion of a resource. - */ - public static final String RESOURCE_DELETE_SUCCESS_EVENT = "Microsoft.Resources.ResourceDeleteSuccess"; - /** - * indicate an event of failure in deleting a resource. - */ - public static final String RESOURCE_DELETE_FAILURE_EVENT = "Microsoft.Resources.ResourceDeleteFailure"; - /** - * indicate an event of cancellation of resource deletion. - */ - public static final String RESOURCE_DELETE_CANCEL_EVENT = "Microsoft.Resources.ResourceDeleteCancel"; - /** - * indicate an event of successful action on a resource. - */ - public static final String RESOURCE_ACTION_SUCCESS_EVENT = "Microsoft.Resources.ResourceActionSuccess"; - /** - * indicate an event of failure in performing an action on a resource. - */ - public static final String RESOURCE_ACTION_FAILURE_EVENT = "Microsoft.Resources.ResourceActionFailure"; - /** - * indicate an event of cancellation of resource action. - */ - public static final String RESOURCE_ACTION_CANCEL_EVENT = "Microsoft.Resources.ResourceActionCancel"; - - // ServiceBus events. - /** - * indicate an event of active messages with no listener for them. - */ - public static final String SERVICE_BUS_ACTIVE_MESSAGES_AVAILABLE_WITH_NO_LISTENERS_EVENT = "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners"; - /** - * indicate an event of deadletter messages with no listener for them. - */ - public static final String SERVICE_BUS_DEADLETTER_MESSAGES_AVAILABLE_WITH_NO_LISTENER_EVENT = "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener"; - - // Storage events. - /** - * indicates an event of blob creation. - */ - public static final String STORAGE_BLOB_CREATED_EVENT = "Microsoft.Storage.BlobCreated"; - /** - * indicates an event of blob deletion. - */ - public static final String STORAGE_BLOB_DELETED_EVENT = "Microsoft.Storage.BlobDeleted"; -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/implementation/EventGridClientImpl.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/implementation/EventGridClientImpl.java deleted file mode 100644 index a07986b226a38..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/implementation/EventGridClientImpl.java +++ /dev/null @@ -1,282 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.implementation; - -import com.google.common.base.Joiner; -import com.google.common.reflect.TypeToken; -import com.microsoft.azure.AzureClient; -import com.microsoft.azure.AzureServiceClient; -import com.microsoft.azure.CloudException; -import com.microsoft.azure.eventgrid.EventGridClient; -import com.microsoft.azure.eventgrid.models.EventGridEvent; -import com.microsoft.rest.credentials.ServiceClientCredentials; -import com.microsoft.rest.RestClient; -import com.microsoft.rest.ServiceCallback; -import com.microsoft.rest.ServiceFuture; -import com.microsoft.rest.ServiceResponse; -import com.microsoft.rest.Validator; -import java.io.IOException; -import java.util.List; -import okhttp3.ResponseBody; -import retrofit2.http.Body; -import retrofit2.http.Header; -import retrofit2.http.Headers; -import retrofit2.http.POST; -import retrofit2.http.Query; -import retrofit2.Response; -import rx.functions.Func1; -import rx.Observable; - -/** - * Initializes a new instance of the EventGridClientImpl class. - */ -public class EventGridClientImpl extends AzureServiceClient implements EventGridClient { - /** The Retrofit service to perform REST calls. */ - private EventGridClientService service; - /** the {@link AzureClient} used for long running operations. */ - private AzureClient azureClient; - - /** - * Gets the {@link AzureClient} used for long running operations. - * @return the azure client; - */ - public AzureClient getAzureClient() { - return this.azureClient; - } - - /** Version of the API to be used with the client request. */ - private String apiVersion; - - /** - * Gets Version of the API to be used with the client request. - * - * @return the apiVersion value. - */ - public String apiVersion() { - return this.apiVersion; - } - - /** Gets or sets the preferred language for the response. */ - private String acceptLanguage; - - /** - * Gets Gets or sets the preferred language for the response. - * - * @return the acceptLanguage value. - */ - public String acceptLanguage() { - return this.acceptLanguage; - } - - /** - * Sets Gets or sets the preferred language for the response. - * - * @param acceptLanguage the acceptLanguage value. - * @return the service client itself - */ - public EventGridClientImpl withAcceptLanguage(String acceptLanguage) { - this.acceptLanguage = acceptLanguage; - return this; - } - - /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ - private int longRunningOperationRetryTimeout; - - /** - * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * - * @return the longRunningOperationRetryTimeout value. - */ - public int longRunningOperationRetryTimeout() { - return this.longRunningOperationRetryTimeout; - } - - /** - * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * - * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. - * @return the service client itself - */ - public EventGridClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { - this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; - return this; - } - - /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ - private boolean generateClientRequestId; - - /** - * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. - * - * @return the generateClientRequestId value. - */ - public boolean generateClientRequestId() { - return this.generateClientRequestId; - } - - /** - * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. - * - * @param generateClientRequestId the generateClientRequestId value. - * @return the service client itself - */ - public EventGridClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { - this.generateClientRequestId = generateClientRequestId; - return this; - } - - /** - * Initializes an instance of EventGridClient client. - * - * @param credentials the management credentials for Azure - */ - public EventGridClientImpl(ServiceClientCredentials credentials) { - this("https://{topicHostname}", credentials); - } - - /** - * Initializes an instance of EventGridClient client. - * - * @param baseUrl the base URL of the host - * @param credentials the management credentials for Azure - */ - private EventGridClientImpl(String baseUrl, ServiceClientCredentials credentials) { - super(baseUrl, credentials); - initialize(); - } - - /** - * Initializes an instance of EventGridClient client. - * - * @param restClient the REST client to connect to Azure. - */ - public EventGridClientImpl(RestClient restClient) { - super(restClient); - initialize(); - } - - protected void initialize() { - this.apiVersion = "2018-01-01"; - this.acceptLanguage = "en-US"; - this.longRunningOperationRetryTimeout = 30; - this.generateClientRequestId = true; - this.azureClient = new AzureClient(this); - initializeService(); - } - - /** - * Gets the User-Agent header for the client. - * - * @return the user agent string. - */ - @Override - public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "EventGridClient", "2018-01-01"); - } - - private void initializeService() { - service = restClient().retrofit().create(EventGridClientService.class); - } - - /** - * The interface defining all the services for EventGridClient to be - * used by Retrofit to perform actually REST calls. - */ - interface EventGridClientService { - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.eventgrid.EventGridClient publishEvents" }) - @POST("api/events") - Observable> publishEvents(@Body List events, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - - } - - /** - * Publishes a batch of events to an Azure Event Grid topic. - * - * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net - * @param events An array of events to be published to Event Grid. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - */ - public void publishEvents(String topicHostname, List events) { - publishEventsWithServiceResponseAsync(topicHostname, events).toBlocking().single().body(); - } - - /** - * Publishes a batch of events to an Azure Event Grid topic. - * - * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net - * @param events An array of events to be published to Event Grid. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture publishEventsAsync(String topicHostname, List events, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(publishEventsWithServiceResponseAsync(topicHostname, events), serviceCallback); - } - - /** - * Publishes a batch of events to an Azure Event Grid topic. - * - * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net - * @param events An array of events to be published to Event Grid. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - public Observable publishEventsAsync(String topicHostname, List events) { - return publishEventsWithServiceResponseAsync(topicHostname, events).map(new Func1, Void>() { - @Override - public Void call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Publishes a batch of events to an Azure Event Grid topic. - * - * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net - * @param events An array of events to be published to Event Grid. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - public Observable> publishEventsWithServiceResponseAsync(String topicHostname, List events) { - if (topicHostname == null) { - throw new IllegalArgumentException("Parameter topicHostname is required and cannot be null."); - } - if (events == null) { - throw new IllegalArgumentException("Parameter events is required and cannot be null."); - } - if (this.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null."); - } - Validator.validate(events); - String parameterizedHost = Joiner.on(", ").join("{topicHostname}", topicHostname); - return service.publishEvents(events, this.apiVersion(), this.acceptLanguage(), parameterizedHost, this.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = publishEventsDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse publishEventsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.restClient().responseBuilderFactory().newInstance(this.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/implementation/package-info.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/implementation/package-info.java deleted file mode 100644 index 5c10ab37459ba..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/implementation/package-info.java +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. - -/** - * This package contains the implementation classes for EventGridClient. - * EventGrid Client. - */ -package com.microsoft.azure.eventgrid.implementation; diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/AppConfigurationKeyValueDeletedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/AppConfigurationKeyValueDeletedEventData.java deleted file mode 100644 index be7c08ffc6873..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/AppConfigurationKeyValueDeletedEventData.java +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for an - * Microsoft.AppConfiguration.KeyValueDeleted event. - */ -public class AppConfigurationKeyValueDeletedEventData { - /** - * The key used to identify the key-value that was deleted. - */ - @JsonProperty(value = "key") - private String key; - - /** - * The label, if any, used to identify the key-value that was deleted. - */ - @JsonProperty(value = "label") - private String label; - - /** - * The etag representing the key-value that was deleted. - */ - @JsonProperty(value = "etag") - private String etag; - - /** - * Get the key used to identify the key-value that was deleted. - * - * @return the key value - */ - public String key() { - return this.key; - } - - /** - * Set the key used to identify the key-value that was deleted. - * - * @param key the key value to set - * @return the AppConfigurationKeyValueDeletedEventData object itself. - */ - public AppConfigurationKeyValueDeletedEventData withKey(String key) { - this.key = key; - return this; - } - - /** - * Get the label, if any, used to identify the key-value that was deleted. - * - * @return the label value - */ - public String label() { - return this.label; - } - - /** - * Set the label, if any, used to identify the key-value that was deleted. - * - * @param label the label value to set - * @return the AppConfigurationKeyValueDeletedEventData object itself. - */ - public AppConfigurationKeyValueDeletedEventData withLabel(String label) { - this.label = label; - return this; - } - - /** - * Get the etag representing the key-value that was deleted. - * - * @return the etag value - */ - public String etag() { - return this.etag; - } - - /** - * Set the etag representing the key-value that was deleted. - * - * @param etag the etag value to set - * @return the AppConfigurationKeyValueDeletedEventData object itself. - */ - public AppConfigurationKeyValueDeletedEventData withEtag(String etag) { - this.etag = etag; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/AppConfigurationKeyValueModifiedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/AppConfigurationKeyValueModifiedEventData.java deleted file mode 100644 index 9b94f8a1f524a..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/AppConfigurationKeyValueModifiedEventData.java +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for an - * Microsoft.AppConfiguration.KeyValueModified event. - */ -public class AppConfigurationKeyValueModifiedEventData { - /** - * The key used to identify the key-value that was modified. - */ - @JsonProperty(value = "key") - private String key; - - /** - * The label, if any, used to identify the key-value that was modified. - */ - @JsonProperty(value = "label") - private String label; - - /** - * The etag representing the new state of the key-value. - */ - @JsonProperty(value = "etag") - private String etag; - - /** - * Get the key used to identify the key-value that was modified. - * - * @return the key value - */ - public String key() { - return this.key; - } - - /** - * Set the key used to identify the key-value that was modified. - * - * @param key the key value to set - * @return the AppConfigurationKeyValueModifiedEventData object itself. - */ - public AppConfigurationKeyValueModifiedEventData withKey(String key) { - this.key = key; - return this; - } - - /** - * Get the label, if any, used to identify the key-value that was modified. - * - * @return the label value - */ - public String label() { - return this.label; - } - - /** - * Set the label, if any, used to identify the key-value that was modified. - * - * @param label the label value to set - * @return the AppConfigurationKeyValueModifiedEventData object itself. - */ - public AppConfigurationKeyValueModifiedEventData withLabel(String label) { - this.label = label; - return this; - } - - /** - * Get the etag representing the new state of the key-value. - * - * @return the etag value - */ - public String etag() { - return this.etag; - } - - /** - * Set the etag representing the new state of the key-value. - * - * @param etag the etag value to set - * @return the AppConfigurationKeyValueModifiedEventData object itself. - */ - public AppConfigurationKeyValueModifiedEventData withEtag(String etag) { - this.etag = etag; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryArtifactEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryArtifactEventData.java deleted file mode 100644 index aeb105c84e86f..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryArtifactEventData.java +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import org.joda.time.DateTime; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The content of the event request message. - */ -public class ContainerRegistryArtifactEventData { - /** - * The event ID. - */ - @JsonProperty(value = "id") - private String id; - - /** - * The time at which the event occurred. - */ - @JsonProperty(value = "timestamp") - private DateTime timestamp; - - /** - * The action that encompasses the provided event. - */ - @JsonProperty(value = "action") - private String action; - - /** - * The target of the event. - */ - @JsonProperty(value = "target") - private ContainerRegistryArtifactEventTarget target; - - /** - * Get the event ID. - * - * @return the id value - */ - public String id() { - return this.id; - } - - /** - * Set the event ID. - * - * @param id the id value to set - * @return the ContainerRegistryArtifactEventData object itself. - */ - public ContainerRegistryArtifactEventData withId(String id) { - this.id = id; - return this; - } - - /** - * Get the time at which the event occurred. - * - * @return the timestamp value - */ - public DateTime timestamp() { - return this.timestamp; - } - - /** - * Set the time at which the event occurred. - * - * @param timestamp the timestamp value to set - * @return the ContainerRegistryArtifactEventData object itself. - */ - public ContainerRegistryArtifactEventData withTimestamp(DateTime timestamp) { - this.timestamp = timestamp; - return this; - } - - /** - * Get the action that encompasses the provided event. - * - * @return the action value - */ - public String action() { - return this.action; - } - - /** - * Set the action that encompasses the provided event. - * - * @param action the action value to set - * @return the ContainerRegistryArtifactEventData object itself. - */ - public ContainerRegistryArtifactEventData withAction(String action) { - this.action = action; - return this; - } - - /** - * Get the target of the event. - * - * @return the target value - */ - public ContainerRegistryArtifactEventTarget target() { - return this.target; - } - - /** - * Set the target of the event. - * - * @param target the target value to set - * @return the ContainerRegistryArtifactEventData object itself. - */ - public ContainerRegistryArtifactEventData withTarget(ContainerRegistryArtifactEventTarget target) { - this.target = target; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryArtifactEventTarget.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryArtifactEventTarget.java deleted file mode 100644 index d2afb95f29a73..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryArtifactEventTarget.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The target of the event. - */ -public class ContainerRegistryArtifactEventTarget { - /** - * The MIME type of the artifact. - */ - @JsonProperty(value = "mediaType") - private String mediaType; - - /** - * The size in bytes of the artifact. - */ - @JsonProperty(value = "size") - private Long size; - - /** - * The digest of the artifact. - */ - @JsonProperty(value = "digest") - private String digest; - - /** - * The repository name of the artifact. - */ - @JsonProperty(value = "repository") - private String repository; - - /** - * The tag of the artifact. - */ - @JsonProperty(value = "tag") - private String tag; - - /** - * The name of the artifact. - */ - @JsonProperty(value = "name") - private String name; - - /** - * The version of the artifact. - */ - @JsonProperty(value = "version") - private String version; - - /** - * Get the MIME type of the artifact. - * - * @return the mediaType value - */ - public String mediaType() { - return this.mediaType; - } - - /** - * Set the MIME type of the artifact. - * - * @param mediaType the mediaType value to set - * @return the ContainerRegistryArtifactEventTarget object itself. - */ - public ContainerRegistryArtifactEventTarget withMediaType(String mediaType) { - this.mediaType = mediaType; - return this; - } - - /** - * Get the size in bytes of the artifact. - * - * @return the size value - */ - public Long size() { - return this.size; - } - - /** - * Set the size in bytes of the artifact. - * - * @param size the size value to set - * @return the ContainerRegistryArtifactEventTarget object itself. - */ - public ContainerRegistryArtifactEventTarget withSize(Long size) { - this.size = size; - return this; - } - - /** - * Get the digest of the artifact. - * - * @return the digest value - */ - public String digest() { - return this.digest; - } - - /** - * Set the digest of the artifact. - * - * @param digest the digest value to set - * @return the ContainerRegistryArtifactEventTarget object itself. - */ - public ContainerRegistryArtifactEventTarget withDigest(String digest) { - this.digest = digest; - return this; - } - - /** - * Get the repository name of the artifact. - * - * @return the repository value - */ - public String repository() { - return this.repository; - } - - /** - * Set the repository name of the artifact. - * - * @param repository the repository value to set - * @return the ContainerRegistryArtifactEventTarget object itself. - */ - public ContainerRegistryArtifactEventTarget withRepository(String repository) { - this.repository = repository; - return this; - } - - /** - * Get the tag of the artifact. - * - * @return the tag value - */ - public String tag() { - return this.tag; - } - - /** - * Set the tag of the artifact. - * - * @param tag the tag value to set - * @return the ContainerRegistryArtifactEventTarget object itself. - */ - public ContainerRegistryArtifactEventTarget withTag(String tag) { - this.tag = tag; - return this; - } - - /** - * Get the name of the artifact. - * - * @return the name value - */ - public String name() { - return this.name; - } - - /** - * Set the name of the artifact. - * - * @param name the name value to set - * @return the ContainerRegistryArtifactEventTarget object itself. - */ - public ContainerRegistryArtifactEventTarget withName(String name) { - this.name = name; - return this; - } - - /** - * Get the version of the artifact. - * - * @return the version value - */ - public String version() { - return this.version; - } - - /** - * Set the version of the artifact. - * - * @param version the version value to set - * @return the ContainerRegistryArtifactEventTarget object itself. - */ - public ContainerRegistryArtifactEventTarget withVersion(String version) { - this.version = version; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryChartDeletedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryChartDeletedEventData.java deleted file mode 100644 index 0a81d98c5b75b..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryChartDeletedEventData.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ContainerRegistry.ChartDeleted event. - */ -public class ContainerRegistryChartDeletedEventData extends ContainerRegistryArtifactEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryChartPushedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryChartPushedEventData.java deleted file mode 100644 index cfb4fa7d2c5c3..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryChartPushedEventData.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ContainerRegistry.ChartPushed event. - */ -public class ContainerRegistryChartPushedEventData extends ContainerRegistryArtifactEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventActor.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventActor.java deleted file mode 100644 index e8b102aa7adf8..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventActor.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The agent that initiated the event. For most situations, this could be from - * the authorization context of the request. - */ -public class ContainerRegistryEventActor { - /** - * The subject or username associated with the request context that - * generated the event. - */ - @JsonProperty(value = "name") - private String name; - - /** - * Get the subject or username associated with the request context that generated the event. - * - * @return the name value - */ - public String name() { - return this.name; - } - - /** - * Set the subject or username associated with the request context that generated the event. - * - * @param name the name value to set - * @return the ContainerRegistryEventActor object itself. - */ - public ContainerRegistryEventActor withName(String name) { - this.name = name; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventData.java deleted file mode 100644 index c2c5042215b21..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventData.java +++ /dev/null @@ -1,202 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import org.joda.time.DateTime; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The content of the event request message. - */ -public class ContainerRegistryEventData { - /** - * The event ID. - */ - @JsonProperty(value = "id") - private String id; - - /** - * The time at which the event occurred. - */ - @JsonProperty(value = "timestamp") - private DateTime timestamp; - - /** - * The action that encompasses the provided event. - */ - @JsonProperty(value = "action") - private String action; - - /** - * The target of the event. - */ - @JsonProperty(value = "target") - private ContainerRegistryEventTarget target; - - /** - * The request that generated the event. - */ - @JsonProperty(value = "request") - private ContainerRegistryEventRequest request; - - /** - * The agent that initiated the event. For most situations, this could be - * from the authorization context of the request. - */ - @JsonProperty(value = "actor") - private ContainerRegistryEventActor actor; - - /** - * The registry node that generated the event. Put differently, while the - * actor initiates the event, the source generates it. - */ - @JsonProperty(value = "source") - private ContainerRegistryEventSource source; - - /** - * Get the event ID. - * - * @return the id value - */ - public String id() { - return this.id; - } - - /** - * Set the event ID. - * - * @param id the id value to set - * @return the ContainerRegistryEventData object itself. - */ - public ContainerRegistryEventData withId(String id) { - this.id = id; - return this; - } - - /** - * Get the time at which the event occurred. - * - * @return the timestamp value - */ - public DateTime timestamp() { - return this.timestamp; - } - - /** - * Set the time at which the event occurred. - * - * @param timestamp the timestamp value to set - * @return the ContainerRegistryEventData object itself. - */ - public ContainerRegistryEventData withTimestamp(DateTime timestamp) { - this.timestamp = timestamp; - return this; - } - - /** - * Get the action that encompasses the provided event. - * - * @return the action value - */ - public String action() { - return this.action; - } - - /** - * Set the action that encompasses the provided event. - * - * @param action the action value to set - * @return the ContainerRegistryEventData object itself. - */ - public ContainerRegistryEventData withAction(String action) { - this.action = action; - return this; - } - - /** - * Get the target of the event. - * - * @return the target value - */ - public ContainerRegistryEventTarget target() { - return this.target; - } - - /** - * Set the target of the event. - * - * @param target the target value to set - * @return the ContainerRegistryEventData object itself. - */ - public ContainerRegistryEventData withTarget(ContainerRegistryEventTarget target) { - this.target = target; - return this; - } - - /** - * Get the request that generated the event. - * - * @return the request value - */ - public ContainerRegistryEventRequest request() { - return this.request; - } - - /** - * Set the request that generated the event. - * - * @param request the request value to set - * @return the ContainerRegistryEventData object itself. - */ - public ContainerRegistryEventData withRequest(ContainerRegistryEventRequest request) { - this.request = request; - return this; - } - - /** - * Get the agent that initiated the event. For most situations, this could be from the authorization context of the request. - * - * @return the actor value - */ - public ContainerRegistryEventActor actor() { - return this.actor; - } - - /** - * Set the agent that initiated the event. For most situations, this could be from the authorization context of the request. - * - * @param actor the actor value to set - * @return the ContainerRegistryEventData object itself. - */ - public ContainerRegistryEventData withActor(ContainerRegistryEventActor actor) { - this.actor = actor; - return this; - } - - /** - * Get the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. - * - * @return the source value - */ - public ContainerRegistryEventSource source() { - return this.source; - } - - /** - * Set the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. - * - * @param source the source value to set - * @return the ContainerRegistryEventData object itself. - */ - public ContainerRegistryEventData withSource(ContainerRegistryEventSource source) { - this.source = source; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventRequest.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventRequest.java deleted file mode 100644 index 58454e155d2f5..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventRequest.java +++ /dev/null @@ -1,150 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The request that generated the event. - */ -public class ContainerRegistryEventRequest { - /** - * The ID of the request that initiated the event. - */ - @JsonProperty(value = "id") - private String id; - - /** - * The IP or hostname and possibly port of the client connection that - * initiated the event. This is the RemoteAddr from the standard http - * request. - */ - @JsonProperty(value = "addr") - private String addr; - - /** - * The externally accessible hostname of the registry instance, as - * specified by the http host header on incoming requests. - */ - @JsonProperty(value = "host") - private String host; - - /** - * The request method that generated the event. - */ - @JsonProperty(value = "method") - private String method; - - /** - * The user agent header of the request. - */ - @JsonProperty(value = "useragent") - private String useragent; - - /** - * Get the ID of the request that initiated the event. - * - * @return the id value - */ - public String id() { - return this.id; - } - - /** - * Set the ID of the request that initiated the event. - * - * @param id the id value to set - * @return the ContainerRegistryEventRequest object itself. - */ - public ContainerRegistryEventRequest withId(String id) { - this.id = id; - return this; - } - - /** - * 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. - * - * @return the addr value - */ - public String addr() { - return this.addr; - } - - /** - * Set the IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request. - * - * @param addr the addr value to set - * @return the ContainerRegistryEventRequest object itself. - */ - public ContainerRegistryEventRequest withAddr(String addr) { - this.addr = addr; - return this; - } - - /** - * Get the externally accessible hostname of the registry instance, as specified by the http host header on incoming requests. - * - * @return the host value - */ - public String host() { - return this.host; - } - - /** - * Set the externally accessible hostname of the registry instance, as specified by the http host header on incoming requests. - * - * @param host the host value to set - * @return the ContainerRegistryEventRequest object itself. - */ - public ContainerRegistryEventRequest withHost(String host) { - this.host = host; - return this; - } - - /** - * Get the request method that generated the event. - * - * @return the method value - */ - public String method() { - return this.method; - } - - /** - * Set the request method that generated the event. - * - * @param method the method value to set - * @return the ContainerRegistryEventRequest object itself. - */ - public ContainerRegistryEventRequest withMethod(String method) { - this.method = method; - return this; - } - - /** - * Get the user agent header of the request. - * - * @return the useragent value - */ - public String useragent() { - return this.useragent; - } - - /** - * Set the user agent header of the request. - * - * @param useragent the useragent value to set - * @return the ContainerRegistryEventRequest object itself. - */ - public ContainerRegistryEventRequest withUseragent(String useragent) { - this.useragent = useragent; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventSource.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventSource.java deleted file mode 100644 index e36f225d76a66..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventSource.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The registry node that generated the event. Put differently, while the actor - * initiates the event, the source generates it. - */ -public class ContainerRegistryEventSource { - /** - * The IP or hostname and the port of the registry node that generated the - * event. Generally, this will be resolved by os.Hostname() along with the - * running port. - */ - @JsonProperty(value = "addr") - private String addr; - - /** - * The running instance of an application. Changes after each restart. - */ - @JsonProperty(value = "instanceID") - private String instanceID; - - /** - * Get the IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port. - * - * @return the addr value - */ - public String addr() { - return this.addr; - } - - /** - * Set the IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port. - * - * @param addr the addr value to set - * @return the ContainerRegistryEventSource object itself. - */ - public ContainerRegistryEventSource withAddr(String addr) { - this.addr = addr; - return this; - } - - /** - * Get the running instance of an application. Changes after each restart. - * - * @return the instanceID value - */ - public String instanceID() { - return this.instanceID; - } - - /** - * Set the running instance of an application. Changes after each restart. - * - * @param instanceID the instanceID value to set - * @return the ContainerRegistryEventSource object itself. - */ - public ContainerRegistryEventSource withInstanceID(String instanceID) { - this.instanceID = instanceID; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventTarget.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventTarget.java deleted file mode 100644 index 44cd4f421c0d9..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryEventTarget.java +++ /dev/null @@ -1,200 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The target of the event. - */ -public class ContainerRegistryEventTarget { - /** - * The MIME type of the referenced object. - */ - @JsonProperty(value = "mediaType") - private String mediaType; - - /** - * The number of bytes of the content. Same as Length field. - */ - @JsonProperty(value = "size") - private Long size; - - /** - * The digest of the content, as defined by the Registry V2 HTTP API - * Specification. - */ - @JsonProperty(value = "digest") - private String digest; - - /** - * The number of bytes of the content. Same as Size field. - */ - @JsonProperty(value = "length") - private Long length; - - /** - * The repository name. - */ - @JsonProperty(value = "repository") - private String repository; - - /** - * The direct URL to the content. - */ - @JsonProperty(value = "url") - private String url; - - /** - * The tag name. - */ - @JsonProperty(value = "tag") - private String tag; - - /** - * Get the MIME type of the referenced object. - * - * @return the mediaType value - */ - public String mediaType() { - return this.mediaType; - } - - /** - * Set the MIME type of the referenced object. - * - * @param mediaType the mediaType value to set - * @return the ContainerRegistryEventTarget object itself. - */ - public ContainerRegistryEventTarget withMediaType(String mediaType) { - this.mediaType = mediaType; - return this; - } - - /** - * Get the number of bytes of the content. Same as Length field. - * - * @return the size value - */ - public Long size() { - return this.size; - } - - /** - * Set the number of bytes of the content. Same as Length field. - * - * @param size the size value to set - * @return the ContainerRegistryEventTarget object itself. - */ - public ContainerRegistryEventTarget withSize(Long size) { - this.size = size; - return this; - } - - /** - * Get the digest of the content, as defined by the Registry V2 HTTP API Specification. - * - * @return the digest value - */ - public String digest() { - return this.digest; - } - - /** - * Set the digest of the content, as defined by the Registry V2 HTTP API Specification. - * - * @param digest the digest value to set - * @return the ContainerRegistryEventTarget object itself. - */ - public ContainerRegistryEventTarget withDigest(String digest) { - this.digest = digest; - return this; - } - - /** - * Get the number of bytes of the content. Same as Size field. - * - * @return the length value - */ - public Long length() { - return this.length; - } - - /** - * Set the number of bytes of the content. Same as Size field. - * - * @param length the length value to set - * @return the ContainerRegistryEventTarget object itself. - */ - public ContainerRegistryEventTarget withLength(Long length) { - this.length = length; - return this; - } - - /** - * Get the repository name. - * - * @return the repository value - */ - public String repository() { - return this.repository; - } - - /** - * Set the repository name. - * - * @param repository the repository value to set - * @return the ContainerRegistryEventTarget object itself. - */ - public ContainerRegistryEventTarget withRepository(String repository) { - this.repository = repository; - return this; - } - - /** - * Get the direct URL to the content. - * - * @return the url value - */ - public String url() { - return this.url; - } - - /** - * Set the direct URL to the content. - * - * @param url the url value to set - * @return the ContainerRegistryEventTarget object itself. - */ - public ContainerRegistryEventTarget withUrl(String url) { - this.url = url; - return this; - } - - /** - * Get the tag name. - * - * @return the tag value - */ - public String tag() { - return this.tag; - } - - /** - * Set the tag name. - * - * @param tag the tag value to set - * @return the ContainerRegistryEventTarget object itself. - */ - public ContainerRegistryEventTarget withTag(String tag) { - this.tag = tag; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryImageDeletedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryImageDeletedEventData.java deleted file mode 100644 index d2bbc56d99d53..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryImageDeletedEventData.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ContainerRegistry.ImageDeleted event. - */ -public class ContainerRegistryImageDeletedEventData extends ContainerRegistryEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryImagePushedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryImagePushedEventData.java deleted file mode 100644 index 123fcdeeac7b4..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ContainerRegistryImagePushedEventData.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ContainerRegistry.ImagePushed event. - */ -public class ContainerRegistryImagePushedEventData extends ContainerRegistryEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceConnectionStateEventInfo.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceConnectionStateEventInfo.java deleted file mode 100644 index 93a5d34b9cf92..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceConnectionStateEventInfo.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Information about the device connection state event. - */ -public class 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. - */ - @JsonProperty(value = "sequenceNumber") - private String sequenceNumber; - - /** - * Get 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. - * - * @return the sequenceNumber value - */ - public String sequenceNumber() { - return this.sequenceNumber; - } - - /** - * Set 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. - * - * @param sequenceNumber the sequenceNumber value to set - * @return the DeviceConnectionStateEventInfo object itself. - */ - public DeviceConnectionStateEventInfo withSequenceNumber(String sequenceNumber) { - this.sequenceNumber = sequenceNumber; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceConnectionStateEventProperties.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceConnectionStateEventProperties.java deleted file mode 100644 index 9e5d57430beb1..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceConnectionStateEventProperties.java +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a device connection - * state event (DeviceConnected, DeviceDisconnected). - */ -public class DeviceConnectionStateEventProperties { - /** - * 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: - : . + % _ &#35; - * * ? ! ( ) , = @ ; $ '. - */ - @JsonProperty(value = "deviceId") - private String deviceId; - - /** - * The unique identifier of the module. This case-sensitive string can be - * up to 128 characters long, and supports ASCII 7-bit alphanumeric - * characters plus the following special characters: - : . + % _ &#35; - * * ? ! ( ) , = @ ; $ '. - */ - @JsonProperty(value = "moduleId") - private String moduleId; - - /** - * Name of the IoT Hub where the device was created or deleted. - */ - @JsonProperty(value = "hubName") - private String hubName; - - /** - * Information about the device connection state event. - */ - @JsonProperty(value = "deviceConnectionStateEventInfo") - private DeviceConnectionStateEventInfo deviceConnectionStateEventInfo; - - /** - * Get 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: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. - * - * @return the deviceId value - */ - public String deviceId() { - return this.deviceId; - } - - /** - * Set 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: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. - * - * @param deviceId the deviceId value to set - * @return the DeviceConnectionStateEventProperties object itself. - */ - public DeviceConnectionStateEventProperties withDeviceId(String deviceId) { - this.deviceId = deviceId; - return this; - } - - /** - * Get the unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. - * - * @return the moduleId value - */ - public String moduleId() { - return this.moduleId; - } - - /** - * Set the unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. - * - * @param moduleId the moduleId value to set - * @return the DeviceConnectionStateEventProperties object itself. - */ - public DeviceConnectionStateEventProperties withModuleId(String moduleId) { - this.moduleId = moduleId; - return this; - } - - /** - * Get name of the IoT Hub where the device was created or deleted. - * - * @return the hubName value - */ - public String hubName() { - return this.hubName; - } - - /** - * Set name of the IoT Hub where the device was created or deleted. - * - * @param hubName the hubName value to set - * @return the DeviceConnectionStateEventProperties object itself. - */ - public DeviceConnectionStateEventProperties withHubName(String hubName) { - this.hubName = hubName; - return this; - } - - /** - * Get information about the device connection state event. - * - * @return the deviceConnectionStateEventInfo value - */ - public DeviceConnectionStateEventInfo deviceConnectionStateEventInfo() { - return this.deviceConnectionStateEventInfo; - } - - /** - * Set information about the device connection state event. - * - * @param deviceConnectionStateEventInfo the deviceConnectionStateEventInfo value to set - * @return the DeviceConnectionStateEventProperties object itself. - */ - public DeviceConnectionStateEventProperties withDeviceConnectionStateEventInfo(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo) { - this.deviceConnectionStateEventInfo = deviceConnectionStateEventInfo; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceLifeCycleEventProperties.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceLifeCycleEventProperties.java deleted file mode 100644 index afef3326da364..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceLifeCycleEventProperties.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a device life cycle - * event (DeviceCreated, DeviceDeleted). - */ -public class DeviceLifeCycleEventProperties { - /** - * 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: - : . + % _ &#35; - * * ? ! ( ) , = @ ; $ '. - */ - @JsonProperty(value = "deviceId") - private String deviceId; - - /** - * Name of the IoT Hub where the device was created or deleted. - */ - @JsonProperty(value = "hubName") - private String hubName; - - /** - * Information about the device twin, which is the cloud representation of - * application device metadata. - */ - @JsonProperty(value = "twin") - private DeviceTwinInfo twin; - - /** - * Get 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: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. - * - * @return the deviceId value - */ - public String deviceId() { - return this.deviceId; - } - - /** - * Set 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: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. - * - * @param deviceId the deviceId value to set - * @return the DeviceLifeCycleEventProperties object itself. - */ - public DeviceLifeCycleEventProperties withDeviceId(String deviceId) { - this.deviceId = deviceId; - return this; - } - - /** - * Get name of the IoT Hub where the device was created or deleted. - * - * @return the hubName value - */ - public String hubName() { - return this.hubName; - } - - /** - * Set name of the IoT Hub where the device was created or deleted. - * - * @param hubName the hubName value to set - * @return the DeviceLifeCycleEventProperties object itself. - */ - public DeviceLifeCycleEventProperties withHubName(String hubName) { - this.hubName = hubName; - return this; - } - - /** - * Get information about the device twin, which is the cloud representation of application device metadata. - * - * @return the twin value - */ - public DeviceTwinInfo twin() { - return this.twin; - } - - /** - * Set information about the device twin, which is the cloud representation of application device metadata. - * - * @param twin the twin value to set - * @return the DeviceLifeCycleEventProperties object itself. - */ - public DeviceLifeCycleEventProperties withTwin(DeviceTwinInfo twin) { - this.twin = twin; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTelemetryEventProperties.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTelemetryEventProperties.java deleted file mode 100644 index 6cdca00a1e788..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTelemetryEventProperties.java +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a device telemetry - * event (DeviceTelemetry). - */ -public class DeviceTelemetryEventProperties { - /** - * The content of the message from the device. - */ - @JsonProperty(value = "body") - private Object body; - - /** - * Application properties are user-defined strings that can be added to the - * message. These fields are optional. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * System properties help identify contents and source of the messages. - */ - @JsonProperty(value = "systemProperties") - private Map systemProperties; - - /** - * Get the content of the message from the device. - * - * @return the body value - */ - public Object body() { - return this.body; - } - - /** - * Set the content of the message from the device. - * - * @param body the body value to set - * @return the DeviceTelemetryEventProperties object itself. - */ - public DeviceTelemetryEventProperties withBody(Object body) { - this.body = body; - return this; - } - - /** - * Get application properties are user-defined strings that can be added to the message. These fields are optional. - * - * @return the properties value - */ - public Map properties() { - return this.properties; - } - - /** - * Set application properties are user-defined strings that can be added to the message. These fields are optional. - * - * @param properties the properties value to set - * @return the DeviceTelemetryEventProperties object itself. - */ - public DeviceTelemetryEventProperties withProperties(Map properties) { - this.properties = properties; - return this; - } - - /** - * Get system properties help identify contents and source of the messages. - * - * @return the systemProperties value - */ - public Map systemProperties() { - return this.systemProperties; - } - - /** - * Set system properties help identify contents and source of the messages. - * - * @param systemProperties the systemProperties value to set - * @return the DeviceTelemetryEventProperties object itself. - */ - public DeviceTelemetryEventProperties withSystemProperties(Map systemProperties) { - this.systemProperties = systemProperties; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfo.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfo.java deleted file mode 100644 index 0446c475ae75b..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfo.java +++ /dev/null @@ -1,310 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Information about the device twin, which is the cloud representation of - * application device metadata. - */ -public class DeviceTwinInfo { - /** - * Authentication type used for this device: either SAS, SelfSigned, or - * CertificateAuthority. - */ - @JsonProperty(value = "authenticationType") - private String authenticationType; - - /** - * Count of cloud to device messages sent to this device. - */ - @JsonProperty(value = "cloudToDeviceMessageCount") - private Double cloudToDeviceMessageCount; - - /** - * Whether the device is connected or disconnected. - */ - @JsonProperty(value = "connectionState") - private String connectionState; - - /** - * The unique identifier of the device twin. - */ - @JsonProperty(value = "deviceId") - private String deviceId; - - /** - * A piece of information that describes the content of the device twin. - * Each etag is guaranteed to be unique per device twin. - */ - @JsonProperty(value = "etag") - private String etag; - - /** - * The ISO8601 timestamp of the last activity. - */ - @JsonProperty(value = "lastActivityTime") - private String lastActivityTime; - - /** - * Properties JSON element. - */ - @JsonProperty(value = "properties") - private DeviceTwinInfoProperties properties; - - /** - * Whether the device twin is enabled or disabled. - */ - @JsonProperty(value = "status") - private String status; - - /** - * The ISO8601 timestamp of the last device twin status update. - */ - @JsonProperty(value = "statusUpdateTime") - private String statusUpdateTime; - - /** - * An integer that is incremented by one each time the device twin is - * updated. - */ - @JsonProperty(value = "version") - private Double version; - - /** - * 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. - */ - @JsonProperty(value = "x509Thumbprint") - private DeviceTwinInfoX509Thumbprint x509Thumbprint; - - /** - * Get authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority. - * - * @return the authenticationType value - */ - public String authenticationType() { - return this.authenticationType; - } - - /** - * Set authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority. - * - * @param authenticationType the authenticationType value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withAuthenticationType(String authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get count of cloud to device messages sent to this device. - * - * @return the cloudToDeviceMessageCount value - */ - public Double cloudToDeviceMessageCount() { - return this.cloudToDeviceMessageCount; - } - - /** - * Set count of cloud to device messages sent to this device. - * - * @param cloudToDeviceMessageCount the cloudToDeviceMessageCount value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withCloudToDeviceMessageCount(Double cloudToDeviceMessageCount) { - this.cloudToDeviceMessageCount = cloudToDeviceMessageCount; - return this; - } - - /** - * Get whether the device is connected or disconnected. - * - * @return the connectionState value - */ - public String connectionState() { - return this.connectionState; - } - - /** - * Set whether the device is connected or disconnected. - * - * @param connectionState the connectionState value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withConnectionState(String connectionState) { - this.connectionState = connectionState; - return this; - } - - /** - * Get the unique identifier of the device twin. - * - * @return the deviceId value - */ - public String deviceId() { - return this.deviceId; - } - - /** - * Set the unique identifier of the device twin. - * - * @param deviceId the deviceId value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withDeviceId(String deviceId) { - this.deviceId = deviceId; - return this; - } - - /** - * Get a piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin. - * - * @return the etag value - */ - public String etag() { - return this.etag; - } - - /** - * Set a piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin. - * - * @param etag the etag value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withEtag(String etag) { - this.etag = etag; - return this; - } - - /** - * Get the ISO8601 timestamp of the last activity. - * - * @return the lastActivityTime value - */ - public String lastActivityTime() { - return this.lastActivityTime; - } - - /** - * Set the ISO8601 timestamp of the last activity. - * - * @param lastActivityTime the lastActivityTime value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withLastActivityTime(String lastActivityTime) { - this.lastActivityTime = lastActivityTime; - return this; - } - - /** - * Get properties JSON element. - * - * @return the properties value - */ - public DeviceTwinInfoProperties properties() { - return this.properties; - } - - /** - * Set properties JSON element. - * - * @param properties the properties value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withProperties(DeviceTwinInfoProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get whether the device twin is enabled or disabled. - * - * @return the status value - */ - public String status() { - return this.status; - } - - /** - * Set whether the device twin is enabled or disabled. - * - * @param status the status value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the ISO8601 timestamp of the last device twin status update. - * - * @return the statusUpdateTime value - */ - public String statusUpdateTime() { - return this.statusUpdateTime; - } - - /** - * Set the ISO8601 timestamp of the last device twin status update. - * - * @param statusUpdateTime the statusUpdateTime value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withStatusUpdateTime(String statusUpdateTime) { - this.statusUpdateTime = statusUpdateTime; - return this; - } - - /** - * Get an integer that is incremented by one each time the device twin is updated. - * - * @return the version value - */ - public Double version() { - return this.version; - } - - /** - * Set an integer that is incremented by one each time the device twin is updated. - * - * @param version the version value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withVersion(Double version) { - this.version = version; - return this; - } - - /** - * 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. - * - * @return the x509Thumbprint value - */ - public DeviceTwinInfoX509Thumbprint x509Thumbprint() { - return this.x509Thumbprint; - } - - /** - * Set 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. - * - * @param x509Thumbprint the x509Thumbprint value to set - * @return the DeviceTwinInfo object itself. - */ - public DeviceTwinInfo withX509Thumbprint(DeviceTwinInfoX509Thumbprint x509Thumbprint) { - this.x509Thumbprint = x509Thumbprint; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfoProperties.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfoProperties.java deleted file mode 100644 index 458a7390e59ab..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfoProperties.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Properties JSON element. - */ -public class DeviceTwinInfoProperties { - /** - * A portion of the properties that can be written only by the application - * back-end, and read by the device. - */ - @JsonProperty(value = "desired") - private DeviceTwinProperties desired; - - /** - * A portion of the properties that can be written only by the device, and - * read by the application back-end. - */ - @JsonProperty(value = "reported") - private DeviceTwinProperties reported; - - /** - * Get a portion of the properties that can be written only by the application back-end, and read by the device. - * - * @return the desired value - */ - public DeviceTwinProperties desired() { - return this.desired; - } - - /** - * Set a portion of the properties that can be written only by the application back-end, and read by the device. - * - * @param desired the desired value to set - * @return the DeviceTwinInfoProperties object itself. - */ - public DeviceTwinInfoProperties withDesired(DeviceTwinProperties desired) { - this.desired = desired; - return this; - } - - /** - * Get a portion of the properties that can be written only by the device, and read by the application back-end. - * - * @return the reported value - */ - public DeviceTwinProperties reported() { - return this.reported; - } - - /** - * Set a portion of the properties that can be written only by the device, and read by the application back-end. - * - * @param reported the reported value to set - * @return the DeviceTwinInfoProperties object itself. - */ - public DeviceTwinInfoProperties withReported(DeviceTwinProperties reported) { - this.reported = reported; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfoX509Thumbprint.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfoX509Thumbprint.java deleted file mode 100644 index 7fcd43529472e..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinInfoX509Thumbprint.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * 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 class DeviceTwinInfoX509Thumbprint { - /** - * Primary thumbprint for the x509 certificate. - */ - @JsonProperty(value = "primaryThumbprint") - private String primaryThumbprint; - - /** - * Secondary thumbprint for the x509 certificate. - */ - @JsonProperty(value = "secondaryThumbprint") - private String secondaryThumbprint; - - /** - * Get primary thumbprint for the x509 certificate. - * - * @return the primaryThumbprint value - */ - public String primaryThumbprint() { - return this.primaryThumbprint; - } - - /** - * Set primary thumbprint for the x509 certificate. - * - * @param primaryThumbprint the primaryThumbprint value to set - * @return the DeviceTwinInfoX509Thumbprint object itself. - */ - public DeviceTwinInfoX509Thumbprint withPrimaryThumbprint(String primaryThumbprint) { - this.primaryThumbprint = primaryThumbprint; - return this; - } - - /** - * Get secondary thumbprint for the x509 certificate. - * - * @return the secondaryThumbprint value - */ - public String secondaryThumbprint() { - return this.secondaryThumbprint; - } - - /** - * Set secondary thumbprint for the x509 certificate. - * - * @param secondaryThumbprint the secondaryThumbprint value to set - * @return the DeviceTwinInfoX509Thumbprint object itself. - */ - public DeviceTwinInfoX509Thumbprint withSecondaryThumbprint(String secondaryThumbprint) { - this.secondaryThumbprint = secondaryThumbprint; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinMetadata.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinMetadata.java deleted file mode 100644 index ed0dbb5258f15..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinMetadata.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Metadata information for the properties JSON document. - */ -public class DeviceTwinMetadata { - /** - * The ISO8601 timestamp of the last time the properties were updated. - */ - @JsonProperty(value = "lastUpdated") - private String lastUpdated; - - /** - * Get the ISO8601 timestamp of the last time the properties were updated. - * - * @return the lastUpdated value - */ - public String lastUpdated() { - return this.lastUpdated; - } - - /** - * Set the ISO8601 timestamp of the last time the properties were updated. - * - * @param lastUpdated the lastUpdated value to set - * @return the DeviceTwinMetadata object itself. - */ - public DeviceTwinMetadata withLastUpdated(String lastUpdated) { - this.lastUpdated = lastUpdated; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinProperties.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinProperties.java deleted file mode 100644 index f377f6c34ded3..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/DeviceTwinProperties.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * A portion of the properties that can be written only by the application - * back-end, and read by the device. - */ -public class DeviceTwinProperties { - /** - * Metadata information for the properties JSON document. - */ - @JsonProperty(value = "metadata") - private DeviceTwinMetadata metadata; - - /** - * Version of device twin properties. - */ - @JsonProperty(value = "version") - private Double version; - - /** - * Get metadata information for the properties JSON document. - * - * @return the metadata value - */ - public DeviceTwinMetadata metadata() { - return this.metadata; - } - - /** - * Set metadata information for the properties JSON document. - * - * @param metadata the metadata value to set - * @return the DeviceTwinProperties object itself. - */ - public DeviceTwinProperties withMetadata(DeviceTwinMetadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Get version of device twin properties. - * - * @return the version value - */ - public Double version() { - return this.version; - } - - /** - * Set version of device twin properties. - * - * @param version the version value to set - * @return the DeviceTwinProperties object itself. - */ - public DeviceTwinProperties withVersion(Double version) { - this.version = version; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/EventGridEvent.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/EventGridEvent.java deleted file mode 100644 index 6fce543279a57..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/EventGridEvent.java +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import org.joda.time.DateTime; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Properties of an event published to an Event Grid topic. - */ -public class EventGridEvent { - /** - * An unique identifier for the event. - */ - @JsonProperty(value = "id", required = true) - private String id; - - /** - * The resource path of the event source. - */ - @JsonProperty(value = "topic") - private String topic; - - /** - * A resource path relative to the topic path. - */ - @JsonProperty(value = "subject", required = true) - private String subject; - - /** - * Event data specific to the event type. - */ - @JsonProperty(value = "data", required = true) - private Object data; - - /** - * The type of the event that occurred. - */ - @JsonProperty(value = "eventType", required = true) - private String eventType; - - /** - * The time (in UTC) the event was generated. - */ - @JsonProperty(value = "eventTime", required = true) - private DateTime eventTime; - - /** - * The schema version of the event metadata. - */ - @JsonProperty(value = "metadataVersion", access = JsonProperty.Access.WRITE_ONLY) - private String metadataVersion; - - /** - * The schema version of the data object. - */ - @JsonProperty(value = "dataVersion", required = true) - private String dataVersion; - - /** - * Creates an instance of EventGridEvent class. - * @param id an unique identifier for the event. - * @param subject a resource path relative to the topic path. - * @param data event data specific to the event type. - * @param eventType the type of the event that occurred. - * @param eventTime the time (in UTC) the event was generated. - * @param dataVersion the schema version of the data object. - */ - public EventGridEvent(String id, String subject, Object data, String eventType, DateTime eventTime, String dataVersion) { - this.id = id; - this.subject = subject; - this.data = data; - this.eventType = eventType; - this.eventTime = eventTime; - this.dataVersion = dataVersion; - } - - /** - * Private constructor for deserialization. - */ - private EventGridEvent() { - } - - /** - * Get an unique identifier for the event. - * - * @return the id value - */ - public String id() { - return this.id; - } - - /** - * Get the resource path of the event source. - * - * @return the topic value - */ - public String topic() { - return this.topic; - } - - /** - * Set the resource path of the event source. - * - * @param topic the topic value to set - * @return the EventGridEvent object itself. - */ - public EventGridEvent withTopic(String topic) { - this.topic = topic; - return this; - } - - /** - * Get a resource path relative to the topic path. - * - * @return the subject value - */ - public String subject() { - return this.subject; - } - - /** - * Get event data specific to the event type. - * - * @return the data value - */ - public Object data() { - return this.data; - } - - /** - * Get the type of the event that occurred. - * - * @return the eventType value - */ - public String eventType() { - return this.eventType; - } - - /** - * Get the time (in UTC) the event was generated. - * - * @return the eventTime value - */ - public DateTime eventTime() { - return this.eventTime; - } - - /** - * Get the schema version of the event metadata. - * - * @return the metadataVersion value - */ - public String metadataVersion() { - return this.metadataVersion; - } - - /** - * Get the schema version of the data object. - * - * @return the dataVersion value - */ - public String dataVersion() { - return this.dataVersion; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/EventHubCaptureFileCreatedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/EventHubCaptureFileCreatedEventData.java deleted file mode 100644 index bfb5b2606419b..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/EventHubCaptureFileCreatedEventData.java +++ /dev/null @@ -1,253 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import org.joda.time.DateTime; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for an - * Microsoft.EventHub.CaptureFileCreated event. - */ -public class EventHubCaptureFileCreatedEventData { - /** - * The path to the capture file. - */ - @JsonProperty(value = "fileurl") - private String fileurl; - - /** - * The file type of the capture file. - */ - @JsonProperty(value = "fileType") - private String fileType; - - /** - * The shard ID. - */ - @JsonProperty(value = "partitionId") - private String partitionId; - - /** - * The file size. - */ - @JsonProperty(value = "sizeInBytes") - private Integer sizeInBytes; - - /** - * The number of events in the file. - */ - @JsonProperty(value = "eventCount") - private Integer eventCount; - - /** - * The smallest sequence number from the queue. - */ - @JsonProperty(value = "firstSequenceNumber") - private Integer firstSequenceNumber; - - /** - * The last sequence number from the queue. - */ - @JsonProperty(value = "lastSequenceNumber") - private Integer lastSequenceNumber; - - /** - * The first time from the queue. - */ - @JsonProperty(value = "firstEnqueueTime") - private DateTime firstEnqueueTime; - - /** - * The last time from the queue. - */ - @JsonProperty(value = "lastEnqueueTime") - private DateTime lastEnqueueTime; - - /** - * Get the path to the capture file. - * - * @return the fileurl value - */ - public String fileurl() { - return this.fileurl; - } - - /** - * Set the path to the capture file. - * - * @param fileurl the fileurl value to set - * @return the EventHubCaptureFileCreatedEventData object itself. - */ - public EventHubCaptureFileCreatedEventData withFileurl(String fileurl) { - this.fileurl = fileurl; - return this; - } - - /** - * Get the file type of the capture file. - * - * @return the fileType value - */ - public String fileType() { - return this.fileType; - } - - /** - * Set the file type of the capture file. - * - * @param fileType the fileType value to set - * @return the EventHubCaptureFileCreatedEventData object itself. - */ - public EventHubCaptureFileCreatedEventData withFileType(String fileType) { - this.fileType = fileType; - return this; - } - - /** - * Get the shard ID. - * - * @return the partitionId value - */ - public String partitionId() { - return this.partitionId; - } - - /** - * Set the shard ID. - * - * @param partitionId the partitionId value to set - * @return the EventHubCaptureFileCreatedEventData object itself. - */ - public EventHubCaptureFileCreatedEventData withPartitionId(String partitionId) { - this.partitionId = partitionId; - return this; - } - - /** - * Get the file size. - * - * @return the sizeInBytes value - */ - public Integer sizeInBytes() { - return this.sizeInBytes; - } - - /** - * Set the file size. - * - * @param sizeInBytes the sizeInBytes value to set - * @return the EventHubCaptureFileCreatedEventData object itself. - */ - public EventHubCaptureFileCreatedEventData withSizeInBytes(Integer sizeInBytes) { - this.sizeInBytes = sizeInBytes; - return this; - } - - /** - * Get the number of events in the file. - * - * @return the eventCount value - */ - public Integer eventCount() { - return this.eventCount; - } - - /** - * Set the number of events in the file. - * - * @param eventCount the eventCount value to set - * @return the EventHubCaptureFileCreatedEventData object itself. - */ - public EventHubCaptureFileCreatedEventData withEventCount(Integer eventCount) { - this.eventCount = eventCount; - return this; - } - - /** - * Get the smallest sequence number from the queue. - * - * @return the firstSequenceNumber value - */ - public Integer firstSequenceNumber() { - return this.firstSequenceNumber; - } - - /** - * Set the smallest sequence number from the queue. - * - * @param firstSequenceNumber the firstSequenceNumber value to set - * @return the EventHubCaptureFileCreatedEventData object itself. - */ - public EventHubCaptureFileCreatedEventData withFirstSequenceNumber(Integer firstSequenceNumber) { - this.firstSequenceNumber = firstSequenceNumber; - return this; - } - - /** - * Get the last sequence number from the queue. - * - * @return the lastSequenceNumber value - */ - public Integer lastSequenceNumber() { - return this.lastSequenceNumber; - } - - /** - * Set the last sequence number from the queue. - * - * @param lastSequenceNumber the lastSequenceNumber value to set - * @return the EventHubCaptureFileCreatedEventData object itself. - */ - public EventHubCaptureFileCreatedEventData withLastSequenceNumber(Integer lastSequenceNumber) { - this.lastSequenceNumber = lastSequenceNumber; - return this; - } - - /** - * Get the first time from the queue. - * - * @return the firstEnqueueTime value - */ - public DateTime firstEnqueueTime() { - return this.firstEnqueueTime; - } - - /** - * Set the first time from the queue. - * - * @param firstEnqueueTime the firstEnqueueTime value to set - * @return the EventHubCaptureFileCreatedEventData object itself. - */ - public EventHubCaptureFileCreatedEventData withFirstEnqueueTime(DateTime firstEnqueueTime) { - this.firstEnqueueTime = firstEnqueueTime; - return this; - } - - /** - * Get the last time from the queue. - * - * @return the lastEnqueueTime value - */ - public DateTime lastEnqueueTime() { - return this.lastEnqueueTime; - } - - /** - * Set the last time from the queue. - * - * @param lastEnqueueTime the lastEnqueueTime value to set - * @return the EventHubCaptureFileCreatedEventData object itself. - */ - public EventHubCaptureFileCreatedEventData withLastEnqueueTime(DateTime lastEnqueueTime) { - this.lastEnqueueTime = lastEnqueueTime; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceConnectedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceConnectedEventData.java deleted file mode 100644 index 64c500c5961aa..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceConnectedEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Event data for Microsoft.Devices.DeviceConnected event. - */ -public class IotHubDeviceConnectedEventData extends DeviceConnectionStateEventProperties { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceCreatedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceCreatedEventData.java deleted file mode 100644 index e4a5dbe8a05ab..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceCreatedEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Event data for Microsoft.Devices.DeviceCreated event. - */ -public class IotHubDeviceCreatedEventData extends DeviceLifeCycleEventProperties { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceDeletedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceDeletedEventData.java deleted file mode 100644 index 77b6772716787..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceDeletedEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Event data for Microsoft.Devices.DeviceDeleted event. - */ -public class IotHubDeviceDeletedEventData extends DeviceLifeCycleEventProperties { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceDisconnectedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceDisconnectedEventData.java deleted file mode 100644 index 7e070d9835e40..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceDisconnectedEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Event data for Microsoft.Devices.DeviceDisconnected event. - */ -public class IotHubDeviceDisconnectedEventData extends DeviceConnectionStateEventProperties { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceTelemetryEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceTelemetryEventData.java deleted file mode 100644 index ae3609d64fc4a..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceTelemetryEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Event data for Microsoft.Devices.DeviceTelemetry event. - */ -public class IotHubDeviceTelemetryEventData extends DeviceTelemetryEventProperties { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/JobState.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/JobState.java deleted file mode 100644 index 742ccf5187631..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/JobState.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Defines values for JobState. - */ -public enum JobState { - /** The job was canceled. This is a final state for the job. */ - CANCELED("Canceled"), - - /** The job is in the process of being canceled. This is a transient state for the job. */ - CANCELING("Canceling"), - - /** The job has encountered an error. This is a final state for the job. */ - ERROR("Error"), - - /** The job is finished. This is a final state for the job. */ - FINISHED("Finished"), - - /** The job is processing. This is a transient state for the job. */ - PROCESSING("Processing"), - - /** The job is in a queued state, waiting for resources to become available. This is a transient state. */ - QUEUED("Queued"), - - /** The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states. */ - SCHEDULED("Scheduled"); - - /** The actual serialized value for a JobState instance. */ - private String value; - - JobState(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a JobState instance. - * - * @param value the serialized value to parse. - * @return the parsed JobState object, or null if unable to parse. - */ - @JsonCreator - public static JobState fromString(String value) { - JobState[] items = JobState.values(); - for (JobState item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - @JsonValue - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceEnteredEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceEnteredEventData.java deleted file mode 100644 index 9633aa84fcd7f..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceEnteredEventData.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Maps.GeofenceEntered event. - */ -public class MapsGeofenceEnteredEventData extends MapsGeofenceEventProperties { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceEventProperties.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceEventProperties.java deleted file mode 100644 index 0a5da83897e08..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceEventProperties.java +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a Geofence event - * (GeofenceEntered, GeofenceExited, GeofenceResult). - */ -public class MapsGeofenceEventProperties { - /** - * Lists of the geometry ID of the geofence which is expired relative to - * the user time in the request. - */ - @JsonProperty(value = "expiredGeofenceGeometryId") - private List expiredGeofenceGeometryId; - - /** - * Lists the fence geometries that either fully contain the coordinate - * position or have an overlap with the searchBuffer around the fence. - */ - @JsonProperty(value = "geometries") - private List geometries; - - /** - * Lists of the geometry ID of the geofence which is in invalid period - * relative to the user time in the request. - */ - @JsonProperty(value = "invalidPeriodGeofenceGeometryId") - private List invalidPeriodGeofenceGeometryId; - - /** - * 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. - */ - @JsonProperty(value = "isEventPublished") - private Boolean isEventPublished; - - /** - * Get lists of the geometry ID of the geofence which is expired relative to the user time in the request. - * - * @return the expiredGeofenceGeometryId value - */ - public List expiredGeofenceGeometryId() { - return this.expiredGeofenceGeometryId; - } - - /** - * Set lists of the geometry ID of the geofence which is expired relative to the user time in the request. - * - * @param expiredGeofenceGeometryId the expiredGeofenceGeometryId value to set - * @return the MapsGeofenceEventProperties object itself. - */ - public MapsGeofenceEventProperties withExpiredGeofenceGeometryId(List expiredGeofenceGeometryId) { - this.expiredGeofenceGeometryId = expiredGeofenceGeometryId; - return this; - } - - /** - * Get lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. - * - * @return the geometries value - */ - public List geometries() { - return this.geometries; - } - - /** - * Set lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. - * - * @param geometries the geometries value to set - * @return the MapsGeofenceEventProperties object itself. - */ - public MapsGeofenceEventProperties withGeometries(List geometries) { - this.geometries = geometries; - return this; - } - - /** - * Get lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. - * - * @return the invalidPeriodGeofenceGeometryId value - */ - public List invalidPeriodGeofenceGeometryId() { - return this.invalidPeriodGeofenceGeometryId; - } - - /** - * Set lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. - * - * @param invalidPeriodGeofenceGeometryId the invalidPeriodGeofenceGeometryId value to set - * @return the MapsGeofenceEventProperties object itself. - */ - public MapsGeofenceEventProperties withInvalidPeriodGeofenceGeometryId(List invalidPeriodGeofenceGeometryId) { - this.invalidPeriodGeofenceGeometryId = invalidPeriodGeofenceGeometryId; - return this; - } - - /** - * 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. - * - * @return the isEventPublished value - */ - public Boolean isEventPublished() { - return this.isEventPublished; - } - - /** - * Set 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. - * - * @param isEventPublished the isEventPublished value to set - * @return the MapsGeofenceEventProperties object itself. - */ - public MapsGeofenceEventProperties withIsEventPublished(Boolean isEventPublished) { - this.isEventPublished = isEventPublished; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceExitedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceExitedEventData.java deleted file mode 100644 index d61b8adf0b126..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceExitedEventData.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Maps.GeofenceExited event. - */ -public class MapsGeofenceExitedEventData extends MapsGeofenceEventProperties { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceGeometry.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceGeometry.java deleted file mode 100644 index 0f2a42a310ccd..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceGeometry.java +++ /dev/null @@ -1,183 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The geofence geometry. - */ -public class MapsGeofenceGeometry { - /** - * ID of the device. - */ - @JsonProperty(value = "deviceId") - private String deviceId; - - /** - * 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. - */ - @JsonProperty(value = "distance") - private Double distance; - - /** - * The unique ID for the geofence geometry. - */ - @JsonProperty(value = "geometryId") - private String geometryId; - - /** - * Latitude of the nearest point of the geometry. - */ - @JsonProperty(value = "nearestLat") - private Double nearestLat; - - /** - * Longitude of the nearest point of the geometry. - */ - @JsonProperty(value = "nearestLon") - private Double nearestLon; - - /** - * The unique id returned from user upload service when uploading a - * geofence. Will not be included in geofencing post API. - */ - @JsonProperty(value = "udId") - private String udId; - - /** - * Get iD of the device. - * - * @return the deviceId value - */ - public String deviceId() { - return this.deviceId; - } - - /** - * Set iD of the device. - * - * @param deviceId the deviceId value to set - * @return the MapsGeofenceGeometry object itself. - */ - public MapsGeofenceGeometry withDeviceId(String deviceId) { - this.deviceId = deviceId; - return this; - } - - /** - * 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. - * - * @return the distance value - */ - public Double distance() { - return this.distance; - } - - /** - * Set 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. - * - * @param distance the distance value to set - * @return the MapsGeofenceGeometry object itself. - */ - public MapsGeofenceGeometry withDistance(Double distance) { - this.distance = distance; - return this; - } - - /** - * Get the unique ID for the geofence geometry. - * - * @return the geometryId value - */ - public String geometryId() { - return this.geometryId; - } - - /** - * Set the unique ID for the geofence geometry. - * - * @param geometryId the geometryId value to set - * @return the MapsGeofenceGeometry object itself. - */ - public MapsGeofenceGeometry withGeometryId(String geometryId) { - this.geometryId = geometryId; - return this; - } - - /** - * Get latitude of the nearest point of the geometry. - * - * @return the nearestLat value - */ - public Double nearestLat() { - return this.nearestLat; - } - - /** - * Set latitude of the nearest point of the geometry. - * - * @param nearestLat the nearestLat value to set - * @return the MapsGeofenceGeometry object itself. - */ - public MapsGeofenceGeometry withNearestLat(Double nearestLat) { - this.nearestLat = nearestLat; - return this; - } - - /** - * Get longitude of the nearest point of the geometry. - * - * @return the nearestLon value - */ - public Double nearestLon() { - return this.nearestLon; - } - - /** - * Set longitude of the nearest point of the geometry. - * - * @param nearestLon the nearestLon value to set - * @return the MapsGeofenceGeometry object itself. - */ - public MapsGeofenceGeometry withNearestLon(Double nearestLon) { - this.nearestLon = nearestLon; - return this; - } - - /** - * Get the unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API. - * - * @return the udId value - */ - public String udId() { - return this.udId; - } - - /** - * Set the unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API. - * - * @param udId the udId value to set - * @return the MapsGeofenceGeometry object itself. - */ - public MapsGeofenceGeometry withUdId(String udId) { - this.udId = udId; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceResultEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceResultEventData.java deleted file mode 100644 index 583099df37e6a..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MapsGeofenceResultEventData.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Maps.GeofenceResult event. - */ -public class MapsGeofenceResultEventData extends MapsGeofenceEventProperties { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobCanceledEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobCanceledEventData.java deleted file mode 100644 index 82f25b9358f20..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobCanceledEventData.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Job canceled event data. - */ -public class MediaJobCanceledEventData extends MediaJobStateChangeEventData { - /** - * Gets the Job outputs. - */ - @JsonProperty(value = "outputs") - private List outputs; - - /** - * Get gets the Job outputs. - * - * @return the outputs value - */ - public List outputs() { - return this.outputs; - } - - /** - * Set gets the Job outputs. - * - * @param outputs the outputs value to set - * @return the MediaJobCanceledEventData object itself. - */ - public MediaJobCanceledEventData withOutputs(List outputs) { - this.outputs = outputs; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobCancelingEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobCancelingEventData.java deleted file mode 100644 index 68f46991e5edb..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobCancelingEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Job canceling event data. - */ -public class MediaJobCancelingEventData extends MediaJobStateChangeEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobError.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobError.java deleted file mode 100644 index 446f363e416a9..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobError.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Details of JobOutput errors. - */ -public class MediaJobError { - /** - * Error code describing the error. Possible values include: - * 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', - * 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError', - * 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported'. - */ - @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) - private MediaJobErrorCode code; - - /** - * A human-readable language-dependent representation of the error. - */ - @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) - private String message; - - /** - * Helps with categorization of errors. Possible values include: 'Service', - * 'Download', 'Upload', 'Configuration', 'Content'. - */ - @JsonProperty(value = "category", access = JsonProperty.Access.WRITE_ONLY) - private MediaJobErrorCategory category; - - /** - * Indicates that it may be possible to retry the Job. If retry is - * unsuccessful, please contact Azure support via Azure Portal. Possible - * values include: 'DoNotRetry', 'MayRetry'. - */ - @JsonProperty(value = "retry", access = JsonProperty.Access.WRITE_ONLY) - private MediaJobRetry retry; - - /** - * An array of details about specific errors that led to this reported - * error. - */ - @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY) - private List details; - - /** - * Get error code describing the error. Possible values include: 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError', 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported'. - * - * @return the code value - */ - public MediaJobErrorCode code() { - return this.code; - } - - /** - * Get a human-readable language-dependent representation of the error. - * - * @return the message value - */ - public String message() { - return this.message; - } - - /** - * Get helps with categorization of errors. Possible values include: 'Service', 'Download', 'Upload', 'Configuration', 'Content'. - * - * @return the category value - */ - public MediaJobErrorCategory category() { - return this.category; - } - - /** - * Get indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. Possible values include: 'DoNotRetry', 'MayRetry'. - * - * @return the retry value - */ - public MediaJobRetry retry() { - return this.retry; - } - - /** - * Get an array of details about specific errors that led to this reported error. - * - * @return the details value - */ - public List details() { - return this.details; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorCategory.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorCategory.java deleted file mode 100644 index d7a866a0ca46e..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorCategory.java +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Defines values for MediaJobErrorCategory. - */ -public enum MediaJobErrorCategory { - /** The error is service related. */ - SERVICE("Service"), - - /** The error is download related. */ - DOWNLOAD("Download"), - - /** The error is upload related. */ - UPLOAD("Upload"), - - /** The error is configuration related. */ - CONFIGURATION("Configuration"), - - /** The error is related to data in the input files. */ - CONTENT("Content"); - - /** The actual serialized value for a MediaJobErrorCategory instance. */ - private String value; - - MediaJobErrorCategory(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a MediaJobErrorCategory instance. - * - * @param value the serialized value to parse. - * @return the parsed MediaJobErrorCategory object, or null if unable to parse. - */ - @JsonCreator - public static MediaJobErrorCategory fromString(String value) { - MediaJobErrorCategory[] items = MediaJobErrorCategory.values(); - for (MediaJobErrorCategory item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - @JsonValue - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorCode.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorCode.java deleted file mode 100644 index 3b69acad4683e..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorCode.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Defines values for MediaJobErrorCode. - */ -public enum MediaJobErrorCode { - /** Fatal service error, please contact support. */ - SERVICE_ERROR("ServiceError"), - - /** Transient error, please retry, if retry is unsuccessful, please contact support. */ - SERVICE_TRANSIENT_ERROR("ServiceTransientError"), - - /** While trying to download the input files, the files were not accessible, please check the availability of the source. */ - DOWNLOAD_NOT_ACCESSIBLE("DownloadNotAccessible"), - - /** While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source. */ - DOWNLOAD_TRANSIENT_ERROR("DownloadTransientError"), - - /** While trying to upload the output files, the destination was not reachable, please check the availability of the destination. */ - UPLOAD_NOT_ACCESSIBLE("UploadNotAccessible"), - - /** While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination. */ - UPLOAD_TRANSIENT_ERROR("UploadTransientError"), - - /** 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. */ - CONFIGURATION_UNSUPPORTED("ConfigurationUnsupported"), - - /** There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files. */ - CONTENT_MALFORMED("ContentMalformed"), - - /** 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. */ - CONTENT_UNSUPPORTED("ContentUnsupported"); - - /** The actual serialized value for a MediaJobErrorCode instance. */ - private String value; - - MediaJobErrorCode(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a MediaJobErrorCode instance. - * - * @param value the serialized value to parse. - * @return the parsed MediaJobErrorCode object, or null if unable to parse. - */ - @JsonCreator - public static MediaJobErrorCode fromString(String value) { - MediaJobErrorCode[] items = MediaJobErrorCode.values(); - for (MediaJobErrorCode item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - @JsonValue - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorDetail.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorDetail.java deleted file mode 100644 index d0a0bd0ca94b4..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErrorDetail.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Details of JobOutput errors. - */ -public class MediaJobErrorDetail { - /** - * Code describing the error detail. - */ - @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) - private String code; - - /** - * A human-readable representation of the error. - */ - @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) - private String message; - - /** - * Get code describing the error detail. - * - * @return the code value - */ - public String code() { - return this.code; - } - - /** - * Get a human-readable representation of the error. - * - * @return the message value - */ - public String message() { - return this.message; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErroredEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErroredEventData.java deleted file mode 100644 index 7736abfba23d7..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobErroredEventData.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Job error state event data. - */ -public class MediaJobErroredEventData extends MediaJobStateChangeEventData { - /** - * Gets the Job outputs. - */ - @JsonProperty(value = "outputs") - private List outputs; - - /** - * Get gets the Job outputs. - * - * @return the outputs value - */ - public List outputs() { - return this.outputs; - } - - /** - * Set gets the Job outputs. - * - * @param outputs the outputs value to set - * @return the MediaJobErroredEventData object itself. - */ - public MediaJobErroredEventData withOutputs(List outputs) { - this.outputs = outputs; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobFinishedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobFinishedEventData.java deleted file mode 100644 index 3cbc7c2459437..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobFinishedEventData.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Job finished event data. - */ -public class MediaJobFinishedEventData extends MediaJobStateChangeEventData { - /** - * Gets the Job outputs. - */ - @JsonProperty(value = "outputs") - private List outputs; - - /** - * Get gets the Job outputs. - * - * @return the outputs value - */ - public List outputs() { - return this.outputs; - } - - /** - * Set gets the Job outputs. - * - * @param outputs the outputs value to set - * @return the MediaJobFinishedEventData object itself. - */ - public MediaJobFinishedEventData withOutputs(List outputs) { - this.outputs = outputs; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutput.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutput.java deleted file mode 100644 index e17e3126a8ecc..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutput.java +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonSubTypes; - -/** - * The event data for a Job output. - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") -@JsonTypeName("MediaJobOutput") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "#Microsoft.Media.JobOutputAsset", value = MediaJobOutputAsset.class) -}) -public class MediaJobOutput { - /** - * Gets the Job output error. - */ - @JsonProperty(value = "error") - private MediaJobError error; - - /** - * Gets the Job output label. - */ - @JsonProperty(value = "label") - private String label; - - /** - * Gets the Job output progress. - */ - @JsonProperty(value = "progress", required = true) - private long progress; - - /** - * Gets the Job output state. Possible values include: 'Canceled', - * 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'. - */ - @JsonProperty(value = "state", required = true) - private MediaJobState state; - - /** - * Creates an instance of MediaJobOutput class. - * @param progress gets the Job output progress. - * @param state gets the Job output state. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'. - */ - public MediaJobOutput(long progress, MediaJobState state) { - this.progress = progress; - this.state = state; - } - - /** - * Private constructor for deserialization. - */ - protected MediaJobOutput() { - } - - /** - * Get gets the Job output error. - * - * @return the error value - */ - public MediaJobError error() { - return this.error; - } - - /** - * Set gets the Job output error. - * - * @param error the error value to set - * @return the MediaJobOutput object itself. - */ - public MediaJobOutput withError(MediaJobError error) { - this.error = error; - return this; - } - - /** - * Get gets the Job output label. - * - * @return the label value - */ - public String label() { - return this.label; - } - - /** - * Set gets the Job output label. - * - * @param label the label value to set - * @return the MediaJobOutput object itself. - */ - public MediaJobOutput withLabel(String label) { - this.label = label; - return this; - } - - /** - * Get gets the Job output progress. - * - * @return the progress value - */ - public long progress() { - return this.progress; - } - - /** - * Get gets the Job output state. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'. - * - * @return the state value - */ - public MediaJobState state() { - return this.state; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputAsset.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputAsset.java deleted file mode 100644 index 2c40f184d09aa..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputAsset.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * The event data for a Job output asset. - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") -@JsonTypeName("#Microsoft.Media.JobOutputAsset") -public class MediaJobOutputAsset extends MediaJobOutput { - /** - * Gets the Job output asset name. - */ - @JsonProperty(value = "assetName") - private String assetName; - - /** - * Get gets the Job output asset name. - * - * @return the assetName value - */ - public String assetName() { - return this.assetName; - } - - /** - * Set gets the Job output asset name. - * - * @param assetName the assetName value to set - * @return the MediaJobOutputAsset object itself. - */ - public MediaJobOutputAsset withAssetName(String assetName) { - this.assetName = assetName; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputCanceledEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputCanceledEventData.java deleted file mode 100644 index fe252ac8989f6..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputCanceledEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Job output canceled event data. - */ -public class MediaJobOutputCanceledEventData extends MediaJobOutputStateChangeEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputCancelingEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputCancelingEventData.java deleted file mode 100644 index b58ad62e30df3..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputCancelingEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Job output canceling event data. - */ -public class MediaJobOutputCancelingEventData extends MediaJobOutputStateChangeEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputErroredEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputErroredEventData.java deleted file mode 100644 index 32580734e8015..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputErroredEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Job output error event data. - */ -public class MediaJobOutputErroredEventData extends MediaJobOutputStateChangeEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputFinishedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputFinishedEventData.java deleted file mode 100644 index 51018003d1e07..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputFinishedEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Job output finished event data. - */ -public class MediaJobOutputFinishedEventData extends MediaJobOutputStateChangeEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputProcessingEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputProcessingEventData.java deleted file mode 100644 index 435c4fa2a80c5..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputProcessingEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Job output processing event data. - */ -public class MediaJobOutputProcessingEventData extends MediaJobOutputStateChangeEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputProgressEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputProgressEventData.java deleted file mode 100644 index 5eaba3008ea53..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputProgressEventData.java +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Job Output Progress Event Data. - */ -public class MediaJobOutputProgressEventData { - /** - * Gets the Job output label. - */ - @JsonProperty(value = "label") - private String label; - - /** - * Gets the Job output progress. - */ - @JsonProperty(value = "progress") - private Long progress; - - /** - * Gets the Job correlation data. - */ - @JsonProperty(value = "jobCorrelationData") - private Map jobCorrelationData; - - /** - * Get gets the Job output label. - * - * @return the label value - */ - public String label() { - return this.label; - } - - /** - * Set gets the Job output label. - * - * @param label the label value to set - * @return the MediaJobOutputProgressEventData object itself. - */ - public MediaJobOutputProgressEventData withLabel(String label) { - this.label = label; - return this; - } - - /** - * Get gets the Job output progress. - * - * @return the progress value - */ - public Long progress() { - return this.progress; - } - - /** - * Set gets the Job output progress. - * - * @param progress the progress value to set - * @return the MediaJobOutputProgressEventData object itself. - */ - public MediaJobOutputProgressEventData withProgress(Long progress) { - this.progress = progress; - return this; - } - - /** - * Get gets the Job correlation data. - * - * @return the jobCorrelationData value - */ - public Map jobCorrelationData() { - return this.jobCorrelationData; - } - - /** - * Set gets the Job correlation data. - * - * @param jobCorrelationData the jobCorrelationData value to set - * @return the MediaJobOutputProgressEventData object itself. - */ - public MediaJobOutputProgressEventData withJobCorrelationData(Map jobCorrelationData) { - this.jobCorrelationData = jobCorrelationData; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputScheduledEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputScheduledEventData.java deleted file mode 100644 index 42c1ea0581519..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputScheduledEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Job output scheduled event data. - */ -public class MediaJobOutputScheduledEventData extends MediaJobOutputStateChangeEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputStateChangeEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputStateChangeEventData.java deleted file mode 100644 index c13e3adcf868d..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobOutputStateChangeEventData.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Media.JobOutputStateChange event. - */ -public class MediaJobOutputStateChangeEventData { - /** - * The previous state of the Job. Possible values include: 'Canceled', - * 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'. - */ - @JsonProperty(value = "previousState", access = JsonProperty.Access.WRITE_ONLY) - private MediaJobState previousState; - - /** - * Gets the output. - */ - @JsonProperty(value = "output") - private MediaJobOutput output; - - /** - * Gets the Job correlation data. - */ - @JsonProperty(value = "jobCorrelationData") - private Map jobCorrelationData; - - /** - * Get the previous state of the Job. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'. - * - * @return the previousState value - */ - public MediaJobState previousState() { - return this.previousState; - } - - /** - * Get gets the output. - * - * @return the output value - */ - public MediaJobOutput output() { - return this.output; - } - - /** - * Set gets the output. - * - * @param output the output value to set - * @return the MediaJobOutputStateChangeEventData object itself. - */ - public MediaJobOutputStateChangeEventData withOutput(MediaJobOutput output) { - this.output = output; - return this; - } - - /** - * Get gets the Job correlation data. - * - * @return the jobCorrelationData value - */ - public Map jobCorrelationData() { - return this.jobCorrelationData; - } - - /** - * Set gets the Job correlation data. - * - * @param jobCorrelationData the jobCorrelationData value to set - * @return the MediaJobOutputStateChangeEventData object itself. - */ - public MediaJobOutputStateChangeEventData withJobCorrelationData(Map jobCorrelationData) { - this.jobCorrelationData = jobCorrelationData; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobProcessingEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobProcessingEventData.java deleted file mode 100644 index 17e1c03fc4e4f..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobProcessingEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Job processing event data. - */ -public class MediaJobProcessingEventData extends MediaJobStateChangeEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobRetry.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobRetry.java deleted file mode 100644 index 6a1dca0b117c5..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobRetry.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Defines values for MediaJobRetry. - */ -public enum MediaJobRetry { - /** Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected. */ - DO_NOT_RETRY("DoNotRetry"), - - /** Issue may be resolved after waiting for a period of time and resubmitting the same Job. */ - MAY_RETRY("MayRetry"); - - /** The actual serialized value for a MediaJobRetry instance. */ - private String value; - - MediaJobRetry(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a MediaJobRetry instance. - * - * @param value the serialized value to parse. - * @return the parsed MediaJobRetry object, or null if unable to parse. - */ - @JsonCreator - public static MediaJobRetry fromString(String value) { - MediaJobRetry[] items = MediaJobRetry.values(); - for (MediaJobRetry item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - @JsonValue - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobScheduledEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobScheduledEventData.java deleted file mode 100644 index 514cb1fe63078..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobScheduledEventData.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - - -/** - * Job scheduled event data. - */ -public class MediaJobScheduledEventData extends MediaJobStateChangeEventData { -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobState.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobState.java deleted file mode 100644 index bfedb3a6a5938..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobState.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Defines values for MediaJobState. - */ -public enum MediaJobState { - /** The job was canceled. This is a final state for the job. */ - CANCELED("Canceled"), - - /** The job is in the process of being canceled. This is a transient state for the job. */ - CANCELING("Canceling"), - - /** The job has encountered an error. This is a final state for the job. */ - ERROR("Error"), - - /** The job is finished. This is a final state for the job. */ - FINISHED("Finished"), - - /** The job is processing. This is a transient state for the job. */ - PROCESSING("Processing"), - - /** The job is in a queued state, waiting for resources to become available. This is a transient state. */ - QUEUED("Queued"), - - /** The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states. */ - SCHEDULED("Scheduled"); - - /** The actual serialized value for a MediaJobState instance. */ - private String value; - - MediaJobState(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a MediaJobState instance. - * - * @param value the serialized value to parse. - * @return the parsed MediaJobState object, or null if unable to parse. - */ - @JsonCreator - public static MediaJobState fromString(String value) { - MediaJobState[] items = MediaJobState.values(); - for (MediaJobState item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - @JsonValue - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobStateChangeEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobStateChangeEventData.java deleted file mode 100644 index 0d229de01291e..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaJobStateChangeEventData.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Media.JobStateChange event. - */ -public class MediaJobStateChangeEventData { - /** - * The previous state of the Job. Possible values include: 'Canceled', - * 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'. - */ - @JsonProperty(value = "previousState", access = JsonProperty.Access.WRITE_ONLY) - private MediaJobState previousState; - - /** - * The new state of the Job. Possible values include: 'Canceled', - * 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'. - */ - @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) - private MediaJobState state; - - /** - * Gets the Job correlation data. - */ - @JsonProperty(value = "correlationData") - private Map correlationData; - - /** - * Get the previous state of the Job. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'. - * - * @return the previousState value - */ - public MediaJobState previousState() { - return this.previousState; - } - - /** - * Get the new state of the Job. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'. - * - * @return the state value - */ - public MediaJobState state() { - return this.state; - } - - /** - * Get gets the Job correlation data. - * - * @return the correlationData value - */ - public Map correlationData() { - return this.correlationData; - } - - /** - * Set gets the Job correlation data. - * - * @param correlationData the correlationData value to set - * @return the MediaJobStateChangeEventData object itself. - */ - public MediaJobStateChangeEventData withCorrelationData(Map correlationData) { - this.correlationData = correlationData; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventConnectionRejectedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventConnectionRejectedEventData.java deleted file mode 100644 index 19c43ca48287a..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventConnectionRejectedEventData.java +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Encoder connection rejected event data. - */ -public class MediaLiveEventConnectionRejectedEventData { - /** - * Gets the ingest URL provided by the live event. - */ - @JsonProperty(value = "ingestUrl", access = JsonProperty.Access.WRITE_ONLY) - private String ingestUrl; - - /** - * Gets the stream Id. - */ - @JsonProperty(value = "streamId", access = JsonProperty.Access.WRITE_ONLY) - private String streamId; - - /** - * Gets the remote IP. - */ - @JsonProperty(value = "encoderIp", access = JsonProperty.Access.WRITE_ONLY) - private String encoderIp; - - /** - * Gets the remote port. - */ - @JsonProperty(value = "encoderPort", access = JsonProperty.Access.WRITE_ONLY) - private String encoderPort; - - /** - * Gets the result code. - */ - @JsonProperty(value = "resultCode", access = JsonProperty.Access.WRITE_ONLY) - private String resultCode; - - /** - * Get gets the ingest URL provided by the live event. - * - * @return the ingestUrl value - */ - public String ingestUrl() { - return this.ingestUrl; - } - - /** - * Get gets the stream Id. - * - * @return the streamId value - */ - public String streamId() { - return this.streamId; - } - - /** - * Get gets the remote IP. - * - * @return the encoderIp value - */ - public String encoderIp() { - return this.encoderIp; - } - - /** - * Get gets the remote port. - * - * @return the encoderPort value - */ - public String encoderPort() { - return this.encoderPort; - } - - /** - * Get gets the result code. - * - * @return the resultCode value - */ - public String resultCode() { - return this.resultCode; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventEncoderConnectedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventEncoderConnectedEventData.java deleted file mode 100644 index 55356b7945c5e..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventEncoderConnectedEventData.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Encoder connect event data. - */ -public class MediaLiveEventEncoderConnectedEventData { - /** - * Gets the ingest URL provided by the live event. - */ - @JsonProperty(value = "ingestUrl", access = JsonProperty.Access.WRITE_ONLY) - private String ingestUrl; - - /** - * Gets the stream Id. - */ - @JsonProperty(value = "streamId", access = JsonProperty.Access.WRITE_ONLY) - private String streamId; - - /** - * Gets the remote IP. - */ - @JsonProperty(value = "encoderIp", access = JsonProperty.Access.WRITE_ONLY) - private String encoderIp; - - /** - * Gets the remote port. - */ - @JsonProperty(value = "encoderPort", access = JsonProperty.Access.WRITE_ONLY) - private String encoderPort; - - /** - * Get gets the ingest URL provided by the live event. - * - * @return the ingestUrl value - */ - public String ingestUrl() { - return this.ingestUrl; - } - - /** - * Get gets the stream Id. - * - * @return the streamId value - */ - public String streamId() { - return this.streamId; - } - - /** - * Get gets the remote IP. - * - * @return the encoderIp value - */ - public String encoderIp() { - return this.encoderIp; - } - - /** - * Get gets the remote port. - * - * @return the encoderPort value - */ - public String encoderPort() { - return this.encoderPort; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventEncoderDisconnectedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventEncoderDisconnectedEventData.java deleted file mode 100644 index 9e21d9e6b82ff..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventEncoderDisconnectedEventData.java +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Encoder disconnected event data. - */ -public class MediaLiveEventEncoderDisconnectedEventData { - /** - * Gets the ingest URL provided by the live event. - */ - @JsonProperty(value = "ingestUrl", access = JsonProperty.Access.WRITE_ONLY) - private String ingestUrl; - - /** - * Gets the stream Id. - */ - @JsonProperty(value = "streamId", access = JsonProperty.Access.WRITE_ONLY) - private String streamId; - - /** - * Gets the remote IP. - */ - @JsonProperty(value = "encoderIp", access = JsonProperty.Access.WRITE_ONLY) - private String encoderIp; - - /** - * Gets the remote port. - */ - @JsonProperty(value = "encoderPort", access = JsonProperty.Access.WRITE_ONLY) - private String encoderPort; - - /** - * Gets the result code. - */ - @JsonProperty(value = "resultCode", access = JsonProperty.Access.WRITE_ONLY) - private String resultCode; - - /** - * Get gets the ingest URL provided by the live event. - * - * @return the ingestUrl value - */ - public String ingestUrl() { - return this.ingestUrl; - } - - /** - * Get gets the stream Id. - * - * @return the streamId value - */ - public String streamId() { - return this.streamId; - } - - /** - * Get gets the remote IP. - * - * @return the encoderIp value - */ - public String encoderIp() { - return this.encoderIp; - } - - /** - * Get gets the remote port. - * - * @return the encoderPort value - */ - public String encoderPort() { - return this.encoderPort; - } - - /** - * Get gets the result code. - * - * @return the resultCode value - */ - public String resultCode() { - return this.resultCode; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingDataChunkDroppedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingDataChunkDroppedEventData.java deleted file mode 100644 index 1765958045a0d..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingDataChunkDroppedEventData.java +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Ingest fragment dropped event data. - */ -public class MediaLiveEventIncomingDataChunkDroppedEventData { - /** - * Gets the timestamp of the data chunk dropped. - */ - @JsonProperty(value = "timestamp", access = JsonProperty.Access.WRITE_ONLY) - private String timestamp; - - /** - * Gets the type of the track (Audio / Video). - */ - @JsonProperty(value = "trackType", access = JsonProperty.Access.WRITE_ONLY) - private String trackType; - - /** - * Gets the bitrate of the track. - */ - @JsonProperty(value = "bitrate", access = JsonProperty.Access.WRITE_ONLY) - private Long bitrate; - - /** - * Gets the timescale of the Timestamp. - */ - @JsonProperty(value = "timescale", access = JsonProperty.Access.WRITE_ONLY) - private String timescale; - - /** - * Gets the result code for fragment drop operation. - */ - @JsonProperty(value = "resultCode", access = JsonProperty.Access.WRITE_ONLY) - private String resultCode; - - /** - * Gets the name of the track for which fragment is dropped. - */ - @JsonProperty(value = "trackName", access = JsonProperty.Access.WRITE_ONLY) - private String trackName; - - /** - * Get gets the timestamp of the data chunk dropped. - * - * @return the timestamp value - */ - public String timestamp() { - return this.timestamp; - } - - /** - * Get gets the type of the track (Audio / Video). - * - * @return the trackType value - */ - public String trackType() { - return this.trackType; - } - - /** - * Get gets the bitrate of the track. - * - * @return the bitrate value - */ - public Long bitrate() { - return this.bitrate; - } - - /** - * Get gets the timescale of the Timestamp. - * - * @return the timescale value - */ - public String timescale() { - return this.timescale; - } - - /** - * Get gets the result code for fragment drop operation. - * - * @return the resultCode value - */ - public String resultCode() { - return this.resultCode; - } - - /** - * Get gets the name of the track for which fragment is dropped. - * - * @return the trackName value - */ - public String trackName() { - return this.trackName; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingStreamReceivedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingStreamReceivedEventData.java deleted file mode 100644 index 964d4c42c1fba..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingStreamReceivedEventData.java +++ /dev/null @@ -1,152 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Encoder connect event data. - */ -public class MediaLiveEventIncomingStreamReceivedEventData { - /** - * Gets the ingest URL provided by the live event. - */ - @JsonProperty(value = "ingestUrl", access = JsonProperty.Access.WRITE_ONLY) - private String ingestUrl; - - /** - * Gets the type of the track (Audio / Video). - */ - @JsonProperty(value = "trackType", access = JsonProperty.Access.WRITE_ONLY) - private String trackType; - - /** - * Gets the track name. - */ - @JsonProperty(value = "trackName", access = JsonProperty.Access.WRITE_ONLY) - private String trackName; - - /** - * Gets the bitrate of the track. - */ - @JsonProperty(value = "bitrate", access = JsonProperty.Access.WRITE_ONLY) - private Long bitrate; - - /** - * Gets the remote IP. - */ - @JsonProperty(value = "encoderIp", access = JsonProperty.Access.WRITE_ONLY) - private String encoderIp; - - /** - * Gets the remote port. - */ - @JsonProperty(value = "encoderPort", access = JsonProperty.Access.WRITE_ONLY) - private String encoderPort; - - /** - * Gets the first timestamp of the data chunk received. - */ - @JsonProperty(value = "timestamp", access = JsonProperty.Access.WRITE_ONLY) - private String timestamp; - - /** - * Gets the duration of the first data chunk. - */ - @JsonProperty(value = "duration", access = JsonProperty.Access.WRITE_ONLY) - private String duration; - - /** - * Gets the timescale in which timestamp is represented. - */ - @JsonProperty(value = "timescale", access = JsonProperty.Access.WRITE_ONLY) - private String timescale; - - /** - * Get gets the ingest URL provided by the live event. - * - * @return the ingestUrl value - */ - public String ingestUrl() { - return this.ingestUrl; - } - - /** - * Get gets the type of the track (Audio / Video). - * - * @return the trackType value - */ - public String trackType() { - return this.trackType; - } - - /** - * Get gets the track name. - * - * @return the trackName value - */ - public String trackName() { - return this.trackName; - } - - /** - * Get gets the bitrate of the track. - * - * @return the bitrate value - */ - public Long bitrate() { - return this.bitrate; - } - - /** - * Get gets the remote IP. - * - * @return the encoderIp value - */ - public String encoderIp() { - return this.encoderIp; - } - - /** - * Get gets the remote port. - * - * @return the encoderPort value - */ - public String encoderPort() { - return this.encoderPort; - } - - /** - * Get gets the first timestamp of the data chunk received. - * - * @return the timestamp value - */ - public String timestamp() { - return this.timestamp; - } - - /** - * Get gets the duration of the first data chunk. - * - * @return the duration value - */ - public String duration() { - return this.duration; - } - - /** - * Get gets the timescale in which timestamp is represented. - * - * @return the timescale value - */ - public String timescale() { - return this.timescale; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingStreamsOutOfSyncEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingStreamsOutOfSyncEventData.java deleted file mode 100644 index be9659d216d5f..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingStreamsOutOfSyncEventData.java +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Incoming streams out of sync event data. - */ -public class MediaLiveEventIncomingStreamsOutOfSyncEventData { - /** - * Gets the minimum last timestamp received. - */ - @JsonProperty(value = "minLastTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String minLastTimestamp; - - /** - * Gets the type of stream with minimum last timestamp. - */ - @JsonProperty(value = "typeOfStreamWithMinLastTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String typeOfStreamWithMinLastTimestamp; - - /** - * Gets the maximum timestamp among all the tracks (audio or video). - */ - @JsonProperty(value = "maxLastTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String maxLastTimestamp; - - /** - * Gets the type of stream with maximum last timestamp. - */ - @JsonProperty(value = "typeOfStreamWithMaxLastTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String typeOfStreamWithMaxLastTimestamp; - - /** - * Gets the timescale in which "MinLastTimestamp" is represented. - */ - @JsonProperty(value = "timescaleOfMinLastTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String timescaleOfMinLastTimestamp; - - /** - * Gets the timescale in which "MaxLastTimestamp" is represented. - */ - @JsonProperty(value = "timescaleOfMaxLastTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String timescaleOfMaxLastTimestamp; - - /** - * Get gets the minimum last timestamp received. - * - * @return the minLastTimestamp value - */ - public String minLastTimestamp() { - return this.minLastTimestamp; - } - - /** - * Get gets the type of stream with minimum last timestamp. - * - * @return the typeOfStreamWithMinLastTimestamp value - */ - public String typeOfStreamWithMinLastTimestamp() { - return this.typeOfStreamWithMinLastTimestamp; - } - - /** - * Get gets the maximum timestamp among all the tracks (audio or video). - * - * @return the maxLastTimestamp value - */ - public String maxLastTimestamp() { - return this.maxLastTimestamp; - } - - /** - * Get gets the type of stream with maximum last timestamp. - * - * @return the typeOfStreamWithMaxLastTimestamp value - */ - public String typeOfStreamWithMaxLastTimestamp() { - return this.typeOfStreamWithMaxLastTimestamp; - } - - /** - * Get gets the timescale in which "MinLastTimestamp" is represented. - * - * @return the timescaleOfMinLastTimestamp value - */ - public String timescaleOfMinLastTimestamp() { - return this.timescaleOfMinLastTimestamp; - } - - /** - * Get gets the timescale in which "MaxLastTimestamp" is represented. - * - * @return the timescaleOfMaxLastTimestamp value - */ - public String timescaleOfMaxLastTimestamp() { - return this.timescaleOfMaxLastTimestamp; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.java deleted file mode 100644 index cdb95bb51dcdc..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.java +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Incoming video stream out of synch event data. - */ -public class MediaLiveEventIncomingVideoStreamsOutOfSyncEventData { - /** - * Gets the first timestamp received for one of the quality levels. - */ - @JsonProperty(value = "firstTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String firstTimestamp; - - /** - * Gets the duration of the data chunk with first timestamp. - */ - @JsonProperty(value = "firstDuration", access = JsonProperty.Access.WRITE_ONLY) - private String firstDuration; - - /** - * Gets the timestamp received for some other quality levels. - */ - @JsonProperty(value = "secondTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String secondTimestamp; - - /** - * Gets the duration of the data chunk with second timestamp. - */ - @JsonProperty(value = "secondDuration", access = JsonProperty.Access.WRITE_ONLY) - private String secondDuration; - - /** - * Gets the timescale in which both the timestamps and durations are - * represented. - */ - @JsonProperty(value = "timescale", access = JsonProperty.Access.WRITE_ONLY) - private String timescale; - - /** - * Get gets the first timestamp received for one of the quality levels. - * - * @return the firstTimestamp value - */ - public String firstTimestamp() { - return this.firstTimestamp; - } - - /** - * Get gets the duration of the data chunk with first timestamp. - * - * @return the firstDuration value - */ - public String firstDuration() { - return this.firstDuration; - } - - /** - * Get gets the timestamp received for some other quality levels. - * - * @return the secondTimestamp value - */ - public String secondTimestamp() { - return this.secondTimestamp; - } - - /** - * Get gets the duration of the data chunk with second timestamp. - * - * @return the secondDuration value - */ - public String secondDuration() { - return this.secondDuration; - } - - /** - * Get gets the timescale in which both the timestamps and durations are represented. - * - * @return the timescale value - */ - public String timescale() { - return this.timescale; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIngestHeartbeatEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIngestHeartbeatEventData.java deleted file mode 100644 index 957dee3a244d8..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventIngestHeartbeatEventData.java +++ /dev/null @@ -1,197 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Ingest fragment dropped event data. - */ -public class MediaLiveEventIngestHeartbeatEventData { - /** - * Gets the type of the track (Audio / Video). - */ - @JsonProperty(value = "trackType", access = JsonProperty.Access.WRITE_ONLY) - private String trackType; - - /** - * Gets the track name. - */ - @JsonProperty(value = "trackName", access = JsonProperty.Access.WRITE_ONLY) - private String trackName; - - /** - * Gets the bitrate of the track. - */ - @JsonProperty(value = "bitrate", access = JsonProperty.Access.WRITE_ONLY) - private Long bitrate; - - /** - * Gets the incoming bitrate. - */ - @JsonProperty(value = "incomingBitrate", access = JsonProperty.Access.WRITE_ONLY) - private Long incomingBitrate; - - /** - * Gets the last timestamp. - */ - @JsonProperty(value = "lastTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String lastTimestamp; - - /** - * Gets the timescale of the last timestamp. - */ - @JsonProperty(value = "timescale", access = JsonProperty.Access.WRITE_ONLY) - private String timescale; - - /** - * Gets the fragment Overlap count. - */ - @JsonProperty(value = "overlapCount", access = JsonProperty.Access.WRITE_ONLY) - private Long overlapCount; - - /** - * Gets the fragment Discontinuity count. - */ - @JsonProperty(value = "discontinuityCount", access = JsonProperty.Access.WRITE_ONLY) - private Long discontinuityCount; - - /** - * Gets Non increasing count. - */ - @JsonProperty(value = "nonincreasingCount", access = JsonProperty.Access.WRITE_ONLY) - private Long nonincreasingCount; - - /** - * Gets a value indicating whether unexpected bitrate is present or not. - */ - @JsonProperty(value = "unexpectedBitrate", access = JsonProperty.Access.WRITE_ONLY) - private Boolean unexpectedBitrate; - - /** - * Gets the state of the live event. - */ - @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) - private String state; - - /** - * Gets a value indicating whether preview is healthy or not. - */ - @JsonProperty(value = "healthy", access = JsonProperty.Access.WRITE_ONLY) - private Boolean healthy; - - /** - * Get gets the type of the track (Audio / Video). - * - * @return the trackType value - */ - public String trackType() { - return this.trackType; - } - - /** - * Get gets the track name. - * - * @return the trackName value - */ - public String trackName() { - return this.trackName; - } - - /** - * Get gets the bitrate of the track. - * - * @return the bitrate value - */ - public Long bitrate() { - return this.bitrate; - } - - /** - * Get gets the incoming bitrate. - * - * @return the incomingBitrate value - */ - public Long incomingBitrate() { - return this.incomingBitrate; - } - - /** - * Get gets the last timestamp. - * - * @return the lastTimestamp value - */ - public String lastTimestamp() { - return this.lastTimestamp; - } - - /** - * Get gets the timescale of the last timestamp. - * - * @return the timescale value - */ - public String timescale() { - return this.timescale; - } - - /** - * Get gets the fragment Overlap count. - * - * @return the overlapCount value - */ - public Long overlapCount() { - return this.overlapCount; - } - - /** - * Get gets the fragment Discontinuity count. - * - * @return the discontinuityCount value - */ - public Long discontinuityCount() { - return this.discontinuityCount; - } - - /** - * Get gets Non increasing count. - * - * @return the nonincreasingCount value - */ - public Long nonincreasingCount() { - return this.nonincreasingCount; - } - - /** - * Get gets a value indicating whether unexpected bitrate is present or not. - * - * @return the unexpectedBitrate value - */ - public Boolean unexpectedBitrate() { - return this.unexpectedBitrate; - } - - /** - * Get gets the state of the live event. - * - * @return the state value - */ - public String state() { - return this.state; - } - - /** - * Get gets a value indicating whether preview is healthy or not. - * - * @return the healthy value - */ - public Boolean healthy() { - return this.healthy; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventTrackDiscontinuityDetectedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventTrackDiscontinuityDetectedEventData.java deleted file mode 100644 index 18a3882a560ab..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/MediaLiveEventTrackDiscontinuityDetectedEventData.java +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Ingest track discontinuity detected event data. - */ -public class MediaLiveEventTrackDiscontinuityDetectedEventData { - /** - * Gets the type of the track (Audio / Video). - */ - @JsonProperty(value = "trackType", access = JsonProperty.Access.WRITE_ONLY) - private String trackType; - - /** - * Gets the track name. - */ - @JsonProperty(value = "trackName", access = JsonProperty.Access.WRITE_ONLY) - private String trackName; - - /** - * Gets the bitrate. - */ - @JsonProperty(value = "bitrate", access = JsonProperty.Access.WRITE_ONLY) - private Long bitrate; - - /** - * Gets the timestamp of the previous fragment. - */ - @JsonProperty(value = "previousTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String previousTimestamp; - - /** - * Gets the timestamp of the current fragment. - */ - @JsonProperty(value = "newTimestamp", access = JsonProperty.Access.WRITE_ONLY) - private String newTimestamp; - - /** - * Gets the timescale in which both timestamps and discontinuity gap are - * represented. - */ - @JsonProperty(value = "timescale", access = JsonProperty.Access.WRITE_ONLY) - private String timescale; - - /** - * Gets the discontinuity gap between PreviousTimestamp and NewTimestamp. - */ - @JsonProperty(value = "discontinuityGap", access = JsonProperty.Access.WRITE_ONLY) - private String discontinuityGap; - - /** - * Get gets the type of the track (Audio / Video). - * - * @return the trackType value - */ - public String trackType() { - return this.trackType; - } - - /** - * Get gets the track name. - * - * @return the trackName value - */ - public String trackName() { - return this.trackName; - } - - /** - * Get gets the bitrate. - * - * @return the bitrate value - */ - public Long bitrate() { - return this.bitrate; - } - - /** - * Get gets the timestamp of the previous fragment. - * - * @return the previousTimestamp value - */ - public String previousTimestamp() { - return this.previousTimestamp; - } - - /** - * Get gets the timestamp of the current fragment. - * - * @return the newTimestamp value - */ - public String newTimestamp() { - return this.newTimestamp; - } - - /** - * Get gets the timescale in which both timestamps and discontinuity gap are represented. - * - * @return the timescale value - */ - public String timescale() { - return this.timescale; - } - - /** - * Get gets the discontinuity gap between PreviousTimestamp and NewTimestamp. - * - * @return the discontinuityGap value - */ - public String discontinuityGap() { - return this.discontinuityGap; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionCancelData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionCancelData.java deleted file mode 100644 index a5448a68f93c5..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionCancelData.java +++ /dev/null @@ -1,305 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for an - * Microsoft.Resources.ResourceActionCancel event. This is raised when a - * resource action operation is canceled. - */ -public class ResourceActionCancelData { - /** - * The tenant ID of the resource. - */ - @JsonProperty(value = "tenantId") - private String tenantId; - - /** - * The subscription ID of the resource. - */ - @JsonProperty(value = "subscriptionId") - private String subscriptionId; - - /** - * The resource group of the resource. - */ - @JsonProperty(value = "resourceGroup") - private String resourceGroup; - - /** - * The resource provider performing the operation. - */ - @JsonProperty(value = "resourceProvider") - private String resourceProvider; - - /** - * The URI of the resource in the operation. - */ - @JsonProperty(value = "resourceUri") - private String resourceUri; - - /** - * The operation that was performed. - */ - @JsonProperty(value = "operationName") - private String operationName; - - /** - * The status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /** - * The requested authorization for the operation. - */ - @JsonProperty(value = "authorization") - private String authorization; - - /** - * The properties of the claims. - */ - @JsonProperty(value = "claims") - private String claims; - - /** - * An operation ID used for troubleshooting. - */ - @JsonProperty(value = "correlationId") - private String correlationId; - - /** - * The details of the operation. - */ - @JsonProperty(value = "httpRequest") - private String httpRequest; - - /** - * Get the tenant ID of the resource. - * - * @return the tenantId value - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenant ID of the resource. - * - * @param tenantId the tenantId value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the subscription ID of the resource. - * - * @return the subscriptionId value - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscription ID of the resource. - * - * @param subscriptionId the subscriptionId value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resource group of the resource. - * - * @return the resourceGroup value - */ - public String resourceGroup() { - return this.resourceGroup; - } - - /** - * Set the resource group of the resource. - * - * @param resourceGroup the resourceGroup value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withResourceGroup(String resourceGroup) { - this.resourceGroup = resourceGroup; - return this; - } - - /** - * Get the resource provider performing the operation. - * - * @return the resourceProvider value - */ - public String resourceProvider() { - return this.resourceProvider; - } - - /** - * Set the resource provider performing the operation. - * - * @param resourceProvider the resourceProvider value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withResourceProvider(String resourceProvider) { - this.resourceProvider = resourceProvider; - return this; - } - - /** - * Get the URI of the resource in the operation. - * - * @return the resourceUri value - */ - public String resourceUri() { - return this.resourceUri; - } - - /** - * Set the URI of the resource in the operation. - * - * @param resourceUri the resourceUri value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withResourceUri(String resourceUri) { - this.resourceUri = resourceUri; - return this; - } - - /** - * Get the operation that was performed. - * - * @return the operationName value - */ - public String operationName() { - return this.operationName; - } - - /** - * Set the operation that was performed. - * - * @param operationName the operationName value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withOperationName(String operationName) { - this.operationName = operationName; - return this; - } - - /** - * Get the status of the operation. - * - * @return the status value - */ - public String status() { - return this.status; - } - - /** - * Set the status of the operation. - * - * @param status the status value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the requested authorization for the operation. - * - * @return the authorization value - */ - public String authorization() { - return this.authorization; - } - - /** - * Set the requested authorization for the operation. - * - * @param authorization the authorization value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withAuthorization(String authorization) { - this.authorization = authorization; - return this; - } - - /** - * Get the properties of the claims. - * - * @return the claims value - */ - public String claims() { - return this.claims; - } - - /** - * Set the properties of the claims. - * - * @param claims the claims value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withClaims(String claims) { - this.claims = claims; - return this; - } - - /** - * Get an operation ID used for troubleshooting. - * - * @return the correlationId value - */ - public String correlationId() { - return this.correlationId; - } - - /** - * Set an operation ID used for troubleshooting. - * - * @param correlationId the correlationId value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withCorrelationId(String correlationId) { - this.correlationId = correlationId; - return this; - } - - /** - * Get the details of the operation. - * - * @return the httpRequest value - */ - public String httpRequest() { - return this.httpRequest; - } - - /** - * Set the details of the operation. - * - * @param httpRequest the httpRequest value to set - * @return the ResourceActionCancelData object itself. - */ - public ResourceActionCancelData withHttpRequest(String httpRequest) { - this.httpRequest = httpRequest; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionFailureData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionFailureData.java deleted file mode 100644 index e8a03a0497163..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionFailureData.java +++ /dev/null @@ -1,305 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceActionFailure event. This is raised when a - * resource action operation fails. - */ -public class ResourceActionFailureData { - /** - * The tenant ID of the resource. - */ - @JsonProperty(value = "tenantId") - private String tenantId; - - /** - * The subscription ID of the resource. - */ - @JsonProperty(value = "subscriptionId") - private String subscriptionId; - - /** - * The resource group of the resource. - */ - @JsonProperty(value = "resourceGroup") - private String resourceGroup; - - /** - * The resource provider performing the operation. - */ - @JsonProperty(value = "resourceProvider") - private String resourceProvider; - - /** - * The URI of the resource in the operation. - */ - @JsonProperty(value = "resourceUri") - private String resourceUri; - - /** - * The operation that was performed. - */ - @JsonProperty(value = "operationName") - private String operationName; - - /** - * The status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /** - * The requested authorization for the operation. - */ - @JsonProperty(value = "authorization") - private String authorization; - - /** - * The properties of the claims. - */ - @JsonProperty(value = "claims") - private String claims; - - /** - * An operation ID used for troubleshooting. - */ - @JsonProperty(value = "correlationId") - private String correlationId; - - /** - * The details of the operation. - */ - @JsonProperty(value = "httpRequest") - private String httpRequest; - - /** - * Get the tenant ID of the resource. - * - * @return the tenantId value - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenant ID of the resource. - * - * @param tenantId the tenantId value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the subscription ID of the resource. - * - * @return the subscriptionId value - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscription ID of the resource. - * - * @param subscriptionId the subscriptionId value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resource group of the resource. - * - * @return the resourceGroup value - */ - public String resourceGroup() { - return this.resourceGroup; - } - - /** - * Set the resource group of the resource. - * - * @param resourceGroup the resourceGroup value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withResourceGroup(String resourceGroup) { - this.resourceGroup = resourceGroup; - return this; - } - - /** - * Get the resource provider performing the operation. - * - * @return the resourceProvider value - */ - public String resourceProvider() { - return this.resourceProvider; - } - - /** - * Set the resource provider performing the operation. - * - * @param resourceProvider the resourceProvider value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withResourceProvider(String resourceProvider) { - this.resourceProvider = resourceProvider; - return this; - } - - /** - * Get the URI of the resource in the operation. - * - * @return the resourceUri value - */ - public String resourceUri() { - return this.resourceUri; - } - - /** - * Set the URI of the resource in the operation. - * - * @param resourceUri the resourceUri value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withResourceUri(String resourceUri) { - this.resourceUri = resourceUri; - return this; - } - - /** - * Get the operation that was performed. - * - * @return the operationName value - */ - public String operationName() { - return this.operationName; - } - - /** - * Set the operation that was performed. - * - * @param operationName the operationName value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withOperationName(String operationName) { - this.operationName = operationName; - return this; - } - - /** - * Get the status of the operation. - * - * @return the status value - */ - public String status() { - return this.status; - } - - /** - * Set the status of the operation. - * - * @param status the status value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the requested authorization for the operation. - * - * @return the authorization value - */ - public String authorization() { - return this.authorization; - } - - /** - * Set the requested authorization for the operation. - * - * @param authorization the authorization value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withAuthorization(String authorization) { - this.authorization = authorization; - return this; - } - - /** - * Get the properties of the claims. - * - * @return the claims value - */ - public String claims() { - return this.claims; - } - - /** - * Set the properties of the claims. - * - * @param claims the claims value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withClaims(String claims) { - this.claims = claims; - return this; - } - - /** - * Get an operation ID used for troubleshooting. - * - * @return the correlationId value - */ - public String correlationId() { - return this.correlationId; - } - - /** - * Set an operation ID used for troubleshooting. - * - * @param correlationId the correlationId value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withCorrelationId(String correlationId) { - this.correlationId = correlationId; - return this; - } - - /** - * Get the details of the operation. - * - * @return the httpRequest value - */ - public String httpRequest() { - return this.httpRequest; - } - - /** - * Set the details of the operation. - * - * @param httpRequest the httpRequest value to set - * @return the ResourceActionFailureData object itself. - */ - public ResourceActionFailureData withHttpRequest(String httpRequest) { - this.httpRequest = httpRequest; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionSuccessData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionSuccessData.java deleted file mode 100644 index d4fdb8c178240..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceActionSuccessData.java +++ /dev/null @@ -1,305 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceActionSuccess event. This is raised when a - * resource action operation succeeds. - */ -public class ResourceActionSuccessData { - /** - * The tenant ID of the resource. - */ - @JsonProperty(value = "tenantId") - private String tenantId; - - /** - * The subscription ID of the resource. - */ - @JsonProperty(value = "subscriptionId") - private String subscriptionId; - - /** - * The resource group of the resource. - */ - @JsonProperty(value = "resourceGroup") - private String resourceGroup; - - /** - * The resource provider performing the operation. - */ - @JsonProperty(value = "resourceProvider") - private String resourceProvider; - - /** - * The URI of the resource in the operation. - */ - @JsonProperty(value = "resourceUri") - private String resourceUri; - - /** - * The operation that was performed. - */ - @JsonProperty(value = "operationName") - private String operationName; - - /** - * The status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /** - * The requested authorization for the operation. - */ - @JsonProperty(value = "authorization") - private String authorization; - - /** - * The properties of the claims. - */ - @JsonProperty(value = "claims") - private String claims; - - /** - * An operation ID used for troubleshooting. - */ - @JsonProperty(value = "correlationId") - private String correlationId; - - /** - * The details of the operation. - */ - @JsonProperty(value = "httpRequest") - private String httpRequest; - - /** - * Get the tenant ID of the resource. - * - * @return the tenantId value - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenant ID of the resource. - * - * @param tenantId the tenantId value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the subscription ID of the resource. - * - * @return the subscriptionId value - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscription ID of the resource. - * - * @param subscriptionId the subscriptionId value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resource group of the resource. - * - * @return the resourceGroup value - */ - public String resourceGroup() { - return this.resourceGroup; - } - - /** - * Set the resource group of the resource. - * - * @param resourceGroup the resourceGroup value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withResourceGroup(String resourceGroup) { - this.resourceGroup = resourceGroup; - return this; - } - - /** - * Get the resource provider performing the operation. - * - * @return the resourceProvider value - */ - public String resourceProvider() { - return this.resourceProvider; - } - - /** - * Set the resource provider performing the operation. - * - * @param resourceProvider the resourceProvider value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withResourceProvider(String resourceProvider) { - this.resourceProvider = resourceProvider; - return this; - } - - /** - * Get the URI of the resource in the operation. - * - * @return the resourceUri value - */ - public String resourceUri() { - return this.resourceUri; - } - - /** - * Set the URI of the resource in the operation. - * - * @param resourceUri the resourceUri value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withResourceUri(String resourceUri) { - this.resourceUri = resourceUri; - return this; - } - - /** - * Get the operation that was performed. - * - * @return the operationName value - */ - public String operationName() { - return this.operationName; - } - - /** - * Set the operation that was performed. - * - * @param operationName the operationName value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withOperationName(String operationName) { - this.operationName = operationName; - return this; - } - - /** - * Get the status of the operation. - * - * @return the status value - */ - public String status() { - return this.status; - } - - /** - * Set the status of the operation. - * - * @param status the status value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the requested authorization for the operation. - * - * @return the authorization value - */ - public String authorization() { - return this.authorization; - } - - /** - * Set the requested authorization for the operation. - * - * @param authorization the authorization value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withAuthorization(String authorization) { - this.authorization = authorization; - return this; - } - - /** - * Get the properties of the claims. - * - * @return the claims value - */ - public String claims() { - return this.claims; - } - - /** - * Set the properties of the claims. - * - * @param claims the claims value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withClaims(String claims) { - this.claims = claims; - return this; - } - - /** - * Get an operation ID used for troubleshooting. - * - * @return the correlationId value - */ - public String correlationId() { - return this.correlationId; - } - - /** - * Set an operation ID used for troubleshooting. - * - * @param correlationId the correlationId value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withCorrelationId(String correlationId) { - this.correlationId = correlationId; - return this; - } - - /** - * Get the details of the operation. - * - * @return the httpRequest value - */ - public String httpRequest() { - return this.httpRequest; - } - - /** - * Set the details of the operation. - * - * @param httpRequest the httpRequest value to set - * @return the ResourceActionSuccessData object itself. - */ - public ResourceActionSuccessData withHttpRequest(String httpRequest) { - this.httpRequest = httpRequest; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteCancelData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteCancelData.java deleted file mode 100644 index 5dc0840d56f5e..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteCancelData.java +++ /dev/null @@ -1,305 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for an - * Microsoft.Resources.ResourceDeleteCancel event. This is raised when a - * resource delete operation is canceled. - */ -public class ResourceDeleteCancelData { - /** - * The tenant ID of the resource. - */ - @JsonProperty(value = "tenantId") - private String tenantId; - - /** - * The subscription ID of the resource. - */ - @JsonProperty(value = "subscriptionId") - private String subscriptionId; - - /** - * The resource group of the resource. - */ - @JsonProperty(value = "resourceGroup") - private String resourceGroup; - - /** - * The resource provider performing the operation. - */ - @JsonProperty(value = "resourceProvider") - private String resourceProvider; - - /** - * The URI of the resource in the operation. - */ - @JsonProperty(value = "resourceUri") - private String resourceUri; - - /** - * The operation that was performed. - */ - @JsonProperty(value = "operationName") - private String operationName; - - /** - * The status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /** - * The requested authorization for the operation. - */ - @JsonProperty(value = "authorization") - private String authorization; - - /** - * The properties of the claims. - */ - @JsonProperty(value = "claims") - private String claims; - - /** - * An operation ID used for troubleshooting. - */ - @JsonProperty(value = "correlationId") - private String correlationId; - - /** - * The details of the operation. - */ - @JsonProperty(value = "httpRequest") - private String httpRequest; - - /** - * Get the tenant ID of the resource. - * - * @return the tenantId value - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenant ID of the resource. - * - * @param tenantId the tenantId value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the subscription ID of the resource. - * - * @return the subscriptionId value - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscription ID of the resource. - * - * @param subscriptionId the subscriptionId value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resource group of the resource. - * - * @return the resourceGroup value - */ - public String resourceGroup() { - return this.resourceGroup; - } - - /** - * Set the resource group of the resource. - * - * @param resourceGroup the resourceGroup value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withResourceGroup(String resourceGroup) { - this.resourceGroup = resourceGroup; - return this; - } - - /** - * Get the resource provider performing the operation. - * - * @return the resourceProvider value - */ - public String resourceProvider() { - return this.resourceProvider; - } - - /** - * Set the resource provider performing the operation. - * - * @param resourceProvider the resourceProvider value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withResourceProvider(String resourceProvider) { - this.resourceProvider = resourceProvider; - return this; - } - - /** - * Get the URI of the resource in the operation. - * - * @return the resourceUri value - */ - public String resourceUri() { - return this.resourceUri; - } - - /** - * Set the URI of the resource in the operation. - * - * @param resourceUri the resourceUri value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withResourceUri(String resourceUri) { - this.resourceUri = resourceUri; - return this; - } - - /** - * Get the operation that was performed. - * - * @return the operationName value - */ - public String operationName() { - return this.operationName; - } - - /** - * Set the operation that was performed. - * - * @param operationName the operationName value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withOperationName(String operationName) { - this.operationName = operationName; - return this; - } - - /** - * Get the status of the operation. - * - * @return the status value - */ - public String status() { - return this.status; - } - - /** - * Set the status of the operation. - * - * @param status the status value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the requested authorization for the operation. - * - * @return the authorization value - */ - public String authorization() { - return this.authorization; - } - - /** - * Set the requested authorization for the operation. - * - * @param authorization the authorization value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withAuthorization(String authorization) { - this.authorization = authorization; - return this; - } - - /** - * Get the properties of the claims. - * - * @return the claims value - */ - public String claims() { - return this.claims; - } - - /** - * Set the properties of the claims. - * - * @param claims the claims value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withClaims(String claims) { - this.claims = claims; - return this; - } - - /** - * Get an operation ID used for troubleshooting. - * - * @return the correlationId value - */ - public String correlationId() { - return this.correlationId; - } - - /** - * Set an operation ID used for troubleshooting. - * - * @param correlationId the correlationId value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withCorrelationId(String correlationId) { - this.correlationId = correlationId; - return this; - } - - /** - * Get the details of the operation. - * - * @return the httpRequest value - */ - public String httpRequest() { - return this.httpRequest; - } - - /** - * Set the details of the operation. - * - * @param httpRequest the httpRequest value to set - * @return the ResourceDeleteCancelData object itself. - */ - public ResourceDeleteCancelData withHttpRequest(String httpRequest) { - this.httpRequest = httpRequest; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteFailureData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteFailureData.java deleted file mode 100644 index ace55078acff5..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteFailureData.java +++ /dev/null @@ -1,305 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceDeleteFailure event. This is raised when a - * resource delete operation fails. - */ -public class ResourceDeleteFailureData { - /** - * The tenant ID of the resource. - */ - @JsonProperty(value = "tenantId") - private String tenantId; - - /** - * The subscription ID of the resource. - */ - @JsonProperty(value = "subscriptionId") - private String subscriptionId; - - /** - * The resource group of the resource. - */ - @JsonProperty(value = "resourceGroup") - private String resourceGroup; - - /** - * The resource provider performing the operation. - */ - @JsonProperty(value = "resourceProvider") - private String resourceProvider; - - /** - * The URI of the resource in the operation. - */ - @JsonProperty(value = "resourceUri") - private String resourceUri; - - /** - * The operation that was performed. - */ - @JsonProperty(value = "operationName") - private String operationName; - - /** - * The status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /** - * The requested authorization for the operation. - */ - @JsonProperty(value = "authorization") - private String authorization; - - /** - * The properties of the claims. - */ - @JsonProperty(value = "claims") - private String claims; - - /** - * An operation ID used for troubleshooting. - */ - @JsonProperty(value = "correlationId") - private String correlationId; - - /** - * The details of the operation. - */ - @JsonProperty(value = "httpRequest") - private String httpRequest; - - /** - * Get the tenant ID of the resource. - * - * @return the tenantId value - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenant ID of the resource. - * - * @param tenantId the tenantId value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the subscription ID of the resource. - * - * @return the subscriptionId value - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscription ID of the resource. - * - * @param subscriptionId the subscriptionId value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resource group of the resource. - * - * @return the resourceGroup value - */ - public String resourceGroup() { - return this.resourceGroup; - } - - /** - * Set the resource group of the resource. - * - * @param resourceGroup the resourceGroup value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withResourceGroup(String resourceGroup) { - this.resourceGroup = resourceGroup; - return this; - } - - /** - * Get the resource provider performing the operation. - * - * @return the resourceProvider value - */ - public String resourceProvider() { - return this.resourceProvider; - } - - /** - * Set the resource provider performing the operation. - * - * @param resourceProvider the resourceProvider value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withResourceProvider(String resourceProvider) { - this.resourceProvider = resourceProvider; - return this; - } - - /** - * Get the URI of the resource in the operation. - * - * @return the resourceUri value - */ - public String resourceUri() { - return this.resourceUri; - } - - /** - * Set the URI of the resource in the operation. - * - * @param resourceUri the resourceUri value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withResourceUri(String resourceUri) { - this.resourceUri = resourceUri; - return this; - } - - /** - * Get the operation that was performed. - * - * @return the operationName value - */ - public String operationName() { - return this.operationName; - } - - /** - * Set the operation that was performed. - * - * @param operationName the operationName value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withOperationName(String operationName) { - this.operationName = operationName; - return this; - } - - /** - * Get the status of the operation. - * - * @return the status value - */ - public String status() { - return this.status; - } - - /** - * Set the status of the operation. - * - * @param status the status value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the requested authorization for the operation. - * - * @return the authorization value - */ - public String authorization() { - return this.authorization; - } - - /** - * Set the requested authorization for the operation. - * - * @param authorization the authorization value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withAuthorization(String authorization) { - this.authorization = authorization; - return this; - } - - /** - * Get the properties of the claims. - * - * @return the claims value - */ - public String claims() { - return this.claims; - } - - /** - * Set the properties of the claims. - * - * @param claims the claims value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withClaims(String claims) { - this.claims = claims; - return this; - } - - /** - * Get an operation ID used for troubleshooting. - * - * @return the correlationId value - */ - public String correlationId() { - return this.correlationId; - } - - /** - * Set an operation ID used for troubleshooting. - * - * @param correlationId the correlationId value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withCorrelationId(String correlationId) { - this.correlationId = correlationId; - return this; - } - - /** - * Get the details of the operation. - * - * @return the httpRequest value - */ - public String httpRequest() { - return this.httpRequest; - } - - /** - * Set the details of the operation. - * - * @param httpRequest the httpRequest value to set - * @return the ResourceDeleteFailureData object itself. - */ - public ResourceDeleteFailureData withHttpRequest(String httpRequest) { - this.httpRequest = httpRequest; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteSuccessData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteSuccessData.java deleted file mode 100644 index 161393e0c2851..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceDeleteSuccessData.java +++ /dev/null @@ -1,305 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceDeleteSuccess event. This is raised when a - * resource delete operation succeeds. - */ -public class ResourceDeleteSuccessData { - /** - * The tenant ID of the resource. - */ - @JsonProperty(value = "tenantId") - private String tenantId; - - /** - * The subscription ID of the resource. - */ - @JsonProperty(value = "subscriptionId") - private String subscriptionId; - - /** - * The resource group of the resource. - */ - @JsonProperty(value = "resourceGroup") - private String resourceGroup; - - /** - * The resource provider performing the operation. - */ - @JsonProperty(value = "resourceProvider") - private String resourceProvider; - - /** - * The URI of the resource in the operation. - */ - @JsonProperty(value = "resourceUri") - private String resourceUri; - - /** - * The operation that was performed. - */ - @JsonProperty(value = "operationName") - private String operationName; - - /** - * The status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /** - * The requested authorization for the operation. - */ - @JsonProperty(value = "authorization") - private String authorization; - - /** - * The properties of the claims. - */ - @JsonProperty(value = "claims") - private String claims; - - /** - * An operation ID used for troubleshooting. - */ - @JsonProperty(value = "correlationId") - private String correlationId; - - /** - * The details of the operation. - */ - @JsonProperty(value = "httpRequest") - private String httpRequest; - - /** - * Get the tenant ID of the resource. - * - * @return the tenantId value - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenant ID of the resource. - * - * @param tenantId the tenantId value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the subscription ID of the resource. - * - * @return the subscriptionId value - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscription ID of the resource. - * - * @param subscriptionId the subscriptionId value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resource group of the resource. - * - * @return the resourceGroup value - */ - public String resourceGroup() { - return this.resourceGroup; - } - - /** - * Set the resource group of the resource. - * - * @param resourceGroup the resourceGroup value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withResourceGroup(String resourceGroup) { - this.resourceGroup = resourceGroup; - return this; - } - - /** - * Get the resource provider performing the operation. - * - * @return the resourceProvider value - */ - public String resourceProvider() { - return this.resourceProvider; - } - - /** - * Set the resource provider performing the operation. - * - * @param resourceProvider the resourceProvider value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withResourceProvider(String resourceProvider) { - this.resourceProvider = resourceProvider; - return this; - } - - /** - * Get the URI of the resource in the operation. - * - * @return the resourceUri value - */ - public String resourceUri() { - return this.resourceUri; - } - - /** - * Set the URI of the resource in the operation. - * - * @param resourceUri the resourceUri value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withResourceUri(String resourceUri) { - this.resourceUri = resourceUri; - return this; - } - - /** - * Get the operation that was performed. - * - * @return the operationName value - */ - public String operationName() { - return this.operationName; - } - - /** - * Set the operation that was performed. - * - * @param operationName the operationName value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withOperationName(String operationName) { - this.operationName = operationName; - return this; - } - - /** - * Get the status of the operation. - * - * @return the status value - */ - public String status() { - return this.status; - } - - /** - * Set the status of the operation. - * - * @param status the status value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the requested authorization for the operation. - * - * @return the authorization value - */ - public String authorization() { - return this.authorization; - } - - /** - * Set the requested authorization for the operation. - * - * @param authorization the authorization value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withAuthorization(String authorization) { - this.authorization = authorization; - return this; - } - - /** - * Get the properties of the claims. - * - * @return the claims value - */ - public String claims() { - return this.claims; - } - - /** - * Set the properties of the claims. - * - * @param claims the claims value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withClaims(String claims) { - this.claims = claims; - return this; - } - - /** - * Get an operation ID used for troubleshooting. - * - * @return the correlationId value - */ - public String correlationId() { - return this.correlationId; - } - - /** - * Set an operation ID used for troubleshooting. - * - * @param correlationId the correlationId value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withCorrelationId(String correlationId) { - this.correlationId = correlationId; - return this; - } - - /** - * Get the details of the operation. - * - * @return the httpRequest value - */ - public String httpRequest() { - return this.httpRequest; - } - - /** - * Set the details of the operation. - * - * @param httpRequest the httpRequest value to set - * @return the ResourceDeleteSuccessData object itself. - */ - public ResourceDeleteSuccessData withHttpRequest(String httpRequest) { - this.httpRequest = httpRequest; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteCancelData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteCancelData.java deleted file mode 100644 index ab042453db1e3..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteCancelData.java +++ /dev/null @@ -1,305 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceWriteCancel event. This is raised when a - * resource create or update operation is canceled. - */ -public class ResourceWriteCancelData { - /** - * The tenant ID of the resource. - */ - @JsonProperty(value = "tenantId") - private String tenantId; - - /** - * The subscription ID of the resource. - */ - @JsonProperty(value = "subscriptionId") - private String subscriptionId; - - /** - * The resource group of the resource. - */ - @JsonProperty(value = "resourceGroup") - private String resourceGroup; - - /** - * The resource provider performing the operation. - */ - @JsonProperty(value = "resourceProvider") - private String resourceProvider; - - /** - * The URI of the resource in the operation. - */ - @JsonProperty(value = "resourceUri") - private String resourceUri; - - /** - * The operation that was performed. - */ - @JsonProperty(value = "operationName") - private String operationName; - - /** - * The status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /** - * The requested authorization for the operation. - */ - @JsonProperty(value = "authorization") - private String authorization; - - /** - * The properties of the claims. - */ - @JsonProperty(value = "claims") - private String claims; - - /** - * An operation ID used for troubleshooting. - */ - @JsonProperty(value = "correlationId") - private String correlationId; - - /** - * The details of the operation. - */ - @JsonProperty(value = "httpRequest") - private String httpRequest; - - /** - * Get the tenant ID of the resource. - * - * @return the tenantId value - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenant ID of the resource. - * - * @param tenantId the tenantId value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the subscription ID of the resource. - * - * @return the subscriptionId value - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscription ID of the resource. - * - * @param subscriptionId the subscriptionId value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resource group of the resource. - * - * @return the resourceGroup value - */ - public String resourceGroup() { - return this.resourceGroup; - } - - /** - * Set the resource group of the resource. - * - * @param resourceGroup the resourceGroup value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withResourceGroup(String resourceGroup) { - this.resourceGroup = resourceGroup; - return this; - } - - /** - * Get the resource provider performing the operation. - * - * @return the resourceProvider value - */ - public String resourceProvider() { - return this.resourceProvider; - } - - /** - * Set the resource provider performing the operation. - * - * @param resourceProvider the resourceProvider value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withResourceProvider(String resourceProvider) { - this.resourceProvider = resourceProvider; - return this; - } - - /** - * Get the URI of the resource in the operation. - * - * @return the resourceUri value - */ - public String resourceUri() { - return this.resourceUri; - } - - /** - * Set the URI of the resource in the operation. - * - * @param resourceUri the resourceUri value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withResourceUri(String resourceUri) { - this.resourceUri = resourceUri; - return this; - } - - /** - * Get the operation that was performed. - * - * @return the operationName value - */ - public String operationName() { - return this.operationName; - } - - /** - * Set the operation that was performed. - * - * @param operationName the operationName value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withOperationName(String operationName) { - this.operationName = operationName; - return this; - } - - /** - * Get the status of the operation. - * - * @return the status value - */ - public String status() { - return this.status; - } - - /** - * Set the status of the operation. - * - * @param status the status value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the requested authorization for the operation. - * - * @return the authorization value - */ - public String authorization() { - return this.authorization; - } - - /** - * Set the requested authorization for the operation. - * - * @param authorization the authorization value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withAuthorization(String authorization) { - this.authorization = authorization; - return this; - } - - /** - * Get the properties of the claims. - * - * @return the claims value - */ - public String claims() { - return this.claims; - } - - /** - * Set the properties of the claims. - * - * @param claims the claims value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withClaims(String claims) { - this.claims = claims; - return this; - } - - /** - * Get an operation ID used for troubleshooting. - * - * @return the correlationId value - */ - public String correlationId() { - return this.correlationId; - } - - /** - * Set an operation ID used for troubleshooting. - * - * @param correlationId the correlationId value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withCorrelationId(String correlationId) { - this.correlationId = correlationId; - return this; - } - - /** - * Get the details of the operation. - * - * @return the httpRequest value - */ - public String httpRequest() { - return this.httpRequest; - } - - /** - * Set the details of the operation. - * - * @param httpRequest the httpRequest value to set - * @return the ResourceWriteCancelData object itself. - */ - public ResourceWriteCancelData withHttpRequest(String httpRequest) { - this.httpRequest = httpRequest; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteFailureData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteFailureData.java deleted file mode 100644 index 1f41631b81d42..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteFailureData.java +++ /dev/null @@ -1,305 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceWriteFailure event. This is raised when a - * resource create or update operation fails. - */ -public class ResourceWriteFailureData { - /** - * The tenant ID of the resource. - */ - @JsonProperty(value = "tenantId") - private String tenantId; - - /** - * The subscription ID of the resource. - */ - @JsonProperty(value = "subscriptionId") - private String subscriptionId; - - /** - * The resource group of the resource. - */ - @JsonProperty(value = "resourceGroup") - private String resourceGroup; - - /** - * The resource provider performing the operation. - */ - @JsonProperty(value = "resourceProvider") - private String resourceProvider; - - /** - * The URI of the resource in the operation. - */ - @JsonProperty(value = "resourceUri") - private String resourceUri; - - /** - * The operation that was performed. - */ - @JsonProperty(value = "operationName") - private String operationName; - - /** - * The status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /** - * The requested authorization for the operation. - */ - @JsonProperty(value = "authorization") - private String authorization; - - /** - * The properties of the claims. - */ - @JsonProperty(value = "claims") - private String claims; - - /** - * An operation ID used for troubleshooting. - */ - @JsonProperty(value = "correlationId") - private String correlationId; - - /** - * The details of the operation. - */ - @JsonProperty(value = "httpRequest") - private String httpRequest; - - /** - * Get the tenant ID of the resource. - * - * @return the tenantId value - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenant ID of the resource. - * - * @param tenantId the tenantId value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the subscription ID of the resource. - * - * @return the subscriptionId value - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscription ID of the resource. - * - * @param subscriptionId the subscriptionId value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resource group of the resource. - * - * @return the resourceGroup value - */ - public String resourceGroup() { - return this.resourceGroup; - } - - /** - * Set the resource group of the resource. - * - * @param resourceGroup the resourceGroup value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withResourceGroup(String resourceGroup) { - this.resourceGroup = resourceGroup; - return this; - } - - /** - * Get the resource provider performing the operation. - * - * @return the resourceProvider value - */ - public String resourceProvider() { - return this.resourceProvider; - } - - /** - * Set the resource provider performing the operation. - * - * @param resourceProvider the resourceProvider value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withResourceProvider(String resourceProvider) { - this.resourceProvider = resourceProvider; - return this; - } - - /** - * Get the URI of the resource in the operation. - * - * @return the resourceUri value - */ - public String resourceUri() { - return this.resourceUri; - } - - /** - * Set the URI of the resource in the operation. - * - * @param resourceUri the resourceUri value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withResourceUri(String resourceUri) { - this.resourceUri = resourceUri; - return this; - } - - /** - * Get the operation that was performed. - * - * @return the operationName value - */ - public String operationName() { - return this.operationName; - } - - /** - * Set the operation that was performed. - * - * @param operationName the operationName value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withOperationName(String operationName) { - this.operationName = operationName; - return this; - } - - /** - * Get the status of the operation. - * - * @return the status value - */ - public String status() { - return this.status; - } - - /** - * Set the status of the operation. - * - * @param status the status value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the requested authorization for the operation. - * - * @return the authorization value - */ - public String authorization() { - return this.authorization; - } - - /** - * Set the requested authorization for the operation. - * - * @param authorization the authorization value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withAuthorization(String authorization) { - this.authorization = authorization; - return this; - } - - /** - * Get the properties of the claims. - * - * @return the claims value - */ - public String claims() { - return this.claims; - } - - /** - * Set the properties of the claims. - * - * @param claims the claims value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withClaims(String claims) { - this.claims = claims; - return this; - } - - /** - * Get an operation ID used for troubleshooting. - * - * @return the correlationId value - */ - public String correlationId() { - return this.correlationId; - } - - /** - * Set an operation ID used for troubleshooting. - * - * @param correlationId the correlationId value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withCorrelationId(String correlationId) { - this.correlationId = correlationId; - return this; - } - - /** - * Get the details of the operation. - * - * @return the httpRequest value - */ - public String httpRequest() { - return this.httpRequest; - } - - /** - * Set the details of the operation. - * - * @param httpRequest the httpRequest value to set - * @return the ResourceWriteFailureData object itself. - */ - public ResourceWriteFailureData withHttpRequest(String httpRequest) { - this.httpRequest = httpRequest; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteSuccessData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteSuccessData.java deleted file mode 100644 index 844b900ebdecb..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ResourceWriteSuccessData.java +++ /dev/null @@ -1,305 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceWriteSuccess event. This is raised when a - * resource create or update operation succeeds. - */ -public class ResourceWriteSuccessData { - /** - * The tenant ID of the resource. - */ - @JsonProperty(value = "tenantId") - private String tenantId; - - /** - * The subscription ID of the resource. - */ - @JsonProperty(value = "subscriptionId") - private String subscriptionId; - - /** - * The resource group of the resource. - */ - @JsonProperty(value = "resourceGroup") - private String resourceGroup; - - /** - * The resource provider performing the operation. - */ - @JsonProperty(value = "resourceProvider") - private String resourceProvider; - - /** - * The URI of the resource in the operation. - */ - @JsonProperty(value = "resourceUri") - private String resourceUri; - - /** - * The operation that was performed. - */ - @JsonProperty(value = "operationName") - private String operationName; - - /** - * The status of the operation. - */ - @JsonProperty(value = "status") - private String status; - - /** - * The requested authorization for the operation. - */ - @JsonProperty(value = "authorization") - private String authorization; - - /** - * The properties of the claims. - */ - @JsonProperty(value = "claims") - private String claims; - - /** - * An operation ID used for troubleshooting. - */ - @JsonProperty(value = "correlationId") - private String correlationId; - - /** - * The details of the operation. - */ - @JsonProperty(value = "httpRequest") - private String httpRequest; - - /** - * Get the tenant ID of the resource. - * - * @return the tenantId value - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenant ID of the resource. - * - * @param tenantId the tenantId value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the subscription ID of the resource. - * - * @return the subscriptionId value - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscription ID of the resource. - * - * @param subscriptionId the subscriptionId value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resource group of the resource. - * - * @return the resourceGroup value - */ - public String resourceGroup() { - return this.resourceGroup; - } - - /** - * Set the resource group of the resource. - * - * @param resourceGroup the resourceGroup value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withResourceGroup(String resourceGroup) { - this.resourceGroup = resourceGroup; - return this; - } - - /** - * Get the resource provider performing the operation. - * - * @return the resourceProvider value - */ - public String resourceProvider() { - return this.resourceProvider; - } - - /** - * Set the resource provider performing the operation. - * - * @param resourceProvider the resourceProvider value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withResourceProvider(String resourceProvider) { - this.resourceProvider = resourceProvider; - return this; - } - - /** - * Get the URI of the resource in the operation. - * - * @return the resourceUri value - */ - public String resourceUri() { - return this.resourceUri; - } - - /** - * Set the URI of the resource in the operation. - * - * @param resourceUri the resourceUri value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withResourceUri(String resourceUri) { - this.resourceUri = resourceUri; - return this; - } - - /** - * Get the operation that was performed. - * - * @return the operationName value - */ - public String operationName() { - return this.operationName; - } - - /** - * Set the operation that was performed. - * - * @param operationName the operationName value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withOperationName(String operationName) { - this.operationName = operationName; - return this; - } - - /** - * Get the status of the operation. - * - * @return the status value - */ - public String status() { - return this.status; - } - - /** - * Set the status of the operation. - * - * @param status the status value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the requested authorization for the operation. - * - * @return the authorization value - */ - public String authorization() { - return this.authorization; - } - - /** - * Set the requested authorization for the operation. - * - * @param authorization the authorization value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withAuthorization(String authorization) { - this.authorization = authorization; - return this; - } - - /** - * Get the properties of the claims. - * - * @return the claims value - */ - public String claims() { - return this.claims; - } - - /** - * Set the properties of the claims. - * - * @param claims the claims value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withClaims(String claims) { - this.claims = claims; - return this; - } - - /** - * Get an operation ID used for troubleshooting. - * - * @return the correlationId value - */ - public String correlationId() { - return this.correlationId; - } - - /** - * Set an operation ID used for troubleshooting. - * - * @param correlationId the correlationId value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withCorrelationId(String correlationId) { - this.correlationId = correlationId; - return this; - } - - /** - * Get the details of the operation. - * - * @return the httpRequest value - */ - public String httpRequest() { - return this.httpRequest; - } - - /** - * Set the details of the operation. - * - * @param httpRequest the httpRequest value to set - * @return the ResourceWriteSuccessData object itself. - */ - public ResourceWriteSuccessData withHttpRequest(String httpRequest) { - this.httpRequest = httpRequest; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ServiceBusActiveMessagesAvailableWithNoListenersEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ServiceBusActiveMessagesAvailableWithNoListenersEventData.java deleted file mode 100644 index 485a96a8f64b6..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ServiceBusActiveMessagesAvailableWithNoListenersEventData.java +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners event. - */ -public class ServiceBusActiveMessagesAvailableWithNoListenersEventData { - /** - * The namespace name of the Microsoft.ServiceBus resource. - */ - @JsonProperty(value = "namespaceName") - private String namespaceName; - - /** - * The endpoint of the Microsoft.ServiceBus resource. - */ - @JsonProperty(value = "requestUri") - private String requestUri; - - /** - * The entity type of the Microsoft.ServiceBus resource. Could be one of - * 'queue' or 'subscriber'. - */ - @JsonProperty(value = "entityType") - private String entityType; - - /** - * The name of the Microsoft.ServiceBus queue. If the entity type is of - * type 'subscriber', then this value will be null. - */ - @JsonProperty(value = "queueName") - private String queueName; - - /** - * The name of the Microsoft.ServiceBus topic. If the entity type is of - * type 'queue', then this value will be null. - */ - @JsonProperty(value = "topicName") - private String topicName; - - /** - * The name of the Microsoft.ServiceBus topic's subscription. If the entity - * type is of type 'queue', then this value will be null. - */ - @JsonProperty(value = "subscriptionName") - private String subscriptionName; - - /** - * Get the namespace name of the Microsoft.ServiceBus resource. - * - * @return the namespaceName value - */ - public String namespaceName() { - return this.namespaceName; - } - - /** - * Set the namespace name of the Microsoft.ServiceBus resource. - * - * @param namespaceName the namespaceName value to set - * @return the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusActiveMessagesAvailableWithNoListenersEventData withNamespaceName(String namespaceName) { - this.namespaceName = namespaceName; - return this; - } - - /** - * Get the endpoint of the Microsoft.ServiceBus resource. - * - * @return the requestUri value - */ - public String requestUri() { - return this.requestUri; - } - - /** - * Set the endpoint of the Microsoft.ServiceBus resource. - * - * @param requestUri the requestUri value to set - * @return the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusActiveMessagesAvailableWithNoListenersEventData withRequestUri(String requestUri) { - this.requestUri = requestUri; - return this; - } - - /** - * Get the entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. - * - * @return the entityType value - */ - public String entityType() { - return this.entityType; - } - - /** - * Set the entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. - * - * @param entityType the entityType value to set - * @return the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusActiveMessagesAvailableWithNoListenersEventData withEntityType(String entityType) { - this.entityType = entityType; - return this; - } - - /** - * Get the name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. - * - * @return the queueName value - */ - public String queueName() { - return this.queueName; - } - - /** - * Set the name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. - * - * @param queueName the queueName value to set - * @return the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusActiveMessagesAvailableWithNoListenersEventData withQueueName(String queueName) { - this.queueName = queueName; - return this; - } - - /** - * Get the name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. - * - * @return the topicName value - */ - public String topicName() { - return this.topicName; - } - - /** - * Set the name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. - * - * @param topicName the topicName value to set - * @return the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusActiveMessagesAvailableWithNoListenersEventData withTopicName(String topicName) { - this.topicName = topicName; - return this; - } - - /** - * Get the name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. - * - * @return the subscriptionName value - */ - public String subscriptionName() { - return this.subscriptionName; - } - - /** - * Set the name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. - * - * @param subscriptionName the subscriptionName value to set - * @return the ServiceBusActiveMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusActiveMessagesAvailableWithNoListenersEventData withSubscriptionName(String subscriptionName) { - this.subscriptionName = subscriptionName; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.java deleted file mode 100644 index 0ed11ea5cc4b9..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.java +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListenersEvent event. - */ -public class ServiceBusDeadletterMessagesAvailableWithNoListenersEventData { - /** - * The namespace name of the Microsoft.ServiceBus resource. - */ - @JsonProperty(value = "namespaceName") - private String namespaceName; - - /** - * The endpoint of the Microsoft.ServiceBus resource. - */ - @JsonProperty(value = "requestUri") - private String requestUri; - - /** - * The entity type of the Microsoft.ServiceBus resource. Could be one of - * 'queue' or 'subscriber'. - */ - @JsonProperty(value = "entityType") - private String entityType; - - /** - * The name of the Microsoft.ServiceBus queue. If the entity type is of - * type 'subscriber', then this value will be null. - */ - @JsonProperty(value = "queueName") - private String queueName; - - /** - * The name of the Microsoft.ServiceBus topic. If the entity type is of - * type 'queue', then this value will be null. - */ - @JsonProperty(value = "topicName") - private String topicName; - - /** - * The name of the Microsoft.ServiceBus topic's subscription. If the entity - * type is of type 'queue', then this value will be null. - */ - @JsonProperty(value = "subscriptionName") - private String subscriptionName; - - /** - * Get the namespace name of the Microsoft.ServiceBus resource. - * - * @return the namespaceName value - */ - public String namespaceName() { - return this.namespaceName; - } - - /** - * Set the namespace name of the Microsoft.ServiceBus resource. - * - * @param namespaceName the namespaceName value to set - * @return the ServiceBusDeadletterMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusDeadletterMessagesAvailableWithNoListenersEventData withNamespaceName(String namespaceName) { - this.namespaceName = namespaceName; - return this; - } - - /** - * Get the endpoint of the Microsoft.ServiceBus resource. - * - * @return the requestUri value - */ - public String requestUri() { - return this.requestUri; - } - - /** - * Set the endpoint of the Microsoft.ServiceBus resource. - * - * @param requestUri the requestUri value to set - * @return the ServiceBusDeadletterMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusDeadletterMessagesAvailableWithNoListenersEventData withRequestUri(String requestUri) { - this.requestUri = requestUri; - return this; - } - - /** - * Get the entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. - * - * @return the entityType value - */ - public String entityType() { - return this.entityType; - } - - /** - * Set the entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. - * - * @param entityType the entityType value to set - * @return the ServiceBusDeadletterMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusDeadletterMessagesAvailableWithNoListenersEventData withEntityType(String entityType) { - this.entityType = entityType; - return this; - } - - /** - * Get the name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. - * - * @return the queueName value - */ - public String queueName() { - return this.queueName; - } - - /** - * Set the name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. - * - * @param queueName the queueName value to set - * @return the ServiceBusDeadletterMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusDeadletterMessagesAvailableWithNoListenersEventData withQueueName(String queueName) { - this.queueName = queueName; - return this; - } - - /** - * Get the name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. - * - * @return the topicName value - */ - public String topicName() { - return this.topicName; - } - - /** - * Set the name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. - * - * @param topicName the topicName value to set - * @return the ServiceBusDeadletterMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusDeadletterMessagesAvailableWithNoListenersEventData withTopicName(String topicName) { - this.topicName = topicName; - return this; - } - - /** - * Get the name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. - * - * @return the subscriptionName value - */ - public String subscriptionName() { - return this.subscriptionName; - } - - /** - * Set the name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. - * - * @param subscriptionName the subscriptionName value to set - * @return the ServiceBusDeadletterMessagesAvailableWithNoListenersEventData object itself. - */ - public ServiceBusDeadletterMessagesAvailableWithNoListenersEventData withSubscriptionName(String subscriptionName) { - this.subscriptionName = subscriptionName; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/StorageBlobCreatedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/StorageBlobCreatedEventData.java deleted file mode 100644 index 06e39c455c477..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/StorageBlobCreatedEventData.java +++ /dev/null @@ -1,285 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for an - * Microsoft.Storage.BlobCreated event. - */ -public class StorageBlobCreatedEventData { - /** - * The name of the API/operation that triggered this event. - */ - @JsonProperty(value = "api") - private String api; - - /** - * A request id provided by the client of the storage API operation that - * triggered this event. - */ - @JsonProperty(value = "clientRequestId") - private String clientRequestId; - - /** - * The request id generated by the Storage service for the storage API - * operation that triggered this event. - */ - @JsonProperty(value = "requestId") - private String requestId; - - /** - * The etag of the object at the time this event was triggered. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /** - * The content type of the blob. This is the same as what would be returned - * in the Content-Type header from the blob. - */ - @JsonProperty(value = "contentType") - private String contentType; - - /** - * The size of the blob in bytes. This is the same as what would be - * returned in the Content-Length header from the blob. - */ - @JsonProperty(value = "contentLength") - private Long contentLength; - - /** - * The type of blob. - */ - @JsonProperty(value = "blobType") - private String blobType; - - /** - * The path to the blob. - */ - @JsonProperty(value = "url") - private String url; - - /** - * 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. - */ - @JsonProperty(value = "sequencer") - private String sequencer; - - /** - * For service use only. Diagnostic data occasionally included by the Azure - * Storage service. This property should be ignored by event consumers. - */ - @JsonProperty(value = "storageDiagnostics") - private Object storageDiagnostics; - - /** - * Get the name of the API/operation that triggered this event. - * - * @return the api value - */ - public String api() { - return this.api; - } - - /** - * Set the name of the API/operation that triggered this event. - * - * @param api the api value to set - * @return the StorageBlobCreatedEventData object itself. - */ - public StorageBlobCreatedEventData withApi(String api) { - this.api = api; - return this; - } - - /** - * Get a request id provided by the client of the storage API operation that triggered this event. - * - * @return the clientRequestId value - */ - public String clientRequestId() { - return this.clientRequestId; - } - - /** - * Set a request id provided by the client of the storage API operation that triggered this event. - * - * @param clientRequestId the clientRequestId value to set - * @return the StorageBlobCreatedEventData object itself. - */ - public StorageBlobCreatedEventData withClientRequestId(String clientRequestId) { - this.clientRequestId = clientRequestId; - return this; - } - - /** - * Get the request id generated by the Storage service for the storage API operation that triggered this event. - * - * @return the requestId value - */ - public String requestId() { - return this.requestId; - } - - /** - * Set the request id generated by the Storage service for the storage API operation that triggered this event. - * - * @param requestId the requestId value to set - * @return the StorageBlobCreatedEventData object itself. - */ - public StorageBlobCreatedEventData withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Get the etag of the object at the time this event was triggered. - * - * @return the eTag value - */ - public String eTag() { - return this.eTag; - } - - /** - * Set the etag of the object at the time this event was triggered. - * - * @param eTag the eTag value to set - * @return the StorageBlobCreatedEventData object itself. - */ - public StorageBlobCreatedEventData withETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. - * - * @return the contentType value - */ - public String contentType() { - return this.contentType; - } - - /** - * Set the content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. - * - * @param contentType the contentType value to set - * @return the StorageBlobCreatedEventData object itself. - */ - public StorageBlobCreatedEventData withContentType(String contentType) { - this.contentType = contentType; - return this; - } - - /** - * Get the size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. - * - * @return the contentLength value - */ - public Long contentLength() { - return this.contentLength; - } - - /** - * Set the size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. - * - * @param contentLength the contentLength value to set - * @return the StorageBlobCreatedEventData object itself. - */ - public StorageBlobCreatedEventData withContentLength(Long contentLength) { - this.contentLength = contentLength; - return this; - } - - /** - * Get the type of blob. - * - * @return the blobType value - */ - public String blobType() { - return this.blobType; - } - - /** - * Set the type of blob. - * - * @param blobType the blobType value to set - * @return the StorageBlobCreatedEventData object itself. - */ - public StorageBlobCreatedEventData withBlobType(String blobType) { - this.blobType = blobType; - return this; - } - - /** - * Get the path to the blob. - * - * @return the url value - */ - public String url() { - return this.url; - } - - /** - * Set the path to the blob. - * - * @param url the url value to set - * @return the StorageBlobCreatedEventData object itself. - */ - public StorageBlobCreatedEventData withUrl(String url) { - this.url = url; - return this; - } - - /** - * 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. - * - * @return the sequencer value - */ - public String sequencer() { - return this.sequencer; - } - - /** - * Set 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. - * - * @param sequencer the sequencer value to set - * @return the StorageBlobCreatedEventData object itself. - */ - public StorageBlobCreatedEventData withSequencer(String sequencer) { - this.sequencer = sequencer; - return this; - } - - /** - * Get for service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. - * - * @return the storageDiagnostics value - */ - public Object storageDiagnostics() { - return this.storageDiagnostics; - } - - /** - * Set for service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. - * - * @param storageDiagnostics the storageDiagnostics value to set - * @return the StorageBlobCreatedEventData object itself. - */ - public StorageBlobCreatedEventData withStorageDiagnostics(Object storageDiagnostics) { - this.storageDiagnostics = storageDiagnostics; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/StorageBlobDeletedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/StorageBlobDeletedEventData.java deleted file mode 100644 index cbcd2b0fb1faa..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/StorageBlobDeletedEventData.java +++ /dev/null @@ -1,232 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for an - * Microsoft.Storage.BlobDeleted event. - */ -public class StorageBlobDeletedEventData { - /** - * The name of the API/operation that triggered this event. - */ - @JsonProperty(value = "api") - private String api; - - /** - * A request id provided by the client of the storage API operation that - * triggered this event. - */ - @JsonProperty(value = "clientRequestId") - private String clientRequestId; - - /** - * The request id generated by the Storage service for the storage API - * operation that triggered this event. - */ - @JsonProperty(value = "requestId") - private String requestId; - - /** - * The content type of the blob. This is the same as what would be returned - * in the Content-Type header from the blob. - */ - @JsonProperty(value = "contentType") - private String contentType; - - /** - * The type of blob. - */ - @JsonProperty(value = "blobType") - private String blobType; - - /** - * The path to the blob. - */ - @JsonProperty(value = "url") - private String url; - - /** - * 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. - */ - @JsonProperty(value = "sequencer") - private String sequencer; - - /** - * For service use only. Diagnostic data occasionally included by the Azure - * Storage service. This property should be ignored by event consumers. - */ - @JsonProperty(value = "storageDiagnostics") - private Object storageDiagnostics; - - /** - * Get the name of the API/operation that triggered this event. - * - * @return the api value - */ - public String api() { - return this.api; - } - - /** - * Set the name of the API/operation that triggered this event. - * - * @param api the api value to set - * @return the StorageBlobDeletedEventData object itself. - */ - public StorageBlobDeletedEventData withApi(String api) { - this.api = api; - return this; - } - - /** - * Get a request id provided by the client of the storage API operation that triggered this event. - * - * @return the clientRequestId value - */ - public String clientRequestId() { - return this.clientRequestId; - } - - /** - * Set a request id provided by the client of the storage API operation that triggered this event. - * - * @param clientRequestId the clientRequestId value to set - * @return the StorageBlobDeletedEventData object itself. - */ - public StorageBlobDeletedEventData withClientRequestId(String clientRequestId) { - this.clientRequestId = clientRequestId; - return this; - } - - /** - * Get the request id generated by the Storage service for the storage API operation that triggered this event. - * - * @return the requestId value - */ - public String requestId() { - return this.requestId; - } - - /** - * Set the request id generated by the Storage service for the storage API operation that triggered this event. - * - * @param requestId the requestId value to set - * @return the StorageBlobDeletedEventData object itself. - */ - public StorageBlobDeletedEventData withRequestId(String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Get the content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. - * - * @return the contentType value - */ - public String contentType() { - return this.contentType; - } - - /** - * Set the content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. - * - * @param contentType the contentType value to set - * @return the StorageBlobDeletedEventData object itself. - */ - public StorageBlobDeletedEventData withContentType(String contentType) { - this.contentType = contentType; - return this; - } - - /** - * Get the type of blob. - * - * @return the blobType value - */ - public String blobType() { - return this.blobType; - } - - /** - * Set the type of blob. - * - * @param blobType the blobType value to set - * @return the StorageBlobDeletedEventData object itself. - */ - public StorageBlobDeletedEventData withBlobType(String blobType) { - this.blobType = blobType; - return this; - } - - /** - * Get the path to the blob. - * - * @return the url value - */ - public String url() { - return this.url; - } - - /** - * Set the path to the blob. - * - * @param url the url value to set - * @return the StorageBlobDeletedEventData object itself. - */ - public StorageBlobDeletedEventData withUrl(String url) { - this.url = url; - return this; - } - - /** - * 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. - * - * @return the sequencer value - */ - public String sequencer() { - return this.sequencer; - } - - /** - * Set 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. - * - * @param sequencer the sequencer value to set - * @return the StorageBlobDeletedEventData object itself. - */ - public StorageBlobDeletedEventData withSequencer(String sequencer) { - this.sequencer = sequencer; - return this; - } - - /** - * Get for service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. - * - * @return the storageDiagnostics value - */ - public Object storageDiagnostics() { - return this.storageDiagnostics; - } - - /** - * Set for service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. - * - * @param storageDiagnostics the storageDiagnostics value to set - * @return the StorageBlobDeletedEventData object itself. - */ - public StorageBlobDeletedEventData withStorageDiagnostics(Object storageDiagnostics) { - this.storageDiagnostics = storageDiagnostics; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionDeletedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionDeletedEventData.java deleted file mode 100644 index 212c25afeed91..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionDeletedEventData.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.EventGrid.SubscriptionDeletedEvent. - */ -public class SubscriptionDeletedEventData { - /** - * The Azure resource ID of the deleted event subscription. - */ - @JsonProperty(value = "eventSubscriptionId", access = JsonProperty.Access.WRITE_ONLY) - private String eventSubscriptionId; - - /** - * Get the Azure resource ID of the deleted event subscription. - * - * @return the eventSubscriptionId value - */ - public String eventSubscriptionId() { - return this.eventSubscriptionId; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionValidationEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionValidationEventData.java deleted file mode 100644 index b7b6af284e4f9..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionValidationEventData.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.EventGrid.SubscriptionValidationEvent. - */ -public class 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). - */ - @JsonProperty(value = "validationCode", access = JsonProperty.Access.WRITE_ONLY) - private String validationCode; - - /** - * 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). - */ - @JsonProperty(value = "validationUrl", access = JsonProperty.Access.WRITE_ONLY) - private String validationUrl; - - /** - * Get 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). - * - * @return the validationCode value - */ - public String validationCode() { - return this.validationCode; - } - - /** - * Get 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). - * - * @return the validationUrl value - */ - public String validationUrl() { - return this.validationUrl; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionValidationResponse.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionValidationResponse.java deleted file mode 100644 index e91b1531ba017..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/SubscriptionValidationResponse.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.eventgrid.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * To complete an event subscription validation handshake, a subscriber can use - * either the validationCode or the validationUrl received in a - * SubscriptionValidationEvent. When the validationCode is used, the - * SubscriptionValidationResponse can be used to build the response. - */ -public class SubscriptionValidationResponse { - /** - * The validation response sent by the subscriber to Azure Event Grid to - * complete the validation of an event subscription. - */ - @JsonProperty(value = "validationResponse") - private String validationResponse; - - /** - * Get the validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. - * - * @return the validationResponse value - */ - public String validationResponse() { - return this.validationResponse; - } - - /** - * Set the validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. - * - * @param validationResponse the validationResponse value to set - * @return the SubscriptionValidationResponse object itself. - */ - public SubscriptionValidationResponse withValidationResponse(String validationResponse) { - this.validationResponse = validationResponse; - return this; - } - -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/package-info.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/package-info.java deleted file mode 100644 index 450e305a65d07..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/models/package-info.java +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. - -/** - * This package contains the models classes for EventGridClient. - * EventGrid Client. - */ -package com.microsoft.azure.eventgrid.models; diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/package-info.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/package-info.java deleted file mode 100644 index 7cf4a7bbc3fac..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/main/java/com/microsoft/azure/eventgrid/package-info.java +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. - -/** - * This package contains the classes for EventGridClient. - * EventGrid Client. - */ -package com.microsoft.azure.eventgrid; diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/EventGridTests.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/EventGridTests.java deleted file mode 100644 index 898b6a4762933..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/EventGridTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid; - -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.datatype.joda.JodaModule; -import com.microsoft.azure.eventgrid.implementation.EventGridClientImpl; -import com.microsoft.azure.eventgrid.models.EventGridEvent; -import com.microsoft.azure.eventgrid.models.StorageBlobCreatedEventData; - -import org.joda.time.DateTime; -import org.junit.Test; -import org.junit.Ignore; - -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertEquals; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; - -public class EventGridTests { - @Test - @Ignore - public void canPublishEvent() throws Exception { - String endpoint = System.getenv("EG_ENDPOINT"); - String key = System.getenv("EG_KEY"); - - TopicCredentials topicCredentials = new TopicCredentials(key); - EventGridClient client = new EventGridClientImpl(topicCredentials); - client.publishEvents(endpoint, getEventsList()); - } - - @Test - public void canDeserializeEvent() throws Exception { - String storageEventJson = "{\"topic\": \"/subscriptions/subscriptionID/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/xstoretestaccount\",\"subject\": \"/blobServices/default/containers/testcontainer/blobs/testfile.txt\", \"eventType\": \"Microsoft.Storage.BlobCreated\", \"eventTime\": \"2017-06-26T18:41:00.9584103Z\", \"id\": \"831e1650-001e-001b-66ab-eeb76e069631\", \"data\": { \"api\": \"PutBlockList\", \"clientRequestId\": \"6d79dbfb-0e37-4fc4-981f-442c9ca65760\", \"requestId\": \"831e1650-001e-001b-66ab-eeb76e000000\", \"eTag\": \"0x8D4BCC2E4835CD0\", \"contentType\": \"text/plain\", \"contentLength\": 524288, \"blobType\": \"BlockBlob\", \"url\": \"https://example.blob.core.windows.net/testcontainer/testfile.txt\", \"sequencer\": \"00000000000004420000000000028963\", \"storageDiagnostics\": { \"batchId\": \"b68529f3-68cd-4744-baa4-3c0498ec19f0\" }}, \"dataVersion\": \"\", \"metadataVersion\": \"1\"}"; - - ObjectMapper mapper = new ObjectMapper(); - mapper.registerModule(new JodaModule()); - - EventGridEvent eventGridEvent = mapper.readValue(storageEventJson, EventGridEvent.class); - - assertNotNull(eventGridEvent); - assertEquals("Event types do not match", eventGridEvent.eventType(), "Microsoft.Storage.BlobCreated"); - - JsonNode storageEventNode = mapper.readTree(storageEventJson); - JsonNode storageEventDataNode = storageEventNode.get("data"); - StorageBlobCreatedEventData storageEventData = mapper.treeToValue(storageEventDataNode, StorageBlobCreatedEventData.class); - - assertNotNull(storageEventData); - assertEquals(storageEventData.blobType(), "BlockBlob"); - } - - private List getEventsList() { - List eventsList = new ArrayList<>(); - - for (int i = 0; i < 10; i++) { - eventsList.add(new EventGridEvent( - UUID.randomUUID().toString(), - "TestSubject", - new HashMap() {{ - put("Field1", "Value1"); - put("Field2", "Value2"); - put("Field3", "Value3"); - }}, - "Microsoft.MockPublisher.TestEvent", - DateTime.now(), - "1.0")); - } - return eventsList; - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/CustomizationTests.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/CustomizationTests.java deleted file mode 100644 index f779bc34597e9..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/CustomizationTests.java +++ /dev/null @@ -1,1044 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid.customization; - -import com.microsoft.azure.eventgrid.customization.models.ContosoItemReceivedEventData; -import com.microsoft.azure.eventgrid.customization.models.ContosoItemSentEventData; -import com.microsoft.azure.eventgrid.customization.models.DroneShippingInfo; -import com.microsoft.azure.eventgrid.customization.models.RocketShippingInfo; -import com.microsoft.azure.eventgrid.models.AppConfigurationKeyValueDeletedEventData; -import com.microsoft.azure.eventgrid.models.AppConfigurationKeyValueModifiedEventData; -import com.microsoft.azure.eventgrid.models.ContainerRegistryChartDeletedEventData; -import com.microsoft.azure.eventgrid.models.ContainerRegistryChartPushedEventData; -import com.microsoft.azure.eventgrid.models.ContainerRegistryImageDeletedEventData; -import com.microsoft.azure.eventgrid.models.ContainerRegistryImagePushedEventData; -import com.microsoft.azure.eventgrid.models.EventGridEvent; -import com.microsoft.azure.eventgrid.models.EventHubCaptureFileCreatedEventData; -import com.microsoft.azure.eventgrid.models.IotHubDeviceConnectedEventData; -import com.microsoft.azure.eventgrid.models.IotHubDeviceCreatedEventData; -import com.microsoft.azure.eventgrid.models.IotHubDeviceDeletedEventData; -import com.microsoft.azure.eventgrid.models.IotHubDeviceDisconnectedEventData; -import com.microsoft.azure.eventgrid.models.IotHubDeviceTelemetryEventData; -import com.microsoft.azure.eventgrid.models.MapsGeofenceEnteredEventData; -import com.microsoft.azure.eventgrid.models.MapsGeofenceExitedEventData; -import com.microsoft.azure.eventgrid.models.MapsGeofenceResultEventData; -import com.microsoft.azure.eventgrid.models.MediaJobCanceledEventData; -import com.microsoft.azure.eventgrid.models.MediaJobCancelingEventData; -import com.microsoft.azure.eventgrid.models.MediaJobErrorCategory; -import com.microsoft.azure.eventgrid.models.MediaJobErrorCode; -import com.microsoft.azure.eventgrid.models.MediaJobErroredEventData; -import com.microsoft.azure.eventgrid.models.MediaJobFinishedEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputAsset; -import com.microsoft.azure.eventgrid.models.MediaJobOutputCanceledEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputCancelingEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputErroredEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputFinishedEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputProcessingEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputProgressEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputScheduledEventData; -import com.microsoft.azure.eventgrid.models.MediaJobOutputStateChangeEventData; -import com.microsoft.azure.eventgrid.models.MediaJobProcessingEventData; -import com.microsoft.azure.eventgrid.models.MediaJobScheduledEventData; -import com.microsoft.azure.eventgrid.models.MediaJobState; -import com.microsoft.azure.eventgrid.models.MediaJobStateChangeEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventConnectionRejectedEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventEncoderConnectedEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventEncoderDisconnectedEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventIncomingDataChunkDroppedEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventIncomingStreamReceivedEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventIncomingStreamsOutOfSyncEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventIncomingVideoStreamsOutOfSyncEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventIngestHeartbeatEventData; -import com.microsoft.azure.eventgrid.models.MediaLiveEventTrackDiscontinuityDetectedEventData; -import com.microsoft.azure.eventgrid.models.ResourceActionCancelData; -import com.microsoft.azure.eventgrid.models.ResourceActionFailureData; -import com.microsoft.azure.eventgrid.models.ResourceActionSuccessData; -import com.microsoft.azure.eventgrid.models.ResourceDeleteCancelData; -import com.microsoft.azure.eventgrid.models.ResourceDeleteFailureData; -import com.microsoft.azure.eventgrid.models.ResourceDeleteSuccessData; -import com.microsoft.azure.eventgrid.models.ResourceWriteCancelData; -import com.microsoft.azure.eventgrid.models.ResourceWriteFailureData; -import com.microsoft.azure.eventgrid.models.ResourceWriteSuccessData; -import com.microsoft.azure.eventgrid.models.ServiceBusActiveMessagesAvailableWithNoListenersEventData; -import com.microsoft.azure.eventgrid.models.ServiceBusDeadletterMessagesAvailableWithNoListenersEventData; -import com.microsoft.azure.eventgrid.models.StorageBlobCreatedEventData; -import com.microsoft.azure.eventgrid.models.StorageBlobDeletedEventData; -import com.microsoft.azure.eventgrid.models.SubscriptionDeletedEventData; -import com.microsoft.azure.eventgrid.models.SubscriptionValidationEventData; -import org.apache.commons.io.IOUtils; -import org.junit.Assert; -import org.junit.Test; - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.Map; -import java.util.Set; - -public class CustomizationTests { - - @Test - public void consumeStorageBlobDeletedEventWithExtraProperty() throws IOException { - String jsonData = getTestPayloadFromFile("StorageBlobDeletedEventWithExtraProperty.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof StorageBlobDeletedEventData); - StorageBlobDeletedEventData eventData = (StorageBlobDeletedEventData) events[0].data(); - Assert.assertEquals("https://example.blob.core.windows.net/testcontainer/testfile.txt", eventData.url()); - } - - @Test - public void consumeCustomEvents() throws IOException { - String jsonData = getTestPayloadFromFile("CustomEvents.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - eventGridSubscriber.putCustomEventMapping("Contoso.Items.ItemReceived", ContosoItemSentEventData.class); - eventGridSubscriber.putCustomEventMapping("Contoso.Items.ItemReceived", ContosoItemReceivedEventData.class); - - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertEquals(1, events.length); - Assert.assertTrue(events[0].data() instanceof ContosoItemReceivedEventData); - ContosoItemReceivedEventData eventData = (ContosoItemReceivedEventData) events[0].data(); - Assert.assertEquals("512d38b6-c7b8-40c8-89fe-f46f9e9622b6", eventData.itemSku()); - } - - @Test - public void consumeCustomEventWithArrayData() throws IOException { - String jsonData = getTestPayloadFromFile("CustomEventWithArrayData.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - - ContosoItemReceivedEventData[] arr = {new ContosoItemReceivedEventData()}; - eventGridSubscriber.putCustomEventMapping("Contoso.Items.ItemReceived", arr.getClass()); - - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertEquals(1, events.length); - Assert.assertTrue(events[0].data() instanceof ContosoItemReceivedEventData[]); - ContosoItemReceivedEventData[] eventData = (ContosoItemReceivedEventData[]) events[0].data(); - Assert.assertEquals("512d38b6-c7b8-40c8-89fe-f46f9e9622b6", (eventData[0]).itemSku()); - } - - @Test - public void consumeCustomEventWithBooleanData() throws IOException { - String jsonData = getTestPayloadFromFile("CustomEventWithBooleanData.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - - eventGridSubscriber.putCustomEventMapping("Contoso.Items.ItemReceived", Boolean.class); - - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertEquals(1, events.length); - Assert.assertTrue(events[0].data() instanceof Boolean); - Boolean eventData = (Boolean) events[0].data(); - Assert.assertTrue(eventData); - } - - @Test - public void consumeCustomEventWithStringData() throws IOException { - String jsonData = getTestPayloadFromFile("CustomEventWithStringData.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertEquals(1, events.length); - Assert.assertTrue(events[0].data() instanceof String); - String eventData = (String) events[0].data(); - Assert.assertEquals("stringdata", eventData); - } - - @Test - public void consumeCustomEventWithPolymorphicData() throws IOException { - String jsonData = getTestPayloadFromFile("CustomEventWithPolymorphicData.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - - eventGridSubscriber.putCustomEventMapping("Contoso.Items.ItemSent", ContosoItemSentEventData.class); - - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertEquals(2, events.length); - Assert.assertTrue(events[0].data() instanceof ContosoItemSentEventData); - Assert.assertTrue(events[1].data() instanceof ContosoItemSentEventData); - ContosoItemSentEventData eventData0 = (ContosoItemSentEventData) events[0].data(); - Assert.assertTrue(eventData0.shippingInfo() instanceof DroneShippingInfo); - ContosoItemSentEventData eventData1 = (ContosoItemSentEventData) events[1].data(); - Assert.assertTrue(eventData1.shippingInfo() instanceof RocketShippingInfo); - } - - @Test - public void testCustomEventMappings() { - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - eventGridSubscriber.putCustomEventMapping("Contoso.Items.ItemSent", ContosoItemSentEventData.class); - eventGridSubscriber.putCustomEventMapping("Contoso.Items.ItemReceived", ContosoItemReceivedEventData.class); - - Set> mappings = eventGridSubscriber.getAllCustomEventMappings(); - - Assert.assertEquals(2, mappings.size()); - - Type mapping = eventGridSubscriber.getCustomEventMapping("Contoso.Items.ItemSent"); - Assert.assertNotNull(mapping); - // Ensure lookup is case-insensitive - mapping = eventGridSubscriber.getCustomEventMapping("contoso.Items.Itemsent"); - Assert.assertNotNull(mapping); - - mapping = eventGridSubscriber.getCustomEventMapping("Contoso.Items.NotExists"); - Assert.assertNull(mapping); - - boolean removed = eventGridSubscriber.removeCustomEventMapping("Contoso.Items.ItemReceived"); - Assert.assertTrue(removed); - Assert.assertEquals(1, mappings.size()); - - boolean contains = eventGridSubscriber.containsCustomEventMappingFor("Contoso.Items.ItemSent"); - Assert.assertTrue(contains); - } - - @Test - public void consumeMultipleEventsInSameBatch() throws IOException { - String jsonData = getTestPayloadFromFile("MultipleEventsInSameBatch.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertEquals(4, events.length); - Assert.assertTrue(events[0].data() instanceof StorageBlobCreatedEventData); - Assert.assertTrue(events[1].data() instanceof StorageBlobDeletedEventData); - Assert.assertTrue(events[2].data() instanceof StorageBlobDeletedEventData); - Assert.assertTrue(events[3].data() instanceof ServiceBusDeadletterMessagesAvailableWithNoListenersEventData); - StorageBlobDeletedEventData eventData = (StorageBlobDeletedEventData) events[2].data(); - Assert.assertEquals("https://example.blob.core.windows.net/testcontainer/testfile.txt", eventData.url()); - } - - // AppConfiguration events - @Test - public void consumeAppConfigurationKeyValueDeletedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("AppConfigurationKeyValueDeleted.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof AppConfigurationKeyValueDeletedEventData); - AppConfigurationKeyValueDeletedEventData eventData = (AppConfigurationKeyValueDeletedEventData) events[0].data(); - Assert.assertEquals("key1", eventData.key()); - } - - @Test - public void consumeAppConfigurationKeyValueModifiedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("AppConfigurationKeyValueModified.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof AppConfigurationKeyValueModifiedEventData); - AppConfigurationKeyValueModifiedEventData eventData = (AppConfigurationKeyValueModifiedEventData) events[0].data(); - Assert.assertEquals("key1", eventData.key()); - } - - // ContainerRegistry events - @Test - public void consumeContainerRegistryImagePushedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ContainerRegistryImagePushedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ContainerRegistryImagePushedEventData); - ContainerRegistryImagePushedEventData eventData = (ContainerRegistryImagePushedEventData) events[0].data(); - Assert.assertEquals("127.0.0.1", eventData.request().addr()); - } - - @Test - public void consumeContainerRegistryImageDeletedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ContainerRegistryImageDeletedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ContainerRegistryImageDeletedEventData); - ContainerRegistryImageDeletedEventData eventData = (ContainerRegistryImageDeletedEventData) events[0].data(); - Assert.assertEquals("testactor", eventData.actor().name()); - } - - @Test - public void consumeContainerRegistryChartDeletedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ContainerRegistryChartDeletedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ContainerRegistryChartDeletedEventData); - ContainerRegistryChartDeletedEventData eventData = (ContainerRegistryChartDeletedEventData) events[0].data(); - Assert.assertEquals("mediatype1", eventData.target().mediaType()); - } - - @Test - public void consumeContainerRegistryChartPushedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ContainerRegistryChartPushedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ContainerRegistryChartPushedEventData); - ContainerRegistryChartPushedEventData eventData = (ContainerRegistryChartPushedEventData) events[0].data(); - Assert.assertEquals("mediatype1", eventData.target().mediaType()); - } - - // IoTHub Device events - @Test - public void consumeIoTHubDeviceCreatedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("IoTHubDeviceCreatedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof IotHubDeviceCreatedEventData); - IotHubDeviceCreatedEventData eventData = (IotHubDeviceCreatedEventData) events[0].data(); - Assert.assertEquals("enabled", eventData.twin().status()); - } - - @Test - public void consumeIoTHubDeviceDeletedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("IoTHubDeviceDeletedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof IotHubDeviceDeletedEventData); - IotHubDeviceDeletedEventData eventData = (IotHubDeviceDeletedEventData) events[0].data(); - Assert.assertEquals("AAAAAAAAAAE=", eventData.twin().etag()); - } - - @Test - public void consumeIoTHubDeviceConnectedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("IoTHubDeviceConnectedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof IotHubDeviceConnectedEventData); - IotHubDeviceConnectedEventData eventData = (IotHubDeviceConnectedEventData) events[0].data(); - Assert.assertEquals("EGTESTHUB1", eventData.hubName()); - } - - @Test - public void consumeIoTHubDeviceDisconnectedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("IoTHubDeviceDisconnectedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof IotHubDeviceDisconnectedEventData); - IotHubDeviceDisconnectedEventData eventData = (IotHubDeviceDisconnectedEventData) events[0].data(); - Assert.assertEquals("000000000000000001D4132452F67CE200000002000000000000000000000002", eventData.deviceConnectionStateEventInfo().sequenceNumber()); - } - - @Test - public void consumeIoTHubDeviceTelemetryEvent() throws IOException { - String jsonData = getTestPayloadFromFile("IoTHubDeviceTelemetryEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof IotHubDeviceTelemetryEventData); - IotHubDeviceTelemetryEventData eventData = (IotHubDeviceTelemetryEventData) events[0].data(); - Assert.assertEquals("Active", eventData.properties().get("Status")); - } - - // EventGrid events - @Test - public void consumeEventGridSubscriptionValidationEvent() throws IOException { - String jsonData = getTestPayloadFromFile("EventGridSubscriptionValidationEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof SubscriptionValidationEventData); - SubscriptionValidationEventData eventData = (SubscriptionValidationEventData) events[0].data(); - Assert.assertEquals("512d38b6-c7b8-40c8-89fe-f46f9e9622b6", eventData.validationCode()); - } - - @Test - public void consumeEventGridSubscriptionDeletedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("EventGridSubscriptionDeletedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof SubscriptionDeletedEventData); - SubscriptionDeletedEventData eventData = (SubscriptionDeletedEventData) events[0].data(); - Assert.assertEquals("/subscriptions/id/resourceGroups/rg/providers/Microsoft.EventGrid/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1", eventData.eventSubscriptionId()); - } - - // Event Hub Events - @Test - public void consumeEventHubCaptureFileCreatedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("EventHubCaptureFileCreatedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof EventHubCaptureFileCreatedEventData); - EventHubCaptureFileCreatedEventData eventData = (EventHubCaptureFileCreatedEventData) events[0].data(); - Assert.assertEquals("AzureBlockBlob", eventData.fileType()); - } - - // Maps events - @Test - public void consumeMapsGeoFenceEnteredEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MapsGeofenceEnteredEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MapsGeofenceEnteredEventData); - MapsGeofenceEnteredEventData eventData = (MapsGeofenceEnteredEventData) events[0].data(); - Assert.assertEquals(true, eventData.isEventPublished()); - } - - @Test - public void consumeMapsGeoFenceExitedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MapsGeofenceExitedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MapsGeofenceExitedEventData); - MapsGeofenceExitedEventData eventData = (MapsGeofenceExitedEventData) events[0].data(); - Assert.assertEquals(true, eventData.isEventPublished()); - } - - @Test - public void consumeMapsGeoFenceResultEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MapsGeofenceResultEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MapsGeofenceResultEventData); - MapsGeofenceResultEventData eventData = (MapsGeofenceResultEventData) events[0].data(); - Assert.assertEquals(true, eventData.isEventPublished()); - } - - // Media Services events - @Test - public void consumeMediaJobCanceledEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobCanceledEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobCanceledEventData); - MediaJobCanceledEventData eventData = (MediaJobCanceledEventData) events[0].data(); - Assert.assertEquals(MediaJobState.CANCELING, eventData.previousState()); - Assert.assertEquals(MediaJobState.CANCELED, eventData.state()); - Assert.assertEquals(1, eventData.outputs().size()); - Assert.assertTrue(eventData.outputs().get(0) instanceof MediaJobOutputAsset); - - MediaJobOutputAsset outputAsset = (MediaJobOutputAsset) eventData.outputs().get(0); - - Assert.assertEquals(MediaJobState.CANCELED, outputAsset.state()); - Assert.assertNull(outputAsset.error()); - Assert.assertNotEquals(100, outputAsset.progress()); - Assert.assertEquals("output-7a8215f9-0f8d-48a6-82ed-1ead772bc221", outputAsset.assetName()); - } - - @Test - public void consumeMediaJobCancelingEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobCancelingEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobCancelingEventData); - MediaJobCancelingEventData eventData = (MediaJobCancelingEventData) events[0].data(); - Assert.assertEquals(MediaJobState.PROCESSING, eventData.previousState()); - Assert.assertEquals(MediaJobState.CANCELING, eventData.state()); - } - - @Test - public void consumeMediaJobProcessingEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobProcessingEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobProcessingEventData); - MediaJobProcessingEventData eventData = (MediaJobProcessingEventData) events[0].data(); - Assert.assertEquals(MediaJobState.SCHEDULED, eventData.previousState()); - Assert.assertEquals(MediaJobState.PROCESSING, eventData.state()); - } - - @Test - public void consumeMediaJobFinishedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobFinishedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobFinishedEventData); - MediaJobFinishedEventData eventData = (MediaJobFinishedEventData) events[0].data(); - Assert.assertEquals(MediaJobState.PROCESSING, eventData.previousState()); - Assert.assertEquals(MediaJobState.FINISHED, eventData.state()); - Assert.assertEquals(1, eventData.outputs().size()); - Assert.assertTrue(eventData.outputs().get(0) instanceof MediaJobOutputAsset); - MediaJobOutputAsset outputAsset = (MediaJobOutputAsset) eventData.outputs().get(0); - - Assert.assertEquals(MediaJobState.FINISHED, outputAsset.state()); - Assert.assertNull(outputAsset.error()); - Assert.assertEquals(100, outputAsset.progress()); - Assert.assertEquals("output-298338bb-f8d1-4d0f-9fde-544e0ac4d983", outputAsset.assetName()); - } - - @Test - public void consumeMediaJobErroredEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobErroredEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobErroredEventData); - MediaJobErroredEventData eventData = (MediaJobErroredEventData) events[0].data(); - Assert.assertEquals(MediaJobState.PROCESSING, eventData.previousState()); - Assert.assertEquals(MediaJobState.ERROR, eventData.state()); - Assert.assertEquals(1, eventData.outputs().size()); - Assert.assertTrue(eventData.outputs().get(0) instanceof MediaJobOutputAsset); - - Assert.assertEquals(MediaJobState.ERROR, eventData.outputs().get(0).state()); - Assert.assertNotNull(eventData.outputs().get(0).error()); - Assert.assertEquals(MediaJobErrorCategory.SERVICE, eventData.outputs().get(0).error().category()); - Assert.assertEquals(MediaJobErrorCode.SERVICE_ERROR, eventData.outputs().get(0).error().code()); - } - - @Test - public void consumeMediaJobOutputStateChangeEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobOutputStateChangeEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobOutputStateChangeEventData); - MediaJobOutputStateChangeEventData eventData = (MediaJobOutputStateChangeEventData) events[0].data(); - Assert.assertEquals(MediaJobState.SCHEDULED, eventData.previousState()); - Assert.assertEquals(MediaJobState.PROCESSING, eventData.output().state()); - Assert.assertTrue(eventData.output() instanceof MediaJobOutputAsset); - MediaJobOutputAsset outputAsset = (MediaJobOutputAsset) eventData.output(); - Assert.assertEquals("output-2ac2fe75-6557-4de5-ab25-5713b74a6901", outputAsset.assetName()); - } - - @Test - public void consumeMediaJobScheduledEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobScheduledEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobScheduledEventData); - MediaJobScheduledEventData eventData = (MediaJobScheduledEventData) events[0].data(); - Assert.assertEquals(MediaJobState.QUEUED, eventData.previousState()); - Assert.assertEquals(MediaJobState.SCHEDULED, eventData.state()); - } - - @Test - public void consumeMediaJobOutputCanceledEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobOutputCanceledEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobOutputCanceledEventData); - MediaJobOutputCanceledEventData eventData = (MediaJobOutputCanceledEventData) events[0].data(); - Assert.assertEquals(MediaJobState.CANCELING, eventData.previousState()); - Assert.assertEquals(MediaJobState.CANCELED, eventData.output().state()); - Assert.assertTrue(eventData.output() instanceof MediaJobOutputAsset); - } - - @Test - public void consumeMediaJobOutputCancelingEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobOutputCancelingEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobOutputCancelingEventData); - MediaJobOutputCancelingEventData eventData = (MediaJobOutputCancelingEventData) events[0].data(); - Assert.assertEquals(MediaJobState.PROCESSING, eventData.previousState()); - Assert.assertEquals(MediaJobState.CANCELING, eventData.output().state()); - Assert.assertTrue(eventData.output() instanceof MediaJobOutputAsset); - } - - @Test - public void consumeMediaJobOutputErroredEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobOutputErroredEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobOutputErroredEventData); - MediaJobOutputErroredEventData eventData = (MediaJobOutputErroredEventData) events[0].data(); - Assert.assertEquals(MediaJobState.PROCESSING, eventData.previousState()); - Assert.assertEquals(MediaJobState.ERROR, eventData.output().state()); - Assert.assertTrue(eventData.output() instanceof MediaJobOutputAsset); - Assert.assertNotNull(eventData.output().error()); - Assert.assertEquals(MediaJobErrorCategory.SERVICE, eventData.output().error().category()); - Assert.assertEquals(MediaJobErrorCode.SERVICE_ERROR, eventData.output().error().code()); - } - - @Test - public void consumeMediaJobOutputFinishedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobOutputFinishedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobOutputFinishedEventData); - MediaJobOutputFinishedEventData eventData = (MediaJobOutputFinishedEventData) events[0].data(); - Assert.assertEquals(MediaJobState.PROCESSING, eventData.previousState()); - Assert.assertEquals(MediaJobState.FINISHED, eventData.output().state()); - Assert.assertTrue(eventData.output() instanceof MediaJobOutputAsset); - Assert.assertEquals(100, eventData.output().progress()); - - MediaJobOutputAsset outputAsset = (MediaJobOutputAsset) eventData.output(); - Assert.assertEquals("output-2ac2fe75-6557-4de5-ab25-5713b74a6901", outputAsset.assetName()); - } - - @Test - public void consumeMediaJobOutputProcessingEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobOutputProcessingEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobOutputProcessingEventData); - MediaJobOutputProcessingEventData eventData = (MediaJobOutputProcessingEventData) events[0].data(); - Assert.assertEquals(MediaJobState.SCHEDULED, eventData.previousState()); - Assert.assertEquals(MediaJobState.PROCESSING, eventData.output().state()); - Assert.assertTrue(eventData.output() instanceof MediaJobOutputAsset); - } - - @Test - public void consumeMediaJobOutputScheduledEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobOutputScheduledEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobOutputScheduledEventData); - MediaJobOutputScheduledEventData eventData = (MediaJobOutputScheduledEventData) events[0].data(); - Assert.assertEquals(MediaJobState.QUEUED, eventData.previousState()); - Assert.assertEquals(MediaJobState.SCHEDULED, eventData.output().state()); - Assert.assertTrue(eventData.output() instanceof MediaJobOutputAsset); - } - - @Test - public void consumeMediaJobOutputProgressEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobOutputProgressEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobOutputProgressEventData); - MediaJobOutputProgressEventData eventData = (MediaJobOutputProgressEventData) events[0].data(); - Assert.assertEquals("TestLabel", eventData.label()); - Assert.assertTrue(eventData.jobCorrelationData().containsKey("Field1")); - Assert.assertEquals("test1", eventData.jobCorrelationData().get("Field1")); - Assert.assertTrue(eventData.jobCorrelationData().containsKey("Field2")); - Assert.assertEquals("test2", eventData.jobCorrelationData().get("Field2")); - } - - @Test - public void consumeMediaJobStateChangeEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaJobStateChangeEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaJobStateChangeEventData); - MediaJobStateChangeEventData eventData = (MediaJobStateChangeEventData) events[0].data(); - Assert.assertEquals(MediaJobState.SCHEDULED, eventData.previousState()); - Assert.assertEquals(MediaJobState.PROCESSING, eventData.state()); - } - - @Test - public void consumeMediaLiveEventEncoderConnectedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaLiveEventEncoderConnectedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaLiveEventEncoderConnectedEventData); - MediaLiveEventEncoderConnectedEventData eventData = (MediaLiveEventEncoderConnectedEventData) events[0].data(); - Assert.assertEquals("rtmp://liveevent-ec9d26a8.channel.media.azure.net:1935/live/cb5540b10a5646218c1328be95050c59", eventData.ingestUrl()); - Assert.assertEquals("Mystream1", eventData.streamId()); - Assert.assertEquals("", eventData.encoderIp()); - Assert.assertEquals("3557", eventData.encoderPort()); - } - - @Test - public void consumeMediaLiveEventConnectionRejectedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaLiveEventConnectionRejectedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaLiveEventConnectionRejectedEventData); - MediaLiveEventConnectionRejectedEventData eventData = (MediaLiveEventConnectionRejectedEventData) events[0].data(); - Assert.assertEquals("Mystream1", eventData.streamId()); - } - - @Test - public void consumeMediaLiveEventEncoderDisconnectedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaLiveEventEncoderDisconnectedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaLiveEventEncoderDisconnectedEventData); - MediaLiveEventEncoderDisconnectedEventData eventData = (MediaLiveEventEncoderDisconnectedEventData) events[0].data(); - Assert.assertEquals("rtmp://liveevent-ec9d26a8.channel.media.azure.net:1935/live/cb5540b10a5646218c1328be95050c59", eventData.ingestUrl()); - Assert.assertEquals("Mystream1", eventData.streamId()); - Assert.assertEquals("", eventData.encoderIp()); - Assert.assertEquals("3557", eventData.encoderPort()); - } - - @Test - public void consumeMediaLiveEventIncomingStreamReceivedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaLiveEventIncomingStreamReceivedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaLiveEventIncomingStreamReceivedEventData); - MediaLiveEventIncomingStreamReceivedEventData eventData = (MediaLiveEventIncomingStreamReceivedEventData) events[0].data(); - Assert.assertEquals("rtmp://liveevent-ec9d26a8.channel.media.azure.net:1935/live/cb5540b10a5646218c1328be95050c59", eventData.ingestUrl()); - Assert.assertEquals("", eventData.encoderIp()); - Assert.assertEquals("3557", eventData.encoderPort()); - - Assert.assertEquals("audio", eventData.trackType()); - Assert.assertEquals("audio_160000", eventData.trackName()); - Assert.assertEquals("66", eventData.timestamp()); - Assert.assertEquals("1950", eventData.duration()); - Assert.assertEquals("1000", eventData.timescale()); - } - - @Test - public void consumeMediaLiveEventIncomingStreamsOutOfSyncEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaLiveEventIncomingStreamsOutOfSyncEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaLiveEventIncomingStreamsOutOfSyncEventData); - MediaLiveEventIncomingStreamsOutOfSyncEventData eventData = (MediaLiveEventIncomingStreamsOutOfSyncEventData) events[0].data(); - Assert.assertEquals("10999", eventData.minLastTimestamp()); - Assert.assertEquals("video", eventData.typeOfStreamWithMinLastTimestamp()); - Assert.assertEquals("100999", eventData.maxLastTimestamp()); - Assert.assertEquals("audio", eventData.typeOfStreamWithMaxLastTimestamp()); - Assert.assertEquals("1000", eventData.timescaleOfMinLastTimestamp()); - Assert.assertEquals("1000", eventData.timescaleOfMaxLastTimestamp()); - } - - @Test - public void consumeMediaLiveEventIncomingVideoStreamsOutOfSyncEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaLiveEventIncomingVideoStreamsOutOfSyncEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaLiveEventIncomingVideoStreamsOutOfSyncEventData); - MediaLiveEventIncomingVideoStreamsOutOfSyncEventData eventData = (MediaLiveEventIncomingVideoStreamsOutOfSyncEventData) events[0].data(); - Assert.assertEquals("10999", eventData.firstTimestamp()); - Assert.assertEquals("2000", eventData.firstDuration()); - Assert.assertEquals("100999", eventData.secondTimestamp()); - Assert.assertEquals("2000", eventData.secondDuration()); - Assert.assertEquals("1000", eventData.timescale()); - } - - @Test - public void consumeMediaLiveEventIncomingDataChunkDroppedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaLiveEventIncomingDataChunkDroppedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaLiveEventIncomingDataChunkDroppedEventData); - MediaLiveEventIncomingDataChunkDroppedEventData eventData = (MediaLiveEventIncomingDataChunkDroppedEventData) events[0].data(); - Assert.assertEquals("8999", eventData.timestamp()); - Assert.assertEquals("video", eventData.trackType()); - Assert.assertEquals("video1", eventData.trackName()); - Assert.assertEquals("1000", eventData.timescale()); - Assert.assertEquals("FragmentDrop_OverlapTimestamp", eventData.resultCode()); - } - - @Test - public void consumeMediaLiveEventIngestHeartbeatEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaLiveEventIngestHeartbeatEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaLiveEventIngestHeartbeatEventData); - MediaLiveEventIngestHeartbeatEventData eventData = (MediaLiveEventIngestHeartbeatEventData) events[0].data(); - Assert.assertEquals("video", eventData.trackType()); - Assert.assertEquals("video", eventData.trackName()); - Assert.assertEquals("11999", eventData.lastTimestamp()); - Assert.assertEquals("1000", eventData.timescale()); - Assert.assertTrue(eventData.unexpectedBitrate()); - Assert.assertEquals("Running", eventData.state()); - Assert.assertFalse(eventData.healthy()); - } - - @Test - public void consumeMediaLiveEventTrackDiscontinuityDetectedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("MediaLiveEventTrackDiscontinuityDetectedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof MediaLiveEventTrackDiscontinuityDetectedEventData); - MediaLiveEventTrackDiscontinuityDetectedEventData eventData = (MediaLiveEventTrackDiscontinuityDetectedEventData) events[0].data(); - Assert.assertEquals("video", eventData.trackType()); - Assert.assertEquals("video", eventData.trackName()); - Assert.assertEquals("10999", eventData.previousTimestamp()); - Assert.assertEquals("14999", eventData.newTimestamp()); - Assert.assertEquals("1000", eventData.timescale()); - Assert.assertEquals("4000", eventData.discontinuityGap()); - } - - // Resource Manager (Azure Subscription/Resource Group) events - @Test - public void consumeResourceWriteFailureEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ResourceWriteFailureEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ResourceWriteFailureData); - ResourceWriteFailureData eventData = (ResourceWriteFailureData) events[0].data(); - Assert.assertEquals("72f988bf-86f1-41af-91ab-2d7cd011db47", eventData.tenantId()); - } - - @Test - public void consumeResourceWriteCancelEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ResourceWriteCancelEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ResourceWriteCancelData); - ResourceWriteCancelData eventData = (ResourceWriteCancelData) events[0].data(); - Assert.assertEquals("72f988bf-86f1-41af-91ab-2d7cd011db47", eventData.tenantId()); - } - - @Test - public void consumeResourceDeleteSuccessEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ResourceDeleteSuccessEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ResourceDeleteSuccessData); - ResourceDeleteSuccessData eventData = (ResourceDeleteSuccessData) events[0].data(); - Assert.assertEquals("72f988bf-86f1-41af-91ab-2d7cd011db47", eventData.tenantId()); - } - - @Test - public void consumeResourceDeleteFailureEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ResourceDeleteFailureEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ResourceDeleteFailureData); - ResourceDeleteFailureData eventData = (ResourceDeleteFailureData) events[0].data(); - Assert.assertEquals("72f988bf-86f1-41af-91ab-2d7cd011db47", eventData.tenantId()); - } - - @Test - public void consumeResourceDeleteCancelEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ResourceDeleteCancelEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ResourceDeleteCancelData); - ResourceDeleteCancelData eventData = (ResourceDeleteCancelData) events[0].data(); - Assert.assertEquals("72f988bf-86f1-41af-91ab-2d7cd011db47", eventData.tenantId()); - } - - @Test - public void consumeResourceActionSuccessEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ResourceActionSuccessEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ResourceActionSuccessData); - ResourceActionSuccessData eventData = (ResourceActionSuccessData) events[0].data(); - Assert.assertEquals("72f988bf-86f1-41af-91ab-2d7cd011db47", eventData.tenantId()); - } - - @Test - public void consumeResourceActionFailureEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ResourceActionFailureEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ResourceActionFailureData); - ResourceActionFailureData eventData = (ResourceActionFailureData) events[0].data(); - Assert.assertEquals("72f988bf-86f1-41af-91ab-2d7cd011db47", eventData.tenantId()); - } - - @Test - public void consumeResourceActionCancelEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ResourceActionCancelEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ResourceActionCancelData); - ResourceActionCancelData eventData = (ResourceActionCancelData) events[0].data(); - Assert.assertEquals("72f988bf-86f1-41af-91ab-2d7cd011db47", eventData.tenantId()); - } - - // ServiceBus events - @Test - public void consumeServiceBusActiveMessagesAvailableWithNoListenersEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ServiceBusActiveMessagesAvailableWithNoListenersEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ServiceBusActiveMessagesAvailableWithNoListenersEventData); - ServiceBusActiveMessagesAvailableWithNoListenersEventData eventData = (ServiceBusActiveMessagesAvailableWithNoListenersEventData) events[0].data(); - Assert.assertEquals("testns1", eventData.namespaceName()); - } - - @Test - public void consumeServiceBusDeadletterMessagesAvailableWithNoListenersEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ServiceBusDeadletterMessagesAvailableWithNoListenersEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ServiceBusDeadletterMessagesAvailableWithNoListenersEventData); - ServiceBusDeadletterMessagesAvailableWithNoListenersEventData eventData = (ServiceBusDeadletterMessagesAvailableWithNoListenersEventData) events[0].data(); - Assert.assertEquals("testns1", eventData.namespaceName()); - } - - // Storage events - @Test - public void consumeStorageBlobCreatedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("StorageBlobCreatedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof StorageBlobCreatedEventData); - StorageBlobCreatedEventData eventData = (StorageBlobCreatedEventData) events[0].data(); - Assert.assertEquals("https://myaccount.blob.core.windows.net/testcontainer/file1.txt", eventData.url()); - } - - @Test - public void consumeStorageBlobDeletedEvent() throws IOException { - String jsonData = getTestPayloadFromFile("StorageBlobDeletedEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof StorageBlobDeletedEventData); - StorageBlobDeletedEventData eventData = (StorageBlobDeletedEventData) events[0].data(); - Assert.assertEquals("https://example.blob.core.windows.net/testcontainer/testfile.txt", eventData.url()); - } - - // Resource Manager (Azure Subscription/Resource Group) events - @Test - public void consumeResourceWriteSuccessEvent() throws IOException { - String jsonData = getTestPayloadFromFile("ResourceWriteSuccessEvent.json"); - // - EventGridSubscriber eventGridSubscriber = new EventGridSubscriber(); - EventGridEvent[] events = eventGridSubscriber.deserializeEventGridEvents(jsonData); - - Assert.assertNotNull(events); - Assert.assertTrue(events[0].data() instanceof ResourceWriteSuccessData); - ResourceWriteSuccessData eventData = (ResourceWriteSuccessData) events[0].data(); - Assert.assertEquals("72f988bf-86f1-41af-91ab-2d7cd011db47", eventData.tenantId()); - } - - // TODO: When new event types are introduced, add one test here for each event type - - private String getTestPayloadFromFile(String fileName) { - ClassLoader classLoader = getClass().getClassLoader(); - try { - byte[] bytes = IOUtils.toByteArray(classLoader.getResourceAsStream("customization/" + fileName)); - return new String(bytes); - } catch (IOException e) { - throw new RuntimeException(e); - } - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ContosoItemReceivedEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ContosoItemReceivedEventData.java deleted file mode 100644 index 92273871a9ee3..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ContosoItemReceivedEventData.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid.customization.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -public class ContosoItemReceivedEventData { - @JsonProperty(value = "itemSku", access = JsonProperty.Access.WRITE_ONLY) - private String itemSku; - - @JsonProperty(value = "itemUri", access = JsonProperty.Access.WRITE_ONLY) - private String itemUri; - - public String itemSku() { - return this.itemSku; - } - - public String itemUri() { - return this.itemUri; - } -} - diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ContosoItemSentEventData.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ContosoItemSentEventData.java deleted file mode 100644 index 5d3e07ccbe663..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ContosoItemSentEventData.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid.customization.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -public class ContosoItemSentEventData { - @JsonProperty(value = "shippingInfo", access = JsonProperty.Access.WRITE_ONLY) - private ShippingInfo shippingInfo; - - /** - * @return the shipping info. - */ - public ShippingInfo shippingInfo() { - return this.shippingInfo; - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/DroneShippingInfo.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/DroneShippingInfo.java deleted file mode 100644 index 5d15c52ab00a8..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/DroneShippingInfo.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid.customization.models; - -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "shippingType") -@JsonTypeName("Drone") -public class DroneShippingInfo extends ShippingInfo { - @JsonProperty(value = "droneId", access = JsonProperty.Access.WRITE_ONLY) - private String droneId; - - /** - * @return the drone id. - */ - public String droneId() { - return this.droneId; - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/RocketShippingInfo.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/RocketShippingInfo.java deleted file mode 100644 index 8e16c82186817..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/RocketShippingInfo.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid.customization.models; - -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "shippingType") -@JsonTypeName("Rocket") -public class RocketShippingInfo extends ShippingInfo { - @JsonProperty(value = "rocketNumber", access = JsonProperty.Access.WRITE_ONLY) - private String rocketNumber; - - /** - * @return the rocket number. - */ - public String rocketNumber() { - return this.rocketNumber; - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ShippingInfo.java b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ShippingInfo.java deleted file mode 100644 index 02ce448cc53fa..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/java/com/microsoft/azure/eventgrid/customization/models/ShippingInfo.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -package com.microsoft.azure.eventgrid.customization.models; - -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; - -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "shippingType") -@JsonTypeName("JobOutput") -@JsonSubTypes({ - @JsonSubTypes.Type(name = "Drone", value = DroneShippingInfo.class), - @JsonSubTypes.Type(name = "Rocket", value = RocketShippingInfo.class) -}) -public class ShippingInfo { - @JsonProperty(value = "shipmentId", access = JsonProperty.Access.WRITE_ONLY) - private String shipmentId; - - /** - * @return the shipment id. - */ - public String shipmentId() { - return this.shipmentId; - } -} diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/AppConfigurationKeyValueDeleted.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/AppConfigurationKeyValueDeleted.json deleted file mode 100644 index b4dce3c25c423..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/AppConfigurationKeyValueDeleted.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "id": "56afc886-767b-d359-d59e-0da7877166b2", - "topic": "/SUBSCRIPTIONS/ID/RESOURCEGROUPS/rg/PROVIDERS/MICROSOFT.ContainerRegistry/test1", - "subject": "test1", - "eventType": "Microsoft.AppConfiguration.KeyValueDeleted", - "eventTime": "2018-01-02T19:17:44.4383997Z", - "data": { - "key":"key1", - "label":"label1", - "etag":"etag1" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/AppConfigurationKeyValueModified.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/AppConfigurationKeyValueModified.json deleted file mode 100644 index b93b4427b1fe3..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/AppConfigurationKeyValueModified.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "id": "56afc886-767b-d359-d59e-0da7877166b2", - "topic": "/SUBSCRIPTIONS/ID/RESOURCEGROUPS/rg/PROVIDERS/MICROSOFT.ContainerRegistry/test1", - "subject": "test1", - "eventType": "Microsoft.AppConfiguration.KeyValueModified", - "eventTime": "2018-01-02T19:17:44.4383997Z", - "data": { - "key":"key1", - "label":"label1", - "etag":"etag1" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryChartDeletedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryChartDeletedEvent.json deleted file mode 100644 index 11218915e08af..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryChartDeletedEvent.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "id": "56afc886-767b-d359-d59e-0da7877166b2", - "topic": "/SUBSCRIPTIONS/ID/RESOURCEGROUPS/rg/PROVIDERS/MICROSOFT.ContainerRegistry/test1", - "subject": "test1", - "eventType": "Microsoft.ContainerRegistry.ChartDeleted", - "eventTime": "2018-01-02T19:17:44.4383997Z", - "data": { - "id":"id", - "timestamp":null, - "action":"action1", - "target":{ - "mediaType":"mediatype1", - "digest":"digest1", - "name":"name1", - "version":null - } - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryChartPushedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryChartPushedEvent.json deleted file mode 100644 index eb1878141e753..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryChartPushedEvent.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "id": "56afc886-767b-d359-d59e-0da7877166b2", - "topic": "/SUBSCRIPTIONS/ID/RESOURCEGROUPS/rg/PROVIDERS/MICROSOFT.ContainerRegistry/test1", - "subject": "test1", - "eventType": "Microsoft.ContainerRegistry.ChartPushed", - "eventTime": "2018-01-02T19:17:44.4383997Z", - "data": { - "id":"id", - "timestamp":null, - "action":"action1", - "target":{ - "mediaType":"mediatype1", - "digest":"digest1", - "name":"name1", - "version":null - } - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryImageDeletedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryImageDeletedEvent.json deleted file mode 100644 index 21258c6f216fc..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryImageDeletedEvent.json +++ /dev/null @@ -1,39 +0,0 @@ -[ - { - "id": "56afc886-767b-d359-d59e-0da7877166b2", - "topic": "/SUBSCRIPTIONS/ID/RESOURCEGROUPS/rg/PROVIDERS/MICROSOFT.ContainerRegistry/test1", - "subject": "test1", - "eventType": "Microsoft.ContainerRegistry.ImageDeleted", - "eventTime": "2018-01-02T19:17:44.4383997Z", - "data": { - "id": "eventID", - "timestamp": "2018-06-20T12:00:33.6125843-07:00", - "action": "testaction", - "target": { - "mediaType": "test", - "size": 20, - "digest": "digest1", - "length": 20, - "repository": "test", - "url": "url1", - "tag": "test" - }, - "request": { - "id": "id", - "addr": "127.0.0.1", - "host": "test", - "method": "method1", - "useragent": "useragent1" - }, - "actor": { - "name": "testactor" - }, - "source": { - "addr": "127.0.0.1", - "instanceID": "id" - } - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryImagePushedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryImagePushedEvent.json deleted file mode 100644 index 6de3420add1d4..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ContainerRegistryImagePushedEvent.json +++ /dev/null @@ -1,39 +0,0 @@ -[ - { - "id": "56afc886-767b-d359-d59e-0da7877166b2", - "topic": "/SUBSCRIPTIONS/ID/RESOURCEGROUPS/rg/PROVIDERS/MICROSOFT.ContainerRegistry/test1", - "subject": "test1", - "eventType": "Microsoft.ContainerRegistry.ImagePushed", - "eventTime": "2018-01-02T19:17:44.4383997Z", - "data": { - "id": "eventID", - "timestamp": "2018-06-20T12:00:33.6125843-07:00", - "action": "testaction", - "target": { - "mediaType": "test", - "size": 20, - "digest": "digest1", - "length": 20, - "repository": "test", - "url": "url1", - "tag": "test" - }, - "request": { - "id": "id", - "addr": "127.0.0.1", - "host": "test", - "method": "method1", - "useragent": "useragent1" - }, - "actor": { - "name": "testactor" - }, - "source": { - "addr": "127.0.0.1", - "instanceID": "id" - } - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithArrayData.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithArrayData.json deleted file mode 100644 index 475c713b4b533..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithArrayData.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "id": "2d1781af-3a4c-4d7c-bd0c-e34b19da4e66", - "topic": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "subject": "", - "data": [ - { - "itemSku": "512d38b6-c7b8-40c8-89fe-f46f9e9622b6", - "itemUri": "https://rp-eastus2.eventgrid.azure.net:553" - } - ], - "eventType": "Contoso.Items.ItemReceived", - "eventTime": "2018-01-25T22:12:19.4556811Z", - "metadataVersion": "1", - "dataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithBooleanData.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithBooleanData.json deleted file mode 100644 index aadb734092d7a..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithBooleanData.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "id": "2d1781af-3a4c-4d7c-bd0c-e34b19da4e66", - "topic": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "subject": "", - "data": true, - "eventType": "Contoso.Items.ItemReceived", - "eventTime": "2018-01-25T22:12:19.4556811Z", - "metadataVersion": "1", - "dataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithPolymorphicData.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithPolymorphicData.json deleted file mode 100644 index 44e593212cba5..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithPolymorphicData.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "id": "2d1781af-3a4c-4d7c-bd0c-e34b19da4e66", - "topic": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "subject": "", - "data": { - "shippingInfo": { - "shippingType": "Drone", - "droneId": "Drone1", - "shipmentId": "1" - } - }, - "eventType": "Contoso.Items.ItemSent", - "eventTime": "2018-01-25T22:12:19.4556811Z", - "metadataVersion": "1", - "dataVersion": "1" - }, - { - "id": "2d1781af-3a4c-4d7c-bd0c-e34b19da4e66", - "topic": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "subject": "", - "data": { - "shippingInfo": { - "shippingType": "Rocket", - "rocketNumber": 1, - "shipmentId": "1" - } - }, - "eventType": "Contoso.Items.ItemSent", - "eventTime": "2018-01-25T22:12:19.4556811Z", - "metadataVersion": "1", - "dataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithStringData.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithStringData.json deleted file mode 100644 index 36045761e1f44..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEventWithStringData.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "id": "2d1781af-3a4c-4d7c-bd0c-e34b19da4e66", - "topic": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "subject": "", - "data": "stringdata", - "eventType": "Contoso.Items.ItemReceived", - "eventTime": "2018-01-25T22:12:19.4556811Z", - "metadataVersion": "1", - "dataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEvents.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEvents.json deleted file mode 100644 index 5999548a30ac1..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/CustomEvents.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - { - "id": "2d1781af-3a4c-4d7c-bd0c-e34b19da4e66", - "topic": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "subject": "", - "data": { - "itemSku": "512d38b6-c7b8-40c8-89fe-f46f9e9622b6", - "itemUri": "https://rp-eastus2.eventgrid.azure.net:553/eventsubscriptions/estest/validate?id=B2E34264-7D71-453A-B5FB-B62D0FDC85EE&t=2018-04-26T20:30:54.4538837Z&apiVersion=2018-05-01-preview&token=1BNqCxBBSSE9OnNSfZM4%2b5H9zDegKMY6uJ%2fO2DFRkwQ%3d" - }, - "eventType": "Contoso.Items.ItemReceived", - "eventTime": "2018-01-25T22:12:19.4556811Z", - "metadataVersion": "1", - "dataVersion": "1" - } -] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventGridSubscriptionDeletedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventGridSubscriptionDeletedEvent.json deleted file mode 100644 index c9d01ac0211eb..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventGridSubscriptionDeletedEvent.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "id": "2d1781af-3a4c-4d7c-bd0c-e34b19da4e66", - "topic": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "subject": "", - "data": { - "eventSubscriptionId": "/subscriptions/id/resourceGroups/rg/providers/Microsoft.EventGrid/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscription1" - }, - "eventType": "Microsoft.EventGrid.SubscriptionDeletedEvent", - "eventTime": "2018-01-25T22:12:19.4556811Z", - "metadataVersion": "1", - "dataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventGridSubscriptionValidationEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventGridSubscriptionValidationEvent.json deleted file mode 100644 index de91404d1296d..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventGridSubscriptionValidationEvent.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - { - "id": "2d1781af-3a4c-4d7c-bd0c-e34b19da4e66", - "topic": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "subject": "", - "data": { - "validationCode": "512d38b6-c7b8-40c8-89fe-f46f9e9622b6", - "validationUrl": "https://rp-eastus2.eventgrid.azure.net:553/eventsubscriptions/estest/validate?id=B2E34264-7D71-453A-B5FB-B62D0FDC85EE&t=2018-04-26T20:30:54.4538837Z&apiVersion=2018-05-01-preview&token=1BNqCxBBSSE9OnNSfZM4%2b5H9zDegKMY6uJ%2fO2DFRkwQ%3d" - }, - "eventType": "Microsoft.EventGrid.SubscriptionValidationEvent", - "eventTime": "2018-01-25T22:12:19.4556811Z", - "metadataVersion": "1", - "dataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventHubCaptureFileCreatedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventHubCaptureFileCreatedEvent.json deleted file mode 100644 index 52b58e9c41f66..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/EventHubCaptureFileCreatedEvent.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "topic": "/subscriptions/guid/resourcegroups/rgDataMigrationSample/providers/Microsoft.EventHub/namespaces/tfdatamigratens", - "subject": "eventhubs/hubdatamigration", - "eventType": "microsoft.EventHUB.CaptureFileCreated", - "eventTime": "2017-08-31T19:12:46.0498024Z", - "id": "14e87d03-6fbf-4bb2-9a21-92bd1281f247", - "data": { - "fileUrl": "https://tf0831datamigrate.blob.core.windows.net/windturbinecapture/tfdatamigratens/hubdatamigration/1/2017/08/31/19/11/45.avro", - "fileType": "AzureBlockBlob", - "partitionId": "1", - "sizeInBytes": 249168, - "eventCount": 1500, - "firstSequenceNumber": 2400, - "lastSequenceNumber": 3899, - "firstEnqueueTime": "2017-08-31T19:12:14.674Z", - "lastEnqueueTime": "2017-08-31T19:12:44.309Z" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceConnectedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceConnectedEvent.json deleted file mode 100644 index a8fefeb6aa0a4..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceConnectedEvent.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "id": "fbfd8ee1-cf78-74c6-dbcf-e1c58638ccbd", - "topic": "/SUBSCRIPTIONS/BDF55CDD-8DAB-4CF4-9B2F-C21E8A780472/RESOURCEGROUPS/EGTESTRG/PROVIDERS/MICROSOFT.DEVICES/IOTHUBS/EGTESTHUB1", - "subject": "devices/48e44e11-1437-4907-83b1-4a8d7e89859e", - "eventType": "Microsoft.Devices.DeviceConnected", - "eventTime": "2018-07-03T23:20:11.6921933+00:00", - "data": { - "deviceConnectionStateEventInfo": { - "sequenceNumber": "000000000000000001D4132452F67CE200000002000000000000000000000001" - }, - "hubName": "EGTESTHUB1", - "deviceId": "48e44e11-1437-4907-83b1-4a8d7e89859e", - "moduleId": "" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceCreatedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceCreatedEvent.json deleted file mode 100644 index 81eb23a9ec8a6..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceCreatedEvent.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "id": "56afc886-767b-d359-d59e-0da7877166b2", - "topic": "/SUBSCRIPTIONS/ID/RESOURCEGROUPS/rg/PROVIDERS/MICROSOFT.DEVICES/IOTHUBS/hub1", - "subject": "devices/LogicAppTestDevice", - "eventType": "Microsoft.Devices.DeviceCreated", - "eventTime": "2018-01-02T19:17:44.4383997Z", - "data": { - "twin": { - "deviceId": "LogicAppTestDevice", - "etag": "AAAAAAAAAAE=", - "status": "enabled", - "statusUpdateTime": "0001-01-01T00:00:00", - "connectionState": "Disconnected", - "lastActivityTime": "0001-01-01T00:00:00", - "cloudToDeviceMessageCount": 0, - "authenticationType": "sas", - "x509Thumbprint": { - "primaryThumbprint": null, - "secondaryThumbprint": null - }, - "version": 2, - "properties": { - "desired": { - "$metadata": { - "$lastUpdated": "2018-01-02T19:17:44.4383997Z" - }, - "$version": 1 - }, - "reported": { - "$metadata": { - "$lastUpdated": "2018-01-02T19:17:44.4383997Z" - }, - "$version": 1 - } - } - }, - "hubName": "egtesthub1", - "deviceId": "LogicAppTestDevice", - "operationTimestamp": "2018-01-02T19:17:44.4383997Z", - "opType": "DeviceCreated" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceDeletedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceDeletedEvent.json deleted file mode 100644 index d96fed94ade56..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceDeletedEvent.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "id": "56afc886-767b-d359-d59e-0da7877166b2", - "topic": "/SUBSCRIPTIONS/id/RESOURCEGROUPS/rg/PROVIDERS/MICROSOFT.DEVICES/IOTHUBS/hub1", - "subject": "devices/LogicAppTestDevice", - "eventType": "Microsoft.Devices.DeviceDeleted", - "eventTime": "2018-01-02T19:17:44.4383997Z", - "data": { - "twin": { - "deviceId": "LogicAppTestDevice", - "etag": "AAAAAAAAAAE=", - "status": "enabled", - "statusUpdateTime": "0001-01-01T00:00:00", - "connectionState": "Disconnected", - "lastActivityTime": "0001-01-01T00:00:00", - "cloudToDeviceMessageCount": 0, - "authenticationType": "sas", - "x509Thumbprint": { - "primaryThumbprint": null, - "secondaryThumbprint": null - }, - "version": 2, - "properties": { - "desired": { - "$metadata": { - "$lastUpdated": "2018-01-02T19:17:44.4383997Z" - }, - "$version": 1 - }, - "reported": { - "$metadata": { - "$lastUpdated": "2018-01-02T19:17:44.4383997Z" - }, - "$version": 1 - } - } - }, - "hubName": "egtesthub1", - "deviceId": "LogicAppTestDevice", - "operationTimestamp": "2018-01-02T19:17:44.4383997Z", - "opType": "DeviceCreated" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceDisconnectedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceDisconnectedEvent.json deleted file mode 100644 index cf2dbff4cf8ec..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceDisconnectedEvent.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "id": "877f0b10-a086-98ec-27b8-6ae2dfbf5f67", - "topic": "/SUBSCRIPTIONS/BDF55CDD-8DAB-4CF4-9B2F-C21E8A780472/RESOURCEGROUPS/EGTESTRG/PROVIDERS/MICROSOFT.DEVICES/IOTHUBS/EGTESTHUB1", - "subject": "devices/48e44e11-1437-4907-83b1-4a8d7e89859e", - "eventType": "Microsoft.Devices.DeviceDisconnected", - "eventTime": "2018-07-03T23:20:52.646434+00:00", - "data": { - "deviceConnectionStateEventInfo": { - "sequenceNumber": "000000000000000001D4132452F67CE200000002000000000000000000000002" - }, - "hubName": "EGTESTHUB1", - "deviceId": "48e44e11-1437-4907-83b1-4a8d7e89859e", - "moduleId": "" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceTelemetryEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceTelemetryEvent.json deleted file mode 100644 index 8a6b0572e5773..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/IoTHubDeviceTelemetryEvent.json +++ /dev/null @@ -1,31 +0,0 @@ -[ - { - "id": "56afc886-767b-d359-d59e-0da7877166b2", - "topic": "/SUBSCRIPTIONS/id/RESOURCEGROUPS/rg/PROVIDERS/MICROSOFT.DEVICES/IOTHUBS/hub1", - "subject": "devices/LogicAppTestDevice", - "eventType": "Microsoft.Devices.DeviceTelemetry", - "eventTime": "2018-01-02T19:17:44.4383997Z", - "data": { - "body": { - "Weather": { - "Temperature": 900 - }, - "Location": "USA" - }, - "properties": { - "Status": "Active" - }, - "systemProperties": { - "iothub-content-type": "application/json", - "iothub-content-encoding": "utf-8", - "iothub-connection-device-id": "d1", - "iothub-connection-auth-method": "{\"scope\":\"device\",\"type\":\"sas\",\"issuer\":\"iothub\",\"acceptingIpFilterRule\":null}", - "iothub-connection-auth-generation-id": "123455432199234570", - "iothub-enqueuedtime": "2019-01-07T20:58:30.48Z", - "iothub-message-source": "Telemetry" - } - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceEnteredEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceEnteredEvent.json deleted file mode 100644 index 82190f37e1814..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceEnteredEvent.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription id}/resourceGroups/amsResourceGroup/providers/Microsoft.Media/mediaservices/amsaccount", - "subject": "transforms/VideoAnalyzerTransform/jobs/{job id}", - "eventType": "Microsoft.Maps.GeofenceEntered", - "eventTime": "2018-04-20T21:26:13.8978772", - "id": "", - "data": { - "expiredGeofenceGeometryId":["id1","id2"], - "geometries":[ - { - "deviceId":"id1", - "distance":1.0, - "geometryId":"gid1", - "nearestLat":72.4, - "nearestLon":100.4, - "udId":"id22" - } - ], - "invalidPeriodGeofenceGeometryId":null, - "isEventPublished":true - }, - "dataVersion": "1.0", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceExitedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceExitedEvent.json deleted file mode 100644 index e113e56254625..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceExitedEvent.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription id}/resourceGroups/amsResourceGroup/providers/Microsoft.Media/mediaservices/amsaccount", - "subject": "transforms/VideoAnalyzerTransform/jobs/{job id}", - "eventType": "Microsoft.Maps.GeofenceExited", - "eventTime": "2018-04-20T21:26:13.8978772", - "id": "", - "data": { - "expiredGeofenceGeometryId":["id1","id2"], - "geometries":[ - { - "deviceId":"id1", - "distance":1.0, - "geometryId":"gid1", - "nearestLat":72.4, - "nearestLon":100.4, - "udId":"id22" - } - ], - "invalidPeriodGeofenceGeometryId":null, - "isEventPublished":true - }, - "dataVersion": "1.0", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceResultEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceResultEvent.json deleted file mode 100644 index 55b941398d0b3..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MapsGeofenceResultEvent.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription id}/resourceGroups/amsResourceGroup/providers/Microsoft.Media/mediaservices/amsaccount", - "subject": "transforms/VideoAnalyzerTransform/jobs/{job id}", - "eventType": "Microsoft.Maps.GeofenceResult", - "eventTime": "2018-04-20T21:26:13.8978772", - "id": "", - "data": { - "expiredGeofenceGeometryId":["id1","id2"], - "geometries":[ - { - "deviceId":"id1", - "distance":1.0, - "geometryId":"gid1", - "nearestLat":72.4, - "nearestLon":100.4, - "udId":"id22" - } - ], - "invalidPeriodGeofenceGeometryId":null, - "isEventPublished":true - }, - "dataVersion": "1.0", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobCanceledEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobCanceledEvent.json deleted file mode 100644 index b9fd89a2854bc..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobCanceledEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-7a8215f9-0f8d-48a6-82ed-1ead772bc221", "eventType": "Microsoft.Media.JobCanceled", "eventTime": "2018-10-12T15:42:05.6519929", "id": "3fef7871-f916-4980-8a45-e79a2675808b", "data": { "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", "assetName": "output-7a8215f9-0f8d-48a6-82ed-1ead772bc221", "error": null, "label": "VideoAnalyzerPreset_0", "progress": 83, "state": "Canceled" } ], "previousState": "Canceling", "state": "Canceled", "correlationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobCancelingEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobCancelingEvent.json deleted file mode 100644 index ce4671b9cbb7a..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobCancelingEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-7a8215f9-0f8d-48a6-82ed-1ead772bc221", "eventType": "Microsoft.Media.JobCanceling", "eventTime": "2018-10-12T15:41:50.5513295", "id": "1f9a488b-abe3-4fca-80b8-aae59bf7f123", "data": { "previousState": "Processing", "state": "Canceling", "correlationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobErroredEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobErroredEvent.json deleted file mode 100644 index d09798def1343..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobErroredEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-2ac2fe75-6557-4de5-ab25-5713b74a6901", "eventType": "Microsoft.Media.JobErrored", "eventTime": "2018-10-12T15:29:20.9954767", "id": "2749e9cf-4095-4723-9bc5-df8e15289135", "data": { "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", "assetName": "output-2ac2fe75-6557-4de5-ab25-5713b74a6901", "error": { "category": "Service", "code": "ServiceError", "details": [ { "code": "Internal", "message": "Internal error in initializing the task for processing" } ], "message": "Fatal service error, please contact support.", "retry": "DoNotRetry" }, "label": "VideoAnalyzerPreset_0", "progress": 83, "state": "Error" } ], "previousState": "Processing", "state": "Error", "correlationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobFinishedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobFinishedEvent.json deleted file mode 100644 index 6f689fa1acf0b..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobFinishedEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-298338bb-f8d1-4d0f-9fde-544e0ac4d983", "eventType": "Microsoft.Media.JobFinished", "eventTime": "2018-10-01T20:58:26.7886175", "id": "83f8464d-be94-48e5-b67b-46c6199fe28e", "data": { "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", "assetName": "output-298338bb-f8d1-4d0f-9fde-544e0ac4d983", "error": null, "label": "VideoAnalyzerPreset_0", "progress": 100, "state": "Finished" } ], "previousState": "Processing", "state": "Finished", "correlationData": {} }, "dataVersion": "1.0", "metadataVersion": "1" }] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputCanceledEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputCanceledEvent.json deleted file mode 100644 index fee29fcda7a8b..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputCanceledEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-7a8215f9-0f8d-48a6-82ed-1ead772bc221", "eventType": "Microsoft.Media.JobOutputCanceled", "eventTime": "2018-10-12T15:42:04.949555", "id": "9297cda2-4a50-4622-a679-c3785d27d512", "data": { "previousState": "Canceling", "output": { "@odata.type": "#Microsoft.Media.JobOutputAsset", "assetName": "output-7a8215f9-0f8d-48a6-82ed-1ead772bc221", "error": null, "label": "VideoAnalyzerPreset_0", "progress": 83, "state": "Canceled" }, "jobCorrelationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputCancelingEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputCancelingEvent.json deleted file mode 100644 index 55197ea586ba3..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputCancelingEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-7a8215f9-0f8d-48a6-82ed-1ead772bc221", "eventType": "Microsoft.Media.JobOutputCanceling", "eventTime": "2018-10-12T15:42:04.949555", "id": "9297cda2-4a50-4622-a679-c3785d27d512", "data": { "previousState": "Processing", "output": { "@odata.type": "#Microsoft.Media.JobOutputAsset", "assetName": "output-7a8215f9-0f8d-48a6-82ed-1ead772bc221", "error": null, "label": "VideoAnalyzerPreset_0", "progress": 83, "state": "Canceling" }, "jobCorrelationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputErroredEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputErroredEvent.json deleted file mode 100644 index 4565484096058..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputErroredEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-2ac2fe75-6557-4de5-ab25-5713b74a6901", "eventType": "Microsoft.Media.JobOutputErrored", "eventTime": "2018-10-12T15:29:20.2621252", "id": "bc9e6342-f081-49c2-a579-92f506a622c2", "data": { "previousState": "Processing", "output": { "@odata.type": "#Microsoft.Media.JobOutputAsset", "assetName": "output-2ac2fe75-6557-4de5-ab25-5713b74a6901", "error": { "category": "Service", "code": "ServiceError", "details": [ { "code": "Internal", "message": "Internal error in initializing the task for processing" } ], "message": "Fatal service error, please contact support.", "retry": "DoNotRetry" }, "label": "VideoAnalyzerPreset_0", "progress": 83, "state": "Error" }, "jobCorrelationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputFinishedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputFinishedEvent.json deleted file mode 100644 index 6ace15df48085..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputFinishedEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-2ac2fe75-6557-4de5-ab25-5713b74a6901", "eventType": "Microsoft.Media.JobOutputFinished", "eventTime": "2018-10-12T15:29:20.2621252", "id": "bc9e6342-f081-49c2-a579-92f506a622c2", "data": { "previousState": "Processing", "output": { "@odata.type": "#Microsoft.Media.JobOutputAsset", "assetName": "output-2ac2fe75-6557-4de5-ab25-5713b74a6901", "label": "VideoAnalyzerPreset_0", "progress": 100, "state": "Finished" }, "jobCorrelationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputProcessingEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputProcessingEvent.json deleted file mode 100644 index ac0ff4583baca..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputProcessingEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-2ac2fe75-6557-4de5-ab25-5713b74a6901", "eventType": "Microsoft.Media.JobOutputProcessing", "eventTime": "2018-10-12T15:14:17.8962704", "id": "d48eeb0b-2bfa-4265-a2f8-624654c3781c", "data": { "previousState": "Scheduled", "output": { "@odata.type": "#Microsoft.Media.JobOutputAsset", "assetName": "output-2ac2fe75-6557-4de5-ab25-5713b74a6901", "error": null, "label": "VideoAnalyzerPreset_0", "progress": 0, "state": "Processing" }, "jobCorrelationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputProgressEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputProgressEvent.json deleted file mode 100644 index 0e54929dc5860..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputProgressEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-2ac2fe75-6557-4de5-ab25-5713b74a6981", "eventType": "Microsoft.Media.JobOutputProgress", "eventTime": "2018-10-12T15:14:11.2244618", "id": "635ca6ea-5306-4590-b2e1-22f172759336", "data": { "jobCorrelationData": { "Field1": "test1", "Field2": "test2" }, "label": "TestLabel", "progress": 50 }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputScheduledEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputScheduledEvent.json deleted file mode 100644 index b7501a7aa6802..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputScheduledEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-2ac2fe75-6557-4de5-ab25-5713b74a6901", "eventType": "Microsoft.Media.JobOutputScheduled", "eventTime": "2018-10-12T15:14:11.2244618", "id": "635ca6ea-5306-4590-b2e1-22f172759336", "data": { "previousState": "Queued", "output": { "@odata.type": "#Microsoft.Media.JobOutputAsset", "assetName": "output-2ac2fe75-6557-4de5-ab25-5713b74a6901", "error": null, "label": "VideoAnalyzerPreset_0", "progress": 0, "state": "Scheduled" }, "jobCorrelationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputStateChangeEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputStateChangeEvent.json deleted file mode 100644 index 162f24e4a9662..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobOutputStateChangeEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-2ac2fe75-6557-4de5-ab25-5713b74a6901", "eventType": "Microsoft.Media.JobOutputStateChange", "eventTime": "2018-10-12T15:14:17.8962704", "id": "8d0305c0-28c0-4cc9-b613-776e4dd31e9a", "data": { "previousState": "Scheduled", "output": { "@odata.type": "#Microsoft.Media.JobOutputAsset", "assetName": "output-2ac2fe75-6557-4de5-ab25-5713b74a6901", "error": null, "label": "VideoAnalyzerPreset_0", "progress": 0, "state": "Processing" }, "jobCorrelationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobProcessingEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobProcessingEvent.json deleted file mode 100644 index f9e909896f5d5..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobProcessingEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-2ac2fe75-6557-4de5-ab25-5713b74a6901", "eventType": "Microsoft.Media.JobProcessing", "eventTime": "2018-10-12T15:14:20.2412317", "id": "72162c44-c7f4-437a-9592-48b83cec2d18", "data": { "previousState": "Scheduled", "state": "Processing", "correlationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobScheduledEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobScheduledEvent.json deleted file mode 100644 index b2af6e7456ac6..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobScheduledEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-2ac2fe75-6557-4de5-ab25-5713b74a6901", "eventType": "Microsoft.Media.JobScheduled", "eventTime": "2018-10-12T15:14:11.3028183", "id": "9b17dbf0-355d-4fb0-9a73-e76b150858c8", "data": { "previousState": "Queued", "state": "Scheduled", "correlationData": {} }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobStateChangeEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobStateChangeEvent.json deleted file mode 100644 index abcf646e7ad41..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaJobStateChangeEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "transforms/VideoAnalyzerTransform/jobs/job-2ac2fe75-6557-4de5-ab25-5713b74a6901", "eventType": "Microsoft.Media.JobStateChange", "eventTime": "2018-10-12T15:14:20.2412317", "id": "341520d0-dac0-4930-97dd-3085538c624f", "data": { "previousState": "Scheduled", "state": "Processing", "correlationData": {} }, "dataVersion": "2.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventConnectionRejectedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventConnectionRejectedEvent.json deleted file mode 100644 index deacff7d9598d..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventConnectionRejectedEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "liveEvent/liveevent-ec9d26a8", "eventType": "Microsoft.Media.LiveEventConnectionRejected", "eventTime": "2018-10-12T15:52:04.2013501", "id": "3d1f5b26-c466-47e7-927b-900985e0c5d5", "data": { "ingestUrl": "rtmp://liveevent-ec9d26a8.channel.media.azure.net:1935/live/cb5540b10a5646218c1328be95050c59", "streamId": "Mystream1", "encoderIp": "", "encoderPort": "3557", "resultCode": "MPE_INGEST_CODEC_NOT_SUPPORTED" }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventEncoderConnectedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventEncoderConnectedEvent.json deleted file mode 100644 index ad4bfd3502899..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventEncoderConnectedEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "liveEvent/liveevent-ec9d26a8", "eventType": "Microsoft.Media.LiveEventEncoderConnected", "eventTime": "2018-10-12T15:52:04.2013501", "id": "3d1f5b26-c466-47e7-927b-900985e0c5d5", "data": { "ingestUrl": "rtmp://liveevent-ec9d26a8.channel.media.azure.net:1935/live/cb5540b10a5646218c1328be95050c59", "streamId": "Mystream1", "encoderIp": "", "encoderPort": "3557" }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventEncoderDisconnectedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventEncoderDisconnectedEvent.json deleted file mode 100644 index 35422abcd67fa..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventEncoderDisconnectedEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "liveEvent/liveevent-ec9d26a8", "eventType": "Microsoft.Media.LiveEventEncoderDisconnected", "eventTime": "2018-10-12T15:52:19.8982128", "id": "e4b55140-42d2-4c24-b08e-9aa12f1587fc", "data": { "ingestUrl": "rtmp://liveevent-ec9d26a8.channel.media.azure.net:1935/live/cb5540b10a5646218c1328be95050c59", "streamId": "Mystream1", "encoderIp": "", "encoderPort": "3557", "resultCode": "MPE_CLIENT_TERMINATED_SESSION" }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingDataChunkDroppedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingDataChunkDroppedEvent.json deleted file mode 100644 index 7772efcc2513f..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingDataChunkDroppedEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "liveEvent/liveevent-ec9d26a8", "eventType": "Microsoft.Media.LiveEventIncomingDataChunkDropped", "eventTime": "2018-10-12T15:52:37.3710102", "id": "d84727e2-d9c0-4a21-a66b-8d23f06b3e06", "data": { "timestamp": "8999", "trackType": "video", "trackName": "video1", "bitrate": 2500000, "timescale": "1000", "resultCode": "FragmentDrop_OverlapTimestamp" }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingStreamReceivedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingStreamReceivedEvent.json deleted file mode 100644 index c4180d1363dbf..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingStreamReceivedEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "liveEvent/liveevent-ec9d26a8", "eventType": "Microsoft.Media.LiveEventIncomingStreamReceived", "eventTime": "2018-10-12T15:52:16.5726463Z", "id": "eb688fa1-5a19-4703-8aeb-6a65a09790da", "data": { "ingestUrl": "rtmp://liveevent-ec9d26a8.channel.media.azure.net:1935/live/cb5540b10a5646218c1328be95050c59", "trackType": "audio", "trackName": "audio_160000", "bitrate": 160000, "encoderIp": "", "encoderPort": "3557", "timestamp": "66", "duration": "1950", "timescale": "1000" }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingStreamsOutOfSyncEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingStreamsOutOfSyncEvent.json deleted file mode 100644 index e6038a488d149..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingStreamsOutOfSyncEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "liveEvent/liveevent-ec9d26a8", "eventType": "Microsoft.Media.LiveEventIncomingStreamsOutOfSync", "eventTime": "2018-10-12T15:52:37.3710102", "id": "d84727e2-d9c0-4a21-a66b-8d23f06b3e06", "data": { "minLastTimestamp": "10999", "typeOfStreamWithMinLastTimestamp": "video", "maxLastTimestamp": "100999", "typeOfStreamWithMaxLastTimestamp": "audio", "timescaleOfMinLastTimestamp": "1000", "timescaleOfMaxLastTimestamp": "1000" }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingVideoStreamsOutOfSyncEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingVideoStreamsOutOfSyncEvent.json deleted file mode 100644 index 8c9fca4abd978..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIncomingVideoStreamsOutOfSyncEvent.json +++ /dev/null @@ -1,8 +0,0 @@ -[ -{ - "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", - "subject": "liveEvent/liveevent-ec9d26a8", - "eventType": "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync", - "eventTime": "2018-10-12T15:52:37.3710102", - "id": "d84727e2-d9c0-4a21-a66b-8d23f06b3e06", - "data": { "firstTimestamp": "10999", "firstDuration": "2000", "secondTimestamp": "100999", "secondDuration": "2000", "timescale": "1000" }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIngestHeartbeatEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIngestHeartbeatEvent.json deleted file mode 100644 index cd9d2434735ef..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventIngestHeartbeatEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "liveEvent/liveevent-ec9d26a8", "eventType": "Microsoft.Media.LiveEventIngestHeartbeat", "eventTime": "2018-10-12T15:52:37.3710102", "id": "d84727e2-d9c0-4a21-a66b-8d23f06b3e06", "data": { "trackType": "video", "trackName": "video", "bitrate": 2500000, "incomingBitrate": 500726, "lastTimestamp": "11999", "timescale": "1000", "overlapCount": 0, "discontinuityCount": 0, "nonincreasingCount": 0, "unexpectedBitrate": true, "state": "Running", "healthy": false }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventTrackDiscontinuityDetectedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventTrackDiscontinuityDetectedEvent.json deleted file mode 100644 index 15693cceb8a34..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaLiveEventTrackDiscontinuityDetectedEvent.json +++ /dev/null @@ -1 +0,0 @@ -[{ "topic": "/subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.Media/mediaservices/{account name}", "subject": "liveEvent/liveevent-ec9d26a8", "eventType": "Microsoft.Media.LiveEventTrackDiscontinuityDetected", "eventTime": "2018-10-12T15:52:37.3710102", "id": "d84727e2-d9c0-4a21-a66b-8d23f06b3e06", "data": { "trackType": "video", "trackName": "video", "bitrate": 2500000, "previousTimestamp": "10999", "newTimestamp": "14999", "timescale": "1000", "discontinuityGap": 4000 }, "dataVersion": "1.0", "metadataVersion": "1"}] \ No newline at end of file diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaServicesJobStateChangedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaServicesJobStateChangedEvent.json deleted file mode 100644 index 8e0611788e058..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MediaServicesJobStateChangedEvent.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription id}/resourceGroups/amsResourceGroup/providers/Microsoft.Media/mediaservices/amsaccount", - "subject": "transforms/VideoAnalyzerTransform/jobs/{job id}", - "eventType": "Microsoft.Media.JobStateChange", - "eventTime": "2018-04-20T21:26:13.8978772", - "id": "", - "data": { - "previousState": "Processing", - "state": "Finished" - }, - "dataVersion": "1.0", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MultipleEventsInSameBatch.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MultipleEventsInSameBatch.json deleted file mode 100644 index 536bd2e57a9b6..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/MultipleEventsInSameBatch.json +++ /dev/null @@ -1,79 +0,0 @@ -[ - { - "topic": "/subscriptions/319a9601-1ec0-0000-aebc-8fe82724c81e/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/myaccount", - "subject": "/blobServices/default/containers/testcontainer/blobs/file1.txt", - "eventType": "Microsoft.Storage.BlobCreated", - "eventTime": "2017-08-16T01:57:26.005121Z", - "id": "602a88ef-0001-00e6-1233-1646070610ea", - "data": { - "api": "PutBlockList", - "clientRequestId": "799304a4-bbc5-45b6-9849-ec2c66be800a", - "requestId": "602a88ef-0001-00e6-1233-164607000000", - "eTag": "0x8D4E44A24ABE7F1", - "contentType": "text/plain", - "contentLength": 447, - "blobType": "BlockBlob", - "url": "https://myaccount.blob.core.windows.net/testcontainer/file1.txt", - "sequencer": "00000000000000EB000000000000C65A" - }, - "dataVersion": "", - "metadataVersion": "1" - }, - { - "topic": "/subscriptions/id/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/xstoretestaccount", - "subject": "/blobServices/default/containers/testcontainer/blobs/testfile.txt", - "eventType": "Microsoft.Storage.BlobDeleted", - "eventTime": "2017-11-07T20:09:22.5674003Z", - "id": "4c2359fe-001e-00ba-0e04-58586806d298", - "data": { - "api": "DeleteBlob", - "requestId": "4c2359fe-001e-00ba-0e04-585868000000", - "contentType": "text/plain", - "blobType": "BlockBlob", - "url": "https://example.blob.core.windows.net/testcontainer/testfile.txt", - "sequencer": "0000000000000281000000000002F5CA", - "storageDiagnostics": { - "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0" - } - }, - "dataVersion": "", - "metadataVersion": "1" - }, - { - "topic": "/subscriptions/id/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/xstoretestaccount", - "subject": "/blobServices/default/containers/testcontainer/blobs/testfile.txt", - "eventType": "Microsoft.Storage.BlobDeleted", - "eventTime": "2017-11-07T20:09:22.5674003Z", - "id": "4c2359fe-001e-00ba-0e04-58586806d298", - "data": { - "api": "DeleteBlob", - "requestId": "4c2359fe-001e-00ba-0e04-585868000000", - "contentType": "text/plain", - "blobType": "BlockBlob", - "url": "https://example.blob.core.windows.net/testcontainer/testfile.txt", - "sequencer": "0000000000000281000000000002F5CA", - "storageDiagnostics": { - "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0" - } - }, - "dataVersion": "", - "metadataVersion": "1" - }, - { - "topic": "/subscriptions/id/resourcegroups/rg/providers/Microsoft.ServiceBus/namespaces/testns1", - "subject": "topics/topic1/subscriptions/sub1", - "eventType": "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener", - "eventTime": "2018-02-14T05:12:53.4133526Z", - "id": "dede87b0-3656-419c-acaf-70c95ddc60f5", - "data": { - "namespaceName": "testns1", - "requestUri": "https://testns1.servicebus.windows.net/t1/subscriptions/sub1/messages/head", - "entityType": "subscriber", - "queueName": "queue1", - "topicName": "topic1", - "subscriptionName": "sub1" - }, - "dataVersion": "1", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionCancelEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionCancelEvent.json deleted file mode 100644 index 48c4f902a9bcf..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionCancelEvent.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription-id}", - "subject": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "eventType": "Microsoft.Resources.ResourceActionCancel", - "eventTime": "2017-08-16T03:54:38.2696833Z", - "id": "25b3b0d0-d79b-44d5-9963-440d4e6a9bba", - "data": { - "authorization": "{azure_resource_manager_authorizations}", - "claims": "{azure_resource_manager_claims}", - "correlationId": "54ef1e39-6a82-44b3-abc1-bdeb6ce4d3c6", - "httpRequest": "{request-operation}", - "resourceProvider": "Microsoft.EventGrid", - "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "operationName": "Microsoft.EventGrid/eventSubscriptions/write", - "status": "Succeeded", - "subscriptionId": "{subscription-id}", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionFailureEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionFailureEvent.json deleted file mode 100644 index 1b7bd2d75f513..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionFailureEvent.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription-id}", - "subject": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "eventType": "Microsoft.Resources.ResourceActionFailure", - "eventTime": "2017-08-16T03:54:38.2696833Z", - "id": "25b3b0d0-d79b-44d5-9963-440d4e6a9bba", - "data": { - "authorization": "{azure_resource_manager_authorizations}", - "claims": "{azure_resource_manager_claims}", - "correlationId": "54ef1e39-6a82-44b3-abc1-bdeb6ce4d3c6", - "httpRequest": "{request-operation}", - "resourceProvider": "Microsoft.EventGrid", - "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "operationName": "Microsoft.EventGrid/eventSubscriptions/write", - "status": "Succeeded", - "subscriptionId": "{subscription-id}", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionSuccessEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionSuccessEvent.json deleted file mode 100644 index ff88ad7960e15..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceActionSuccessEvent.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription-id}", - "subject": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "eventType": "Microsoft.Resources.ResourceActionSuccess", - "eventTime": "2017-08-16T03:54:38.2696833Z", - "id": "25b3b0d0-d79b-44d5-9963-440d4e6a9bba", - "data": { - "authorization": "{azure_resource_manager_authorizations}", - "claims": "{azure_resource_manager_claims}", - "correlationId": "54ef1e39-6a82-44b3-abc1-bdeb6ce4d3c6", - "httpRequest": "{request-operation}", - "resourceProvider": "Microsoft.EventGrid", - "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "operationName": "Microsoft.EventGrid/eventSubscriptions/write", - "status": "Succeeded", - "subscriptionId": "{subscription-id}", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteCancelEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteCancelEvent.json deleted file mode 100644 index 90d898be4f84a..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteCancelEvent.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription-id}", - "subject": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "eventType": "Microsoft.Resources.ResourceDeleteCancel", - "eventTime": "2017-08-16T03:54:38.2696833Z", - "id": "25b3b0d0-d79b-44d5-9963-440d4e6a9bba", - "data": { - "authorization": "{azure_resource_manager_authorizations}", - "claims": "{azure_resource_manager_claims}", - "correlationId": "54ef1e39-6a82-44b3-abc1-bdeb6ce4d3c6", - "httpRequest": "{request-operation}", - "resourceProvider": "Microsoft.EventGrid", - "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "operationName": "Microsoft.EventGrid/eventSubscriptions/write", - "status": "Succeeded", - "subscriptionId": "{subscription-id}", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteFailureEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteFailureEvent.json deleted file mode 100644 index 6e9f91e58bb9c..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteFailureEvent.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription-id}", - "subject": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "eventType": "Microsoft.Resources.ResourceDeleteFailure", - "eventTime": "2017-08-16T03:54:38.2696833Z", - "id": "25b3b0d0-d79b-44d5-9963-440d4e6a9bba", - "data": { - "authorization": "{azure_resource_manager_authorizations}", - "claims": "{azure_resource_manager_claims}", - "correlationId": "54ef1e39-6a82-44b3-abc1-bdeb6ce4d3c6", - "httpRequest": "{request-operation}", - "resourceProvider": "Microsoft.EventGrid", - "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "operationName": "Microsoft.EventGrid/eventSubscriptions/write", - "status": "Succeeded", - "subscriptionId": "{subscription-id}", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteSuccessEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteSuccessEvent.json deleted file mode 100644 index 068c14c4d4abd..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceDeleteSuccessEvent.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription-id}", - "subject": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "eventType": "Microsoft.Resources.ResourceDeleteSuccess", - "eventTime": "2017-08-16T03:54:38.2696833Z", - "id": "25b3b0d0-d79b-44d5-9963-440d4e6a9bba", - "data": { - "authorization": "{azure_resource_manager_authorizations}", - "claims": "{azure_resource_manager_claims}", - "correlationId": "54ef1e39-6a82-44b3-abc1-bdeb6ce4d3c6", - "httpRequest": "{request-operation}", - "resourceProvider": "Microsoft.EventGrid", - "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "operationName": "Microsoft.EventGrid/eventSubscriptions/write", - "status": "Succeeded", - "subscriptionId": "{subscription-id}", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteCancelEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteCancelEvent.json deleted file mode 100644 index 6d383f41a1915..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteCancelEvent.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription-id}", - "subject": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "eventType": "Microsoft.Resources.ResourceWriteCancel", - "eventTime": "2017-08-16T03:54:38.2696833Z", - "id": "25b3b0d0-d79b-44d5-9963-440d4e6a9bba", - "data": { - "authorization": "{azure_resource_manager_authorizations}", - "claims": "{azure_resource_manager_claims}", - "correlationId": "54ef1e39-6a82-44b3-abc1-bdeb6ce4d3c6", - "httpRequest": "{request-operation}", - "resourceProvider": "Microsoft.EventGrid", - "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "operationName": "Microsoft.EventGrid/eventSubscriptions/write", - "status": "Succeeded", - "subscriptionId": "{subscription-id}", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteFailureEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteFailureEvent.json deleted file mode 100644 index c8912cc97f0b6..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteFailureEvent.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription-id}", - "subject": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "eventType": "Microsoft.Resources.ResourceWriteFailure", - "eventTime": "2017-08-16T03:54:38.2696833Z", - "id": "25b3b0d0-d79b-44d5-9963-440d4e6a9bba", - "data": { - "authorization": "{azure_resource_manager_authorizations}", - "claims": "{azure_resource_manager_claims}", - "correlationId": "54ef1e39-6a82-44b3-abc1-bdeb6ce4d3c6", - "httpRequest": "{request-operation}", - "resourceProvider": "Microsoft.EventGrid", - "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "operationName": "Microsoft.EventGrid/eventSubscriptions/write", - "status": "Succeeded", - "subscriptionId": "{subscription-id}", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteSuccessEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteSuccessEvent.json deleted file mode 100644 index e4dee418fea57..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ResourceWriteSuccessEvent.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "topic": "/subscriptions/{subscription-id}", - "subject": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "eventType": "Microsoft.Resources.ResourceWriteSuccess", - "eventTime": "2017-08-16T03:54:38.2696833Z", - "id": "25b3b0d0-d79b-44d5-9963-440d4e6a9bba", - "data": { - "authorization": "{azure_resource_manager_authorizations}", - "claims": "{azure_resource_manager_claims}", - "correlationId": "54ef1e39-6a82-44b3-abc1-bdeb6ce4d3c6", - "httpRequest": "{request-operation}", - "resourceProvider": "Microsoft.EventGrid", - "resourceUri": "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/eventSubscriptions/LogicAppdd584bdf-8347-49c9-b9a9-d1f980783501", - "operationName": "Microsoft.EventGrid/eventSubscriptions/write", - "status": "Succeeded", - "subscriptionId": "{subscription-id}", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ServiceBusActiveMessagesAvailableWithNoListenersEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ServiceBusActiveMessagesAvailableWithNoListenersEvent.json deleted file mode 100644 index af12bc4404e3a..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ServiceBusActiveMessagesAvailableWithNoListenersEvent.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "topic": "/subscriptions/id/resourcegroups/rg/providers/Microsoft.ServiceBus/namespaces/testns1", - "subject": "topics/topic1/subscriptions/sub1", - "eventType": "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners", - "eventTime": "2018-02-14T05:12:53.4133526Z", - "id": "dede87b0-3656-419c-acaf-70c95ddc60f5", - "data": { - "namespaceName": "testns1", - "requestUri": "https: //testns1.servicebus.windows.net/t1/subscriptions/sub1/messages/head", - "entityType": "subscriber", - "queueName": "queue1", - "topicName": "topic1", - "subscriptionName": "sub1" - }, - "dataVersion": "1", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ServiceBusDeadletterMessagesAvailableWithNoListenersEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ServiceBusDeadletterMessagesAvailableWithNoListenersEvent.json deleted file mode 100644 index a85f575cdf618..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/ServiceBusDeadletterMessagesAvailableWithNoListenersEvent.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "topic": "/subscriptions/id/resourcegroups/rg/providers/Microsoft.ServiceBus/namespaces/testns1", - "subject": "topics/topic1/subscriptions/sub1", - "eventType": "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener", - "eventTime": "2018-02-14T05:12:53.4133526Z", - "id": "dede87b0-3656-419c-acaf-70c95ddc60f5", - "data": { - "namespaceName": "testns1", - "requestUri": "https://testns1.servicebus.windows.net/t1/subscriptions/sub1/messages/head", - "entityType": "subscriber", - "queueName": "queue1", - "topicName": "topic1", - "subscriptionName": "sub1" - }, - "dataVersion": "1", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobCreatedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobCreatedEvent.json deleted file mode 100644 index f051ee38c58d1..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobCreatedEvent.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "topic": "/subscriptions/319a9601-1ec0-0000-aebc-8fe82724c81e/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/myaccount", - "subject": "/blobServices/default/containers/testcontainer/blobs/file1.txt", - "eventType": "Microsoft.Storage.BlobCreated", - "eventTime": "2017-08-16T01:57:26.005121Z", - "id": "602a88ef-0001-00e6-1233-1646070610ea", - "data": { - "api": "PutBlockList", - "clientRequestId": "799304a4-bbc5-45b6-9849-ec2c66be800a", - "requestId": "602a88ef-0001-00e6-1233-164607000000", - "eTag": "0x8D4E44A24ABE7F1", - "contentType": "text/plain", - "contentLength": 447, - "blobType": "BlockBlob", - "url": "https://myaccount.blob.core.windows.net/testcontainer/file1.txt", - "sequencer": "00000000000000EB000000000000C65A" - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobDeletedEvent.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobDeletedEvent.json deleted file mode 100644 index d163e0931bbba..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobDeletedEvent.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "topic": "/subscriptions/id/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/xstoretestaccount", - "subject": "/blobServices/default/containers/testcontainer/blobs/testfile.txt", - "eventType": "Microsoft.Storage.BlobDeleted", - "eventTime": "2017-11-07T20:09:22.5674003Z", - "id": "4c2359fe-001e-00ba-0e04-58586806d298", - "data": { - "api": "DeleteBlob", - "requestId": "4c2359fe-001e-00ba-0e04-585868000000", - "contentType": "text/plain", - "blobType": "BlockBlob", - "url": "https://example.blob.core.windows.net/testcontainer/testfile.txt", - "sequencer": "0000000000000281000000000002F5CA", - "storageDiagnostics": { - "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0" - } - }, - "dataVersion": "", - "metadataVersion": "1" - } -] diff --git a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobDeletedEventWithExtraProperty.json b/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobDeletedEventWithExtraProperty.json deleted file mode 100644 index 3758afecd568a..0000000000000 --- a/sdk/eventgrid/microsoft-azure-eventgrid/src/test/resources/customization/StorageBlobDeletedEventWithExtraProperty.json +++ /dev/null @@ -1,24 +0,0 @@ -[ - { - "topic": "/subscriptions/id/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/xstoretestaccount", - "subject": "/blobServices/default/containers/testcontainer/blobs/testfile.txt", - "eventType": "Microsoft.Storage.BlobDeleted", - "eventTime": "2017-11-07T20:09:22.5674003Z", - "id": "4c2359fe-001e-00ba-0e04-58586806d298", - "data": { - "api": "DeleteBlob", - "requestId": "4c2359fe-001e-00ba-0e04-585868000000", - "contentType": "text/plain", - "blobType": "BlockBlob", - "url": "https://example.blob.core.windows.net/testcontainer/testfile.txt", - "sequencer": "0000000000000281000000000002F5CA", - "brandNewProperty": "0000000000000281000000000002F5CA", - "storageDiagnostics": { - "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0" - } - }, - "dataVersion": "", - "metadataVersion": "1" - } -] - diff --git a/sdk/eventgrid/pom.xml b/sdk/eventgrid/pom.xml index 1da22fcf1c820..0b26f5f8db79c 100644 --- a/sdk/eventgrid/pom.xml +++ b/sdk/eventgrid/pom.xml @@ -14,7 +14,6 @@ azure-messaging-eventgrid-cloudnative-cloudevents azure-messaging-eventgrid-namespaces azure-resourcemanager-eventgrid - microsoft-azure-eventgrid diff --git a/sdk/storage/microsoft-azure-storage-perf/CHANGELOG.md b/sdk/storage/microsoft-azure-storage-perf/CHANGELOG.md deleted file mode 100644 index c9a78334999c7..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/CHANGELOG.md +++ /dev/null @@ -1,4 +0,0 @@ -# Release History - -## 1.0.0-beta.1 (Unreleased) - diff --git a/sdk/storage/microsoft-azure-storage-perf/README.md b/sdk/storage/microsoft-azure-storage-perf/README.md deleted file mode 100644 index d2fdc9502f7af..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# Microsoft Azure Storage Performance test client library for Java - -Represents Performance tests for Microsoft Azure Storage SDK for Java. - -## Getting started - -### Prerequisites - -- Java Development Kit (JDK) with version 7 or above - -### Adding the package to your product - - -## Key concepts - - -## Examples - -## Troubleshooting - -## Next steps - -## Contributing - -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). - -1. Fork it -1. Create your feature branch (`git checkout -b my-new-feature`) -1. Commit your changes (`git commit -am 'Add some feature'`) -1. Push to the branch (`git push origin my-new-feature`) -1. Create new Pull Request - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fmicrosoft%2Fstorage%2Fperf-test%2FREADME.png) diff --git a/sdk/storage/microsoft-azure-storage-perf/pom.xml b/sdk/storage/microsoft-azure-storage-perf/pom.xml deleted file mode 100644 index c32f4c7438952..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - com.azure - azure-perf-test-parent - 1.0.0-beta.1 - ../../parents/azure-perf-test-parent - - - 4.0.0 - - com.microsoft.azure - microsoft-azure-storage-perf - 1.0.0-beta.1 - - - com.microsoft.azure.storage.App - true - - - - - com.azure - perf-test-core - 1.0.0-beta.1 - - - - com.microsoft.azure - azure-storage - 8.6.6 - - - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.5.0 - - - - - com.microsoft.azure:azure-storage:[8.6.6] - - - - - - - - - diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/App.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/App.java deleted file mode 100644 index db491b41aef89..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/App.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage; - -import com.azure.perf.test.core.PerfStressProgram; -import com.microsoft.azure.storage.blob.perf.DownloadBlobTest; -import com.microsoft.azure.storage.blob.perf.ListBlobsTest; -import com.microsoft.azure.storage.blob.perf.UploadBlobTest; -import com.microsoft.azure.storage.blob.perf.UploadFromFileTest; -import com.microsoft.azure.storage.blob.perf.UploadOutputStreamTest; -import com.microsoft.azure.storage.file.share.perf.DownloadFileShareTest; -import com.microsoft.azure.storage.file.share.perf.DownloadToFileShareTest; -import com.microsoft.azure.storage.file.share.perf.UploadFileShareTest; -import com.microsoft.azure.storage.file.share.perf.UploadFromFileShareTest; - -/** - * Runs the Storage performance test. - * - *

To run from command line. Package the project into a jar with dependencies via mvn clean package. - * Then run the program via java -jar 'compiled-jar-with-dependencies-path'

- * - *

To run from IDE, set all the required environment variables in IntelliJ via Run -> EditConfigurations - * section. - * Then run the App's main method via IDE.

- */ -public class App { - public static void main(String[] args) { - PerfStressProgram.run(new Class[]{ - DownloadBlobTest.class, - UploadBlobTest.class, - ListBlobsTest.class, - UploadFromFileTest.class, - UploadOutputStreamTest.class, - DownloadFileShareTest.class, - DownloadToFileShareTest.class, - UploadFileShareTest.class, - UploadFromFileShareTest.class - }, args); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/DownloadBlobTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/DownloadBlobTest.java deleted file mode 100644 index ff5dec616892f..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/DownloadBlobTest.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.blob.perf; - -import java.io.IOException; -import java.io.OutputStream; -import java.net.URISyntaxException; - -import com.azure.perf.test.core.NullOutputStream; -import com.azure.perf.test.core.PerfStressOptions; -import com.azure.perf.test.core.TestDataCreationHelper; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.blob.CloudBlockBlob; - -import com.microsoft.azure.storage.blob.perf.core.ContainerTest; -import reactor.core.publisher.Mono; - -public class DownloadBlobTest extends ContainerTest { - private final CloudBlockBlob cloudBlockBlob; - private static final OutputStream DEV_NULL = new NullOutputStream(); - - public DownloadBlobTest(PerfStressOptions options) { - super(options); - - try { - cloudBlockBlob = cloudBlobContainer.getBlockBlobReference("downloadtest"); - } catch (URISyntaxException | StorageException e) { - throw new RuntimeException(e); - } - } - - public Mono globalSetupAsync() { - return super.globalSetupAsync().then(Mono.fromCallable(() -> { - try { - cloudBlockBlob.upload(TestDataCreationHelper - .createRandomInputStream(options.getSize()), options.getSize()); - } catch (StorageException | IOException e) { - throw new RuntimeException(e); - } - return 1; - })).then(); - } - - @Override - public void run() { - try { - cloudBlockBlob.download(DEV_NULL); - } catch (StorageException e) { - throw new RuntimeException(e); - } - } - - @Override - public Mono runAsync() { - throw new UnsupportedOperationException(); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/ListBlobsTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/ListBlobsTest.java deleted file mode 100644 index 82a95e5c26620..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/ListBlobsTest.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.blob.perf; - -import java.util.UUID; - -import com.azure.perf.test.core.NullInputStream; -import com.azure.perf.test.core.PerfStressOptions; -import com.microsoft.azure.storage.blob.perf.core.ContainerTest; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; -import reactor.core.scheduler.Schedulers; - -public class ListBlobsTest extends ContainerTest { - public ListBlobsTest(PerfStressOptions options) { - super(options); - } - - public Mono globalSetupAsync() { - return super.globalSetupAsync().then( - Flux.range(0, options.getCount()) - .map(i -> "getblobstest-" + UUID.randomUUID()) - .flatMap(b -> upload(b).then(Mono.just(1))) - .then()); - } - - private Mono upload(String blobName) { - return Mono.empty() - .publishOn(Schedulers.boundedElastic()) - .then(Mono.fromCallable(() -> { - cloudBlobContainer.getBlockBlobReference(blobName).upload(new NullInputStream(), 0); - return 1; - })) - .then(); - } - - @Override - public void run() { - cloudBlobContainer.listBlobs().forEach(b -> { }); - } - - @Override - public Mono runAsync() { - throw new UnsupportedOperationException(); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadBlobTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadBlobTest.java deleted file mode 100644 index 4408919b5fd5f..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadBlobTest.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.blob.perf; - -import java.io.IOException; - -import com.azure.perf.test.core.PerfStressOptions; -import com.azure.perf.test.core.RepeatingInputStream; -import com.azure.perf.test.core.TestDataCreationHelper; -import com.microsoft.azure.storage.StorageException; - -import com.microsoft.azure.storage.blob.perf.core.BlobTestBase; -import reactor.core.publisher.Mono; - -public class UploadBlobTest extends BlobTestBase { - protected final RepeatingInputStream inputStream; - - public UploadBlobTest(PerfStressOptions options) { - super(options); - inputStream = (RepeatingInputStream) TestDataCreationHelper.createRandomInputStream(options.getSize()); - } - - @Override - public void run() { - try { - inputStream.reset(); - cloudBlockBlob.upload(TestDataCreationHelper.createRandomInputStream(options.getSize()), options.getSize()); - } catch (StorageException | IOException e) { - throw new RuntimeException(e); - } - } - - @Override - public Mono runAsync() { - throw new UnsupportedOperationException(); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadFromFileTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadFromFileTest.java deleted file mode 100644 index de3d02273ef78..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadFromFileTest.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.blob.perf; - -import java.io.IOException; -import java.nio.file.Files; -import java.nio.file.Path; - -import com.azure.perf.test.core.PerfStressOptions; -import com.azure.perf.test.core.TestDataCreationHelper; -import com.microsoft.azure.storage.StorageException; - -import com.microsoft.azure.storage.blob.perf.core.BlobTestBase; -import reactor.core.publisher.Mono; - -public class UploadFromFileTest extends BlobTestBase { - - private static final Path TEMP_FILE; - private static final String TEMP_FILE_PATH; - - static { - try { - TEMP_FILE = Files.createTempFile(null, null); - TEMP_FILE_PATH = TEMP_FILE.toString(); - } catch (IOException e) { - throw new RuntimeException(e); - } - } - - public UploadFromFileTest(PerfStressOptions options) { - super(options); - } - - @Override - public Mono globalSetupAsync() { - return super.globalSetupAsync().then(createTempFile()); - } - - @Override - public Mono globalCleanupAsync() { - return deleteTempFile().then(super.globalCleanupAsync()); - } - - private Mono createTempFile() { - return Mono.fromCallable(() -> { - TestDataCreationHelper.writeToFile(TEMP_FILE_PATH, options.getSize(), DEFAULT_BUFFER_SIZE); - return 1; - }).then(); - } - - private Mono deleteTempFile() { - try { - Files.delete(TEMP_FILE); - return Mono.empty(); - } catch (IOException e) { - throw new RuntimeException(e); - } - } - - @Override - public void run() { - try { - cloudBlockBlob.uploadFromFile(TEMP_FILE_PATH); - } catch (StorageException | IOException e) { - throw new RuntimeException(e); - } - } - - @Override - public Mono runAsync() { - throw new UnsupportedOperationException(); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadOutputStreamTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadOutputStreamTest.java deleted file mode 100644 index c4aa78120adb1..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/UploadOutputStreamTest.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.blob.perf; - -import java.io.IOException; - -import com.azure.perf.test.core.PerfStressOptions; -import com.azure.perf.test.core.TestDataCreationHelper; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.blob.BlobOutputStream; - -import com.microsoft.azure.storage.blob.perf.core.BlobTestBase; -import reactor.core.publisher.Mono; - -public class UploadOutputStreamTest extends BlobTestBase { - - public UploadOutputStreamTest(PerfStressOptions options) { - super(options); - } - - @Override - public void run() { - try { - BlobOutputStream outputStream = cloudBlockBlob.openOutputStream(); - TestDataCreationHelper.writeBytesToOutputStream(outputStream, options.getSize()); - outputStream.close(); - } catch (StorageException | IOException e) { - throw new RuntimeException(e); - } - } - - @Override - public Mono runAsync() { - throw new UnsupportedOperationException(); - } -} - diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/BlobTestBase.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/BlobTestBase.java deleted file mode 100644 index b64528ddd926b..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/BlobTestBase.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.blob.perf.core; - -import java.net.URISyntaxException; -import java.util.UUID; - -import com.azure.perf.test.core.PerfStressOptions; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.blob.CloudBlockBlob; - -public abstract class BlobTestBase extends ContainerTest { - protected static final int DEFAULT_BUFFER_SIZE = 8192; - protected final CloudBlockBlob cloudBlockBlob; - - public BlobTestBase(TOptions options) { - super(options); - String blobName = "randomblobtest-" + UUID.randomUUID().toString(); - try { - cloudBlockBlob = cloudBlobContainer.getBlockBlobReference(blobName); - } catch (URISyntaxException | StorageException e) { - throw new RuntimeException(e); - } - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/ContainerTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/ContainerTest.java deleted file mode 100644 index f7b50d4e162cf..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/ContainerTest.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.blob.perf.core; - -import com.azure.perf.test.core.PerfStressOptions; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.blob.CloudBlobContainer; - -import reactor.core.publisher.Mono; -import reactor.core.scheduler.Schedulers; - -import java.net.URISyntaxException; -import java.util.UUID; - -public abstract class ContainerTest extends ServiceTest { - protected static final String CONTAINER_NAME = "perfstress-" + UUID.randomUUID().toString(); - - protected final CloudBlobContainer cloudBlobContainer; - - public ContainerTest(TOptions options) { - super(options); - - try { - cloudBlobContainer = cloudBlobClient.getContainerReference(CONTAINER_NAME); - } catch (URISyntaxException | StorageException e) { - throw new RuntimeException(e); - } - } - - @Override - public Mono globalSetupAsync() { - return super.globalSetupAsync() - .then(Mono.fromCallable(() -> { - cloudBlobContainer.create(); - return 1; - })) - .then(); - } - - @Override - public Mono globalCleanupAsync() { - return Mono.empty() - .publishOn(Schedulers.boundedElastic()) - .then(Mono.fromCallable(() -> { - cloudBlobContainer.delete(); - return 1; - })) - .then(super.globalCleanupAsync()); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/ServiceTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/ServiceTest.java deleted file mode 100644 index e0eb51d845151..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/blob/perf/core/ServiceTest.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.blob.perf.core; - -import java.net.URISyntaxException; -import java.security.InvalidKeyException; - -import com.azure.perf.test.core.PerfStressOptions; -import com.azure.perf.test.core.PerfStressTest; -import com.microsoft.azure.storage.CloudStorageAccount; -import com.microsoft.azure.storage.blob.CloudBlobClient; - - -public abstract class ServiceTest extends PerfStressTest { - - protected final CloudBlobClient cloudBlobClient; - - public ServiceTest(TOptions options) { - super(options); - String connectionString = System.getenv("STORAGE_CONNECTION_STRING"); - - if (connectionString == null || connectionString.isEmpty()) { - throw new IllegalStateException("Environment variable STORAGE_CONNECTION_STRING must be set"); - } - - try { - cloudBlobClient = CloudStorageAccount.parse(connectionString).createCloudBlobClient(); - } catch (InvalidKeyException | URISyntaxException e) { - throw new RuntimeException(e); - } - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/DownloadFileShareTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/DownloadFileShareTest.java deleted file mode 100644 index d42507ae75281..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/DownloadFileShareTest.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.file.share.perf; - -import com.azure.perf.test.core.NullOutputStream; -import com.azure.perf.test.core.PerfStressOptions; -import com.azure.perf.test.core.TestDataCreationHelper; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.file.CloudFile; -import com.microsoft.azure.storage.file.share.perf.core.DirectoryTest; -import reactor.core.publisher.Mono; - -import java.io.IOException; -import java.io.OutputStream; -import java.net.URISyntaxException; -import java.util.UUID; - -public class DownloadFileShareTest extends DirectoryTest { - private static final OutputStream DEV_NULL = new NullOutputStream(); - - private final CloudFile cloudFile; - - public DownloadFileShareTest(PerfStressOptions options) { - super(options); - try { - String fileName = "perfstress-file-" + UUID.randomUUID().toString(); - cloudFile = cloudFileDirectory.getFileReference(fileName); - } catch (URISyntaxException | StorageException e) { - throw new RuntimeException(e); - } - } - - // Required resource setup goes here, upload the file to be downloaded during tests. - - @Override - public Mono setupAsync() { - return super.setupAsync() - .then(Mono.fromCallable(() -> { - try { - cloudFile.create(options.getSize()); - cloudFile.upload(TestDataCreationHelper.createRandomInputStream(options.getSize()), - options.getSize()); - return 1; - } catch (URISyntaxException | StorageException | IOException e) { - throw new RuntimeException(e); - } - })).then(); - } - - - // Perform the API call to be tested here - @Override - public void run() { - try { - cloudFile.download(DEV_NULL); - } catch (StorageException e) { - throw new RuntimeException(e); - } - } - - @Override - public Mono runAsync() { - throw new UnsupportedOperationException(); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/DownloadToFileShareTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/DownloadToFileShareTest.java deleted file mode 100644 index f6c1812c58288..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/DownloadToFileShareTest.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.file.share.perf; - -import com.azure.perf.test.core.PerfStressOptions; -import com.azure.perf.test.core.TestDataCreationHelper; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.file.CloudFile; -import com.microsoft.azure.storage.file.share.perf.core.DirectoryTest; -import reactor.core.publisher.Mono; - -import java.io.File; -import java.io.IOException; -import java.net.URISyntaxException; -import java.util.UUID; - -public class DownloadToFileShareTest extends DirectoryTest { - private final File targetFile; - private final String targetFilePath; - private final CloudFile cloudFile; - - public DownloadToFileShareTest(PerfStressOptions options) { - super(options); - try { - String fileName = "perfstress-file-" + UUID.randomUUID().toString(); - targetFile = new File(UUID.randomUUID().toString()); - targetFilePath = targetFile.getAbsolutePath(); - cloudFile = cloudFileDirectory.getFileReference(fileName); - } catch (URISyntaxException | StorageException e) { - throw new RuntimeException(e); - } - } - - // Required resource setup goes here, upload the file to be downloaded during tests. - @Override - public Mono setupAsync() { - return super.setupAsync() - .then(Mono.fromCallable(() -> { - try { - cloudFile.create(options.getSize()); - cloudFile.upload(TestDataCreationHelper.createRandomInputStream(options.getSize()), - options.getSize()); - return 1; - } catch (URISyntaxException | StorageException | IOException e) { - throw new RuntimeException(e); - } - })).then(); - } - - // Perform the API call to be tested here - @Override - public void run() { - try { - cloudFile.downloadToFile(targetFilePath); - } catch (StorageException | IOException e) { - throw new RuntimeException(e); - } - } - - @Override - public Mono cleanupAsync() { - return Mono.fromCallable(() -> { - targetFile.delete(); - return 1; - }).then(super.cleanupAsync()); - } - - @Override - public Mono runAsync() { - throw new UnsupportedOperationException(); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/UploadFileShareTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/UploadFileShareTest.java deleted file mode 100644 index 02cf0f5844f86..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/UploadFileShareTest.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.file.share.perf; - -import com.azure.perf.test.core.PerfStressOptions; -import com.azure.perf.test.core.RepeatingInputStream; -import com.azure.perf.test.core.TestDataCreationHelper; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.file.share.perf.core.FileTestBase; -import reactor.core.publisher.Mono; - -import java.io.IOException; -import java.net.URISyntaxException; - -public class UploadFileShareTest extends FileTestBase { - protected final RepeatingInputStream inputStream; - - public UploadFileShareTest(PerfStressOptions options) { - super(options); - inputStream = (RepeatingInputStream) TestDataCreationHelper.createRandomInputStream(options.getSize()); - } - - @Override - public void run() { - try { - inputStream.reset(); - cloudFile.upload(inputStream, options.getSize()); - } catch (StorageException | URISyntaxException | IOException e) { - throw new RuntimeException(e); - } - } - - @Override - public Mono runAsync() { - throw new UnsupportedOperationException(); - } - -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/UploadFromFileShareTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/UploadFromFileShareTest.java deleted file mode 100644 index 0dbc9fddbab73..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/UploadFromFileShareTest.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.file.share.perf; - -import com.azure.perf.test.core.PerfStressOptions; -import com.azure.perf.test.core.TestDataCreationHelper; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.file.share.perf.core.FileTestBase; -import reactor.core.publisher.Mono; - -import java.io.IOException; -import java.net.URISyntaxException; -import java.nio.file.Files; -import java.nio.file.Path; - -public class UploadFromFileShareTest extends FileTestBase { - - private static final Path TEMP_FILE; - private static final String TEMP_FILE_PATH; - - static { - try { - TEMP_FILE = Files.createTempFile(null, null); - TEMP_FILE_PATH = TEMP_FILE.toString(); - } catch (IOException e) { - throw new RuntimeException(e); - } - } - - public UploadFromFileShareTest(PerfStressOptions options) { - super(options); - } - - @Override - public void run() { - try { - cloudFile.uploadFromFile(TEMP_FILE_PATH); - } catch (StorageException | IOException | URISyntaxException e) { - throw new RuntimeException(e); - } - } - - @Override - public Mono runAsync() { - throw new UnsupportedOperationException(); - } - - - @Override - public Mono globalSetupAsync() { - return super.globalSetupAsync().then(createTempFile()); - } - - @Override - public Mono globalCleanupAsync() { - return deleteTempFile().then(super.globalCleanupAsync()); - } - - - private Mono createTempFile() { - return Mono.fromCallable(() -> { - TestDataCreationHelper.writeToFile(TEMP_FILE_PATH, options.getSize(), DEFAULT_BUFFER_SIZE); - return 1; - }).then(); - } - - private Mono deleteTempFile() { - return Mono.defer(() -> { - try { - Files.delete(TEMP_FILE); - return Mono.empty(); - } catch (IOException e) { - return Mono.error(new RuntimeException(e)); - } - }); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/DirectoryTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/DirectoryTest.java deleted file mode 100644 index cefa1527d5c95..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/DirectoryTest.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.file.share.perf.core; - -import com.azure.perf.test.core.PerfStressOptions; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.file.CloudFileDirectory; -import reactor.core.publisher.Mono; - -import java.net.URISyntaxException; -import java.util.UUID; - -public abstract class DirectoryTest extends ShareTest { - protected final CloudFileDirectory cloudFileDirectory; - - public DirectoryTest(TOptions options) { - super(options); - // Setup the container clients - try { - String directoryName = "perfstress-directory-" + UUID.randomUUID().toString(); - cloudFileDirectory = cloudFileShare.getRootDirectoryReference().getDirectoryReference(directoryName); - } catch (URISyntaxException | StorageException e) { - throw new RuntimeException(e); - } - } - - // NOTE: the pattern setup the parent first, then yourself. - @Override - public Mono setupAsync() { - return super.setupAsync() - .then(Mono.fromCallable(() -> { - cloudFileDirectory.create(); - return 1; })) - .then(); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/FileTestBase.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/FileTestBase.java deleted file mode 100644 index c5df1fe699916..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/FileTestBase.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.file.share.perf.core; - -import com.azure.perf.test.core.PerfStressOptions; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.file.CloudFile; -import reactor.core.publisher.Mono; - -import java.net.URISyntaxException; -import java.util.UUID; - -public abstract class FileTestBase extends DirectoryTest { - - public static final int DEFAULT_BUFFER_SIZE = 8192; - protected final CloudFile cloudFile; - - public FileTestBase(TOptions options) { - super(options); - - String fileName = "randomfiletest-" + UUID.randomUUID().toString(); - - try { - cloudFile = cloudFileDirectory.getFileReference(fileName); - } catch (URISyntaxException | StorageException e) { - throw new RuntimeException(e); - } - } - - @Override - public Mono setupAsync() { - return super.setupAsync().then(Mono.fromCallable(() -> { - cloudFile.create(options.getSize() + DEFAULT_BUFFER_SIZE); - return 1; - })).then(); - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/ServiceTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/ServiceTest.java deleted file mode 100644 index 3f1525597b327..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/ServiceTest.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.file.share.perf.core; - -import com.azure.perf.test.core.PerfStressOptions; -import com.azure.perf.test.core.PerfStressTest; -import com.microsoft.azure.storage.CloudStorageAccount; -import com.microsoft.azure.storage.file.CloudFileClient; - -import java.net.URISyntaxException; -import java.security.InvalidKeyException; - -public abstract class ServiceTest extends PerfStressTest { - - protected final CloudFileClient cloudFileClient; - - public ServiceTest(TOptions options) { - super(options); - String connectionString = System.getenv("STORAGE_CONNECTION_STRING"); - if (connectionString == null || connectionString.isEmpty()) { - throw new IllegalStateException("Environment variable STORAGE_CONNECTION_STRING must be set"); - } - - try { - cloudFileClient = CloudStorageAccount.parse(connectionString).createCloudFileClient(); - } catch (InvalidKeyException | URISyntaxException e) { - throw new RuntimeException(e); - } - } -} diff --git a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/ShareTest.java b/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/ShareTest.java deleted file mode 100644 index 7c5703b7b2dad..0000000000000 --- a/sdk/storage/microsoft-azure-storage-perf/src/main/java/com/microsoft/azure/storage/file/share/perf/core/ShareTest.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.microsoft.azure.storage.file.share.perf.core; - -import com.azure.perf.test.core.PerfStressOptions; -import com.microsoft.azure.storage.StorageException; -import com.microsoft.azure.storage.file.CloudFileShare; -import reactor.core.publisher.Mono; - -import java.net.URISyntaxException; -import java.util.UUID; - -public abstract class ShareTest extends ServiceTest { - protected final CloudFileShare cloudFileShare; - - public ShareTest(TOptions options) { - super(options); - // Setup the container clients - try { - String shareName = "perfstress-share-" + UUID.randomUUID().toString(); - cloudFileShare = cloudFileClient.getShareReference(shareName); - } catch (URISyntaxException | StorageException e) { - throw new RuntimeException(e); - } - } - - // NOTE: the pattern setup the parent first, then yourself. - @Override - public Mono setupAsync() { - return super.setupAsync() - .then(Mono.fromCallable(() -> { - cloudFileShare.create(); - return 1; - })).then(); - } - - // NOTE: the pattern, cleanup yourself, then the parent. - @Override - public Mono globalCleanupAsync() { - return Mono.fromCallable(() -> { - cloudFileShare.delete(); - return 1; - }).then(super.globalCleanupAsync()); - } -} diff --git a/sdk/storage/pom.xml b/sdk/storage/pom.xml index 9a3191cebc2a2..60a3b0e7d3a37 100644 --- a/sdk/storage/pom.xml +++ b/sdk/storage/pom.xml @@ -20,7 +20,6 @@ azure-storage-internal-avro azure-storage-queue azure-storage-perf - microsoft-azure-storage-perf azure-storage-blob-stress azure-storage-stress azure-storage-file-datalake-stress From a62636a902138f6b3f718b66090aa616ddb2efc6 Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Fri, 1 Nov 2024 11:33:40 -0700 Subject: [PATCH 2/2] remove defunct microsoft-azure-eventgrid only dependency --- eng/versioning/external_dependencies.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/eng/versioning/external_dependencies.txt b/eng/versioning/external_dependencies.txt index 23ef3b8544bff..00cf180896272 100644 --- a/eng/versioning/external_dependencies.txt +++ b/eng/versioning/external_dependencies.txt @@ -378,9 +378,6 @@ cosmos_io.confluent:kafka-connect-maven-plugin;0.12.0 # This dependency is needed since Jackson Avro uses an older dependency on Apache Avro which is another library. jacksonavro_org.apache.avro:avro-maven-plugin;1.8.2 -# sdk\eventgrid\microsoft-azure-eventgrid\pom.xml -eventgrid_commons-io:commons-io;2.7 - # sdk\keyvault\microsoft-azure-keyvault-extensions\pom.xml keyvault_org.mockito:mockito-core;1.10.19 # sdk\keyvault\microsoft-azure-keyvault-test\pom.xml