Skip to content

Commit 01d8065

Browse files
authored
Upgrade MySql to API version 2024-12-01-preview (#52193)
1 parent cf9b8f3 commit 01d8065

File tree

567 files changed

+9846
-3942
lines changed

Some content is hidden

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

567 files changed

+9846
-3942
lines changed

sdk/mysql/Azure.ResourceManager.MySql/api/Azure.ResourceManager.MySql.net8.0.cs

Lines changed: 223 additions & 8 deletions
Large diffs are not rendered by default.

sdk/mysql/Azure.ResourceManager.MySql/api/Azure.ResourceManager.MySql.netstandard2.0.cs

Lines changed: 223 additions & 8 deletions
Large diffs are not rendered by default.

sdk/mysql/Azure.ResourceManager.MySql/src/Custom/ArmMySqlFlexibleServersModelFactory.cs

Lines changed: 237 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
using System.ClientModel.Primitives;
45
using Azure.Core;
6+
using Azure.ResourceManager.MySql.FlexibleServers.Models;
57

68
namespace Azure.ResourceManager.MySql;
79

810
[CodeGenType("AzureResourceManagerMySqlFlexibleServersContext")]
11+
[ModelReaderWriterBuildable(typeof(MySqlFlexibleServersPrivateEndpointConnection))]
912
public partial class AzureResourceManagerMySqlContext
1013
{
1114
}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.ComponentModel;
8+
using System.Threading;
9+
using System.Threading.Tasks;
10+
using Azure.Core;
11+
using Azure.ResourceManager.MySql.FlexibleServers.Models;
12+
using Azure.ResourceManager.Resources;
13+
14+
namespace Azure.ResourceManager.MySql.FlexibleServers
15+
{
16+
[CodeGenType("MySqlFlexibleServersExtensions")]
17+
public static partial class FlexibleServersExtensions
18+
{
19+
/// <summary>
20+
/// Get the operation result for a long running operation.
21+
/// <list type="bullet">
22+
/// <item>
23+
/// <term>Request Path</term>
24+
/// <description>/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/operationResults/{operationId}</description>
25+
/// </item>
26+
/// <item>
27+
/// <term>Operation Id</term>
28+
/// <description>OperationResults_Get</description>
29+
/// </item>
30+
/// </list>
31+
/// </summary>
32+
/// <param name="subscriptionResource"> The <see cref="SubscriptionResource" /> instance the method will execute against. </param>
33+
/// <param name="locationName"> The name of the location. </param>
34+
/// <param name="operationId"> The operation Id. </param>
35+
/// <param name="cancellationToken"> The cancellation token to use. </param>
36+
/// <exception cref="ArgumentException"> <paramref name="operationId"/> is an empty string, and was expected to be non-empty. </exception>
37+
/// <exception cref="ArgumentNullException"> <paramref name="subscriptionResource"/> or <paramref name="operationId"/> is null. </exception>
38+
[EditorBrowsable(EditorBrowsableState.Never)]
39+
[Obsolete("This method is obsolete and will be removed in a future release", false)]
40+
public static Task<Response<OperationStatusExtendedResult>> GetOperationResultAsync(this SubscriptionResource subscriptionResource, AzureLocation locationName, string operationId, CancellationToken cancellationToken = default)
41+
{
42+
throw new NotSupportedException("This method is deprecated.");
43+
}
44+
45+
/// <summary>
46+
/// Get the operation result for a long running operation.
47+
/// <list type="bullet">
48+
/// <item>
49+
/// <term>Request Path</term>
50+
/// <description>/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/operationResults/{operationId}</description>
51+
/// </item>
52+
/// <item>
53+
/// <term>Operation Id</term>
54+
/// <description>OperationResults_Get</description>
55+
/// </item>
56+
/// </list>
57+
/// </summary>
58+
/// <param name="subscriptionResource"> The <see cref="SubscriptionResource" /> instance the method will execute against. </param>
59+
/// <param name="locationName"> The name of the location. </param>
60+
/// <param name="operationId"> The operation Id. </param>
61+
/// <param name="cancellationToken"> The cancellation token to use. </param>
62+
/// <exception cref="ArgumentException"> <paramref name="operationId"/> is an empty string, and was expected to be non-empty. </exception>
63+
/// <exception cref="ArgumentNullException"> <paramref name="subscriptionResource"/> or <paramref name="operationId"/> is null. </exception>
64+
[EditorBrowsable(EditorBrowsableState.Never)]
65+
[Obsolete("This method is obsolete and will be removed in a future release", false)]
66+
public static Response<OperationStatusExtendedResult> GetOperationResult(this SubscriptionResource subscriptionResource, AzureLocation locationName, string operationId, CancellationToken cancellationToken = default)
67+
{
68+
throw new NotSupportedException("This method is deprecated.");
69+
}
70+
}
71+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.ComponentModel;
8+
using System.Threading;
9+
using System.Threading.Tasks;
10+
using Azure.Core;
11+
using Azure.ResourceManager.MySql.FlexibleServers.Models;
12+
13+
namespace Azure.ResourceManager.MySql.FlexibleServers.Mocking
14+
{
15+
/// <summary> A class to add extension methods to SubscriptionResource. </summary>
16+
public partial class MockableMySqlFlexibleServersSubscriptionResource : ArmResource
17+
{
18+
/// <summary>
19+
/// Get the operation result for a long running operation.
20+
/// <list type="bullet">
21+
/// <item>
22+
/// <term>Request Path</term>
23+
/// <description>/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/operationResults/{operationId}</description>
24+
/// </item>
25+
/// <item>
26+
/// <term>Operation Id</term>
27+
/// <description>OperationResults_Get</description>
28+
/// </item>
29+
/// </list>
30+
/// </summary>
31+
/// <param name="locationName"> The name of the location. </param>
32+
/// <param name="operationId"> The operation Id. </param>
33+
/// <param name="cancellationToken"> The cancellation token to use. </param>
34+
/// <exception cref="ArgumentException"> <paramref name="operationId"/> is an empty string, and was expected to be non-empty. </exception>
35+
/// <exception cref="ArgumentNullException"> <paramref name="operationId"/> is null. </exception>
36+
[EditorBrowsable(EditorBrowsableState.Never)]
37+
[Obsolete("This method is obsolete and will be removed in a future release", false)]
38+
public virtual Task<Response<OperationStatusExtendedResult>> GetOperationResultAsync(AzureLocation locationName, string operationId, CancellationToken cancellationToken = default)
39+
{
40+
throw new NotSupportedException();
41+
}
42+
43+
/// <summary>
44+
/// Get the operation result for a long running operation.
45+
/// <list type="bullet">
46+
/// <item>
47+
/// <term>Request Path</term>
48+
/// <description>/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/operationResults/{operationId}</description>
49+
/// </item>
50+
/// <item>
51+
/// <term>Operation Id</term>
52+
/// <description>OperationResults_Get</description>
53+
/// </item>
54+
/// </list>
55+
/// </summary>
56+
/// <param name="locationName"> The name of the location. </param>
57+
/// <param name="operationId"> The operation Id. </param>
58+
/// <param name="cancellationToken"> The cancellation token to use. </param>
59+
/// <exception cref="ArgumentException"> <paramref name="operationId"/> is an empty string, and was expected to be non-empty. </exception>
60+
/// <exception cref="ArgumentNullException"> <paramref name="operationId"/> is null. </exception>
61+
[EditorBrowsable(EditorBrowsableState.Never)]
62+
[Obsolete("This method is obsolete and will be removed in a future release", false)]
63+
public virtual Response<OperationStatusExtendedResult> GetOperationResult(AzureLocation locationName, string operationId, CancellationToken cancellationToken = default)
64+
{
65+
throw new NotSupportedException();
66+
}
67+
}
68+
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#nullable disable
55

66
using System;
7-
using System.ComponentModel;
87
using Azure.Core;
98

109
namespace Azure.ResourceManager.MySql.FlexibleServers.Models
@@ -13,7 +12,7 @@ namespace Azure.ResourceManager.MySql.FlexibleServers.Models
1312
public readonly partial struct MySqlFlexibleServerVersion : IEquatable<MySqlFlexibleServerVersion>
1413
{
1514
/// <summary> 5.7. </summary>
16-
[CodeGenMember("FivePointSeven")]
15+
[CodeGenMember("Five7")]
1716
public static MySqlFlexibleServerVersion Ver5_7 { get; } = new MySqlFlexibleServerVersion(Ver5_7Value);
1817
/// <summary> 8.0.21. </summary>
1918
[CodeGenMember("Eight021")]
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
// <auto-generated/>
5-
64
#nullable disable
75

86
using System;
@@ -91,7 +89,7 @@ internal static MySqlFlexibleServersPrivateEndpointConnection DeserializeMySqlFl
9189
ResourceIdentifier id = default;
9290
string name = default;
9391
ResourceType type = default;
94-
SystemData systemData = default;
92+
Azure.ResourceManager.Models.SystemData systemData = default;
9593
IReadOnlyList<string> groupIds = default;
9694
SubResource privateEndpoint = default;
9795
MySqlFlexibleServersPrivateLinkServiceConnectionState privateLinkServiceConnectionState = default;
@@ -121,7 +119,7 @@ internal static MySqlFlexibleServersPrivateEndpointConnection DeserializeMySqlFl
121119
{
122120
continue;
123121
}
124-
systemData = ModelReaderWriter.Read<SystemData>(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerMySqlContext.Default);
122+
systemData = ModelReaderWriter.Read<Azure.ResourceManager.Models.SystemData>(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerMySqlContext.Default);
125123
continue;
126124
}
127125
if (property.NameEquals("properties"u8))
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
// <auto-generated/>
5-
64
#nullable disable
75

86
using System;
@@ -64,7 +62,7 @@ public MySqlFlexibleServersPrivateEndpointConnection()
6462
/// <param name="connectionState"> A collection of information about the state of the connection between service consumer and provider. </param>
6563
/// <param name="provisioningState"> The provisioning state of the private endpoint connection resource. </param>
6664
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
67-
internal MySqlFlexibleServersPrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IReadOnlyList<string> groupIds, SubResource privateEndpoint, MySqlFlexibleServersPrivateLinkServiceConnectionState connectionState, MySqlFlexibleServersPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary<string, BinaryData> serializedAdditionalRawData) : base(id, name, resourceType, systemData)
65+
internal MySqlFlexibleServersPrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, IReadOnlyList<string> groupIds, SubResource privateEndpoint, MySqlFlexibleServersPrivateLinkServiceConnectionState connectionState, MySqlFlexibleServersPrivateEndpointConnectionProvisioningState? provisioningState, IDictionary<string, BinaryData> serializedAdditionalRawData) : base(id, name, resourceType, systemData)
6866
{
6967
GroupIds = groupIds;
7068
PrivateEndpoint = privateEndpoint;

0 commit comments

Comments
 (0)