From 6638dca888a48f6d7201755a6770f54d16be9553 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 6 Jun 2023 16:49:26 +0000 Subject: [PATCH] CodeGen from PR 24311 in Azure/azure-rest-api-specs Merge 0c86c490d5c12014b9acbca74acfe2fadae84e7f into b407b6c6e11d2b9d543408a1cce9050c95ac74de --- ...urceManager.DeviceUpdate.netstandard2.0.cs | 9 ++- .../Generated/ArmDeviceUpdateModelFactory.cs | 5 +- .../src/Generated/DeviceUpdateAccountData.cs | 6 +- .../DeviceUpdateAccountData.Serialization.cs | 17 +++++- .../Models/Encryption.Serialization.cs | 60 +++++++++++++++++++ .../src/Generated/Models/Encryption.cs | 34 +++++++++++ .../RestOperations/AccountsRestOperations.cs | 2 +- .../DeviceUpdateRestOperations.cs | 2 +- .../RestOperations/InstancesRestOperations.cs | 2 +- ...EndpointConnectionProxiesRestOperations.cs | 2 +- ...rivateEndpointConnectionsRestOperations.cs | 2 +- .../PrivateLinkResourcesRestOperations.cs | 2 +- .../src/autorest.md | 2 +- 13 files changed, 133 insertions(+), 12 deletions(-) create mode 100644 sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Encryption.Serialization.cs create mode 100644 sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Encryption.cs diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/api/Azure.ResourceManager.DeviceUpdate.netstandard2.0.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/api/Azure.ResourceManager.DeviceUpdate.netstandard2.0.cs index ceb08f8b5b40..2b18c719f28a 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/api/Azure.ResourceManager.DeviceUpdate.netstandard2.0.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/api/Azure.ResourceManager.DeviceUpdate.netstandard2.0.cs @@ -18,6 +18,7 @@ protected DeviceUpdateAccountCollection() { } public partial class DeviceUpdateAccountData : Azure.ResourceManager.Models.TrackedResourceData { public DeviceUpdateAccountData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ResourceManager.DeviceUpdate.Models.Encryption Encryption { get { throw null; } set { } } public string HostName { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList Locations { get { throw null; } } @@ -233,7 +234,7 @@ public static partial class ArmDeviceUpdateModelFactory { public static Azure.ResourceManager.DeviceUpdate.Models.CheckNameAvailabilityResponse CheckNameAvailabilityResponse(bool? nameAvailable = default(bool?), Azure.ResourceManager.DeviceUpdate.Models.CheckNameAvailabilityReason? reason = default(Azure.ResourceManager.DeviceUpdate.Models.CheckNameAvailabilityReason?), string message = null) { throw null; } public static Azure.ResourceManager.DeviceUpdate.Models.ConnectionDetails ConnectionDetails(string id = null, string privateIPAddress = null, string linkIdentifier = null, string groupId = null, string memberName = null) { throw null; } - public static Azure.ResourceManager.DeviceUpdate.DeviceUpdateAccountData DeviceUpdateAccountData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.DeviceUpdate.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.DeviceUpdate.Models.ProvisioningState?), string hostName = null, Azure.ResourceManager.DeviceUpdate.Models.PublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.DeviceUpdate.Models.PublicNetworkAccess?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateSku? sku = default(Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateSku?), System.Collections.Generic.IEnumerable locations = null) { throw null; } + public static Azure.ResourceManager.DeviceUpdate.DeviceUpdateAccountData DeviceUpdateAccountData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.DeviceUpdate.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.DeviceUpdate.Models.ProvisioningState?), string hostName = null, Azure.ResourceManager.DeviceUpdate.Models.PublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.DeviceUpdate.Models.PublicNetworkAccess?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateSku? sku = default(Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateSku?), Azure.ResourceManager.DeviceUpdate.Models.Encryption encryption = null, System.Collections.Generic.IEnumerable locations = null) { throw null; } public static Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateAccountLocationDetail DeviceUpdateAccountLocationDetail(string name = null, Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateAccountLocationRole? role = default(Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateAccountLocationRole?)) { throw null; } public static Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceData DeviceUpdateInstanceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.DeviceUpdate.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.DeviceUpdate.Models.ProvisioningState?), string accountName = null, System.Collections.Generic.IEnumerable iotHubs = null, bool? enableDiagnostics = default(bool?), Azure.ResourceManager.DeviceUpdate.Models.DiagnosticStorageProperties diagnosticStorageProperties = null) { throw null; } public static Azure.ResourceManager.DeviceUpdate.DeviceUpdatePrivateEndpointConnectionData DeviceUpdatePrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdatePrivateLinkServiceConnectionState connectionState = null, System.Collections.Generic.IEnumerable groupIds = null, Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdatePrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdatePrivateEndpointConnectionProvisioningState?)) { throw null; } @@ -405,6 +406,12 @@ public DiagnosticStorageProperties(Azure.ResourceManager.DeviceUpdate.Models.Aut public string ConnectionString { get { throw null; } set { } } public string ResourceId { get { throw null; } set { } } } + public partial class Encryption + { + public Encryption() { } + public System.Uri KeyVaultKeyUri { get { throw null; } set { } } + public string UserAssignedIdentity { get { throw null; } set { } } + } public partial class GroupConnectivityInformation { public GroupConnectivityInformation() { } diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/ArmDeviceUpdateModelFactory.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/ArmDeviceUpdateModelFactory.cs index 8d7e4ebff462..91bb787d70be 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/ArmDeviceUpdateModelFactory.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/ArmDeviceUpdateModelFactory.cs @@ -40,15 +40,16 @@ public static CheckNameAvailabilityResponse CheckNameAvailabilityResponse(bool? /// Whether or not public network access is allowed for the account. /// List of private endpoint connections associated with the account. /// Device Update Sku. + /// CMK encryption at rest properties. /// Device Update account primary and failover location details. /// A new instance for mocking. - public static DeviceUpdateAccountData DeviceUpdateAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ProvisioningState? provisioningState = null, string hostName = null, PublicNetworkAccess? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null, DeviceUpdateSku? sku = null, IEnumerable locations = null) + public static DeviceUpdateAccountData DeviceUpdateAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ProvisioningState? provisioningState = null, string hostName = null, PublicNetworkAccess? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null, DeviceUpdateSku? sku = null, Encryption encryption = null, IEnumerable locations = null) { tags ??= new Dictionary(); privateEndpointConnections ??= new List(); locations ??= new List(); - return new DeviceUpdateAccountData(id, name, resourceType, systemData, tags, location, identity, provisioningState, hostName, publicNetworkAccess, privateEndpointConnections?.ToList(), sku, locations?.ToList()); + return new DeviceUpdateAccountData(id, name, resourceType, systemData, tags, location, identity, provisioningState, hostName, publicNetworkAccess, privateEndpointConnections?.ToList(), sku, encryption, locations?.ToList()); } /// Initializes a new instance of DeviceUpdatePrivateEndpointConnectionData. diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccountData.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccountData.cs index 45ccb8b4d820..cd8bc2a057e9 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccountData.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccountData.cs @@ -39,8 +39,9 @@ public DeviceUpdateAccountData(AzureLocation location) : base(location) /// Whether or not public network access is allowed for the account. /// List of private endpoint connections associated with the account. /// Device Update Sku. + /// CMK encryption at rest properties. /// 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, DeviceUpdateSku? sku, IReadOnlyList locations) : base(id, name, resourceType, systemData, tags, location) + internal DeviceUpdateAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, ProvisioningState? provisioningState, string hostName, PublicNetworkAccess? publicNetworkAccess, IList privateEndpointConnections, DeviceUpdateSku? sku, Encryption encryption, IReadOnlyList locations) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; ProvisioningState = provisioningState; @@ -48,6 +49,7 @@ internal DeviceUpdateAccountData(ResourceIdentifier id, string name, ResourceTyp PublicNetworkAccess = publicNetworkAccess; PrivateEndpointConnections = privateEndpointConnections; Sku = sku; + Encryption = encryption; Locations = locations; } @@ -63,6 +65,8 @@ internal DeviceUpdateAccountData(ResourceIdentifier id, string name, ResourceTyp public IList PrivateEndpointConnections { get; } /// Device Update Sku. public DeviceUpdateSku? Sku { get; set; } + /// CMK encryption at rest properties. + public Encryption Encryption { get; set; } /// Device Update account primary and failover location details. public IReadOnlyList Locations { 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 27f351e67a48..fdbb512df59f 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 @@ -59,6 +59,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("sku"u8); writer.WriteStringValue(Sku.Value.ToString()); } + if (Optional.IsDefined(Encryption)) + { + writer.WritePropertyName("encryption"u8); + writer.WriteObjectValue(Encryption); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -81,6 +86,7 @@ internal static DeviceUpdateAccountData DeserializeDeviceUpdateAccountData(JsonE Optional publicNetworkAccess = default; Optional> privateEndpointConnections = default; Optional sku = default; + Optional encryption = default; Optional> locations = default; foreach (var property in element.EnumerateObject()) { @@ -192,6 +198,15 @@ internal static DeviceUpdateAccountData DeserializeDeviceUpdateAccountData(JsonE sku = new DeviceUpdateSku(property0.Value.GetString()); continue; } + if (property0.NameEquals("encryption"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + encryption = Encryption.DeserializeEncryption(property0.Value); + continue; + } if (property0.NameEquals("locations"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -210,7 +225,7 @@ internal static DeviceUpdateAccountData DeserializeDeviceUpdateAccountData(JsonE continue; } } - return new DeviceUpdateAccountData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, identity, Optional.ToNullable(provisioningState), hostName.Value, Optional.ToNullable(publicNetworkAccess), Optional.ToList(privateEndpointConnections), Optional.ToNullable(sku), Optional.ToList(locations)); + return new DeviceUpdateAccountData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, identity, Optional.ToNullable(provisioningState), hostName.Value, Optional.ToNullable(publicNetworkAccess), Optional.ToList(privateEndpointConnections), Optional.ToNullable(sku), encryption.Value, Optional.ToList(locations)); } } } diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Encryption.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Encryption.Serialization.cs new file mode 100644 index 000000000000..8231ad05a0d8 --- /dev/null +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Encryption.Serialization.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DeviceUpdate.Models +{ + public partial class Encryption : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(KeyVaultKeyUri)) + { + writer.WritePropertyName("keyVaultKeyUri"u8); + writer.WriteStringValue(KeyVaultKeyUri.AbsoluteUri); + } + if (Optional.IsDefined(UserAssignedIdentity)) + { + writer.WritePropertyName("userAssignedIdentity"u8); + writer.WriteStringValue(UserAssignedIdentity); + } + writer.WriteEndObject(); + } + + internal static Encryption DeserializeEncryption(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional keyVaultKeyUri = default; + Optional userAssignedIdentity = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("keyVaultKeyUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + keyVaultKeyUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("userAssignedIdentity"u8)) + { + userAssignedIdentity = property.Value.GetString(); + continue; + } + } + return new Encryption(keyVaultKeyUri.Value, userAssignedIdentity.Value); + } + } +} diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Encryption.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Encryption.cs new file mode 100644 index 000000000000..df284f830d46 --- /dev/null +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/Encryption.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.DeviceUpdate.Models +{ + /// The CMK encryption settings on the Device Update account. + public partial class Encryption + { + /// Initializes a new instance of Encryption. + public Encryption() + { + } + + /// Initializes a new instance of Encryption. + /// The URI of the key vault. + /// The full resourceId of the user assigned identity to be used for key vault access. Identity has to be also assigned to the Account. + internal Encryption(Uri keyVaultKeyUri, string userAssignedIdentity) + { + KeyVaultKeyUri = keyVaultKeyUri; + UserAssignedIdentity = userAssignedIdentity; + } + + /// The URI of the key vault. + public Uri KeyVaultKeyUri { get; set; } + /// The full resourceId of the user assigned identity to be used for key vault access. Identity has to be also assigned to the Account. + public string UserAssignedIdentity { get; set; } + } +} 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 885929e27af4..794765cd4b09 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 ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _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 3ec1bc4deb09..9bf167597345 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 ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _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 0e5439a4c190..f391ad5247cb 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 ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _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 93e7fc589c19..686b7795f7bf 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 ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 44e3456e2b0d..ed642ad79ee8 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 ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _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 01376374d78e..b95ce74b626d 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 ?? "2022-10-01"; + _apiVersion = apiVersion ?? "2023-07-01"; _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 6028aa64eef0..7911d1c64025 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/a1081882ea6ae33e65da9b86f6a031175c1f8fda/specification/deviceupdate/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/deviceupdate/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true