Skip to content

Commit ed908d3

Browse files
authored
sdk: rolling update for 0.22.28 (#432)
1 parent a025c8c commit ed908d3

File tree

8 files changed

+188
-182
lines changed

8 files changed

+188
-182
lines changed

services/uhost/apis.go

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -237,39 +237,6 @@ 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-
252-
/*
253-
CreateUHostInstanceParamSecGroupId is request schema for complex param
254-
*/
255-
type CreateUHostInstanceParamSecGroupId struct {
256-
257-
// 安全组 ID。至多可以同时绑定5个安全组。
258-
Id *string `required:"false"`
259-
260-
// 安全组优先级。取值范围[1, 5]
261-
Priority *int `required:"false"`
262-
}
263-
264-
/*
265-
CreateUHostInstanceParamFeatures is request schema for complex param
266-
*/
267-
type CreateUHostInstanceParamFeatures struct {
268-
269-
// 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
270-
UNI *bool `required:"false"`
271-
}
272-
273240
/*
274241
CreateUHostInstanceParamNetworkInterface is request schema for complex param
275242
*/
@@ -312,6 +279,39 @@ type UHostDisk struct {
312279
Type *string `required:"true"`
313280
}
314281

282+
/*
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
305+
*/
306+
type CreateUHostInstanceParamSecGroupId struct {
307+
308+
// 安全组 ID。至多可以同时绑定5个安全组。
309+
Id *string `required:"false"`
310+
311+
// 安全组优先级。取值范围[1, 5]
312+
Priority *int `required:"false"`
313+
}
314+
315315
// CreateUHostInstanceRequest is request schema for CreateUHostInstance action
316316
type CreateUHostInstanceRequest struct {
317317
request.CommonBase

services/uhost/models.go

Lines changed: 94 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,21 @@ 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+
4459
/*
4560
DataDiskInfo - 数据盘信息
4661
*/
@@ -77,21 +92,6 @@ type BootDiskInfo struct {
7792
Name string
7893
}
7994

80-
/*
81-
FeatureModes - 可以支持的模式类别
82-
*/
83-
type FeatureModes struct {
84-
85-
// 这个特性必须是列出来的CPU平台及以上的CPU才支持
86-
MinimalCpuPlatform []string
87-
88-
// 模式|特性名称
89-
Name string
90-
91-
// 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。
92-
RelatedToImageFeature []string
93-
}
94-
9595
/*
9696
MachineSizes - GPU、CPU和内存信息
9797
*/
@@ -104,6 +104,18 @@ type MachineSizes struct {
104104
Gpu int
105105
}
106106

107+
/*
108+
Features - 虚机可支持的特性
109+
*/
110+
type Features struct {
111+
112+
// 可以提供的模式类别
113+
Modes []FeatureModes
114+
115+
// 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug
116+
Name string
117+
}
118+
107119
/*
108120
Disks - 磁盘信息
109121
*/
@@ -120,27 +132,27 @@ type Disks struct {
120132
}
121133

122134
/*
123-
GraphicsMemory - GPU的显存指标
135+
Performance - GPU的性能指标
124136
*/
125-
type GraphicsMemory struct {
137+
type Performance struct {
126138

127139
// 交互展示参数,可忽略
128140
Rate int
129141

130-
// 值,单位是GB
131-
Value int
142+
// 值,单位是TFlops
143+
Value float64
132144
}
133145

134146
/*
135-
Features - 虚机可支持的特性
147+
GraphicsMemory - GPU的显存指标
136148
*/
137-
type Features struct {
149+
type GraphicsMemory struct {
138150

139-
// 可以提供的模式类别
140-
Modes []FeatureModes
151+
// 交互展示参数,可忽略
152+
Rate int
141153

142-
// 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug
143-
Name string
154+
// 值,单位是GB
155+
Value int
144156
}
145157

146158
/*
@@ -158,18 +170,6 @@ type CpuPlatforms struct {
158170
Intel []string
159171
}
160172

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
*/
@@ -206,6 +206,21 @@ type AvailableInstanceTypes struct {
206206
Zone string
207207
}
208208

209+
/*
210+
BasePriceSet - 价格信息
211+
*/
212+
type BasePriceSet struct {
213+
214+
// 计费类型
215+
ChargeType string
216+
217+
// 限时优惠的折前原价(即列表价乘以商务折扣后的单价)。
218+
OriginalPrice float64
219+
220+
// 价格,单位: 元,保留小数点后两位有效数字
221+
Price float64
222+
}
223+
209224
/*
210225
UHostImageSet - DescribeImage
211226
*/
@@ -256,6 +271,9 @@ type UHostImageSet struct {
256271
// 操作系统类型:Linux,Windows
257272
OsType string
258273

274+
// 镜像的价格信息
275+
PriceSet []BasePriceSet
276+
259277
// 主要安装软件
260278
PrimarySoftware string
261279

@@ -317,6 +335,45 @@ type UHostKeyPair struct {
317335
KeyPairState string
318336
}
319337

338+
/*
339+
UHostIPSet - DescribeUHostInstance
340+
*/
341+
type UHostIPSet struct {
342+
343+
// IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
344+
Bandwidth int
345+
346+
// 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。
347+
Default string
348+
349+
// IP地址
350+
IP string
351+
352+
// 外网IP资源ID 。(内网IP无对应的资源ID)
353+
IPId string
354+
355+
// IPv4/IPv6;
356+
IPMode string
357+
358+
// 内网 Private 类型下,当前网卡的Mac。
359+
Mac string
360+
361+
// 弹性网卡为默认网卡时,返回对应的 ID 值
362+
NetworkInterfaceId string
363+
364+
// IP地址对应的子网 ID。(北京一不支持,字段返回为空)
365+
SubnetId string
366+
367+
// 国际: Internation,BGP: Bgp,内网: Private
368+
Type string
369+
370+
// IP地址对应的VPC ID。(北京一不支持,字段返回为空)
371+
VPCId string
372+
373+
// 当前EIP的权重。权重最大的为当前的出口IP。
374+
Weight int
375+
}
376+
320377
/*
321378
UHostDiskSet - DescribeUHostInstance
322379
*/
@@ -374,45 +431,6 @@ type SpotAttribute struct {
374431
RecycleTime int
375432
}
376433

377-
/*
378-
UHostIPSet - DescribeUHostInstance
379-
*/
380-
type UHostIPSet struct {
381-
382-
// IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
383-
Bandwidth int
384-
385-
// 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。
386-
Default string
387-
388-
// IP地址
389-
IP string
390-
391-
// 外网IP资源ID 。(内网IP无对应的资源ID)
392-
IPId string
393-
394-
// IPv4/IPv6;
395-
IPMode string
396-
397-
// 内网 Private 类型下,当前网卡的Mac。
398-
Mac string
399-
400-
// 弹性网卡为默认网卡时,返回对应的 ID 值
401-
NetworkInterfaceId string
402-
403-
// IP地址对应的子网 ID。(北京一不支持,字段返回为空)
404-
SubnetId string
405-
406-
// 国际: Internation,BGP: Bgp,内网: Private
407-
Type string
408-
409-
// IP地址对应的VPC ID。(北京一不支持,字段返回为空)
410-
VPCId string
411-
412-
// 当前EIP的权重。权重最大的为当前的出口IP。
413-
Weight int
414-
}
415-
416434
/*
417435
UHostInstanceSet - DescribeUHostInstance
418436
*/
@@ -664,18 +682,3 @@ type UHostRefundPriceSet struct {
664682
// UHost实例ID
665683
UHostId string
666684
}
667-
668-
/*
669-
BasePriceSet - 价格信息
670-
*/
671-
type BasePriceSet struct {
672-
673-
// 计费类型
674-
ChargeType string
675-
676-
// 限时优惠的折前原价(即列表价乘以商务折扣后的单价)。
677-
OriginalPrice float64
678-
679-
// 价格,单位: 元,保留小数点后两位有效数字
680-
Price float64
681-
}

services/umem/apis.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,9 @@ type DescribeUMemPriceRequest struct {
12031203
// Year, Month, Dynamic 如果不指定,则一次性获取三种计费
12041204
ChargeType *string `required:"false"`
12051205

1206+
// 数据库类型,RWMode为读写分离
1207+
ClusterMode *string `required:"false"`
1208+
12061209
// 实例类型是否为性能增强型。默认为false,或者不填,true为性能增强型。
12071210
HighPerformance *bool `required:"false"`
12081211

services/unet/models.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,6 @@ type EIPBinding struct {
9292
PrivateIPType string
9393
}
9494

95-
/*
96-
ShareBandwidthSet - DescribeEIP
97-
*/
98-
type ShareBandwidthSet struct {
99-
100-
// 共享带宽带宽值
101-
ShareBandwidth int
102-
103-
// 共享带宽ID
104-
ShareBandwidthId string
105-
106-
// 共享带宽的资源名称
107-
ShareBandwidthName string
108-
}
109-
11095
/*
11196
UnetEIPResourceSet - DescribeEIP
11297
*/
@@ -137,6 +122,21 @@ type UnetEIPResourceSet struct {
137122
SubResourceType string
138123
}
139124

125+
/*
126+
ShareBandwidthSet - DescribeEIP
127+
*/
128+
type ShareBandwidthSet struct {
129+
130+
// 共享带宽带宽值
131+
ShareBandwidth int
132+
133+
// 共享带宽ID
134+
ShareBandwidthId string
135+
136+
// 共享带宽的资源名称
137+
ShareBandwidthName string
138+
}
139+
140140
/*
141141
UnetEIPSet - DescribeEIP
142142
*/

0 commit comments

Comments
 (0)