feat: Add 'addHost' method to a host set model

This commit is contained in:
Susmitha Girumala committed 2020-10-21 16:20:34 -04:00
1 parent d1f446628a
commit d0d1ef67eb
2 files changed
+146 -5

No files matched your search

+10
View File
@@ -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.