Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitlab

Package Overview
Dependencies
Maintainers
3
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab - npm Package Compare versions

Comparing version 5.0.0-rc.8 to 5.0.0-rc.9

14

CHANGELOG.md

@@ -15,2 +15,3 @@

* Notes now require a body argument instead of checking the options argument for a body parameter
* Bumped min node version to > v10 LTS

@@ -22,2 +23,6 @@ ## Bug Fixes

* Removed xhr library in favour of ky, and switched request for got for a smaller package size and retry functionality
* Fixing ci lint url (#278)
* Fixing form data (#272)
* Fixing randomstring usage (#271)
* Incorrect http method used to update MR approvers #262

@@ -28,2 +33,4 @@ ## Features

* Added LDAP support to the Groups API
* Added missing method for triggering pipelines (#275)
* Implement jobToken property to allow authentication via CI job token (#269)

@@ -34,2 +41,5 @@ ## Documentation

## Tests
* Fixing integration test for ApplicationSettings (#273)
# [4.3.0](https://github.com/jdalrymple/node-gitlab/compare/4.2.7...4.3.0) (2018-12-12)

@@ -40,3 +50,3 @@

* **services:** add protected tags ([8203830](https://github.com/jdalrymple/node-gitlab/commit/8203830))
* **services:** Add protected tags ([8203830](https://github.com/jdalrymple/node-gitlab/commit/8203830))

@@ -48,3 +58,3 @@ ## [4.2.7](https://github.com/jdalrymple/node-gitlab/compare/4.2.6...4.2.7) (2018-11-26)

* handing the function arguments in the incorrect order ([26235ff](https://github.com/jdalrymple/node-gitlab/commit/26235ff))
* Handing the function arguments in the incorrect order ([26235ff](https://github.com/jdalrymple/node-gitlab/commit/26235ff))

@@ -51,0 +61,0 @@ ## [4.2.6](https://github.com/jdalrymple/node-gitlab/compare/4.2.5...4.2.6) (2018-11-26)

2

dist/index.browser.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("got"),require("humps"),require("query-string"),require("form-data"),require("randomstring")):"function"==typeof define&&define.amd?define(["exports","got","humps","query-string","form-data","randomstring"],e):e((t=t||self)["node-gitlab"]={},t.Request,t.Humps,t.QueryString,t.FormData,t.RandomString)}(this,function(t,e,o,n,r,s){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r,s=s&&s.hasOwnProperty("default")?s.default:s;var p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function i(t,e){function o(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var u=function(){return(u=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function c(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&(o[n[r]]=t[n[r]])}return o}function a(t,e,o,n){return new(o||(o=Promise))(function(r,s){function p(t){try{u(n.next(t))}catch(t){s(t)}}function i(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){t.done?r(t.value):new o(function(e){e(t.value)}).then(p,i)}u((n=n.apply(t,e||[])).next())})}function h(t,e){var o,n,r,s,p={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;p;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return p.label++,{value:s[1],done:!1};case 5:p.label++,n=s[1],s=[0];continue;case 7:s=p.ops.pop(),p.trys.pop();continue;default:if(!(r=(r=p.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){p=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){p.label=s[1];break}if(6===s[0]&&p.label<r[1]){p.label=r[1],r=s;break}if(r&&p.label<r[2]){p.label=r[2],p.ops.push(s);break}r[2]&&p.ops.pop(),p.trys.pop();continue}s=e.call(t,p)}catch(t){s=[6,t],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}}function m(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,r,s=o.call(t),p=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)p.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return p}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function d(t){return function(e){var o=this;Object.entries(t||{}).forEach(function(t){var n=m(t,2),r=n[0],s=n[1];o[r]=new s(e)})}}function f(t,e,o){return/^[A-Z0-9_]+$/.test(t)?t:e(t,o)}function y(t,e,r){var s=r.body,p=r.query,i=r.sudo;return[e,{baseUrl:t.url,headers:u({sudo:i},t.headers),query:p&&n.stringify(o.decamelizeKeys(p),{arrayFormat:"bracket"}),body:s&&o.decamelizeKeys(s,f),rejectUnauthorized:t.rejectUnauthorized,json:!0}]}function I(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r,s,p,i,a,m,d,f,v,R,U;return h(this,function(h){switch(h.label){case 0:return r=n.showPagination,s=n.maxPages,p=n.sudo,i=c(n,["showPagination","maxPages","sudo"]),a=y(t,o,{query:i,sudo:p}),[4,e.get.apply(e,l(a))];case 1:return m=h.sent(),d=m.headers,f=m.body,v={total:d["x-total"],next:d["x-next-page"]||null,current:d["x-page"]||null,previous:d["x-prev-page"]||null,perPage:d["x-per-page"],totalPages:d["x-total-pages"]},R=!s||v.current<s,!i.page&&R&&v.next?[4,I(t,o,u({page:v.next},n))]:[3,3];case 2:return U=h.sent(),[2,l(f,U)];case 3:return[2,(i.page||s)&&r?{data:f,pagination:v}:f]}})})}function v(t,o,n){return void 0===n&&(n={}),e.stream.apply(e,l(y(t,o,{query:n})))}function R(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r,s;return h(this,function(p){switch(p.label){case 0:return r=n.sudo,s=c(n,["sudo"]),[4,e.post.apply(e,l(y(t,o,{body:s,sudo:r})))];case 1:return[2,p.sent().body]}})})}function U(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r;return h(this,function(s){switch(s.label){case 0:return n.sudo,r=c(n,["sudo"]),[4,e.put.apply(e,l(y(t,o,{body:r})))];case 1:return[2,s.sent().body]}})})}function j(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r;return h(this,function(s){switch(s.label){case 0:return n.sudo,r=c(n,["sudo"]),[4,e.delete.apply(e,l(y(t,o,{query:r})))];case 1:return[2,s.sent().body]}})})}var C=function(){return function(t){var o=t.token,n=t.oauthToken,r=t.sudo,s=t.host,p=void 0===s?"https://gitlab.com":s,i=t.url,u=void 0===i?"":i,c=t.version,a=void 0===c?"v4":c,h=t.rejectUnauthorized,m=void 0===h||h,l=t.requester,d=void 0===l?e:l;this.url=[p,"api",a,u].join("/"),this.headers={},this.rejectUnauthorized=m,this.requester=d,n?this.headers.authorization="Bearer "+n:o&&(this.headers["private-token"]=o),r&&(this.headers.Sudo=r)}}(),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"groups",t)},e.prototype.create=function(t){return R(this,"groups",t)},e.prototype.createLDAPLink=function(t,e,o,n,r){return R(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links",u({cn:e,groupAccess:o,provider:n},r))},e.prototype.edit=function(t,e){return U(this,"groups/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return j(this,"groups/"+encodeURIComponent(t),e)},e.prototype.removeLDAPLink=function(t,e,o){void 0===o&&(o={});var n=o.provider,r=c(o,["provider"]);return j(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links/"+(n?n+"/"+e:""+e),r)},e.prototype.search=function(t,e){return I(this,"groups",u({search:t},e))},e.prototype.show=function(t,e){return I(this,"groups/"+encodeURIComponent(t),e)},e.prototype.subgroups=function(t,e){return I(this,"groups/"+encodeURIComponent(t)+"/subgroups",e)},e.prototype.syncLDAP=function(t,e){return R(this,"groups/"+encodeURIComponent(t)+"/ldap_sync",e)},e}(C),b=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t){return I(this,encodeURIComponent(t)+"/access_requests")},e.prototype.request=function(t){return R(this,encodeURIComponent(t)+"/access_requests")},e.prototype.approve=function(t,e,o){var n=o.accessLevel,r=m([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/access_requests/"+r[1]+"/approve",{accessLevel:n})},e.prototype.deny=function(t,e){var o=m([t,e].map(encodeURIComponent),2);return j(this,o[0]+"/access_requests/"+o[1])},e}(C);function _(t,e,o,n,r){var s=m([t,o].map(encodeURIComponent),2),p=[s[0],e,s[1]];return r&&p.push("notes",encodeURIComponent(r)),p.push(encodeURIComponent("award_emoji")),n&&p.push(encodeURIComponent(n)),p.join("/")}var w=function(t){function e(e,o){var n=t.call(this,u({url:"projects"},o))||this;return n.resourceType=e,n}return i(e,t),e.prototype.all=function(t,e,o,n){return I(this,_(t,this.resourceType,e,null,o),n)},e.prototype.award=function(t,e,o,n,r){return R(this,_(t,this.resourceType,e,null,n),u({name:o},r))},e.prototype.remove=function(t,e,o,n,r){return j(this,_(t,this.resourceType,e,o,n),r)},e.prototype.show=function(t,e,o,n,r){return I(this,_(t,this.resourceType,e,o,n),r)},e}(C),P=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.add=function(t,e){return R(this,encodeURIComponent(t)+"/badges",e)},e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/badges",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/badges/"+n[1],o)},e.prototype.preview=function(t,e,o,n){return I(this,encodeURIComponent(t)+"/badges/render",u({linkUrl:e,imageUrl:o},n))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/badges/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/badges/"+n[1],o)},e}(C),q=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/custom_attributes",e)},e.prototype.set=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return U(this,r[0]+"/custom_attributes/"+r[1],u({value:o},n))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/custom_attributes/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/custom_attributes/"+n[1],o)},e}(C),k=function(t){function e(e,o,n){var r=t.call(this,u({url:e},n))||this;return r.resource2Type=o,r}return i(e,t),e.prototype.addNote=function(t,e,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=m([t,e,o,n].map(encodeURIComponent),4),i=p[0],c=p[1],a=p[2],h=p[3];return U(this,i+"/"+this.resource2Type+"/"+c+"/discussions/"+a+"/notes/"+h,u({body:r},s))},e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return I(this,r+"/"+this.resource2Type+"/"+s+"/discussions",o)},e.prototype.create=function(t,e,o,n){if(!o)throw new Error("Missing required content argument");var r=m([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/"+this.resource2Type+"/"+p+"/discussions",u({body:o},n))},e.prototype.editNote=function(t,e,o,n,r){var s=m([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return U(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,{body:r})},e.prototype.removeNote=function(t,e,o,n,r){var s=m([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return j(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,r)},e.prototype.show=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return I(this,s+"/"+this.resource2Type+"/"+p+"/discussions/"+i,n)},e}(C),S=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/boards",e)},e.prototype.create=function(t,e,o){return R(this,encodeURIComponent(t)+"/boards",u({name:e},o))},e.prototype.createList=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/boards/"+r[1]+"/lists",u({labelId:o},n))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/boards/"+n[1],o)},e.prototype.editList=function(t,e,o,n,r){var s=m([t,e,o].map(encodeURIComponent),3);return U(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],u({position:n},r))},e.prototype.lists=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/boards/"+n[1]+"/lists",o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/boards/"+n[1],o)},e.prototype.removeList=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return j(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/boards/"+n[1],o)},e.prototype.showList=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return I(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e}(C),T=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e,o){void 0===e&&(e=!1);var n=[encodeURIComponent(t),"members"];return e&&n.push("all"),I(this,n.join("/"),{options:o})},e.prototype.add=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/members",u({userId:p,accessLevel:o},n))},e.prototype.edit=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return U(this,r[0]+"/members/"+r[1],u({accessLevel:o},n))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/members/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/members/"+n[1],o)},e}(C),G=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/milestones",e)},e.prototype.create=function(t,e,o){return R(this,encodeURIComponent(t)+"/milestones",u({title:e},o))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/milestones/"+n[1],o)},e.prototype.issues=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1]+"/issues",o)},e.prototype.mergeRequests=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1]+"/merge_requests",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1],o)},e}(C),A=function(t){function e(e,o,n){var r=t.call(this,u({url:e},n))||this;return r.resource2Type=o,r}return i(e,t),e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return I(this,r+"/"+this.resource2Type+"/"+s+"/notes",o)},e.prototype.create=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/"+this.resource2Type+"/"+p+"/notes",u({body:o},n))},e.prototype.edit=function(t,e,o,n,r){var s=m([t,e,o].map(encodeURIComponent),3),p=s[0],i=s[1],c=s[2];return U(this,p+"/"+this.resource2Type+"/"+i+"/notes/"+c,u({body:n},r))},e.prototype.remove=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return j(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e.prototype.show=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return I(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e}(C),E=function(t){function e(e,o){return t.call(this,u({url:["templates",e].join("/")},o))||this}return i(e,t),e.prototype.all=function(t){return I(this,"",t)},e.prototype.show=function(t,e){return R(this,""+encodeURIComponent(t),e)},e}(C),M=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/variables",e)},e.prototype.create=function(t,e){return R(this,encodeURIComponent(t)+"/variables",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/variables/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/variables/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/variables/"+n[1],o)},e}(C),x=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(b),D=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(P),B=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(q),L=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(S),N=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(T),O=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(G),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"groups/"+encodeURIComponent(t)+"/projects",e)},e.prototype.add=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"groups/"+n[0]+"/projects/"+n[1],o)},e}(C),F=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(M),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"groups/"+encodeURIComponent(t)+"/epics",e)},e.prototype.create=function(t,e,o){return R(this,"groups/"+encodeURIComponent(t)+"/epics",u({title:e},o))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"groups/"+n[0]+"/epics/"+n[1],o)},e}(C),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"groups/"+n[0]+"/epics/"+n[1]+"/issues",o)},e.prototype.assign=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return U(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.edit=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return j(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return j(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e}(C),H=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return i(e,t),e}(A),J=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return i(e,t),e}(k),W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"users",t)},e.prototype.activities=function(t){return I(this,"users/activities",t)},e.prototype.projects=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/projects",e)},e.prototype.block=function(t,e){return R(this,"users/"+encodeURIComponent(t)+"/block",e)},e.prototype.create=function(t){return R(this,"users",t)},e.prototype.current=function(t){return I(this,"user",t)},e.prototype.edit=function(t,e){return U(this,"users/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/events",e)},e.prototype.session=function(t,e,o){return R(this,"session",u({email:t,password:e},o))},e.prototype.search=function(t,e){return I(this,"users",u({search:t},e))},e.prototype.show=function(t,e){return I(this,"users/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return j(this,"users/"+encodeURIComponent(t),e)},e.prototype.unblock=function(t,e){return R(this,"users/"+encodeURIComponent(t)+"/unblock",e)},e}(C),Y=function(t){function e(e){return t.call(this,"users",e)||this}return i(e,t),e}(q),Q=function(t){return t?"users/"+encodeURIComponent(t)+"/emails":"user/emails"},Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=c(t,["userId"]);return I(this,Q(e),o)},e.prototype.add=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]);return R(this,Q(o),u({email:t},n))},e.prototype.show=function(t,e){return I(this,"user/emails/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return j(this,Q(o)+"/"+r,n)},e}(C),$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",e)},e.prototype.add=function(t,e,o,n,r){return R(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",u({name:e,expiresAt:n,scopes:o},r))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e.prototype.revoke=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e}(C),X=function(t){return t?"users/"+encodeURIComponent(t)+"/keys":"user/keys"},tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=c(t,["userId"]);return I(this,X(e),o)},e.prototype.create=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=c(o,["userId"]);return R(this,X(n),u({title:t,key:e},r))},e.prototype.show=function(t,e){return I(this,"user/keys/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return j(this,X(o)+"/"+r,n)},e}(C),et=function(t){return t?"users/"+encodeURIComponent(t)+"/gpg_keys":"users/gpg_keys"},ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=c(t,["userId"]);return I(this,et(e),o)},e.prototype.add=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=c(o,["userId"]);return R(this,et(n),u({title:t,key:e},r))},e.prototype.show=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return I(this,et(o)+"/"+r,n)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return j(this,et(o)+"/"+r,n)},e}(C),nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/branches",e)},e.prototype.create=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/repository/branches",u({branch:e,ref:o},n))},e.prototype.protect=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/protected_branches",u({name:e},o))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},e}(C),rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits",e)},e.prototype.cherryPick=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/cherry_pick",u({branch:o},n))},e.prototype.comments=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",o)},e.prototype.create=function(t,e,o,n,r){return void 0===n&&(n=[]),R(this,"projects/"+encodeURIComponent(t)+"/repository/commits",u({branch:e,commitMessage:o,actions:n},r))},e.prototype.createComment=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",u({note:o},n))},e.prototype.diff=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/diff",o)},e.prototype.editStatus=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,o)},e.prototype.references=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/refs",o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e,o)},e.prototype.status=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/statuses",o)},e.prototype.mergeRequests=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/merge_requests")},e}(C),st=function(t){function e(e){return t.call(this,"projects","commits",e)||this}return i(e,t),e}(k),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/deployments",e)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/deployments/"+n[1],o)},e}(C),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.add=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/deploy_keys/"+n[1],o)},e.prototype.enable=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},e}(C),ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.stop=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},e}(C),ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addSpentTime=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",u({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",u({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=c(t,["projectId"]);return I(this,e?"projects/"+encodeURIComponent(e)+"/issues":"issues",o)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/issues",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.link=function(t,e,o,n,r){var s=m([t,e].map(encodeURIComponent),2),p=s[0],i=s[1],c=m([o,n].map(encodeURIComponent),2),a=c[0],h=c[1];return R(this,"projects/"+p+"/issues/"+i+"/links",u({targetProjectId:a,targetIssueId:h},r))},e.prototype.participants=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1]+"/participants",o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.subscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.timeStats=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1]+"/time_stats",o)},e.prototype.unsubscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(C),at=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return i(e,t),e}(A),ht=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return i(e,t),e}(k),mt=function(t){function e(e){return t.call(this,"issues",e)||this}return i(e,t),e}(w),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.cancel=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/cancel",o)},e.prototype.downloadSingleArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=c(n,["stream"]),i=m([t,e].map(encodeURIComponent),2),u=i[0],a=i[1];return s?v(this,"projects/"+u+"/jobs/"+a+"/artifacts/"+o,p):I(this,"projects/"+u+"/jobs/"+a+"/artifacts/"+o,p)},e.prototype.downloadLatestArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=c(n,["stream"]),i=m([t,e,o].map(encodeURIComponent),3),u=i[0],a=i[1],h=i[2];return s?v(this,"projects/"+u+"/jobs/artifacts/"+a+"/download?job="+h,p):I(this,"projects/"+u+"/jobs/artifacts/"+a+"/download?job="+h,p)},e.prototype.downloadTraceFile=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1]+"/trace",o)},e.prototype.erase=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},e.prototype.keepArtifacts=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts/keep",o)},e.prototype.play=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/play",o)},e.prototype.retry=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/retry",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1],o)},e.prototype.showPipelineJobs=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},e}(C),dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.edit=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/labels",u({name:e},o))},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/labels",u({name:e},o))},e.prototype.subscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.unsubscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(C),ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.accept=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/merge",o)},e.prototype.addSpentTime=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",u({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",u({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=c(t,["projectId","groupId"]);return I(this,e?"projects/"+encodeURIComponent(e)+"/merge_requests":o?"groups/"+encodeURIComponent(o)+"/merge_requests":"merge_requests",n)},e.prototype.approve=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.approvals=function(t,e){var o=e.mergerequestIId,n=c(e,["mergerequestIId"]),r=m([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return I(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.approvers=function(t,e,o,n){var r=n.mergerequestIId,s=c(n,["mergerequestIId"]),p=m([t,r].map(encodeURIComponent),2),i=p[0],a=p[1];return R(this,r?"projects/"+i+"/merge_requests/"+a+"/approvals":"projects/"+i+"/approvals",u({approverIds:e,approverGroupIds:o},s))},e.prototype.cancelOnPipelineSucess=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/cancel_merge_when_pipeline_succeeds",o)},e.prototype.changes=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/changes",o)},e.prototype.closesIssues=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/closes_issues",o)},e.prototype.commits=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/commits",o)},e.prototype.create=function(t,e,o,n,r){var s=encodeURIComponent(t);return R(this,"projects/"+s+"/merge_requests",u({id:s,sourceBranch:e,targetBranch:o,title:n},r))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.editApprovals=function(t,e){var o=e.mergerequestIId,n=c(e,["mergerequestIId"]),r=m([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.pipelines=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/pipelines",o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.timeStats=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/time_stats",o)},e.prototype.version=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return I(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/versions/"+r[2],n)},e.prototype.versions=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/versions",o)},e.prototype.unapprove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.unsubscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},e}(C),yt=function(t){function e(e){return t.call(this,"merge_requests",e)||this}return i(e,t),e}(w),It=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return i(e,t),e}(k),vt=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return i(e,t),e}(A),Rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines",e)},e.prototype.create=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pipeline",u({ref:e},o))},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e,o)},e.prototype.retry=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/retry",o)},e.prototype.cancel=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/cancel",o)},e.prototype.showJobs=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/jobs",o)},e}(C),Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",e)},e.prototype.create=function(t,e,o,n,r){return R(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",u({description:e,ref:o,cron:n},r))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.takeOwnership=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},e}(C),jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.create=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.edit=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return U(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.show=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return I(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return j(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e}(C),Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"projects",t)},e.prototype.archive=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/archive",e)},e.prototype.create=function(t){var e=t.userId,o=c(t,["userId"]);return R(this,e?"projects/user/"+encodeURIComponent(e):"projects",o)},e.prototype.edit=function(t,e){return U(this,"projects/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/events",e)},e.prototype.fork=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/fork",e)},e.prototype.forks=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/forks",e)},e.prototype.languages=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/languages",e)},e.prototype.mirrorPull=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/mirror/pull",e)},e.prototype.remove=function(t,e){return j(this,"projects/"+encodeURIComponent(t),e)},e.prototype.search=function(t){return I(this,"projects",{search:t})},e.prototype.share=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/share",u({groupId:e,groupAccess:o},n))},e.prototype.show=function(t,e){return I(this,"projects/"+encodeURIComponent(t),e)},e.prototype.star=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/star",e)},e.prototype.statuses=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,u({state:o},n))},e.prototype.transfer=function(t,e){return U(this,"projects/"+encodeURIComponent(t)+"/transfer",{namespace:e})},e.prototype.unarchive=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/unarchive",e)},e.prototype.unshare=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/share"+n[1],o)},e.prototype.unstar=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/unstar",e)},e.prototype.updatePushRule=function(t,e){return U(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.upload=function(t,e,o){var n=o.fileName,p=void 0===n?s(8):n,i=encodeURIComponent(t),u=new r;return u.append(p,{file:{value:e,options:{filename:p,contentType:"application/octet-stream"}}}),R(this,"projects/"+i+"/uploads",u)},e}(C),gt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(b),bt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(P),_t=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(q),wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.download=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/export/download",e)},e.prototype.exportStatus=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/export",e)},e.prototype.import=function(t,e,o){var n=new r;return n.append(e,{file:{value:t,options:{filename:e,contentType:"application/octet-stream"}}}),R(this,"projects/import",u({},n,o))},e.prototype.importStatus=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/import",e)},e.prototype.schedule=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/export",e)},e}(C),Pt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(S),qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/hooks",e)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e.prototype.add=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/hooks",u({url:e},o))},e.prototype.edit=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/hooks/"+r[1],u({url:o},n))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e}(C),kt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(T),St=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(G),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/snippets",e)},e.prototype.content=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1]+"/raw",o)},e.prototype.create=function(t,e,o,n,r,s){return R(this,"projects/"+encodeURIComponent(t)+"/snippets",u({title:e,fileName:o,code:n,visibility:r},s))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.userAgentDetails=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},e}(C),Gt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return i(e,t),e}(A),At=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return i(e,t),e}(k),Et=function(t){function e(e){return t.call(this,"issues",e)||this}return i(e,t),e}(w),Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/protected_branches",e)},e.prototype.protect=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/protected_branches",u({name:e},o))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e}(C),xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/protected_tags",e)},e.prototype.protect=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/protected_tags",u({name:e},o))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e}(C),Dt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(M),Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.compare=function(t,e,o,n){return I(this,"projects/"+encodeURIComponent(t)+"/repository/compare",u({from:e,to:o},n))},e.prototype.contributors=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/contributors",e)},e.prototype.showArchive=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/archive",e)},e.prototype.showBlob=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e,o)},e.prototype.showBlobRaw=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e+"/raw",o)},e.prototype.tree=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/tree",e)},e}(C),Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t,e,o,n,r){var s=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+s[0]+"/repository/files/"+s[1],u({branch:o,content:n},r))},e.prototype.edit=function(t,e,o,n,r){var s=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+s[0]+"/repository/files/"+s[1],u({branch:o,content:n},r))},e.prototype.remove=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+r[0]+"/repository/files/"+r[1],u({branch:o},n))},e.prototype.show=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/repository/files/"+r[1],u({ref:o},n))},e.prototype.showRaw=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",u({ref:o},n))},e}(C),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){var e=t.projectId,o=c(t,["projectId"]);return I(this,e?"projects/"+encodeURIComponent(e)+"/runners":"runners/all",o)},e.prototype.allOwned=function(t){return I(this,"runners",t)},e.prototype.edit=function(t,e){return U(this,"runners/"+encodeURIComponent(t),e)},e.prototype.enable=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return R(this,"projects/"+r+"/runners",u({runnerId:s},o))},e.prototype.disable=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/runners/"+n[1],o)},e.prototype.jobs=function(t,e){return I(this,"runners/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.remove=function(t,e){return j(this,"runners/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return I(this,"runners/"+encodeURIComponent(t),e)},e}(C),Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.edit=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e}(C),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e}(C),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"todos",t)},e.prototype.create=function(t,e,o){return R(this,"projects/"+t+"/merge_requests/"+e+"/todo",o)},e.prototype.done=function(t){var e=t.todoId,o="mark_as_done";return e&&(o=e+"/"+o),j(this,"todos/"+o,c(t,["todoId"]))},e}(C),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.add=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e}(C),zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.edit=function(t,e){e.upsert;var o=c(e,["upsert"]),n=encodeURIComponent(t);try{return U(this,"projects/"+n+"/push_rule",o)}catch(e){if(e.message.includes("exist"))return this.create(t,o);throw e}},e.prototype.remove=function(t,e){return j(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.show=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e}(C),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"application/settings",t)},e.prototype.edit=function(t){return U(this,"application/settings",t)},e}(C),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"broadcast_messages",t)},e.prototype.create=function(t){return R(this,"broadcast_messages",t)},e.prototype.edit=function(t,e){return U(this,"broadcast_messages/"+encodeURIComponent(t),e)},e.prototype.remove=function(t){return j(this,"broadcast_messages/"+encodeURIComponent(t))},e.prototype.show=function(t,e){return I(this,"broadcast_messages/"+encodeURIComponent(t),e)},e}(C),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"events",t)},e}(C),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"features",t)},e.prototype.set=function(t,e){return R(this,"features/"+encodeURIComponent(t),e)},e}(C),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"geo_nodes",t)},e.prototype.create=function(t,e){return R(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.edit=function(t,e){return U(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.failures=function(t){return R(this,"geo_nodes/current/failures",t)},e.prototype.repair=function(t,e){return j(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return I(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.status=function(t,e){return I(this,"geo_nodes/"+encodeURIComponent(t)+"/status",e)},e.prototype.statuses=function(t){return I(this,"geo_nodes/statuses",t)},e}(C),Zt=function(t){function e(e){return t.call(this,"gitignores",e)||this}return i(e,t),e}(E),$t=function(t){function e(e){return t.call(this,"gitlab_ci_ymls",e)||this}return i(e,t),e}(E),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.show=function(t,e){return I(this,"keys/"+encodeURIComponent(t),e)},e}(C),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"licence",t)},e.prototype.create=function(t){return R(this,"licence",t)},e}(C),ee=function(t){function e(e){return t.call(this,"licences",e)||this}return i(e,t),e}(E),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.lint=function(t,e){return R(this,"lint",u({content:t},e))},e}(C),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"namespaces",t)},e.prototype.show=function(t,e){return I(this,"namespaces/"+encodeURIComponent(t),e)},e}(C),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=t.groupId,n=c(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),I(this,r+"notification_settings",n)},e.prototype.edit=function(t){void 0===t&&(t={});var e=t.projectId,o=t.groupId,n=c(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),U(this,r+"notification_settings",n)},e}(C),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(t,e){return R(this,"markdown",u({text:t},e))},e}(C),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=c(t,["projectId"]);return I(this,(e?"projects/"+encodeURIComponent(e)+"/":"")+"pages/domains",o)},e.prototype.create=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pages/domains",u({domain:e},o))},e.prototype.edit=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e}(C),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e,o){var n=o.projectId,r=o.groupId,s=c(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),I(this,p+"search",u({scope:t,search:e},s))},e}(C),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.queueMetrics=function(){return I(this,"sidekiq/queue_metrics")},e.prototype.processMetrics=function(){return I(this,"sidekiq/process_metrics")},e.prototype.jobStats=function(){return I(this,"sidekiq/job_stats")},e.prototype.compoundMetrics=function(){return I(this,"sidekiq/compound_metrics")},e}(C),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,t.public?"snippets/public":"snippets",c(t,["public"]))},e.prototype.content=function(t,e){return I(this,"snippets/"+encodeURIComponent(t)+"/raw",e)},e.prototype.create=function(t,e,o,n,r){return R(this,"snippets",u({title:t,fileName:e,content:o,visibility:n},r))},e.prototype.edit=function(t,e){return U(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return j(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return I(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.userAgentDetails=function(t,e){return I(this,"snippets/"+encodeURIComponent(t)+"/user_agent_detail",e)},e}(C),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.add=function(t,e){return R(this,"hooks",u({url:t},e))},e.prototype.all=function(t){return I(this,"hooks",t)},e.prototype.edit=function(t,e,o){return U(this,"hooks/"+encodeURIComponent(t),u({url:e},o))},e.prototype.remove=function(t,e){return j(this,"hooks/"+encodeURIComponent(t),e)},e}(C),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.show=function(t){return I(this,"version",t)},e}(C),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.edit=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e}(C),le=Object.freeze({Groups:g,GroupAccessRequests:x,GroupBadges:D,GroupCustomAttributes:B,GroupIssueBoards:L,GroupMembers:N,GroupMilestones:O,GroupProjects:K,GroupVariables:F,Epics:V,EpicIssues:z,EpicNotes:H,EpicDiscussions:J,Users:W,UserCustomAttributes:Y,UserEmails:Z,UserImpersonationTokens:$,UserKeys:tt,UserGPGKeys:ot,Branches:nt,Commits:rt,CommitDiscussions:st,Deployments:pt,DeployKeys:it,Environments:ut,Issues:ct,IssueNotes:at,IssueDiscussions:ht,IssueAwardEmojis:mt,Jobs:lt,Labels:dt,MergeRequests:ft,MergeRequestAwardEmojis:yt,MergeRequestDiscussions:It,MergeRequestNotes:vt,Pipelines:Rt,PipelineSchedules:Ut,PipelineScheduleVariables:jt,Projects:Ct,ProjectAccessRequests:gt,ProjectBadges:bt,ProjectCustomAttributes:_t,ProjectImportExport:wt,ProjectIssueBoards:Pt,ProjectHooks:qt,ProjectMembers:kt,ProjectMilestones:St,ProjectSnippets:Tt,ProjectSnippetNotes:Gt,ProjectSnippetDiscussions:At,ProjectSnippetAwardEmojis:Et,ProtectedBranches:Mt,ProtectedTags:xt,ProjectVariables:Dt,Repositories:Bt,RepositoryFiles:Lt,Runners:Nt,Services:Ot,Tags:Kt,Todos:Ft,Triggers:Vt,PushRule:zt,ApplicationSettings:Ht,BroadcastMessages:Jt,Events:Wt,FeatureFlags:Yt,GeoNodes:Qt,GitignoreTemplates:Zt,GitLabCIYMLTemplates:$t,Keys:Xt,Licence:te,LicenceTemplates:ee,Lint:oe,Namespaces:ne,NotificationSettings:re,Markdown:se,PagesDomains:pe,Search:ie,SidekiqMetrics:ue,Snippets:ce,SystemHooks:ae,Version:he,Wikis:me}),de=d({Groups:g,GroupAccessRequests:x,GroupBadges:D,GroupCustomAttributes:B,GroupIssueBoards:L,GroupMembers:N,GroupMilestones:O,GroupProjects:K,GroupVariables:F,Epics:V,EpicIssues:z,EpicNotes:H,EpicDiscussions:J}),fe=d({Users:W,UserCustomAttributes:Y,UserEmails:Z,UserImpersonationTokens:$,UserKeys:tt,UserGPGKeys:ot}),ye=d({Branches:nt,Commits:rt,CommitDiscussions:st,DeployKeys:it,Deployments:pt,Environments:ut,Issues:ct,IssueAwardEmojis:mt,IssueNotes:at,IssueDiscussions:ht,Jobs:lt,Labels:dt,MergeRequests:ft,MergeRequestAwardEmojis:yt,MergeRequestDiscussions:It,MergeRequestNotes:vt,Pipelines:Rt,PipelineSchedules:Ut,PipelineScheduleVariables:jt,Projects:Ct,ProjectAccessRequests:gt,ProjectBadges:bt,ProjectCustomAttributes:_t,ProjectImportExport:wt,ProjectIssueBoards:Pt,ProjectHooks:qt,ProjectMembers:kt,ProjectMilestones:St,ProjectSnippets:Tt,ProjectSnippetNotes:Gt,ProjectSnippetDiscussions:At,ProjectSnippetAwardEmojis:Et,ProtectedBranches:Mt,ProtectedTags:xt,ProjectVariables:Dt,Repositories:Bt,RepositoryFiles:Lt,Runners:Nt,Services:Ot,Tags:Kt,Triggers:Vt}),Ie=d(le);t.GroupsBundle=de,t.UsersBundle=fe,t.ProjectsBundle=ye,t.Gitlab=Ie,t.Groups=g,t.GroupAccessRequests=x,t.GroupBadges=D,t.GroupCustomAttributes=B,t.GroupIssueBoards=L,t.GroupMembers=N,t.GroupMilestones=O,t.GroupProjects=K,t.GroupVariables=F,t.Epics=V,t.EpicIssues=z,t.EpicNotes=H,t.EpicDiscussions=J,t.Users=W,t.UserCustomAttributes=Y,t.UserEmails=Z,t.UserImpersonationTokens=$,t.UserKeys=tt,t.UserGPGKeys=ot,t.Branches=nt,t.Commits=rt,t.CommitDiscussions=st,t.Deployments=pt,t.DeployKeys=it,t.Environments=ut,t.Issues=ct,t.IssueNotes=at,t.IssueDiscussions=ht,t.IssueAwardEmojis=mt,t.Jobs=lt,t.Labels=dt,t.MergeRequests=ft,t.MergeRequestAwardEmojis=yt,t.MergeRequestDiscussions=It,t.MergeRequestNotes=vt,t.Pipelines=Rt,t.PipelineSchedules=Ut,t.PipelineScheduleVariables=jt,t.Projects=Ct,t.ProjectAccessRequests=gt,t.ProjectBadges=bt,t.ProjectCustomAttributes=_t,t.ProjectImportExport=wt,t.ProjectIssueBoards=Pt,t.ProjectHooks=qt,t.ProjectMembers=kt,t.ProjectMilestones=St,t.ProjectSnippets=Tt,t.ProjectSnippetNotes=Gt,t.ProjectSnippetDiscussions=At,t.ProjectSnippetAwardEmojis=Et,t.ProtectedBranches=Mt,t.ProtectedTags=xt,t.ProjectVariables=Dt,t.Repositories=Bt,t.RepositoryFiles=Lt,t.Runners=Nt,t.Services=Ot,t.Tags=Kt,t.Todos=Ft,t.Triggers=Vt,t.PushRule=zt,t.ApplicationSettings=Ht,t.BroadcastMessages=Jt,t.Events=Wt,t.FeatureFlags=Yt,t.GeoNodes=Qt,t.GitignoreTemplates=Zt,t.GitLabCIYMLTemplates=$t,t.Keys=Xt,t.Licence=te,t.LicenceTemplates=ee,t.Lint=oe,t.Namespaces=ne,t.NotificationSettings=re,t.Markdown=se,t.PagesDomains=pe,t.Search=ie,t.SidekiqMetrics=ue,t.Snippets=ce,t.SystemHooks=ae,t.Version=he,t.Wikis=me,Object.defineProperty(t,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("humps"),require("query-string"),require("got"),require("form-data"),require("randomstring")):"function"==typeof define&&define.amd?define(["exports","humps","query-string","got","form-data","randomstring"],t):t((e=e||self)["node-gitlab"]={},e.Humps,e.QueryString,e.Request,e.FormData,e.RandomString)}(this,function(e,t,o,n,r,s){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n,r=r&&r.hasOwnProperty("default")?r.default:r,s=s&&s.hasOwnProperty("default")?s.default:s;var p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function i(e,t){function o(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var u=function(){return(u=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function c(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o}function a(e,t,o,n){return new(o||(o=Promise))(function(r,s){function p(e){try{u(n.next(e))}catch(e){s(e)}}function i(e){try{u(n.throw(e))}catch(e){s(e)}}function u(e){e.done?r(e.value):new o(function(t){t(e.value)}).then(p,i)}u((n=n.apply(e,t||[])).next())})}function h(e,t){var o,n,r,s,p={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;p;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return p.label++,{value:s[1],done:!1};case 5:p.label++,n=s[1],s=[0];continue;case 7:s=p.ops.pop(),p.trys.pop();continue;default:if(!(r=(r=p.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){p=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){p.label=s[1];break}if(6===s[0]&&p.label<r[1]){p.label=r[1],r=s;break}if(r&&p.label<r[2]){p.label=r[2],p.ops.push(s);break}r[2]&&p.ops.pop(),p.trys.pop();continue}s=t.call(e,p)}catch(e){s=[6,e],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}}function m(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,s=o.call(e),p=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)p.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return p}function d(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function l(e){return function(t){var o=this;Object.entries(e||{}).forEach(function(e){var n=m(e,2),r=n[0],s=n[1];o[r]=new s(t)})}}function f(e,t,o){return/^[A-Z0-9_]+$/.test(e)?e:t(e,o)}function y(e,n,r){var s=r.body,p=r.query,i=r.sudo;return[n,{baseUrl:e.url,headers:u({sudo:i},e.headers),query:p&&o.stringify(t.decamelizeKeys(p),{arrayFormat:"bracket"}),body:s&&t.decamelizeKeys(s,f),rejectUnauthorized:e.rejectUnauthorized,json:!0}]}function I(e,t,o,n){return void 0===o&&(o={}),void 0===n&&(n=!1),a(this,void 0,void 0,function(){var r,s,p,i,a,m,l,f,v,R,U,j;return h(this,function(h){switch(h.label){case 0:return s=o.showPagination,p=o.maxPages,i=o.sudo,a=c(o,["showPagination","maxPages","sudo"]),m=y(e,t,{query:a,sudo:i}),[4,(r=e.requester).get.apply(r,d(m))];case 1:return l=h.sent(),f=l.headers,v=l.body,R={total:f["x-total"],next:f["x-next-page"]||null,current:f["x-page"]||null,previous:f["x-prev-page"]||null,perPage:f["x-per-page"],totalPages:f["x-total-pages"]},U=!p||R.current<p,!n&&a.page||!U||!R.next?[3,3]:[4,I(e,t,u({},o,{page:R.next}),!0)];case 2:return j=h.sent(),[2,d(v,j)];case 3:return[2,(a.page||U)&&s?{data:v,pagination:R}:v]}})})}function v(e,t,o){return void 0===o&&(o={}),a(this,void 0,void 0,function(){return h(this,function(n){return[2,I(e,t,o)]})})}function R(e,t,o){var n;return void 0===o&&(o={}),(n=e.requester).stream.apply(n,d(y(e,t,{query:o})))}function U(e,t,o){return void 0===o&&(o={}),a(this,void 0,void 0,function(){var n,r,s;return h(this,function(p){switch(p.label){case 0:return r=o.sudo,s=c(o,["sudo"]),[4,(n=e.requester).post.apply(n,d(y(e,t,{body:s,sudo:r})))];case 1:return[2,p.sent().body]}})})}function j(e,t,o){return a(this,void 0,void 0,function(){var n,r;return h(this,function(s){switch(s.label){case 0:return n={baseUrl:e.url,headers:e.headers,body:o,rejectUnauthorized:e.rejectUnauthorized},[4,e.requester.post(t,n)];case 1:r=s.sent();try{return[2,JSON.parse(r.body)]}catch(e){return[2,{}]}return[2]}})})}function C(e,t,o){return void 0===o&&(o={}),a(this,void 0,void 0,function(){var n,r;return h(this,function(s){switch(s.label){case 0:return o.sudo,r=c(o,["sudo"]),[4,(n=e.requester).put.apply(n,d(y(e,t,{body:r})))];case 1:return[2,s.sent().body]}})})}function g(e,t,o){return void 0===o&&(o={}),a(this,void 0,void 0,function(){var n,r;return h(this,function(s){switch(s.label){case 0:return o.sudo,r=c(o,["sudo"]),[4,(n=e.requester).delete.apply(n,d(y(e,t,{query:r})))];case 1:return[2,s.sent().body]}})})}var b=function(){return function(e){var t=e.token,o=e.jobToken,r=e.oauthToken,s=e.sudo,p=e.host,i=void 0===p?"https://gitlab.com":p,u=e.url,c=void 0===u?"":u,a=e.version,h=void 0===a?"v4":a,m=e.rejectUnauthorized,d=void 0===m||m,l=e.requester,f=void 0===l?n:l;this.url=[i,"api",h,c].join("/"),this.headers={},this.rejectUnauthorized=d,this.requester=f,r?this.headers.authorization="Bearer "+r:o?this.headers["job-token"]=o:t&&(this.headers["private-token"]=t),s&&(this.headers.Sudo=s)}}(),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"groups",e)},t.prototype.create=function(e){return U(this,"groups",e)},t.prototype.createLDAPLink=function(e,t,o,n,r){return U(this,"groups/"+encodeURIComponent(e)+"/ldap_group_links",u({cn:t,groupAccess:o,provider:n},r))},t.prototype.edit=function(e,t){return C(this,"groups/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){return g(this,"groups/"+encodeURIComponent(e),t)},t.prototype.removeLDAPLink=function(e,t,o){void 0===o&&(o={});var n=o.provider,r=c(o,["provider"]);return g(this,"groups/"+encodeURIComponent(e)+"/ldap_group_links/"+(n?n+"/"+t:""+t),r)},t.prototype.search=function(e,t){return v(this,"groups",u({search:e},t))},t.prototype.show=function(e,t){return v(this,"groups/"+encodeURIComponent(e),t)},t.prototype.subgroups=function(e,t){return v(this,"groups/"+encodeURIComponent(e)+"/subgroups",t)},t.prototype.syncLDAP=function(e,t){return U(this,"groups/"+encodeURIComponent(e)+"/ldap_sync",t)},t}(b),w=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e){return v(this,encodeURIComponent(e)+"/access_requests")},t.prototype.request=function(e){return U(this,encodeURIComponent(e)+"/access_requests")},t.prototype.approve=function(e,t,o){var n=o.accessLevel,r=m([e,t].map(encodeURIComponent),2);return U(this,r[0]+"/access_requests/"+r[1]+"/approve",{accessLevel:n})},t.prototype.deny=function(e,t){var o=m([e,t].map(encodeURIComponent),2);return g(this,o[0]+"/access_requests/"+o[1])},t}(b);function q(e,t,o,n,r){var s=m([e,o].map(encodeURIComponent),2),p=[s[0],t,s[1]];return r&&p.push("notes",encodeURIComponent(r)),p.push(encodeURIComponent("award_emoji")),n&&p.push(encodeURIComponent(n)),p.join("/")}var P=function(e){function t(t,o){var n=e.call(this,u({url:"projects"},o))||this;return n.resourceType=t,n}return i(t,e),t.prototype.all=function(e,t,o,n){return v(this,q(e,this.resourceType,t,null,o),n)},t.prototype.award=function(e,t,o,n,r){return U(this,q(e,this.resourceType,t,null,n),u({name:o},r))},t.prototype.remove=function(e,t,o,n,r){return g(this,q(e,this.resourceType,t,o,n),r)},t.prototype.show=function(e,t,o,n,r){return v(this,q(e,this.resourceType,t,o,n),r)},t}(b),k=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.add=function(e,t){return U(this,encodeURIComponent(e)+"/badges",t)},t.prototype.all=function(e,t){return v(this,encodeURIComponent(e)+"/badges",t)},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,n[0]+"/badges/"+n[1],o)},t.prototype.preview=function(e,t,o,n){return v(this,encodeURIComponent(e)+"/badges/render",u({linkUrl:t,imageUrl:o},n))},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,n[0]+"/badges/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/badges/"+n[1],o)},t}(b),S=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e,t){return v(this,encodeURIComponent(e)+"/custom_attributes",t)},t.prototype.set=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return C(this,r[0]+"/custom_attributes/"+r[1],u({value:o},n))},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,n[0]+"/custom_attributes/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/custom_attributes/"+n[1],o)},t}(b),T=function(e){function t(t,o,n){var r=e.call(this,u({url:t},n))||this;return r.resource2Type=o,r}return i(t,e),t.prototype.addNote=function(e,t,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=m([e,t,o,n].map(encodeURIComponent),4),i=p[0],c=p[1],a=p[2],h=p[3];return C(this,i+"/"+this.resource2Type+"/"+c+"/discussions/"+a+"/notes/"+h,u({body:r},s))},t.prototype.all=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2),r=n[0],s=n[1];return v(this,r+"/"+this.resource2Type+"/"+s+"/discussions",o)},t.prototype.create=function(e,t,o,n){if(!o)throw new Error("Missing required content argument");var r=m([e,t].map(encodeURIComponent),2),s=r[0],p=r[1];return U(this,s+"/"+this.resource2Type+"/"+p+"/discussions",u({body:o},n))},t.prototype.editNote=function(e,t,o,n,r){var s=m([e,t,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return C(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,{body:r})},t.prototype.removeNote=function(e,t,o,n,r){var s=m([e,t,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return g(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,r)},t.prototype.show=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return v(this,s+"/"+this.resource2Type+"/"+p+"/discussions/"+i,n)},t}(b),G=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e,t){return v(this,encodeURIComponent(e)+"/boards",t)},t.prototype.create=function(e,t,o){return U(this,encodeURIComponent(e)+"/boards",u({name:t},o))},t.prototype.createList=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return U(this,r[0]+"/boards/"+r[1]+"/lists",u({labelId:o},n))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,n[0]+"/boards/"+n[1],o)},t.prototype.editList=function(e,t,o,n,r){var s=m([e,t,o].map(encodeURIComponent),3);return C(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],u({position:n},r))},t.prototype.lists=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/boards/"+n[1]+"/lists",o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,n[0]+"/boards/"+n[1],o)},t.prototype.removeList=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return g(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/boards/"+n[1],o)},t.prototype.showList=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return v(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},t}(b),E=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e,t,o){void 0===t&&(t=!1);var n=[encodeURIComponent(e),"members"];return t&&n.push("all"),v(this,n.join("/"),{options:o})},t.prototype.add=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2),s=r[0],p=r[1];return U(this,s+"/members",u({userId:p,accessLevel:o},n))},t.prototype.edit=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return C(this,r[0]+"/members/"+r[1],u({accessLevel:o},n))},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/members/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,n[0]+"/members/"+n[1],o)},t}(b),A=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e,t){return v(this,encodeURIComponent(e)+"/milestones",t)},t.prototype.create=function(e,t,o){return U(this,encodeURIComponent(e)+"/milestones",u({title:t},o))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,n[0]+"/milestones/"+n[1],o)},t.prototype.issues=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/milestones/"+n[1]+"/issues",o)},t.prototype.mergeRequests=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/milestones/"+n[1]+"/merge_requests",o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/milestones/"+n[1],o)},t}(b),M=function(e){function t(t,o,n){var r=e.call(this,u({url:t},n))||this;return r.resource2Type=o,r}return i(t,e),t.prototype.all=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2),r=n[0],s=n[1];return v(this,r+"/"+this.resource2Type+"/"+s+"/notes",o)},t.prototype.create=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2),s=r[0],p=r[1];return U(this,s+"/"+this.resource2Type+"/"+p+"/notes",u({body:o},n))},t.prototype.edit=function(e,t,o,n,r){var s=m([e,t,o].map(encodeURIComponent),3),p=s[0],i=s[1],c=s[2];return C(this,p+"/"+this.resource2Type+"/"+i+"/notes/"+c,u({body:n},r))},t.prototype.remove=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return g(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},t.prototype.show=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return v(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},t}(b),x=function(e){function t(t,o){return e.call(this,u({url:["templates",t].join("/")},o))||this}return i(t,e),t.prototype.all=function(e){return v(this,"",e)},t.prototype.show=function(e,t){return U(this,""+encodeURIComponent(e),t)},t}(b),D=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e,t){return v(this,encodeURIComponent(e)+"/variables",t)},t.prototype.create=function(e,t){return U(this,encodeURIComponent(e)+"/variables",t)},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,n[0]+"/variables/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/variables/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,n[0]+"/variables/"+n[1],o)},t}(b),B=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(w),L=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(k),O=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(S),N=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(G),K=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(E),F=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(A),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"groups/"+encodeURIComponent(e)+"/projects",t)},t.prototype.add=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"groups/"+n[0]+"/projects/"+n[1],o)},t}(b),z=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(D),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"groups/"+encodeURIComponent(e)+"/epics",t)},t.prototype.create=function(e,t,o){return U(this,"groups/"+encodeURIComponent(e)+"/epics",u({title:t},o))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"groups/"+n[0]+"/epics/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"groups/"+n[0]+"/epics/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"groups/"+n[0]+"/epics/"+n[1],o)},t}(b),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"groups/"+n[0]+"/epics/"+n[1]+"/issues",o)},t.prototype.assign=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return C(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},t.prototype.edit=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return g(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},t.prototype.remove=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return g(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},t}(b),W=function(e){function t(t){return e.call(this,"groups","epics",t)||this}return i(t,e),t}(M),Y=function(e){function t(t){return e.call(this,"groups","epics",t)||this}return i(t,e),t}(T),Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"users",e)},t.prototype.activities=function(e){return v(this,"users/activities",e)},t.prototype.projects=function(e,t){return v(this,"users/"+encodeURIComponent(e)+"/projects",t)},t.prototype.block=function(e,t){return U(this,"users/"+encodeURIComponent(e)+"/block",t)},t.prototype.create=function(e){return U(this,"users",e)},t.prototype.current=function(e){return v(this,"user",e)},t.prototype.edit=function(e,t){return C(this,"users/"+encodeURIComponent(e),t)},t.prototype.events=function(e,t){return v(this,"users/"+encodeURIComponent(e)+"/events",t)},t.prototype.session=function(e,t,o){return U(this,"session",u({email:e,password:t},o))},t.prototype.search=function(e,t){return v(this,"users",u({search:e},t))},t.prototype.show=function(e,t){return v(this,"users/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){return g(this,"users/"+encodeURIComponent(e),t)},t.prototype.unblock=function(e,t){return U(this,"users/"+encodeURIComponent(e)+"/unblock",t)},t}(b),Z=function(e){function t(t){return e.call(this,"users",t)||this}return i(t,e),t}(S),$=function(e){return e?"users/"+encodeURIComponent(e)+"/emails":"user/emails"},X=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.userId,o=c(e,["userId"]);return v(this,$(t),o)},t.prototype.add=function(e,t){void 0===t&&(t={});var o=t.userId,n=c(t,["userId"]);return U(this,$(o),u({email:e},n))},t.prototype.show=function(e,t){return v(this,"user/emails/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){void 0===t&&(t={});var o=t.userId,n=c(t,["userId"]),r=encodeURIComponent(e);return g(this,$(o)+"/"+r,n)},t}(b),ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"users/"+encodeURIComponent(e)+"/impersonation_tokens",t)},t.prototype.add=function(e,t,o,n,r){return U(this,"users/"+encodeURIComponent(e)+"/impersonation_tokens",u({name:t,expiresAt:n,scopes:o},r))},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},t.prototype.revoke=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},t}(b),te=function(e){return e?"users/"+encodeURIComponent(e)+"/keys":"user/keys"},oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.userId,o=c(e,["userId"]);return v(this,te(t),o)},t.prototype.create=function(e,t,o){void 0===o&&(o={});var n=o.userId,r=c(o,["userId"]);return U(this,te(n),u({title:e,key:t},r))},t.prototype.show=function(e,t){return v(this,"user/keys/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){void 0===t&&(t={});var o=t.userId,n=c(t,["userId"]),r=encodeURIComponent(e);return g(this,te(o)+"/"+r,n)},t}(b),ne=function(e){return e?"users/"+encodeURIComponent(e)+"/gpg_keys":"users/gpg_keys"},re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.userId,o=c(e,["userId"]);return v(this,ne(t),o)},t.prototype.add=function(e,t,o){void 0===o&&(o={});var n=o.userId,r=c(o,["userId"]);return U(this,ne(n),u({title:e,key:t},r))},t.prototype.show=function(e,t){void 0===t&&(t={});var o=t.userId,n=c(t,["userId"]),r=encodeURIComponent(e);return v(this,ne(o)+"/"+r,n)},t.prototype.remove=function(e,t){void 0===t&&(t={});var o=t.userId,n=c(t,["userId"]),r=encodeURIComponent(e);return g(this,ne(o)+"/"+r,n)},t}(b),se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/branches",t)},t.prototype.create=function(e,t,o,n){return U(this,"projects/"+encodeURIComponent(e)+"/repository/branches",u({branch:t,ref:o},n))},t.prototype.protect=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/protected_branches",u({name:t},o))},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},t.prototype.unprotect=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},t}(b),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits",t)},t.prototype.cherryPick=function(e,t,o,n){return U(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/cherry_pick",u({branch:o},n))},t.prototype.comments=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/comments",o)},t.prototype.create=function(e,t,o,n,r){return void 0===n&&(n=[]),U(this,"projects/"+encodeURIComponent(e)+"/repository/commits",u({branch:t,commitMessage:o,actions:n},r))},t.prototype.createComment=function(e,t,o,n){return U(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/comments",u({note:o},n))},t.prototype.diff=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/diff",o)},t.prototype.editStatus=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/statuses/"+t,o)},t.prototype.references=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/refs",o)},t.prototype.show=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t,o)},t.prototype.status=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/statuses",o)},t.prototype.mergeRequests=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/merge_requests")},t}(b),ie=function(e){function t(t){return e.call(this,"projects","commits",t)||this}return i(t,e),t}(T),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/deployments",t)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/deployments/"+n[1],o)},t}(b),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.add=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/deploy_keys",t)},t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/deploy_keys",t)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deploy_keys/"+n[1],o)},t.prototype.enable=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},t}(b),ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/environments",t)},t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/environments",t)},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/environments/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/environments/"+n[1],o)},t.prototype.stop=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},t}(b),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.addSpentTime=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",u({duration:o},n))},t.prototype.addTimeEstimate=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",u({duration:o},n))},t.prototype.all=function(e){var t=e.projectId,o=c(e,["projectId"]);return v(this,t?"projects/"+encodeURIComponent(t)+"/issues":"issues",o)},t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/issues",t)},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/issues/"+n[1],o)},t.prototype.link=function(e,t,o,n,r){var s=m([e,t].map(encodeURIComponent),2),p=s[0],i=s[1],c=m([o,n].map(encodeURIComponent),2),a=c[0],h=c[1];return U(this,"projects/"+p+"/issues/"+i+"/links",u({targetProjectId:a,targetIssueId:h},r))},t.prototype.participants=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/participants",o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/issues/"+n[1],o)},t.prototype.resetSpentTime=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_spent_time",o)},t.prototype.resetTimeEstimate=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_time_estimate",o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1],o)},t.prototype.subscribe=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},t.prototype.timeStats=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/time_stats",o)},t.prototype.unsubscribe=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},t}(b),me=function(e){function t(t){return e.call(this,"projects","issues",t)||this}return i(t,e),t}(M),de=function(e){function t(t){return e.call(this,"projects","issues",t)||this}return i(t,e),t}(T),le=function(e){function t(t){return e.call(this,"issues",t)||this}return i(t,e),t}(P),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/jobs",t)},t.prototype.cancel=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/cancel",o)},t.prototype.downloadSingleArtifactFile=function(e,t,o,n){var r=n.stream,s=void 0!==r&&r,p=c(n,["stream"]),i=m([e,t].map(encodeURIComponent),2),u=i[0],a=i[1];return s?R(this,"projects/"+u+"/jobs/"+a+"/artifacts/"+o,p):v(this,"projects/"+u+"/jobs/"+a+"/artifacts/"+o,p)},t.prototype.downloadLatestArtifactFile=function(e,t,o,n){var r=n.stream,s=void 0!==r&&r,p=c(n,["stream"]),i=m([e,t,o].map(encodeURIComponent),3),u=i[0],a=i[1],h=i[2];return s?R(this,"projects/"+u+"/jobs/artifacts/"+a+"/download?job="+h,p):v(this,"projects/"+u+"/jobs/artifacts/"+a+"/download?job="+h,p)},t.prototype.downloadTraceFile=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/trace",o)},t.prototype.erase=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},t.prototype.keepArtifacts=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts/keep",o)},t.prototype.play=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/play",o)},t.prototype.retry=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/retry",o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1],o)},t.prototype.showPipelineJobs=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},t}(b),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/labels",t)},t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/labels",t)},t.prototype.edit=function(e,t,o){return C(this,"projects/"+encodeURIComponent(e)+"/labels",u({name:t},o))},t.prototype.remove=function(e,t,o){return g(this,"projects/"+encodeURIComponent(e)+"/labels",u({name:t},o))},t.prototype.subscribe=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},t.prototype.unsubscribe=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},t}(b),Ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.accept=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/merge",o)},t.prototype.addSpentTime=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",u({duration:o},n))},t.prototype.addTimeEstimate=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",u({duration:o},n))},t.prototype.all=function(e){var t=e.projectId,o=e.groupId,n=c(e,["projectId","groupId"]);return v(this,t?"projects/"+encodeURIComponent(t)+"/merge_requests":o?"groups/"+encodeURIComponent(o)+"/merge_requests":"merge_requests",n)},t.prototype.approve=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},t.prototype.approvals=function(e,t){var o=t.mergerequestIId,n=c(t,["mergerequestIId"]),r=m([e,o].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},t.prototype.approvers=function(e,t,o,n){var r=n.mergerequestIId,s=c(n,["mergerequestIId"]),p=m([e,r].map(encodeURIComponent),2),i=p[0],a=p[1];return C(this,r?"projects/"+i+"/merge_requests/"+a+"/approvals":"projects/"+i+"/approvals",u({approverIds:t,approverGroupIds:o},s))},t.prototype.cancelOnPipelineSucess=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/cancel_merge_when_pipeline_succeeds",o)},t.prototype.changes=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/changes",o)},t.prototype.closesIssues=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/closes_issues",o)},t.prototype.commits=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/commits",o)},t.prototype.create=function(e,t,o,n,r){var s=encodeURIComponent(e);return U(this,"projects/"+s+"/merge_requests",u({id:s,sourceBranch:t,targetBranch:o,title:n},r))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},t.prototype.editApprovals=function(e,t){var o=t.mergerequestIId,n=c(t,["mergerequestIId"]),r=m([e,o].map(encodeURIComponent),2),s=r[0],p=r[1];return U(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},t.prototype.pipelines=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/pipelines",o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},t.prototype.resetSpentTime=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_spent_time",o)},t.prototype.resetTimeEstimate=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_time_estimate",o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},t.prototype.timeStats=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/time_stats",o)},t.prototype.version=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return v(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/versions/"+r[2],n)},t.prototype.versions=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/versions",o)},t.prototype.unapprove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},t.prototype.unsubscribe=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},t}(b),ve=function(e){function t(t){return e.call(this,"merge_requests",t)||this}return i(t,e),t}(P),Re=function(e){function t(t){return e.call(this,"projects","merge_requests",t)||this}return i(t,e),t}(T),Ue=function(e){function t(t){return e.call(this,"projects","merge_requests",t)||this}return i(t,e),t}(M),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/pipelines",t)},t.prototype.create=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/pipeline",u({ref:t},o))},t.prototype.show=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t,o)},t.prototype.retry=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t+"/retry",o)},t.prototype.cancel=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t+"/cancel",o)},t.prototype.showJobs=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t+"/jobs",o)},t}(b),Ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/pipeline_schedules",t)},t.prototype.create=function(e,t,o,n,r){return U(this,"projects/"+encodeURIComponent(e)+"/pipeline_schedules",u({description:t,ref:o,cron:n},r))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},t.prototype.takeOwnership=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},t}(b),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},t.prototype.create=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},t.prototype.edit=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return C(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},t.prototype.show=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return v(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},t.prototype.remove=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return g(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},t}(b),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"projects",e)},t.prototype.archive=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/archive",t)},t.prototype.create=function(e){var t=e.userId,o=c(e,["userId"]);return U(this,t?"projects/user/"+encodeURIComponent(t):"projects",o)},t.prototype.edit=function(e,t){return C(this,"projects/"+encodeURIComponent(e),t)},t.prototype.events=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/events",t)},t.prototype.fork=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/fork",t)},t.prototype.forks=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/forks",t)},t.prototype.languages=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/languages",t)},t.prototype.mirrorPull=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/mirror/pull",t)},t.prototype.remove=function(e,t){return g(this,"projects/"+encodeURIComponent(e),t)},t.prototype.search=function(e){return v(this,"projects",{search:e})},t.prototype.share=function(e,t,o,n){return U(this,"projects/"+encodeURIComponent(e)+"/share",u({groupId:t,groupAccess:o},n))},t.prototype.show=function(e,t){return v(this,"projects/"+encodeURIComponent(e),t)},t.prototype.star=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/star",t)},t.prototype.statuses=function(e,t,o,n){return U(this,"projects/"+encodeURIComponent(e)+"/statuses/"+t,u({state:o},n))},t.prototype.transfer=function(e,t){return C(this,"projects/"+encodeURIComponent(e)+"/transfer",{namespace:t})},t.prototype.unarchive=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/unarchive",t)},t.prototype.unshare=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/share"+n[1],o)},t.prototype.unstar=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/unstar",t)},t.prototype.updatePushRule=function(e,t){return C(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t.prototype.upload=function(e,t,o){void 0===o&&(o={});var n=encodeURIComponent(e),p=new r,i={filename:s.generate(8),contentType:"application/octet-stream"};return p.append("file",t,Object.assign(i,o)),j(this,"projects/"+n+"/uploads",p)},t}(b),_e=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(w),we=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(k),qe=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(S),Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.download=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/export/download",t)},t.prototype.exportStatus=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/export",t)},t.prototype.import=function(e,t){var o=new r;return o.append("file",e,{filename:t,contentType:"application/octet-stream"}),j(this,"projects/import",o)},t.prototype.importStatus=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/import",t)},t.prototype.schedule=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/export",t)},t}(b),ke=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(G),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/hooks",t)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/hooks/"+n[1],o)},t.prototype.add=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/hooks",u({url:t},o))},t.prototype.edit=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+r[0]+"/hooks/"+r[1],u({url:o},n))},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/hooks/"+n[1],o)},t}(b),Te=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(E),Ge=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(A),Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/snippets",t)},t.prototype.content=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/snippets/"+n[1]+"/raw",o)},t.prototype.create=function(e,t,o,n,r,s){return U(this,"projects/"+encodeURIComponent(e)+"/snippets",u({title:t,fileName:o,code:n,visibility:r},s))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/snippets/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/snippets/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/snippets/"+n[1],o)},t.prototype.userAgentDetails=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},t}(b),Ae=function(e){function t(t){return e.call(this,"projects","snippets",t)||this}return i(t,e),t}(M),Me=function(e){function t(t){return e.call(this,"projects","snippets",t)||this}return i(t,e),t}(T),xe=function(e){function t(t){return e.call(this,"issues",t)||this}return i(t,e),t}(P),De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/protected_branches",t)},t.prototype.protect=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/protected_branches",u({name:t},o))},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},t.prototype.unprotect=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},t}(b),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/protected_tags",t)},t.prototype.protect=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/protected_tags",u({name:t},o))},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},t.prototype.unprotect=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},t}(b),Le=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(D),Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.compare=function(e,t,o,n){return v(this,"projects/"+encodeURIComponent(e)+"/repository/compare",u({from:t,to:o},n))},t.prototype.contributors=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/contributors",t)},t.prototype.showArchive=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/archive",t)},t.prototype.showBlob=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/blobs/"+t,o)},t.prototype.showBlobRaw=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/blobs/"+t+"/raw",o)},t.prototype.tree=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/tree",t)},t}(b),Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.create=function(e,t,o,n,r){var s=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+s[0]+"/repository/files/"+s[1],u({branch:o,content:n},r))},t.prototype.edit=function(e,t,o,n,r){var s=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+s[0]+"/repository/files/"+s[1],u({branch:o,content:n},r))},t.prototype.remove=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+r[0]+"/repository/files/"+r[1],u({branch:o},n))},t.prototype.show=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/repository/files/"+r[1],u({ref:o},n))},t.prototype.showRaw=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",u({ref:o},n))},t}(b),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){var t=e.projectId,o=c(e,["projectId"]);return v(this,t?"projects/"+encodeURIComponent(t)+"/runners":"runners/all",o)},t.prototype.allOwned=function(e){return v(this,"runners",e)},t.prototype.edit=function(e,t){return C(this,"runners/"+encodeURIComponent(e),t)},t.prototype.enable=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2),r=n[0],s=n[1];return U(this,"projects/"+r+"/runners",u({runnerId:s},o))},t.prototype.disable=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/runners/"+n[1],o)},t.prototype.jobs=function(e,t){return v(this,"runners/"+encodeURIComponent(e)+"/jobs",t)},t.prototype.remove=function(e,t){return g(this,"runners/"+encodeURIComponent(e),t)},t.prototype.show=function(e,t){return v(this,"runners/"+encodeURIComponent(e),t)},t}(b),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.edit=function(e,t,o){return C(this,"projects/"+encodeURIComponent(e)+"/services/"+t,o)},t.prototype.remove=function(e,t,o){return g(this,"projects/"+encodeURIComponent(e)+"/services/"+t,o)},t.prototype.show=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/services/"+t,o)},t}(b),Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/tags",t)},t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/repository/tags",t)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},t}(b),ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"todos",e)},t.prototype.create=function(e,t,o){return U(this,"projects/"+e+"/merge_requests/"+t+"/todo",o)},t.prototype.done=function(e){var t=e.todoId,o="mark_as_done";return t&&(o=t+"/"+o),g(this,"todos/"+o,c(e,["todoId"]))},t}(b),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.add=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/triggers",t)},t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/triggers",t)},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/triggers/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/triggers/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/triggers/"+n[1],o)},t.prototype.pipeline=function(e,t){if(!t.ref)throw new Error("Missing required property: ref");if(!t.token)throw new Error("Missing required property: token");return U(this,"projects/"+encodeURIComponent(e)+"/trigger/pipeline",t)},t}(b),Je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t.prototype.edit=function(e,t){t.upsert;var o=c(t,["upsert"]),n=encodeURIComponent(e);try{return C(this,"projects/"+n+"/push_rule",o)}catch(t){if(t.message.includes("exist"))return this.create(e,o);throw t}},t.prototype.remove=function(e,t){return g(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t.prototype.show=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t}(b),We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"application/settings",e)},t.prototype.edit=function(e){return C(this,"application/settings",e)},t}(b),Ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"broadcast_messages",e)},t.prototype.create=function(e){return U(this,"broadcast_messages",e)},t.prototype.edit=function(e,t){return C(this,"broadcast_messages/"+encodeURIComponent(e),t)},t.prototype.remove=function(e){return g(this,"broadcast_messages/"+encodeURIComponent(e))},t.prototype.show=function(e,t){return v(this,"broadcast_messages/"+encodeURIComponent(e),t)},t}(b),Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"events",e)},t}(b),Ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"features",e)},t.prototype.set=function(e,t){return U(this,"features/"+encodeURIComponent(e),t)},t}(b),$e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"geo_nodes",e)},t.prototype.create=function(e,t){return U(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.edit=function(e,t){return C(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.failures=function(e){return U(this,"geo_nodes/current/failures",e)},t.prototype.repair=function(e,t){return g(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.show=function(e,t){return v(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.status=function(e,t){return v(this,"geo_nodes/"+encodeURIComponent(e)+"/status",t)},t.prototype.statuses=function(e){return v(this,"geo_nodes/statuses",e)},t}(b),Xe=function(e){function t(t){return e.call(this,"gitignores",t)||this}return i(t,e),t}(x),et=function(e){function t(t){return e.call(this,"gitlab_ci_ymls",t)||this}return i(t,e),t}(x),tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.show=function(e,t){return v(this,"keys/"+encodeURIComponent(e),t)},t}(b),ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"licence",e)},t.prototype.create=function(e){return U(this,"licence",e)},t}(b),nt=function(e){function t(t){return e.call(this,"licences",t)||this}return i(t,e),t}(x),rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.lint=function(e,t){return U(this,"ci/lint",u({content:e},t))},t}(b),st=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"namespaces",e)},t.prototype.show=function(e,t){return v(this,"namespaces/"+encodeURIComponent(e),t)},t}(b),pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.projectId,o=e.groupId,n=c(e,["projectId","groupId"]),r="";return t?r+="projects/"+encodeURIComponent(t)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),v(this,r+"notification_settings",n)},t.prototype.edit=function(e){void 0===e&&(e={});var t=e.projectId,o=e.groupId,n=c(e,["projectId","groupId"]),r="";return t?r+="projects/"+encodeURIComponent(t)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),C(this,r+"notification_settings",n)},t}(b),it=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){return U(this,"markdown",u({text:e},t))},t}(b),ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.projectId,o=c(e,["projectId"]);return v(this,(t?"projects/"+encodeURIComponent(t)+"/":"")+"pages/domains",o)},t.prototype.create=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/pages/domains",u({domain:t},o))},t.prototype.edit=function(e,t,o){return C(this,"projects/"+encodeURIComponent(e)+"/pages/domains/"+t,o)},t.prototype.show=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/pages/domains/"+t,o)},t.prototype.remove=function(e,t,o){return g(this,"projects/"+encodeURIComponent(e)+"/pages/domains/"+t,o)},t}(b),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t,o){var n=o.projectId,r=o.groupId,s=c(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),v(this,p+"search",u({scope:e,search:t},s))},t}(b),at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.queueMetrics=function(){return v(this,"sidekiq/queue_metrics")},t.prototype.processMetrics=function(){return v(this,"sidekiq/process_metrics")},t.prototype.jobStats=function(){return v(this,"sidekiq/job_stats")},t.prototype.compoundMetrics=function(){return v(this,"sidekiq/compound_metrics")},t}(b),ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,e.public?"snippets/public":"snippets",c(e,["public"]))},t.prototype.content=function(e,t){return v(this,"snippets/"+encodeURIComponent(e)+"/raw",t)},t.prototype.create=function(e,t,o,n,r){return U(this,"snippets",u({title:e,fileName:t,content:o,visibility:n},r))},t.prototype.edit=function(e,t){return C(this,"snippets/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){return g(this,"snippets/"+encodeURIComponent(e),t)},t.prototype.show=function(e,t){return v(this,"snippets/"+encodeURIComponent(e),t)},t.prototype.userAgentDetails=function(e,t){return v(this,"snippets/"+encodeURIComponent(e)+"/user_agent_detail",t)},t}(b),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.add=function(e,t){return U(this,"hooks",u({url:e},t))},t.prototype.all=function(e){return v(this,"hooks",e)},t.prototype.edit=function(e,t,o){return C(this,"hooks/"+encodeURIComponent(e),u({url:t},o))},t.prototype.remove=function(e,t){return g(this,"hooks/"+encodeURIComponent(e),t)},t}(b),dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.show=function(e){return v(this,"version",e)},t}(b),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/wikis",t)},t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/wikis",t)},t.prototype.edit=function(e,t,o){return C(this,"projects/"+encodeURIComponent(e)+"/wikis/"+t,o)},t.prototype.show=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/wikis/"+t,o)},t.prototype.remove=function(e,t,o){return g(this,"projects/"+encodeURIComponent(e)+"/wikis/"+t,o)},t}(b),ft=Object.freeze({Groups:_,GroupAccessRequests:B,GroupBadges:L,GroupCustomAttributes:O,GroupIssueBoards:N,GroupMembers:K,GroupMilestones:F,GroupProjects:V,GroupVariables:z,Epics:H,EpicIssues:J,EpicNotes:W,EpicDiscussions:Y,Users:Q,UserCustomAttributes:Z,UserEmails:X,UserImpersonationTokens:ee,UserKeys:oe,UserGPGKeys:re,Branches:se,Commits:pe,CommitDiscussions:ie,Deployments:ue,DeployKeys:ce,Environments:ae,Issues:he,IssueNotes:me,IssueDiscussions:de,IssueAwardEmojis:le,Jobs:fe,Labels:ye,MergeRequests:Ie,MergeRequestAwardEmojis:ve,MergeRequestDiscussions:Re,MergeRequestNotes:Ue,Pipelines:je,PipelineSchedules:Ce,PipelineScheduleVariables:ge,Projects:be,ProjectAccessRequests:_e,ProjectBadges:we,ProjectCustomAttributes:qe,ProjectImportExport:Pe,ProjectIssueBoards:ke,ProjectHooks:Se,ProjectMembers:Te,ProjectMilestones:Ge,ProjectSnippets:Ee,ProjectSnippetNotes:Ae,ProjectSnippetDiscussions:Me,ProjectSnippetAwardEmojis:xe,ProtectedBranches:De,ProtectedTags:Be,ProjectVariables:Le,Repositories:Oe,RepositoryFiles:Ne,Runners:Ke,Services:Fe,Tags:Ve,Todos:ze,Triggers:He,PushRule:Je,ApplicationSettings:We,BroadcastMessages:Ye,Events:Qe,FeatureFlags:Ze,GeoNodes:$e,GitignoreTemplates:Xe,GitLabCIYMLTemplates:et,Keys:tt,Licence:ot,LicenceTemplates:nt,Lint:rt,Namespaces:st,NotificationSettings:pt,Markdown:it,PagesDomains:ut,Search:ct,SidekiqMetrics:at,Snippets:ht,SystemHooks:mt,Version:dt,Wikis:lt}),yt=l({Groups:_,GroupAccessRequests:B,GroupBadges:L,GroupCustomAttributes:O,GroupIssueBoards:N,GroupMembers:K,GroupMilestones:F,GroupProjects:V,GroupVariables:z,Epics:H,EpicIssues:J,EpicNotes:W,EpicDiscussions:Y}),It=l({Users:Q,UserCustomAttributes:Z,UserEmails:X,UserImpersonationTokens:ee,UserKeys:oe,UserGPGKeys:re}),vt=l({Branches:se,Commits:pe,CommitDiscussions:ie,DeployKeys:ce,Deployments:ue,Environments:ae,Issues:he,IssueAwardEmojis:le,IssueNotes:me,IssueDiscussions:de,Jobs:fe,Labels:ye,MergeRequests:Ie,MergeRequestAwardEmojis:ve,MergeRequestDiscussions:Re,MergeRequestNotes:Ue,Pipelines:je,PipelineSchedules:Ce,PipelineScheduleVariables:ge,Projects:be,ProjectAccessRequests:_e,ProjectBadges:we,ProjectCustomAttributes:qe,ProjectImportExport:Pe,ProjectIssueBoards:ke,ProjectHooks:Se,ProjectMembers:Te,ProjectMilestones:Ge,ProjectSnippets:Ee,ProjectSnippetNotes:Ae,ProjectSnippetDiscussions:Me,ProjectSnippetAwardEmojis:xe,ProtectedBranches:De,ProtectedTags:Be,ProjectVariables:Le,Repositories:Oe,RepositoryFiles:Ne,Runners:Ke,Services:Fe,Tags:Ve,Triggers:He}),Rt=l(ft);e.GroupsBundle=yt,e.UsersBundle=It,e.ProjectsBundle=vt,e.Gitlab=Rt,e.Groups=_,e.GroupAccessRequests=B,e.GroupBadges=L,e.GroupCustomAttributes=O,e.GroupIssueBoards=N,e.GroupMembers=K,e.GroupMilestones=F,e.GroupProjects=V,e.GroupVariables=z,e.Epics=H,e.EpicIssues=J,e.EpicNotes=W,e.EpicDiscussions=Y,e.Users=Q,e.UserCustomAttributes=Z,e.UserEmails=X,e.UserImpersonationTokens=ee,e.UserKeys=oe,e.UserGPGKeys=re,e.Branches=se,e.Commits=pe,e.CommitDiscussions=ie,e.Deployments=ue,e.DeployKeys=ce,e.Environments=ae,e.Issues=he,e.IssueNotes=me,e.IssueDiscussions=de,e.IssueAwardEmojis=le,e.Jobs=fe,e.Labels=ye,e.MergeRequests=Ie,e.MergeRequestAwardEmojis=ve,e.MergeRequestDiscussions=Re,e.MergeRequestNotes=Ue,e.Pipelines=je,e.PipelineSchedules=Ce,e.PipelineScheduleVariables=ge,e.Projects=be,e.ProjectAccessRequests=_e,e.ProjectBadges=we,e.ProjectCustomAttributes=qe,e.ProjectImportExport=Pe,e.ProjectIssueBoards=ke,e.ProjectHooks=Se,e.ProjectMembers=Te,e.ProjectMilestones=Ge,e.ProjectSnippets=Ee,e.ProjectSnippetNotes=Ae,e.ProjectSnippetDiscussions=Me,e.ProjectSnippetAwardEmojis=xe,e.ProtectedBranches=De,e.ProtectedTags=Be,e.ProjectVariables=Le,e.Repositories=Oe,e.RepositoryFiles=Ne,e.Runners=Ke,e.Services=Fe,e.Tags=Ve,e.Todos=ze,e.Triggers=He,e.PushRule=Je,e.ApplicationSettings=We,e.BroadcastMessages=Ye,e.Events=Qe,e.FeatureFlags=Ze,e.GeoNodes=$e,e.GitignoreTemplates=Xe,e.GitLabCIYMLTemplates=et,e.Keys=tt,e.Licence=ot,e.LicenceTemplates=nt,e.Lint=rt,e.Namespaces=st,e.NotificationSettings=pt,e.Markdown=it,e.PagesDomains=ut,e.Search=ct,e.SidekiqMetrics=at,e.Snippets=ht,e.SystemHooks=mt,e.Version=dt,e.Wikis=lt,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -1,1 +0,1 @@

import t from"got";import{decamelizeKeys as e}from"humps";import{stringify as o}from"query-string";import n from"form-data";import r from"randomstring";var s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function p(t,e){function o(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var i=function(){return(i=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function u(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&(o[n[r]]=t[n[r]])}return o}function c(t,e,o,n){return new(o||(o=Promise))(function(r,s){function p(t){try{u(n.next(t))}catch(t){s(t)}}function i(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){t.done?r(t.value):new o(function(e){e(t.value)}).then(p,i)}u((n=n.apply(t,e||[])).next())})}function a(t,e){var o,n,r,s,p={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;p;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return p.label++,{value:s[1],done:!1};case 5:p.label++,n=s[1],s=[0];continue;case 7:s=p.ops.pop(),p.trys.pop();continue;default:if(!(r=(r=p.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){p=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){p.label=s[1];break}if(6===s[0]&&p.label<r[1]){p.label=r[1],r=s;break}if(r&&p.label<r[2]){p.label=r[2],p.ops.push(s);break}r[2]&&p.ops.pop(),p.trys.pop();continue}s=e.call(t,p)}catch(t){s=[6,t],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}}function h(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,r,s=o.call(t),p=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)p.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return p}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function l(t){return function(e){var o=this;Object.entries(t||{}).forEach(function(t){var n=h(t,2),r=n[0],s=n[1];o[r]=new s(e)})}}function d(t,e,o){return/^[A-Z0-9_]+$/.test(t)?t:e(t,o)}function f(t,n,r){var s=r.body,p=r.query,u=r.sudo;return[n,{baseUrl:t.url,headers:i({sudo:u},t.headers),query:p&&o(e(p),{arrayFormat:"bracket"}),body:s&&e(s,d),rejectUnauthorized:t.rejectUnauthorized,json:!0}]}function y(e,o,n){return void 0===n&&(n={}),c(this,void 0,void 0,function(){var r,s,p,c,h,l,d,I,v,R,U;return a(this,function(a){switch(a.label){case 0:return r=n.showPagination,s=n.maxPages,p=n.sudo,c=u(n,["showPagination","maxPages","sudo"]),h=f(e,o,{query:c,sudo:p}),[4,t.get.apply(t,m(h))];case 1:return l=a.sent(),d=l.headers,I=l.body,v={total:d["x-total"],next:d["x-next-page"]||null,current:d["x-page"]||null,previous:d["x-prev-page"]||null,perPage:d["x-per-page"],totalPages:d["x-total-pages"]},R=!s||v.current<s,!c.page&&R&&v.next?[4,y(e,o,i({page:v.next},n))]:[3,3];case 2:return U=a.sent(),[2,m(I,U)];case 3:return[2,(c.page||s)&&r?{data:I,pagination:v}:I]}})})}function I(e,o,n){return void 0===n&&(n={}),t.stream.apply(t,m(f(e,o,{query:n})))}function v(e,o,n){return void 0===n&&(n={}),c(this,void 0,void 0,function(){var r,s;return a(this,function(p){switch(p.label){case 0:return r=n.sudo,s=u(n,["sudo"]),[4,t.post.apply(t,m(f(e,o,{body:s,sudo:r})))];case 1:return[2,p.sent().body]}})})}function R(e,o,n){return void 0===n&&(n={}),c(this,void 0,void 0,function(){var r;return a(this,function(s){switch(s.label){case 0:return n.sudo,r=u(n,["sudo"]),[4,t.put.apply(t,m(f(e,o,{body:r})))];case 1:return[2,s.sent().body]}})})}function U(e,o,n){return void 0===n&&(n={}),c(this,void 0,void 0,function(){var r;return a(this,function(s){switch(s.label){case 0:return n.sudo,r=u(n,["sudo"]),[4,t.delete.apply(t,m(f(e,o,{query:r})))];case 1:return[2,s.sent().body]}})})}var C=function(){return function(e){var o=e.token,n=e.oauthToken,r=e.sudo,s=e.host,p=void 0===s?"https://gitlab.com":s,i=e.url,u=void 0===i?"":i,c=e.version,a=void 0===c?"v4":c,h=e.rejectUnauthorized,m=void 0===h||h,l=e.requester,d=void 0===l?t:l;this.url=[p,"api",a,u].join("/"),this.headers={},this.rejectUnauthorized=m,this.requester=d,n?this.headers.authorization="Bearer "+n:o&&(this.headers["private-token"]=o),r&&(this.headers.Sudo=r)}}(),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"groups",t)},e.prototype.create=function(t){return v(this,"groups",t)},e.prototype.createLDAPLink=function(t,e,o,n,r){return v(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links",i({cn:e,groupAccess:o,provider:n},r))},e.prototype.edit=function(t,e){return R(this,"groups/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return U(this,"groups/"+encodeURIComponent(t),e)},e.prototype.removeLDAPLink=function(t,e,o){void 0===o&&(o={});var n=o.provider,r=u(o,["provider"]);return U(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links/"+(n?n+"/"+e:""+e),r)},e.prototype.search=function(t,e){return y(this,"groups",i({search:t},e))},e.prototype.show=function(t,e){return y(this,"groups/"+encodeURIComponent(t),e)},e.prototype.subgroups=function(t,e){return y(this,"groups/"+encodeURIComponent(t)+"/subgroups",e)},e.prototype.syncLDAP=function(t,e){return v(this,"groups/"+encodeURIComponent(t)+"/ldap_sync",e)},e}(C),g=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t){return y(this,encodeURIComponent(t)+"/access_requests")},e.prototype.request=function(t){return v(this,encodeURIComponent(t)+"/access_requests")},e.prototype.approve=function(t,e,o){var n=o.accessLevel,r=h([t,e].map(encodeURIComponent),2);return v(this,r[0]+"/access_requests/"+r[1]+"/approve",{accessLevel:n})},e.prototype.deny=function(t,e){var o=h([t,e].map(encodeURIComponent),2);return U(this,o[0]+"/access_requests/"+o[1])},e}(C);function b(t,e,o,n,r){var s=h([t,o].map(encodeURIComponent),2),p=[s[0],e,s[1]];return r&&p.push("notes",encodeURIComponent(r)),p.push(encodeURIComponent("award_emoji")),n&&p.push(encodeURIComponent(n)),p.join("/")}var _=function(t){function e(e,o){var n=t.call(this,i({url:"projects"},o))||this;return n.resourceType=e,n}return p(e,t),e.prototype.all=function(t,e,o,n){return y(this,b(t,this.resourceType,e,null,o),n)},e.prototype.award=function(t,e,o,n,r){return v(this,b(t,this.resourceType,e,null,n),i({name:o},r))},e.prototype.remove=function(t,e,o,n,r){return U(this,b(t,this.resourceType,e,o,n),r)},e.prototype.show=function(t,e,o,n,r){return y(this,b(t,this.resourceType,e,o,n),r)},e}(C),w=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.add=function(t,e){return v(this,encodeURIComponent(t)+"/badges",e)},e.prototype.all=function(t,e){return y(this,encodeURIComponent(t)+"/badges",e)},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/badges/"+n[1],o)},e.prototype.preview=function(t,e,o,n){return y(this,encodeURIComponent(t)+"/badges/render",i({linkUrl:e,imageUrl:o},n))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/badges/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/badges/"+n[1],o)},e}(C),k=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t,e){return y(this,encodeURIComponent(t)+"/custom_attributes",e)},e.prototype.set=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/custom_attributes/"+r[1],i({value:o},n))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/custom_attributes/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/custom_attributes/"+n[1],o)},e}(C),q=function(t){function e(e,o,n){var r=t.call(this,i({url:e},n))||this;return r.resource2Type=o,r}return p(e,t),e.prototype.addNote=function(t,e,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=h([t,e,o,n].map(encodeURIComponent),4),u=p[0],c=p[1],a=p[2],m=p[3];return R(this,u+"/"+this.resource2Type+"/"+c+"/discussions/"+a+"/notes/"+m,i({body:r},s))},e.prototype.all=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return y(this,r+"/"+this.resource2Type+"/"+s+"/discussions",o)},e.prototype.create=function(t,e,o,n){if(!o)throw new Error("Missing required content argument");var r=h([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/"+this.resource2Type+"/"+p+"/discussions",i({body:o},n))},e.prototype.editNote=function(t,e,o,n,r){var s=h([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return R(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,{body:r})},e.prototype.removeNote=function(t,e,o,n,r){var s=h([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return U(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,r)},e.prototype.show=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return y(this,s+"/"+this.resource2Type+"/"+p+"/discussions/"+i,n)},e}(C),P=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t,e){return y(this,encodeURIComponent(t)+"/boards",e)},e.prototype.create=function(t,e,o){return v(this,encodeURIComponent(t)+"/boards",i({name:e},o))},e.prototype.createList=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return v(this,r[0]+"/boards/"+r[1]+"/lists",i({labelId:o},n))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/boards/"+n[1],o)},e.prototype.editList=function(t,e,o,n,r){var s=h([t,e,o].map(encodeURIComponent),3);return R(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],i({position:n},r))},e.prototype.lists=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/boards/"+n[1]+"/lists",o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/boards/"+n[1],o)},e.prototype.removeList=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return U(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/boards/"+n[1],o)},e.prototype.showList=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return y(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e}(C),T=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t,e,o){void 0===e&&(e=!1);var n=[encodeURIComponent(t),"members"];return e&&n.push("all"),y(this,n.join("/"),{options:o})},e.prototype.add=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/members",i({userId:p,accessLevel:o},n))},e.prototype.edit=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/members/"+r[1],i({accessLevel:o},n))},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/members/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/members/"+n[1],o)},e}(C),S=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t,e){return y(this,encodeURIComponent(t)+"/milestones",e)},e.prototype.create=function(t,e,o){return v(this,encodeURIComponent(t)+"/milestones",i({title:e},o))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/milestones/"+n[1],o)},e.prototype.issues=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1]+"/issues",o)},e.prototype.mergeRequests=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1]+"/merge_requests",o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1],o)},e}(C),A=function(t){function e(e,o,n){var r=t.call(this,i({url:e},n))||this;return r.resource2Type=o,r}return p(e,t),e.prototype.all=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return y(this,r+"/"+this.resource2Type+"/"+s+"/notes",o)},e.prototype.create=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/"+this.resource2Type+"/"+p+"/notes",i({body:o},n))},e.prototype.edit=function(t,e,o,n,r){var s=h([t,e,o].map(encodeURIComponent),3),p=s[0],u=s[1],c=s[2];return R(this,p+"/"+this.resource2Type+"/"+u+"/notes/"+c,i({body:n},r))},e.prototype.remove=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return U(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e.prototype.show=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return y(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e}(C),x=function(t){function e(e,o){return t.call(this,i({url:["templates",e].join("/")},o))||this}return p(e,t),e.prototype.all=function(t){return y(this,"",t)},e.prototype.show=function(t,e){return v(this,""+encodeURIComponent(t),e)},e}(C),E=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t,e){return y(this,encodeURIComponent(t)+"/variables",e)},e.prototype.create=function(t,e){return v(this,encodeURIComponent(t)+"/variables",e)},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/variables/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/variables/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/variables/"+n[1],o)},e}(C),G=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(g),M=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(w),L=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(k),D=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(P),O=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(T),B=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(S),N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"groups/"+encodeURIComponent(t)+"/projects",e)},e.prototype.add=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"groups/"+n[0]+"/projects/"+n[1],o)},e}(C),F=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(E),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"groups/"+encodeURIComponent(t)+"/epics",e)},e.prototype.create=function(t,e,o){return v(this,"groups/"+encodeURIComponent(t)+"/epics",i({title:e},o))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"groups/"+n[0]+"/epics/"+n[1],o)},e}(C),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"groups/"+n[0]+"/epics/"+n[1]+"/issues",o)},e.prototype.assign=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return R(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.edit=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return U(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return U(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e}(C),z=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return p(e,t),e}(A),J=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return p(e,t),e}(q),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"users",t)},e.prototype.activities=function(t){return y(this,"users/activities",t)},e.prototype.projects=function(t,e){return y(this,"users/"+encodeURIComponent(t)+"/projects",e)},e.prototype.block=function(t,e){return v(this,"users/"+encodeURIComponent(t)+"/block",e)},e.prototype.create=function(t){return v(this,"users",t)},e.prototype.current=function(t){return y(this,"user",t)},e.prototype.edit=function(t,e){return R(this,"users/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return y(this,"users/"+encodeURIComponent(t)+"/events",e)},e.prototype.session=function(t,e,o){return v(this,"session",i({email:t,password:e},o))},e.prototype.search=function(t,e){return y(this,"users",i({search:t},e))},e.prototype.show=function(t,e){return y(this,"users/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return U(this,"users/"+encodeURIComponent(t),e)},e.prototype.unblock=function(t,e){return v(this,"users/"+encodeURIComponent(t)+"/unblock",e)},e}(C),W=function(t){function e(e){return t.call(this,"users",e)||this}return p(e,t),e}(k),Y=function(t){return t?"users/"+encodeURIComponent(t)+"/emails":"user/emails"},Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=u(t,["userId"]);return y(this,Y(e),o)},e.prototype.add=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]);return v(this,Y(o),i({email:t},n))},e.prototype.show=function(t,e){return y(this,"user/emails/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]),r=encodeURIComponent(t);return U(this,Y(o)+"/"+r,n)},e}(C),$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",e)},e.prototype.add=function(t,e,o,n,r){return v(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",i({name:e,expiresAt:n,scopes:o},r))},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e.prototype.revoke=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e}(C),Q=function(t){return t?"users/"+encodeURIComponent(t)+"/keys":"user/keys"},X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=u(t,["userId"]);return y(this,Q(e),o)},e.prototype.create=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=u(o,["userId"]);return v(this,Q(n),i({title:t,key:e},r))},e.prototype.show=function(t,e){return y(this,"user/keys/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]),r=encodeURIComponent(t);return U(this,Q(o)+"/"+r,n)},e}(C),tt=function(t){return t?"users/"+encodeURIComponent(t)+"/gpg_keys":"users/gpg_keys"},et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=u(t,["userId"]);return y(this,tt(e),o)},e.prototype.add=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=u(o,["userId"]);return v(this,tt(n),i({title:t,key:e},r))},e.prototype.show=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]),r=encodeURIComponent(t);return y(this,tt(o)+"/"+r,n)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]),r=encodeURIComponent(t);return U(this,tt(o)+"/"+r,n)},e}(C),ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/branches",e)},e.prototype.create=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/repository/branches",i({branch:e,ref:o},n))},e.prototype.protect=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/protected_branches",i({name:e},o))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},e}(C),nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits",e)},e.prototype.cherryPick=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/cherry_pick",i({branch:o},n))},e.prototype.comments=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",o)},e.prototype.create=function(t,e,o,n,r){return void 0===n&&(n=[]),v(this,"projects/"+encodeURIComponent(t)+"/repository/commits",i({branch:e,commitMessage:o,actions:n},r))},e.prototype.createComment=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",i({note:o},n))},e.prototype.diff=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/diff",o)},e.prototype.editStatus=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,o)},e.prototype.references=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/refs",o)},e.prototype.show=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e,o)},e.prototype.status=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/statuses",o)},e.prototype.mergeRequests=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/merge_requests")},e}(C),rt=function(t){function e(e){return t.call(this,"projects","commits",e)||this}return p(e,t),e}(q),st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/deployments",e)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deployments/"+n[1],o)},e}(C),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.add=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/deploy_keys/"+n[1],o)},e.prototype.enable=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},e}(C),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.stop=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},e}(C),ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.addSpentTime=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",i({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",i({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=u(t,["projectId"]);return y(this,e?"projects/"+encodeURIComponent(e)+"/issues":"issues",o)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/issues",e)},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.link=function(t,e,o,n,r){var s=h([t,e].map(encodeURIComponent),2),p=s[0],u=s[1],c=h([o,n].map(encodeURIComponent),2),a=c[0],m=c[1];return v(this,"projects/"+p+"/issues/"+u+"/links",i({targetProjectId:a,targetIssueId:m},r))},e.prototype.participants=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1]+"/participants",o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.subscribe=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.timeStats=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1]+"/time_stats",o)},e.prototype.unsubscribe=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(C),ct=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return p(e,t),e}(A),at=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return p(e,t),e}(q),ht=function(t){function e(e){return t.call(this,"issues",e)||this}return p(e,t),e}(_),mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.cancel=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/cancel",o)},e.prototype.downloadSingleArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=u(n,["stream"]),i=h([t,e].map(encodeURIComponent),2),c=i[0],a=i[1];return s?I(this,"projects/"+c+"/jobs/"+a+"/artifacts/"+o,p):y(this,"projects/"+c+"/jobs/"+a+"/artifacts/"+o,p)},e.prototype.downloadLatestArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=u(n,["stream"]),i=h([t,e,o].map(encodeURIComponent),3),c=i[0],a=i[1],m=i[2];return s?I(this,"projects/"+c+"/jobs/artifacts/"+a+"/download?job="+m,p):y(this,"projects/"+c+"/jobs/artifacts/"+a+"/download?job="+m,p)},e.prototype.downloadTraceFile=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/jobs/"+n[1]+"/trace",o)},e.prototype.erase=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},e.prototype.keepArtifacts=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts/keep",o)},e.prototype.play=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/play",o)},e.prototype.retry=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/retry",o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/jobs/"+n[1],o)},e.prototype.showPipelineJobs=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},e}(C),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.edit=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/labels",i({name:e},o))},e.prototype.remove=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/labels",i({name:e},o))},e.prototype.subscribe=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.unsubscribe=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(C),dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.accept=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/merge",o)},e.prototype.addSpentTime=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",i({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",i({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=u(t,["projectId","groupId"]);return y(this,e?"projects/"+encodeURIComponent(e)+"/merge_requests":o?"groups/"+encodeURIComponent(o)+"/merge_requests":"merge_requests",n)},e.prototype.approve=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.approvals=function(t,e){var o=e.mergerequestIId,n=u(e,["mergerequestIId"]),r=h([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return y(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.approvers=function(t,e,o,n){var r=n.mergerequestIId,s=u(n,["mergerequestIId"]),p=h([t,r].map(encodeURIComponent),2),c=p[0],a=p[1];return v(this,r?"projects/"+c+"/merge_requests/"+a+"/approvals":"projects/"+c+"/approvals",i({approverIds:e,approverGroupIds:o},s))},e.prototype.cancelOnPipelineSucess=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/cancel_merge_when_pipeline_succeeds",o)},e.prototype.changes=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/changes",o)},e.prototype.closesIssues=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/closes_issues",o)},e.prototype.commits=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/commits",o)},e.prototype.create=function(t,e,o,n,r){var s=encodeURIComponent(t);return v(this,"projects/"+s+"/merge_requests",i({id:s,sourceBranch:e,targetBranch:o,title:n},r))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.editApprovals=function(t,e){var o=e.mergerequestIId,n=u(e,["mergerequestIId"]),r=h([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.pipelines=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/pipelines",o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.timeStats=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/time_stats",o)},e.prototype.version=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return y(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/versions/"+r[2],n)},e.prototype.versions=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/versions",o)},e.prototype.unapprove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.unsubscribe=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},e}(C),ft=function(t){function e(e){return t.call(this,"merge_requests",e)||this}return p(e,t),e}(_),yt=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return p(e,t),e}(q),It=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return p(e,t),e}(A),vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/pipelines",e)},e.prototype.create=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/pipeline",i({ref:e},o))},e.prototype.show=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e,o)},e.prototype.retry=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/retry",o)},e.prototype.cancel=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/cancel",o)},e.prototype.showJobs=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/jobs",o)},e}(C),Rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",e)},e.prototype.create=function(t,e,o,n,r){return v(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",i({description:e,ref:o,cron:n},r))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.takeOwnership=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},e}(C),Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.create=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.edit=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return R(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.show=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return y(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return U(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e}(C),Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"projects",t)},e.prototype.archive=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/archive",e)},e.prototype.create=function(t){var e=t.userId,o=u(t,["userId"]);return v(this,e?"projects/user/"+encodeURIComponent(e):"projects",o)},e.prototype.edit=function(t,e){return R(this,"projects/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/events",e)},e.prototype.fork=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/fork",e)},e.prototype.forks=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/forks",e)},e.prototype.languages=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/languages",e)},e.prototype.mirrorPull=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/mirror/pull",e)},e.prototype.remove=function(t,e){return U(this,"projects/"+encodeURIComponent(t),e)},e.prototype.search=function(t){return y(this,"projects",{search:t})},e.prototype.share=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/share",i({groupId:e,groupAccess:o},n))},e.prototype.show=function(t,e){return y(this,"projects/"+encodeURIComponent(t),e)},e.prototype.star=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/star",e)},e.prototype.statuses=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,i({state:o},n))},e.prototype.transfer=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/transfer",{namespace:e})},e.prototype.unarchive=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/unarchive",e)},e.prototype.unshare=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/share"+n[1],o)},e.prototype.unstar=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/unstar",e)},e.prototype.updatePushRule=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.upload=function(t,e,o){var s=o.fileName,p=void 0===s?r(8):s,i=encodeURIComponent(t),u=new n;return u.append(p,{file:{value:e,options:{filename:p,contentType:"application/octet-stream"}}}),v(this,"projects/"+i+"/uploads",u)},e}(C),jt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(g),gt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(w),bt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(k),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.download=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/export/download",e)},e.prototype.exportStatus=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/export",e)},e.prototype.import=function(t,e,o){var r=new n;return r.append(e,{file:{value:t,options:{filename:e,contentType:"application/octet-stream"}}}),v(this,"projects/import",i({},r,o))},e.prototype.importStatus=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/import",e)},e.prototype.schedule=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/export",e)},e}(C),wt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(P),kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/hooks",e)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e.prototype.add=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/hooks",i({url:e},o))},e.prototype.edit=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/hooks/"+r[1],i({url:o},n))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e}(C),qt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(T),Pt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(S),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/snippets",e)},e.prototype.content=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1]+"/raw",o)},e.prototype.create=function(t,e,o,n,r,s){return v(this,"projects/"+encodeURIComponent(t)+"/snippets",i({title:e,fileName:o,code:n,visibility:r},s))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.userAgentDetails=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},e}(C),St=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return p(e,t),e}(A),At=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return p(e,t),e}(q),xt=function(t){function e(e){return t.call(this,"issues",e)||this}return p(e,t),e}(_),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/protected_branches",e)},e.prototype.protect=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/protected_branches",i({name:e},o))},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e}(C),Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/protected_tags",e)},e.prototype.protect=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/protected_tags",i({name:e},o))},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e}(C),Mt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(E),Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.compare=function(t,e,o,n){return y(this,"projects/"+encodeURIComponent(t)+"/repository/compare",i({from:e,to:o},n))},e.prototype.contributors=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/contributors",e)},e.prototype.showArchive=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/archive",e)},e.prototype.showBlob=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e,o)},e.prototype.showBlobRaw=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e+"/raw",o)},e.prototype.tree=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/tree",e)},e}(C),Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.create=function(t,e,o,n,r){var s=h([t,e].map(encodeURIComponent),2);return v(this,"projects/"+s[0]+"/repository/files/"+s[1],i({branch:o,content:n},r))},e.prototype.edit=function(t,e,o,n,r){var s=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+s[0]+"/repository/files/"+s[1],i({branch:o,content:n},r))},e.prototype.remove=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/repository/files/"+r[1],i({branch:o},n))},e.prototype.show=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+r[0]+"/repository/files/"+r[1],i({ref:o},n))},e.prototype.showRaw=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",i({ref:o},n))},e}(C),Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){var e=t.projectId,o=u(t,["projectId"]);return y(this,e?"projects/"+encodeURIComponent(e)+"/runners":"runners/all",o)},e.prototype.allOwned=function(t){return y(this,"runners",t)},e.prototype.edit=function(t,e){return R(this,"runners/"+encodeURIComponent(t),e)},e.prototype.enable=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return v(this,"projects/"+r+"/runners",i({runnerId:s},o))},e.prototype.disable=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/runners/"+n[1],o)},e.prototype.jobs=function(t,e){return y(this,"runners/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.remove=function(t,e){return U(this,"runners/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return y(this,"runners/"+encodeURIComponent(t),e)},e}(C),Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.edit=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.remove=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.show=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e}(C),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e}(C),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"todos",t)},e.prototype.create=function(t,e,o){return v(this,"projects/"+t+"/merge_requests/"+e+"/todo",o)},e.prototype.done=function(t){var e=t.todoId,o="mark_as_done";return e&&(o=e+"/"+o),U(this,"todos/"+o,u(t,["todoId"]))},e}(C),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.add=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e}(C),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.edit=function(t,e){e.upsert;var o=u(e,["upsert"]),n=encodeURIComponent(t);try{return R(this,"projects/"+n+"/push_rule",o)}catch(e){if(e.message.includes("exist"))return this.create(t,o);throw e}},e.prototype.remove=function(t,e){return U(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.show=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e}(C),zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"application/settings",t)},e.prototype.edit=function(t){return R(this,"application/settings",t)},e}(C),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"broadcast_messages",t)},e.prototype.create=function(t){return v(this,"broadcast_messages",t)},e.prototype.edit=function(t,e){return R(this,"broadcast_messages/"+encodeURIComponent(t),e)},e.prototype.remove=function(t){return U(this,"broadcast_messages/"+encodeURIComponent(t))},e.prototype.show=function(t,e){return y(this,"broadcast_messages/"+encodeURIComponent(t),e)},e}(C),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"events",t)},e}(C),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"features",t)},e.prototype.set=function(t,e){return v(this,"features/"+encodeURIComponent(t),e)},e}(C),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"geo_nodes",t)},e.prototype.create=function(t,e){return v(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.edit=function(t,e){return R(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.failures=function(t){return v(this,"geo_nodes/current/failures",t)},e.prototype.repair=function(t,e){return U(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return y(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.status=function(t,e){return y(this,"geo_nodes/"+encodeURIComponent(t)+"/status",e)},e.prototype.statuses=function(t){return y(this,"geo_nodes/statuses",t)},e}(C),Zt=function(t){function e(e){return t.call(this,"gitignores",e)||this}return p(e,t),e}(x),$t=function(t){function e(e){return t.call(this,"gitlab_ci_ymls",e)||this}return p(e,t),e}(x),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.show=function(t,e){return y(this,"keys/"+encodeURIComponent(t),e)},e}(C),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"licence",t)},e.prototype.create=function(t){return v(this,"licence",t)},e}(C),te=function(t){function e(e){return t.call(this,"licences",e)||this}return p(e,t),e}(x),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.lint=function(t,e){return v(this,"lint",i({content:t},e))},e}(C),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,"namespaces",t)},e.prototype.show=function(t,e){return y(this,"namespaces/"+encodeURIComponent(t),e)},e}(C),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=t.groupId,n=u(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),y(this,r+"notification_settings",n)},e.prototype.edit=function(t){void 0===t&&(t={});var e=t.projectId,o=t.groupId,n=u(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),R(this,r+"notification_settings",n)},e}(C),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t,e){return v(this,"markdown",i({text:t},e))},e}(C),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=u(t,["projectId"]);return y(this,(e?"projects/"+encodeURIComponent(e)+"/":"")+"pages/domains",o)},e.prototype.create=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/pages/domains",i({domain:e},o))},e.prototype.edit=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.show=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.remove=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e}(C),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e,o){var n=o.projectId,r=o.groupId,s=u(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),y(this,p+"search",i({scope:t,search:e},s))},e}(C),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.queueMetrics=function(){return y(this,"sidekiq/queue_metrics")},e.prototype.processMetrics=function(){return y(this,"sidekiq/process_metrics")},e.prototype.jobStats=function(){return y(this,"sidekiq/job_stats")},e.prototype.compoundMetrics=function(){return y(this,"sidekiq/compound_metrics")},e}(C),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return y(this,t.public?"snippets/public":"snippets",u(t,["public"]))},e.prototype.content=function(t,e){return y(this,"snippets/"+encodeURIComponent(t)+"/raw",e)},e.prototype.create=function(t,e,o,n,r){return v(this,"snippets",i({title:t,fileName:e,content:o,visibility:n},r))},e.prototype.edit=function(t,e){return R(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return U(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return y(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.userAgentDetails=function(t,e){return y(this,"snippets/"+encodeURIComponent(t)+"/user_agent_detail",e)},e}(C),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.add=function(t,e){return v(this,"hooks",i({url:t},e))},e.prototype.all=function(t){return y(this,"hooks",t)},e.prototype.edit=function(t,e,o){return R(this,"hooks/"+encodeURIComponent(t),i({url:e},o))},e.prototype.remove=function(t,e){return U(this,"hooks/"+encodeURIComponent(t),e)},e}(C),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.show=function(t){return y(this,"version",t)},e}(C),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.edit=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.show=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.remove=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e}(C),me=Object.freeze({Groups:j,GroupAccessRequests:G,GroupBadges:M,GroupCustomAttributes:L,GroupIssueBoards:D,GroupMembers:O,GroupMilestones:B,GroupProjects:N,GroupVariables:F,Epics:K,EpicIssues:V,EpicNotes:z,EpicDiscussions:J,Users:H,UserCustomAttributes:W,UserEmails:Z,UserImpersonationTokens:$,UserKeys:X,UserGPGKeys:et,Branches:ot,Commits:nt,CommitDiscussions:rt,Deployments:st,DeployKeys:pt,Environments:it,Issues:ut,IssueNotes:ct,IssueDiscussions:at,IssueAwardEmojis:ht,Jobs:mt,Labels:lt,MergeRequests:dt,MergeRequestAwardEmojis:ft,MergeRequestDiscussions:yt,MergeRequestNotes:It,Pipelines:vt,PipelineSchedules:Rt,PipelineScheduleVariables:Ut,Projects:Ct,ProjectAccessRequests:jt,ProjectBadges:gt,ProjectCustomAttributes:bt,ProjectImportExport:_t,ProjectIssueBoards:wt,ProjectHooks:kt,ProjectMembers:qt,ProjectMilestones:Pt,ProjectSnippets:Tt,ProjectSnippetNotes:St,ProjectSnippetDiscussions:At,ProjectSnippetAwardEmojis:xt,ProtectedBranches:Et,ProtectedTags:Gt,ProjectVariables:Mt,Repositories:Lt,RepositoryFiles:Dt,Runners:Ot,Services:Bt,Tags:Nt,Todos:Ft,Triggers:Kt,PushRule:Vt,ApplicationSettings:zt,BroadcastMessages:Jt,Events:Ht,FeatureFlags:Wt,GeoNodes:Yt,GitignoreTemplates:Zt,GitLabCIYMLTemplates:$t,Keys:Qt,Licence:Xt,LicenceTemplates:te,Lint:ee,Namespaces:oe,NotificationSettings:ne,Markdown:re,PagesDomains:se,Search:pe,SidekiqMetrics:ie,Snippets:ue,SystemHooks:ce,Version:ae,Wikis:he}),le=l({Groups:j,GroupAccessRequests:G,GroupBadges:M,GroupCustomAttributes:L,GroupIssueBoards:D,GroupMembers:O,GroupMilestones:B,GroupProjects:N,GroupVariables:F,Epics:K,EpicIssues:V,EpicNotes:z,EpicDiscussions:J}),de=l({Users:H,UserCustomAttributes:W,UserEmails:Z,UserImpersonationTokens:$,UserKeys:X,UserGPGKeys:et}),fe=l({Branches:ot,Commits:nt,CommitDiscussions:rt,DeployKeys:pt,Deployments:st,Environments:it,Issues:ut,IssueAwardEmojis:ht,IssueNotes:ct,IssueDiscussions:at,Jobs:mt,Labels:lt,MergeRequests:dt,MergeRequestAwardEmojis:ft,MergeRequestDiscussions:yt,MergeRequestNotes:It,Pipelines:vt,PipelineSchedules:Rt,PipelineScheduleVariables:Ut,Projects:Ct,ProjectAccessRequests:jt,ProjectBadges:gt,ProjectCustomAttributes:bt,ProjectImportExport:_t,ProjectIssueBoards:wt,ProjectHooks:kt,ProjectMembers:qt,ProjectMilestones:Pt,ProjectSnippets:Tt,ProjectSnippetNotes:St,ProjectSnippetDiscussions:At,ProjectSnippetAwardEmojis:xt,ProtectedBranches:Et,ProtectedTags:Gt,ProjectVariables:Mt,Repositories:Lt,RepositoryFiles:Dt,Runners:Ot,Services:Bt,Tags:Nt,Triggers:Kt}),ye=l(me);export{le as GroupsBundle,de as UsersBundle,fe as ProjectsBundle,ye as Gitlab,j as Groups,G as GroupAccessRequests,M as GroupBadges,L as GroupCustomAttributes,D as GroupIssueBoards,O as GroupMembers,B as GroupMilestones,N as GroupProjects,F as GroupVariables,K as Epics,V as EpicIssues,z as EpicNotes,J as EpicDiscussions,H as Users,W as UserCustomAttributes,Z as UserEmails,$ as UserImpersonationTokens,X as UserKeys,et as UserGPGKeys,ot as Branches,nt as Commits,rt as CommitDiscussions,st as Deployments,pt as DeployKeys,it as Environments,ut as Issues,ct as IssueNotes,at as IssueDiscussions,ht as IssueAwardEmojis,mt as Jobs,lt as Labels,dt as MergeRequests,ft as MergeRequestAwardEmojis,yt as MergeRequestDiscussions,It as MergeRequestNotes,vt as Pipelines,Rt as PipelineSchedules,Ut as PipelineScheduleVariables,Ct as Projects,jt as ProjectAccessRequests,gt as ProjectBadges,bt as ProjectCustomAttributes,_t as ProjectImportExport,wt as ProjectIssueBoards,kt as ProjectHooks,qt as ProjectMembers,Pt as ProjectMilestones,Tt as ProjectSnippets,St as ProjectSnippetNotes,At as ProjectSnippetDiscussions,xt as ProjectSnippetAwardEmojis,Et as ProtectedBranches,Gt as ProtectedTags,Mt as ProjectVariables,Lt as Repositories,Dt as RepositoryFiles,Ot as Runners,Bt as Services,Nt as Tags,Ft as Todos,Kt as Triggers,Vt as PushRule,zt as ApplicationSettings,Jt as BroadcastMessages,Ht as Events,Wt as FeatureFlags,Yt as GeoNodes,Zt as GitignoreTemplates,$t as GitLabCIYMLTemplates,Qt as Keys,Xt as Licence,te as LicenceTemplates,ee as Lint,oe as Namespaces,ne as NotificationSettings,re as Markdown,se as PagesDomains,pe as Search,ie as SidekiqMetrics,ue as Snippets,ce as SystemHooks,ae as Version,he as Wikis};
import{decamelizeKeys as t}from"humps";import{stringify as e}from"query-string";import o from"got";import n from"form-data";import r from"randomstring";var s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function p(t,e){function o(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var i=function(){return(i=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function u(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&(o[n[r]]=t[n[r]])}return o}function c(t,e,o,n){return new(o||(o=Promise))(function(r,s){function p(t){try{u(n.next(t))}catch(t){s(t)}}function i(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){t.done?r(t.value):new o(function(e){e(t.value)}).then(p,i)}u((n=n.apply(t,e||[])).next())})}function a(t,e){var o,n,r,s,p={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;p;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return p.label++,{value:s[1],done:!1};case 5:p.label++,n=s[1],s=[0];continue;case 7:s=p.ops.pop(),p.trys.pop();continue;default:if(!(r=(r=p.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){p=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){p.label=s[1];break}if(6===s[0]&&p.label<r[1]){p.label=r[1],r=s;break}if(r&&p.label<r[2]){p.label=r[2],p.ops.push(s);break}r[2]&&p.ops.pop(),p.trys.pop();continue}s=e.call(t,p)}catch(t){s=[6,t],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}}function h(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,r,s=o.call(t),p=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)p.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return p}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function d(t){return function(e){var o=this;Object.entries(t||{}).forEach(function(t){var n=h(t,2),r=n[0],s=n[1];o[r]=new s(e)})}}function l(t,e,o){return/^[A-Z0-9_]+$/.test(t)?t:e(t,o)}function f(o,n,r){var s=r.body,p=r.query,u=r.sudo;return[n,{baseUrl:o.url,headers:i({sudo:u},o.headers),query:p&&e(t(p),{arrayFormat:"bracket"}),body:s&&t(s,l),rejectUnauthorized:o.rejectUnauthorized,json:!0}]}function y(t,e,o,n){return void 0===o&&(o={}),void 0===n&&(n=!1),c(this,void 0,void 0,function(){var r,s,p,c,h,d,l,I,v,R,U,C;return a(this,function(a){switch(a.label){case 0:return s=o.showPagination,p=o.maxPages,c=o.sudo,h=u(o,["showPagination","maxPages","sudo"]),d=f(t,e,{query:h,sudo:c}),[4,(r=t.requester).get.apply(r,m(d))];case 1:return l=a.sent(),I=l.headers,v=l.body,R={total:I["x-total"],next:I["x-next-page"]||null,current:I["x-page"]||null,previous:I["x-prev-page"]||null,perPage:I["x-per-page"],totalPages:I["x-total-pages"]},U=!p||R.current<p,!n&&h.page||!U||!R.next?[3,3]:[4,y(t,e,i({},o,{page:R.next}),!0)];case 2:return C=a.sent(),[2,m(v,C)];case 3:return[2,(h.page||U)&&s?{data:v,pagination:R}:v]}})})}function I(t,e,o){return void 0===o&&(o={}),c(this,void 0,void 0,function(){return a(this,function(n){return[2,y(t,e,o)]})})}function v(t,e,o){var n;return void 0===o&&(o={}),(n=t.requester).stream.apply(n,m(f(t,e,{query:o})))}function R(t,e,o){return void 0===o&&(o={}),c(this,void 0,void 0,function(){var n,r,s;return a(this,function(p){switch(p.label){case 0:return r=o.sudo,s=u(o,["sudo"]),[4,(n=t.requester).post.apply(n,m(f(t,e,{body:s,sudo:r})))];case 1:return[2,p.sent().body]}})})}function U(t,e,o){return c(this,void 0,void 0,function(){var n,r;return a(this,function(s){switch(s.label){case 0:return n={baseUrl:t.url,headers:t.headers,body:o,rejectUnauthorized:t.rejectUnauthorized},[4,t.requester.post(e,n)];case 1:r=s.sent();try{return[2,JSON.parse(r.body)]}catch(t){return[2,{}]}return[2]}})})}function C(t,e,o){return void 0===o&&(o={}),c(this,void 0,void 0,function(){var n,r;return a(this,function(s){switch(s.label){case 0:return o.sudo,r=u(o,["sudo"]),[4,(n=t.requester).put.apply(n,m(f(t,e,{body:r})))];case 1:return[2,s.sent().body]}})})}function j(t,e,o){return void 0===o&&(o={}),c(this,void 0,void 0,function(){var n,r;return a(this,function(s){switch(s.label){case 0:return o.sudo,r=u(o,["sudo"]),[4,(n=t.requester).delete.apply(n,m(f(t,e,{query:r})))];case 1:return[2,s.sent().body]}})})}var g=function(){return function(t){var e=t.token,n=t.jobToken,r=t.oauthToken,s=t.sudo,p=t.host,i=void 0===p?"https://gitlab.com":p,u=t.url,c=void 0===u?"":u,a=t.version,h=void 0===a?"v4":a,m=t.rejectUnauthorized,d=void 0===m||m,l=t.requester,f=void 0===l?o:l;this.url=[i,"api",h,c].join("/"),this.headers={},this.rejectUnauthorized=d,this.requester=f,r?this.headers.authorization="Bearer "+r:n?this.headers["job-token"]=n:e&&(this.headers["private-token"]=e),s&&(this.headers.Sudo=s)}}(),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"groups",t)},e.prototype.create=function(t){return R(this,"groups",t)},e.prototype.createLDAPLink=function(t,e,o,n,r){return R(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links",i({cn:e,groupAccess:o,provider:n},r))},e.prototype.edit=function(t,e){return C(this,"groups/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return j(this,"groups/"+encodeURIComponent(t),e)},e.prototype.removeLDAPLink=function(t,e,o){void 0===o&&(o={});var n=o.provider,r=u(o,["provider"]);return j(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links/"+(n?n+"/"+e:""+e),r)},e.prototype.search=function(t,e){return I(this,"groups",i({search:t},e))},e.prototype.show=function(t,e){return I(this,"groups/"+encodeURIComponent(t),e)},e.prototype.subgroups=function(t,e){return I(this,"groups/"+encodeURIComponent(t)+"/subgroups",e)},e.prototype.syncLDAP=function(t,e){return R(this,"groups/"+encodeURIComponent(t)+"/ldap_sync",e)},e}(g),_=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t){return I(this,encodeURIComponent(t)+"/access_requests")},e.prototype.request=function(t){return R(this,encodeURIComponent(t)+"/access_requests")},e.prototype.approve=function(t,e,o){var n=o.accessLevel,r=h([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/access_requests/"+r[1]+"/approve",{accessLevel:n})},e.prototype.deny=function(t,e){var o=h([t,e].map(encodeURIComponent),2);return j(this,o[0]+"/access_requests/"+o[1])},e}(g);function w(t,e,o,n,r){var s=h([t,o].map(encodeURIComponent),2),p=[s[0],e,s[1]];return r&&p.push("notes",encodeURIComponent(r)),p.push(encodeURIComponent("award_emoji")),n&&p.push(encodeURIComponent(n)),p.join("/")}var q=function(t){function e(e,o){var n=t.call(this,i({url:"projects"},o))||this;return n.resourceType=e,n}return p(e,t),e.prototype.all=function(t,e,o,n){return I(this,w(t,this.resourceType,e,null,o),n)},e.prototype.award=function(t,e,o,n,r){return R(this,w(t,this.resourceType,e,null,n),i({name:o},r))},e.prototype.remove=function(t,e,o,n,r){return j(this,w(t,this.resourceType,e,o,n),r)},e.prototype.show=function(t,e,o,n,r){return I(this,w(t,this.resourceType,e,o,n),r)},e}(g),k=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.add=function(t,e){return R(this,encodeURIComponent(t)+"/badges",e)},e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/badges",e)},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,n[0]+"/badges/"+n[1],o)},e.prototype.preview=function(t,e,o,n){return I(this,encodeURIComponent(t)+"/badges/render",i({linkUrl:e,imageUrl:o},n))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/badges/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/badges/"+n[1],o)},e}(g),P=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/custom_attributes",e)},e.prototype.set=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return C(this,r[0]+"/custom_attributes/"+r[1],i({value:o},n))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/custom_attributes/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/custom_attributes/"+n[1],o)},e}(g),T=function(t){function e(e,o,n){var r=t.call(this,i({url:e},n))||this;return r.resource2Type=o,r}return p(e,t),e.prototype.addNote=function(t,e,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=h([t,e,o,n].map(encodeURIComponent),4),u=p[0],c=p[1],a=p[2],m=p[3];return C(this,u+"/"+this.resource2Type+"/"+c+"/discussions/"+a+"/notes/"+m,i({body:r},s))},e.prototype.all=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return I(this,r+"/"+this.resource2Type+"/"+s+"/discussions",o)},e.prototype.create=function(t,e,o,n){if(!o)throw new Error("Missing required content argument");var r=h([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/"+this.resource2Type+"/"+p+"/discussions",i({body:o},n))},e.prototype.editNote=function(t,e,o,n,r){var s=h([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return C(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,{body:r})},e.prototype.removeNote=function(t,e,o,n,r){var s=h([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return j(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,r)},e.prototype.show=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return I(this,s+"/"+this.resource2Type+"/"+p+"/discussions/"+i,n)},e}(g),S=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/boards",e)},e.prototype.create=function(t,e,o){return R(this,encodeURIComponent(t)+"/boards",i({name:e},o))},e.prototype.createList=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/boards/"+r[1]+"/lists",i({labelId:o},n))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,n[0]+"/boards/"+n[1],o)},e.prototype.editList=function(t,e,o,n,r){var s=h([t,e,o].map(encodeURIComponent),3);return C(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],i({position:n},r))},e.prototype.lists=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/boards/"+n[1]+"/lists",o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/boards/"+n[1],o)},e.prototype.removeList=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return j(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/boards/"+n[1],o)},e.prototype.showList=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return I(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e}(g),A=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t,e,o){void 0===e&&(e=!1);var n=[encodeURIComponent(t),"members"];return e&&n.push("all"),I(this,n.join("/"),{options:o})},e.prototype.add=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/members",i({userId:p,accessLevel:o},n))},e.prototype.edit=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return C(this,r[0]+"/members/"+r[1],i({accessLevel:o},n))},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/members/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/members/"+n[1],o)},e}(g),E=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/milestones",e)},e.prototype.create=function(t,e,o){return R(this,encodeURIComponent(t)+"/milestones",i({title:e},o))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,n[0]+"/milestones/"+n[1],o)},e.prototype.issues=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1]+"/issues",o)},e.prototype.mergeRequests=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1]+"/merge_requests",o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1],o)},e}(g),x=function(t){function e(e,o,n){var r=t.call(this,i({url:e},n))||this;return r.resource2Type=o,r}return p(e,t),e.prototype.all=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return I(this,r+"/"+this.resource2Type+"/"+s+"/notes",o)},e.prototype.create=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/"+this.resource2Type+"/"+p+"/notes",i({body:o},n))},e.prototype.edit=function(t,e,o,n,r){var s=h([t,e,o].map(encodeURIComponent),3),p=s[0],u=s[1],c=s[2];return C(this,p+"/"+this.resource2Type+"/"+u+"/notes/"+c,i({body:n},r))},e.prototype.remove=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return j(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e.prototype.show=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return I(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e}(g),M=function(t){function e(e,o){return t.call(this,i({url:["templates",e].join("/")},o))||this}return p(e,t),e.prototype.all=function(t){return I(this,"",t)},e.prototype.show=function(t,e){return R(this,""+encodeURIComponent(t),e)},e}(g),G=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/variables",e)},e.prototype.create=function(t,e){return R(this,encodeURIComponent(t)+"/variables",e)},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,n[0]+"/variables/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/variables/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/variables/"+n[1],o)},e}(g),O=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(_),L=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(k),D=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(P),B=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(S),N=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(A),z=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(E),F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"groups/"+encodeURIComponent(t)+"/projects",e)},e.prototype.add=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"groups/"+n[0]+"/projects/"+n[1],o)},e}(g),K=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(G),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"groups/"+encodeURIComponent(t)+"/epics",e)},e.prototype.create=function(t,e,o){return R(this,"groups/"+encodeURIComponent(t)+"/epics",i({title:e},o))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"groups/"+n[0]+"/epics/"+n[1],o)},e}(g),J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"groups/"+n[0]+"/epics/"+n[1]+"/issues",o)},e.prototype.assign=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return C(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.edit=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return j(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return j(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e}(g),H=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return p(e,t),e}(x),W=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return p(e,t),e}(T),Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"users",t)},e.prototype.activities=function(t){return I(this,"users/activities",t)},e.prototype.projects=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/projects",e)},e.prototype.block=function(t,e){return R(this,"users/"+encodeURIComponent(t)+"/block",e)},e.prototype.create=function(t){return R(this,"users",t)},e.prototype.current=function(t){return I(this,"user",t)},e.prototype.edit=function(t,e){return C(this,"users/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/events",e)},e.prototype.session=function(t,e,o){return R(this,"session",i({email:t,password:e},o))},e.prototype.search=function(t,e){return I(this,"users",i({search:t},e))},e.prototype.show=function(t,e){return I(this,"users/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return j(this,"users/"+encodeURIComponent(t),e)},e.prototype.unblock=function(t,e){return R(this,"users/"+encodeURIComponent(t)+"/unblock",e)},e}(g),Z=function(t){function e(e){return t.call(this,"users",e)||this}return p(e,t),e}(P),$=function(t){return t?"users/"+encodeURIComponent(t)+"/emails":"user/emails"},Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=u(t,["userId"]);return I(this,$(e),o)},e.prototype.add=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]);return R(this,$(o),i({email:t},n))},e.prototype.show=function(t,e){return I(this,"user/emails/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]),r=encodeURIComponent(t);return j(this,$(o)+"/"+r,n)},e}(g),X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",e)},e.prototype.add=function(t,e,o,n,r){return R(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",i({name:e,expiresAt:n,scopes:o},r))},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e.prototype.revoke=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e}(g),tt=function(t){return t?"users/"+encodeURIComponent(t)+"/keys":"user/keys"},et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=u(t,["userId"]);return I(this,tt(e),o)},e.prototype.create=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=u(o,["userId"]);return R(this,tt(n),i({title:t,key:e},r))},e.prototype.show=function(t,e){return I(this,"user/keys/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]),r=encodeURIComponent(t);return j(this,tt(o)+"/"+r,n)},e}(g),ot=function(t){return t?"users/"+encodeURIComponent(t)+"/gpg_keys":"users/gpg_keys"},nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=u(t,["userId"]);return I(this,ot(e),o)},e.prototype.add=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=u(o,["userId"]);return R(this,ot(n),i({title:t,key:e},r))},e.prototype.show=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]),r=encodeURIComponent(t);return I(this,ot(o)+"/"+r,n)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]),r=encodeURIComponent(t);return j(this,ot(o)+"/"+r,n)},e}(g),rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/branches",e)},e.prototype.create=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/repository/branches",i({branch:e,ref:o},n))},e.prototype.protect=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/protected_branches",i({name:e},o))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},e}(g),st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits",e)},e.prototype.cherryPick=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/cherry_pick",i({branch:o},n))},e.prototype.comments=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",o)},e.prototype.create=function(t,e,o,n,r){return void 0===n&&(n=[]),R(this,"projects/"+encodeURIComponent(t)+"/repository/commits",i({branch:e,commitMessage:o,actions:n},r))},e.prototype.createComment=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",i({note:o},n))},e.prototype.diff=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/diff",o)},e.prototype.editStatus=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,o)},e.prototype.references=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/refs",o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e,o)},e.prototype.status=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/statuses",o)},e.prototype.mergeRequests=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/merge_requests")},e}(g),pt=function(t){function e(e){return t.call(this,"projects","commits",e)||this}return p(e,t),e}(T),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/deployments",e)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/deployments/"+n[1],o)},e}(g),ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.add=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/deploy_keys/"+n[1],o)},e.prototype.enable=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},e}(g),ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.stop=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},e}(g),at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.addSpentTime=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",i({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",i({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=u(t,["projectId"]);return I(this,e?"projects/"+encodeURIComponent(e)+"/issues":"issues",o)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/issues",e)},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.link=function(t,e,o,n,r){var s=h([t,e].map(encodeURIComponent),2),p=s[0],u=s[1],c=h([o,n].map(encodeURIComponent),2),a=c[0],m=c[1];return R(this,"projects/"+p+"/issues/"+u+"/links",i({targetProjectId:a,targetIssueId:m},r))},e.prototype.participants=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1]+"/participants",o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.subscribe=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.timeStats=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1]+"/time_stats",o)},e.prototype.unsubscribe=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(g),ht=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return p(e,t),e}(x),mt=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return p(e,t),e}(T),dt=function(t){function e(e){return t.call(this,"issues",e)||this}return p(e,t),e}(q),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.cancel=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/cancel",o)},e.prototype.downloadSingleArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=u(n,["stream"]),i=h([t,e].map(encodeURIComponent),2),c=i[0],a=i[1];return s?v(this,"projects/"+c+"/jobs/"+a+"/artifacts/"+o,p):I(this,"projects/"+c+"/jobs/"+a+"/artifacts/"+o,p)},e.prototype.downloadLatestArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=u(n,["stream"]),i=h([t,e,o].map(encodeURIComponent),3),c=i[0],a=i[1],m=i[2];return s?v(this,"projects/"+c+"/jobs/artifacts/"+a+"/download?job="+m,p):I(this,"projects/"+c+"/jobs/artifacts/"+a+"/download?job="+m,p)},e.prototype.downloadTraceFile=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1]+"/trace",o)},e.prototype.erase=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},e.prototype.keepArtifacts=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts/keep",o)},e.prototype.play=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/play",o)},e.prototype.retry=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/retry",o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1],o)},e.prototype.showPipelineJobs=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},e}(g),ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.edit=function(t,e,o){return C(this,"projects/"+encodeURIComponent(t)+"/labels",i({name:e},o))},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/labels",i({name:e},o))},e.prototype.subscribe=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.unsubscribe=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(g),yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.accept=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/merge",o)},e.prototype.addSpentTime=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",i({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",i({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=u(t,["projectId","groupId"]);return I(this,e?"projects/"+encodeURIComponent(e)+"/merge_requests":o?"groups/"+encodeURIComponent(o)+"/merge_requests":"merge_requests",n)},e.prototype.approve=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.approvals=function(t,e){var o=e.mergerequestIId,n=u(e,["mergerequestIId"]),r=h([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return I(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.approvers=function(t,e,o,n){var r=n.mergerequestIId,s=u(n,["mergerequestIId"]),p=h([t,r].map(encodeURIComponent),2),c=p[0],a=p[1];return C(this,r?"projects/"+c+"/merge_requests/"+a+"/approvals":"projects/"+c+"/approvals",i({approverIds:e,approverGroupIds:o},s))},e.prototype.cancelOnPipelineSucess=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/cancel_merge_when_pipeline_succeeds",o)},e.prototype.changes=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/changes",o)},e.prototype.closesIssues=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/closes_issues",o)},e.prototype.commits=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/commits",o)},e.prototype.create=function(t,e,o,n,r){var s=encodeURIComponent(t);return R(this,"projects/"+s+"/merge_requests",i({id:s,sourceBranch:e,targetBranch:o,title:n},r))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.editApprovals=function(t,e){var o=e.mergerequestIId,n=u(e,["mergerequestIId"]),r=h([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.pipelines=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/pipelines",o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.timeStats=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/time_stats",o)},e.prototype.version=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return I(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/versions/"+r[2],n)},e.prototype.versions=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/versions",o)},e.prototype.unapprove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.unsubscribe=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},e}(g),It=function(t){function e(e){return t.call(this,"merge_requests",e)||this}return p(e,t),e}(q),vt=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return p(e,t),e}(T),Rt=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return p(e,t),e}(x),Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines",e)},e.prototype.create=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pipeline",i({ref:e},o))},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e,o)},e.prototype.retry=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/retry",o)},e.prototype.cancel=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/cancel",o)},e.prototype.showJobs=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/jobs",o)},e}(g),Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",e)},e.prototype.create=function(t,e,o,n,r){return R(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",i({description:e,ref:o,cron:n},r))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.takeOwnership=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},e}(g),jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.create=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.edit=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return C(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.show=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return I(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return j(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e}(g),gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"projects",t)},e.prototype.archive=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/archive",e)},e.prototype.create=function(t){var e=t.userId,o=u(t,["userId"]);return R(this,e?"projects/user/"+encodeURIComponent(e):"projects",o)},e.prototype.edit=function(t,e){return C(this,"projects/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/events",e)},e.prototype.fork=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/fork",e)},e.prototype.forks=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/forks",e)},e.prototype.languages=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/languages",e)},e.prototype.mirrorPull=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/mirror/pull",e)},e.prototype.remove=function(t,e){return j(this,"projects/"+encodeURIComponent(t),e)},e.prototype.search=function(t){return I(this,"projects",{search:t})},e.prototype.share=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/share",i({groupId:e,groupAccess:o},n))},e.prototype.show=function(t,e){return I(this,"projects/"+encodeURIComponent(t),e)},e.prototype.star=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/star",e)},e.prototype.statuses=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,i({state:o},n))},e.prototype.transfer=function(t,e){return C(this,"projects/"+encodeURIComponent(t)+"/transfer",{namespace:e})},e.prototype.unarchive=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/unarchive",e)},e.prototype.unshare=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/share"+n[1],o)},e.prototype.unstar=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/unstar",e)},e.prototype.updatePushRule=function(t,e){return C(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.upload=function(t,e,o){void 0===o&&(o={});var s=encodeURIComponent(t),p=new n,i={filename:r.generate(8),contentType:"application/octet-stream"};return p.append("file",e,Object.assign(i,o)),U(this,"projects/"+s+"/uploads",p)},e}(g),bt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(_),_t=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(k),wt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(P),qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.download=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/export/download",e)},e.prototype.exportStatus=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/export",e)},e.prototype.import=function(t,e){var o=new n;return o.append("file",t,{filename:e,contentType:"application/octet-stream"}),U(this,"projects/import",o)},e.prototype.importStatus=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/import",e)},e.prototype.schedule=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/export",e)},e}(g),kt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(S),Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/hooks",e)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e.prototype.add=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/hooks",i({url:e},o))},e.prototype.edit=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+r[0]+"/hooks/"+r[1],i({url:o},n))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e}(g),Tt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(A),St=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(E),At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/snippets",e)},e.prototype.content=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1]+"/raw",o)},e.prototype.create=function(t,e,o,n,r,s){return R(this,"projects/"+encodeURIComponent(t)+"/snippets",i({title:e,fileName:o,code:n,visibility:r},s))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.userAgentDetails=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},e}(g),Et=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return p(e,t),e}(x),xt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return p(e,t),e}(T),Mt=function(t){function e(e){return t.call(this,"issues",e)||this}return p(e,t),e}(q),Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/protected_branches",e)},e.prototype.protect=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/protected_branches",i({name:e},o))},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e}(g),Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/protected_tags",e)},e.prototype.protect=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/protected_tags",i({name:e},o))},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e}(g),Lt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(G),Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.compare=function(t,e,o,n){return I(this,"projects/"+encodeURIComponent(t)+"/repository/compare",i({from:e,to:o},n))},e.prototype.contributors=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/contributors",e)},e.prototype.showArchive=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/archive",e)},e.prototype.showBlob=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e,o)},e.prototype.showBlobRaw=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e+"/raw",o)},e.prototype.tree=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/tree",e)},e}(g),Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.create=function(t,e,o,n,r){var s=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+s[0]+"/repository/files/"+s[1],i({branch:o,content:n},r))},e.prototype.edit=function(t,e,o,n,r){var s=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+s[0]+"/repository/files/"+s[1],i({branch:o,content:n},r))},e.prototype.remove=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+r[0]+"/repository/files/"+r[1],i({branch:o},n))},e.prototype.show=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/repository/files/"+r[1],i({ref:o},n))},e.prototype.showRaw=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",i({ref:o},n))},e}(g),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){var e=t.projectId,o=u(t,["projectId"]);return I(this,e?"projects/"+encodeURIComponent(e)+"/runners":"runners/all",o)},e.prototype.allOwned=function(t){return I(this,"runners",t)},e.prototype.edit=function(t,e){return C(this,"runners/"+encodeURIComponent(t),e)},e.prototype.enable=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return R(this,"projects/"+r+"/runners",i({runnerId:s},o))},e.prototype.disable=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/runners/"+n[1],o)},e.prototype.jobs=function(t,e){return I(this,"runners/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.remove=function(t,e){return j(this,"runners/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return I(this,"runners/"+encodeURIComponent(t),e)},e}(g),zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.edit=function(t,e,o){return C(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e}(g),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e}(g),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"todos",t)},e.prototype.create=function(t,e,o){return R(this,"projects/"+t+"/merge_requests/"+e+"/todo",o)},e.prototype.done=function(t){var e=t.todoId,o="mark_as_done";return e&&(o=e+"/"+o),j(this,"todos/"+o,u(t,["todoId"]))},e}(g),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.add=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.pipeline=function(t,e){if(!e.ref)throw new Error("Missing required property: ref");if(!e.token)throw new Error("Missing required property: token");return R(this,"projects/"+encodeURIComponent(t)+"/trigger/pipeline",e)},e}(g),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.edit=function(t,e){e.upsert;var o=u(e,["upsert"]),n=encodeURIComponent(t);try{return C(this,"projects/"+n+"/push_rule",o)}catch(e){if(e.message.includes("exist"))return this.create(t,o);throw e}},e.prototype.remove=function(t,e){return j(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.show=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e}(g),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"application/settings",t)},e.prototype.edit=function(t){return C(this,"application/settings",t)},e}(g),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"broadcast_messages",t)},e.prototype.create=function(t){return R(this,"broadcast_messages",t)},e.prototype.edit=function(t,e){return C(this,"broadcast_messages/"+encodeURIComponent(t),e)},e.prototype.remove=function(t){return j(this,"broadcast_messages/"+encodeURIComponent(t))},e.prototype.show=function(t,e){return I(this,"broadcast_messages/"+encodeURIComponent(t),e)},e}(g),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"events",t)},e}(g),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"features",t)},e.prototype.set=function(t,e){return R(this,"features/"+encodeURIComponent(t),e)},e}(g),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"geo_nodes",t)},e.prototype.create=function(t,e){return R(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.edit=function(t,e){return C(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.failures=function(t){return R(this,"geo_nodes/current/failures",t)},e.prototype.repair=function(t,e){return j(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return I(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.status=function(t,e){return I(this,"geo_nodes/"+encodeURIComponent(t)+"/status",e)},e.prototype.statuses=function(t){return I(this,"geo_nodes/statuses",t)},e}(g),Qt=function(t){function e(e){return t.call(this,"gitignores",e)||this}return p(e,t),e}(M),Xt=function(t){function e(e){return t.call(this,"gitlab_ci_ymls",e)||this}return p(e,t),e}(M),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.show=function(t,e){return I(this,"keys/"+encodeURIComponent(t),e)},e}(g),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"licence",t)},e.prototype.create=function(t){return R(this,"licence",t)},e}(g),oe=function(t){function e(e){return t.call(this,"licences",e)||this}return p(e,t),e}(M),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.lint=function(t,e){return R(this,"ci/lint",i({content:t},e))},e}(g),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"namespaces",t)},e.prototype.show=function(t,e){return I(this,"namespaces/"+encodeURIComponent(t),e)},e}(g),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=t.groupId,n=u(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),I(this,r+"notification_settings",n)},e.prototype.edit=function(t){void 0===t&&(t={});var e=t.projectId,o=t.groupId,n=u(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),C(this,r+"notification_settings",n)},e}(g),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t,e){return R(this,"markdown",i({text:t},e))},e}(g),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=u(t,["projectId"]);return I(this,(e?"projects/"+encodeURIComponent(e)+"/":"")+"pages/domains",o)},e.prototype.create=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pages/domains",i({domain:e},o))},e.prototype.edit=function(t,e,o){return C(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e}(g),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e,o){var n=o.projectId,r=o.groupId,s=u(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),I(this,p+"search",i({scope:t,search:e},s))},e}(g),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.queueMetrics=function(){return I(this,"sidekiq/queue_metrics")},e.prototype.processMetrics=function(){return I(this,"sidekiq/process_metrics")},e.prototype.jobStats=function(){return I(this,"sidekiq/job_stats")},e.prototype.compoundMetrics=function(){return I(this,"sidekiq/compound_metrics")},e}(g),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,t.public?"snippets/public":"snippets",u(t,["public"]))},e.prototype.content=function(t,e){return I(this,"snippets/"+encodeURIComponent(t)+"/raw",e)},e.prototype.create=function(t,e,o,n,r){return R(this,"snippets",i({title:t,fileName:e,content:o,visibility:n},r))},e.prototype.edit=function(t,e){return C(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return j(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return I(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.userAgentDetails=function(t,e){return I(this,"snippets/"+encodeURIComponent(t)+"/user_agent_detail",e)},e}(g),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.add=function(t,e){return R(this,"hooks",i({url:t},e))},e.prototype.all=function(t){return I(this,"hooks",t)},e.prototype.edit=function(t,e,o){return C(this,"hooks/"+encodeURIComponent(t),i({url:e},o))},e.prototype.remove=function(t,e){return j(this,"hooks/"+encodeURIComponent(t),e)},e}(g),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.show=function(t){return I(this,"version",t)},e}(g),de=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.edit=function(t,e,o){return C(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e}(g),le=Object.freeze({Groups:b,GroupAccessRequests:O,GroupBadges:L,GroupCustomAttributes:D,GroupIssueBoards:B,GroupMembers:N,GroupMilestones:z,GroupProjects:F,GroupVariables:K,Epics:V,EpicIssues:J,EpicNotes:H,EpicDiscussions:W,Users:Y,UserCustomAttributes:Z,UserEmails:Q,UserImpersonationTokens:X,UserKeys:et,UserGPGKeys:nt,Branches:rt,Commits:st,CommitDiscussions:pt,Deployments:it,DeployKeys:ut,Environments:ct,Issues:at,IssueNotes:ht,IssueDiscussions:mt,IssueAwardEmojis:dt,Jobs:lt,Labels:ft,MergeRequests:yt,MergeRequestAwardEmojis:It,MergeRequestDiscussions:vt,MergeRequestNotes:Rt,Pipelines:Ut,PipelineSchedules:Ct,PipelineScheduleVariables:jt,Projects:gt,ProjectAccessRequests:bt,ProjectBadges:_t,ProjectCustomAttributes:wt,ProjectImportExport:qt,ProjectIssueBoards:kt,ProjectHooks:Pt,ProjectMembers:Tt,ProjectMilestones:St,ProjectSnippets:At,ProjectSnippetNotes:Et,ProjectSnippetDiscussions:xt,ProjectSnippetAwardEmojis:Mt,ProtectedBranches:Gt,ProtectedTags:Ot,ProjectVariables:Lt,Repositories:Dt,RepositoryFiles:Bt,Runners:Nt,Services:zt,Tags:Ft,Todos:Kt,Triggers:Vt,PushRule:Jt,ApplicationSettings:Ht,BroadcastMessages:Wt,Events:Yt,FeatureFlags:Zt,GeoNodes:$t,GitignoreTemplates:Qt,GitLabCIYMLTemplates:Xt,Keys:te,Licence:ee,LicenceTemplates:oe,Lint:ne,Namespaces:re,NotificationSettings:se,Markdown:pe,PagesDomains:ie,Search:ue,SidekiqMetrics:ce,Snippets:ae,SystemHooks:he,Version:me,Wikis:de}),fe=d({Groups:b,GroupAccessRequests:O,GroupBadges:L,GroupCustomAttributes:D,GroupIssueBoards:B,GroupMembers:N,GroupMilestones:z,GroupProjects:F,GroupVariables:K,Epics:V,EpicIssues:J,EpicNotes:H,EpicDiscussions:W}),ye=d({Users:Y,UserCustomAttributes:Z,UserEmails:Q,UserImpersonationTokens:X,UserKeys:et,UserGPGKeys:nt}),Ie=d({Branches:rt,Commits:st,CommitDiscussions:pt,DeployKeys:ut,Deployments:it,Environments:ct,Issues:at,IssueAwardEmojis:dt,IssueNotes:ht,IssueDiscussions:mt,Jobs:lt,Labels:ft,MergeRequests:yt,MergeRequestAwardEmojis:It,MergeRequestDiscussions:vt,MergeRequestNotes:Rt,Pipelines:Ut,PipelineSchedules:Ct,PipelineScheduleVariables:jt,Projects:gt,ProjectAccessRequests:bt,ProjectBadges:_t,ProjectCustomAttributes:wt,ProjectImportExport:qt,ProjectIssueBoards:kt,ProjectHooks:Pt,ProjectMembers:Tt,ProjectMilestones:St,ProjectSnippets:At,ProjectSnippetNotes:Et,ProjectSnippetDiscussions:xt,ProjectSnippetAwardEmojis:Mt,ProtectedBranches:Gt,ProtectedTags:Ot,ProjectVariables:Lt,Repositories:Dt,RepositoryFiles:Bt,Runners:Nt,Services:zt,Tags:Ft,Triggers:Vt}),ve=d(le);export{fe as GroupsBundle,ye as UsersBundle,Ie as ProjectsBundle,ve as Gitlab,b as Groups,O as GroupAccessRequests,L as GroupBadges,D as GroupCustomAttributes,B as GroupIssueBoards,N as GroupMembers,z as GroupMilestones,F as GroupProjects,K as GroupVariables,V as Epics,J as EpicIssues,H as EpicNotes,W as EpicDiscussions,Y as Users,Z as UserCustomAttributes,Q as UserEmails,X as UserImpersonationTokens,et as UserKeys,nt as UserGPGKeys,rt as Branches,st as Commits,pt as CommitDiscussions,it as Deployments,ut as DeployKeys,ct as Environments,at as Issues,ht as IssueNotes,mt as IssueDiscussions,dt as IssueAwardEmojis,lt as Jobs,ft as Labels,yt as MergeRequests,It as MergeRequestAwardEmojis,vt as MergeRequestDiscussions,Rt as MergeRequestNotes,Ut as Pipelines,Ct as PipelineSchedules,jt as PipelineScheduleVariables,gt as Projects,bt as ProjectAccessRequests,_t as ProjectBadges,wt as ProjectCustomAttributes,qt as ProjectImportExport,kt as ProjectIssueBoards,Pt as ProjectHooks,Tt as ProjectMembers,St as ProjectMilestones,At as ProjectSnippets,Et as ProjectSnippetNotes,xt as ProjectSnippetDiscussions,Mt as ProjectSnippetAwardEmojis,Gt as ProtectedBranches,Ot as ProtectedTags,Lt as ProjectVariables,Dt as Repositories,Bt as RepositoryFiles,Nt as Runners,zt as Services,Ft as Tags,Kt as Todos,Vt as Triggers,Jt as PushRule,Ht as ApplicationSettings,Wt as BroadcastMessages,Yt as Events,Zt as FeatureFlags,$t as GeoNodes,Qt as GitignoreTemplates,Xt as GitLabCIYMLTemplates,te as Keys,ee as Licence,oe as LicenceTemplates,ne as Lint,re as Namespaces,se as NotificationSettings,pe as Markdown,ie as PagesDomains,ue as Search,ce as SidekiqMetrics,ae as Snippets,he as SystemHooks,me as Version,de as Wikis};

@@ -9,3 +9,3 @@ import { BaseServiceOptions } from '../../types/types';

readonly rejectUnauthorized: boolean;
constructor({ token, oauthToken, sudo, host, url, version, rejectUnauthorized, requester, }: BaseServiceOptions);
constructor({ token, jobToken, oauthToken, sudo, host, url, version, rejectUnauthorized, requester, }: BaseServiceOptions);
}

@@ -0,1 +1,2 @@

import FormData from 'form-data';
import { PaginatedRequestOptions, BaseRequestOptions, GetResponse, PostResponse, PutResponse, DelResponse } from '../../types/types';

@@ -5,3 +6,4 @@ export declare function get(service: any, endpoint: string, options?: PaginatedRequestOptions): Promise<GetResponse>;

export declare function post(service: any, endpoint: string, options?: BaseRequestOptions): Promise<PostResponse>;
export declare function postData(service: any, endpoint: string, body: FormData): Promise<PostResponse>;
export declare function put(service: any, endpoint: string, options?: BaseRequestOptions): Promise<PutResponse>;
export declare function del(service: any, endpoint: string, options?: BaseRequestOptions): Promise<DelResponse>;

@@ -6,3 +6,3 @@ import { BaseService } from '../infrastructure';

exportStatus(projectId: ProjectId, options?: Sudo): Promise<import("../../types/types").GetResponse>;
import(content: string, path: string, options?: BaseRequestOptions): Promise<object>;
import(content: string, path: string): Promise<object>;
importStatus(projectId: ProjectId, options?: Sudo): Promise<import("../../types/types").GetResponse>;

@@ -9,0 +9,0 @@ schedule(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>;

import { BaseService } from '../infrastructure';
import { PaginatedRequestOptions, BaseRequestOptions, EventOptions, Sudo, ProjectId, UserId, GroupId, NamespaceId } from '../../types/types';
import { PaginatedRequestOptions, BaseRequestOptions, EventOptions, Sudo, ProjectId, UserId, GroupId, NamespaceId, ProjectUploadMetadata } from '../../types/types';
declare class Projects extends BaseService {

@@ -26,6 +26,4 @@ all(options?: PaginatedRequestOptions): Promise<import("../../types/types").GetResponse>;

updatePushRule(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>;
upload(projectId: any, content: any, { fileName }: {
fileName?: string;
}): Promise<object>;
upload(projectId: any, content: any, metadata?: ProjectUploadMetadata): Promise<object>;
}
export default Projects;

@@ -9,3 +9,4 @@ import { BaseService } from '../infrastructure';

show(projectId: ProjectId, triggerId: TriggerId, options?: Sudo): Promise<import("../../types/types").GetResponse>;
pipeline(projectId: ProjectId, options: BaseRequestOptions): Promise<object>;
}
export default Triggers;

@@ -17,3 +17,3 @@ {

},
"version": "5.0.0-rc.8",
"version": "5.0.0-rc.9",
"main": "dist/index.js",

@@ -48,6 +48,7 @@ "module": "dist/index.es.js",

"dependencies": {
"@types/form-data": "^2.2.1",
"form-data": "^2.3.3",
"got": "^9.5.0",
"humps": "^2.0.1",
"ky": "^0.6.0",
"ky": "^0.9.0",
"query-string": "^6.2.0",

@@ -61,8 +62,8 @@ "randomstring": "^1.1.5"

"@types/humps": "^1.1.2",
"@types/jest": "^23.3.12",
"@types/jest": "^24.0.9",
"codecov": "^3.1.0",
"cz-conventional-changelog": "^2.1.0",
"husky": "^1.3.1",
"jest": "^23.6.0",
"jest-extended": "^0.11.0",
"jest": "^24.1.0",
"jest-extended": "^0.11.1",
"jest-tap-reporter": "^1.9.0",

@@ -75,5 +76,5 @@ "prettier": "^1.15.3",

"rollup-plugin-terser": "^4.0.2",
"rollup-plugin-typescript2": "^0.18.1",
"rollup-plugin-typescript2": "^0.19.3",
"semantic-release": "^15.13.2",
"ts-jest": "^23.10.5",
"ts-jest": "^24.0.0",
"tslint": "^5.12.0",

@@ -94,4 +95,4 @@ "tslint-config-airbnb": "^5.11.1",

"engines": {
"node": ">=8.9.0"
"node": ">=10.0.0"
}
}

@@ -145,3 +145,3 @@ [![npm @latest](https://img.shields.io/npm/v/gitlab.svg)](https://www.npmjs.com/package/gitlab)

```javascript
// ES6 (>=node 8.0.0)
// ES6 (>=node 10.0.0)
import { Gitlab } from 'gitlab';

@@ -166,2 +166,9 @@

// You can also use a CI job token:
const api = new Gitlab({
url: 'http://example.com', // Defaults to https://gitlab.com
jobToken: process.env.CI_JOB_TOKEN
})
```

@@ -276,2 +283,24 @@

#### Handling HTTPS certificates
If your Gitlab server is running via HTTPS, the proper way to pass in your certificates is via a `NODE_EXTRA_CA_CERTS` environment key, like this:
```js
"scripts": {
"start": "NODE_EXTRA_CA_CERTS=./secrets/3ShapeCA.pem node bot.js"
},
```
Although we don't encourage it, if you absolutely must allow insecure certificates, you can instantiate the API with `rejectAuthorized` set to `false` like this:
```
const api = new Gitlab({
url: '...',
token: '...',
rejectUnauthorized: false
})
```
> **NOTE**: _Using `process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'` will not work with the `gitlab` library. The `rejectUnauthorized` key is the only way to allow insecure certificates to be bypassed._
### Examples

@@ -386,3 +415,3 @@ Once you have your library instantiated, you can utilize many of the API's functionality:

const service = new NotificationSettings({
url: 'http://example.com', // Defaults to https://gitlab.com
host: 'http://example.com', // Defaults to https://gitlab.com
token: 'abcdefghij123456' // Can be created in your profile.

@@ -509,3 +538,3 @@ sudo: 8 // Can be the user ID or a username

- [Isaac Ouellet Therrien](https://github.com/yonguelink)
- [Pavel Birukov](https://github.com/r00ger)
- [Pavel Birukov](https://github.com/pablobirukov)
- [Sharma-Rajat](https://github.com/Sharma-Rajat)

@@ -531,2 +560,12 @@ - [Joseph Petersen](https://github.com/casz)

- [Maximilian Krauß](https://github.com/maximilian-krauss)
- [Evolution Gaming](https://github.com/evolution-gaming)
- [WEBER Logan](https://github.com/Neonox31)
- [Anton Zhukov](https://github.com/MrCheater)
- [Nic Loomans](https://github.com/beaverusiv)
- [Jennifer Everhart]()
- [Carl Kittelberger](https://github.com/icedream)
- [Patrik Votoček](https://github.com/Vrtak-CZ)
- [Kyrylo Fedorov](https://github.com/Kyr)
- [Claudio Vellage](https://github.com/jdalrymple/LRH539)
- [Seb0uil](https://github.com/seb0uil)

@@ -533,0 +572,0 @@ ## License

@@ -60,2 +60,3 @@ declare global {

token?: string;
jobToken?: string;
host?: string;

@@ -221,1 +222,7 @@ url?: string;

export type ImpersonationTokenScope = 'api' | 'read_user';
// Project upload metadata
export interface ProjectUploadMetadata {
filename?: string,
contentType?: string,
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc