Skip to content

Commit 265d13c

Browse files
authored
sdk: rolling update for 0.22.24 (#426)
1 parent 2dd4830 commit 265d13c

File tree

11 files changed

+970
-185
lines changed

11 files changed

+970
-185
lines changed

services/udns/apis.go

Lines changed: 633 additions & 0 deletions
Large diffs are not rendered by default.

services/udns/client.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Code is generated by ucloud-model, DO NOT EDIT IT.
2+
3+
package udns
4+
5+
import (
6+
"github.com/ucloud/ucloud-sdk-go/ucloud"
7+
"github.com/ucloud/ucloud-sdk-go/ucloud/auth"
8+
)
9+
10+
// UDNSClient is the client of UDNS
11+
type UDNSClient struct {
12+
*ucloud.Client
13+
}
14+
15+
// NewClient will return a instance of UDNSClient
16+
func NewClient(config *ucloud.Config, credential *auth.Credential) *UDNSClient {
17+
meta := ucloud.ClientMeta{Product: "UDNS"}
18+
client := ucloud.NewClientWithMeta(config, credential, meta)
19+
return &UDNSClient{
20+
client,
21+
}
22+
}

services/udns/doc.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Code is generated by ucloud-model, DO NOT EDIT IT.
2+
3+
/*
4+
Package udns include resources of ucloud udns product
5+
6+
See also
7+
8+
- API: https://docs.ucloud.cn/api/udns-api/index
9+
- Product: https://www.ucloud.cn/site/product/udns.html
10+
11+
for detail.
12+
*/
13+
package udns

services/udns/models.go

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
// Code is generated by ucloud-model, DO NOT EDIT IT.
2+
3+
package udns
4+
5+
/*
6+
ValueSet - RecordInfos
7+
*/
8+
type ValueSet struct {
9+
10+
// 主机记录
11+
Data string
12+
13+
// 是否启用
14+
IsEnabled int
15+
16+
// 权重
17+
Weight int
18+
}
19+
20+
/*
21+
RecordInfo - DescribeUDNSRecord
22+
*/
23+
type RecordInfo struct {
24+
25+
// 主机记录
26+
Name string
27+
28+
// 域名记录资源ID
29+
RecordId string
30+
31+
// 记录备注信息
32+
Remark string
33+
34+
// TTL值,单位为秒
35+
TTL int
36+
37+
// 记录类型
38+
Type string
39+
40+
// 数值组
41+
ValueSet []ValueSet
42+
43+
// 记录策略,标准或随机应答
44+
ValueType string
45+
}
46+
47+
/*
48+
VPCInfo - ZoneInfo
49+
*/
50+
type VPCInfo struct {
51+
52+
// VPC名称
53+
Name string
54+
55+
// VPC地址空间
56+
Network []string
57+
58+
// VPC ID
59+
VPCId string
60+
61+
// VPC所属项目ID
62+
VPCProjectId string
63+
64+
// VPC类型:Normal 公有云 Hybrid 托管云
65+
VPCType string
66+
}
67+
68+
/*
69+
ZoneInfo - DescribeUDNSZone
70+
*/
71+
type ZoneInfo struct {
72+
73+
// 计费类型(Dynamic、Month、Year)
74+
ChargeType string
75+
76+
// 创建时间
77+
CreateTime int
78+
79+
// 域名名称
80+
DNSZoneName string
81+
82+
// 过期时间
83+
ExpireTime int
84+
85+
// 是否开启自动续费(Yes No)
86+
IsAutoRenew string
87+
88+
// 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
89+
IsRecursionEnabled string
90+
91+
// 记录相关ID
92+
RecordInfos []string
93+
94+
// 备注
95+
Remark string
96+
97+
// 业务组
98+
Tag string
99+
100+
// 绑定的VPC信息
101+
VPCInfos []VPCInfo
102+
}

services/uhost/apis.go

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ func (c *UHostClient) CreateIsolationGroup(req *CreateIsolationGroupRequest) (*C
195195
return &res, nil
196196
}
197197

198+
/*
199+
UHostDiskCustomBackup is request schema for complex param
200+
*/
201+
type UHostDiskCustomBackup struct {
202+
}
203+
198204
/*
199205
CreateUHostInstanceParamNetworkInterfaceIPv6 is request schema for complex param
200206
*/
@@ -225,33 +231,6 @@ type CreateUHostInstanceParamNetworkInterfaceEIP struct {
225231
ShareBandwidthId *string `required:"false"`
226232
}
227233

228-
/*
229-
UHostDiskCustomBackup is request schema for complex param
230-
*/
231-
type UHostDiskCustomBackup struct {
232-
}
233-
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-
CreateUHostInstanceParamNetworkInterface is request schema for complex param
245-
*/
246-
type CreateUHostInstanceParamNetworkInterface struct {
247-
248-
// 申请并绑定一个教育网EIP。True为申请并绑定,False为不会申请绑定,默认False。当前只支持具有HPC特性的机型。
249-
CreateCernetIp *bool `required:"false"`
250-
251-
//
252-
EIP *CreateUHostInstanceParamNetworkInterfaceEIP `required:"false"`
253-
}
254-
255234
/*
256235
UHostDisk is request schema for complex param
257236
*/
@@ -282,18 +261,6 @@ type UHostDisk struct {
282261
Type *string `required:"true"`
283262
}
284263

285-
/*
286-
CreateUHostInstanceParamVolumes is request schema for complex param
287-
*/
288-
type CreateUHostInstanceParamVolumes struct {
289-
290-
// 【该字段已废弃,请谨慎使用】
291-
CouponId *string `required:"false" deprecated:"true"`
292-
293-
// 【该字段已废弃,请谨慎使用】
294-
IsBoot *string `required:"false" deprecated:"true"`
295-
}
296-
297264
/*
298265
CreateUHostInstanceParamSecGroupId is request schema for complex param
299266
*/
@@ -306,6 +273,39 @@ type CreateUHostInstanceParamSecGroupId struct {
306273
Priority *int `required:"false"`
307274
}
308275

276+
/*
277+
CreateUHostInstanceParamFeatures is request schema for complex param
278+
*/
279+
type CreateUHostInstanceParamFeatures struct {
280+
281+
// 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启。
282+
UNI *bool `required:"false"`
283+
}
284+
285+
/*
286+
CreateUHostInstanceParamNetworkInterface is request schema for complex param
287+
*/
288+
type CreateUHostInstanceParamNetworkInterface struct {
289+
290+
// 申请并绑定一个教育网EIP。True为申请并绑定,False为不会申请绑定,默认False。当前只支持具有HPC特性的机型。
291+
CreateCernetIp *bool `required:"false"`
292+
293+
//
294+
EIP *CreateUHostInstanceParamNetworkInterfaceEIP `required:"false"`
295+
}
296+
297+
/*
298+
CreateUHostInstanceParamVolumes is request schema for complex param
299+
*/
300+
type CreateUHostInstanceParamVolumes struct {
301+
302+
// 【该字段已废弃,请谨慎使用】
303+
CouponId *string `required:"false" deprecated:"true"`
304+
305+
// 【该字段已废弃,请谨慎使用】
306+
IsBoot *string `required:"false" deprecated:"true"`
307+
}
308+
309309
// CreateUHostInstanceRequest is request schema for CreateUHostInstance action
310310
type CreateUHostInstanceRequest struct {
311311
request.CommonBase
@@ -1150,6 +1150,21 @@ func (c *UHostClient) GetAttachedDiskUpgradePrice(req *GetAttachedDiskUpgradePri
11501150
return &res, nil
11511151
}
11521152

1153+
/*
1154+
GetUHostInstancePriceParamVolumes is request schema for complex param
1155+
*/
1156+
type GetUHostInstancePriceParamVolumes struct {
1157+
1158+
// 【该字段已废弃,请谨慎使用】
1159+
IsBoot *string `required:"false" deprecated:"true"`
1160+
1161+
// 【该字段已废弃,请谨慎使用】
1162+
Size *int `required:"false" deprecated:"true"`
1163+
1164+
// 【该字段已废弃,请谨慎使用】
1165+
Type *string `required:"false" deprecated:"true"`
1166+
}
1167+
11531168
/*
11541169
getUHostInstancePriceParamDisks is request schema for complex param
11551170
*/
@@ -1168,21 +1183,6 @@ type getUHostInstancePriceParamDisks struct {
11681183
Type *string `required:"true"`
11691184
}
11701185

1171-
/*
1172-
GetUHostInstancePriceParamVolumes is request schema for complex param
1173-
*/
1174-
type GetUHostInstancePriceParamVolumes struct {
1175-
1176-
// 【该字段已废弃,请谨慎使用】
1177-
IsBoot *string `required:"false" deprecated:"true"`
1178-
1179-
// 【该字段已废弃,请谨慎使用】
1180-
Size *int `required:"false" deprecated:"true"`
1181-
1182-
// 【该字段已废弃,请谨慎使用】
1183-
Type *string `required:"false" deprecated:"true"`
1184-
}
1185-
11861186
// GetUHostInstancePriceRequest is request schema for GetUHostInstancePrice action
11871187
type GetUHostInstancePriceRequest struct {
11881188
request.CommonBase

0 commit comments

Comments
 (0)