F #1880: Added overload function for new param (#2220)

This commit is contained in:
juanmont authored and Tino Vázquez committed 2018-06-25 17:21:03 +02:00
1 parent fc92951994
commit 3cd262eedd
1 file changed
+20 -2
@@ -82,6 +82,24 @@ public class Image extends PoolElement
// Static XML-RPC methods
// =================================
/**
* Allocates a new Image in OpenNebula.
*
* @param client XML-RPC Client.
* @param description A string containing the template of the image.
* @param datastoreId The Datastore ID
*
* @return If successful the message contains the associated
* id generated for this Image.
*/
public static OneResponse allocate(
Client client,
String description,
int datastoreId)
{
return client.call(ALLOCATE, description, datastoreId, false);
}
/**
* Allocates a new Image in OpenNebula.
*
@@ -97,9 +115,9 @@ public class Image extends PoolElement
Client client,
String description,
int datastoreId,
boolean check_capacity = true)
boolean no_check_capacity)
{
return client.call(ALLOCATE, description, datastoreId, check_capacity);
return client.call(ALLOCATE, description, datastoreId, no_check_capacity);
}
/**