-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
IGitHubAppInstallationsClient.cs
41 lines (37 loc) · 2.16 KB
/
IGitHubAppInstallationsClient.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System.Threading.Tasks;
namespace Octokit
{
/// <summary>
/// A client for GitHub Applications Installations API.
/// </summary>
/// <remarks>
/// See the <a href="http://developer.github.com/v3/apps/installations/">GitHub Apps Installations API documentation</a> for more information.
/// </remarks>
public interface IGitHubAppInstallationsClient
{
/// <summary>
/// List repositories of the authenticated GitHub App Installation (requires GitHubApp Installation-Token auth).
/// </summary>
/// <remarks>https://developer.github.com/v3/apps/installations/#list-repositories</remarks>
Task<RepositoriesResponse> GetAllRepositoriesForCurrent();
/// <summary>
/// List repositories of the authenticated GitHub App Installation (requires GitHubApp Installation-Token auth).
/// </summary>
/// <param name="options">Options for changing the API response</param>
/// <remarks>https://developer.github.com/v3/apps/installations/#list-repositories</remarks>
Task<RepositoriesResponse> GetAllRepositoriesForCurrent(ApiOptions options);
/// <summary>
/// List repositories accessible to the user for an installation (requires GitHubApp User-To-Server Auth).
/// </summary>
/// <param name="installationId">The Id of the installation</param>
/// <remarks>https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation</remarks>
Task<RepositoriesResponse> GetAllRepositoriesForCurrentUser(long installationId);
/// <summary>
/// List repositories accessible to the user for an installation (requires GitHubApp User-To-Server Auth).
/// </summary>
/// <param name="installationId">The Id of the installation</param>
/// <param name="options">Options for changing the API response</param>
/// <remarks>https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation</remarks>
Task<RepositoriesResponse> GetAllRepositoriesForCurrentUser(long installationId, ApiOptions options);
}
}