Skip to content

Commit feff3b2

Browse files
authored
Generate Azure.ResourceManager.MySql from TypeSpec (#52196)
1 parent 6136233 commit feff3b2

File tree

350 files changed

+3029
-5282
lines changed

Some content is hidden

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

350 files changed

+3029
-5282
lines changed

sdk/mysql/Azure.ResourceManager.MySql/CHANGELOG.md

Lines changed: 2 additions & 6 deletions

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

Lines changed: 10 additions & 57 deletions
Large diffs are not rendered by default.

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

Lines changed: 10 additions & 57 deletions
Large diffs are not rendered by default.

sdk/mysql/Azure.ResourceManager.MySql/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/mysql/Azure.ResourceManager.MySql",
5-
"Tag": "net/mysql/Azure.ResourceManager.MySql_be60e3e226"
5+
"Tag": "net/mysql/Azure.ResourceManager.MySql_2ca2020852"
66
}

sdk/mysql/Azure.ResourceManager.MySql/src/Azure.ResourceManager.MySql.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>1.2.0-beta.1</Version>
3+
<Version>1.2.0</Version>
44
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
55
<ApiCompatVersion>1.1.2</ApiCompatVersion>
66
<PackageId>Azure.ResourceManager.MySql</PackageId>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static MySqlFlexibleServerData MySqlFlexibleServerData(ResourceIdentifier
6161
modelGroupIds.Add(gid);
6262
}
6363
model.PrivateEndpoint = item.PrivateEndpoint;
64-
model.ConnectionState = item.ConnectionState;
64+
model.PrivateLinkServiceConnectionState = item.ConnectionState;
6565
list.Add(model);
6666
}
6767
}
@@ -73,8 +73,6 @@ public static MySqlFlexibleServerData MySqlFlexibleServerData(ResourceIdentifier
7373
systemData,
7474
tags,
7575
location,
76-
identity,
77-
sku,
7876
administratorLogin,
7977
administratorLoginPassword,
8078
version,
@@ -97,7 +95,9 @@ public static MySqlFlexibleServerData MySqlFlexibleServerData(ResourceIdentifier
9795
null,
9896
maintenanceWindow,
9997
importSourceProperties,
100-
serializedAdditionalRawData: null);
98+
identity,
99+
sku,
100+
null);
101101
}
102102

103103
/// <summary> Initializes a new instance of <see cref="FlexibleServers.MySqlFlexibleServersCapabilityData"/>. </summary>

sdk/mysql/Azure.ResourceManager.MySql/src/Custom/Extensions/FlexibleServersExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static partial class FlexibleServersExtensions
3636
/// <exception cref="ArgumentException"> <paramref name="operationId"/> is an empty string, and was expected to be non-empty. </exception>
3737
/// <exception cref="ArgumentNullException"> <paramref name="subscriptionResource"/> or <paramref name="operationId"/> is null. </exception>
3838
[EditorBrowsable(EditorBrowsableState.Never)]
39-
[Obsolete("This method is obsolete and will be removed in a future release", false)]
39+
[Obsolete("This method is deprecated.")]
4040
public static Task<Response<OperationStatusExtendedResult>> GetOperationResultAsync(this SubscriptionResource subscriptionResource, AzureLocation locationName, string operationId, CancellationToken cancellationToken = default)
4141
{
4242
throw new NotSupportedException("This method is deprecated.");
@@ -62,7 +62,7 @@ public static Task<Response<OperationStatusExtendedResult>> GetOperationResultAs
6262
/// <exception cref="ArgumentException"> <paramref name="operationId"/> is an empty string, and was expected to be non-empty. </exception>
6363
/// <exception cref="ArgumentNullException"> <paramref name="subscriptionResource"/> or <paramref name="operationId"/> is null. </exception>
6464
[EditorBrowsable(EditorBrowsableState.Never)]
65-
[Obsolete("This method is obsolete and will be removed in a future release", false)]
65+
[Obsolete("This method is deprecated.")]
6666
public static Response<OperationStatusExtendedResult> GetOperationResult(this SubscriptionResource subscriptionResource, AzureLocation locationName, string operationId, CancellationToken cancellationToken = default)
6767
{
6868
throw new NotSupportedException("This method is deprecated.");

sdk/mysql/Azure.ResourceManager.MySql/src/Custom/Extensions/MockableMySqlFlexibleServersSubscriptionResource.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public partial class MockableMySqlFlexibleServersSubscriptionResource : ArmResou
3434
/// <exception cref="ArgumentException"> <paramref name="operationId"/> is an empty string, and was expected to be non-empty. </exception>
3535
/// <exception cref="ArgumentNullException"> <paramref name="operationId"/> is null. </exception>
3636
[EditorBrowsable(EditorBrowsableState.Never)]
37-
[Obsolete("This method is obsolete and will be removed in a future release", false)]
37+
[Obsolete("This method is deprecated.")]
3838
public virtual Task<Response<OperationStatusExtendedResult>> GetOperationResultAsync(AzureLocation locationName, string operationId, CancellationToken cancellationToken = default)
3939
{
4040
throw new NotSupportedException();
@@ -59,7 +59,7 @@ public virtual Task<Response<OperationStatusExtendedResult>> GetOperationResultA
5959
/// <exception cref="ArgumentException"> <paramref name="operationId"/> is an empty string, and was expected to be non-empty. </exception>
6060
/// <exception cref="ArgumentNullException"> <paramref name="operationId"/> is null. </exception>
6161
[EditorBrowsable(EditorBrowsableState.Never)]
62-
[Obsolete("This method is obsolete and will be removed in a future release", false)]
62+
[Obsolete("This method is deprecated.")]
6363
public virtual Response<OperationStatusExtendedResult> GetOperationResult(AzureLocation locationName, string operationId, CancellationToken cancellationToken = default)
6464
{
6565
throw new NotSupportedException();
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using Azure.Core;
7+
using Azure.ResourceManager.Models;
8+
9+
namespace Azure.ResourceManager.MySql.FlexibleServers.Models
10+
{
11+
/// <summary> Represents BackupAndExportAPI Response. </summary>
12+
[CodeGenModel(Usage = new[] { "input" })]
13+
public partial class MySqlFlexibleServerBackupAndExportResult : ResourceData
14+
{
15+
}
16+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using Azure.Core;
7+
8+
namespace Azure.ResourceManager.MySql.FlexibleServers.Models
9+
{
10+
/// <summary>
11+
/// Details about the target where the backup content will be stored.
12+
/// Please note <see cref="MySqlFlexibleServerBackupStoreDetails"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
13+
/// The available derived classes include <see cref="MySqlFlexibleServerFullBackupStoreDetails"/>.
14+
/// </summary>
15+
[CodeGenModel("BackupStoreDetails")]
16+
public abstract partial class MySqlFlexibleServerBackupStoreDetails
17+
{
18+
}
19+
}

0 commit comments

Comments
 (0)