Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用方法ListServersDetailsRequest Metadata 结构体定义错误 #28

Open
dreamskyw opened this issue Aug 7, 2021 · 1 comment
Open

Comments

@dreamskyw
Copy link

在使用go SDK 遇到sdk 错误定义。
具体错误如下


第91行, Metadata map[string]string json:"metadata"
在使用方法,client.ListServersDetails() 中返回结构体并不是map。
返回值如下:
image
而SDK定义的结构体为map
image

对用户不太友好;

@zoupengli
Copy link
Collaborator

你好,Metadata这个字段的来源一部分是ECS在创建虚拟机的时候自动添加的,一部分是用户自定义的,因此无法明确定义为结构体,因此定义为字典。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants