imageType的类型不正确

时间:2016-09-06 03:15:23

标签: ibm-cloud-infrastructure

来自this元数据服务,在数据类型SoftLayer_Virtual_Guest_Block_Device_Template_Group中,它具有以下两个字符串属性:

"imageType":
{
"name": "imageType",
"type": "string",
"form": "relational",
"doc": "The virtual disk image type of this template. Value will be populated on parent and child, but only supports object filtering on the parent."
},
"imageTypeKeyName":
{
"name": "imageTypeKeyName",
"type": "string",
"form": "relational",
"doc": "The virtual disk image type keyname (e.g. SYSTEM, DISK_CAPTURE, ISO, etc) of this template. Value will be populated on parent and child, but only supports object filtering on the parent."
},

但是如果我们检查rest服务的json数据,imageType不是字符串,而是复杂类型:

"imageType":
{
"description": "a disk that may be replaced on upgrade",
"keyName": "SYSTEM",
"name": "System"
}

我们使用golang客户端从元数据服务生成go数据类型,服务和方法,这种不匹配导致无法编组/解组数据。

1 个答案:

答案 0 :(得分:0)

目前在SoftLayer上报告了一个问题,尽管REST API生成的结果是正确的。

尽管如此,您可以向SoftLayer提交一张票,以便他们为您提供进一步的帮助。