gitlab
Version:
Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.
22 lines (21 loc) • 876 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const infrastructure_1 = require("../infrastructure");
/**
* @see https://docs.gitlab.com/ee/api/services.html
*/
class Services extends infrastructure_1.BaseService {
edit(projectId, serviceName, options) {
const pId = encodeURIComponent(projectId);
return infrastructure_1.RequestHelper.put(this, `projects/${pId}/services/${serviceName}`, options);
}
remove(projectId, serviceName) {
const pId = encodeURIComponent(projectId);
return infrastructure_1.RequestHelper.delete(this, `projects/${pId}/services/${serviceName}`);
}
show(projectId, serviceName) {
const pId = encodeURIComponent(projectId);
return infrastructure_1.RequestHelper.get(this, `projects/${pId}/services/${serviceName}`);
}
}
exports.default = Services;