chore: 🤖 backend custom method is remove; updated language too

This commit is contained in:
Randall Morey committed 2020-08-28 11:20:07 -04:00
1 parent fc10de7c60
commit e4dc6490ba
6 files changed
+19 -18

No files matched your search

+6 -6
View File
@@ -55,16 +55,16 @@ export default class TargetModel extends GeneratedTargetModel {
}
/**
* Delete host sets via the `delete-host-sets` method.
* Delete host sets via the `remove-host-sets` method.
* See serializer and adapter for more information.
* @param {[string]} hostSetIDs
* @param {object} options
* @param {object} options.adapterOptions
* @return {Promise}
*/
deleteHostSets(hostSetIDs, options={ adapterOptions: {} }) {
removeHostSets(hostSetIDs, options={ adapterOptions: {} }) {
const defaultAdapterOptions = {
method: 'delete-host-sets',
method: 'remove-host-sets',
hostSetIDs
};
// There is no "deep merge" in ES.
@@ -80,13 +80,13 @@ export default class TargetModel extends GeneratedTargetModel {
}
/**
* Delete a single host set via the `delete-host-sets` method.
* Delete a single host set via the `remove-host-sets` method.
* @param {number} hostSetID
* @param {object} options
* @return {Promise}
*/
deleteHostSet(hostSetID, options) {
return this.deleteHostSets([hostSetID], options);
removeHostSet(hostSetID, options) {
return this.removeHostSets([hostSetID], options);
}
}