From 9b7af2896023f34debb13534427e49c53ea34366 Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Mon, 24 Jul 2023 08:07:08 +0000 Subject: [PATCH] Move MySql to main --- src/MySql/Az.MySql.psd1 | 4 +- src/MySql/MySql.sln | 70 ++++---- .../flexibleServers-configurations.json | 52 ++++++ .../flexibleServers-databases.json | 95 +++++++++++ .../flexibleServers-firewallRules.json | 95 +++++++++++ .../Microsoft.DBforMySQL/flexibleServers.json | 161 ++++++++++++++++++ .../servers-configurations.json | 52 ++++++ .../servers-firewallRules.json | 95 +++++++++++ .../servers-virtualNetworkRules.json | 95 +++++++++++ .../UX/Microsoft.DBforMySQL/servers.json | 123 +++++++++++++ src/MySql/generate-info.json | 4 +- .../generated/runtime/MessageAttribute.cs | 75 +++----- .../runtime/Properties/Resources.Designer.cs | 17 +- .../runtime/Properties/Resources.resx | 5 +- 14 files changed, 849 insertions(+), 94 deletions(-) create mode 100644 src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-configurations.json create mode 100644 src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-databases.json create mode 100644 src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-firewallRules.json create mode 100644 src/MySql/UX/Microsoft.DBforMySQL/flexibleServers.json create mode 100644 src/MySql/UX/Microsoft.DBforMySQL/servers-configurations.json create mode 100644 src/MySql/UX/Microsoft.DBforMySQL/servers-firewallRules.json create mode 100644 src/MySql/UX/Microsoft.DBforMySQL/servers-virtualNetworkRules.json create mode 100644 src/MySql/UX/Microsoft.DBforMySQL/servers.json diff --git a/src/MySql/Az.MySql.psd1 b/src/MySql/Az.MySql.psd1 index 19296c56c2d1..b3e1e8bed994 100644 --- a/src/MySql/Az.MySql.psd1 +++ b/src/MySql/Az.MySql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 06/29/2023 +# Generated on: 7/24/2023 # @{ @@ -133,7 +133,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Fixed iops and high availability parameters issue' + # ReleaseNotes = '' # Prerelease string of this module # Prerelease = '' diff --git a/src/MySql/MySql.sln b/src/MySql/MySql.sln index dc496b82a397..464338a8bbce 100644 --- a/src/MySql/MySql.sln +++ b/src/MySql/MySql.sln @@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{6285B1B3-5E62-4805-85F4-98A1DEA6EE02}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{43E3A145-3595-42DF-84F4-EEE9A6B947F8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{F6BF650D-1929-489B-A522-C593978DAAF1}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{C534B3E1-3641-47CE-9FC5-3570CF6CD4FB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{EB08FF10-A4A8-4D6A-90FC-3F027F81E9D0}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{21B7F5C9-53A0-45F0-9AE2-41EE16C71D9A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{31E418AA-F2A6-48FE-A3E7-7579CF3021BA}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{3EC2632B-A1E4-426E-9347-8A1CD70EB6F5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{93B4F1D9-9C6C-4A98-9521-2F68422EA5DD}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{EE354954-607A-4651-8DFF-F1D8AD8AEB5D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{40B086E5-86A2-4C1A-8473-9F5A6025F0F1}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{A5D71189-01D6-4290-ADEF-177BBE0D8BE4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MySql", "Az.MySql.csproj", "{7C402CDA-488E-410A-97B9-5FDD8B96C97E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MySql", "Az.MySql.csproj", "{51B0EB7A-1BD7-4AF3-84C7-6A3A798AC079}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -26,33 +26,33 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {6285B1B3-5E62-4805-85F4-98A1DEA6EE02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6285B1B3-5E62-4805-85F4-98A1DEA6EE02}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6285B1B3-5E62-4805-85F4-98A1DEA6EE02}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6285B1B3-5E62-4805-85F4-98A1DEA6EE02}.Release|Any CPU.Build.0 = Release|Any CPU - {F6BF650D-1929-489B-A522-C593978DAAF1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F6BF650D-1929-489B-A522-C593978DAAF1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F6BF650D-1929-489B-A522-C593978DAAF1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F6BF650D-1929-489B-A522-C593978DAAF1}.Release|Any CPU.Build.0 = Release|Any CPU - {EB08FF10-A4A8-4D6A-90FC-3F027F81E9D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EB08FF10-A4A8-4D6A-90FC-3F027F81E9D0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EB08FF10-A4A8-4D6A-90FC-3F027F81E9D0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EB08FF10-A4A8-4D6A-90FC-3F027F81E9D0}.Release|Any CPU.Build.0 = Release|Any CPU - {31E418AA-F2A6-48FE-A3E7-7579CF3021BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {31E418AA-F2A6-48FE-A3E7-7579CF3021BA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {31E418AA-F2A6-48FE-A3E7-7579CF3021BA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {31E418AA-F2A6-48FE-A3E7-7579CF3021BA}.Release|Any CPU.Build.0 = Release|Any CPU - {93B4F1D9-9C6C-4A98-9521-2F68422EA5DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {93B4F1D9-9C6C-4A98-9521-2F68422EA5DD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {93B4F1D9-9C6C-4A98-9521-2F68422EA5DD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {93B4F1D9-9C6C-4A98-9521-2F68422EA5DD}.Release|Any CPU.Build.0 = Release|Any CPU - {40B086E5-86A2-4C1A-8473-9F5A6025F0F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {40B086E5-86A2-4C1A-8473-9F5A6025F0F1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {40B086E5-86A2-4C1A-8473-9F5A6025F0F1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {40B086E5-86A2-4C1A-8473-9F5A6025F0F1}.Release|Any CPU.Build.0 = Release|Any CPU - {7C402CDA-488E-410A-97B9-5FDD8B96C97E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7C402CDA-488E-410A-97B9-5FDD8B96C97E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7C402CDA-488E-410A-97B9-5FDD8B96C97E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7C402CDA-488E-410A-97B9-5FDD8B96C97E}.Release|Any CPU.Build.0 = Release|Any CPU + {43E3A145-3595-42DF-84F4-EEE9A6B947F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {43E3A145-3595-42DF-84F4-EEE9A6B947F8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {43E3A145-3595-42DF-84F4-EEE9A6B947F8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {43E3A145-3595-42DF-84F4-EEE9A6B947F8}.Release|Any CPU.Build.0 = Release|Any CPU + {C534B3E1-3641-47CE-9FC5-3570CF6CD4FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C534B3E1-3641-47CE-9FC5-3570CF6CD4FB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C534B3E1-3641-47CE-9FC5-3570CF6CD4FB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C534B3E1-3641-47CE-9FC5-3570CF6CD4FB}.Release|Any CPU.Build.0 = Release|Any CPU + {21B7F5C9-53A0-45F0-9AE2-41EE16C71D9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {21B7F5C9-53A0-45F0-9AE2-41EE16C71D9A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {21B7F5C9-53A0-45F0-9AE2-41EE16C71D9A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {21B7F5C9-53A0-45F0-9AE2-41EE16C71D9A}.Release|Any CPU.Build.0 = Release|Any CPU + {3EC2632B-A1E4-426E-9347-8A1CD70EB6F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3EC2632B-A1E4-426E-9347-8A1CD70EB6F5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3EC2632B-A1E4-426E-9347-8A1CD70EB6F5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3EC2632B-A1E4-426E-9347-8A1CD70EB6F5}.Release|Any CPU.Build.0 = Release|Any CPU + {EE354954-607A-4651-8DFF-F1D8AD8AEB5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EE354954-607A-4651-8DFF-F1D8AD8AEB5D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EE354954-607A-4651-8DFF-F1D8AD8AEB5D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EE354954-607A-4651-8DFF-F1D8AD8AEB5D}.Release|Any CPU.Build.0 = Release|Any CPU + {A5D71189-01D6-4290-ADEF-177BBE0D8BE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A5D71189-01D6-4290-ADEF-177BBE0D8BE4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A5D71189-01D6-4290-ADEF-177BBE0D8BE4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A5D71189-01D6-4290-ADEF-177BBE0D8BE4}.Release|Any CPU.Build.0 = Release|Any CPU + {51B0EB7A-1BD7-4AF3-84C7-6A3A798AC079}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {51B0EB7A-1BD7-4AF3-84C7-6A3A798AC079}.Debug|Any CPU.Build.0 = Debug|Any CPU + {51B0EB7A-1BD7-4AF3-84C7-6A3A798AC079}.Release|Any CPU.ActiveCfg = Release|Any CPU + {51B0EB7A-1BD7-4AF3-84C7-6A3A798AC079}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-configurations.json b/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-configurations.json new file mode 100644 index 000000000000..e632c1ac96d1 --- /dev/null +++ b/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-configurations.json @@ -0,0 +1,52 @@ +{ + "resourceType": "flexibleServers/configurations", + "apiVersion": "2021-05-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql" + }, + "commands": [ + { + "name": "Get-AzMySqlFlexibleServerConfiguration", + "description": "Gets information about a configuration of server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/get-azmysqlflexibleserverconfiguration" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.configurationName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-databases.json b/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-databases.json new file mode 100644 index 000000000000..7f34f67cf66c --- /dev/null +++ b/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-databases.json @@ -0,0 +1,95 @@ +{ + "resourceType": "flexibleServers/databases", + "apiVersion": "2021-05-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql" + }, + "commands": [ + { + "name": "Get-AzMySqlFlexibleServerDatabase", + "description": "Gets information about a database.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/databases/{databaseName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/get-azmysqlflexibleserverdatabase" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a database.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.databaseName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMySqlFlexibleServerDatabase", + "description": "Deletes a database.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/databases/{databaseName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/remove-azmysqlflexibleserverdatabase" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a database.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.databaseName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-firewallRules.json b/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-firewallRules.json new file mode 100644 index 000000000000..4afd4322a1b4 --- /dev/null +++ b/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers-firewallRules.json @@ -0,0 +1,95 @@ +{ + "resourceType": "flexibleServers/firewallRules", + "apiVersion": "2021-05-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql" + }, + "commands": [ + { + "name": "Get-AzMySqlFlexibleServerFirewallRule", + "description": "Gets information about a server firewall rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/get-azmysqlflexibleserverfirewallrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a server firewall rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.firewallRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMySqlFlexibleServerFirewallRule", + "description": "Deletes a firewall rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/remove-azmysqlflexibleserverfirewallrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a firewall rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.firewallRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers.json b/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers.json new file mode 100644 index 000000000000..a9be87095f06 --- /dev/null +++ b/src/MySql/UX/Microsoft.DBforMySQL/flexibleServers.json @@ -0,0 +1,161 @@ +{ + "resourceType": "flexibleServers", + "apiVersion": "2021-05-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql" + }, + "commands": [ + { + "name": "Get-AzMySqlFlexibleServer", + "description": "Gets information about a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/get-azmysqlflexibleserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMySqlFlexibleServer", + "description": "Deletes a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/remove-azmysqlflexibleserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Start-AzMySqlFlexibleServer", + "description": "Starts a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/start", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/start-azmysqlflexibleserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Starts a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Stop-AzMySqlFlexibleServer", + "description": "Stops a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/stop", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/stop-azmysqlflexibleserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Stops a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MySql/UX/Microsoft.DBforMySQL/servers-configurations.json b/src/MySql/UX/Microsoft.DBforMySQL/servers-configurations.json new file mode 100644 index 000000000000..d9d68bef022f --- /dev/null +++ b/src/MySql/UX/Microsoft.DBforMySQL/servers-configurations.json @@ -0,0 +1,52 @@ +{ + "resourceType": "servers/configurations", + "apiVersion": "2017-12-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql" + }, + "commands": [ + { + "name": "Get-AzMySqlConfiguration", + "description": "Gets information about a configuration of server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/get-azmysqlconfiguration" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.configurationName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MySql/UX/Microsoft.DBforMySQL/servers-firewallRules.json b/src/MySql/UX/Microsoft.DBforMySQL/servers-firewallRules.json new file mode 100644 index 000000000000..908d8767b996 --- /dev/null +++ b/src/MySql/UX/Microsoft.DBforMySQL/servers-firewallRules.json @@ -0,0 +1,95 @@ +{ + "resourceType": "servers/firewallRules", + "apiVersion": "2017-12-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql" + }, + "commands": [ + { + "name": "Get-AzMySqlFirewallRule", + "description": "Gets information about a server firewall rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/get-azmysqlfirewallrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a server firewall rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.firewallRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMySqlFirewallRule", + "description": "Deletes a server firewall rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/remove-azmysqlfirewallrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a server firewall rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.firewallRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MySql/UX/Microsoft.DBforMySQL/servers-virtualNetworkRules.json b/src/MySql/UX/Microsoft.DBforMySQL/servers-virtualNetworkRules.json new file mode 100644 index 000000000000..5db97e442199 --- /dev/null +++ b/src/MySql/UX/Microsoft.DBforMySQL/servers-virtualNetworkRules.json @@ -0,0 +1,95 @@ +{ + "resourceType": "servers/virtualNetworkRules", + "apiVersion": "2017-12-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql" + }, + "commands": [ + { + "name": "Get-AzMySqlVirtualNetworkRule", + "description": "Gets a virtual network rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/get-azmysqlvirtualnetworkrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a virtual network rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.virtualNetworkRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMySqlVirtualNetworkRule", + "description": "Deletes the virtual network rule with the given name.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/remove-azmysqlvirtualnetworkrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the virtual network rule with the given name.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.virtualNetworkRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MySql/UX/Microsoft.DBforMySQL/servers.json b/src/MySql/UX/Microsoft.DBforMySQL/servers.json new file mode 100644 index 000000000000..b4c5acb6fb4e --- /dev/null +++ b/src/MySql/UX/Microsoft.DBforMySQL/servers.json @@ -0,0 +1,123 @@ +{ + "resourceType": "servers", + "apiVersion": "2017-12-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql" + }, + "commands": [ + { + "name": "Get-AzMySqlServer", + "description": "Gets information about a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/get-azmysqlserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMySqlServer", + "description": "Deletes a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/remove-azmysqlserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Restart-AzMySqlServer", + "description": "Restarts a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/restart", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mysql/restart-azmysqlserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Restarts a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MySql/generate-info.json b/src/MySql/generate-info.json index 3138dd415f37..c12933248c45 100644 --- a/src/MySql/generate-info.json +++ b/src/MySql/generate-info.json @@ -1,8 +1,8 @@ { - "swagger_commit": "6914c95db58c8dd037faf07bcc21475fc19c57f3", + "swagger_commit": "2cc9cc2bd1190296ea9ef1084d72f33389df8678", "node": "v14.15.5", "autorest": "`-- (empty)", "autorest_core": "3.9.6", "autorest_modelerfour": "4.15.414", - "autorest_powershell": "3.0.504" + "autorest_powershell": "3.0.505" } diff --git a/src/MySql/generated/runtime/MessageAttribute.cs b/src/MySql/generated/runtime/MessageAttribute.cs index 3aacd7ec8f0a..ba7e29576e88 100644 --- a/src/MySql/generated/runtime/MessageAttribute.cs +++ b/src/MySql/generated/runtime/MessageAttribute.cs @@ -21,7 +21,7 @@ public class GenericBreakingChangeAttribute : Attribute //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } - public bool DeprecateByVersionSet { get; } = false; + public string DeprecateByAzVersion { get; } //The date on which the change comes in effect public DateTime ChangeInEfectByDate { get; } @@ -32,23 +32,18 @@ public class GenericBreakingChangeAttribute : Attribute //New way fo calling the cmdlet public string NewWay { get; set; } - public GenericBreakingChangeAttribute(string message) - { - _message = message; - } - - public GenericBreakingChangeAttribute(string message, string deprecateByVersion) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion) { _message = message; + this.DeprecateByAzVersion = deprecateByAzVersion; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; } - public GenericBreakingChangeAttribute(string message, string deprecateByVersion, string changeInEfectByDate) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) { _message = message; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; + this.DeprecateByAzVersion = deprecateByAzVersion; if (DateTime.TryParse(changeInEfectByDate, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) { @@ -86,10 +81,8 @@ public void PrintCustomAttributeInfo(Action writeOutput) writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEfectByDate.ToString("d"))); } - if (DeprecateByVersionSet) - { - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); - } + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -114,18 +107,13 @@ public class CmdletBreakingChangeAttribute : GenericBreakingChangeAttribute public string ReplacementCmdletName { get; set; } - public CmdletBreakingChangeAttribute() : - base(string.Empty) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { } - public CmdletBreakingChangeAttribute(string deprecateByVersione) : - base(string.Empty, deprecateByVersione) - { - } - - public CmdletBreakingChangeAttribute(string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { } @@ -146,20 +134,15 @@ protected override string GetAttributeSpecificMessage() public class ParameterSetBreakingChangeAttribute : GenericBreakingChangeAttribute { public string[] ChangedParameterSet { set; get; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet) : - base(string.Empty) - { - ChangedParameterSet = changedParameterSet; - } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersione) : - base(string.Empty, deprecateByVersione) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { ChangedParameterSet = changedParameterSet; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { ChangedParameterSet = changedParameterSet; } @@ -219,20 +202,14 @@ public class ParameterBreakingChangeAttribute : GenericBreakingChangeAttribute public String NewParameterType { get; set; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging) : - base(string.Empty) - { - this.NameOfParameterChanging = nameOfParameterChanging; - } - - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.NameOfParameterChanging = nameOfParameterChanging; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.NameOfParameterChanging = nameOfParameterChanging; } @@ -298,20 +275,14 @@ public class OutputBreakingChangeAttribute : GenericBreakingChangeAttribute public string[] NewOutputProperties { get; set; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType) : - base(string.Empty) - { - this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; - } - - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } diff --git a/src/MySql/generated/runtime/Properties/Resources.Designer.cs b/src/MySql/generated/runtime/Properties/Resources.Designer.cs index 3abee0a1e99c..59dff219ed4c 100644 --- a/src/MySql/generated/runtime/Properties/Resources.Designer.cs +++ b/src/MySql/generated/runtime/Properties/Resources.Designer.cs @@ -734,7 +734,7 @@ public static string BreakingChangesAttributesInEffectByDateMessage } /// - /// Looks up a localized string similar to Note :The change is expected to take effect from the version : '{0}' + /// Looks up a localized string similar to Note :The change is expected to take effect from version : '{0}' /// ///. /// @@ -746,6 +746,19 @@ public static string BreakingChangesAttributesInEffectByVersion } } + /// + /// Looks up a localized string similar to Note :The change is expected to take effect from az version : '{0}' + /// + ///. + /// + public static string BreakingChangesAttributesInEffectByAzVersion + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByAzVersion", resourceCulture); + } + } + /// /// Looks up a localized string similar to ```powershell ///# Old @@ -5630,4 +5643,4 @@ public static string YesHint } } } -} +} \ No newline at end of file diff --git a/src/MySql/generated/runtime/Properties/Resources.resx b/src/MySql/generated/runtime/Properties/Resources.resx index 598cd53e958a..613700a3a418 100644 --- a/src/MySql/generated/runtime/Properties/Resources.resx +++ b/src/MySql/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from the version : '{0}' +- The change is expected to take effect from version : '{0}' ```powershell @@ -1738,4 +1738,7 @@ Note : Go to {0} for steps to suppress this breaking change warning, and other i This cmdlet is in preview. The functionality may not be available in the selected subscription. + + - The change is expected to take effect from Az version : '{0}' + \ No newline at end of file