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:
3 files changed
+44
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user