/// <summary> /// Returns the list of databases of the given Kusto pool. /// </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='kustoPoolName'> /// The name of the Kusto pool. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <Database> > ListByKustoPoolAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByKustoPoolWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates a database. /// </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='kustoPoolName'> /// The name of the Kusto pool. /// </param> /// <param name='databaseName'> /// The name of the database in the Kusto pool. /// </param> /// <param name='parameters'> /// The database parameters supplied to the Update operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Database> BeginUpdateAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a database. /// </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='kustoPoolName'> /// The name of the Kusto pool. /// </param> /// <param name='databaseName'> /// The name of the database in the Kusto pool. /// </param> public static Database Get(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) { return(operations.GetAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).GetAwaiter().GetResult()); }
/// <summary> /// Deletes the database with the given name. /// </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='kustoPoolName'> /// The name of the Kusto pool. /// </param> /// <param name='databaseName'> /// The name of the database in the Kusto pool. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes the database with the given name. /// </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='kustoPoolName'> /// The name of the Kusto pool. /// </param> /// <param name='databaseName'> /// The name of the database in the Kusto pool. /// </param> public static void BeginDelete(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) { operations.BeginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).GetAwaiter().GetResult(); }
/// <summary> /// Returns the list of databases of the given Kusto pool. /// </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='kustoPoolName'> /// The name of the Kusto pool. /// </param> public static IEnumerable <Database> ListByKustoPool(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName) { return(operations.ListByKustoPoolAsync(resourceGroupName, workspaceName, kustoPoolName).GetAwaiter().GetResult()); }
/// <summary> /// Updates a database. /// </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='kustoPoolName'> /// The name of the Kusto pool. /// </param> /// <param name='databaseName'> /// The name of the database in the Kusto pool. /// </param> /// <param name='parameters'> /// The database parameters supplied to the Update operation. /// </param> public static Database BeginUpdate(this IKustoPoolDatabasesOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, Database parameters) { return(operations.BeginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).GetAwaiter().GetResult()); }