diff --git a/src/oca/java/src/org/opennebula/client/image/Image.java b/src/oca/java/src/org/opennebula/client/image/Image.java index 6db71869c8..34a3d25d48 100644 --- a/src/oca/java/src/org/opennebula/client/image/Image.java +++ b/src/oca/java/src/org/opennebula/client/image/Image.java @@ -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); } /**