diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccountData.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccountData.cs
index 73083898562f9..e2e0d6c46ff93 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccountData.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccountData.cs
@@ -19,6 +19,8 @@ public partial class DeviceUpdateAccountData : TrackedResourceData
/// The location.
public DeviceUpdateAccountData(AzureLocation location) : base(location)
{
+ PrivateEndpointConnections = new ChangeTrackingList();
+ Locations = new ChangeTrackingList();
}
/// Initializes a new instance of DeviceUpdateAccountData.
@@ -31,13 +33,19 @@ public DeviceUpdateAccountData(AzureLocation location) : base(location)
/// The type of identity used for the resource.
/// Provisioning state.
/// API host name.
- /// Whether or not public network access is allowed for the container registry.
- internal DeviceUpdateAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, ProvisioningState? provisioningState, string hostName, PublicNetworkAccess? publicNetworkAccess) : base(id, name, resourceType, systemData, tags, location)
+ /// Whether or not public network access is allowed for the account.
+ /// List of private endpoint connections associated with the account.
+ /// Device Update Sku.
+ /// Device Update account primary and failover location details.
+ internal DeviceUpdateAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, ProvisioningState? provisioningState, string hostName, PublicNetworkAccess? publicNetworkAccess, IList privateEndpointConnections, SKU? sku, IReadOnlyList locations) : base(id, name, resourceType, systemData, tags, location)
{
Identity = identity;
ProvisioningState = provisioningState;
HostName = hostName;
PublicNetworkAccess = publicNetworkAccess;
+ PrivateEndpointConnections = privateEndpointConnections;
+ Sku = sku;
+ Locations = locations;
}
/// The type of identity used for the resource.
@@ -46,7 +54,13 @@ internal DeviceUpdateAccountData(ResourceIdentifier id, string name, ResourceTyp
public ProvisioningState? ProvisioningState { get; }
/// API host name.
public string HostName { get; }
- /// Whether or not public network access is allowed for the container registry.
+ /// Whether or not public network access is allowed for the account.
public PublicNetworkAccess? PublicNetworkAccess { get; set; }
+ /// List of private endpoint connections associated with the account.
+ public IList PrivateEndpointConnections { get; }
+ /// Device Update Sku.
+ public SKU? Sku { get; set; }
+ /// Device Update account primary and failover location details.
+ public IReadOnlyList Locations { get; }
}
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdatePrivateEndpointConnectionData.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdatePrivateEndpointConnectionData.cs
index c3d03ee8bc8f5..089c78108c421 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdatePrivateEndpointConnectionData.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdatePrivateEndpointConnectionData.cs
@@ -5,6 +5,8 @@
#nullable disable
+using System;
+using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.DeviceUpdate.Models;
using Azure.ResourceManager.Models;
@@ -16,8 +18,17 @@ namespace Azure.ResourceManager.DeviceUpdate
public partial class DeviceUpdatePrivateEndpointConnectionData : ResourceData
{
/// Initializes a new instance of DeviceUpdatePrivateEndpointConnectionData.
- public DeviceUpdatePrivateEndpointConnectionData()
+ /// A collection of information about the state of the connection between service consumer and provider.
+ /// is null.
+ public DeviceUpdatePrivateEndpointConnectionData(DeviceUpdatePrivateLinkServiceConnectionState privateLinkServiceConnectionState)
{
+ if (privateLinkServiceConnectionState == null)
+ {
+ throw new ArgumentNullException(nameof(privateLinkServiceConnectionState));
+ }
+
+ PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ GroupIds = new ChangeTrackingList();
}
/// Initializes a new instance of DeviceUpdatePrivateEndpointConnectionData.
@@ -27,11 +38,13 @@ public DeviceUpdatePrivateEndpointConnectionData()
/// The systemData.
/// The resource of private end point.
/// A collection of information about the state of the connection between service consumer and provider.
+ /// Array of group IDs.
/// The provisioning state of the private endpoint connection resource.
- internal DeviceUpdatePrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SubResource privateEndpoint, DeviceUpdatePrivateLinkServiceConnectionState privateLinkServiceConnectionState, DeviceUpdatePrivateEndpointConnectionProvisioningState? provisioningState) : base(id, name, resourceType, systemData)
+ internal DeviceUpdatePrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SubResource privateEndpoint, DeviceUpdatePrivateLinkServiceConnectionState privateLinkServiceConnectionState, IList groupIds, DeviceUpdatePrivateEndpointConnectionProvisioningState? provisioningState) : base(id, name, resourceType, systemData)
{
PrivateEndpoint = privateEndpoint;
PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ GroupIds = groupIds;
ProvisioningState = provisioningState;
}
@@ -45,6 +58,8 @@ public ResourceIdentifier PrivateEndpointId
/// A collection of information about the state of the connection between service consumer and provider.
public DeviceUpdatePrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; }
+ /// Array of group IDs.
+ public IList GroupIds { get; }
/// The provisioning state of the private endpoint connection resource.
public DeviceUpdatePrivateEndpointConnectionProvisioningState? ProvisioningState { get; }
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountData.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountData.Serialization.cs
index ebfd7e7f3526d..3535c60031f95 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountData.Serialization.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountData.Serialization.cs
@@ -41,6 +41,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("publicNetworkAccess");
writer.WriteStringValue(PublicNetworkAccess.Value.ToString());
}
+ if (Optional.IsCollectionDefined(PrivateEndpointConnections))
+ {
+ writer.WritePropertyName("privateEndpointConnections");
+ writer.WriteStartArray();
+ foreach (var item in PrivateEndpointConnections)
+ {
+ writer.WriteObjectValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(Sku))
+ {
+ writer.WritePropertyName("sku");
+ writer.WriteStringValue(Sku.Value.ToString());
+ }
writer.WriteEndObject();
writer.WriteEndObject();
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionData.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionData.Serialization.cs
index 69a3095bbc41e..827a1112f05c9 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionData.Serialization.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdatePrivateEndpointConnectionData.Serialization.cs
@@ -5,6 +5,7 @@
#nullable disable
+using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
using Azure.ResourceManager.DeviceUpdate.Models;
@@ -25,10 +26,17 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("privateEndpoint");
JsonSerializer.Serialize(writer, PrivateEndpoint);
}
- if (Optional.IsDefined(PrivateLinkServiceConnectionState))
+ writer.WritePropertyName("privateLinkServiceConnectionState");
+ writer.WriteObjectValue(PrivateLinkServiceConnectionState);
+ if (Optional.IsCollectionDefined(GroupIds))
{
- writer.WritePropertyName("privateLinkServiceConnectionState");
- writer.WriteObjectValue(PrivateLinkServiceConnectionState);
+ writer.WritePropertyName("groupIds");
+ writer.WriteStartArray();
+ foreach (var item in GroupIds)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
}
writer.WriteEndObject();
writer.WriteEndObject();
@@ -41,7 +49,8 @@ internal static DeviceUpdatePrivateEndpointConnectionData DeserializeDeviceUpdat
ResourceType type = default;
SystemData systemData = default;
Optional privateEndpoint = default;
- Optional privateLinkServiceConnectionState = default;
+ DeviceUpdatePrivateLinkServiceConnectionState privateLinkServiceConnectionState = default;
+ Optional> groupIds = default;
Optional provisioningState = default;
foreach (var property in element.EnumerateObject())
{
@@ -85,13 +94,23 @@ internal static DeviceUpdatePrivateEndpointConnectionData DeserializeDeviceUpdat
continue;
}
if (property0.NameEquals("privateLinkServiceConnectionState"))
+ {
+ privateLinkServiceConnectionState = DeviceUpdatePrivateLinkServiceConnectionState.DeserializeDeviceUpdatePrivateLinkServiceConnectionState(property0.Value);
+ continue;
+ }
+ if (property0.NameEquals("groupIds"))
{
if (property0.Value.ValueKind == JsonValueKind.Null)
{
property0.ThrowNonNullablePropertyIsNull();
continue;
}
- privateLinkServiceConnectionState = DeviceUpdatePrivateLinkServiceConnectionState.DeserializeDeviceUpdatePrivateLinkServiceConnectionState(property0.Value);
+ List array = new List();
+ foreach (var item in property0.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ groupIds = array;
continue;
}
if (property0.NameEquals("provisioningState"))
@@ -108,7 +127,7 @@ internal static DeviceUpdatePrivateEndpointConnectionData DeserializeDeviceUpdat
continue;
}
}
- return new DeviceUpdatePrivateEndpointConnectionData(id, name, type, systemData, privateEndpoint, privateLinkServiceConnectionState.Value, Optional.ToNullable(provisioningState));
+ return new DeviceUpdatePrivateEndpointConnectionData(id, name, type, systemData, privateEndpoint, privateLinkServiceConnectionState, Optional.ToList(groupIds), Optional.ToNullable(provisioningState));
}
}
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/IotHubSettings.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/IotHubSettings.Serialization.cs
index 2b2e19339a1bd..94ce6204f715c 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/IotHubSettings.Serialization.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/IotHubSettings.Serialization.cs
@@ -17,24 +17,12 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WriteStartObject();
writer.WritePropertyName("resourceId");
writer.WriteStringValue(ResourceId);
- if (Optional.IsDefined(IoTHubConnectionString))
- {
- writer.WritePropertyName("ioTHubConnectionString");
- writer.WriteStringValue(IoTHubConnectionString);
- }
- if (Optional.IsDefined(EventHubConnectionString))
- {
- writer.WritePropertyName("eventHubConnectionString");
- writer.WriteStringValue(EventHubConnectionString);
- }
writer.WriteEndObject();
}
internal static IotHubSettings DeserializeIotHubSettings(JsonElement element)
{
string resourceId = default;
- Optional ioTHubConnectionString = default;
- Optional eventHubConnectionString = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("resourceId"))
@@ -42,18 +30,8 @@ internal static IotHubSettings DeserializeIotHubSettings(JsonElement element)
resourceId = property.Value.GetString();
continue;
}
- if (property.NameEquals("ioTHubConnectionString"))
- {
- ioTHubConnectionString = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("eventHubConnectionString"))
- {
- eventHubConnectionString = property.Value.GetString();
- continue;
- }
}
- return new IotHubSettings(resourceId, ioTHubConnectionString.Value, eventHubConnectionString.Value);
+ return new IotHubSettings(resourceId);
}
}
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/IotHubSettings.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/IotHubSettings.cs
index 0accd93b1c800..3dcf3f29566c8 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/IotHubSettings.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/IotHubSettings.cs
@@ -25,22 +25,7 @@ public IotHubSettings(string resourceId)
ResourceId = resourceId;
}
- /// Initializes a new instance of IotHubSettings.
- /// IoTHub resource ID.
- /// IoTHub connection string.
- /// EventHub connection string.
- internal IotHubSettings(string resourceId, string ioTHubConnectionString, string eventHubConnectionString)
- {
- ResourceId = resourceId;
- IoTHubConnectionString = ioTHubConnectionString;
- EventHubConnectionString = eventHubConnectionString;
- }
-
/// IoTHub resource ID.
public string ResourceId { get; set; }
- /// IoTHub connection string.
- public string IoTHubConnectionString { get; set; }
- /// EventHub connection string.
- public string EventHubConnectionString { get; set; }
}
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Location.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Location.Serialization.cs
new file mode 100644
index 0000000000000..572b4b8dfba70
--- /dev/null
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Location.Serialization.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DeviceUpdate.Models
+{
+ public partial class Location
+ {
+ internal static Location DeserializeLocation(JsonElement element)
+ {
+ Optional name = default;
+ Optional role = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("name"))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("role"))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ role = new Role(property.Value.GetString());
+ continue;
+ }
+ }
+ return new Location(name.Value, Optional.ToNullable(role));
+ }
+ }
+}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Location.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Location.cs
new file mode 100644
index 0000000000000..b3d9df9a203c7
--- /dev/null
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Location.cs
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace Azure.ResourceManager.DeviceUpdate.Models
+{
+ /// The Location.
+ public partial class Location
+ {
+ /// Initializes a new instance of Location.
+ internal Location()
+ {
+ }
+
+ /// Initializes a new instance of Location.
+ ///
+ /// Whether the location is primary or failover.
+ internal Location(string name, Role? role)
+ {
+ Name = name;
+ Role = role;
+ }
+
+ /// Gets the name.
+ public string Name { get; }
+ /// Whether the location is primary or failover.
+ public Role? Role { get; }
+ }
+}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyData.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyData.Serialization.cs
index 4819f6c50fdae..efb9b20a66e17 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyData.Serialization.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyData.Serialization.cs
@@ -27,6 +27,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("status");
writer.WriteStringValue(Status);
}
+ writer.WritePropertyName("properties");
+ writer.WriteStartObject();
+ writer.WriteEndObject();
writer.WriteEndObject();
}
@@ -34,12 +37,12 @@ internal static PrivateEndpointConnectionProxyData DeserializePrivateEndpointCon
{
Optional eTag = default;
Optional remotePrivateEndpoint = default;
- Optional provisioningState = default;
Optional status = default;
ResourceIdentifier id = default;
string name = default;
ResourceType type = default;
SystemData systemData = default;
+ Optional provisioningState = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("eTag"))
@@ -57,16 +60,6 @@ internal static PrivateEndpointConnectionProxyData DeserializePrivateEndpointCon
remotePrivateEndpoint = RemotePrivateEndpoint.DeserializeRemotePrivateEndpoint(property.Value);
continue;
}
- if (property.NameEquals("provisioningState"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- provisioningState = new PrivateEndpointConnectionProxyProvisioningState(property.Value.GetString());
- continue;
- }
if (property.NameEquals("status"))
{
status = property.Value.GetString();
@@ -92,8 +85,30 @@ internal static PrivateEndpointConnectionProxyData DeserializePrivateEndpointCon
systemData = JsonSerializer.Deserialize(property.Value.ToString());
continue;
}
+ if (property.NameEquals("properties"))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ if (property0.NameEquals("provisioningState"))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ provisioningState = new PrivateEndpointConnectionProxyProvisioningState(property0.Value.GetString());
+ continue;
+ }
+ }
+ continue;
+ }
}
- return new PrivateEndpointConnectionProxyData(id, name, type, systemData, eTag.Value, remotePrivateEndpoint.Value, Optional.ToNullable(provisioningState), status.Value);
+ return new PrivateEndpointConnectionProxyData(id, name, type, systemData, Optional.ToNullable(provisioningState), eTag.Value, remotePrivateEndpoint.Value, status.Value);
}
}
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyProperties.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyProperties.Serialization.cs
index e5de1ca686f09..c703aa617dabf 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyProperties.Serialization.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyProperties.Serialization.cs
@@ -32,7 +32,6 @@ internal static PrivateEndpointConnectionProxyProperties DeserializePrivateEndpo
{
Optional eTag = default;
Optional remotePrivateEndpoint = default;
- Optional provisioningState = default;
Optional status = default;
foreach (var property in element.EnumerateObject())
{
@@ -51,23 +50,13 @@ internal static PrivateEndpointConnectionProxyProperties DeserializePrivateEndpo
remotePrivateEndpoint = RemotePrivateEndpoint.DeserializeRemotePrivateEndpoint(property.Value);
continue;
}
- if (property.NameEquals("provisioningState"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- provisioningState = new PrivateEndpointConnectionProxyProvisioningState(property.Value.GetString());
- continue;
- }
if (property.NameEquals("status"))
{
status = property.Value.GetString();
continue;
}
}
- return new PrivateEndpointConnectionProxyProperties(eTag.Value, remotePrivateEndpoint.Value, Optional.ToNullable(provisioningState), status.Value);
+ return new PrivateEndpointConnectionProxyProperties(eTag.Value, remotePrivateEndpoint.Value, status.Value);
}
}
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyProperties.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyProperties.cs
index 7bf0d0f442b4f..68ddb447a72fa 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyProperties.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointConnectionProxyProperties.cs
@@ -18,13 +18,11 @@ public PrivateEndpointConnectionProxyProperties()
/// Initializes a new instance of PrivateEndpointConnectionProxyProperties.
/// ETag from NRP.
/// Remote private endpoint details.
- /// The provisioning state of the private endpoint connection proxy resource.
/// Operation status.
- internal PrivateEndpointConnectionProxyProperties(string eTag, RemotePrivateEndpoint remotePrivateEndpoint, PrivateEndpointConnectionProxyProvisioningState? provisioningState, string status)
+ internal PrivateEndpointConnectionProxyProperties(string eTag, RemotePrivateEndpoint remotePrivateEndpoint, string status)
{
ETag = eTag;
RemotePrivateEndpoint = remotePrivateEndpoint;
- ProvisioningState = provisioningState;
Status = status;
}
@@ -32,8 +30,6 @@ internal PrivateEndpointConnectionProxyProperties(string eTag, RemotePrivateEndp
public string ETag { get; }
/// Remote private endpoint details.
public RemotePrivateEndpoint RemotePrivateEndpoint { get; set; }
- /// The provisioning state of the private endpoint connection proxy resource.
- public PrivateEndpointConnectionProxyProvisioningState? ProvisioningState { get; }
/// Operation status.
public string Status { get; set; }
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointUpdate.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointUpdate.Serialization.cs
new file mode 100644
index 0000000000000..709aa494905a9
--- /dev/null
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointUpdate.Serialization.cs
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DeviceUpdate.Models
+{
+ public partial class PrivateEndpointUpdate : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsDefined(Id))
+ {
+ writer.WritePropertyName("id");
+ writer.WriteStringValue(Id);
+ }
+ if (Optional.IsDefined(Location))
+ {
+ writer.WritePropertyName("location");
+ writer.WriteStringValue(Location);
+ }
+ if (Optional.IsDefined(ImmutableSubscriptionId))
+ {
+ writer.WritePropertyName("immutableSubscriptionId");
+ writer.WriteStringValue(ImmutableSubscriptionId);
+ }
+ if (Optional.IsDefined(ImmutableResourceId))
+ {
+ writer.WritePropertyName("immutableResourceId");
+ writer.WriteStringValue(ImmutableResourceId);
+ }
+ if (Optional.IsDefined(VnetTrafficTag))
+ {
+ writer.WritePropertyName("vnetTrafficTag");
+ writer.WriteStringValue(VnetTrafficTag);
+ }
+ writer.WriteEndObject();
+ }
+ }
+}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointUpdate.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointUpdate.cs
new file mode 100644
index 0000000000000..46e035f35b38a
--- /dev/null
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PrivateEndpointUpdate.cs
@@ -0,0 +1,29 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace Azure.ResourceManager.DeviceUpdate.Models
+{
+ /// Private endpoint update details.
+ public partial class PrivateEndpointUpdate
+ {
+ /// Initializes a new instance of PrivateEndpointUpdate.
+ public PrivateEndpointUpdate()
+ {
+ }
+
+ /// Remote endpoint resource ID.
+ public string Id { get; set; }
+ /// ARM location of the remote private endpoint.
+ public string Location { get; set; }
+ /// Original subscription ID needed by Microsoft.Network.
+ public string ImmutableSubscriptionId { get; set; }
+ /// Original resource ID needed by Microsoft.Network.
+ public string ImmutableResourceId { get; set; }
+ /// Virtual network traffic tag.
+ public string VnetTrafficTag { get; set; }
+ }
+}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PublicNetworkAccess.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PublicNetworkAccess.cs
index 846391d2eac6c..d26e757bc6795 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PublicNetworkAccess.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/PublicNetworkAccess.cs
@@ -10,7 +10,7 @@
namespace Azure.ResourceManager.DeviceUpdate.Models
{
- /// Whether or not public network access is allowed for the container registry.
+ /// Whether or not public network access is allowed for the account.
public readonly partial struct PublicNetworkAccess : IEquatable
{
private readonly string _value;
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/RemotePrivateEndpoint.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/RemotePrivateEndpoint.Serialization.cs
index d0bc1f51d7804..2566802aec946 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/RemotePrivateEndpoint.Serialization.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/RemotePrivateEndpoint.Serialization.cs
@@ -21,6 +21,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("id");
writer.WriteStringValue(Id);
}
+ if (Optional.IsDefined(Location))
+ {
+ writer.WritePropertyName("location");
+ writer.WriteStringValue(Location);
+ }
+ if (Optional.IsDefined(ImmutableSubscriptionId))
+ {
+ writer.WritePropertyName("immutableSubscriptionId");
+ writer.WriteStringValue(ImmutableSubscriptionId);
+ }
+ if (Optional.IsDefined(ImmutableResourceId))
+ {
+ writer.WritePropertyName("immutableResourceId");
+ writer.WriteStringValue(ImmutableResourceId);
+ }
+ if (Optional.IsDefined(VnetTrafficTag))
+ {
+ writer.WritePropertyName("vnetTrafficTag");
+ writer.WriteStringValue(VnetTrafficTag);
+ }
if (Optional.IsCollectionDefined(ManualPrivateLinkServiceConnections))
{
writer.WritePropertyName("manualPrivateLinkServiceConnections");
@@ -67,6 +87,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
internal static RemotePrivateEndpoint DeserializeRemotePrivateEndpoint(JsonElement element)
{
Optional id = default;
+ Optional location = default;
+ Optional immutableSubscriptionId = default;
+ Optional immutableResourceId = default;
Optional vnetTrafficTag = default;
Optional> manualPrivateLinkServiceConnections = default;
Optional> privateLinkServiceConnections = default;
@@ -79,6 +102,21 @@ internal static RemotePrivateEndpoint DeserializeRemotePrivateEndpoint(JsonEleme
id = property.Value.GetString();
continue;
}
+ if (property.NameEquals("location"))
+ {
+ location = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("immutableSubscriptionId"))
+ {
+ immutableSubscriptionId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("immutableResourceId"))
+ {
+ immutableResourceId = property.Value.GetString();
+ continue;
+ }
if (property.NameEquals("vnetTrafficTag"))
{
vnetTrafficTag = property.Value.GetString();
@@ -145,7 +183,7 @@ internal static RemotePrivateEndpoint DeserializeRemotePrivateEndpoint(JsonEleme
continue;
}
}
- return new RemotePrivateEndpoint(id.Value, vnetTrafficTag.Value, Optional.ToList(manualPrivateLinkServiceConnections), Optional.ToList(privateLinkServiceConnections), Optional.ToList(privateLinkServiceProxies), Optional.ToList(connectionDetails));
+ return new RemotePrivateEndpoint(id.Value, location.Value, immutableSubscriptionId.Value, immutableResourceId.Value, vnetTrafficTag.Value, Optional.ToList(manualPrivateLinkServiceConnections), Optional.ToList(privateLinkServiceConnections), Optional.ToList(privateLinkServiceProxies), Optional.ToList(connectionDetails));
}
}
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/RemotePrivateEndpoint.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/RemotePrivateEndpoint.cs
index 8835b904197f4..c99c15fab894d 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/RemotePrivateEndpoint.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/RemotePrivateEndpoint.cs
@@ -24,14 +24,20 @@ public RemotePrivateEndpoint()
/// Initializes a new instance of RemotePrivateEndpoint.
/// Remote endpoint resource ID.
+ /// ARM location of the remote private endpoint.
+ /// Original subscription ID needed by Microsoft.Network.
+ /// Original resource ID needed by Microsoft.Network.
/// Virtual network traffic tag.
/// List of private link service connections that need manual approval.
/// List of automatically approved private link service connections.
/// List of private link service proxies.
/// List of connection details.
- internal RemotePrivateEndpoint(string id, string vnetTrafficTag, IList manualPrivateLinkServiceConnections, IList privateLinkServiceConnections, IList privateLinkServiceProxies, IList connectionDetails)
+ internal RemotePrivateEndpoint(string id, string location, string immutableSubscriptionId, string immutableResourceId, string vnetTrafficTag, IList manualPrivateLinkServiceConnections, IList privateLinkServiceConnections, IList privateLinkServiceProxies, IList connectionDetails)
{
Id = id;
+ Location = location;
+ ImmutableSubscriptionId = immutableSubscriptionId;
+ ImmutableResourceId = immutableResourceId;
VnetTrafficTag = vnetTrafficTag;
ManualPrivateLinkServiceConnections = manualPrivateLinkServiceConnections;
PrivateLinkServiceConnections = privateLinkServiceConnections;
@@ -41,8 +47,14 @@ internal RemotePrivateEndpoint(string id, string vnetTrafficTag, IList Remote endpoint resource ID.
public string Id { get; set; }
+ /// ARM location of the remote private endpoint.
+ public string Location { get; set; }
+ /// Original subscription ID needed by Microsoft.Network.
+ public string ImmutableSubscriptionId { get; set; }
+ /// Original resource ID needed by Microsoft.Network.
+ public string ImmutableResourceId { get; set; }
/// Virtual network traffic tag.
- public string VnetTrafficTag { get; }
+ public string VnetTrafficTag { get; set; }
/// List of private link service connections that need manual approval.
public IList ManualPrivateLinkServiceConnections { get; }
/// List of automatically approved private link service connections.
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Role.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Role.cs
new file mode 100644
index 0000000000000..35bfb3431e92d
--- /dev/null
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Role.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.DeviceUpdate.Models
+{
+ /// Whether the location is primary or failover.
+ public readonly partial struct Role : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public Role(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string PrimaryValue = "Primary";
+ private const string FailoverValue = "Failover";
+
+ /// Primary.
+ public static Role Primary { get; } = new Role(PrimaryValue);
+ /// Failover.
+ public static Role Failover { get; } = new Role(FailoverValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(Role left, Role right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(Role left, Role right) => !left.Equals(right);
+ /// Converts a string to a .
+ public static implicit operator Role(string value) => new Role(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is Role other && Equals(other);
+ ///
+ public bool Equals(Role 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/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/SKU.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/SKU.cs
new file mode 100644
index 0000000000000..8893ab1f061c1
--- /dev/null
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/SKU.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.DeviceUpdate.Models
+{
+ /// Device Update Sku.
+ public readonly partial struct SKU : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public SKU(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string FreeValue = "Free";
+ private const string StandardValue = "Standard";
+
+ /// Free.
+ public static SKU Free { get; } = new SKU(FreeValue);
+ /// Standard.
+ public static SKU Standard { get; } = new SKU(StandardValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(SKU left, SKU right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(SKU left, SKU right) => !left.Equals(right);
+ /// Converts a string to a .
+ public static implicit operator SKU(string value) => new SKU(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is SKU other && Equals(other);
+ ///
+ public bool Equals(SKU 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/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxyData.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxyData.cs
index 63b886ff4297e..54905b3c6ad4e 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxyData.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxyData.cs
@@ -24,24 +24,24 @@ public PrivateEndpointConnectionProxyData()
/// The name.
/// The resourceType.
/// The systemData.
+ /// The provisioning state of the private endpoint connection proxy resource.
/// ETag from NRP.
/// Remote private endpoint details.
- /// The provisioning state of the private endpoint connection proxy resource.
/// Operation status.
- internal PrivateEndpointConnectionProxyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string eTag, RemotePrivateEndpoint remotePrivateEndpoint, PrivateEndpointConnectionProxyProvisioningState? provisioningState, string status) : base(id, name, resourceType, systemData)
+ internal PrivateEndpointConnectionProxyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, PrivateEndpointConnectionProxyProvisioningState? provisioningState, string eTag, RemotePrivateEndpoint remotePrivateEndpoint, string status) : base(id, name, resourceType, systemData)
{
+ ProvisioningState = provisioningState;
ETag = eTag;
RemotePrivateEndpoint = remotePrivateEndpoint;
- ProvisioningState = provisioningState;
Status = status;
}
+ /// The provisioning state of the private endpoint connection proxy resource.
+ public PrivateEndpointConnectionProxyProvisioningState? ProvisioningState { get; }
/// ETag from NRP.
public string ETag { get; }
/// Remote private endpoint details.
public RemotePrivateEndpoint RemotePrivateEndpoint { get; set; }
- /// The provisioning state of the private endpoint connection proxy resource.
- public PrivateEndpointConnectionProxyProvisioningState? ProvisioningState { get; }
/// Operation status.
public string Status { get; set; }
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxyResource.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxyResource.cs
index d91f393feec03..c94b2ba2f1044 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxyResource.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxyResource.cs
@@ -13,6 +13,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager;
+using Azure.ResourceManager.DeviceUpdate.Models;
namespace Azure.ResourceManager.DeviceUpdate
{
@@ -297,5 +298,57 @@ public virtual Response Validate(PrivateEndpointConnectionProxyData data, Cancel
throw;
}
}
+
+ ///
+ /// (INTERNAL - DO NOT USE) Updates a private endpoint inside the private endpoint connection proxy object.
+ /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyId}/updatePrivateEndpointProperties
+ /// Operation Id: PrivateEndpointConnectionProxies_UpdatePrivateEndpointProperties
+ ///
+ /// The parameters for updating a private endpoint connection proxy.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task UpdatePrivateEndpointPropertiesAsync(PrivateEndpointUpdate privateEndpointUpdate, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(privateEndpointUpdate, nameof(privateEndpointUpdate));
+
+ using var scope = _privateEndpointConnectionProxyClientDiagnostics.CreateScope("PrivateEndpointConnectionProxyResource.UpdatePrivateEndpointProperties");
+ scope.Start();
+ try
+ {
+ var response = await _privateEndpointConnectionProxyRestClient.UpdatePrivateEndpointPropertiesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, privateEndpointUpdate, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// (INTERNAL - DO NOT USE) Updates a private endpoint inside the private endpoint connection proxy object.
+ /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyId}/updatePrivateEndpointProperties
+ /// Operation Id: PrivateEndpointConnectionProxies_UpdatePrivateEndpointProperties
+ ///
+ /// The parameters for updating a private endpoint connection proxy.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response UpdatePrivateEndpointProperties(PrivateEndpointUpdate privateEndpointUpdate, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(privateEndpointUpdate, nameof(privateEndpointUpdate));
+
+ using var scope = _privateEndpointConnectionProxyClientDiagnostics.CreateScope("PrivateEndpointConnectionProxyResource.UpdatePrivateEndpointProperties");
+ scope.Start();
+ try
+ {
+ var response = _privateEndpointConnectionProxyRestClient.UpdatePrivateEndpointProperties(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, privateEndpointUpdate, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
}
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/AccountsRestOperations.cs
index f57c34805d319..5381c86c74bfd 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/AccountsRestOperations.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/AccountsRestOperations.cs
@@ -33,7 +33,7 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e
{
_pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline));
_endpoint = endpoint ?? new Uri("https://management.azure.com");
- _apiVersion = apiVersion ?? "2020-03-01-preview";
+ _apiVersion = apiVersion ?? "2022-04-01-preview";
_userAgent = new TelemetryDetails(GetType().Assembly, applicationId);
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/DeviceUpdateRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/DeviceUpdateRestOperations.cs
index 10d7ead1c4da4..a0de6f0a8a44b 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/DeviceUpdateRestOperations.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/DeviceUpdateRestOperations.cs
@@ -33,7 +33,7 @@ public DeviceUpdateRestOperations(HttpPipeline pipeline, string applicationId, U
{
_pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline));
_endpoint = endpoint ?? new Uri("https://management.azure.com");
- _apiVersion = apiVersion ?? "2020-03-01-preview";
+ _apiVersion = apiVersion ?? "2022-04-01-preview";
_userAgent = new TelemetryDetails(GetType().Assembly, applicationId);
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/InstancesRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/InstancesRestOperations.cs
index cd070fb52bad4..aab213285d08b 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/InstancesRestOperations.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/InstancesRestOperations.cs
@@ -33,7 +33,7 @@ public InstancesRestOperations(HttpPipeline pipeline, string applicationId, Uri
{
_pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline));
_endpoint = endpoint ?? new Uri("https://management.azure.com");
- _apiVersion = apiVersion ?? "2020-03-01-preview";
+ _apiVersion = apiVersion ?? "2022-04-01-preview";
_userAgent = new TelemetryDetails(GetType().Assembly, applicationId);
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionProxiesRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionProxiesRestOperations.cs
index c56c9503d668b..5d858e4684faf 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionProxiesRestOperations.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionProxiesRestOperations.cs
@@ -33,7 +33,7 @@ public PrivateEndpointConnectionProxiesRestOperations(HttpPipeline pipeline, str
{
_pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline));
_endpoint = endpoint ?? new Uri("https://management.azure.com");
- _apiVersion = apiVersion ?? "2020-03-01-preview";
+ _apiVersion = apiVersion ?? "2022-04-01-preview";
_userAgent = new TelemetryDetails(GetType().Assembly, applicationId);
}
@@ -199,6 +199,89 @@ public Response Validate(string subscriptionId, string resourceGroupName, string
}
}
+ internal HttpMessage CreateUpdatePrivateEndpointPropertiesRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId, PrivateEndpointUpdate privateEndpointUpdate)
+ {
+ var message = _pipeline.CreateMessage();
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/subscriptions/", false);
+ uri.AppendPath(subscriptionId, true);
+ uri.AppendPath("/resourceGroups/", false);
+ uri.AppendPath(resourceGroupName, true);
+ uri.AppendPath("/providers/Microsoft.DeviceUpdate/accounts/", false);
+ uri.AppendPath(accountName, true);
+ uri.AppendPath("/privateEndpointConnectionProxies/", false);
+ uri.AppendPath(privateEndpointConnectionProxyId, true);
+ uri.AppendPath("/updatePrivateEndpointProperties", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("Content-Type", "application/json");
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(privateEndpointUpdate);
+ request.Content = content;
+ _userAgent.Apply(message);
+ return message;
+ }
+
+ /// (INTERNAL - DO NOT USE) Updates a private endpoint inside the private endpoint connection proxy object.
+ /// The Azure subscription ID.
+ /// The resource group name.
+ /// Account name.
+ /// The ID of the private endpoint connection proxy object.
+ /// The parameters for updating a private endpoint connection proxy.
+ /// The cancellation token to use.
+ /// , , , or is null.
+ /// , , or is an empty string, and was expected to be non-empty.
+ public async Task UpdatePrivateEndpointPropertiesAsync(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId, PrivateEndpointUpdate privateEndpointUpdate, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId));
+ Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName));
+ Argument.AssertNotNullOrEmpty(accountName, nameof(accountName));
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionProxyId, nameof(privateEndpointConnectionProxyId));
+ Argument.AssertNotNull(privateEndpointUpdate, nameof(privateEndpointUpdate));
+
+ using var message = CreateUpdatePrivateEndpointPropertiesRequest(subscriptionId, resourceGroupName, accountName, privateEndpointConnectionProxyId, privateEndpointUpdate);
+ await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
+ switch (message.Response.Status)
+ {
+ case 200:
+ return message.Response;
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ /// (INTERNAL - DO NOT USE) Updates a private endpoint inside the private endpoint connection proxy object.
+ /// The Azure subscription ID.
+ /// The resource group name.
+ /// Account name.
+ /// The ID of the private endpoint connection proxy object.
+ /// The parameters for updating a private endpoint connection proxy.
+ /// The cancellation token to use.
+ /// , , , or is null.
+ /// , , or is an empty string, and was expected to be non-empty.
+ public Response UpdatePrivateEndpointProperties(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId, PrivateEndpointUpdate privateEndpointUpdate, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId));
+ Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName));
+ Argument.AssertNotNullOrEmpty(accountName, nameof(accountName));
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionProxyId, nameof(privateEndpointConnectionProxyId));
+ Argument.AssertNotNull(privateEndpointUpdate, nameof(privateEndpointUpdate));
+
+ using var message = CreateUpdatePrivateEndpointPropertiesRequest(subscriptionId, resourceGroupName, accountName, privateEndpointConnectionProxyId, privateEndpointUpdate);
+ _pipeline.Send(message, cancellationToken);
+ switch (message.Response.Status)
+ {
+ case 200:
+ return message.Response;
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId)
{
var message = _pipeline.CreateMessage();
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs
index 7675bdd477b72..50d27039ff0f0 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs
@@ -33,7 +33,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap
{
_pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline));
_endpoint = endpoint ?? new Uri("https://management.azure.com");
- _apiVersion = apiVersion ?? "2020-03-01-preview";
+ _apiVersion = apiVersion ?? "2022-04-01-preview";
_userAgent = new TelemetryDetails(GetType().Assembly, applicationId);
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs
index 09c584a1d0ac5..f4052ac14f6bf 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs
@@ -33,7 +33,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat
{
_pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline));
_endpoint = endpoint ?? new Uri("https://management.azure.com");
- _apiVersion = apiVersion ?? "2020-03-01-preview";
+ _apiVersion = apiVersion ?? "2022-04-01-preview";
_userAgent = new TelemetryDetails(GetType().Assembly, applicationId);
}
diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/autorest.md b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/autorest.md
index b322e8cd578c6..312bd671af323 100644
--- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/autorest.md
+++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/autorest.md
@@ -6,7 +6,7 @@ Run `dotnet build /t:GenerateCode` to generate code.
azure-arm: true
namespace: Azure.ResourceManager.DeviceUpdate
-require: https://github.com/Azure/azure-rest-api-specs/blob/34018925632ef75ef5416e3add65324e0a12489f/specification/deviceupdate/resource-manager/readme.md
+require: https://github.com/Azure/azure-rest-api-specs/blob/a416080c85111fbe4e0a483a1b99f1126ca6e97c/specification/deviceupdate/resource-manager/readme.md
clear-output-folder: true
skip-csproj: true
output-folder: Generated/