예제 #1
0
 public static System.Threading.Tasks.Task <SystemHook> AddHookAsync(this Meziantou.GitLab.IGitLabSystemHooksClient client, System.Uri url, string?token = default(string?), bool?pushEvents = default(bool?), bool?tagPushEvents = default(bool?), bool?mergeRequestsEvents = default(bool?), bool?repositoryUpdateEvents = default(bool?), bool?enableSslVerification = default(bool?), Meziantou.GitLab.RequestOptions?requestOptions = default(Meziantou.GitLab.RequestOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     Meziantou.GitLab.AddHookSystemHookRequest request = new Meziantou.GitLab.AddHookSystemHookRequest(url);
     request.Token                  = token;
     request.PushEvents             = pushEvents;
     request.TagPushEvents          = tagPushEvents;
     request.MergeRequestsEvents    = mergeRequestsEvents;
     request.RepositoryUpdateEvents = repositoryUpdateEvents;
     request.EnableSslVerification  = enableSslVerification;
     return(client.AddHookAsync(request, requestOptions, cancellationToken));
 }
예제 #2
0
 public static Meziantou.GitLab.PagedResponse <SystemHook> GetSystemHooks(this Meziantou.GitLab.IGitLabSystemHooksClient client, Meziantou.GitLab.RequestOptions?requestOptions = default(Meziantou.GitLab.RequestOptions))
 {
     Meziantou.GitLab.GetSystemHooksRequest request = new Meziantou.GitLab.GetSystemHooksRequest();
     return(client.GetSystemHooks(request, requestOptions));
 }
예제 #3
0
 public static System.Threading.Tasks.Task DeleteAsync(this Meziantou.GitLab.IGitLabSystemHooksClient client, SystemHookIdRef id, Meziantou.GitLab.RequestOptions?requestOptions = default(Meziantou.GitLab.RequestOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     Meziantou.GitLab.DeleteSystemHookRequest request = new Meziantou.GitLab.DeleteSystemHookRequest(id);
     return(client.DeleteAsync(request, requestOptions, cancellationToken));
 }