diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs index 3c30a767bee9..ae49842a72f4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs @@ -27,9 +27,7 @@ public partial interface IManagedDatabaseRestoreDetailsOperations /// Gets managed database restore details. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabasesOperations.cs index e6430f098afe..29537446582d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabasesOperations.cs @@ -27,9 +27,7 @@ public partial interface IManagedDatabasesOperations /// Gets a list of managed databases. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -54,9 +52,7 @@ public partial interface IManagedDatabasesOperations /// Gets a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -84,9 +80,7 @@ public partial interface IManagedDatabasesOperations /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -117,9 +111,7 @@ public partial interface IManagedDatabasesOperations /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -144,9 +136,7 @@ public partial interface IManagedDatabasesOperations /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -177,9 +167,7 @@ public partial interface IManagedDatabasesOperations /// Gets a list of inaccessible managed databases in a managed instance /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -204,9 +192,7 @@ public partial interface IManagedDatabasesOperations /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -234,9 +220,7 @@ public partial interface IManagedDatabasesOperations /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -267,9 +251,7 @@ public partial interface IManagedDatabasesOperations /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -294,9 +276,7 @@ public partial interface IManagedDatabasesOperations /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -327,9 +307,7 @@ public partial interface IManagedDatabasesOperations /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs index cdff8bc1e6b3..058ac48efe9c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs @@ -492,16 +492,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IWorkloadClassifiersOperations WorkloadClassifiers { get; } - /// - /// Gets the IManagedDatabaseRestoreDetailsOperations. - /// - IManagedDatabaseRestoreDetailsOperations ManagedDatabaseRestoreDetails { get; } - - /// - /// Gets the IManagedDatabasesOperations. - /// - IManagedDatabasesOperations ManagedDatabases { get; } - /// /// Gets the IServerAzureADAdministratorsOperations. /// @@ -522,5 +512,15 @@ public partial interface ISqlManagementClient : System.IDisposable /// ISyncMembersOperations SyncMembers { get; } + /// + /// Gets the IManagedDatabaseRestoreDetailsOperations. + /// + IManagedDatabaseRestoreDetailsOperations ManagedDatabaseRestoreDetails { get; } + + /// + /// Gets the IManagedDatabasesOperations. + /// + IManagedDatabasesOperations ManagedDatabases { get; } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs index fef323df26d5..d71aeb23cbce 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs @@ -54,8 +54,7 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) /// Gets managed database restore details. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -90,6 +89,21 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -103,7 +117,7 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string restoreDetailsName = "Default"; - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs index 238d1ba21e7a..f2278f12424e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs @@ -28,8 +28,7 @@ public static partial class ManagedDatabaseRestoreDetailsOperationsExtensions /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -49,8 +48,7 @@ public static ManagedDatabaseRestoreDetailsResult Get(this IManagedDatabaseResto /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs index 76775589b660..6497306dd8b8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs @@ -54,8 +54,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Gets a list of managed databases. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -87,6 +86,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -95,7 +109,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -249,8 +263,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Gets a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -285,6 +298,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -297,7 +325,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -453,8 +481,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -482,8 +509,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -508,8 +534,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -537,8 +562,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Gets a list of inaccessible managed databases in a managed instance /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -570,6 +594,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -578,7 +617,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -732,8 +771,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -761,8 +799,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -800,6 +837,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -820,7 +872,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1001,8 +1053,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -1034,6 +1085,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -1046,7 +1112,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1184,8 +1250,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -1223,6 +1288,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -1239,7 +1319,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1402,8 +1482,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -1438,6 +1517,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -1458,7 +1552,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperationsExtensions.cs index 847808c9220c..5dbeea1e0f01 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperationsExtensions.cs @@ -28,8 +28,7 @@ public static partial class ManagedDatabasesOperationsExtensions /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -46,8 +45,7 @@ public static IPage ListByInstance(this IManagedDatabasesOperat /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -70,8 +68,7 @@ public static IPage ListByInstance(this IManagedDatabasesOperat /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -91,8 +88,7 @@ public static ManagedDatabase Get(this IManagedDatabasesOperations operations, s /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -118,8 +114,7 @@ public static ManagedDatabase Get(this IManagedDatabasesOperations operations, s /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -142,8 +137,7 @@ public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations op /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -172,8 +166,7 @@ public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations op /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -193,8 +186,7 @@ public static void Delete(this IManagedDatabasesOperations operations, string re /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -217,8 +209,7 @@ public static void Delete(this IManagedDatabasesOperations operations, string re /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -241,8 +232,7 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -271,8 +261,7 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -289,8 +278,7 @@ public static IPage ListInaccessibleByInstance(this IManagedDat /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -313,8 +301,7 @@ public static IPage ListInaccessibleByInstance(this IManagedDat /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -337,8 +324,7 @@ public static void CompleteRestore(this IManagedDatabasesOperations operations, /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -364,8 +350,7 @@ public static void CompleteRestore(this IManagedDatabasesOperations operations, /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -388,8 +373,7 @@ public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperatio /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -418,8 +402,7 @@ public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperatio /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -439,8 +422,7 @@ public static void BeginDelete(this IManagedDatabasesOperations operations, stri /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -463,8 +445,7 @@ public static void BeginDelete(this IManagedDatabasesOperations operations, stri /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -487,8 +468,7 @@ public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations opera /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -517,8 +497,7 @@ public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations opera /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -541,8 +520,7 @@ public static void BeginCompleteRestore(this IManagedDatabasesOperations operati /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs index 60ffde89106c..097d79ad06b1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabase.cs @@ -89,7 +89,11 @@ public ManagedDatabase() /// The name of the /// Long Term Retention backup to be used for restore of this managed /// database. - public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string)) + /// Whether to auto complete restore + /// of this managed database. + /// Last backup file name for restore of + /// this managed database. + public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) : base(location, id, name, type, tags) { Collation = collation; @@ -107,6 +111,8 @@ public ManagedDatabase() FailoverGroupId = failoverGroupId; RecoverableDatabaseId = recoverableDatabaseId; LongTermRetentionBackupResourceId = longTermRetentionBackupResourceId; + AutoCompleteRestore = autoCompleteRestore; + LastBackupName = lastBackupName; CustomInit(); } @@ -231,6 +237,20 @@ public ManagedDatabase() [JsonProperty(PropertyName = "properties.longTermRetentionBackupResourceId")] public string LongTermRetentionBackupResourceId { get; set; } + /// + /// Gets or sets whether to auto complete restore of this managed + /// database. + /// + [JsonProperty(PropertyName = "properties.autoCompleteRestore")] + public bool? AutoCompleteRestore { get; set; } + + /// + /// Gets or sets last backup file name for restore of this managed + /// database. + /// + [JsonProperty(PropertyName = "properties.lastBackupName")] + public string LastBackupName { get; set; } + /// /// Validate the object. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs index 3b1ff33dcb8f..4afb5faa70f0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedDatabaseUpdate.cs @@ -84,8 +84,12 @@ public ManagedDatabaseUpdate() /// The name of the /// Long Term Retention backup to be used for restore of this managed /// database. + /// Whether to auto complete restore + /// of this managed database. + /// Last backup file name for restore of + /// this managed database. /// Resource tags. - public ManagedDatabaseUpdate(string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), IDictionary tags = default(IDictionary)) + public ManagedDatabaseUpdate(string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) { Collation = collation; Status = status; @@ -102,6 +106,8 @@ public ManagedDatabaseUpdate() FailoverGroupId = failoverGroupId; RecoverableDatabaseId = recoverableDatabaseId; LongTermRetentionBackupResourceId = longTermRetentionBackupResourceId; + AutoCompleteRestore = autoCompleteRestore; + LastBackupName = lastBackupName; Tags = tags; CustomInit(); } @@ -227,6 +233,20 @@ public ManagedDatabaseUpdate() [JsonProperty(PropertyName = "properties.longTermRetentionBackupResourceId")] public string LongTermRetentionBackupResourceId { get; set; } + /// + /// Gets or sets whether to auto complete restore of this managed + /// database. + /// + [JsonProperty(PropertyName = "properties.autoCompleteRestore")] + public bool? AutoCompleteRestore { get; set; } + + /// + /// Gets or sets last backup file name for restore of this managed + /// database. + /// + [JsonProperty(PropertyName = "properties.lastBackupName")] + public string LastBackupName { get; set; } + /// /// Gets or sets resource tags. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs index 34c4f0bf0c26..98c96a1baf08 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs @@ -61,13 +61,13 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "LongTermRetentionBackups", "2017-03-01-preview"), new Tuple("Sql", "LongTermRetentionManagedInstanceBackups", "2018-06-01-preview"), new Tuple("Sql", "ManagedBackupShortTermRetentionPolicies", "2017-03-01-preview"), - new Tuple("Sql", "ManagedDatabaseRestoreDetails", "2019-06-01-preview"), + new Tuple("Sql", "ManagedDatabaseRestoreDetails", "2020-02-02-preview"), new Tuple("Sql", "ManagedDatabaseSecurityAlertPolicies", "2017-03-01-preview"), new Tuple("Sql", "ManagedDatabaseSensitivityLabels", "2018-06-01-preview"), new Tuple("Sql", "ManagedDatabaseVulnerabilityAssessmentRuleBaselines", "2017-10-01-preview"), new Tuple("Sql", "ManagedDatabaseVulnerabilityAssessmentScans", "2017-10-01-preview"), new Tuple("Sql", "ManagedDatabaseVulnerabilityAssessments", "2017-10-01-preview"), - new Tuple("Sql", "ManagedDatabases", "2019-06-01-preview"), + new Tuple("Sql", "ManagedDatabases", "2020-02-02-preview"), new Tuple("Sql", "ManagedInstanceAdministrators", "2017-03-01-preview"), new Tuple("Sql", "ManagedInstanceEncryptionProtectors", "2017-10-01-preview"), new Tuple("Sql", "ManagedInstanceKeys", "2017-10-01-preview"), diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs index bba29e2ea802..0476dcbc9da2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs @@ -497,16 +497,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IWorkloadClassifiersOperations WorkloadClassifiers { get; private set; } - /// - /// Gets the IManagedDatabaseRestoreDetailsOperations. - /// - public virtual IManagedDatabaseRestoreDetailsOperations ManagedDatabaseRestoreDetails { get; private set; } - - /// - /// Gets the IManagedDatabasesOperations. - /// - public virtual IManagedDatabasesOperations ManagedDatabases { get; private set; } - /// /// Gets the IServerAzureADAdministratorsOperations. /// @@ -527,6 +517,16 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual ISyncMembersOperations SyncMembers { get; private set; } + /// + /// Gets the IManagedDatabaseRestoreDetailsOperations. + /// + public virtual IManagedDatabaseRestoreDetailsOperations ManagedDatabaseRestoreDetails { get; private set; } + + /// + /// Gets the IManagedDatabasesOperations. + /// + public virtual IManagedDatabasesOperations ManagedDatabases { get; private set; } + /// /// Initializes a new instance of the SqlManagementClient class. /// @@ -853,12 +853,12 @@ private void Initialize() ManagedInstanceLongTermRetentionPolicies = new ManagedInstanceLongTermRetentionPoliciesOperations(this); WorkloadGroups = new WorkloadGroupsOperations(this); WorkloadClassifiers = new WorkloadClassifiersOperations(this); - ManagedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsOperations(this); - ManagedDatabases = new ManagedDatabasesOperations(this); ServerAzureADAdministrators = new ServerAzureADAdministratorsOperations(this); ManagedInstanceOperations = new ManagedInstanceOperations(this); SyncGroups = new SyncGroupsOperations(this); SyncMembers = new SyncMembersOperations(this); + ManagedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsOperations(this); + ManagedDatabases = new ManagedDatabasesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30;