GUACAMOLE-926: Allow updating objects via directory patch.

This commit is contained in:
James Muehlner
2023-04-17 21:57:30 +00:00
parent d9bb38eb65
commit d0876cdc71
2 changed files with 77 additions and 11 deletions

View File

@@ -59,7 +59,7 @@ angular.module('rest').factory('DirectoryPatch', [function defineDirectoryPatch(
this.path = template.path || '/';
/**
* The object being added, or undefined if deleting.
* The object being added/replaced, or undefined if deleting.
*
* @type {DirectoryObject}
*/
@@ -77,6 +77,11 @@ angular.module('rest').factory('DirectoryPatch', [function defineDirectoryPatch(
*/
ADD : 'add',
/**
* Replaces (updates) the specified object from the relation.
*/
REPLACE : 'replace',
/**
* Removes the specified object from the relation.
*/