feat: Add 'deleteHostSet' method to a target

'deleteHostSet' wraps a host set id in an array and uses
'deleteHostSets' method
This commit is contained in:
Susmitha Girumala committed 2020-08-27 12:59:26 -04:00
1 parent 54008c8977
commit f97eebe1b8
3 files changed
+44 -1

No files matched your search

+10
View File
@@ -79,4 +79,14 @@ export default class TargetModel extends GeneratedTargetModel {
});
}
/**
* Delete a single host set via the `delete-host-sets` method.
* @param {object} hostSet
* @param {object} options
* @return {Promise}
*/
deleteHostSet(hostSet, options) {
return this.deleteHostSets([hostSet.id], options);
}
}