diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/IWorkspacesOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/IWorkspacesOperations.cs index 2b04ea0b3191..67684c419530 100644 --- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/IWorkspacesOperations.cs +++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/IWorkspacesOperations.cs @@ -93,7 +93,11 @@ public partial interface IWorkspacesOperations /// Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Workspace parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a workspace instance. + /// Deletes a workspace resource. To recover the workspace, create it + /// again with the same name, in the same subscription, resource group + /// and location. The name is kept for 14 days and cannot be used for + /// another workspace. To remove the workspace completely and release + /// the name, use the force flag. /// /// /// The name of the resource group. The name is case insensitive. @@ -101,6 +105,10 @@ public partial interface IWorkspacesOperations /// /// The name of the workspace. /// + /// + /// Deletes the workspace without the recovery option. A workspace that + /// was deleted with this flag cannot be recovered. + /// /// /// The headers that will be added to request. /// @@ -113,7 +121,7 @@ public partial interface IWorkspacesOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, bool? force = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a workspace instance. /// @@ -221,7 +229,11 @@ public partial interface IWorkspacesOperations /// Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Workspace parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a workspace instance. + /// Deletes a workspace resource. To recover the workspace, create it + /// again with the same name, in the same subscription, resource group + /// and location. The name is kept for 14 days and cannot be used for + /// another workspace. To remove the workspace completely and release + /// the name, use the force flag. /// /// /// The name of the resource group. The name is case insensitive. @@ -229,6 +241,10 @@ public partial interface IWorkspacesOperations /// /// The name of the workspace. /// + /// + /// Deletes the workspace without the recovery option. A workspace that + /// was deleted with this flag cannot be recovered. + /// /// /// The headers that will be added to request. /// @@ -241,6 +257,6 @@ public partial interface IWorkspacesOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, bool? force = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperations.cs index 9f1fc0a46bfd..92b42536a333 100644 --- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperations.cs +++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperations.cs @@ -484,7 +484,10 @@ internal WorkspacesOperations(OperationalInsightsManagementClient client) } /// - /// Deletes a workspace instance. + /// Deletes a workspace resource. To recover the workspace, create it again + /// with the same name, in the same subscription, resource group and location. + /// The name is kept for 14 days and cannot be used for another workspace. To + /// remove the workspace completely and release the name, use the force flag. /// /// /// The name of the resource group. The name is case insensitive. @@ -492,16 +495,20 @@ internal WorkspacesOperations(OperationalInsightsManagementClient client) /// /// The name of the workspace. /// + /// + /// Deletes the workspace without the recovery option. A workspace that was + /// deleted with this flag cannot be recovered. + /// /// /// The headers that will be added to request. /// /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, bool? force = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, force, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -1516,7 +1523,10 @@ internal WorkspacesOperations(OperationalInsightsManagementClient client) } /// - /// Deletes a workspace instance. + /// Deletes a workspace resource. To recover the workspace, create it again + /// with the same name, in the same subscription, resource group and location. + /// The name is kept for 14 days and cannot be used for another workspace. To + /// remove the workspace completely and release the name, use the force flag. /// /// /// The name of the resource group. The name is case insensitive. @@ -1524,6 +1534,10 @@ internal WorkspacesOperations(OperationalInsightsManagementClient client) /// /// The name of the workspace. /// + /// + /// Deletes the workspace without the recovery option. A workspace that was + /// deleted with this flag cannot be recovered. + /// /// /// Headers that will be added to request. /// @@ -1542,7 +1556,7 @@ internal WorkspacesOperations(OperationalInsightsManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, bool? force = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1613,6 +1627,7 @@ internal WorkspacesOperations(OperationalInsightsManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("force", force); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } @@ -1627,6 +1642,10 @@ internal WorkspacesOperations(OperationalInsightsManagementClient client) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } + if (force != null) + { + _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(force, Client.SerializationSettings).Trim('"')))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperationsExtensions.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperationsExtensions.cs index be68a3ff845c..8f653fc293e5 100644 --- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperationsExtensions.cs +++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperationsExtensions.cs @@ -132,7 +132,10 @@ public static Workspace CreateOrUpdate(this IWorkspacesOperations operations, st } /// - /// Deletes a workspace instance. + /// Deletes a workspace resource. To recover the workspace, create it again + /// with the same name, in the same subscription, resource group and location. + /// The name is kept for 14 days and cannot be used for another workspace. To + /// remove the workspace completely and release the name, use the force flag. /// /// /// The operations group for this extension method. @@ -143,13 +146,20 @@ public static Workspace CreateOrUpdate(this IWorkspacesOperations operations, st /// /// The name of the workspace. /// - public static void Delete(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName) + /// + /// Deletes the workspace without the recovery option. A workspace that was + /// deleted with this flag cannot be recovered. + /// + public static void Delete(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, bool? force = default(bool?)) { - operations.DeleteAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, workspaceName, force).GetAwaiter().GetResult(); } /// - /// Deletes a workspace instance. + /// Deletes a workspace resource. To recover the workspace, create it again + /// with the same name, in the same subscription, resource group and location. + /// The name is kept for 14 days and cannot be used for another workspace. To + /// remove the workspace completely and release the name, use the force flag. /// /// /// The operations group for this extension method. @@ -160,12 +170,16 @@ public static void Delete(this IWorkspacesOperations operations, string resource /// /// The name of the workspace. /// + /// + /// Deletes the workspace without the recovery option. A workspace that was + /// deleted with this flag cannot be recovered. + /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, bool? force = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, force, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -341,7 +355,10 @@ public static Workspace BeginCreateOrUpdate(this IWorkspacesOperations operation } /// - /// Deletes a workspace instance. + /// Deletes a workspace resource. To recover the workspace, create it again + /// with the same name, in the same subscription, resource group and location. + /// The name is kept for 14 days and cannot be used for another workspace. To + /// remove the workspace completely and release the name, use the force flag. /// /// /// The operations group for this extension method. @@ -352,13 +369,20 @@ public static Workspace BeginCreateOrUpdate(this IWorkspacesOperations operation /// /// The name of the workspace. /// - public static void BeginDelete(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName) + /// + /// Deletes the workspace without the recovery option. A workspace that was + /// deleted with this flag cannot be recovered. + /// + public static void BeginDelete(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, bool? force = default(bool?)) { - operations.BeginDeleteAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(resourceGroupName, workspaceName, force).GetAwaiter().GetResult(); } /// - /// Deletes a workspace instance. + /// Deletes a workspace resource. To recover the workspace, create it again + /// with the same name, in the same subscription, resource group and location. + /// The name is kept for 14 days and cannot be used for another workspace. To + /// remove the workspace completely and release the name, use the force flag. /// /// /// The operations group for this extension method. @@ -369,12 +393,16 @@ public static void BeginDelete(this IWorkspacesOperations operations, string res /// /// The name of the workspace. /// + /// + /// Deletes the workspace without the recovery option. A workspace that was + /// deleted with this flag cannot be recovered. + /// /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IWorkspacesOperations operations, string resourceGroupName, string workspaceName, bool? force = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, force, null, cancellationToken).ConfigureAwait(false)).Dispose(); } }