Skip to content

Commit 7fced9b

Browse files
authored
sdk: rolling update for 0.22.30 (#434)
1 parent 6dc80d4 commit 7fced9b

File tree

8 files changed

+192
-189
lines changed

8 files changed

+192
-189
lines changed

services/uhost/apis.go

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,36 @@ type CreateUHostInstanceParamNetworkInterfaceEIP struct {
237237
ShareBandwidthId *string `required:"false"`
238238
}
239239

240+
/*
241+
UHostDisk is request schema for complex param
242+
*/
243+
type UHostDisk struct {
244+
245+
// 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE
246+
BackupType *string `required:"false"`
247+
248+
// 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看
249+
CouponId *string `required:"false"`
250+
251+
// 【功能仅部分可用区开放,详询技术支持】磁盘是否加密。加密:true, 不加密: false加密必须传入对应的的KmsKeyId,默认值false
252+
Encrypted *bool `required:"false"`
253+
254+
// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
255+
IsBoot *string `required:"true"`
256+
257+
// 【功能仅部分可用区开放,详询技术支持】kms key id。选择加密盘时必填。
258+
KmsKeyId *string `required:"false"`
259+
260+
// 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。
261+
Size *int `required:"true"`
262+
263+
// 从快照创建盘时所用快照id,目前仅支持数据盘
264+
SnapshotId *string `required:"false"`
265+
266+
// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
267+
Type *string `required:"true"`
268+
}
269+
240270
/*
241271
CreateUHostInstanceParamVolumes is request schema for complex param
242272
*/
@@ -270,36 +300,6 @@ type CreateUHostInstanceParamSecGroupId struct {
270300
Priority *int `required:"false"`
271301
}
272302

273-
/*
274-
UHostDisk is request schema for complex param
275-
*/
276-
type UHostDisk struct {
277-
278-
// 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE
279-
BackupType *string `required:"false"`
280-
281-
// 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看
282-
CouponId *string `required:"false"`
283-
284-
// 【功能仅部分可用区开放,详询技术支持】磁盘是否加密。加密:true, 不加密: false加密必须传入对应的的KmsKeyId,默认值false
285-
Encrypted *bool `required:"false"`
286-
287-
// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
288-
IsBoot *string `required:"true"`
289-
290-
// 【功能仅部分可用区开放,详询技术支持】kms key id。选择加密盘时必填。
291-
KmsKeyId *string `required:"false"`
292-
293-
// 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。
294-
Size *int `required:"true"`
295-
296-
// 从快照创建盘时所用快照id,目前仅支持数据盘
297-
SnapshotId *string `required:"false"`
298-
299-
// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
300-
Type *string `required:"true"`
301-
}
302-
303303
/*
304304
CreateUHostInstanceParamNetworkInterface is request schema for complex param
305305
*/

services/uhost/models.go

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,6 @@ type KeyPair struct {
2626
ProjectId string
2727
}
2828

29-
/*
30-
FeatureModes - 可以支持的模式类别
31-
*/
32-
type FeatureModes struct {
33-
34-
// 这个特性必须是列出来的CPU平台及以上的CPU才支持
35-
MinimalCpuPlatform []string
36-
37-
// 模式|特性名称
38-
Name string
39-
40-
// 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。
41-
RelatedToImageFeature []string
42-
}
43-
4429
/*
4530
DataDiskInfo - 数据盘信息
4631
*/
@@ -93,27 +78,30 @@ type Collection struct {
9378
}
9479

9580
/*
96-
GraphicsMemory - GPU的显存指标
81+
FeatureModes - 可以支持的模式类别
9782
*/
98-
type GraphicsMemory struct {
83+
type FeatureModes struct {
9984

100-
// 交互展示参数,可忽略
101-
Rate int
85+
// 这个特性必须是列出来的CPU平台及以上的CPU才支持
86+
MinimalCpuPlatform []string
10287

103-
// 值,单位是GB
104-
Value int
88+
// 模式|特性名称
89+
Name string
90+
91+
// 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。
92+
RelatedToImageFeature []string
10593
}
10694

10795
/*
108-
Features - 虚机可支持的特性
96+
GraphicsMemory - GPU的显存指标
10997
*/
110-
type Features struct {
98+
type GraphicsMemory struct {
11199

112-
// 可以提供的模式类别
113-
Modes []FeatureModes
100+
// 交互展示参数,可忽略
101+
Rate int
114102

115-
// 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug
116-
Name string
103+
// 值,单位是GB
104+
Value int
117105
}
118106

119107
/*
@@ -143,6 +131,18 @@ type MachineSizes struct {
143131
Gpu int
144132
}
145133

134+
/*
135+
Features - 虚机可支持的特性
136+
*/
137+
type Features struct {
138+
139+
// 可以提供的模式类别
140+
Modes []FeatureModes
141+
142+
// 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug
143+
Name string
144+
}
145+
146146
/*
147147
CpuPlatforms - CPU平台信息
148148
*/
@@ -323,6 +323,48 @@ type IsolationGroup struct {
323323
SpreadInfoSet []SpreadInfo
324324
}
325325

326+
/*
327+
UHostDiskSet - DescribeUHostInstance
328+
*/
329+
type UHostDiskSet struct {
330+
331+
// 备份方案。若开通了数据方舟,则为DATAARK
332+
BackupType string
333+
334+
// 磁盘ID
335+
DiskId string
336+
337+
// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
338+
DiskType string
339+
340+
// 磁盘盘符
341+
Drive string
342+
343+
// "true": 加密盘 "false":非加密盘
344+
Encrypted string
345+
346+
// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
347+
IsBoot string
348+
349+
// UDisk名字(仅当磁盘是UDisk时返回)
350+
Name string
351+
352+
// 磁盘大小,单位: GB
353+
Size int
354+
355+
// 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
356+
Type string
357+
}
358+
359+
/*
360+
SpotAttribute - 竞价实例属性
361+
*/
362+
type SpotAttribute struct {
363+
364+
// 回收时间
365+
RecycleTime int
366+
}
367+
326368
/*
327369
UHostIPSet - DescribeUHostInstance
328370
*/
@@ -362,54 +404,6 @@ type UHostIPSet struct {
362404
Weight int
363405
}
364406

365-
/*
366-
UDSetUDHostAttribute - 私有专区对应的宿主机属性
367-
*/
368-
type UDSetUDHostAttribute struct {
369-
370-
// 是否绑定私有专区宿主机
371-
HostBinding bool
372-
373-
// 私有专区宿主机
374-
UDHostId string
375-
376-
// 私有专区
377-
UDSetId string
378-
}
379-
380-
/*
381-
UHostDiskSet - DescribeUHostInstance
382-
*/
383-
type UHostDiskSet struct {
384-
385-
// 备份方案。若开通了数据方舟,则为DATAARK
386-
BackupType string
387-
388-
// 磁盘ID
389-
DiskId string
390-
391-
// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
392-
DiskType string
393-
394-
// 磁盘盘符
395-
Drive string
396-
397-
// "true": 加密盘 "false":非加密盘
398-
Encrypted string
399-
400-
// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
401-
IsBoot string
402-
403-
// UDisk名字(仅当磁盘是UDisk时返回)
404-
Name string
405-
406-
// 磁盘大小,单位: GB
407-
Size int
408-
409-
// 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
410-
Type string
411-
}
412-
413407
/*
414408
UHostKeyPair - 主机密钥信息
415409
*/
@@ -423,12 +417,18 @@ type UHostKeyPair struct {
423417
}
424418

425419
/*
426-
SpotAttribute - 竞价实例属性
420+
UDSetUDHostAttribute - 私有专区对应的宿主机属性
427421
*/
428-
type SpotAttribute struct {
422+
type UDSetUDHostAttribute struct {
429423

430-
// 回收时间
431-
RecycleTime int
424+
// 是否绑定私有专区宿主机
425+
HostBinding bool
426+
427+
// 私有专区宿主机
428+
UDHostId string
429+
430+
// 私有专区
431+
UDSetId string
432432
}
433433

434434
/*

services/uk8s/apis.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,15 @@ func (c *UK8SClient) AddUK8SUHostNode(req *AddUK8SUHostNodeRequest) (*AddUK8SUHo
428428
return &res, nil
429429
}
430430

431+
/*
432+
CreateUK8SClusterV2ParamKubeProxy is request schema for complex param
433+
*/
434+
type CreateUK8SClusterV2ParamKubeProxy struct {
435+
436+
// 集群kube-proxy模式。支持iptables和ipvs,默认为iptables。
437+
Mode *string `required:"false"`
438+
}
439+
431440
/*
432441
CreateUK8SClusterV2ParamMaster is request schema for complex param
433442
*/
@@ -494,15 +503,6 @@ type CreateUK8SClusterV2ParamNodes struct {
494503
Zone *string `required:"true"`
495504
}
496505

497-
/*
498-
CreateUK8SClusterV2ParamKubeProxy is request schema for complex param
499-
*/
500-
type CreateUK8SClusterV2ParamKubeProxy struct {
501-
502-
// 集群kube-proxy模式。支持iptables和ipvs,默认为iptables。
503-
Mode *string `required:"false"`
504-
}
505-
506506
// CreateUK8SClusterV2Request is request schema for CreateUK8SClusterV2 action
507507
type CreateUK8SClusterV2Request struct {
508508
request.CommonBase

services/uk8s/models.go

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@ type DiskSet struct {
5959
Type string
6060
}
6161

62-
/*
63-
KubeProxy - KubeProxy信息
64-
*/
65-
type KubeProxy struct {
66-
67-
// KubeProxy模式,枚举值为[ipvs,iptables]
68-
Mode string
69-
}
70-
7162
/*
7263
UhostInfo - 机器信息
7364
*/
@@ -110,6 +101,15 @@ type UhostInfo struct {
110101
Zone string
111102
}
112103

104+
/*
105+
KubeProxy - KubeProxy信息
106+
*/
107+
type KubeProxy struct {
108+
109+
// KubeProxy模式,枚举值为[ipvs,iptables]
110+
Mode string
111+
}
112+
113113
/*
114114
ImageInfo - UK8S 可用镜像信息
115115
*/
@@ -298,6 +298,9 @@ NodeGroupSet - 节点池配置
298298
*/
299299
type NodeGroupSet struct {
300300

301+
// 系统盘大小
302+
BootDiskSize int
303+
301304
// 系统盘类型
302305
BootDiskType string
303306

services/umem/models.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ type UDRedisSlowlogSet struct {
3838
StartTime int
3939
}
4040

41+
/*
42+
UMemSpaceAddressSet - DescribeUMemSpace
43+
*/
44+
type UMemSpaceAddressSet struct {
45+
46+
// UMem实例访问IP
47+
IP string
48+
49+
// UMem实例访问Port
50+
Port int
51+
}
52+
4153
/*
4254
UMemSlaveDataSet - DescribeUMem
4355
*/
@@ -113,18 +125,6 @@ type UMemSlaveDataSet struct {
113125
Zone string
114126
}
115127

116-
/*
117-
UMemSpaceAddressSet - DescribeUMemSpace
118-
*/
119-
type UMemSpaceAddressSet struct {
120-
121-
// UMem实例访问IP
122-
IP string
123-
124-
// UMem实例访问Port
125-
Port int
126-
}
127-
128128
/*
129129
UMemDataSet - DescribeUMem
130130
*/

0 commit comments

Comments
 (0)