-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathIJenkinsClient.cs
More file actions
68 lines (58 loc) · 2.14 KB
/
IJenkinsClient.cs
File metadata and controls
68 lines (58 loc) · 2.14 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using JenkinsNET.Models;
#if NET_ASYNC
using System.Threading;
using System.Threading.Tasks;
#endif
namespace JenkinsNET
{
/// <summary>
/// Methods for interacting with Jenkins API.
/// </summary>
public interface IJenkinsClient
{
/// <summary>
/// Group of methods for interacting with Jenkins Jobs.
/// </summary>
JenkinsClientJobs Jobs {get;}
/// <summary>
/// Group of methods for interacting with Jenkins Builds.
/// </summary>
JenkinsClientBuilds Builds {get;}
/// <summary>
/// Group of methods for interacting with the Jenkins Job-Queue.
/// </summary>
JenkinsClientQueue Queue {get;}
/// <summary>
/// Group of methods for interacting with Jenkins Artifacts.
/// </summary>
JenkinsClientArtifacts Artifacts {get;}
/// <summary>
/// Group of methods for interacting with Jenkins Views.
/// </summary>
JenkinsClientViews Views { get; }
/// <summary>
/// Updates the security Crumb attached to this client.
/// </summary>
/// <exception cref="Exceptions.JenkinsNetException"></exception>
void UpdateSecurityCrumb();
/// <summary>
/// Gets the root description of the Jenkins node.
/// </summary>
/// <exception cref="Exceptions.JenkinsNetException"></exception>
Jenkins Get();
#if NET_ASYNC
/// <summary>
/// Updates the security Crumb attached to this client asynchronously.
/// </summary>
/// <param name="token">An optional token for aborting the request.</param>
/// <exception cref="Exceptions.JenkinsNetException"></exception>
Task UpdateSecurityCrumbAsync(CancellationToken token = default);
/// <summary>
/// Gets the root description of the Jenkins node asynchronously.
/// </summary>
/// <param name="token">An optional token for aborting the request.</param>
/// <exception cref="Exceptions.JenkinsNetException"></exception>
Task<Jenkins> GetAsync(CancellationToken token = default);
#endif
}
}