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


Reply via email to