1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-03 13:47:01 +03:00

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

This commit is contained in:
juanmont 2018-06-25 17:21:03 +02:00 committed by Ruben S. Montero
parent 2e8f864318
commit 8ef7c3624c

View File

@ -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);
}
/**