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)); }
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)); }
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)); }