in generate/generate.go [2110:2157]
func mapType(aName string, pName string, pType string) string {
if _, ok := longToStringConvertedParams[pName]; ok {
pType = "UUID"
}
switch pType {
case "UUID":
return "UUID"
case "boolean":
return "bool"
case "short", "int", "integer":
return "int"
case "long":
return "int64"
case "float", "double":
return "float64"
case "list":
if pName == "downloaddetails" || pName == "owner" {
return "[]map[string]string"
} else if pName == "network" {
return "[]*Network"
}
if pName == "virtualmachines" {
return "[]*VirtualMachine"
}
return "[]string"
case "map":
if mapRequireList[aName] != nil && mapRequireList[aName][pName] {
return "[]map[string]string"
}
return "map[string]string"
case "set":
return "[]interface{}"
case "resourceiconresponse":
return "interface{}"
case "responseobject":
return "json.RawMessage"
case "uservmresponse":
// This is a really specific anomaly of the API
return "*VirtualMachine"
case "outofbandmanagementresponse":
return "OutOfBandManagementResponse"
case "hostharesponse":
return "HAForHostResponse"
default:
return "string"
}
}