Skip to content

Commit e0fa60d

Browse files
committed
Update ProjectClient.cs, IProjectClient.cs and PublicAPI.Unshipped.txt
1 parent cfba23f commit e0fa60d

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

NGitLab.Mock/Clients/ProjectClient.cs

+12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Linq;
77
using System.Threading;
88
using System.Threading.Tasks;
9+
using NGitLab.Impl;
910
using NGitLab.Mock.Internals;
1011
using NGitLab.Models;
1112

@@ -289,6 +290,12 @@ public Models.Project Fork(string id, ForkProject forkProject)
289290
}
290291
}
291292

293+
public Task<ProjectMergeRequestTemplate> GetProjectMergeRequestTemplateAsync(ProjectId projectId, string name,
294+
CancellationToken cancellationToken = default)
295+
{
296+
throw new NotImplementedException();
297+
}
298+
292299
public Dictionary<string, double> GetLanguages(string id)
293300
{
294301
// Basic implementation, the results are not expected to be accurrate
@@ -413,4 +420,9 @@ public UploadedProjectFile UploadFile(string id, FormDataContent data)
413420
{
414421
throw new NotImplementedException();
415422
}
423+
424+
public GitLabCollectionResponse<ProjectTemplate> GetProjectTemplatesAsync(ProjectId projectId, DynamicEnum<ProjectTemplateType> projectTemplateType)
425+
{
426+
throw new NotImplementedException();
427+
}
416428
}

NGitLab/IProjectClient.cs

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Generic;
22
using System.Threading;
33
using System.Threading.Tasks;
4+
using NGitLab.Impl;
45
using NGitLab.Models;
56

67
namespace NGitLab;
@@ -84,5 +85,9 @@ public interface IProjectClient
8485
/// <returns>All ancestor groups.</returns>
8586
GitLabCollectionResponse<Group> GetGroupsAsync(ProjectId projectId, ProjectGroupsQuery query);
8687

88+
GitLabCollectionResponse<ProjectTemplate> GetProjectTemplatesAsync(ProjectId projectId, DynamicEnum<ProjectTemplateType> projectTemplateType);
89+
90+
Task<ProjectMergeRequestTemplate> GetProjectMergeRequestTemplateAsync(ProjectId projectId, string name, CancellationToken cancellationToken = default);
91+
8792
Dictionary<string, double> GetLanguages(string id);
8893
}

NGitLab/PublicAPI.Unshipped.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,8 @@ NGitLab.IProjectClient.GetForks(string id, NGitLab.Models.ForkedProjectQuery que
10291029
NGitLab.IProjectClient.GetForksAsync(string id, NGitLab.Models.ForkedProjectQuery query) -> NGitLab.GitLabCollectionResponse<NGitLab.Models.Project>
10301030
NGitLab.IProjectClient.GetGroupsAsync(NGitLab.Models.ProjectId projectId, NGitLab.Models.ProjectGroupsQuery query) -> NGitLab.GitLabCollectionResponse<NGitLab.Models.Group>
10311031
NGitLab.IProjectClient.GetLanguages(string id) -> System.Collections.Generic.Dictionary<string, double>
1032+
NGitLab.IProjectClient.GetProjectMergeRequestTemplateAsync(NGitLab.Models.ProjectId projectId, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<NGitLab.Models.ProjectMergeRequestTemplate>
1033+
NGitLab.IProjectClient.GetProjectTemplatesAsync(NGitLab.Models.ProjectId projectId, NGitLab.DynamicEnum<NGitLab.Impl.ProjectTemplateType> projectTemplateType) -> NGitLab.GitLabCollectionResponse<NGitLab.Models.ProjectTemplate>
10321034
NGitLab.IProjectClient.Owned.get -> System.Collections.Generic.IEnumerable<NGitLab.Models.Project>
10331035
NGitLab.IProjectClient.this[long id].get -> NGitLab.Models.Project
10341036
NGitLab.IProjectClient.this[string fullName].get -> NGitLab.Models.Project

0 commit comments

Comments
 (0)