in csharp/Microsoft.Azure.Databricks.Client/UnityCatalog/SharesApiClient.cs [22:38]
public async Task<SharesList> List(int maxResults = 0, string pageToken = default, CancellationToken cancellationToken = default)
{
if (maxResults < 0 || maxResults > 1000)
{
throw new ArgumentOutOfRangeException(nameof(maxResults), "maxResults must be between 0 and 1000");
}
StringBuilder requestUriSb = new($"{BaseUnityCatalogUri}/shares?max_results={maxResults}");
if (!string.IsNullOrEmpty(pageToken))
{
requestUriSb.Append($"&page_token={pageToken}");
}
var requestUri = requestUriSb.ToString();
return await HttpGet<SharesList>(this.HttpClient, requestUri, cancellationToken).ConfigureAwait(false);
}