/// <summary> /// List of all the settings /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SettingList> ListAsync(this IProductSettingsOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a setting. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='settingsName'> /// The setting name. Supports - Anomalies, EyesOn, EntityAnalytics, Ueba /// </param> public static Settings Get(this IProductSettingsOperations operations, string resourceGroupName, string workspaceName, string settingsName) { return(operations.GetAsync(resourceGroupName, workspaceName, settingsName).GetAwaiter().GetResult()); }
/// <summary> /// Delete setting of the product. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='settingsName'> /// The setting name. Supports - Anomalies, EyesOn, EntityAnalytics, Ueba /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IProductSettingsOperations operations, string resourceGroupName, string workspaceName, string settingsName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, settingsName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Delete setting of the product. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='settingsName'> /// The setting name. Supports - Anomalies, EyesOn, EntityAnalytics, Ueba /// </param> public static void Delete(this IProductSettingsOperations operations, string resourceGroupName, string workspaceName, string settingsName) { operations.DeleteAsync(resourceGroupName, workspaceName, settingsName).GetAwaiter().GetResult(); }