-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add project ancestor groups logic (#715)
* Add project ancestor groups logic * fix tests * fix test again * Update NGitLab/Models/ProjectGroupsQuery.cs Co-authored-by: Louis Zanella <[email protected]> * Update NGitLab/Impl/ProjectClient.cs Co-authored-by: Louis Zanella <[email protected]> * Update NGitLab.Tests/ProjectsTests.cs Co-authored-by: Louis Zanella <[email protected]> * fix API * remove using * update System Text Json --------- Co-authored-by: Louis Zanella <[email protected]>
- Loading branch information
Showing
8 changed files
with
128 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace NGitLab.Models; | ||
|
||
public sealed class ProjectGroupsQuery | ||
{ | ||
/// <summary> | ||
/// Return list of authorized groups matching the search criteria | ||
/// </summary> | ||
public string Search { get; set; } | ||
|
||
/// <summary> | ||
/// Include groups shared to this project. Default is false | ||
/// </summary> | ||
public bool? WithShared { get; set; } | ||
|
||
/// <summary> | ||
/// Include projects in subgroups of this group. Default is false | ||
/// </summary> | ||
public bool? SharedVisibleOnly { get; set; } | ||
|
||
/// <summary> | ||
/// Limit to shared groups with at least this access level | ||
/// </summary> | ||
public AccessLevel? SharedMinAccessLevel { get; set; } | ||
|
||
/// <summary> | ||
/// Skip the group IDs passed | ||
/// </summary> | ||
public int[] SkipGroups { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters