mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 13:16:48 +09:00
* Set priority on Backup Job create * Fix a bug when running backup jobs in sequential mode * Change the update semantics to support replace mode * Update Ruby, Golang and Java API accordingly * F #6063: Adress PR comments
This commit is contained in:
1 parent
44204ebf05
commit
c5392d08b8
10 files changed
+94
-41
No files matched your search
@@ -114,11 +114,12 @@ public class BackupJob extends PoolElement
|
||||
* @param client XML-RPC Client.
|
||||
* @param id The Backkup Job ID we want to modify.
|
||||
* @param new_template New template contents
|
||||
* @param append True to append new attributes instead of replace the whole template
|
||||
* @return If successful the message contains the Backup Job ID.
|
||||
*/
|
||||
public static OneResponse update(Client client, int id, String new_template)
|
||||
public static OneResponse update(Client client, int id, String new_template, boolean append)
|
||||
{
|
||||
return client.call(UPDATE, id, new_template);
|
||||
return client.call(UPDATE, id, new_template, append ? 1 : 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -348,11 +349,12 @@ public class BackupJob extends PoolElement
|
||||
* Replaces the template contents.
|
||||
*
|
||||
* @param new_template New template contents
|
||||
* @param append True to append new attributes instead of replace the whole template
|
||||
* @return If successful the message contains the Backup Job ID.
|
||||
*/
|
||||
public OneResponse update(String new_template)
|
||||
public OneResponse update(String new_template, boolean append)
|
||||
{
|
||||
return update(client, id, new_template);
|
||||
return update(client, id, new_template, append);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user