cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mice Xia <weiran.x...@gmail.com>
Subject Re: [DISCUSS] Question about @Parameter (entityType)
Date Mon, 28 Jan 2013 05:52:07 GMT
i have the same question and i found this:

http://mail-archives.apache.org/mod_mbox//incubator-cloudstack-dev/201301.mbox/%3CCANLSSBXHw5FHwRN3BS+YOj6YCpbbdU1kHjzq4nCAA59fQfaAUg@mail.gmail.com%3E

seems this annotation is used for converting entity UUID->ID

-Mice

2013/1/28 Kelven Yang <kelven.yang@citrix.com>:
> I have a question about a change in @Parameter at API layer, in regards to
> entityType, does anyone know the reason behind why it has to go through
> with some Response class which in turn declares links to the entity class
> via @EntityReference annotation?
>
> And in DeployVMCmd as an example, there is also another special field
> (ipToNetworkList) declares entity reference directly, could someone
> clarify it?
>
> @ACL(checkKeyAccess=true)
>     @Parameter(name = ApiConstants.IP_NETWORK_LIST, type =
> CommandType.MAP, entityType={Network.class, IpAddress.class},
>             description = "ip to network mapping. Can't be specified with
> networkIds parameter." +
>                     " Example:
> iptonetworklist[0].ip=10.10.10.11&iptonetworklist[0].networkid=uuid -
> requests to use ip 10.10.10.11 in network id=uuid")
>     private Map ipToNetworkList;
>
> Kelven
>
>

Mime
View raw message