mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
29 lines
553 B
JavaScript
29 lines
553 B
JavaScript
const BaseModel = require('../BaseModel');
|
|
const Utils = require('../Utils');
|
|
|
|
class Runners extends BaseModel {
|
|
all(options = {}) {
|
|
return this.get('runners/all', options);
|
|
}
|
|
|
|
show(runnerId) {
|
|
const rId = Utils.parse(runnerId);
|
|
|
|
return this.get(`runners/${rId}`);
|
|
}
|
|
|
|
update(runnerId, attributes) {
|
|
const rId = Utils.parse(runnerId);
|
|
|
|
return this.put(`runners/${rId}`, attributes);
|
|
}
|
|
|
|
remove(runnerId) {
|
|
const rId = Utils.parse(runnerId);
|
|
|
|
return this.delete(`runners/${rId}`);
|
|
}
|
|
}
|
|
|
|
module.exports = Runners;
|