/// <summary> /// Checks that the data connection name is valid and is not already in use. /// </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='dataConnectionName'> /// The name of the data connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CheckNameResult> CheckNameAvailabilityAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionCheckNameRequest dataConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns the list of data connections of the given Kusto pool 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='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <DataConnection> > ListByDatabaseAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates a data connection. /// </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='dataConnectionName'> /// The name of the data connection. /// </param> /// <param name='parameters'> /// The data connection parameters supplied to the Update operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DataConnection> BeginUpdateAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Deletes the data connection 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='dataConnectionName'> /// The name of the data connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes the data connection 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='dataConnectionName'> /// The name of the data connection. /// </param> public static void BeginDelete(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName) { operations.BeginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName).GetAwaiter().GetResult(); }
/// <summary> /// Updates a data connection. /// </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='dataConnectionName'> /// The name of the data connection. /// </param> /// <param name='parameters'> /// The data connection parameters supplied to the Update operation. /// </param> public static DataConnection BeginUpdate(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName, DataConnection parameters) { return(operations.BeginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Checks that the data connection name is valid and is not already in use. /// </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='dataConnectionName'> /// The name of the data connection. /// </param> public static CheckNameResult CheckNameAvailability(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionCheckNameRequest dataConnectionName) { return(operations.CheckNameAvailabilityAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName).GetAwaiter().GetResult()); }
/// <summary> /// Returns a data connection. /// </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='dataConnectionName'> /// The name of the data connection. /// </param> public static DataConnection Get(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, string dataConnectionName) { return(operations.GetAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName).GetAwaiter().GetResult()); }
/// <summary> /// Returns the list of data connections of the given Kusto pool 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 IEnumerable <DataConnection> ListByDatabase(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName) { return(operations.ListByDatabaseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).GetAwaiter().GetResult()); }
/// <summary> /// Checks that the data connection parameters are valid. /// </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 data connection parameters supplied to the CreateOrUpdate operation. /// </param> public static DataConnectionValidationListResult DataConnectionValidationMethod(this IKustoPoolDataConnectionsOperations operations, string resourceGroupName, string workspaceName, string kustoPoolName, string databaseName, DataConnectionValidation parameters) { return(operations.DataConnectionValidationMethodAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).GetAwaiter().GetResult()); }