diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs
index fbf727ff06fc3..6a09b59605ab3 100644
--- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs
+++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs
@@ -188,7 +188,7 @@ public async Task GetIngressGatewayCredentials_HybridConnectivityEndpointsPostLi
// invoke the operation
long? expiresin = 10800L;
- IngressGatewayResource result = await endpointResource.GetIngressGatewayCredentialsAsync(expiresin: expiresin);
+ IngressGatewayAsset result = await endpointResource.GetIngressGatewayCredentialsAsync(expiresin: expiresin);
Console.WriteLine($"Succeeded: {result}");
}
@@ -219,7 +219,7 @@ public async Task GetManagedProxyDetails_HybridConnectivityEndpointsPostListMana
Hostname = "r.proxy.arc.com",
ServiceName = ServiceName.WAC,
};
- ManagedProxyResource result = await endpointResource.GetManagedProxyDetailsAsync(content);
+ ManagedProxyAsset result = await endpointResource.GetManagedProxyDetailsAsync(content);
Console.WriteLine($"Succeeded: {result}");
}
diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs
index ceeebcfa7fbf6..9ea0659b04a9e 100644
--- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs
+++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/ArmHybridConnectivityModelFactory.cs
@@ -310,7 +310,7 @@ public static TargetResourceEndpointAccess TargetResourceEndpointAccess(string n
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The ingress hostname.
/// The arc ingress gateway server app id.
/// The target resource home tenant id.
@@ -320,10 +320,10 @@ public static TargetResourceEndpointAccess TargetResourceEndpointAccess(string n
/// Access key for hybrid connection.
/// The expiration of access key in unix time.
/// The token to access the enabled service.
- /// A new instance for mocking.
- public static IngressGatewayResource IngressGatewayResource(string hostname = null, string serverId = null, Guid? tenantId = null, string namespaceName = null, string namespaceNameSuffix = null, string hybridConnectionName = null, string accessKey = null, long? expiresOn = null, string serviceConfigurationToken = null)
+ /// A new instance for mocking.
+ public static IngressGatewayAsset IngressGatewayAsset(string hostname = null, string serverId = null, Guid? tenantId = null, string namespaceName = null, string namespaceNameSuffix = null, string hybridConnectionName = null, string accessKey = null, long? expiresOn = null, string serviceConfigurationToken = null)
{
- return new IngressGatewayResource(
+ return new IngressGatewayAsset(
hostname,
serverId,
tenantId,
@@ -346,13 +346,13 @@ public static ManagedProxyContent ManagedProxyContent(string service = null, str
return new ManagedProxyContent(service, hostname, serviceName, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The short lived proxy name.
/// The expiration time of short lived proxy name in unix epoch.
- /// A new instance for mocking.
- public static ManagedProxyResource ManagedProxyResource(string proxy = null, long expiresOn = default)
+ /// A new instance for mocking.
+ public static ManagedProxyAsset ManagedProxyAsset(string proxy = null, long expiresOn = default)
{
- return new ManagedProxyResource(proxy, expiresOn, serializedAdditionalRawData: null);
+ return new ManagedProxyAsset(proxy, expiresOn, serializedAdditionalRawData: null);
}
}
}
diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.cs
index 84c98a17dd25f..63d3759860ada 100644
--- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.cs
+++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/EndpointResource.cs
@@ -510,7 +510,7 @@ public virtual Response GetCredentials(ListCredent
/// Object of type ListIngressGatewayCredentialsRequest.
/// The is how long the endpoint access token is valid (in seconds).
/// The cancellation token to use.
- public virtual async Task> GetIngressGatewayCredentialsAsync(ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default)
+ public virtual async Task> GetIngressGatewayCredentialsAsync(ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default)
{
using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.GetIngressGatewayCredentials");
scope.Start();
@@ -550,7 +550,7 @@ public virtual async Task> GetIngressGatewayCre
/// Object of type ListIngressGatewayCredentialsRequest.
/// The is how long the endpoint access token is valid (in seconds).
/// The cancellation token to use.
- public virtual Response GetIngressGatewayCredentials(ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default)
+ public virtual Response GetIngressGatewayCredentials(ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default)
{
using var scope = _endpointResourceEndpointsClientDiagnostics.CreateScope("EndpointResource.GetIngressGatewayCredentials");
scope.Start();
@@ -590,7 +590,7 @@ public virtual Response GetIngressGatewayCredentials(Lis
/// Object of type ManagedProxyRequest.
/// The cancellation token to use.
/// is null.
- public virtual async Task> GetManagedProxyDetailsAsync(ManagedProxyContent content, CancellationToken cancellationToken = default)
+ public virtual async Task> GetManagedProxyDetailsAsync(ManagedProxyContent content, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(content, nameof(content));
@@ -632,7 +632,7 @@ public virtual async Task> GetManagedProxyDetails
/// Object of type ManagedProxyRequest.
/// The cancellation token to use.
/// is null.
- public virtual Response GetManagedProxyDetails(ManagedProxyContent content, CancellationToken cancellationToken = default)
+ public virtual Response GetManagedProxyDetails(ManagedProxyContent content, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(content, nameof(content));
diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.Serialization.cs
similarity index 84%
rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayResource.Serialization.cs
rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.Serialization.cs
index a6dc5cd80e3c1..ae7592b2540c8 100644
--- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayResource.Serialization.cs
+++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.Serialization.cs
@@ -13,11 +13,11 @@
namespace Azure.ResourceManager.HybridConnectivity.Models
{
- public partial class IngressGatewayResource : IUtf8JsonSerializable, IJsonModel
+ public partial class IngressGatewayAsset : IUtf8JsonSerializable, IJsonModel
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStartObject();
JsonModelWriteCore(writer, options);
@@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReader
/// The client options for reading and writing models.
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(IngressGatewayResource)} does not support writing '{format}' format.");
+ throw new FormatException($"The model {nameof(IngressGatewayAsset)} does not support writing '{format}' format.");
}
writer.WritePropertyName("ingress"u8);
@@ -105,19 +105,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
}
- IngressGatewayResource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ IngressGatewayAsset IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(IngressGatewayResource)} does not support reading '{format}' format.");
+ throw new FormatException($"The model {nameof(IngressGatewayAsset)} does not support reading '{format}' format.");
}
using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeIngressGatewayResource(document.RootElement, options);
+ return DeserializeIngressGatewayAsset(document.RootElement, options);
}
- internal static IngressGatewayResource DeserializeIngressGatewayResource(JsonElement element, ModelReaderWriterOptions options = null)
+ internal static IngressGatewayAsset DeserializeIngressGatewayAsset(JsonElement element, ModelReaderWriterOptions options = null)
{
options ??= ModelSerializationExtensions.WireOptions;
@@ -233,7 +233,7 @@ internal static IngressGatewayResource DeserializeIngressGatewayResource(JsonEle
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new IngressGatewayResource(
+ return new IngressGatewayAsset(
hostname,
serverId,
tenantId,
@@ -246,35 +246,35 @@ internal static IngressGatewayResource DeserializeIngressGatewayResource(JsonEle
serializedAdditionalRawData);
}
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
return ModelReaderWriter.Write(this, options);
default:
- throw new FormatException($"The model {nameof(IngressGatewayResource)} does not support writing '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(IngressGatewayAsset)} does not support writing '{options.Format}' format.");
}
}
- IngressGatewayResource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ IngressGatewayAsset IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
{
using JsonDocument document = JsonDocument.Parse(data);
- return DeserializeIngressGatewayResource(document.RootElement, options);
+ return DeserializeIngressGatewayAsset(document.RootElement, options);
}
default:
- throw new FormatException($"The model {nameof(IngressGatewayResource)} does not support reading '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(IngressGatewayAsset)} does not support reading '{options.Format}' format.");
}
}
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
}
}
diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.cs
similarity index 90%
rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayResource.cs
rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.cs
index 40725c3fd6457..5776db41276ae 100644
--- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayResource.cs
+++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/IngressGatewayAsset.cs
@@ -11,7 +11,7 @@
namespace Azure.ResourceManager.HybridConnectivity.Models
{
/// The ingress gateway access credentials.
- public partial class IngressGatewayResource
+ public partial class IngressGatewayAsset
{
///
/// Keeps track of any properties unknown to the library.
@@ -45,12 +45,12 @@ public partial class IngressGatewayResource
///
private IDictionary _serializedAdditionalRawData;
- /// Initializes a new instance of .
- internal IngressGatewayResource()
+ /// Initializes a new instance of .
+ internal IngressGatewayAsset()
{
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The ingress hostname.
/// The arc ingress gateway server app id.
/// The target resource home tenant id.
@@ -61,7 +61,7 @@ internal IngressGatewayResource()
/// The expiration of access key in unix time.
/// The token to access the enabled service.
/// Keeps track of any properties unknown to the library.
- internal IngressGatewayResource(string hostname, string serverId, Guid? tenantId, string namespaceName, string namespaceNameSuffix, string hybridConnectionName, string accessKey, long? expiresOn, string serviceConfigurationToken, IDictionary serializedAdditionalRawData)
+ internal IngressGatewayAsset(string hostname, string serverId, Guid? tenantId, string namespaceName, string namespaceNameSuffix, string hybridConnectionName, string accessKey, long? expiresOn, string serviceConfigurationToken, IDictionary serializedAdditionalRawData)
{
Hostname = hostname;
ServerId = serverId;
diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyResource.Serialization.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyAsset.Serialization.cs
similarity index 68%
rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyResource.Serialization.cs
rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyAsset.Serialization.cs
index 3f8a47f952ced..c2edf8fe4a890 100644
--- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyResource.Serialization.cs
+++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyAsset.Serialization.cs
@@ -13,11 +13,11 @@
namespace Azure.ResourceManager.HybridConnectivity.Models
{
- public partial class ManagedProxyResource : IUtf8JsonSerializable, IJsonModel
+ public partial class ManagedProxyAsset : IUtf8JsonSerializable, IJsonModel
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStartObject();
JsonModelWriteCore(writer, options);
@@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr
/// The client options for reading and writing models.
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(ManagedProxyResource)} does not support writing '{format}' format.");
+ throw new FormatException($"The model {nameof(ManagedProxyAsset)} does not support writing '{format}' format.");
}
writer.WritePropertyName("proxy"u8);
@@ -55,19 +55,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
}
- ManagedProxyResource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ ManagedProxyAsset IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(ManagedProxyResource)} does not support reading '{format}' format.");
+ throw new FormatException($"The model {nameof(ManagedProxyAsset)} does not support reading '{format}' format.");
}
using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeManagedProxyResource(document.RootElement, options);
+ return DeserializeManagedProxyAsset(document.RootElement, options);
}
- internal static ManagedProxyResource DeserializeManagedProxyResource(JsonElement element, ModelReaderWriterOptions options = null)
+ internal static ManagedProxyAsset DeserializeManagedProxyAsset(JsonElement element, ModelReaderWriterOptions options = null)
{
options ??= ModelSerializationExtensions.WireOptions;
@@ -97,38 +97,38 @@ internal static ManagedProxyResource DeserializeManagedProxyResource(JsonElement
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new ManagedProxyResource(proxy, expiresOn, serializedAdditionalRawData);
+ return new ManagedProxyAsset(proxy, expiresOn, serializedAdditionalRawData);
}
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
return ModelReaderWriter.Write(this, options);
default:
- throw new FormatException($"The model {nameof(ManagedProxyResource)} does not support writing '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(ManagedProxyAsset)} does not support writing '{options.Format}' format.");
}
}
- ManagedProxyResource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ ManagedProxyAsset IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
{
using JsonDocument document = JsonDocument.Parse(data);
- return DeserializeManagedProxyResource(document.RootElement, options);
+ return DeserializeManagedProxyAsset(document.RootElement, options);
}
default:
- throw new FormatException($"The model {nameof(ManagedProxyResource)} does not support reading '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(ManagedProxyAsset)} does not support reading '{options.Format}' format.");
}
}
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
}
}
diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyAsset.cs
similarity index 88%
rename from sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyResource.cs
rename to sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyAsset.cs
index 5ab03850ff417..78e813eece7e2 100644
--- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyResource.cs
+++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/Models/ManagedProxyAsset.cs
@@ -11,7 +11,7 @@
namespace Azure.ResourceManager.HybridConnectivity.Models
{
/// Managed Proxy.
- public partial class ManagedProxyResource
+ public partial class ManagedProxyAsset
{
///
/// Keeps track of any properties unknown to the library.
@@ -45,11 +45,11 @@ public partial class ManagedProxyResource
///
private IDictionary _serializedAdditionalRawData;
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The short lived proxy name.
/// The expiration time of short lived proxy name in unix epoch.
/// is null.
- internal ManagedProxyResource(string proxy, long expiresOn)
+ internal ManagedProxyAsset(string proxy, long expiresOn)
{
Argument.AssertNotNull(proxy, nameof(proxy));
@@ -57,19 +57,19 @@ internal ManagedProxyResource(string proxy, long expiresOn)
ExpiresOn = expiresOn;
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The short lived proxy name.
/// The expiration time of short lived proxy name in unix epoch.
/// Keeps track of any properties unknown to the library.
- internal ManagedProxyResource(string proxy, long expiresOn, IDictionary serializedAdditionalRawData)
+ internal ManagedProxyAsset(string proxy, long expiresOn, IDictionary serializedAdditionalRawData)
{
Proxy = proxy;
ExpiresOn = expiresOn;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
- /// Initializes a new instance of for deserialization.
- internal ManagedProxyResource()
+ /// Initializes a new instance of for deserialization.
+ internal ManagedProxyAsset()
{
}
diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs
index f88182a78d21f..1a93a8c445bc9 100644
--- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs
+++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/Generated/RestOperations/EndpointsRestOperations.cs
@@ -609,7 +609,7 @@ internal HttpMessage CreateListIngressGatewayCredentialsRequest(string scope, st
/// The is how long the endpoint access token is valid (in seconds).
/// The cancellation token to use.
/// or is null.
- public async Task> ListIngressGatewayCredentialsAsync(string scope, string endpointName, ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default)
+ public async Task> ListIngressGatewayCredentialsAsync(string scope, string endpointName, ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(scope, nameof(scope));
Argument.AssertNotNull(endpointName, nameof(endpointName));
@@ -620,9 +620,9 @@ public async Task> ListIngressGatewayCredential
{
case 200:
{
- IngressGatewayResource value = default;
+ IngressGatewayAsset value = default;
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
- value = IngressGatewayResource.DeserializeIngressGatewayResource(document.RootElement);
+ value = IngressGatewayAsset.DeserializeIngressGatewayAsset(document.RootElement);
return Response.FromValue(value, message.Response);
}
default:
@@ -637,7 +637,7 @@ public async Task> ListIngressGatewayCredential
/// The is how long the endpoint access token is valid (in seconds).
/// The cancellation token to use.
/// or is null.
- public Response ListIngressGatewayCredentials(string scope, string endpointName, ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default)
+ public Response ListIngressGatewayCredentials(string scope, string endpointName, ListIngressGatewayCredentialsContent content = null, long? expiresin = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(scope, nameof(scope));
Argument.AssertNotNull(endpointName, nameof(endpointName));
@@ -648,9 +648,9 @@ public Response ListIngressGatewayCredentials(string sco
{
case 200:
{
- IngressGatewayResource value = default;
+ IngressGatewayAsset value = default;
using var document = JsonDocument.Parse(message.Response.ContentStream);
- value = IngressGatewayResource.DeserializeIngressGatewayResource(document.RootElement);
+ value = IngressGatewayAsset.DeserializeIngressGatewayAsset(document.RootElement);
return Response.FromValue(value, message.Response);
}
default:
@@ -700,7 +700,7 @@ internal HttpMessage CreateListManagedProxyDetailsRequest(string scope, string e
/// Object of type ManagedProxyRequest.
/// The cancellation token to use.
/// , or is null.
- public async Task> ListManagedProxyDetailsAsync(string scope, string endpointName, ManagedProxyContent content, CancellationToken cancellationToken = default)
+ public async Task> ListManagedProxyDetailsAsync(string scope, string endpointName, ManagedProxyContent content, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(scope, nameof(scope));
Argument.AssertNotNull(endpointName, nameof(endpointName));
@@ -712,9 +712,9 @@ public async Task> ListManagedProxyDetailsAsync(s
{
case 200:
{
- ManagedProxyResource value = default;
+ ManagedProxyAsset value = default;
using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
- value = ManagedProxyResource.DeserializeManagedProxyResource(document.RootElement);
+ value = ManagedProxyAsset.DeserializeManagedProxyAsset(document.RootElement);
return Response.FromValue(value, message.Response);
}
default:
@@ -728,7 +728,7 @@ public async Task> ListManagedProxyDetailsAsync(s
/// Object of type ManagedProxyRequest.
/// The cancellation token to use.
/// , or is null.
- public Response ListManagedProxyDetails(string scope, string endpointName, ManagedProxyContent content, CancellationToken cancellationToken = default)
+ public Response ListManagedProxyDetails(string scope, string endpointName, ManagedProxyContent content, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(scope, nameof(scope));
Argument.AssertNotNull(endpointName, nameof(endpointName));
@@ -740,9 +740,9 @@ public Response ListManagedProxyDetails(string scope, stri
{
case 200:
{
- ManagedProxyResource value = default;
+ ManagedProxyAsset value = default;
using var document = JsonDocument.Parse(message.Response.ContentStream);
- value = ManagedProxyResource.DeserializeManagedProxyResource(document.RootElement);
+ value = ManagedProxyAsset.DeserializeManagedProxyAsset(document.RootElement);
return Response.FromValue(value, message.Response);
}
default:
diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md
index 64b40be193827..c376cff528b4c 100644
--- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md
+++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/src/autorest.md
@@ -51,6 +51,11 @@ acronym-mapping:
URI: Uri
Etag: ETag|etag
+rename-mapping:
+ # IngressGatewayResource and ManagedProxyResource are not ARM resource but end with Resource suffix which is not allowed, so we need to rename them
+ IngressGatewayResource: IngressGatewayAsset
+ ManagedProxyResource: ManagedProxyAsset
+
directive:
- rename-model:
from: EndpointAccessResource