@ucloud-sdks/ucloud-sdk-js 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +7 -0
- package/lib/services/udns/index.d.ts +542 -0
- package/lib/services/udns/index.js +106 -0
- package/package.json +1 -1
package/lib/services/index.d.ts
CHANGED
package/lib/services/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const UCDNClient = require('./ucdn').default;
|
|
|
11
11
|
const UDBClient = require('./udb').default;
|
|
12
12
|
const UDDBClient = require('./uddb').default;
|
|
13
13
|
const UDiskClient = require('./udisk').default;
|
|
14
|
+
const UDNSClient = require('./udns').default;
|
|
14
15
|
const UDPNClient = require('./udpn').default;
|
|
15
16
|
const UECClient = require('./uec').default;
|
|
16
17
|
const UFileClient = require('./ufile').default;
|
|
@@ -84,6 +85,12 @@ class Client extends BaseClient {
|
|
|
84
85
|
credential: this.credential,
|
|
85
86
|
});
|
|
86
87
|
}
|
|
88
|
+
udns() {
|
|
89
|
+
return new UDNSClient({
|
|
90
|
+
config: this.config,
|
|
91
|
+
credential: this.credential,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
87
94
|
udpn() {
|
|
88
95
|
return new UDPNClient({
|
|
89
96
|
config: this.config,
|
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import Client from '../../core/client';
|
|
2
|
+
import { ConfigOptions } from '../../core/config';
|
|
3
|
+
import { CredentialOptions } from '../../core/credential';
|
|
4
|
+
/**
|
|
5
|
+
* This client is used to call actions of **udns** service
|
|
6
|
+
*/
|
|
7
|
+
export default class UDNSClient extends Client {
|
|
8
|
+
constructor({ config, credential, }: {
|
|
9
|
+
config: ConfigOptions;
|
|
10
|
+
credential: CredentialOptions;
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* AssociateUDNSZoneVPC - 绑定域名与VPC
|
|
14
|
+
*
|
|
15
|
+
* See also: https://docs.ucloud.cn/api/udns-api/associate_udns_zone_vpc
|
|
16
|
+
*/
|
|
17
|
+
associateUDNSZoneVPC(request?: AssociateUDNSZoneVPCRequest): Promise<AssociateUDNSZoneVPCResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* CreateUDNSRecord - 创建域名记录
|
|
20
|
+
*
|
|
21
|
+
* See also: https://docs.ucloud.cn/api/udns-api/create_udns_record
|
|
22
|
+
*/
|
|
23
|
+
createUDNSRecord(request?: CreateUDNSRecordRequest): Promise<CreateUDNSRecordResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* CreateUDNSZone - 创建域名
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/udns-api/create_udns_zone
|
|
28
|
+
*/
|
|
29
|
+
createUDNSZone(request?: CreateUDNSZoneRequest): Promise<CreateUDNSZoneResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* DeleteUDNSRecord - 删除域名记录
|
|
32
|
+
*
|
|
33
|
+
* See also: https://docs.ucloud.cn/api/udns-api/delete_udns_record
|
|
34
|
+
*/
|
|
35
|
+
deleteUDNSRecord(request?: DeleteUDNSRecordRequest): Promise<DeleteUDNSRecordResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* DescribeUDNSDomain - zone下所有域名的rr记录
|
|
38
|
+
*
|
|
39
|
+
* See also: https://docs.ucloud.cn/api/udns-api/describe_udns_domain
|
|
40
|
+
*/
|
|
41
|
+
describeUDNSDomain(request?: DescribeUDNSDomainRequest): Promise<DescribeUDNSDomainResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* DescribeUDNSRecord - 获取域名记录
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/udns-api/describe_udns_record
|
|
46
|
+
*/
|
|
47
|
+
describeUDNSRecord(request?: DescribeUDNSRecordRequest): Promise<DescribeUDNSRecordResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* DescribeUDNSZone - 获取域名信息
|
|
50
|
+
*
|
|
51
|
+
* See also: https://docs.ucloud.cn/api/udns-api/describe_udns_zone
|
|
52
|
+
*/
|
|
53
|
+
describeUDNSZone(request?: DescribeUDNSZoneRequest): Promise<DescribeUDNSZoneResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* DisassociateUDNSZoneVPC - 解绑域名和VPC
|
|
56
|
+
*
|
|
57
|
+
* See also: https://docs.ucloud.cn/api/udns-api/disassociate_udns_zone_vpc
|
|
58
|
+
*/
|
|
59
|
+
disassociateUDNSZoneVPC(request?: DisassociateUDNSZoneVPCRequest): Promise<DisassociateUDNSZoneVPCResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* ModifyUDNSRecord - 修改域名记录
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/udns-api/modify_udns_record
|
|
64
|
+
*/
|
|
65
|
+
modifyUDNSRecord(request?: ModifyUDNSRecordRequest): Promise<ModifyUDNSRecordResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* ModifyUDNSZone - 修改域名备注/递归查询状态
|
|
68
|
+
*
|
|
69
|
+
* See also: https://docs.ucloud.cn/api/udns-api/modify_udns_zone
|
|
70
|
+
*/
|
|
71
|
+
modifyUDNSZone(request?: ModifyUDNSZoneRequest): Promise<ModifyUDNSZoneResponse>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* AssociateUDNSZoneVPC - 绑定域名与VPC
|
|
75
|
+
*/
|
|
76
|
+
export interface AssociateUDNSZoneVPCRequest {
|
|
77
|
+
/**
|
|
78
|
+
* 域名资源ID
|
|
79
|
+
*/
|
|
80
|
+
DNSZoneId: string;
|
|
81
|
+
/**
|
|
82
|
+
* VPC所属项目ID
|
|
83
|
+
*/
|
|
84
|
+
VPCProjectId: string;
|
|
85
|
+
/**
|
|
86
|
+
* VPC资源ID
|
|
87
|
+
*/
|
|
88
|
+
VPCId: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* AssociateUDNSZoneVPC - 绑定域名与VPC
|
|
92
|
+
*/
|
|
93
|
+
export interface AssociateUDNSZoneVPCResponse {
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* CreateUDNSRecord - 创建域名记录
|
|
97
|
+
*/
|
|
98
|
+
export interface CreateUDNSRecordRequest {
|
|
99
|
+
/**
|
|
100
|
+
* 域名资源ID
|
|
101
|
+
*/
|
|
102
|
+
DNSZoneId: string;
|
|
103
|
+
/**
|
|
104
|
+
* 主机记录
|
|
105
|
+
*/
|
|
106
|
+
Name: string;
|
|
107
|
+
/**
|
|
108
|
+
* 记录类型。枚举值,“A”,"CNAME","MX","AAAA","SRV","PTR","TXT"。
|
|
109
|
+
*/
|
|
110
|
+
Type: string;
|
|
111
|
+
/**
|
|
112
|
+
* 数值组,支持逗号分割。格式为:Value|权重|IsEnabled,其中权重支持1-10,IsEnabled为枚举值(1为启用,0为禁用)。输入格式示例:192.168.1.1|1|1,192.168.1.2|10|0。
|
|
113
|
+
*/
|
|
114
|
+
Value: string;
|
|
115
|
+
/**
|
|
116
|
+
* 值类型。枚举值,“Normal”,标准;“Multivalue”,多值返回。仅在值为“Multivalue”时,Value的权重生效。
|
|
117
|
+
*/
|
|
118
|
+
ValueType: string;
|
|
119
|
+
/**
|
|
120
|
+
* TTL值,范围为5-600,单位为秒。默认为5
|
|
121
|
+
*/
|
|
122
|
+
TTL?: number;
|
|
123
|
+
/**
|
|
124
|
+
* 记录的备注信息
|
|
125
|
+
*/
|
|
126
|
+
Remark?: string;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* CreateUDNSRecord - 创建域名记录
|
|
130
|
+
*/
|
|
131
|
+
export interface CreateUDNSRecordResponse {
|
|
132
|
+
/**
|
|
133
|
+
* 域名记录的资源ID
|
|
134
|
+
*/
|
|
135
|
+
DNSRecordId: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* CreateUDNSZone - 创建域名
|
|
139
|
+
*/
|
|
140
|
+
export interface CreateUDNSZoneRequest {
|
|
141
|
+
/**
|
|
142
|
+
* 域名字符串
|
|
143
|
+
*/
|
|
144
|
+
DNSZoneName: string;
|
|
145
|
+
/**
|
|
146
|
+
* 域名类型。枚举值,“private”,内网DNS;“public”,公网DNS,暂只支持private。
|
|
147
|
+
*/
|
|
148
|
+
Type: string;
|
|
149
|
+
/**
|
|
150
|
+
* 所属业务组名称
|
|
151
|
+
*/
|
|
152
|
+
Tag?: string;
|
|
153
|
+
/**
|
|
154
|
+
* 备注
|
|
155
|
+
*/
|
|
156
|
+
Remark?: string;
|
|
157
|
+
/**
|
|
158
|
+
* 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
|
|
159
|
+
*/
|
|
160
|
+
IsRecursionEnabled?: string;
|
|
161
|
+
/**
|
|
162
|
+
* 购买时长,默认为1
|
|
163
|
+
*/
|
|
164
|
+
Quantity?: number;
|
|
165
|
+
/**
|
|
166
|
+
* 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费,默认为按月付费
|
|
167
|
+
*/
|
|
168
|
+
ChargeType?: string;
|
|
169
|
+
/**
|
|
170
|
+
* 代金券ID,默认不使用
|
|
171
|
+
*/
|
|
172
|
+
CouponId?: string;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* CreateUDNSZone - 创建域名
|
|
176
|
+
*/
|
|
177
|
+
export interface CreateUDNSZoneResponse {
|
|
178
|
+
/**
|
|
179
|
+
* 域名资源ID
|
|
180
|
+
*/
|
|
181
|
+
DNSZoneId: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* DeleteUDNSRecord - 删除域名记录
|
|
185
|
+
*/
|
|
186
|
+
export interface DeleteUDNSRecordRequest {
|
|
187
|
+
/**
|
|
188
|
+
* 域名资源ID
|
|
189
|
+
*/
|
|
190
|
+
DNSZoneId: string;
|
|
191
|
+
/**
|
|
192
|
+
* 域名记录资源ID
|
|
193
|
+
*/
|
|
194
|
+
RecordIds: string[];
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* DeleteUDNSRecord - 删除域名记录
|
|
198
|
+
*/
|
|
199
|
+
export interface DeleteUDNSRecordResponse {
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* DescribeUDNSDomain - zone下所有域名的rr记录
|
|
203
|
+
*/
|
|
204
|
+
export interface DescribeUDNSDomainRequest {
|
|
205
|
+
/**
|
|
206
|
+
* zone名称
|
|
207
|
+
*/
|
|
208
|
+
DNSZoneName: string;
|
|
209
|
+
/**
|
|
210
|
+
* VPI资源ID
|
|
211
|
+
*/
|
|
212
|
+
VPCId: string;
|
|
213
|
+
/**
|
|
214
|
+
* 查询数量偏移
|
|
215
|
+
*/
|
|
216
|
+
Offset?: number;
|
|
217
|
+
/**
|
|
218
|
+
* 返回数量
|
|
219
|
+
*/
|
|
220
|
+
Limit?: number;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* DescribeUDNSDomain - zone下所有域名的rr记录
|
|
224
|
+
*/
|
|
225
|
+
export interface DescribeUDNSDomainResponse {
|
|
226
|
+
/**
|
|
227
|
+
* 查询记录
|
|
228
|
+
*/
|
|
229
|
+
RecordInfos: {
|
|
230
|
+
/**
|
|
231
|
+
* 域名记录资源ID
|
|
232
|
+
*/
|
|
233
|
+
RecordId: string;
|
|
234
|
+
/**
|
|
235
|
+
* 主机记录
|
|
236
|
+
*/
|
|
237
|
+
Name: string;
|
|
238
|
+
/**
|
|
239
|
+
* 记录类型
|
|
240
|
+
*/
|
|
241
|
+
Type: string;
|
|
242
|
+
/**
|
|
243
|
+
* 数值组
|
|
244
|
+
*/
|
|
245
|
+
ValueSet: {
|
|
246
|
+
/**
|
|
247
|
+
* 主机记录
|
|
248
|
+
*/
|
|
249
|
+
Data: string;
|
|
250
|
+
/**
|
|
251
|
+
* 权重
|
|
252
|
+
*/
|
|
253
|
+
Weight: number;
|
|
254
|
+
/**
|
|
255
|
+
* 是否启用
|
|
256
|
+
*/
|
|
257
|
+
IsEnabled: number;
|
|
258
|
+
}[];
|
|
259
|
+
/**
|
|
260
|
+
* 记录策略,标准或随机应答
|
|
261
|
+
*/
|
|
262
|
+
ValueType: string;
|
|
263
|
+
/**
|
|
264
|
+
* TTL值,单位为秒
|
|
265
|
+
*/
|
|
266
|
+
TTL: number;
|
|
267
|
+
/**
|
|
268
|
+
* 记录备注信息
|
|
269
|
+
*/
|
|
270
|
+
Remark: string;
|
|
271
|
+
}[];
|
|
272
|
+
/**
|
|
273
|
+
* 总条数
|
|
274
|
+
*/
|
|
275
|
+
TotalCount: number;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* DescribeUDNSRecord - 获取域名记录
|
|
279
|
+
*/
|
|
280
|
+
export interface DescribeUDNSRecordRequest {
|
|
281
|
+
/**
|
|
282
|
+
* 域名资源ID
|
|
283
|
+
*/
|
|
284
|
+
DNSZoneId: string;
|
|
285
|
+
/**
|
|
286
|
+
* 域名记录资源ID
|
|
287
|
+
*/
|
|
288
|
+
RecordIds?: string[];
|
|
289
|
+
/**
|
|
290
|
+
* 数据分页值, 默认为20
|
|
291
|
+
*/
|
|
292
|
+
Limit?: number;
|
|
293
|
+
/**
|
|
294
|
+
* 数据偏移量, 默认为0
|
|
295
|
+
*/
|
|
296
|
+
Offset?: number;
|
|
297
|
+
/**
|
|
298
|
+
* 模糊查询记录
|
|
299
|
+
*/
|
|
300
|
+
Query?: string;
|
|
301
|
+
/**
|
|
302
|
+
* 排序字段,只支持host update_time
|
|
303
|
+
*/
|
|
304
|
+
SortKey?: string;
|
|
305
|
+
/**
|
|
306
|
+
* 排序方式,支持asc desc
|
|
307
|
+
*/
|
|
308
|
+
SortDir?: string;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* DescribeUDNSRecord - 获取域名记录
|
|
312
|
+
*/
|
|
313
|
+
export interface DescribeUDNSRecordResponse {
|
|
314
|
+
/**
|
|
315
|
+
* 资源数量
|
|
316
|
+
*/
|
|
317
|
+
TotalCount: number;
|
|
318
|
+
/**
|
|
319
|
+
* 域名记录详细信息
|
|
320
|
+
*/
|
|
321
|
+
RecordInfos?: {
|
|
322
|
+
/**
|
|
323
|
+
* 域名记录资源ID
|
|
324
|
+
*/
|
|
325
|
+
RecordId: string;
|
|
326
|
+
/**
|
|
327
|
+
* 主机记录
|
|
328
|
+
*/
|
|
329
|
+
Name: string;
|
|
330
|
+
/**
|
|
331
|
+
* 记录类型
|
|
332
|
+
*/
|
|
333
|
+
Type: string;
|
|
334
|
+
/**
|
|
335
|
+
* 数值组
|
|
336
|
+
*/
|
|
337
|
+
ValueSet: {
|
|
338
|
+
/**
|
|
339
|
+
* 主机记录
|
|
340
|
+
*/
|
|
341
|
+
Data: string;
|
|
342
|
+
/**
|
|
343
|
+
* 权重
|
|
344
|
+
*/
|
|
345
|
+
Weight: number;
|
|
346
|
+
/**
|
|
347
|
+
* 是否启用
|
|
348
|
+
*/
|
|
349
|
+
IsEnabled: number;
|
|
350
|
+
}[];
|
|
351
|
+
/**
|
|
352
|
+
* 记录策略,标准或随机应答
|
|
353
|
+
*/
|
|
354
|
+
ValueType: string;
|
|
355
|
+
/**
|
|
356
|
+
* TTL值,单位为秒
|
|
357
|
+
*/
|
|
358
|
+
TTL: number;
|
|
359
|
+
/**
|
|
360
|
+
* 记录备注信息
|
|
361
|
+
*/
|
|
362
|
+
Remark: string;
|
|
363
|
+
}[];
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* DescribeUDNSZone - 获取域名信息
|
|
367
|
+
*/
|
|
368
|
+
export interface DescribeUDNSZoneRequest {
|
|
369
|
+
/**
|
|
370
|
+
* 域名资源ID
|
|
371
|
+
*/
|
|
372
|
+
DNSZoneIds?: string[];
|
|
373
|
+
/**
|
|
374
|
+
* 数据分页值, 默认为20
|
|
375
|
+
*/
|
|
376
|
+
Limit?: number;
|
|
377
|
+
/**
|
|
378
|
+
* 数据偏移量, 默认为0
|
|
379
|
+
*/
|
|
380
|
+
Offset?: number;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* DescribeUDNSZone - 获取域名信息
|
|
384
|
+
*/
|
|
385
|
+
export interface DescribeUDNSZoneResponse {
|
|
386
|
+
/**
|
|
387
|
+
* 符合查询条件的域名数量
|
|
388
|
+
*/
|
|
389
|
+
TotalCount: number;
|
|
390
|
+
/**
|
|
391
|
+
* 域名资源信息
|
|
392
|
+
*/
|
|
393
|
+
DNSZoneInfos?: {
|
|
394
|
+
/**
|
|
395
|
+
* 域名名称
|
|
396
|
+
*/
|
|
397
|
+
DNSZoneName: string;
|
|
398
|
+
/**
|
|
399
|
+
* UDNS私有域名 Zone ID
|
|
400
|
+
*/
|
|
401
|
+
DNSZoneId: string;
|
|
402
|
+
/**
|
|
403
|
+
* 业务组
|
|
404
|
+
*/
|
|
405
|
+
Tag: string;
|
|
406
|
+
/**
|
|
407
|
+
* 备注
|
|
408
|
+
*/
|
|
409
|
+
Remark: string;
|
|
410
|
+
/**
|
|
411
|
+
* 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
|
|
412
|
+
*/
|
|
413
|
+
IsRecursionEnabled: string;
|
|
414
|
+
/**
|
|
415
|
+
* 创建时间
|
|
416
|
+
*/
|
|
417
|
+
CreateTime: number;
|
|
418
|
+
/**
|
|
419
|
+
* 过期时间
|
|
420
|
+
*/
|
|
421
|
+
ExpireTime: number;
|
|
422
|
+
/**
|
|
423
|
+
* 计费类型(Dynamic、Month、Year)
|
|
424
|
+
*/
|
|
425
|
+
ChargeType: string;
|
|
426
|
+
/**
|
|
427
|
+
* 是否开启自动续费(Yes No)
|
|
428
|
+
*/
|
|
429
|
+
IsAutoRenew: string;
|
|
430
|
+
/**
|
|
431
|
+
* 记录相关ID
|
|
432
|
+
*/
|
|
433
|
+
RecordInfos?: string[];
|
|
434
|
+
/**
|
|
435
|
+
* 绑定的VPC信息
|
|
436
|
+
*/
|
|
437
|
+
VPCInfos?: {
|
|
438
|
+
/**
|
|
439
|
+
* VPC ID
|
|
440
|
+
*/
|
|
441
|
+
VPCId?: string;
|
|
442
|
+
/**
|
|
443
|
+
* VPC所属项目ID
|
|
444
|
+
*/
|
|
445
|
+
VPCProjectId?: string;
|
|
446
|
+
/**
|
|
447
|
+
* VPC名称
|
|
448
|
+
*/
|
|
449
|
+
Name?: string;
|
|
450
|
+
/**
|
|
451
|
+
* VPC地址空间
|
|
452
|
+
*/
|
|
453
|
+
Network?: string[];
|
|
454
|
+
/**
|
|
455
|
+
* VPC类型:Normal 公有云 Hybrid 托管云
|
|
456
|
+
*/
|
|
457
|
+
VPCType?: string;
|
|
458
|
+
}[];
|
|
459
|
+
}[];
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* DisassociateUDNSZoneVPC - 解绑域名和VPC
|
|
463
|
+
*/
|
|
464
|
+
export interface DisassociateUDNSZoneVPCRequest {
|
|
465
|
+
/**
|
|
466
|
+
* 域名资源ID
|
|
467
|
+
*/
|
|
468
|
+
DNSZoneId: string;
|
|
469
|
+
/**
|
|
470
|
+
* VPC所属项目ID
|
|
471
|
+
*/
|
|
472
|
+
VPCProjectId: string;
|
|
473
|
+
/**
|
|
474
|
+
* VPC资源ID
|
|
475
|
+
*/
|
|
476
|
+
VPCId: string;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* DisassociateUDNSZoneVPC - 解绑域名和VPC
|
|
480
|
+
*/
|
|
481
|
+
export interface DisassociateUDNSZoneVPCResponse {
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* ModifyUDNSRecord - 修改域名记录
|
|
485
|
+
*/
|
|
486
|
+
export interface ModifyUDNSRecordRequest {
|
|
487
|
+
/**
|
|
488
|
+
* 域名资源ID
|
|
489
|
+
*/
|
|
490
|
+
DNSZoneId: string;
|
|
491
|
+
/**
|
|
492
|
+
* 域名记录资源ID
|
|
493
|
+
*/
|
|
494
|
+
RecordId: string;
|
|
495
|
+
/**
|
|
496
|
+
* 数值组,支持逗号分割。格式为:Value|权重|Enable,其中权重支持1-10,Enable为枚举值(1为启用,0为禁用)。输入格式示例:192.168.1.1|1|1,192.168.1.2|10|0。
|
|
497
|
+
*/
|
|
498
|
+
Value?: string;
|
|
499
|
+
/**
|
|
500
|
+
* 值类型。枚举值,“Normal”,标准;“Multivalue”,多值返回。仅在值为“Multivalue”时,Value的权重生效。
|
|
501
|
+
*/
|
|
502
|
+
ValueType?: string;
|
|
503
|
+
/**
|
|
504
|
+
* TTL值,单位为秒
|
|
505
|
+
*/
|
|
506
|
+
TTL?: number;
|
|
507
|
+
/**
|
|
508
|
+
* 记录的备注信息
|
|
509
|
+
*/
|
|
510
|
+
Remark?: string;
|
|
511
|
+
/**
|
|
512
|
+
* 记录类型。枚举值,“A”,"CNAME","MX","AAAA","SRV","PTR","TXT"。
|
|
513
|
+
*/
|
|
514
|
+
Type?: string;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* ModifyUDNSRecord - 修改域名记录
|
|
518
|
+
*/
|
|
519
|
+
export interface ModifyUDNSRecordResponse {
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* ModifyUDNSZone - 修改域名备注/递归查询状态
|
|
523
|
+
*/
|
|
524
|
+
export interface ModifyUDNSZoneRequest {
|
|
525
|
+
/**
|
|
526
|
+
* 域名资源ID
|
|
527
|
+
*/
|
|
528
|
+
DNSZoneId: string;
|
|
529
|
+
/**
|
|
530
|
+
* 备注
|
|
531
|
+
*/
|
|
532
|
+
Remark?: string;
|
|
533
|
+
/**
|
|
534
|
+
* 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
|
|
535
|
+
*/
|
|
536
|
+
IsRecursionEnabled?: string;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* ModifyUDNSZone - 修改域名备注/递归查询状态
|
|
540
|
+
*/
|
|
541
|
+
export interface ModifyUDNSZoneResponse {
|
|
542
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const client_1 = __importDefault(require("../../core/client"));
|
|
7
|
+
const request_1 = __importDefault(require("../../core/request"));
|
|
8
|
+
/**
|
|
9
|
+
* This client is used to call actions of **udns** service
|
|
10
|
+
*/
|
|
11
|
+
class UDNSClient extends client_1.default {
|
|
12
|
+
constructor({ config, credential, }) {
|
|
13
|
+
super({ config, credential });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* AssociateUDNSZoneVPC - 绑定域名与VPC
|
|
17
|
+
*
|
|
18
|
+
* See also: https://docs.ucloud.cn/api/udns-api/associate_udns_zone_vpc
|
|
19
|
+
*/
|
|
20
|
+
associateUDNSZoneVPC(request) {
|
|
21
|
+
const args = Object.assign({ Action: 'AssociateUDNSZoneVPC' }, (request || {}));
|
|
22
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* CreateUDNSRecord - 创建域名记录
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/udns-api/create_udns_record
|
|
28
|
+
*/
|
|
29
|
+
createUDNSRecord(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'CreateUDNSRecord' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* CreateUDNSZone - 创建域名
|
|
35
|
+
*
|
|
36
|
+
* See also: https://docs.ucloud.cn/api/udns-api/create_udns_zone
|
|
37
|
+
*/
|
|
38
|
+
createUDNSZone(request) {
|
|
39
|
+
const args = Object.assign({ Action: 'CreateUDNSZone' }, (request || {}));
|
|
40
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* DeleteUDNSRecord - 删除域名记录
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/udns-api/delete_udns_record
|
|
46
|
+
*/
|
|
47
|
+
deleteUDNSRecord(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'DeleteUDNSRecord' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* DescribeUDNSDomain - zone下所有域名的rr记录
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/udns-api/describe_udns_domain
|
|
55
|
+
*/
|
|
56
|
+
describeUDNSDomain(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'DescribeUDNSDomain' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* DescribeUDNSRecord - 获取域名记录
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/udns-api/describe_udns_record
|
|
64
|
+
*/
|
|
65
|
+
describeUDNSRecord(request) {
|
|
66
|
+
const args = Object.assign({ Action: 'DescribeUDNSRecord' }, (request || {}));
|
|
67
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* DescribeUDNSZone - 获取域名信息
|
|
71
|
+
*
|
|
72
|
+
* See also: https://docs.ucloud.cn/api/udns-api/describe_udns_zone
|
|
73
|
+
*/
|
|
74
|
+
describeUDNSZone(request) {
|
|
75
|
+
const args = Object.assign({ Action: 'DescribeUDNSZone' }, (request || {}));
|
|
76
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* DisassociateUDNSZoneVPC - 解绑域名和VPC
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/udns-api/disassociate_udns_zone_vpc
|
|
82
|
+
*/
|
|
83
|
+
disassociateUDNSZoneVPC(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'DisassociateUDNSZoneVPC' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* ModifyUDNSRecord - 修改域名记录
|
|
89
|
+
*
|
|
90
|
+
* See also: https://docs.ucloud.cn/api/udns-api/modify_udns_record
|
|
91
|
+
*/
|
|
92
|
+
modifyUDNSRecord(request) {
|
|
93
|
+
const args = Object.assign({ Action: 'ModifyUDNSRecord' }, (request || {}));
|
|
94
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* ModifyUDNSZone - 修改域名备注/递归查询状态
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/udns-api/modify_udns_zone
|
|
100
|
+
*/
|
|
101
|
+
modifyUDNSZone(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'ModifyUDNSZone' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.default = UDNSClient;
|