Skip to content

Commit e32af78

Browse files
authored
sdk: rolling update for 0.22.27 (#430)
1 parent beffdf1 commit e32af78

File tree

8 files changed

+226
-214
lines changed

8 files changed

+226
-214
lines changed

services/udb/models.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,6 @@ type UDBBackupSet struct {
4747
Zone string
4848
}
4949

50-
/*
51-
UFileDataSet - 增加ufile的描述
52-
*/
53-
type UFileDataSet struct {
54-
55-
// bucket名称
56-
Bucket string
57-
58-
// Ufile的令牌tokenid
59-
TokenID string
60-
}
61-
6250
/*
6351
UDBSlaveInstanceSet - DescribeUDBSlaveInstance
6452
*/
@@ -185,6 +173,18 @@ type UDBSlaveInstanceSet struct {
185173
Zone string
186174
}
187175

176+
/*
177+
UFileDataSet - 增加ufile的描述
178+
*/
179+
type UFileDataSet struct {
180+
181+
// bucket名称
182+
Bucket string
183+
184+
// Ufile的令牌tokenid
185+
TokenID string
186+
}
187+
188188
/*
189189
UDBInstanceSet - DescribeUDBInstance
190190
*/

services/uhost/apis.go

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,18 @@ UHostDiskCustomBackup is request schema for complex param
237237
type UHostDiskCustomBackup struct {
238238
}
239239

240+
/*
241+
CreateUHostInstanceParamVolumes is request schema for complex param
242+
*/
243+
type CreateUHostInstanceParamVolumes struct {
244+
245+
// 【该字段已废弃,请谨慎使用】
246+
CouponId *string `required:"false" deprecated:"true"`
247+
248+
// 【该字段已废弃,请谨慎使用】
249+
IsBoot *string `required:"false" deprecated:"true"`
250+
}
251+
240252
/*
241253
CreateUHostInstanceParamSecGroupId is request schema for complex param
242254
*/
@@ -258,18 +270,6 @@ type CreateUHostInstanceParamFeatures struct {
258270
UNI *bool `required:"false"`
259271
}
260272

261-
/*
262-
CreateUHostInstanceParamVolumes is request schema for complex param
263-
*/
264-
type CreateUHostInstanceParamVolumes struct {
265-
266-
// 【该字段已废弃,请谨慎使用】
267-
CouponId *string `required:"false" deprecated:"true"`
268-
269-
// 【该字段已废弃,请谨慎使用】
270-
IsBoot *string `required:"false" deprecated:"true"`
271-
}
272-
273273
/*
274274
CreateUHostInstanceParamNetworkInterface is request schema for complex param
275275
*/
@@ -1156,6 +1156,21 @@ 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+
11591174
/*
11601175
getUHostInstancePriceParamDisks is request schema for complex param
11611176
*/
@@ -1174,21 +1189,6 @@ type getUHostInstancePriceParamDisks struct {
11741189
Type *string `required:"true"`
11751190
}
11761191

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: 97 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,6 @@ type Collection struct {
4141
MinimalCpuPlatform []string
4242
}
4343

44-
/*
45-
FeatureModes - 可以支持的模式类别
46-
*/
47-
type FeatureModes struct {
48-
49-
// 这个特性必须是列出来的CPU平台及以上的CPU才支持
50-
MinimalCpuPlatform []string
51-
52-
// 模式|特性名称
53-
Name string
54-
55-
// 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。
56-
RelatedToImageFeature []string
57-
}
58-
5944
/*
6045
DataDiskInfo - 数据盘信息
6146
*/
@@ -93,15 +78,18 @@ type BootDiskInfo struct {
9378
}
9479

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

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

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

10795
/*
@@ -116,6 +104,21 @@ type MachineSizes struct {
116104
Gpu int
117105
}
118106

107+
/*
108+
Disks - 磁盘信息
109+
*/
110+
type Disks struct {
111+
112+
// 系统盘信息
113+
BootDisk []BootDiskInfo
114+
115+
// 数据盘信息
116+
DataDisk []DataDiskInfo
117+
118+
// 磁盘介质类别信息,磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。
119+
Name string
120+
}
121+
119122
/*
120123
GraphicsMemory - GPU的显存指标
121124
*/
@@ -140,21 +143,6 @@ type Features struct {
140143
Name string
141144
}
142145

143-
/*
144-
Disks - 磁盘信息
145-
*/
146-
type Disks struct {
147-
148-
// 系统盘信息
149-
BootDisk []BootDiskInfo
150-
151-
// 数据盘信息
152-
DataDisk []DataDiskInfo
153-
154-
// 磁盘介质类别信息,磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。
155-
Name string
156-
}
157-
158146
/*
159147
CpuPlatforms - CPU平台信息
160148
*/
@@ -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
*/
@@ -306,51 +306,48 @@ type IsolationGroup struct {
306306
}
307307

308308
/*
309-
UHostIPSet - DescribeUHostInstance
309+
UHostKeyPair - 主机密钥信息
310310
*/
311-
type UHostIPSet struct {
312-
313-
// IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
314-
Bandwidth int
311+
type UHostKeyPair struct {
315312

316-
// 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。
317-
Default string
313+
// 密钥对ID
314+
KeyPairId string
318315

319-
// IP地址
320-
IP string
316+
// 主机密钥对状态,Normal 正常,Deleted 删除
317+
KeyPairState string
318+
}
321319

322-
// 外网IP资源ID 。(内网IP无对应的资源ID)
323-
IPId string
320+
/*
321+
UHostDiskSet - DescribeUHostInstance
322+
*/
323+
type UHostDiskSet struct {
324324

325-
// IPv4/IPv6;
326-
IPMode string
325+
// 备份方案。若开通了数据方舟,则为DATAARK
326+
BackupType string
327327

328-
// 内网 Private 类型下,当前网卡的Mac。
329-
Mac string
328+
// 磁盘ID
329+
DiskId string
330330

331-
// 弹性网卡为默认网卡时,返回对应的 ID 值
332-
NetworkInterfaceId string
331+
// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
332+
DiskType string
333333

334-
// IP地址对应的子网 ID。(北京一不支持,字段返回为空)
335-
SubnetId string
334+
// 磁盘盘符
335+
Drive string
336336

337-
// 国际: Internation,BGP: Bgp,内网: Private
338-
Type string
337+
// "true": 加密盘 "false":非加密盘
338+
Encrypted string
339339

340-
// IP地址对应的VPC ID。(北京一不支持,字段返回为空)
341-
VPCId string
340+
// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
341+
IsBoot string
342342

343-
// 当前EIP的权重。权重最大的为当前的出口IP。
344-
Weight int
345-
}
343+
// UDisk名字(仅当磁盘是UDisk时返回)
344+
Name string
346345

347-
/*
348-
SpotAttribute - 竞价实例属性
349-
*/
350-
type SpotAttribute struct {
346+
// 磁盘大小,单位: GB
347+
Size int
351348

352-
// 回收时间
353-
RecycleTime int
349+
// 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
350+
Type string
354351
}
355352

356353
/*
@@ -369,48 +366,51 @@ type UDSetUDHostAttribute struct {
369366
}
370367

371368
/*
372-
UHostDiskSet - DescribeUHostInstance
369+
SpotAttribute - 竞价实例属性
373370
*/
374-
type UHostDiskSet struct {
371+
type SpotAttribute struct {
375372

376-
// 备份方案。若开通了数据方舟,则为DATAARK
377-
BackupType string
373+
// 回收时间
374+
RecycleTime int
375+
}
378376

379-
// 磁盘ID
380-
DiskId string
377+
/*
378+
UHostIPSet - DescribeUHostInstance
379+
*/
380+
type UHostIPSet struct {
381381

382-
// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
383-
DiskType string
382+
// IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
383+
Bandwidth int
384384

385-
// 磁盘盘符
386-
Drive string
385+
// 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。
386+
Default string
387387

388-
// "true": 加密盘 "false":非加密盘
389-
Encrypted string
388+
// IP地址
389+
IP string
390390

391-
// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
392-
IsBoot string
391+
// 外网IP资源ID 。(内网IP无对应的资源ID)
392+
IPId string
393393

394-
// UDisk名字(仅当磁盘是UDisk时返回)
395-
Name string
394+
// IPv4/IPv6;
395+
IPMode string
396396

397-
// 磁盘大小,单位: GB
398-
Size int
397+
// 内网 Private 类型下,当前网卡的Mac。
398+
Mac string
399399

400-
// 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
401-
Type string
402-
}
400+
// 弹性网卡为默认网卡时,返回对应的 ID 值
401+
NetworkInterfaceId string
403402

404-
/*
405-
UHostKeyPair - 主机密钥信息
406-
*/
407-
type UHostKeyPair struct {
403+
// IP地址对应的子网 ID。(北京一不支持,字段返回为空)
404+
SubnetId string
408405

409-
// 密钥对ID
410-
KeyPairId string
406+
// 国际: Internation,BGP: Bgp,内网: Private
407+
Type string
411408

412-
// 主机密钥对状态,Normal 正常,Deleted 删除
413-
KeyPairState string
409+
// IP地址对应的VPC ID。(北京一不支持,字段返回为空)
410+
VPCId string
411+
412+
// 当前EIP的权重。权重最大的为当前的出口IP。
413+
Weight int
414414
}
415415

416416
/*

0 commit comments

Comments
 (0)