/// <summary>
 /// Enumerate the information associated with a repository's branch restrictions.
 /// Requests will be done page by page while enumerating.
 /// </summary>
 /// <param name="parameters">Query parameters that can be used to filter the results.</param>
 public IEnumerable <BranchRestriction> EnumerateBranchRestrictions(
     EnumerateBranchRestrictionsParameters parameters)
 {
     _ = parameters ?? throw new ArgumentNullException(nameof(parameters));
     return(_sharpBucketV2.EnumeratePaginatedValues <BranchRestriction>(
                _baseUrl + "branch-restrictions",
                parameters.ToDictionary(),
                parameters.PageLen));
 }
 /// <summary>
 /// Enumerate the information associated with a repository's branch restrictions asynchronously,
 /// doing requests page by page.
 /// </summary>
 /// <param name="parameters">Query parameters that can be used to filter the results.</param>
 /// <param name="token">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
 public IAsyncEnumerable <BranchRestriction> EnumerateBranchRestrictionsAsync(
     EnumerateBranchRestrictionsParameters parameters,
     CancellationToken token = default)
 {
     _ = parameters ?? throw new ArgumentNullException(nameof(parameters));
     return(_sharpBucketV2.EnumeratePaginatedValuesAsync <BranchRestriction>(
                _baseUrl + "branch-restrictions",
                parameters.ToDictionary(),
                parameters.PageLen,
                token));
 }