2016-10-10 18:37:26 +03:00
|
|
|
const request = require('./request');
|
|
|
|
|
2017-04-27 21:26:15 +03:00
|
|
|
module.exports.list = () => {
|
2016-10-10 18:37:26 +03:00
|
|
|
return request('listPolicies');
|
|
|
|
};
|
|
|
|
|
2017-04-27 21:26:15 +03:00
|
|
|
module.exports.get = ctx => {
|
2016-10-10 18:37:26 +03:00
|
|
|
return request('getPolicy', ctx);
|
|
|
|
};
|
|
|
|
|
2017-04-27 21:26:15 +03:00
|
|
|
module.exports.create = ctx => {
|
2016-10-10 18:37:26 +03:00
|
|
|
return request('createPolicy', ctx);
|
|
|
|
};
|
|
|
|
|
2017-04-27 21:26:15 +03:00
|
|
|
module.exports.update = ctx => {
|
2016-10-10 18:37:26 +03:00
|
|
|
return request('updatePolicy', ctx);
|
|
|
|
};
|
|
|
|
|
2017-04-27 21:26:15 +03:00
|
|
|
module.exports.destroy = ctx => {
|
2016-10-10 18:37:26 +03:00
|
|
|
return request('deletePolicy', ctx);
|
|
|
|
};
|