Skip to content

Commit 5dcf961

Browse files
authored
Update sql sdk for rest api 2024 11 01 preview (Azure#51396)
1 parent 4f3c47a commit 5dcf961

File tree

698 files changed

+12628
-6765
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

698 files changed

+12628
-6765
lines changed

.github/CODEOWNERS

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -844,26 +844,29 @@
844844
# ServiceLabel: %SignalR
845845
# ServiceOwners: @chenkennt @vicancy @JialinXin @Y-Sindo
846846

847+
# PRLabel: %SQL
848+
/sdk/sqlmanagement/ @ericshape @jeremyfrosti
849+
847850
# ServiceLabel: %SQL
848-
# ServiceOwners: @azureSQLGitHub
851+
# ServiceOwners: @ericshape @jeremyfrosti
849852

850853
# ServiceLabel: %SQL - VM
851-
# ServiceOwners: @azureSQLGitHub
854+
# ServiceOwners: @ericshape @jeremyfrosti
852855

853856
# ServiceLabel: %SQL - Backup & Restore
854-
# ServiceOwners: @azureSQLGitHub
857+
# ServiceOwners: @ericshape @jeremyfrosti
855858

856859
# ServiceLabel: %SQL - Data Security
857-
# ServiceOwners: @azureSQLGitHub
860+
# ServiceOwners: @ericshape @jeremyfrosti
858861

859862
# ServiceLabel: %SQL - Elastic Jobs
860-
# ServiceOwners: @azureSQLGitHub
863+
# ServiceOwners: @ericshape @jeremyfrosti
861864

862865
# ServiceLabel: %SQL - Managed Instance
863-
# ServiceOwners: @azureSQLGitHub
866+
# ServiceOwners: @ericshape @jeremyfrosti
864867

865868
# ServiceLabel: %SQL - Replication & Failover
866-
# ServiceOwners: @azureSQLGitHub
869+
# ServiceOwners: @ericshape @jeremyfrosti
867870

868871
# PRLabel: %Storage
869872
/sdk/storage*/ @seanmcc-msft @amnguye @jaschrep-msft @jalauzon-msft

sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# Release History
22

3-
## 1.4.0-beta.3 (Unreleased)
3+
## 1.4.0-beta.3 (2025-07-31)
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
7+
- Upgraded api-version tag to 'package-preview-2024-11-01-preview'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/0d68729fe5000a0e7dcdccd2c5f5e6e712f901a9/specification/sql/resource-manager/readme.md.
128

139
## 1.4.0-beta.2 (2025-07-30)
1410

sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.net8.0.cs

Lines changed: 232 additions & 19 deletions
Large diffs are not rendered by default.

sdk/sqlmanagement/Azure.ResourceManager.Sql/api/Azure.ResourceManager.Sql.netstandard2.0.cs

Lines changed: 232 additions & 19 deletions
Large diffs are not rendered by default.

sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/ArmSqlModelFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using System;
77
using System.Collections.Generic;
8+
using System.Collections.ObjectModel;
89
using System.Linq;
910
using Azure.Core;
1011
using Azure.ResourceManager.Models;
@@ -81,8 +82,7 @@ public static RecommendedActionData RecommendedActionData(ResourceIdentifier id
8182
observedImpact?.ToList(),
8283
timeSeries?.ToList(),
8384
linkedObjects?.ToList(),
84-
additionalDetails.ToDictionary(kvp => kvp.Key,
85-
kvp => BinaryData.FromString(kvp.Value)),
85+
additionalDetails,
8686
serializedAdditionalRawData: null);
8787
}
8888
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
using System;
5+
using System.Collections.Generic;
6+
7+
namespace Azure.ResourceManager.Sql.Models
8+
{
9+
/// <summary> The managed instance virtual cores capability. </summary>
10+
public partial class ManagedInstanceVcoresCapability
11+
{
12+
/// <summary>
13+
/// Supported memory sizes in MB. Deprecated, use SupportedMemorySizesInGB.
14+
/// </summary>
15+
[Obsolete("This property is deprecated and will be removed in a future release.")]
16+
[WirePath("supportedMemoryLimitsMB")]
17+
public MaxLimitRangeCapability SupportedMemoryLimitsMB
18+
{
19+
get
20+
{
21+
return ConvertFromGBtoMB(SupportedMemorySizesInGB);
22+
}
23+
}
24+
25+
private MaxLimitRangeCapability ConvertFromGBtoMB(MaxLimitRangeCapability value)
26+
{
27+
return new MaxLimitRangeCapability(
28+
minValue: value.MinValue.HasValue ? value.MinValue.Value * 1024 : null,
29+
maxValue: value.MaxValue.HasValue ? value.MaxValue.Value * 1024 : null,
30+
scaleSize: value.ScaleSize.HasValue ? value.ScaleSize.Value * 1024 : null,
31+
status: value.Status,
32+
reason: value.Reason,
33+
serializedAdditionalRawData: null);
34+
}
35+
}
36+
}

sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Custom/RecommendedActionData.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using System;
77
using System.Collections.Generic;
8+
using System.Collections.ObjectModel;
89
using System.ComponentModel;
910
using System.Linq;
1011
using Azure.Core;
@@ -48,7 +49,7 @@ public partial class RecommendedActionData
4849
[EditorBrowsable(EditorBrowsableState.Never)]
4950
public IReadOnlyDictionary<string, BinaryData> Details
5051
{
51-
get => ActionDetails;
52+
get => ConvertActionDetailsToBinaryData();
5253
}
5354

5455
/// <summary> Gets additional details specific to this recommended action. </summary>
@@ -63,5 +64,13 @@ public IReadOnlyDictionary<string, string> AdditionalDetails
6364
);
6465
}
6566
}
67+
68+
private IReadOnlyDictionary<string, BinaryData> ConvertActionDetailsToBinaryData()
69+
{
70+
var dictionary = ActionDetails
71+
.ToArray()
72+
.ToDictionary(kvp => kvp.Key, kvp => BinaryData.FromString(kvp.Value));
73+
return new ReadOnlyDictionary<string, BinaryData>(dictionary);
74+
}
6675
}
6776
}

0 commit comments

Comments
 (0)