mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-03 13:47:01 +03:00
parent
2e8f864318
commit
8ef7c3624c
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user