Comparing version 6.0.0 to 6.1.0
@@ -0,12 +1,23 @@ | ||
# [6.1.0](https://github.com/jdalrymple/node-gitlab/compare/6.0.0...6.1.0) (2019-06-06) | ||
### Bug Fixes | ||
* Make the options argument optional [#336](https://github.com/jdalrymple/node-gitlab/issues/336) ([cf3c17e](https://github.com/jdalrymple/node-gitlab/commit/cf3c17e)) | ||
### Features | ||
* Adding support for ReleaseLinks API ([d6a2248](https://github.com/jdalrymple/node-gitlab/commit/d6a2248)) | ||
* Adding support for Releases API [#295](https://github.com/jdalrymple/node-gitlab/issues/295) ([7191e81](https://github.com/jdalrymple/node-gitlab/commit/7191e81)) | ||
# [6.0.0](https://github.com/jdalrymple/node-gitlab/compare/5.0.2...6.0.0) (2019-06-02) | ||
### Code Refactoring | ||
* **RepositoryFiles:** Missing a required argument from the function headers ([e13c593](https://github.com/jdalrymple/node-gitlab/commit/e13c593)) | ||
- **RepositoryFiles:** Missing a required argument from the function headers ([e13c593](https://github.com/jdalrymple/node-gitlab/commit/e13c593)) | ||
### BREAKING CHANGES | ||
* **RepositoryFiles:** create, edit and remove functions now require the commitMessage function argument | ||
- **RepositoryFiles:** create, edit and remove functions now require the commitMessage function argument | ||
@@ -13,0 +24,0 @@ ## [5.0.2](https://github.com/jdalrymple/node-gitlab/compare/5.0.1...5.0.2) (2019-05-31) |
@@ -63,2 +63,4 @@ /// <reference types="../typings" /> | ||
ProjectVariables: typeof APIServices.ProjectVariables; | ||
Releases: typeof APIServices.Releases; | ||
ReleaseLinks: typeof APIServices.ReleaseLinks; | ||
Repositories: typeof APIServices.Repositories; | ||
@@ -70,3 +72,3 @@ RepositoryFiles: typeof APIServices.RepositoryFiles; | ||
Triggers: typeof APIServices.Triggers; | ||
}, "Branches" | "Commits" | "CommitDiscussions" | "DeployKeys" | "Deployments" | "Environments" | "Issues" | "IssueAwardEmojis" | "IssueNotes" | "IssueDiscussions" | "Jobs" | "Labels" | "MergeRequests" | "MergeRequestAwardEmojis" | "MergeRequestDiscussions" | "MergeRequestNotes" | "Pipelines" | "PipelineSchedules" | "PipelineScheduleVariables" | "Projects" | "ProjectAccessRequests" | "ProjectBadges" | "ProjectCustomAttributes" | "ProjectImportExport" | "ProjectIssueBoards" | "ProjectHooks" | "ProjectMembers" | "ProjectMilestones" | "ProjectSnippets" | "ProjectSnippetNotes" | "ProjectSnippetDiscussions" | "ProjectSnippetAwardEmojis" | "ProtectedBranches" | "ProtectedTags" | "ProjectVariables" | "Repositories" | "RepositoryFiles" | "Runners" | "Services" | "Tags" | "Triggers">; | ||
export declare const Gitlab: Bundle<typeof APIServices, "Groups" | "GroupAccessRequests" | "GroupBadges" | "GroupCustomAttributes" | "GroupIssueBoards" | "GroupMembers" | "GroupMilestones" | "GroupProjects" | "GroupVariables" | "Epics" | "EpicIssues" | "EpicNotes" | "EpicDiscussions" | "Users" | "UserCustomAttributes" | "UserEmails" | "UserImpersonationTokens" | "UserKeys" | "UserGPGKeys" | "Branches" | "Commits" | "CommitDiscussions" | "DeployKeys" | "Deployments" | "Environments" | "Issues" | "IssueAwardEmojis" | "IssueNotes" | "IssueDiscussions" | "Jobs" | "Labels" | "MergeRequests" | "MergeRequestAwardEmojis" | "MergeRequestDiscussions" | "MergeRequestNotes" | "Pipelines" | "PipelineSchedules" | "PipelineScheduleVariables" | "Projects" | "ProjectAccessRequests" | "ProjectBadges" | "ProjectCustomAttributes" | "ProjectImportExport" | "ProjectIssueBoards" | "ProjectHooks" | "ProjectMembers" | "ProjectMilestones" | "ProjectSnippets" | "ProjectSnippetNotes" | "ProjectSnippetDiscussions" | "ProjectSnippetAwardEmojis" | "ProtectedBranches" | "ProtectedTags" | "ProjectVariables" | "Repositories" | "RepositoryFiles" | "Runners" | "Services" | "Tags" | "Triggers" | "Todos" | "PushRule" | "ApplicationSettings" | "BroadcastMessages" | "Events" | "FeatureFlags" | "GeoNodes" | "GitignoreTemplates" | "GitLabCIYMLTemplates" | "Keys" | "Licence" | "LicenceTemplates" | "Lint" | "Namespaces" | "NotificationSettings" | "Markdown" | "PagesDomains" | "Search" | "SidekiqMetrics" | "Snippets" | "SystemHooks" | "Version" | "Wikis">; | ||
}, "Branches" | "Commits" | "CommitDiscussions" | "DeployKeys" | "Deployments" | "Environments" | "Issues" | "IssueAwardEmojis" | "IssueNotes" | "IssueDiscussions" | "Jobs" | "Labels" | "MergeRequests" | "MergeRequestAwardEmojis" | "MergeRequestDiscussions" | "MergeRequestNotes" | "Pipelines" | "PipelineSchedules" | "PipelineScheduleVariables" | "Projects" | "ProjectAccessRequests" | "ProjectBadges" | "ProjectCustomAttributes" | "ProjectImportExport" | "ProjectIssueBoards" | "ProjectHooks" | "ProjectMembers" | "ProjectMilestones" | "ProjectSnippets" | "ProjectSnippetNotes" | "ProjectSnippetDiscussions" | "ProjectSnippetAwardEmojis" | "ProtectedBranches" | "ProtectedTags" | "ProjectVariables" | "Releases" | "ReleaseLinks" | "Repositories" | "RepositoryFiles" | "Runners" | "Services" | "Tags" | "Triggers">; | ||
export declare const Gitlab: Bundle<typeof APIServices, "Groups" | "GroupAccessRequests" | "GroupBadges" | "GroupCustomAttributes" | "GroupIssueBoards" | "GroupMembers" | "GroupMilestones" | "GroupProjects" | "GroupVariables" | "Epics" | "EpicIssues" | "EpicNotes" | "EpicDiscussions" | "Users" | "UserCustomAttributes" | "UserEmails" | "UserImpersonationTokens" | "UserKeys" | "UserGPGKeys" | "Branches" | "Commits" | "CommitDiscussions" | "DeployKeys" | "Deployments" | "Environments" | "Issues" | "IssueAwardEmojis" | "IssueNotes" | "IssueDiscussions" | "Jobs" | "Labels" | "MergeRequests" | "MergeRequestAwardEmojis" | "MergeRequestDiscussions" | "MergeRequestNotes" | "Pipelines" | "PipelineSchedules" | "PipelineScheduleVariables" | "Projects" | "ProjectAccessRequests" | "ProjectBadges" | "ProjectCustomAttributes" | "ProjectImportExport" | "ProjectIssueBoards" | "ProjectHooks" | "ProjectMembers" | "ProjectMilestones" | "ProjectSnippets" | "ProjectSnippetNotes" | "ProjectSnippetDiscussions" | "ProjectSnippetAwardEmojis" | "ProtectedBranches" | "ProtectedTags" | "ProjectVariables" | "Releases" | "ReleaseLinks" | "Repositories" | "RepositoryFiles" | "Runners" | "Services" | "Tags" | "Triggers" | "Todos" | "PushRule" | "ApplicationSettings" | "BroadcastMessages" | "Events" | "FeatureFlags" | "GeoNodes" | "GitignoreTemplates" | "GitLabCIYMLTemplates" | "Keys" | "Licence" | "LicenceTemplates" | "Lint" | "Namespaces" | "NotificationSettings" | "Markdown" | "PagesDomains" | "Search" | "SidekiqMetrics" | "Snippets" | "SystemHooks" | "Version" | "Wikis">; |
@@ -1,1 +0,1 @@ | ||
import{shim as t}from"universal-url";import e from"li";import{camelizeKeys as o,decamelizeKeys as n}from"humps";import r from"ky-universal";import{stringify as s}from"query-string";import p from"form-data";import i from"randomstring";var u=function(t,e){return(u=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 c(t,e){function o(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var a=function(){return(a=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 h(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 m(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 d(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 l(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 f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}function y(t,n,r){return void 0===r&&(r={}),m(this,void 0,void 0,function(){var s,p,i,u,c,a,m,l,I,v,R;return d(this,function(d){switch(d.label){case 0:return s=r.showPagination,p=r.maxPages,i=r.sudo,u=h(r,["showPagination","maxPages","sudo"]),[4,t.requester.get(t,n,{query:u||{},sudo:i})];case 1:return c=d.sent(),a=c.headers,m=c.body,l={total:a["x-total"],next:parseInt(a["x-next-page"],10)||null,current:parseInt(a["x-page"],10)||1,previous:a["x-prev-page"]||null,perPage:a["x-per-page"],totalPages:a["x-total-pages"]},I=!p||l.current<p,t.camelize&&(m=o(m)),!u.page&&I&&l.next?(v=e.parse(a.link).next,[4,y(t,v.replace(/.+\/api\/v\d\//,""),{maxPages:p,sudo:i,showPagination:!0})]):[3,3];case 2:R=d.sent(),l=R.pagination,m=f(m,R.data),d.label=3;case 3:return[2,(u.page||m.length>0)&&s?{data:m,pagination:l}:m]}})})}function I(t,e,o){if(void 0===o&&(o={}),"function"!=typeof t.requester.stream)throw new Error("Stream method is not implementated in requester!");return t.requester.stream(t,e,{query:o})}function v(t,e,o){return void 0===o&&(o={}),m(this,void 0,void 0,function(){var n,r;return d(this,function(s){switch(s.label){case 0:return n=o.sudo,r=h(o,["sudo"]),[4,t.requester.post(t,e,{body:r,sudo:n})];case 1:return[2,s.sent().body]}})})}function R(t,e,o){return void 0===o&&(o={}),m(this,void 0,void 0,function(){var n;return d(this,function(r){switch(r.label){case 0:return o.sudo,n=h(o,["sudo"]),[4,t.requester.put(t,e,{body:n})];case 1:return[2,r.sent().body]}})})}function U(t,e,o){return void 0===o&&(o={}),m(this,void 0,void 0,function(){var n,r;return d(this,function(s){switch(s.label){case 0:return n=o.sudo,r=h(o,["sudo"]),[4,t.requester.delete(t,e,{query:r,sudo:n})];case 1:return[2,s.sent().body]}})})}function C(t){return function(e){var o=this;Object.entries(t||{}).forEach(function(t){var n=l(t,2),r=n[0],s=n[1];o[r]=new s(e)})}}function j(t,e,o){return/^[A-Z0-9_]+$/.test(t)?t:e(t,o)}var g={};function b(t){return m(this,void 0,void 0,function(){var e,o;return d(this,function(n){switch(n.label){case 0:return e=t.headers.get("content-type"),[4,t.text()];case 1:if(o=n.sent(),e.includes("json"))try{return[2,JSON.parse(o||{})]}catch(t){return[2,{}]}return[2,o]}})})}["get","post","put","delete","stream"].forEach(function(t){g[t]=function(e,o,p){return m(this,void 0,void 0,function(){var i,u,c,h,m,y;return d(this,function(d){switch(d.label){case 0:i=function(t,e){var o=e.body,r=e.query,p=e.sudo,i=e.method,u=new Headers(t.headers);return p&&u.append("sudo",""+p),{timeout:3e5,headers:u,method:"stream"===i?"get":i,onProgress:"stream"===i?function(){}:void 0,searchParams:s(n(r||{}),{arrayFormat:"bracket"}),prefixUrl:t.url,json:"object"==typeof o?n(o,j):o,rejectUnauthorized:t.rejectUnauthorized}}(e,a({},p,{method:t})),d.label=1;case 1:return d.trys.push([1,4,,6]),[4,r(o,i)];case 2:return u=d.sent(),c=u.status,h=function(t){var e={};return f(t.headers.entries()).forEach(function(t){var o=l(t,2),n=o[0],r=o[1];e[n]=r}),e}(u),[4,b(u)];case 3:return[2,{body:d.sent(),headers:h,status:c}];case 4:return[4,(m=d.sent()).response.json()];case 5:throw y=d.sent(),m.description=y.error||y.message,m;case 6:return[2]}})})}});var _=function(){return function(t){var e=t.token,o=t.jobToken,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.camelize,m=void 0!==h&&h,d=t.rejectUnauthorized,l=void 0===d||d,f=t.requester,y=void 0===f?g:f;this.url=[p,"api",a,u].join("/"),this.headers={},this.rejectUnauthorized=l,this.camelize=m,this.requester=y,n?this.headers.authorization="Bearer "+n:o?this.headers["job-token"]=o:e&&(this.headers["private-token"]=e),r&&(this.headers.Sudo=""+r)}}(),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({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=h(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",a({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}(_),k=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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=l([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=l([t,e].map(encodeURIComponent),2);return U(this,o[0]+"/access_requests/"+o[1])},e}(_);function q(t,e,o,n,r){var s=l([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 P=function(t){function e(e,o){var n=t.call(this,a({url:"projects"},o))||this;return n.resourceType=e,n}return c(e,t),e.prototype.all=function(t,e,o,n){return y(this,q(t,this.resourceType,e,null,o),n)},e.prototype.award=function(t,e,o,n,r){return v(this,q(t,this.resourceType,e,null,n),a({name:o},r))},e.prototype.remove=function(t,e,o,n,r){return U(this,q(t,this.resourceType,e,o,n),r)},e.prototype.show=function(t,e,o,n,r){return y(this,q(t,this.resourceType,e,o,n),r)},e}(_),T=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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=l([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",a({linkUrl:e,imageUrl:o},n))},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/badges/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/badges/"+n[1],o)},e}(_),S=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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=l([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/custom_attributes/"+r[1],a({value:o},n))},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/custom_attributes/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/custom_attributes/"+n[1],o)},e}(_),x=function(t){function e(e,o,n){var r=t.call(this,a({url:e},n))||this;return r.resource2Type=o,r}return c(e,t),e.prototype.addNote=function(t,e,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=l([t,e,o,n].map(encodeURIComponent),4),i=p[0],u=p[1],c=p[2],h=p[3];return R(this,i+"/"+this.resource2Type+"/"+u+"/discussions/"+c+"/notes/"+h,a({body:r},s))},e.prototype.all=function(t,e,o){var n=l([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=l([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/"+this.resource2Type+"/"+p+"/discussions",a({body:o},n))},e.prototype.editNote=function(t,e,o,n,r){var s=l([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=l([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=l([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}(_),A=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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",a({name:e},o))},e.prototype.createList=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return v(this,r[0]+"/boards/"+r[1]+"/lists",a({labelId:o},n))},e.prototype.edit=function(t,e,o){var n=l([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=l([t,e,o].map(encodeURIComponent),3);return R(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],a({position:n},r))},e.prototype.lists=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/boards/"+n[1]+"/lists",o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/boards/"+n[1],o)},e.prototype.removeList=function(t,e,o,n){var r=l([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=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/boards/"+n[1],o)},e.prototype.showList=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3);return y(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e}(_),E=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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=l([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/members",a({userId:p,accessLevel:o},n))},e.prototype.edit=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/members/"+r[1],a({accessLevel:o},n))},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/members/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/members/"+n[1],o)},e}(_),M=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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",a({title:e},o))},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/milestones/"+n[1],o)},e.prototype.issues=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1]+"/issues",o)},e.prototype.mergeRequests=function(t,e,o){var n=l([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=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1],o)},e}(_),G=function(t){function e(e,o,n){var r=t.call(this,a({url:e},n))||this;return r.resource2Type=o,r}return c(e,t),e.prototype.all=function(t,e,o){var n=l([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=l([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/"+this.resource2Type+"/"+p+"/notes",a({body:o},n))},e.prototype.edit=function(t,e,o,n,r){var s=l([t,e,o].map(encodeURIComponent),3),p=s[0],i=s[1],u=s[2];return R(this,p+"/"+this.resource2Type+"/"+i+"/notes/"+u,a({body:n},r))},e.prototype.remove=function(t,e,o,n){var r=l([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=l([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}(_),O=function(t){function e(e,o){return t.call(this,a({url:["templates",e].join("/")},o))||this}return c(e,t),e.prototype.all=function(t){return y(this,"",t)},e.prototype.show=function(t,e){return v(this,""+encodeURIComponent(t),e)},e}(_),L=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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=l([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/variables/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/variables/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/variables/"+n[1],o)},e}(_),D=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(k),B=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(T),N=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(S),z=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(A),F=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(E),K=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(M),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=l([t,e].map(encodeURIComponent),2);return v(this,"groups/"+n[0]+"/projects/"+n[1],o)},e}(_),J=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(L),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({title:e},o))},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"groups/"+n[0]+"/epics/"+n[1],o)},e}(_),W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e,o){var n=l([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=l([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=l([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=l([t,e,o].map(encodeURIComponent),3);return U(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e}(_),Y=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return c(e,t),e}(G),Z=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return c(e,t),e}(x),$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({email:t,password:e},o))},e.prototype.search=function(t,e){return y(this,"users",a({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}(_),Q=function(t){function e(e){return t.call(this,"users",e)||this}return c(e,t),e}(S),X=function(t){return t?"users/"+encodeURIComponent(t)+"/emails":"user/emails"},tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=h(t,["userId"]);return y(this,X(e),o)},e.prototype.add=function(t,e){void 0===e&&(e={});var o=e.userId,n=h(e,["userId"]);return v(this,X(o),a({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=h(e,["userId"]),r=encodeURIComponent(t);return U(this,X(o)+"/"+r,n)},e}(_),et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({name:e,expiresAt:n,scopes:o},r))},e.prototype.show=function(t,e,o){var n=l([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=l([t,e].map(encodeURIComponent),2);return U(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e}(_),ot=function(t){return t?"users/"+encodeURIComponent(t)+"/keys":"user/keys"},nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=h(t,["userId"]);return y(this,ot(e),o)},e.prototype.create=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=h(o,["userId"]);return v(this,ot(n),a({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=h(e,["userId"]),r=encodeURIComponent(t);return U(this,ot(o)+"/"+r,n)},e}(_),rt=function(t){return t?"users/"+encodeURIComponent(t)+"/gpg_keys":"users/gpg_keys"},st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=h(t,["userId"]);return y(this,rt(e),o)},e.prototype.add=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=h(o,["userId"]);return v(this,rt(n),a({title:t,key:e},r))},e.prototype.show=function(t,e){void 0===e&&(e={});var o=e.userId,n=h(e,["userId"]),r=encodeURIComponent(t);return y(this,rt(o)+"/"+r,n)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=h(e,["userId"]),r=encodeURIComponent(t);return U(this,rt(o)+"/"+r,n)},e}(_),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({branch:e,ref:o},n))},e.prototype.protect=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/protected_branches",a({name:e},o))},e.prototype.remove=function(t,e,o){var n=l([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=l([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=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},e}(_),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({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",a({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",a({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,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/merge_requests",o)},e}(_),ut=function(t){function e(e){return t.call(this,"projects","commits",e)||this}return c(e,t),e}(x),ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deployments/"+n[1],o)},e}(_),at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=l([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=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},e}(_),ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.stop=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},e}(_),mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.addSpentTime=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",a({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",a({duration:o},n))},e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=h(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=l([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=l([t,e].map(encodeURIComponent),2),p=s[0],i=s[1],u=l([o,n].map(encodeURIComponent),2),c=u[0],h=u[1];return v(this,"projects/"+p+"/issues/"+i+"/links",a({targetProjectId:c,targetIssueId:h},r))},e.prototype.participants=function(t,e,o){var n=l([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=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=l([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=l([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=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.subscribe=function(t,e,o){var n=l([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=l([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=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(_),dt=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return c(e,t),e}(G),lt=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return c(e,t),e}(x),ft=function(t){function e(e){return t.call(this,"issues",e)||this}return c(e,t),e}(P),yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=l([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=h(n,["stream"]),i=l([t,e].map(encodeURIComponent),2),u=i[0],c=i[1];return s?I(this,"projects/"+u+"/jobs/"+c+"/artifacts/"+o,p):y(this,"projects/"+u+"/jobs/"+c+"/artifacts/"+o,p)},e.prototype.downloadLatestArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=h(n,["stream"]),i=l([t,e,o].map(encodeURIComponent),3),u=i[0],c=i[1],a=i[2];return s?I(this,"projects/"+u+"/jobs/artifacts/"+c+"/download?job="+a,p):y(this,"projects/"+u+"/jobs/artifacts/"+c+"/download?job="+a,p)},e.prototype.downloadTraceFile=function(t,e,o){var n=l([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=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},e.prototype.eraseArtifacts=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts",o)},e.prototype.keepArtifacts=function(t,e,o){var n=l([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=l([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=l([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=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/jobs/"+n[1],o)},e.prototype.showPipelineJobs=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},e}(_),It=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({name:e},o))},e.prototype.remove=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/labels",a({name:e},o))},e.prototype.subscribe=function(t,e,o){var n=l([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=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(_),vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.accept=function(t,e,o){var n=l([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=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/add_spent_time",a({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/time_estimate",a({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=h(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=l([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=h(e,["mergerequestIId"]),r=l([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=h(n,["mergerequestIId"]),p=l([t,r].map(encodeURIComponent),2),i=p[0],u=p[1];return R(this,r?"projects/"+i+"/merge_requests/"+u+"/approvers":"projects/"+i+"/approvers",a({approverIds:e,approverGroupIds:o},s))},e.prototype.cancelOnPipelineSucess=function(t,e,o){var n=l([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=l([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=l([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=l([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",a({id:s,sourceBranch:e,targetBranch:o,title:n},r))},e.prototype.edit=function(t,e,o){var n=l([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=h(e,["mergerequestIId"]),r=l([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.participants=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/participants",o)},e.prototype.pipelines=function(t,e,o){var n=l([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=l([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=l([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=l([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=l([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=l([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=l([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=l([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=l([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=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},e}(_),Rt=function(t){function e(e){return t.call(this,"merge_requests",e)||this}return c(e,t),e}(P),Ut=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return c(e,t),e}(x),Ct=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return c(e,t),e}(G),jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({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}(_),gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({description:e,ref:o,cron:n},r))},e.prototype.edit=function(t,e,o){var n=l([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=l([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=l([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=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},e}(_),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e,o){var n=l([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=l([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=l([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=l([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=l([t,e,o].map(encodeURIComponent),3);return U(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e}(_),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=h(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.removeFork=function(t,e){return U(this,"projects/"+encodeURIComponent(t)+"/fork",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",a({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,a({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=l([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,n){void 0===o&&(o={});var r=encodeURIComponent(t),s=new p,u={filename:i.generate(8),contentType:"application/octet-stream"};return s.append("file",e,Object.assign(u,o)),v(this,"projects/"+r+"/uploads",a({},n,{form:s}))},e}(_),wt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(k),kt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(T),qt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(S),Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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 n=new p;return n.append("file",t,{filename:e,contentType:"application/octet-stream"}),v(this,"projects/import",a({},o,{form:n}))},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}(_),Tt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(A),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=l([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",a({url:e},o))},e.prototype.edit=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/hooks/"+r[1],a({url:o},n))},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e}(_),xt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(E),At=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(M),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=l([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",a({title:e,fileName:o,code:n,visibility:r},s))},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.userAgentDetails=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},e}(_),Mt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return c(e,t),e}(G),Gt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return c(e,t),e}(x),Ot=function(t){function e(e){return t.call(this,"issues",e)||this}return c(e,t),e}(P),Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({name:e},o))},e.prototype.show=function(t,e,o){var n=l([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=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e}(_),Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({name:e},o))},e.prototype.show=function(t,e,o){var n=l([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=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e}(_),Bt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(L),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.compare=function(t,e,o,n){return y(this,"projects/"+encodeURIComponent(t)+"/repository/compare",a({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}(_),zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.create=function(t,e,o,n,r,s){var p=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+p[0]+"/repository/files/"+p[1],a({branch:o,content:n,commitMessage:r},s))},e.prototype.edit=function(t,e,o,n,r,s){var p=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+p[0]+"/repository/files/"+p[1],a({branch:o,content:n,commitMessage:r},s))},e.prototype.remove=function(t,e,o,n,r){var s=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+s[0]+"/repository/files/"+s[1],a({branch:o,commitMessage:n},r))},e.prototype.show=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+r[0]+"/repository/files/"+r[1],a({ref:o},n))},e.prototype.showRaw=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",a({ref:o},n))},e}(_),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){var e=t.projectId,o=h(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=l([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return v(this,"projects/"+r+"/runners",a({runnerId:s},o))},e.prototype.disable=function(t,e,o){var n=l([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}(_),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=l([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=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e}(_),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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,h(t,["todoId"]))},e}(_),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.pipeline=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/trigger/pipeline",a({ref:e,token:o},n))},e}(_),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=h(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}(_),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"events",t)},e}(_),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),te=function(t){function e(e){return t.call(this,"gitignores",e)||this}return c(e,t),e}(O),ee=function(t){function e(e){return t.call(this,"gitlab_ci_ymls",e)||this}return c(e,t),e}(O),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.show=function(t,e){return y(this,"keys/"+encodeURIComponent(t),e)},e}(_),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"licence",t)},e.prototype.create=function(t){return v(this,"licence",t)},e}(_),re=function(t){function e(e){return t.call(this,"licences",e)||this}return c(e,t),e}(O),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.lint=function(t,e){return v(this,"ci/lint",a({content:t},e))},e}(_),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=h(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){var e=t.projectId,o=t.groupId,n=h(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),R(this,r+"notification_settings",n)},e}(_),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.render=function(t,e){return v(this,"markdown",a({text:t},e))},e}(_),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=h(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",a({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}(_),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e,o){var n=o.projectId,r=o.groupId,s=h(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),y(this,p+"search",a({scope:t,search:e},s))},e}(_),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,t.public?"snippets/public":"snippets",h(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",a({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}(_),de=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.add=function(t,e){return v(this,"hooks",a({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),a({url:e},o))},e.prototype.remove=function(t,e){return U(this,"hooks/"+encodeURIComponent(t),e)},e}(_),le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.show=function(t){return y(this,"version",t)},e}(_),fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),ye=Object.freeze({Groups:w,GroupAccessRequests:D,GroupBadges:B,GroupCustomAttributes:N,GroupIssueBoards:z,GroupMembers:F,GroupMilestones:K,GroupProjects:V,GroupVariables:J,Epics:H,EpicIssues:W,EpicNotes:Y,EpicDiscussions:Z,Users:$,UserCustomAttributes:Q,UserEmails:tt,UserImpersonationTokens:et,UserKeys:nt,UserGPGKeys:st,Branches:pt,Commits:it,CommitDiscussions:ut,Deployments:ct,DeployKeys:at,Environments:ht,Issues:mt,IssueNotes:dt,IssueDiscussions:lt,IssueAwardEmojis:ft,Jobs:yt,Labels:It,MergeRequests:vt,MergeRequestAwardEmojis:Rt,MergeRequestDiscussions:Ut,MergeRequestNotes:Ct,Pipelines:jt,PipelineSchedules:gt,PipelineScheduleVariables:bt,Projects:_t,ProjectAccessRequests:wt,ProjectBadges:kt,ProjectCustomAttributes:qt,ProjectImportExport:Pt,ProjectIssueBoards:Tt,ProjectHooks:St,ProjectMembers:xt,ProjectMilestones:At,ProjectSnippets:Et,ProjectSnippetNotes:Mt,ProjectSnippetDiscussions:Gt,ProjectSnippetAwardEmojis:Ot,ProtectedBranches:Lt,ProtectedTags:Dt,ProjectVariables:Bt,Repositories:Nt,RepositoryFiles:zt,Runners:Ft,Services:Kt,Tags:Vt,Todos:Jt,Triggers:Ht,PushRule:Wt,ApplicationSettings:Yt,BroadcastMessages:Zt,Events:$t,FeatureFlags:Qt,GeoNodes:Xt,GitignoreTemplates:te,GitLabCIYMLTemplates:ee,Keys:oe,Licence:ne,LicenceTemplates:re,Lint:se,Namespaces:pe,NotificationSettings:ie,Markdown:ue,PagesDomains:ce,Search:ae,SidekiqMetrics:he,Snippets:me,SystemHooks:de,Version:le,Wikis:fe});t();var Ie=C({Groups:w,GroupAccessRequests:D,GroupBadges:B,GroupCustomAttributes:N,GroupIssueBoards:z,GroupMembers:F,GroupMilestones:K,GroupProjects:V,GroupVariables:J,Epics:H,EpicIssues:W,EpicNotes:Y,EpicDiscussions:Z}),ve=C({Users:$,UserCustomAttributes:Q,UserEmails:tt,UserImpersonationTokens:et,UserKeys:nt,UserGPGKeys:st}),Re=C({Branches:pt,Commits:it,CommitDiscussions:ut,DeployKeys:at,Deployments:ct,Environments:ht,Issues:mt,IssueAwardEmojis:ft,IssueNotes:dt,IssueDiscussions:lt,Jobs:yt,Labels:It,MergeRequests:vt,MergeRequestAwardEmojis:Rt,MergeRequestDiscussions:Ut,MergeRequestNotes:Ct,Pipelines:jt,PipelineSchedules:gt,PipelineScheduleVariables:bt,Projects:_t,ProjectAccessRequests:wt,ProjectBadges:kt,ProjectCustomAttributes:qt,ProjectImportExport:Pt,ProjectIssueBoards:Tt,ProjectHooks:St,ProjectMembers:xt,ProjectMilestones:At,ProjectSnippets:Et,ProjectSnippetNotes:Mt,ProjectSnippetDiscussions:Gt,ProjectSnippetAwardEmojis:Ot,ProtectedBranches:Lt,ProtectedTags:Dt,ProjectVariables:Bt,Repositories:Nt,RepositoryFiles:zt,Runners:Ft,Services:Kt,Tags:Vt,Triggers:Ht}),Ue=C(ye);export{Yt as ApplicationSettings,pt as Branches,Zt as BroadcastMessages,ut as CommitDiscussions,it as Commits,at as DeployKeys,ct as Deployments,ht as Environments,Z as EpicDiscussions,W as EpicIssues,Y as EpicNotes,H as Epics,$t as Events,Qt as FeatureFlags,Xt as GeoNodes,ee as GitLabCIYMLTemplates,te as GitignoreTemplates,Ue as Gitlab,D as GroupAccessRequests,B as GroupBadges,N as GroupCustomAttributes,z as GroupIssueBoards,F as GroupMembers,K as GroupMilestones,V as GroupProjects,J as GroupVariables,w as Groups,Ie as GroupsBundle,ft as IssueAwardEmojis,lt as IssueDiscussions,dt as IssueNotes,mt as Issues,yt as Jobs,oe as Keys,It as Labels,ne as Licence,re as LicenceTemplates,se as Lint,ue as Markdown,Rt as MergeRequestAwardEmojis,Ut as MergeRequestDiscussions,Ct as MergeRequestNotes,vt as MergeRequests,pe as Namespaces,ie as NotificationSettings,ce as PagesDomains,bt as PipelineScheduleVariables,gt as PipelineSchedules,jt as Pipelines,wt as ProjectAccessRequests,kt as ProjectBadges,qt as ProjectCustomAttributes,St as ProjectHooks,Pt as ProjectImportExport,Tt as ProjectIssueBoards,xt as ProjectMembers,At as ProjectMilestones,Ot as ProjectSnippetAwardEmojis,Gt as ProjectSnippetDiscussions,Mt as ProjectSnippetNotes,Et as ProjectSnippets,Bt as ProjectVariables,_t as Projects,Re as ProjectsBundle,Lt as ProtectedBranches,Dt as ProtectedTags,Wt as PushRule,Nt as Repositories,zt as RepositoryFiles,Ft as Runners,ae as Search,Kt as Services,he as SidekiqMetrics,me as Snippets,de as SystemHooks,Vt as Tags,Jt as Todos,Ht as Triggers,Q as UserCustomAttributes,tt as UserEmails,st as UserGPGKeys,et as UserImpersonationTokens,nt as UserKeys,$ as Users,ve as UsersBundle,le as Version,fe as Wikis}; | ||
import{shim as t}from"universal-url";import e from"li";import{camelizeKeys as o,decamelizeKeys as n}from"humps";import r from"ky-universal";import{stringify as s}from"query-string";import p from"form-data";import i from"randomstring";var u=function(t,e){return(u=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 c(t,e){function o(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var a=function(){return(a=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 m(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 h(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 l(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 d(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 f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function y(t,n,r){return void 0===r&&(r={}),h(this,void 0,void 0,function(){var s,p,i,u,c,a,h,d,I,v,R;return l(this,function(l){switch(l.label){case 0:return s=r.showPagination,p=r.maxPages,i=r.sudo,u=m(r,["showPagination","maxPages","sudo"]),[4,t.requester.get(t,n,{query:u||{},sudo:i})];case 1:return c=l.sent(),a=c.headers,h=c.body,d={total:a["x-total"],next:parseInt(a["x-next-page"],10)||null,current:parseInt(a["x-page"],10)||1,previous:a["x-prev-page"]||null,perPage:a["x-per-page"],totalPages:a["x-total-pages"]},I=!p||d.current<p,t.camelize&&(h=o(h)),!u.page&&I&&d.next?(v=e.parse(a.link).next,[4,y(t,v.replace(/.+\/api\/v\d\//,""),{maxPages:p,sudo:i,showPagination:!0})]):[3,3];case 2:R=l.sent(),d=R.pagination,h=f(h,R.data),l.label=3;case 3:return[2,(u.page||h.length>0)&&s?{data:h,pagination:d}:h]}})})}function I(t,e,o){if(void 0===o&&(o={}),"function"!=typeof t.requester.stream)throw new Error("Stream method is not implementated in requester!");return t.requester.stream(t,e,{query:o})}function v(t,e,o){return void 0===o&&(o={}),h(this,void 0,void 0,function(){var n,r;return l(this,function(s){switch(s.label){case 0:return n=o.sudo,r=m(o,["sudo"]),[4,t.requester.post(t,e,{body:r,sudo:n})];case 1:return[2,s.sent().body]}})})}function R(t,e,o){return void 0===o&&(o={}),h(this,void 0,void 0,function(){var n;return l(this,function(r){switch(r.label){case 0:return o.sudo,n=m(o,["sudo"]),[4,t.requester.put(t,e,{body:n})];case 1:return[2,r.sent().body]}})})}function U(t,e,o){return void 0===o&&(o={}),h(this,void 0,void 0,function(){var n,r;return l(this,function(s){switch(s.label){case 0:return n=o.sudo,r=m(o,["sudo"]),[4,t.requester.delete(t,e,{query:r,sudo:n})];case 1:return[2,s.sent().body]}})})}function C(t){return function(e){var o=this;Object.entries(t||{}).forEach(function(t){var n=d(t,2),r=n[0],s=n[1];o[r]=new s(e)})}}function j(t,e,o){return/^[A-Z0-9_]+$/.test(t)?t:e(t,o)}var g={};function b(t){return h(this,void 0,void 0,function(){var e,o;return l(this,function(n){switch(n.label){case 0:return e=t.headers.get("content-type"),[4,t.text()];case 1:if(o=n.sent(),e.includes("json"))try{return[2,JSON.parse(o||{})]}catch(t){return[2,{}]}return[2,o]}})})}["get","post","put","delete","stream"].forEach(function(t){g[t]=function(e,o,p){return h(this,void 0,void 0,function(){var i,u,c,m,h,y;return l(this,function(l){switch(l.label){case 0:i=function(t,e){var o=e.body,r=e.query,p=e.sudo,i=e.method,u=new Headers(t.headers);return p&&u.append("sudo",""+p),{timeout:3e5,headers:u,method:"stream"===i?"get":i,onProgress:"stream"===i?function(){}:void 0,searchParams:s(n(r||{}),{arrayFormat:"bracket"}),prefixUrl:t.url,json:"object"==typeof o?n(o,j):o,rejectUnauthorized:t.rejectUnauthorized}}(e,a({},p,{method:t})),l.label=1;case 1:return l.trys.push([1,4,,6]),[4,r(o,i)];case 2:return u=l.sent(),c=u.status,m=function(t){var e={};return f(t.headers.entries()).forEach(function(t){var o=d(t,2),n=o[0],r=o[1];e[n]=r}),e}(u),[4,b(u)];case 3:return[2,{body:l.sent(),headers:m,status:c}];case 4:return[4,(h=l.sent()).response.json()];case 5:throw y=l.sent(),h.description=y.error||y.message,h;case 6:return[2]}})})}});var _=function(){return function(t){var e=t.token,o=t.jobToken,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,m=t.camelize,h=void 0!==m&&m,l=t.rejectUnauthorized,d=void 0===l||l,f=t.requester,y=void 0===f?g:f;this.url=[p,"api",a,u].join("/"),this.headers={},this.rejectUnauthorized=d,this.camelize=h,this.requester=y,n?this.headers.authorization="Bearer "+n:o?this.headers["job-token"]=o:e&&(this.headers["private-token"]=e),r&&(this.headers.Sudo=""+r)}}(),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({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=m(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",a({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}(_),k=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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=d([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=d([t,e].map(encodeURIComponent),2);return U(this,o[0]+"/access_requests/"+o[1])},e}(_);function q(t,e,o,n,r){var s=d([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 P=function(t){function e(e,o){var n=t.call(this,a({url:"projects"},o))||this;return n.resourceType=e,n}return c(e,t),e.prototype.all=function(t,e,o,n){return y(this,q(t,this.resourceType,e,null,o),n)},e.prototype.award=function(t,e,o,n,r){return v(this,q(t,this.resourceType,e,null,n),a({name:o},r))},e.prototype.remove=function(t,e,o,n,r){return U(this,q(t,this.resourceType,e,o,n),r)},e.prototype.show=function(t,e,o,n,r){return y(this,q(t,this.resourceType,e,o,n),r)},e}(_),T=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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=d([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",a({linkUrl:e,imageUrl:o},n))},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/badges/"+n[1],o)},e.prototype.show=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/badges/"+n[1],o)},e}(_),S=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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=d([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/custom_attributes/"+r[1],a({value:o},n))},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/custom_attributes/"+n[1],o)},e.prototype.show=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/custom_attributes/"+n[1],o)},e}(_),x=function(t){function e(e,o,n){var r=t.call(this,a({url:e},n))||this;return r.resource2Type=o,r}return c(e,t),e.prototype.addNote=function(t,e,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=d([t,e,o,n].map(encodeURIComponent),4),i=p[0],u=p[1],c=p[2],m=p[3];return R(this,i+"/"+this.resource2Type+"/"+u+"/discussions/"+c+"/notes/"+m,a({body:r},s))},e.prototype.all=function(t,e,o){var n=d([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=d([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/"+this.resource2Type+"/"+p+"/discussions",a({body:o},n))},e.prototype.editNote=function(t,e,o,n,r){var s=d([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=d([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=d([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}(_),A=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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",a({name:e},o))},e.prototype.createList=function(t,e,o,n){var r=d([t,e].map(encodeURIComponent),2);return v(this,r[0]+"/boards/"+r[1]+"/lists",a({labelId:o},n))},e.prototype.edit=function(t,e,o){var n=d([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=d([t,e,o].map(encodeURIComponent),3);return R(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],a({position:n},r))},e.prototype.lists=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/boards/"+n[1]+"/lists",o)},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/boards/"+n[1],o)},e.prototype.removeList=function(t,e,o,n){var r=d([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=d([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/boards/"+n[1],o)},e.prototype.showList=function(t,e,o,n){var r=d([t,e,o].map(encodeURIComponent),3);return y(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e}(_),E=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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=d([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/members",a({userId:p,accessLevel:o},n))},e.prototype.edit=function(t,e,o,n){var r=d([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/members/"+r[1],a({accessLevel:o},n))},e.prototype.show=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/members/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/members/"+n[1],o)},e}(_),M=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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",a({title:e},o))},e.prototype.edit=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/milestones/"+n[1],o)},e.prototype.issues=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1]+"/issues",o)},e.prototype.mergeRequests=function(t,e,o){var n=d([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=d([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1],o)},e}(_),G=function(t){function e(e,o,n){var r=t.call(this,a({url:e},n))||this;return r.resource2Type=o,r}return c(e,t),e.prototype.all=function(t,e,o){var n=d([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=d([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/"+this.resource2Type+"/"+p+"/notes",a({body:o},n))},e.prototype.edit=function(t,e,o,n,r){var s=d([t,e,o].map(encodeURIComponent),3),p=s[0],i=s[1],u=s[2];return R(this,p+"/"+this.resource2Type+"/"+i+"/notes/"+u,a({body:n},r))},e.prototype.remove=function(t,e,o,n){var r=d([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=d([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}(_),L=function(t){function e(e,o){return t.call(this,a({url:["templates",e].join("/")},o))||this}return c(e,t),e.prototype.all=function(t){return y(this,"",t)},e.prototype.show=function(t,e){return v(this,""+encodeURIComponent(t),e)},e}(_),O=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(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=d([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/variables/"+n[1],o)},e.prototype.show=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/variables/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/variables/"+n[1],o)},e}(_),D=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(k),B=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(T),N=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(S),z=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(A),F=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(E),K=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(M),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=d([t,e].map(encodeURIComponent),2);return v(this,"groups/"+n[0]+"/projects/"+n[1],o)},e}(_),J=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(O),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({title:e},o))},e.prototype.edit=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return R(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.show=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,"groups/"+n[0]+"/epics/"+n[1],o)},e}(_),W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e,o){var n=d([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=d([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=d([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=d([t,e,o].map(encodeURIComponent),3);return U(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e}(_),Y=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return c(e,t),e}(G),Z=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return c(e,t),e}(x),$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({email:t,password:e},o))},e.prototype.search=function(t,e){return y(this,"users",a({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}(_),Q=function(t){function e(e){return t.call(this,"users",e)||this}return c(e,t),e}(S),X=function(t){return t?"users/"+encodeURIComponent(t)+"/emails":"user/emails"},tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=m(t,["userId"]);return y(this,X(e),o)},e.prototype.add=function(t,e){void 0===e&&(e={});var o=e.userId,n=m(e,["userId"]);return v(this,X(o),a({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=m(e,["userId"]),r=encodeURIComponent(t);return U(this,X(o)+"/"+r,n)},e}(_),et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({name:e,expiresAt:n,scopes:o},r))},e.prototype.show=function(t,e,o){var n=d([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=d([t,e].map(encodeURIComponent),2);return U(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e}(_),ot=function(t){return t?"users/"+encodeURIComponent(t)+"/keys":"user/keys"},nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=m(t,["userId"]);return y(this,ot(e),o)},e.prototype.create=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=m(o,["userId"]);return v(this,ot(n),a({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=m(e,["userId"]),r=encodeURIComponent(t);return U(this,ot(o)+"/"+r,n)},e}(_),rt=function(t){return t?"users/"+encodeURIComponent(t)+"/gpg_keys":"users/gpg_keys"},st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=m(t,["userId"]);return y(this,rt(e),o)},e.prototype.add=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=m(o,["userId"]);return v(this,rt(n),a({title:t,key:e},r))},e.prototype.show=function(t,e){void 0===e&&(e={});var o=e.userId,n=m(e,["userId"]),r=encodeURIComponent(t);return y(this,rt(o)+"/"+r,n)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=m(e,["userId"]),r=encodeURIComponent(t);return U(this,rt(o)+"/"+r,n)},e}(_),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({branch:e,ref:o},n))},e.prototype.protect=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/protected_branches",a({name:e},o))},e.prototype.remove=function(t,e,o){var n=d([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=d([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=d([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},e}(_),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({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",a({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",a({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,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/merge_requests",o)},e}(_),ut=function(t){function e(e){return t.call(this,"projects","commits",e)||this}return c(e,t),e}(x),ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deployments/"+n[1],o)},e}(_),at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=d([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=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},e}(_),mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=d([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.stop=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},e}(_),ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.addSpentTime=function(t,e,o,n){var r=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",a({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",a({duration:o},n))},e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=m(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=d([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=d([t,e].map(encodeURIComponent),2),p=s[0],i=s[1],u=d([o,n].map(encodeURIComponent),2),c=u[0],m=u[1];return v(this,"projects/"+p+"/issues/"+i+"/links",a({targetProjectId:c,targetIssueId:m},r))},e.prototype.participants=function(t,e,o){var n=d([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=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=d([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=d([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=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.subscribe=function(t,e,o){var n=d([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=d([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=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(_),lt=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return c(e,t),e}(G),dt=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return c(e,t),e}(x),ft=function(t){function e(e){return t.call(this,"issues",e)||this}return c(e,t),e}(P),yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=d([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=m(n,["stream"]),i=d([t,e].map(encodeURIComponent),2),u=i[0],c=i[1];return s?I(this,"projects/"+u+"/jobs/"+c+"/artifacts/"+o,p):y(this,"projects/"+u+"/jobs/"+c+"/artifacts/"+o,p)},e.prototype.downloadLatestArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=m(n,["stream"]),i=d([t,e,o].map(encodeURIComponent),3),u=i[0],c=i[1],a=i[2];return s?I(this,"projects/"+u+"/jobs/artifacts/"+c+"/download?job="+a,p):y(this,"projects/"+u+"/jobs/artifacts/"+c+"/download?job="+a,p)},e.prototype.downloadTraceFile=function(t,e,o){var n=d([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=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},e.prototype.eraseArtifacts=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts",o)},e.prototype.keepArtifacts=function(t,e,o){var n=d([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=d([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=d([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=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/jobs/"+n[1],o)},e.prototype.showPipelineJobs=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},e}(_),It=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({name:e},o))},e.prototype.remove=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/labels",a({name:e},o))},e.prototype.subscribe=function(t,e,o){var n=d([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=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(_),vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.accept=function(t,e,o){var n=d([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=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/add_spent_time",a({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/time_estimate",a({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=m(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=d([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=m(e,["mergerequestIId"]),r=d([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=m(n,["mergerequestIId"]),p=d([t,r].map(encodeURIComponent),2),i=p[0],u=p[1];return R(this,r?"projects/"+i+"/merge_requests/"+u+"/approvers":"projects/"+i+"/approvers",a({approverIds:e,approverGroupIds:o},s))},e.prototype.cancelOnPipelineSucess=function(t,e,o){var n=d([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=d([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=d([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=d([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",a({id:s,sourceBranch:e,targetBranch:o,title:n},r))},e.prototype.edit=function(t,e,o){var n=d([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=m(e,["mergerequestIId"]),r=d([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.participants=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/participants",o)},e.prototype.pipelines=function(t,e,o){var n=d([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=d([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=d([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=d([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=d([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=d([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=d([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=d([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=d([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=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},e}(_),Rt=function(t){function e(e){return t.call(this,"merge_requests",e)||this}return c(e,t),e}(P),Ut=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return c(e,t),e}(x),Ct=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return c(e,t),e}(G),jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({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}(_),gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({description:e,ref:o,cron:n},r))},e.prototype.edit=function(t,e,o){var n=d([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=d([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=d([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=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},e}(_),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e,o){var n=d([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=d([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=d([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=d([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=d([t,e,o].map(encodeURIComponent),3);return U(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e}(_),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=m(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.removeFork=function(t,e){return U(this,"projects/"+encodeURIComponent(t)+"/fork",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",a({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,a({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=d([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,n){void 0===o&&(o={});var r=encodeURIComponent(t),s=new p,u={filename:i.generate(8),contentType:"application/octet-stream"};return s.append("file",e,Object.assign(u,o)),v(this,"projects/"+r+"/uploads",a({},n,{form:s}))},e}(_),wt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(k),kt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(T),qt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(S),Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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 n=new p;return n.append("file",t,{filename:e,contentType:"application/octet-stream"}),v(this,"projects/import",a({},o,{form:n}))},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}(_),Tt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(A),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=d([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",a({url:e},o))},e.prototype.edit=function(t,e,o,n){var r=d([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/hooks/"+r[1],a({url:o},n))},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e}(_),xt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(E),At=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(M),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=d([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",a({title:e,fileName:o,code:n,visibility:r},s))},e.prototype.edit=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.show=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.userAgentDetails=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},e}(_),Mt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return c(e,t),e}(G),Gt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return c(e,t),e}(x),Lt=function(t){function e(e){return t.call(this,"issues",e)||this}return c(e,t),e}(P),Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({name:e},o))},e.prototype.show=function(t,e,o){var n=d([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=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e}(_),Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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",a({name:e},o))},e.prototype.show=function(t,e,o){var n=d([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=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e}(_),Bt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(O),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/releases",e)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/releases",e)},e.prototype.edit=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/releases/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/releases/"+n[1],o)},e.prototype.show=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/releases/"+n[1],o)},e}(_),zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/releases/"+n[1]+"/assets/links",o)},e.prototype.create=function(t,e,o,n,r){var s=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+s[0]+"/releases/"+s[1]+"/assets/links",a({name:o,url:n},r))},e.prototype.edit=function(t,e,o,n){var r=d([t,e,o].map(encodeURIComponent),3);return R(this,"projects/"+r[0]+"/releases/"+r[1]+"/assets/links/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=d([t,e,o].map(encodeURIComponent),3);return U(this,"projects/"+r[0]+"/releases/"+r[1]+"/assets/links/"+r[2],n)},e.prototype.show=function(t,e,o,n){var r=d([t,e,o].map(encodeURIComponent),3);return y(this,"projects/"+r[0]+"/releases/"+r[1]+"/assets/links/"+r[2],n)},e}(_),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.compare=function(t,e,o,n){return y(this,"projects/"+encodeURIComponent(t)+"/repository/compare",a({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}(_),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.create=function(t,e,o,n,r,s){var p=d([t,e].map(encodeURIComponent),2);return v(this,"projects/"+p[0]+"/repository/files/"+p[1],a({branch:o,content:n,commitMessage:r},s))},e.prototype.edit=function(t,e,o,n,r,s){var p=d([t,e].map(encodeURIComponent),2);return R(this,"projects/"+p[0]+"/repository/files/"+p[1],a({branch:o,content:n,commitMessage:r},s))},e.prototype.remove=function(t,e,o,n,r){var s=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+s[0]+"/repository/files/"+s[1],a({branch:o,commitMessage:n},r))},e.prototype.show=function(t,e,o,n){var r=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+r[0]+"/repository/files/"+r[1],a({ref:o},n))},e.prototype.showRaw=function(t,e,o,n){var r=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",a({ref:o},n))},e}(_),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){var e=t.projectId,o=m(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=d([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return v(this,"projects/"+r+"/runners",a({runnerId:s},o))},e.prototype.disable=function(t,e,o){var n=d([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}(_),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=d([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=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e}(_),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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,m(t,["todoId"]))},e}(_),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=d([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.show=function(t,e,o){var n=d([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.pipeline=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/trigger/pipeline",a({ref:e,token:o},n))},e}(_),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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=m(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}(_),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"events",t)},e}(_),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),oe=function(t){function e(e){return t.call(this,"gitignores",e)||this}return c(e,t),e}(L),ne=function(t){function e(e){return t.call(this,"gitlab_ci_ymls",e)||this}return c(e,t),e}(L),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.show=function(t,e){return y(this,"keys/"+encodeURIComponent(t),e)},e}(_),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"licence",t)},e.prototype.create=function(t){return v(this,"licence",t)},e}(_),pe=function(t){function e(e){return t.call(this,"licences",e)||this}return c(e,t),e}(L),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.lint=function(t,e){return v(this,"ci/lint",a({content:t},e))},e}(_),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=m(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){var e=t.projectId,o=t.groupId,n=m(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),R(this,r+"notification_settings",n)},e}(_),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.render=function(t,e){return v(this,"markdown",a({text:t},e))},e}(_),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=m(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",a({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}(_),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e,o){var n=o.projectId,r=o.groupId,s=m(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),y(this,p+"search",a({scope:t,search:e},s))},e}(_),le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),de=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,t.public?"snippets/public":"snippets",m(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",a({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}(_),fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.add=function(t,e){return v(this,"hooks",a({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),a({url:e},o))},e.prototype.remove=function(t,e){return U(this,"hooks/"+encodeURIComponent(t),e)},e}(_),ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.show=function(t){return y(this,"version",t)},e}(_),Ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(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}(_),ve=Object.freeze({Groups:w,GroupAccessRequests:D,GroupBadges:B,GroupCustomAttributes:N,GroupIssueBoards:z,GroupMembers:F,GroupMilestones:K,GroupProjects:V,GroupVariables:J,Epics:H,EpicIssues:W,EpicNotes:Y,EpicDiscussions:Z,Users:$,UserCustomAttributes:Q,UserEmails:tt,UserImpersonationTokens:et,UserKeys:nt,UserGPGKeys:st,Branches:pt,Commits:it,CommitDiscussions:ut,Deployments:ct,DeployKeys:at,Environments:mt,Issues:ht,IssueNotes:lt,IssueDiscussions:dt,IssueAwardEmojis:ft,Jobs:yt,Labels:It,MergeRequests:vt,MergeRequestAwardEmojis:Rt,MergeRequestDiscussions:Ut,MergeRequestNotes:Ct,Pipelines:jt,PipelineSchedules:gt,PipelineScheduleVariables:bt,Projects:_t,ProjectAccessRequests:wt,ProjectBadges:kt,ProjectCustomAttributes:qt,ProjectImportExport:Pt,ProjectIssueBoards:Tt,ProjectHooks:St,ProjectMembers:xt,ProjectMilestones:At,ProjectSnippets:Et,ProjectSnippetNotes:Mt,ProjectSnippetDiscussions:Gt,ProjectSnippetAwardEmojis:Lt,ProtectedBranches:Ot,ProtectedTags:Dt,ProjectVariables:Bt,Releases:Nt,ReleaseLinks:zt,Repositories:Ft,RepositoryFiles:Kt,Runners:Vt,Services:Jt,Tags:Ht,Todos:Wt,Triggers:Yt,PushRule:Zt,ApplicationSettings:$t,BroadcastMessages:Qt,Events:Xt,FeatureFlags:te,GeoNodes:ee,GitignoreTemplates:oe,GitLabCIYMLTemplates:ne,Keys:re,Licence:se,LicenceTemplates:pe,Lint:ie,Namespaces:ue,NotificationSettings:ce,Markdown:ae,PagesDomains:me,Search:he,SidekiqMetrics:le,Snippets:de,SystemHooks:fe,Version:ye,Wikis:Ie});t();var Re=C({Groups:w,GroupAccessRequests:D,GroupBadges:B,GroupCustomAttributes:N,GroupIssueBoards:z,GroupMembers:F,GroupMilestones:K,GroupProjects:V,GroupVariables:J,Epics:H,EpicIssues:W,EpicNotes:Y,EpicDiscussions:Z}),Ue=C({Users:$,UserCustomAttributes:Q,UserEmails:tt,UserImpersonationTokens:et,UserKeys:nt,UserGPGKeys:st}),Ce=C({Branches:pt,Commits:it,CommitDiscussions:ut,DeployKeys:at,Deployments:ct,Environments:mt,Issues:ht,IssueAwardEmojis:ft,IssueNotes:lt,IssueDiscussions:dt,Jobs:yt,Labels:It,MergeRequests:vt,MergeRequestAwardEmojis:Rt,MergeRequestDiscussions:Ut,MergeRequestNotes:Ct,Pipelines:jt,PipelineSchedules:gt,PipelineScheduleVariables:bt,Projects:_t,ProjectAccessRequests:wt,ProjectBadges:kt,ProjectCustomAttributes:qt,ProjectImportExport:Pt,ProjectIssueBoards:Tt,ProjectHooks:St,ProjectMembers:xt,ProjectMilestones:At,ProjectSnippets:Et,ProjectSnippetNotes:Mt,ProjectSnippetDiscussions:Gt,ProjectSnippetAwardEmojis:Lt,ProtectedBranches:Ot,ProtectedTags:Dt,ProjectVariables:Bt,Releases:Nt,ReleaseLinks:zt,Repositories:Ft,RepositoryFiles:Kt,Runners:Vt,Services:Jt,Tags:Ht,Triggers:Yt}),je=C(ve);export{$t as ApplicationSettings,pt as Branches,Qt as BroadcastMessages,ut as CommitDiscussions,it as Commits,at as DeployKeys,ct as Deployments,mt as Environments,Z as EpicDiscussions,W as EpicIssues,Y as EpicNotes,H as Epics,Xt as Events,te as FeatureFlags,ee as GeoNodes,ne as GitLabCIYMLTemplates,oe as GitignoreTemplates,je as Gitlab,D as GroupAccessRequests,B as GroupBadges,N as GroupCustomAttributes,z as GroupIssueBoards,F as GroupMembers,K as GroupMilestones,V as GroupProjects,J as GroupVariables,w as Groups,Re as GroupsBundle,ft as IssueAwardEmojis,dt as IssueDiscussions,lt as IssueNotes,ht as Issues,yt as Jobs,re as Keys,It as Labels,se as Licence,pe as LicenceTemplates,ie as Lint,ae as Markdown,Rt as MergeRequestAwardEmojis,Ut as MergeRequestDiscussions,Ct as MergeRequestNotes,vt as MergeRequests,ue as Namespaces,ce as NotificationSettings,me as PagesDomains,bt as PipelineScheduleVariables,gt as PipelineSchedules,jt as Pipelines,wt as ProjectAccessRequests,kt as ProjectBadges,qt as ProjectCustomAttributes,St as ProjectHooks,Pt as ProjectImportExport,Tt as ProjectIssueBoards,xt as ProjectMembers,At as ProjectMilestones,Lt as ProjectSnippetAwardEmojis,Gt as ProjectSnippetDiscussions,Mt as ProjectSnippetNotes,Et as ProjectSnippets,Bt as ProjectVariables,_t as Projects,Ce as ProjectsBundle,Ot as ProtectedBranches,Dt as ProtectedTags,Zt as PushRule,zt as ReleaseLinks,Nt as Releases,Ft as Repositories,Kt as RepositoryFiles,Vt as Runners,he as Search,Jt as Services,le as SidekiqMetrics,de as Snippets,fe as SystemHooks,Ht as Tags,Wt as Todos,Yt as Triggers,Q as UserCustomAttributes,tt as UserEmails,st as UserGPGKeys,et as UserImpersonationTokens,nt as UserKeys,$ as Users,Ue as UsersBundle,ye as Version,Ie as Wikis}; |
@@ -55,2 +55,4 @@ export { default as Groups } from './Groups'; | ||
export { default as ProjectVariables } from './ProjectVariables'; | ||
export { default as Releases } from './Releases'; | ||
export { default as ReleaseLinks } from './ReleaseLinks'; | ||
export { default as Repositories } from './Repositories'; | ||
@@ -57,0 +59,0 @@ export { default as RepositoryFiles } from './RepositoryFiles'; |
@@ -9,3 +9,3 @@ /// <reference types="../typings" /> | ||
cancel(projectId: ProjectId, pipelineId: PipelineId, options?: Sudo): Promise<object>; | ||
showJobs(projectId: ProjectId, pipelineId: PipelineId, options: { | ||
showJobs(projectId: ProjectId, pipelineId: PipelineId, options?: { | ||
scope: JobScope; | ||
@@ -12,0 +12,0 @@ } & Sudo): Promise<GetResponse>; |
{ | ||
"name": "gitlab", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.", | ||
@@ -76,3 +76,3 @@ "keywords": [ | ||
"prettier": "^1.17.1", | ||
"rollup": "^1.12.3", | ||
"rollup": "^1.14.3", | ||
"rollup-plugin-commonjs": "^10.0.0", | ||
@@ -79,0 +79,0 @@ "rollup-plugin-json": "^4.0.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
336190
115
2177