forked from huaweicloud/huaweicloud-sdk-go-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_skill_info.go
137 lines (93 loc) · 2.87 KB
/
model_skill_info.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
package model
import (
"github.com/dysodeng/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// SkillInfo 技能详情
type SkillInfo struct {
// 技能应用场景
SubScenes string `json:"sub_scenes"`
// 应用模板ID
AppTemplateId string `json:"app_template_id"`
// 技能图标
Icon string `json:"icon"`
// 技能版本数量
VersionNum int32 `json:"version_num"`
// 技能描述
Description string `json:"description"`
// 计费编码信息
ProductInfo []string `json:"product_info"`
// 技能类别,分为standard和lite
Type string `json:"type"`
// 技能操作系统平台,其值为:Linux,Android, iOS, LiteOS,Windows
Platform string `json:"platform"`
// 自研标识,1表示是HiLens自研算法。
SelfDevFlag int32 `json:"self_dev_flag"`
// 计费类型,physical_src表示物理量标,如按周期收费。 src表示一次性
MeasureType string `json:"measure_type"`
// 技能审核结果
ApprovalResult string `json:"approval_result"`
// 更新时间,形如2022-06-30 17:22:48 GMT+08:00
UpdateTime string `json:"update_time"`
// 通道数
ChannelLimit int32 `json:"channel_limit"`
// 发布时间
PublishTime string `json:"publish_time"`
// 步长
ResourceStepSize int32 `json:"resource_step_size"`
// 审批时间
ApprovalTime string `json:"approval_time"`
// 云服务编码
CloudServiceType string `json:"cloud_service_type"`
// 摘要
Summary string `json:"summary"`
// 测试状态
TestStatus int32 `json:"test_status"`
// 芯片
Chip string `json:"chip"`
// 是否校验模型
IsVerifyModel bool `json:"is_verify_model"`
// 技能类型,文件类型file,镜像类型iamge
Format string `json:"format"`
// 资源类别
ResourceType string `json:"resource_type"`
// 技能版本
Version string `json:"version"`
// 计费单位 qps 表示按qps收费,road表示技能路数instance 表示按实例收费
MeasureUnit string `json:"measure_unit"`
// 标签
Tags []string `json:"tags"`
// 技能大小
Size int32 `json:"size"`
// 测试结果
TestResult string `json:"test_result"`
// 安装次数
InstallTimes int32 `json:"install_times"`
// 隐私条款
PrivacyPolicy []string `json:"privacy_policy"`
// 技能名字
Name string `json:"name"`
// 技能场景
Scenes []string `json:"scenes"`
// 计费模式
ChargeModel int32 `json:"charge_model"`
// 云服务资源编码
ResourceSpecCode string `json:"resource_spec_code"`
// 技能ID
SkillId string `json:"skill_id"`
// 开发者名字
Developer string `json:"developer"`
// 主场景
MainScenes string `json:"main_scenes"`
// 所支持的设备类别
DeviceTypes []string `json:"device_types"`
// 技能状态
Status int32 `json:"status"`
}
func (o SkillInfo) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "SkillInfo struct{}"
}
return strings.Join([]string{"SkillInfo", string(data)}, " ")
}