@@ -31,19 +31,31 @@ type CopyCustomImageRequest struct {
31
31
// 目标镜像名称
32
32
TargetImageName * string `required:"false"`
33
33
34
+ // 目标镜像业务组
35
+ TargetImageTag * string `required:"false"`
36
+
34
37
// 目标项目Id, 参见 GetProjectList
35
38
TargetProjectId * string `required:"true"`
36
39
37
- // 目标地域,不跨地域不用填
40
+ // 目标地域,不跨地域可不填
38
41
TargetRegion * string `required:"false"`
42
+
43
+ // 目标地域的集合,批量复制时填写
44
+ TargetRegionList []string `required:"false"`
39
45
}
40
46
41
47
// CopyCustomImageResponse is response schema for CopyCustomImage action
42
48
type CopyCustomImageResponse struct {
43
49
response.CommonBase
44
50
45
- // 目标镜像Id
51
+ // 批量复制时的任务信息,参考下方的CopyImageTaskInfo
52
+ Infos []CopyImageTaskInfo
53
+
54
+ // 目标镜像Id,只有非批量复制的时候该字段才存在
46
55
TargetImageId string
56
+
57
+ // 目标镜像复制的任务Id,只有非批量复制的时候该字段才存在
58
+ TaskId string
47
59
}
48
60
49
61
// NewCopyCustomImageRequest will create request of CopyCustomImage action.
@@ -99,6 +111,9 @@ type CreateCustomImageRequest struct {
99
111
// 镜像名称
100
112
ImageName * string `required:"true"`
101
113
114
+ // 镜像业务组。默认:Default
115
+ Tag * string `required:"false"`
116
+
102
117
// UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html)
103
118
UHostId * string `required:"true"`
104
119
}
@@ -212,7 +227,7 @@ CreateUHostInstanceParamNetworkInterfaceEIP is request schema for complex param
212
227
*/
213
228
type CreateUHostInstanceParamNetworkInterfaceEIP struct {
214
229
215
- // 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽 , 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
230
+ // 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式下非必传 , 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
216
231
Bandwidth * int `required:"false"`
217
232
218
233
// 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。
@@ -238,15 +253,15 @@ type UHostDiskCustomBackup struct {
238
253
}
239
254
240
255
/*
241
- CreateUHostInstanceParamVolumes is request schema for complex param
256
+ CreateUHostInstanceParamSecGroupId is request schema for complex param
242
257
*/
243
- type CreateUHostInstanceParamVolumes struct {
258
+ type CreateUHostInstanceParamSecGroupId struct {
244
259
245
- // 【该字段已废弃,请谨慎使用】
246
- CouponId * string `required:"false" deprecated:"true "`
260
+ // 安全组 ID。至多可以同时绑定5个安全组。
261
+ Id * string `required:"false"`
247
262
248
- // 【该字段已废弃,请谨慎使用】
249
- IsBoot * string `required:"false" deprecated:"true "`
263
+ // 安全组优先级。取值范围[1, 5]
264
+ Priority * int `required:"false"`
250
265
}
251
266
252
267
/*
@@ -261,27 +276,6 @@ type CreateUHostInstanceParamNetworkInterface struct {
261
276
EIP * CreateUHostInstanceParamNetworkInterfaceEIP `required:"false"`
262
277
}
263
278
264
- /*
265
- CreateUHostInstanceParamSecGroupId is request schema for complex param
266
- */
267
- type CreateUHostInstanceParamSecGroupId struct {
268
-
269
- // 安全组 ID。至多可以同时绑定5个安全组。
270
- Id * string `required:"false"`
271
-
272
- // 安全组优先级。取值范围[1, 5]
273
- Priority * int `required:"false"`
274
- }
275
-
276
- /*
277
- CreateUHostInstanceParamFeatures is request schema for complex param
278
- */
279
- type CreateUHostInstanceParamFeatures struct {
280
-
281
- // 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
282
- UNI * bool `required:"false"`
283
- }
284
-
285
279
/*
286
280
UHostDisk is request schema for complex param
287
281
*/
@@ -312,6 +306,27 @@ type UHostDisk struct {
312
306
Type * string `required:"true"`
313
307
}
314
308
309
+ /*
310
+ CreateUHostInstanceParamVolumes is request schema for complex param
311
+ */
312
+ type CreateUHostInstanceParamVolumes struct {
313
+
314
+ // 【该字段已废弃,请谨慎使用】
315
+ CouponId * string `required:"false" deprecated:"true"`
316
+
317
+ // 【该字段已废弃,请谨慎使用】
318
+ IsBoot * string `required:"false" deprecated:"true"`
319
+ }
320
+
321
+ /*
322
+ CreateUHostInstanceParamFeatures is request schema for complex param
323
+ */
324
+ type CreateUHostInstanceParamFeatures struct {
325
+
326
+ // 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
327
+ UNI * bool `required:"false"`
328
+ }
329
+
315
330
// CreateUHostInstanceRequest is request schema for CreateUHostInstance action
316
331
type CreateUHostInstanceRequest struct {
317
332
request.CommonBase
@@ -355,7 +370,7 @@ type CreateUHostInstanceRequest struct {
355
370
// GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关)
356
371
GPU * int `required:"false"`
357
372
358
- // GPU类型,枚举值["K80", "P40", "V100", "T4","T4A", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", "V100S",2080","2080TiS","2080TiPro","3090","4090","A100"]。MachineType为G时必填
373
+ // GPU类型,枚举值["K80", "P40", "V100", "T4","T4A", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", "V100S",2080","2080TiS","2080TiPro","3090","4090","4090Pro"," A100","A800 "]。MachineType为G时必填
359
374
GpuType * string `required:"false"`
360
375
361
376
// 【私有专区属性】专区云主机开启宿住关联属性
@@ -397,6 +412,9 @@ type CreateUHostInstanceRequest struct {
397
412
// 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192
398
413
Memory * int `required:"false"`
399
414
415
+ // 本次最小创建主机数量,取值范围是[1,100],默认值为1。- 配额不足时,返回错误。
416
+ MinCount * int `required:"false"`
417
+
400
418
// 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", "Intel/IceLake", "Intel/SapphireRapids", "Amd/Epyc2", "Amd/Auto","Ampere/Auto","Ampere/Altra"],默认值是"Intel/Auto"。
401
419
MinimalCpuPlatform * string `required:"false"`
402
420
@@ -757,6 +775,9 @@ type DescribeImageRequest struct {
757
775
// 镜像Id
758
776
ImageId * string `required:"false"`
759
777
778
+ // 镜像Id列表
779
+ ImageIds []string `required:"false"`
780
+
760
781
// 镜像类型。标准镜像:Base,镜像市场:Business, 自定义镜像:Custom,默认返回所有类型
761
782
ImageType * string `required:"false"`
762
783
@@ -771,6 +792,9 @@ type DescribeImageRequest struct {
771
792
772
793
// 是否返回价格:1返回,0不返回;默认不返回
773
794
PriceSet * int `required:"false"`
795
+
796
+ // 业务组Id。默认:Default
797
+ Tag * string `required:"false"`
774
798
}
775
799
776
800
// DescribeImageResponse is response schema for DescribeImage action
@@ -1110,7 +1134,7 @@ type GetAttachedDiskUpgradePriceRequest struct {
1110
1134
// 磁盘ID。参见 [DescribeUHostInstance](describe_uhost_instance.html)返回值中的DiskSet。
1111
1135
DiskId * string `required:"true"`
1112
1136
1113
- // 磁盘大小,单位GB,步长为10 。取值范围需大于当前磁盘大小,最大值请参考[[api:uhost-api:disk_type|磁盘类型]]。
1137
+ // 磁盘大小,单位GB。取值范围需大于当前磁盘大小,最大值请参考[[api:uhost-api:disk_type|磁盘类型]]。
1114
1138
DiskSpace * int `required:"true"`
1115
1139
1116
1140
// UHost实例ID。 参见 [DescribeUHostInstance](describe_uhost_instance.html)。
@@ -1121,8 +1145,23 @@ type GetAttachedDiskUpgradePriceRequest struct {
1121
1145
type GetAttachedDiskUpgradePriceResponse struct {
1122
1146
response.CommonBase
1123
1147
1148
+ // 原价。精度为小数点后2位。
1149
+ ListPrice float64
1150
+
1151
+ // 原价详情,精度为小数点后2位。
1152
+ ListPriceDetail DiskUpgradePriceDetail
1153
+
1154
+ // 用户折后价。精度为小数点后2位。
1155
+ OriginalPrice float64
1156
+
1157
+ // 用户折后价详情,精度为小数点后2位。
1158
+ OriginalPriceDetail DiskUpgradePriceDetail
1159
+
1124
1160
// 升级差价。精度为小数点后2位。
1125
1161
Price float64
1162
+
1163
+ // 升级价格详情,精度为小数点后2位。
1164
+ PriceDetail DiskUpgradePriceDetail
1126
1165
}
1127
1166
1128
1167
// NewGetAttachedDiskUpgradePriceRequest will create request of GetAttachedDiskUpgradePrice action.
@@ -1156,21 +1195,6 @@ func (c *UHostClient) GetAttachedDiskUpgradePrice(req *GetAttachedDiskUpgradePri
1156
1195
return & res , nil
1157
1196
}
1158
1197
1159
- /*
1160
- GetUHostInstancePriceParamVolumes is request schema for complex param
1161
- */
1162
- type GetUHostInstancePriceParamVolumes struct {
1163
-
1164
- // 【该字段已废弃,请谨慎使用】
1165
- IsBoot * string `required:"false" deprecated:"true"`
1166
-
1167
- // 【该字段已废弃,请谨慎使用】
1168
- Size * int `required:"false" deprecated:"true"`
1169
-
1170
- // 【该字段已废弃,请谨慎使用】
1171
- Type * string `required:"false" deprecated:"true"`
1172
- }
1173
-
1174
1198
/*
1175
1199
getUHostInstancePriceParamDisks is request schema for complex param
1176
1200
*/
@@ -1189,6 +1213,21 @@ type getUHostInstancePriceParamDisks struct {
1189
1213
Type * string `required:"true"`
1190
1214
}
1191
1215
1216
+ /*
1217
+ GetUHostInstancePriceParamVolumes is request schema for complex param
1218
+ */
1219
+ type GetUHostInstancePriceParamVolumes struct {
1220
+
1221
+ // 【该字段已废弃,请谨慎使用】
1222
+ IsBoot * string `required:"false" deprecated:"true"`
1223
+
1224
+ // 【该字段已废弃,请谨慎使用】
1225
+ Size * int `required:"false" deprecated:"true"`
1226
+
1227
+ // 【该字段已废弃,请谨慎使用】
1228
+ Type * string `required:"false" deprecated:"true"`
1229
+ }
1230
+
1192
1231
// GetUHostInstancePriceRequest is request schema for GetUHostInstancePrice action
1193
1232
type GetUHostInstancePriceRequest struct {
1194
1233
request.CommonBase
@@ -1590,6 +1629,9 @@ type ImportCustomImageRequest struct {
1590
1629
// 操作系统平台,比如CentOS、Ubuntu、Windows、RedHat等,请参考控制台的镜像版本;若导入控制台上没有的操作系统,参数为Other
1591
1630
OsType * string `required:"true"`
1592
1631
1632
+ // 业务组
1633
+ Tag * string `required:"false"`
1634
+
1593
1635
// UFile私有空间地址
1594
1636
UFileUrl * string `required:"true"`
1595
1637
}
0 commit comments