feat: Add 'addHost' method to a host set model
This commit is contained in:
2 files changed
+146
-5
No files matched your search
@@ -39,6 +39,16 @@ export default class HostSetModel extends GeneratedHostSetModel {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a single host via the `add-hosts` method.
|
||||
* @param {string} hostID
|
||||
* @param {object} options
|
||||
* @return {Promise}
|
||||
*/
|
||||
addHost(hostID, options) {
|
||||
return this.addHosts([hostID], options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete hosts via the `remove-hosts` method.
|
||||
* See serializer and adapter for more information.
|
||||
|
||||
Reference in new issue
Block a user