You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Marcus <sh...@gmail.com> on 2014/03/03 19:32:18 UTC

overridden compute offerings in deployVirtualMachine

I came across this code in 4.4 recently:

commit e5cfe948186b825d2b28c99ce2915a5ca8498aff
Author: Bharat Kumar <bh...@citrix.com>
Date:   Thu Nov 28 12:34:16 2013 +0530

    CLOUDSTACK-5160 add a map to specify the custom compute parameters
in the deployvm api.

    Signed-off-by: Jayapal <ja...@apache.org>

It looks like you can set certain details to override the compute
offering in deployVirtualMachine. Since these aren't specific API
parameters, however, how are the supported items documented?


-    @Parameter(name = ApiConstants.CPU_SPEED,
-               type = CommandType.INTEGER,
-               since = "4.3",
-               description = "optional field to specify the cpu speed
when using dynamic compute offering.")
-    private Integer cpuSpeed;
-
-    @Parameter(name = ApiConstants.MEMORY,
-               type = CommandType.INTEGER,
-               since = "4.3",
-               description = "optional field to specify the memory
when using dynamic compute offering")
-    private Integer memory;
-
-    @Parameter(name = ApiConstants.CPU_NUMBER,
-               type = CommandType.INTEGER,
-               since = "4.3",
-               description = "optional field to specify the number of
cpu cores when using dynamic offering.")
-    private Integer cpuNumber;
-
-    @Parameter(name = ApiConstants.ROOT_DISK_SIZE,
-               type = CommandType.LONG,
-               since = "4.3",
-               description = "optional field to specify the number of
cpu cores when using dynamic offering.")
-    private Long rootdisksize;
+    @Parameter(name = ApiConstants.CUSTOM_PARAMETERS,
+               type = CommandType.MAP,
+               since= "4.3",
+               description = "used to specify the custom parameters.")
+    private  Map customParameters;