imageType 的类型不正确
imageType has incorrect type
来自 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 数据类型、服务和方法,这种不匹配导致无法 marshal/unmarshal 数据。
目前在 SoftLayer 上报告了一个关于此的问题,尽管 REST API 生成的结果是正确的。
不过,您可以向 SoftLayer 提交工单,以便他们为您提供进一步的帮助。
来自 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 数据类型、服务和方法,这种不匹配导致无法 marshal/unmarshal 数据。
目前在 SoftLayer 上报告了一个关于此的问题,尽管 REST API 生成的结果是正确的。
不过,您可以向 SoftLayer 提交工单,以便他们为您提供进一步的帮助。