Skip to content

Commit 335598e

Browse files
authored
sdk: rolling update for 0.22.36 (#441)
1 parent 149466a commit 335598e

File tree

3 files changed

+224
-149
lines changed

3 files changed

+224
-149
lines changed

services/uhost/apis.go

Lines changed: 89 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,31 @@ type CopyCustomImageRequest struct {
3131
// 目标镜像名称
3232
TargetImageName *string `required:"false"`
3333

34+
// 目标镜像业务组
35+
TargetImageTag *string `required:"false"`
36+
3437
// 目标项目Id, 参见 GetProjectList
3538
TargetProjectId *string `required:"true"`
3639

37-
// 目标地域,不跨地域不用填
40+
// 目标地域,不跨地域可不填
3841
TargetRegion *string `required:"false"`
42+
43+
// 目标地域的集合,批量复制时填写
44+
TargetRegionList []string `required:"false"`
3945
}
4046

4147
// CopyCustomImageResponse is response schema for CopyCustomImage action
4248
type CopyCustomImageResponse struct {
4349
response.CommonBase
4450

45-
// 目标镜像Id
51+
// 批量复制时的任务信息,参考下方的CopyImageTaskInfo
52+
Infos []CopyImageTaskInfo
53+
54+
// 目标镜像Id,只有非批量复制的时候该字段才存在
4655
TargetImageId string
56+
57+
// 目标镜像复制的任务Id,只有非批量复制的时候该字段才存在
58+
TaskId string
4759
}
4860

4961
// NewCopyCustomImageRequest will create request of CopyCustomImage action.
@@ -99,6 +111,9 @@ type CreateCustomImageRequest struct {
99111
// 镜像名称
100112
ImageName *string `required:"true"`
101113

114+
// 镜像业务组。默认:Default
115+
Tag *string `required:"false"`
116+
102117
// UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html)
103118
UHostId *string `required:"true"`
104119
}
@@ -212,7 +227,7 @@ CreateUHostInstanceParamNetworkInterfaceEIP is request schema for complex param
212227
*/
213228
type CreateUHostInstanceParamNetworkInterfaceEIP struct {
214229

215-
// 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
230+
// 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式下非必传, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
216231
Bandwidth *int `required:"false"`
217232

218233
// 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。
@@ -238,15 +253,15 @@ type UHostDiskCustomBackup struct {
238253
}
239254

240255
/*
241-
CreateUHostInstanceParamVolumes is request schema for complex param
256+
CreateUHostInstanceParamSecGroupId is request schema for complex param
242257
*/
243-
type CreateUHostInstanceParamVolumes struct {
258+
type CreateUHostInstanceParamSecGroupId struct {
244259

245-
// 【该字段已废弃,请谨慎使用】
246-
CouponId *string `required:"false" deprecated:"true"`
260+
// 安全组 ID。至多可以同时绑定5个安全组。
261+
Id *string `required:"false"`
247262

248-
// 【该字段已废弃,请谨慎使用】
249-
IsBoot *string `required:"false" deprecated:"true"`
263+
// 安全组优先级。取值范围[1, 5]
264+
Priority *int `required:"false"`
250265
}
251266

252267
/*
@@ -261,27 +276,6 @@ type CreateUHostInstanceParamNetworkInterface struct {
261276
EIP *CreateUHostInstanceParamNetworkInterfaceEIP `required:"false"`
262277
}
263278

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-
285279
/*
286280
UHostDisk is request schema for complex param
287281
*/
@@ -312,6 +306,27 @@ type UHostDisk struct {
312306
Type *string `required:"true"`
313307
}
314308

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+
315330
// CreateUHostInstanceRequest is request schema for CreateUHostInstance action
316331
type CreateUHostInstanceRequest struct {
317332
request.CommonBase
@@ -355,7 +370,7 @@ type CreateUHostInstanceRequest struct {
355370
// GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关)
356371
GPU *int `required:"false"`
357372

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时必填
359374
GpuType *string `required:"false"`
360375

361376
// 【私有专区属性】专区云主机开启宿住关联属性
@@ -397,6 +412,9 @@ type CreateUHostInstanceRequest struct {
397412
// 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192
398413
Memory *int `required:"false"`
399414

415+
// 本次最小创建主机数量,取值范围是[1,100],默认值为1。- 配额不足时,返回错误。
416+
MinCount *int `required:"false"`
417+
400418
// 最低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"。
401419
MinimalCpuPlatform *string `required:"false"`
402420

@@ -757,6 +775,9 @@ type DescribeImageRequest struct {
757775
// 镜像Id
758776
ImageId *string `required:"false"`
759777

778+
// 镜像Id列表
779+
ImageIds []string `required:"false"`
780+
760781
// 镜像类型。标准镜像:Base,镜像市场:Business, 自定义镜像:Custom,默认返回所有类型
761782
ImageType *string `required:"false"`
762783

@@ -771,6 +792,9 @@ type DescribeImageRequest struct {
771792

772793
// 是否返回价格:1返回,0不返回;默认不返回
773794
PriceSet *int `required:"false"`
795+
796+
// 业务组Id。默认:Default
797+
Tag *string `required:"false"`
774798
}
775799

776800
// DescribeImageResponse is response schema for DescribeImage action
@@ -1110,7 +1134,7 @@ type GetAttachedDiskUpgradePriceRequest struct {
11101134
// 磁盘ID。参见 [DescribeUHostInstance](describe_uhost_instance.html)返回值中的DiskSet。
11111135
DiskId *string `required:"true"`
11121136

1113-
// 磁盘大小,单位GB,步长为10。取值范围需大于当前磁盘大小,最大值请参考[[api:uhost-api:disk_type|磁盘类型]]。
1137+
// 磁盘大小,单位GB。取值范围需大于当前磁盘大小,最大值请参考[[api:uhost-api:disk_type|磁盘类型]]。
11141138
DiskSpace *int `required:"true"`
11151139

11161140
// UHost实例ID。 参见 [DescribeUHostInstance](describe_uhost_instance.html)。
@@ -1121,8 +1145,23 @@ type GetAttachedDiskUpgradePriceRequest struct {
11211145
type GetAttachedDiskUpgradePriceResponse struct {
11221146
response.CommonBase
11231147

1148+
// 原价。精度为小数点后2位。
1149+
ListPrice float64
1150+
1151+
// 原价详情,精度为小数点后2位。
1152+
ListPriceDetail DiskUpgradePriceDetail
1153+
1154+
// 用户折后价。精度为小数点后2位。
1155+
OriginalPrice float64
1156+
1157+
// 用户折后价详情,精度为小数点后2位。
1158+
OriginalPriceDetail DiskUpgradePriceDetail
1159+
11241160
// 升级差价。精度为小数点后2位。
11251161
Price float64
1162+
1163+
// 升级价格详情,精度为小数点后2位。
1164+
PriceDetail DiskUpgradePriceDetail
11261165
}
11271166

11281167
// NewGetAttachedDiskUpgradePriceRequest will create request of GetAttachedDiskUpgradePrice action.
@@ -1156,21 +1195,6 @@ func (c *UHostClient) GetAttachedDiskUpgradePrice(req *GetAttachedDiskUpgradePri
11561195
return &res, nil
11571196
}
11581197

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-
11741198
/*
11751199
getUHostInstancePriceParamDisks is request schema for complex param
11761200
*/
@@ -1189,6 +1213,21 @@ type getUHostInstancePriceParamDisks struct {
11891213
Type *string `required:"true"`
11901214
}
11911215

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+
11921231
// GetUHostInstancePriceRequest is request schema for GetUHostInstancePrice action
11931232
type GetUHostInstancePriceRequest struct {
11941233
request.CommonBase
@@ -1590,6 +1629,9 @@ type ImportCustomImageRequest struct {
15901629
// 操作系统平台,比如CentOS、Ubuntu、Windows、RedHat等,请参考控制台的镜像版本;若导入控制台上没有的操作系统,参数为Other
15911630
OsType *string `required:"true"`
15921631

1632+
// 业务组
1633+
Tag *string `required:"false"`
1634+
15931635
// UFile私有空间地址
15941636
UFileUrl *string `required:"true"`
15951637
}

0 commit comments

Comments
 (0)