mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
Feature #1556: Add new elem to migrator, and xsd
This commit is contained in:
1 parent
8a2597cd90
commit
68efaa7e62
3 files changed
+42
-1
No files matched your search
@@ -175,7 +175,7 @@ public class VirtualMachine extends PoolElement{
|
||||
* @param client XML-RPC Client.
|
||||
* @param id The id of the target vm.
|
||||
* @param new_template New template contents
|
||||
* @return If successful the message contains the vm id.
|
||||
* @return If an error occurs the error message contains the reason.
|
||||
*/
|
||||
public static OneResponse update(Client client, int id, String new_template)
|
||||
{
|
||||
@@ -558,6 +558,17 @@ public class VirtualMachine extends PoolElement{
|
||||
return rename(client, id, name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Replaces this VM's user template contents.
|
||||
*
|
||||
* @param new_template New template contents
|
||||
* @return If an error occurs the error message contains the reason.
|
||||
*/
|
||||
public OneResponse update(String new_template)
|
||||
{
|
||||
return client.call(UPDATE, id, new_template);
|
||||
}
|
||||
|
||||
// =================================
|
||||
// Helpers
|
||||
// =================================
|
||||
|
||||
Reference in new issue
Block a user