/// <summary> /// Gets schemas of a given SQL pool /// </summary> /// <remarks> /// Gets schemas of a given SQL pool. /// </remarks> /// <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='sqlPoolName'> /// SQL pool name /// </param> /// <param name='filter'> /// An OData filter expression that filters elements in the collection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SqlPoolSchemaListResult> ListAsync(this ISqlPoolSchemas operations, string resourceGroupName, string workspaceName, string sqlPoolName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, sqlPoolName, filter, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets schemas of a given SQL pool /// </summary> /// <remarks> /// Gets schemas of a given SQL pool. /// </remarks> /// <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='sqlPoolName'> /// SQL pool name /// </param> /// <param name='filter'> /// An OData filter expression that filters elements in the collection. /// </param> public static SqlPoolSchemaListResult List(this ISqlPoolSchemas operations, string resourceGroupName, string workspaceName, string sqlPoolName, string filter = default(string)) { return(operations.ListAsync(resourceGroupName, workspaceName, sqlPoolName, filter).GetAwaiter().GetResult()); }