diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs
index 72dfa1e4e275..2ce618dd4361 100644
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs
@@ -8,7 +8,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Azure.Messaging.EventGrid.Models;
using Azure.Messaging.EventGrid.SystemEvents;
namespace Azure.Messaging.EventGrid
@@ -196,18 +195,6 @@ public static EventHubCaptureFileCreatedEventData EventHubCaptureFileCreatedEven
return new EventHubCaptureFileCreatedEventData(fileurl, fileType, partitionId, sizeInBytes, eventCount, firstSequenceNumber, lastSequenceNumber, firstEnqueueTime, lastEnqueueTime);
}
- /// Initializes a new instance of ResourceAuthorization.
- /// The scope of the authorization.
- /// The action being requested.
- /// The evidence for the authorization.
- /// A new instance for mocking.
- public static ResourceAuthorization ResourceAuthorization(string scope = null, string action = null, IReadOnlyDictionary evidence = null)
- {
- evidence ??= new Dictionary();
-
- return new ResourceAuthorization(scope, action, evidence);
- }
-
/// Initializes a new instance of SubscriptionValidationEventData.
/// The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).
/// The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).
@@ -1666,20 +1653,6 @@ public static AcsSmsReceivedEventData AcsSmsReceivedEventData(string messageId =
return new AcsSmsReceivedEventData(messageId, @from, to, message, receivedTimestamp);
}
- /// Initializes a new instance of AcsRecordingFileStatusUpdatedEventData.
- /// The details of recording storage information.
- /// The time at which the recording started.
- /// The recording duration in milliseconds.
- /// The recording content type- AudioVideo, or Audio.
- /// The recording channel type - Mixed, Unmixed.
- /// The recording format type - Mp4, Mp3, Wav.
- /// The reason for ending recording session.
- /// A new instance for mocking.
- public static AcsRecordingFileStatusUpdatedEventData AcsRecordingFileStatusUpdatedEventData(AcsRecordingStorageInfoProperties recordingStorageInfo = null, DateTimeOffset? recordingStartTime = null, long? recordingDurationMs = null, RecordingContentType? recordingContentType = null, RecordingChannelType? recordingChannelType = null, RecordingFormatType? recordingFormatType = null, string sessionEndReason = null)
- {
- return new AcsRecordingFileStatusUpdatedEventData(recordingStorageInfo, recordingStartTime, recordingDurationMs, recordingContentType, recordingChannelType, recordingFormatType, sessionEndReason);
- }
-
/// Initializes a new instance of AcsRecordingStorageInfoProperties.
/// List of details of recording chunks information.
/// A new instance for mocking.
@@ -1690,19 +1663,6 @@ public static AcsRecordingStorageInfoProperties AcsRecordingStorageInfoPropertie
return new AcsRecordingStorageInfoProperties(recordingChunks?.ToList());
}
- /// Initializes a new instance of AcsRecordingChunkInfoProperties.
- /// The documentId of the recording chunk.
- /// The index of the recording chunk.
- /// The reason for ending the recording chunk.
- /// The location of the metadata for this chunk.
- /// The location of the content for this chunk.
- /// The location to delete all chunk storage.
- /// A new instance for mocking.
- public static AcsRecordingChunkInfoProperties AcsRecordingChunkInfoProperties(string documentId = null, long? index = null, string endReason = null, string metadataLocation = null, string contentLocation = null, string deleteLocation = null)
- {
- return new AcsRecordingChunkInfoProperties(documentId, index, endReason, metadataLocation, contentLocation, deleteLocation);
- }
-
/// Initializes a new instance of PolicyInsightsPolicyStateCreatedEventData.
/// The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ.
/// The resource ID of the policy assignment.
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.Serialization.cs
index cf8134f348d4..144b6515c05a 100644
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.Serialization.cs
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.Serialization.cs
@@ -19,7 +19,6 @@ internal static AcsRecordingChunkInfoProperties DeserializeAcsRecordingChunkInfo
Optional endReason = default;
Optional metadataLocation = default;
Optional contentLocation = default;
- Optional deleteLocation = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("documentId"))
@@ -52,13 +51,8 @@ internal static AcsRecordingChunkInfoProperties DeserializeAcsRecordingChunkInfo
contentLocation = property.Value.GetString();
continue;
}
- if (property.NameEquals("deleteLocation"))
- {
- deleteLocation = property.Value.GetString();
- continue;
- }
}
- return new AcsRecordingChunkInfoProperties(documentId.Value, Optional.ToNullable(index), endReason.Value, metadataLocation.Value, contentLocation.Value, deleteLocation.Value);
+ return new AcsRecordingChunkInfoProperties(documentId.Value, Optional.ToNullable(index), endReason.Value, metadataLocation.Value, contentLocation.Value);
}
}
}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.cs
index b2995584e018..c3d0471c9129 100644
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.cs
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.cs
@@ -21,15 +21,13 @@ internal AcsRecordingChunkInfoProperties()
/// The reason for ending the recording chunk.
/// The location of the metadata for this chunk.
/// The location of the content for this chunk.
- /// The location to delete all chunk storage.
- internal AcsRecordingChunkInfoProperties(string documentId, long? index, string endReason, string metadataLocation, string contentLocation, string deleteLocation)
+ internal AcsRecordingChunkInfoProperties(string documentId, long? index, string endReason, string metadataLocation, string contentLocation)
{
DocumentId = documentId;
Index = index;
EndReason = endReason;
MetadataLocation = metadataLocation;
ContentLocation = contentLocation;
- DeleteLocation = deleteLocation;
}
/// The documentId of the recording chunk.
@@ -42,7 +40,5 @@ internal AcsRecordingChunkInfoProperties(string documentId, long? index, string
public string MetadataLocation { get; }
/// The location of the content for this chunk.
public string ContentLocation { get; }
- /// The location to delete all chunk storage.
- public string DeleteLocation { get; }
}
}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.Serialization.cs
index efc317a6105a..c6bfe755e854 100644
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.Serialization.cs
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.Serialization.cs
@@ -9,7 +9,6 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Azure.Core;
-using Azure.Messaging.EventGrid.Models;
namespace Azure.Messaging.EventGrid.SystemEvents
{
@@ -21,9 +20,6 @@ internal static AcsRecordingFileStatusUpdatedEventData DeserializeAcsRecordingFi
Optional recordingStorageInfo = default;
Optional recordingStartTime = default;
Optional recordingDurationMs = default;
- Optional recordingContentType = default;
- Optional recordingChannelType = default;
- Optional recordingFormatType = default;
Optional sessionEndReason = default;
foreach (var property in element.EnumerateObject())
{
@@ -57,43 +53,13 @@ internal static AcsRecordingFileStatusUpdatedEventData DeserializeAcsRecordingFi
recordingDurationMs = property.Value.GetInt64();
continue;
}
- if (property.NameEquals("recordingContentType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- recordingContentType = new RecordingContentType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("recordingChannelType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- recordingChannelType = new RecordingChannelType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("recordingFormatType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- recordingFormatType = new RecordingFormatType(property.Value.GetString());
- continue;
- }
if (property.NameEquals("sessionEndReason"))
{
sessionEndReason = property.Value.GetString();
continue;
}
}
- return new AcsRecordingFileStatusUpdatedEventData(recordingStorageInfo.Value, Optional.ToNullable(recordingStartTime), Optional.ToNullable(recordingDurationMs), Optional.ToNullable(recordingContentType), Optional.ToNullable(recordingChannelType), Optional.ToNullable(recordingFormatType), sessionEndReason.Value);
+ return new AcsRecordingFileStatusUpdatedEventData(recordingStorageInfo.Value, Optional.ToNullable(recordingStartTime), Optional.ToNullable(recordingDurationMs), sessionEndReason.Value);
}
internal partial class AcsRecordingFileStatusUpdatedEventDataConverter : JsonConverter
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.cs
index 2f884dae0433..fb468b6e0144 100644
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.cs
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.cs
@@ -6,7 +6,6 @@
#nullable disable
using System;
-using Azure.Messaging.EventGrid.Models;
namespace Azure.Messaging.EventGrid.SystemEvents
{
@@ -22,18 +21,12 @@ internal AcsRecordingFileStatusUpdatedEventData()
/// The details of recording storage information.
/// The time at which the recording started.
/// The recording duration in milliseconds.
- /// The recording content type- AudioVideo, or Audio.
- /// The recording channel type - Mixed, Unmixed.
- /// The recording format type - Mp4, Mp3, Wav.
/// The reason for ending recording session.
- internal AcsRecordingFileStatusUpdatedEventData(AcsRecordingStorageInfoProperties recordingStorageInfo, DateTimeOffset? recordingStartTime, long? recordingDurationMs, RecordingContentType? recordingContentType, RecordingChannelType? recordingChannelType, RecordingFormatType? recordingFormatType, string sessionEndReason)
+ internal AcsRecordingFileStatusUpdatedEventData(AcsRecordingStorageInfoProperties recordingStorageInfo, DateTimeOffset? recordingStartTime, long? recordingDurationMs, string sessionEndReason)
{
RecordingStorageInfo = recordingStorageInfo;
RecordingStartTime = recordingStartTime;
RecordingDurationMs = recordingDurationMs;
- RecordingContentType = recordingContentType;
- RecordingChannelType = recordingChannelType;
- RecordingFormatType = recordingFormatType;
SessionEndReason = sessionEndReason;
}
@@ -43,12 +36,6 @@ internal AcsRecordingFileStatusUpdatedEventData(AcsRecordingStorageInfoPropertie
public DateTimeOffset? RecordingStartTime { get; }
/// The recording duration in milliseconds.
public long? RecordingDurationMs { get; }
- /// The recording content type- AudioVideo, or Audio.
- public RecordingContentType? RecordingContentType { get; }
- /// The recording channel type - Mixed, Unmixed.
- public RecordingChannelType? RecordingChannelType { get; }
- /// The recording format type - Mp4, Mp3, Wav.
- public RecordingFormatType? RecordingFormatType { get; }
/// The reason for ending recording session.
public string SessionEndReason { get; }
}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RecordingChannelType.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RecordingChannelType.cs
deleted file mode 100644
index 44e42e937f20..000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RecordingChannelType.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.Messaging.EventGrid.Models
-{
- /// The recording channel type - Mixed, Unmixed.
- public readonly partial struct RecordingChannelType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public RecordingChannelType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string MixedValue = "Mixed";
- private const string UnmixedValue = "Unmixed";
-
- /// Mixed.
- public static RecordingChannelType Mixed { get; } = new RecordingChannelType(MixedValue);
- /// Unmixed.
- public static RecordingChannelType Unmixed { get; } = new RecordingChannelType(UnmixedValue);
- /// Determines if two values are the same.
- public static bool operator ==(RecordingChannelType left, RecordingChannelType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(RecordingChannelType left, RecordingChannelType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator RecordingChannelType(string value) => new RecordingChannelType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is RecordingChannelType other && Equals(other);
- ///
- public bool Equals(RecordingChannelType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RecordingContentType.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RecordingContentType.cs
deleted file mode 100644
index be8d759c17e1..000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RecordingContentType.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.Messaging.EventGrid.Models
-{
- /// The recording content type- AudioVideo, or Audio.
- public readonly partial struct RecordingContentType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public RecordingContentType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string AudioVideoValue = "AudioVideo";
- private const string AudioValue = "Audio";
-
- /// AudioVideo.
- public static RecordingContentType AudioVideo { get; } = new RecordingContentType(AudioVideoValue);
- /// Audio.
- public static RecordingContentType Audio { get; } = new RecordingContentType(AudioValue);
- /// Determines if two values are the same.
- public static bool operator ==(RecordingContentType left, RecordingContentType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(RecordingContentType left, RecordingContentType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator RecordingContentType(string value) => new RecordingContentType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is RecordingContentType other && Equals(other);
- ///
- public bool Equals(RecordingContentType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RecordingFormatType.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RecordingFormatType.cs
deleted file mode 100644
index 72083e872ee9..000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RecordingFormatType.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.Messaging.EventGrid.Models
-{
- /// The recording format type - Mp4, Mp3, Wav.
- public readonly partial struct RecordingFormatType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public RecordingFormatType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string WavValue = "Wav";
- private const string Mp3Value = "Mp3";
- private const string Mp4Value = "Mp4";
-
- /// Wav.
- public static RecordingFormatType Wav { get; } = new RecordingFormatType(WavValue);
- /// Mp3.
- public static RecordingFormatType Mp3 { get; } = new RecordingFormatType(Mp3Value);
- /// Mp4.
- public static RecordingFormatType Mp4 { get; } = new RecordingFormatType(Mp4Value);
- /// Determines if two values are the same.
- public static bool operator ==(RecordingFormatType left, RecordingFormatType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(RecordingFormatType left, RecordingFormatType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator RecordingFormatType(string value) => new RecordingFormatType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is RecordingFormatType other && Equals(other);
- ///
- public bool Equals(RecordingFormatType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceAuthorization.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceAuthorization.Serialization.cs
deleted file mode 100644
index c8e354189897..000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceAuthorization.Serialization.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Collections.Generic;
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- public partial class ResourceAuthorization
- {
- internal static ResourceAuthorization DeserializeResourceAuthorization(JsonElement element)
- {
- Optional scope = default;
- Optional action = default;
- Optional> evidence = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("scope"))
- {
- scope = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("action"))
- {
- action = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("evidence"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetString());
- }
- evidence = dictionary;
- continue;
- }
- }
- return new ResourceAuthorization(scope.Value, action.Value, Optional.ToDictionary(evidence));
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceAuthorization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceAuthorization.cs
deleted file mode 100644
index d7d2ceb0e89e..000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceAuthorization.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// The details of the authorization for the resource.
- public partial class ResourceAuthorization
- {
- /// Initializes a new instance of ResourceAuthorization.
- internal ResourceAuthorization()
- {
- Evidence = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of ResourceAuthorization.
- /// The scope of the authorization.
- /// The action being requested.
- /// The evidence for the authorization.
- internal ResourceAuthorization(string scope, string action, IReadOnlyDictionary evidence)
- {
- Scope = scope;
- Action = action;
- Evidence = evidence;
- }
-
- /// The scope of the authorization.
- public string Scope { get; }
- /// The action being requested.
- public string Action { get; }
- /// The evidence for the authorization.
- public IReadOnlyDictionary Evidence { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceHttpRequest.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceHttpRequest.Serialization.cs
deleted file mode 100644
index 6e30f24e6f7c..000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceHttpRequest.Serialization.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- public partial class ResourceHttpRequest
- {
- internal static ResourceHttpRequest DeserializeResourceHttpRequest(JsonElement element)
- {
- Optional clientRequestId = default;
- Optional clientIpAddress = default;
- Optional method = default;
- Optional url = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("clientRequestId"))
- {
- clientRequestId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("clientIpAddress"))
- {
- clientIpAddress = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("method"))
- {
- method = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("url"))
- {
- url = property.Value.GetString();
- continue;
- }
- }
- return new ResourceHttpRequest(clientRequestId.Value, clientIpAddress.Value, method.Value, url.Value);
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceHttpRequest.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceHttpRequest.cs
deleted file mode 100644
index 7ff05ec2037e..000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceHttpRequest.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// The details of the HTTP request.
- public partial class ResourceHttpRequest
- {
- /// Initializes a new instance of ResourceHttpRequest.
- internal ResourceHttpRequest()
- {
- }
-
- /// Initializes a new instance of ResourceHttpRequest.
- /// The client request ID.
- /// The client IP address.
- /// The request method.
- /// The url used in the request.
- internal ResourceHttpRequest(string clientRequestId, string clientIpAddress, string methodString, string url)
- {
- ClientRequestId = clientRequestId;
- ClientIpAddress = clientIpAddress;
- MethodString = methodString;
- Url = url;
- }
-
- /// The client request ID.
- public string ClientRequestId { get; }
- /// The client IP address.
- public string ClientIpAddress { get; }
- /// The url used in the request.
- public string Url { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md b/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md
index 9985b47f59ae..5bfbc62a4b74 100644
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md
@@ -4,7 +4,7 @@ Run `dotnet build /t:GenerateCode` to generate code.
``` yaml
title: EventGridClient
-require: https://github.com/Azure/azure-rest-api-specs/blob/409af02e5ca217c7e7ec2acf50f4976c053496f8/specification/eventgrid/data-plane/readme.md
+require: https://github.com/Azure/azure-rest-api-specs/blob/c7484084df2355bf25846558eb15eea585a8be95/specification/eventgrid/data-plane/readme.md
```
## Swagger workarounds