Skip to content

Commit 4de7607

Browse files
authored
sdk: rolling update for 0.22.22 (#424)
1 parent 38885f0 commit 4de7607

File tree

7 files changed

+209
-99
lines changed

7 files changed

+209
-99
lines changed

services/udb/apis.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3431,6 +3431,9 @@ type ResizeUDBInstanceRequest struct {
34313431
// [公共参数] 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
34323432
// Zone *string `required:"false"`
34333433

3434+
// 数据库的CPU核数(只对普通版的SQLServer有用)
3435+
CPU *int `required:"false"`
3436+
34343437
// 使用的代金券id
34353438
CouponId *string `required:"false"`
34363439

services/udb/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ type UDBSlaveInstanceSet struct {
140140
SSDType string
141141

142142
// 实例计算规格类型,0或不传代表使用内存方式购买,1代表使用内存-cpu可选配比方式购买,需要填写MachineType
143-
SpecificationType string
143+
SpecificationType int
144144

145145
// 对mysql的slave而言是master的DBId,对master则为空, 对mongodb则是副本集id
146146
SrcDBId string

services/uhost/apis.go

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,27 @@ UHostDiskCustomBackup is request schema for complex param
231231
type UHostDiskCustomBackup struct {
232232
}
233233

234+
/*
235+
CreateUHostInstanceParamFeatures is request schema for complex param
236+
*/
237+
type CreateUHostInstanceParamFeatures struct {
238+
239+
// 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
240+
UNI *bool `required:"false"`
241+
}
242+
243+
/*
244+
CreateUHostInstanceParamSecGroupId is request schema for complex param
245+
*/
246+
type CreateUHostInstanceParamSecGroupId struct {
247+
248+
// 安全组 ID。至多可以同时绑定5个安全组。
249+
Id *string `required:"false"`
250+
251+
// 安全组优先级。取值范围[1, 5]
252+
Priority *int `required:"false"`
253+
}
254+
234255
/*
235256
CreateUHostInstanceParamNetworkInterface is request schema for complex param
236257
*/
@@ -255,27 +276,6 @@ type CreateUHostInstanceParamVolumes struct {
255276
IsBoot *string `required:"false" deprecated:"true"`
256277
}
257278

258-
/*
259-
CreateUHostInstanceParamSecGroupId is request schema for complex param
260-
*/
261-
type CreateUHostInstanceParamSecGroupId struct {
262-
263-
// 安全组 ID。至多可以同时绑定5个安全组。
264-
Id *string `required:"false"`
265-
266-
// 安全组优先级。取值范围[1, 5]
267-
Priority *int `required:"false"`
268-
}
269-
270-
/*
271-
CreateUHostInstanceParamFeatures is request schema for complex param
272-
*/
273-
type CreateUHostInstanceParamFeatures struct {
274-
275-
// 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
276-
UNI *bool `required:"false"`
277-
}
278-
279279
/*
280280
UHostDisk is request schema for complex param
281281
*/

services/uhost/models.go

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,6 @@ type BootDiskInfo struct {
9292
Name string
9393
}
9494

95-
/*
96-
Performance - GPU的性能指标
97-
*/
98-
type Performance struct {
99-
100-
// 交互展示参数,可忽略
101-
Rate int
102-
103-
// 值,单位是TFlops
104-
Value float64
105-
}
106-
10795
/*
10896
MachineSizes - GPU、CPU和内存信息
10997
*/
@@ -116,18 +104,6 @@ type MachineSizes struct {
116104
Gpu int
117105
}
118106

119-
/*
120-
GraphicsMemory - GPU的显存指标
121-
*/
122-
type GraphicsMemory struct {
123-
124-
// 交互展示参数,可忽略
125-
Rate int
126-
127-
// 值,单位是GB
128-
Value int
129-
}
130-
131107
/*
132108
Features - 虚机可支持的特性
133109
*/
@@ -170,6 +146,30 @@ type CpuPlatforms struct {
170146
Intel []string
171147
}
172148

149+
/*
150+
Performance - GPU的性能指标
151+
*/
152+
type Performance struct {
153+
154+
// 交互展示参数,可忽略
155+
Rate int
156+
157+
// 值,单位是TFlops
158+
Value float64
159+
}
160+
161+
/*
162+
GraphicsMemory - GPU的显存指标
163+
*/
164+
type GraphicsMemory struct {
165+
166+
// 交互展示参数,可忽略
167+
Rate int
168+
169+
// 值,单位是GB
170+
Value int
171+
}
172+
173173
/*
174174
AvailableInstanceTypes - https://ushare.ucloudadmin.com/pages/viewpage.action?pageId=104662646
175175
*/
@@ -303,36 +303,24 @@ type IsolationGroup struct {
303303
}
304304

305305
/*
306-
UHostDiskSet - DescribeUHostInstance
306+
SpotAttribute - 竞价实例属性
307307
*/
308-
type UHostDiskSet struct {
309-
310-
// 备份方案。若开通了数据方舟,则为DATAARK
311-
BackupType string
312-
313-
// 磁盘ID
314-
DiskId string
315-
316-
// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
317-
DiskType string
318-
319-
// 磁盘盘符
320-
Drive string
321-
322-
// "true": 加密盘 "false":非加密盘
323-
Encrypted string
308+
type SpotAttribute struct {
324309

325-
// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
326-
IsBoot string
310+
// 回收时间
311+
RecycleTime int
312+
}
327313

328-
// UDisk名字(仅当磁盘是UDisk时返回)
329-
Name string
314+
/*
315+
UHostKeyPair - 主机密钥信息
316+
*/
317+
type UHostKeyPair struct {
330318

331-
// 磁盘大小,单位: GB
332-
Size int
319+
// 密钥对ID
320+
KeyPairId string
333321

334-
// 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
335-
Type string
322+
// 主机密钥对状态,Normal 正常,Deleted 删除
323+
KeyPairState string
336324
}
337325

338326
/*
@@ -375,39 +363,51 @@ type UHostIPSet struct {
375363
}
376364

377365
/*
378-
UDSetUDHostAttribute - 私有专区对应的宿主机属性
366+
UHostDiskSet - DescribeUHostInstance
379367
*/
380-
type UDSetUDHostAttribute struct {
368+
type UHostDiskSet struct {
381369

382-
// 是否绑定私有专区宿主机
383-
HostBinding bool
370+
// 备份方案。若开通了数据方舟,则为DATAARK
371+
BackupType string
384372

385-
// 私有专区宿主机
386-
UDHostId string
373+
// 磁盘ID
374+
DiskId string
387375

388-
// 私有专区
389-
UDSetId string
390-
}
376+
// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
377+
DiskType string
391378

392-
/*
393-
SpotAttribute - 竞价实例属性
394-
*/
395-
type SpotAttribute struct {
379+
// 磁盘盘符
380+
Drive string
396381

397-
// 回收时间
398-
RecycleTime int
382+
// "true": 加密盘 "false":非加密盘
383+
Encrypted string
384+
385+
// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
386+
IsBoot string
387+
388+
// UDisk名字(仅当磁盘是UDisk时返回)
389+
Name string
390+
391+
// 磁盘大小,单位: GB
392+
Size int
393+
394+
// 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
395+
Type string
399396
}
400397

401398
/*
402-
UHostKeyPair - 主机密钥信息
399+
UDSetUDHostAttribute - 私有专区对应的宿主机属性
403400
*/
404-
type UHostKeyPair struct {
401+
type UDSetUDHostAttribute struct {
405402

406-
// 密钥对ID
407-
KeyPairId string
403+
// 是否绑定私有专区宿主机
404+
HostBinding bool
408405

409-
// 主机密钥对状态,Normal 正常,Deleted 删除
410-
KeyPairState string
406+
// 私有专区宿主机
407+
UDHostId string
408+
409+
// 私有专区
410+
UDSetId string
411411
}
412412

413413
/*

0 commit comments

Comments
 (0)