Skip to content

Commit 6dc80d4

Browse files
authored
sdk: rolling update for 0.22.29 (#433)
1 parent ed908d3 commit 6dc80d4

File tree

8 files changed

+181
-170
lines changed

8 files changed

+181
-170
lines changed

services/uhost/apis.go

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ func (c *UHostClient) CreateIsolationGroup(req *CreateIsolationGroupRequest) (*C
201201
return &res, nil
202202
}
203203

204+
/*
205+
UHostDiskCustomBackup is request schema for complex param
206+
*/
207+
type UHostDiskCustomBackup struct {
208+
}
209+
204210
/*
205211
CreateUHostInstanceParamNetworkInterfaceIPv6 is request schema for complex param
206212
*/
@@ -232,21 +238,36 @@ type CreateUHostInstanceParamNetworkInterfaceEIP struct {
232238
}
233239

234240
/*
235-
UHostDiskCustomBackup is request schema for complex param
241+
CreateUHostInstanceParamVolumes is request schema for complex param
236242
*/
237-
type UHostDiskCustomBackup struct {
243+
type CreateUHostInstanceParamVolumes struct {
244+
245+
// 【该字段已废弃,请谨慎使用】
246+
CouponId *string `required:"false" deprecated:"true"`
247+
248+
// 【该字段已废弃,请谨慎使用】
249+
IsBoot *string `required:"false" deprecated:"true"`
238250
}
239251

240252
/*
241-
CreateUHostInstanceParamNetworkInterface is request schema for complex param
253+
CreateUHostInstanceParamFeatures is request schema for complex param
242254
*/
243-
type CreateUHostInstanceParamNetworkInterface struct {
255+
type CreateUHostInstanceParamFeatures struct {
244256

245-
// 申请并绑定一个教育网EIP。True为申请并绑定,False为不会申请绑定,默认False。当前只支持具有HPC特性的机型。
246-
CreateCernetIp *bool `required:"false"`
257+
// 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
258+
UNI *bool `required:"false"`
259+
}
247260

248-
//
249-
EIP *CreateUHostInstanceParamNetworkInterfaceEIP `required:"false"`
261+
/*
262+
CreateUHostInstanceParamSecGroupId is request schema for complex param
263+
*/
264+
type CreateUHostInstanceParamSecGroupId struct {
265+
266+
// 安全组 ID。至多可以同时绑定5个安全组。
267+
Id *string `required:"false"`
268+
269+
// 安全组优先级。取值范围[1, 5]
270+
Priority *int `required:"false"`
250271
}
251272

252273
/*
@@ -280,36 +301,15 @@ type UHostDisk struct {
280301
}
281302

282303
/*
283-
CreateUHostInstanceParamVolumes is request schema for complex param
284-
*/
285-
type CreateUHostInstanceParamVolumes struct {
286-
287-
// 【该字段已废弃,请谨慎使用】
288-
CouponId *string `required:"false" deprecated:"true"`
289-
290-
// 【该字段已废弃,请谨慎使用】
291-
IsBoot *string `required:"false" deprecated:"true"`
292-
}
293-
294-
/*
295-
CreateUHostInstanceParamFeatures is request schema for complex param
296-
*/
297-
type CreateUHostInstanceParamFeatures struct {
298-
299-
// 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
300-
UNI *bool `required:"false"`
301-
}
302-
303-
/*
304-
CreateUHostInstanceParamSecGroupId is request schema for complex param
304+
CreateUHostInstanceParamNetworkInterface is request schema for complex param
305305
*/
306-
type CreateUHostInstanceParamSecGroupId struct {
306+
type CreateUHostInstanceParamNetworkInterface struct {
307307

308-
// 安全组 ID。至多可以同时绑定5个安全组
309-
Id *string `required:"false"`
308+
// 申请并绑定一个教育网EIP。True为申请并绑定,False为不会申请绑定,默认False。当前只支持具有HPC特性的机型
309+
CreateCernetIp *bool `required:"false"`
310310

311-
// 安全组优先级。取值范围[1, 5]
312-
Priority *int `required:"false"`
311+
//
312+
EIP *CreateUHostInstanceParamNetworkInterfaceEIP `required:"false"`
313313
}
314314

315315
// CreateUHostInstanceRequest is request schema for CreateUHostInstance action
@@ -1156,21 +1156,6 @@ func (c *UHostClient) GetAttachedDiskUpgradePrice(req *GetAttachedDiskUpgradePri
11561156
return &res, nil
11571157
}
11581158

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-
11741159
/*
11751160
getUHostInstancePriceParamDisks is request schema for complex param
11761161
*/
@@ -1189,6 +1174,21 @@ type getUHostInstancePriceParamDisks struct {
11891174
Type *string `required:"true"`
11901175
}
11911176

1177+
/*
1178+
GetUHostInstancePriceParamVolumes is request schema for complex param
1179+
*/
1180+
type GetUHostInstancePriceParamVolumes struct {
1181+
1182+
// 【该字段已废弃,请谨慎使用】
1183+
IsBoot *string `required:"false" deprecated:"true"`
1184+
1185+
// 【该字段已废弃,请谨慎使用】
1186+
Size *int `required:"false" deprecated:"true"`
1187+
1188+
// 【该字段已废弃,请谨慎使用】
1189+
Type *string `required:"false" deprecated:"true"`
1190+
}
1191+
11921192
// GetUHostInstancePriceRequest is request schema for GetUHostInstancePrice action
11931193
type GetUHostInstancePriceRequest struct {
11941194
request.CommonBase

services/uhost/models.go

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

29-
/*
30-
Collection - CPU和内存可支持的规格
31-
*/
32-
type Collection struct {
33-
34-
// CPU规格
35-
Cpu int
36-
37-
// 内存规格
38-
Memory []int
39-
40-
// CPU和内存规格只能在列出来的CPU平台支持
41-
MinimalCpuPlatform []string
42-
}
43-
4429
/*
4530
FeatureModes - 可以支持的模式类别
4631
*/
@@ -93,15 +78,30 @@ type BootDiskInfo struct {
9378
}
9479

9580
/*
96-
MachineSizes - GPU、CPU和内存信息
81+
Collection - CPU和内存可支持的规格
9782
*/
98-
type MachineSizes struct {
83+
type Collection struct {
9984

100-
// CPU和内存可支持的规格
101-
Collection []Collection
85+
// CPU规格
86+
Cpu int
10287

103-
// Gpu为GPU可支持的规格即GPU颗数,非GPU机型,Gpu为0
104-
Gpu int
88+
// 内存规格
89+
Memory []int
90+
91+
// CPU和内存规格只能在列出来的CPU平台支持
92+
MinimalCpuPlatform []string
93+
}
94+
95+
/*
96+
GraphicsMemory - GPU的显存指标
97+
*/
98+
type GraphicsMemory struct {
99+
100+
// 交互展示参数,可忽略
101+
Rate int
102+
103+
// 值,单位是GB
104+
Value int
105105
}
106106

107107
/*
@@ -132,27 +132,15 @@ type Disks struct {
132132
}
133133

134134
/*
135-
Performance - GPU的性能指标
136-
*/
137-
type Performance struct {
138-
139-
// 交互展示参数,可忽略
140-
Rate int
141-
142-
// 值,单位是TFlops
143-
Value float64
144-
}
145-
146-
/*
147-
GraphicsMemory - GPU的显存指标
135+
MachineSizes - GPU、CPU和内存信息
148136
*/
149-
type GraphicsMemory struct {
137+
type MachineSizes struct {
150138

151-
// 交互展示参数,可忽略
152-
Rate int
139+
// CPU和内存可支持的规格
140+
Collection []Collection
153141

154-
// 值,单位是GB
155-
Value int
142+
// Gpu为GPU可支持的规格即GPU颗数,非GPU机型,Gpu为0
143+
Gpu int
156144
}
157145

158146
/*
@@ -170,6 +158,18 @@ type CpuPlatforms struct {
170158
Intel []string
171159
}
172160

161+
/*
162+
Performance - GPU的性能指标
163+
*/
164+
type Performance struct {
165+
166+
// 交互展示参数,可忽略
167+
Rate int
168+
169+
// 值,单位是TFlops
170+
Value float64
171+
}
172+
173173
/*
174174
AvailableInstanceTypes - https://ushare.ucloudadmin.com/pages/viewpage.action?pageId=104662646
175175
*/
@@ -323,18 +323,6 @@ type IsolationGroup struct {
323323
SpreadInfoSet []SpreadInfo
324324
}
325325

326-
/*
327-
UHostKeyPair - 主机密钥信息
328-
*/
329-
type UHostKeyPair struct {
330-
331-
// 密钥对ID
332-
KeyPairId string
333-
334-
// 主机密钥对状态,Normal 正常,Deleted 删除
335-
KeyPairState string
336-
}
337-
338326
/*
339327
UHostIPSet - DescribeUHostInstance
340328
*/
@@ -374,6 +362,21 @@ type UHostIPSet struct {
374362
Weight int
375363
}
376364

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+
377380
/*
378381
UHostDiskSet - DescribeUHostInstance
379382
*/
@@ -408,18 +411,15 @@ type UHostDiskSet struct {
408411
}
409412

410413
/*
411-
UDSetUDHostAttribute - 私有专区对应的宿主机属性
414+
UHostKeyPair - 主机密钥信息
412415
*/
413-
type UDSetUDHostAttribute struct {
414-
415-
// 是否绑定私有专区宿主机
416-
HostBinding bool
416+
type UHostKeyPair struct {
417417

418-
// 私有专区宿主机
419-
UDHostId string
418+
// 密钥对ID
419+
KeyPairId string
420420

421-
// 私有专区
422-
UDSetId string
421+
// 主机密钥对状态,Normal 正常,Deleted 删除
422+
KeyPairState string
423423
}
424424

425425
/*

services/uk8s/apis.go

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ type AddUK8SNodeGroupRequest struct {
105105
// [公共参数] 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
106106
// Zone *string `required:"false"`
107107

108+
// 系统盘大小,单位GB。默认40。范围:[40, 500]。注意SSD本地盘无法调整。
109+
BootDiskSize *int `required:"false"`
110+
108111
// 磁盘类型
109112
BootDiskType *string `required:"false"`
110113

@@ -144,6 +147,9 @@ type AddUK8SNodeGroupRequest struct {
144147
// 节点池名字
145148
NodeGroupName *string `required:"true"`
146149

150+
// 子网 ID。默认为集群创建时填写的子网ID,也可以填写集群同VPC内的子网ID。
151+
SubnetId *string `required:"false"`
152+
147153
// 业务组
148154
Tag *string `required:"false"`
149155
}
@@ -422,15 +428,6 @@ func (c *UK8SClient) AddUK8SUHostNode(req *AddUK8SUHostNodeRequest) (*AddUK8SUHo
422428
return &res, nil
423429
}
424430

425-
/*
426-
CreateUK8SClusterV2ParamKubeProxy is request schema for complex param
427-
*/
428-
type CreateUK8SClusterV2ParamKubeProxy struct {
429-
430-
// 集群kube-proxy模式。支持iptables和ipvs,默认为iptables。
431-
Mode *string `required:"false"`
432-
}
433-
434431
/*
435432
CreateUK8SClusterV2ParamMaster is request schema for complex param
436433
*/
@@ -497,6 +494,15 @@ type CreateUK8SClusterV2ParamNodes struct {
497494
Zone *string `required:"true"`
498495
}
499496

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+
500506
// CreateUK8SClusterV2Request is request schema for CreateUK8SClusterV2 action
501507
type CreateUK8SClusterV2Request struct {
502508
request.CommonBase

0 commit comments

Comments
 (0)