From 42f2cc19da190d68fdb9ce6752fb18d1effad9df Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 23 Oct 2023 02:42:31 +0000 Subject: [PATCH] CodeGen from PR 26191 in Azure/azure-rest-api-specs Merge 8e069352d3006fdab04af5527670aa9c49b4cff1 into 28c5aaa5810448fce57da7e47427259a0c8850bf --- .../Samples/Sample_MySqlFlexibleServerResource.cs | 4 ++++ .../Samples/Sample_SubscriptionResourceExtensions.cs | 8 ++++---- .../Generated/Samples/Sample_TenantResourceExtensions.cs | 2 +- .../Generated/Models/MySqlFlexibleServerGtidSetContent.cs | 4 ++-- .../RestOperations/CheckNameAvailabilityRestOperations.cs | 2 +- .../CheckNameAvailabilityWithoutLocationRestOperations.cs | 2 +- .../CheckVirtualNetworkSubnetUsageRestOperations.cs | 2 +- .../GetPrivateDnsZoneSuffixRestOperations.cs | 2 +- .../LocationBasedCapabilitiesRestOperations.cs | 2 +- sdk/mysql/Azure.ResourceManager.MySql/src/autorest.md | 4 ++-- 10 files changed, 18 insertions(+), 14 deletions(-) diff --git a/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_MySqlFlexibleServerResource.cs b/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_MySqlFlexibleServerResource.cs index 0beb0ec80572..e87537c78d64 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_MySqlFlexibleServerResource.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_MySqlFlexibleServerResource.cs @@ -154,6 +154,10 @@ public async Task Update_UpdateAServer() AutoGrow = MySqlFlexibleServerEnableStatusEnum.Disabled, AutoIoScaling = MySqlFlexibleServerEnableStatusEnum.Disabled, }, + Network = new MySqlFlexibleServerNetwork() + { + PublicNetworkAccess = MySqlFlexibleServerEnableStatusEnum.Disabled, + }, }; ArmOperation lro = await mySqlFlexibleServer.UpdateAsync(WaitUntil.Completed, patch); MySqlFlexibleServerResource result = lro.Value; diff --git a/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 6a27c7b794bf..704b5bcb771a 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -23,7 +23,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLocationBasedCapabilities_CapabilitiesList() { - // Generated from example definition: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2021-12-01-preview/examples/CapabilitiesByLocationList.json + // Generated from example definition: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CapabilitiesByLocationList.json // this example is just showing the usage of "LocationBasedCapabilities_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task GetLocationBasedCapabilities_CapabilitiesList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ExecuteCheckVirtualNetworkSubnetUsage_CheckVirtualNetworkSubnetUsage() { - // Generated from example definition: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2021-12-01-preview/examples/CheckVirtualNetworkSubnetUsage.json + // Generated from example definition: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckVirtualNetworkSubnetUsage.json // this example is just showing the usage of "CheckVirtualNetworkSubnetUsage_Execute" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task ExecuteCheckVirtualNetworkSubnetUsage_CheckVirtualNetworkSubne [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckMySqlFlexibleServerNameAvailability_CheckNameAvailability() { - // Generated from example definition: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2021-12-01-preview/examples/CheckNameAvailability.json + // Generated from example definition: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckNameAvailability.json // this example is just showing the usage of "CheckNameAvailability_Execute" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task CheckMySqlFlexibleServerNameAvailability_CheckNameAvailability [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckMySqlFlexibleServerNameAvailabilityWithoutLocation_CheckNameAvailability() { - // Generated from example definition: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2021-12-01-preview/examples/CheckNameAvailability.json + // Generated from example definition: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckNameAvailability.json // this example is just showing the usage of "CheckNameAvailabilityWithoutLocation_Execute" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_TenantResourceExtensions.cs b/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_TenantResourceExtensions.cs index 27c8a94ad31b..ce517457039f 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_TenantResourceExtensions.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/samples/Generated/Samples/Sample_TenantResourceExtensions.cs @@ -22,7 +22,7 @@ public partial class Sample_TenantResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ExecuteGetPrivateDnsZoneSuffix_GetPrivateDnsZoneSuffix() { - // Generated from example definition: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2021-12-01-preview/examples/GetPrivateDnsZoneSuffix.json + // Generated from example definition: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/GetPrivateDnsZoneSuffix.json // this example is just showing the usage of "GetPrivateDnsZoneSuffix_Execute" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerGtidSetContent.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerGtidSetContent.cs index 9a32b2b48937..11bb19ca3b6b 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerGtidSetContent.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/Models/MySqlFlexibleServerGtidSetContent.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.MySql.FlexibleServers.Models { - /// Server gtid set parameters. + /// Server Gtid set parameters. public partial class MySqlFlexibleServerGtidSetContent { /// Initializes a new instance of MySqlFlexibleServerGtidSetContent. @@ -15,7 +15,7 @@ public MySqlFlexibleServerGtidSetContent() { } - /// The gtid set of server. + /// The Gtid set of server. public string GtidSet { get; set; } } } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs index 92249e9cbb91..c033c79449ca 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityRestOperations.cs @@ -33,7 +33,7 @@ public CheckNameAvailabilityRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-12-01-preview"; + _apiVersion = apiVersion ?? "2022-09-30-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithoutLocationRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithoutLocationRestOperations.cs index 5ef2f392e60e..5a9dd1a7f524 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithoutLocationRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckNameAvailabilityWithoutLocationRestOperations.cs @@ -33,7 +33,7 @@ public CheckNameAvailabilityWithoutLocationRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-12-01-preview"; + _apiVersion = apiVersion ?? "2022-09-30-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckVirtualNetworkSubnetUsageRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckVirtualNetworkSubnetUsageRestOperations.cs index e159195841da..12ed2b3ba16d 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckVirtualNetworkSubnetUsageRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/CheckVirtualNetworkSubnetUsageRestOperations.cs @@ -33,7 +33,7 @@ public CheckVirtualNetworkSubnetUsageRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-12-01-preview"; + _apiVersion = apiVersion ?? "2022-09-30-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs index a9cf582c25ce..728dcf517664 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/GetPrivateDnsZoneSuffixRestOperations.cs @@ -33,7 +33,7 @@ public GetPrivateDnsZoneSuffixRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-12-01-preview"; + _apiVersion = apiVersion ?? "2022-09-30-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs index 4be0757eb6ca..ba4a78ab4b04 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/RestOperations/LocationBasedCapabilitiesRestOperations.cs @@ -33,7 +33,7 @@ public LocationBasedCapabilitiesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-12-01-preview"; + _apiVersion = apiVersion ?? "2022-09-30-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/autorest.md b/sdk/mysql/Azure.ResourceManager.MySql/src/autorest.md index 2603dbcb3901..e5d9aa59d94c 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/autorest.md +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/autorest.md @@ -18,7 +18,7 @@ batch: ``` yaml $(tag) == 'package-2020-01-01' namespace: Azure.ResourceManager.MySql -require: https://github.com/Azure/azure-rest-api-specs/blob/4f6418dca8c15697489bbe6f855558bb79ca5bf5/specification/mysql/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/mysql/resource-manager/readme.md output-folder: $(this-folder)/MySql/Generated sample-gen: output-folder: $(this-folder)/../samples/Generated @@ -185,7 +185,7 @@ directive: ``` yaml $(tag) == 'package-flexibleserver-2022-09-30-preview' namespace: Azure.ResourceManager.MySql.FlexibleServers -require: https://github.com/Azure/azure-rest-api-specs/blob/6c6b16dc98d720304633b76c8e82c282ffa9cc08/specification/mysql/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/mysql/resource-manager/readme.md output-folder: $(this-folder)/MySqlFlexibleServers/Generated sample-gen: output-folder: $(this-folder)/../samples/Generated