tencentcloud-sdk-nodejs 4.0.298 → 4.0.299
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/CHANGELOG.md +170 -0
- package/SERVICE_CHANGELOG.md +287 -132
- package/package.json +1 -1
- package/products.md +9 -8
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_client.ts +127 -53
- package/src/services/antiddos/v20200309/antiddos_models.ts +355 -30
- package/src/services/billing/v20180709/billing_models.ts +12 -0
- package/src/services/clb/v20180317/clb_client.ts +0 -3
- package/src/services/gme/v20180711/gme_models.ts +10 -10
- package/src/services/index.ts +1 -0
- package/src/services/monitor/v20180724/monitor_client.ts +1 -1
- package/src/services/monitor/v20180724/monitor_models.ts +1 -1
- package/src/services/tcss/v20201101/tcss_models.ts +26 -0
- package/src/services/tdcpg/index.ts +5 -0
- package/src/services/tdcpg/v20211118/index.ts +6 -0
- package/src/services/tdcpg/v20211118/tdcpg_client.ts +345 -0
- package/src/services/tdcpg/v20211118/tdcpg_models.ts +1320 -0
- package/src/services/tdid/v20210519/tdid_client.ts +64 -14
- package/src/services/tdid/v20210519/tdid_models.ts +205 -17
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +41 -17
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +60 -24
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +302 -28
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +10 -0
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +0 -3
- package/tencentcloud/services/clb/v20180317/clb_client.js +0 -3
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +10 -10
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +1 -1
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +1 -1
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +1 -1
- package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +21 -0
- package/tencentcloud/services/tdcpg/index.d.ts +6 -0
- package/tencentcloud/services/tdcpg/index.js +7 -0
- package/tencentcloud/services/tdcpg/v20211118/index.d.ts +6 -0
- package/tencentcloud/services/tdcpg/v20211118/index.js +9 -0
- package/tencentcloud/services/tdcpg/v20211118/tdcpg_client.d.ts +116 -0
- package/tencentcloud/services/tdcpg/v20211118/tdcpg_client.js +187 -0
- package/tencentcloud/services/tdcpg/v20211118/tdcpg_models.d.ts +1111 -0
- package/tencentcloud/services/tdcpg/v20211118/tdcpg_models.js +18 -0
- package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +22 -5
- package/tencentcloud/services/tdid/v20210519/tdid_client.js +31 -6
- package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +175 -15
- package/test/antiddos.v20200309.test.js +76 -16
- package/test/tdcpg.v20211118.test.js +271 -0
- package/test/tdid.v20210519.test.js +44 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { CreateCredentialRequest, CreateTDidRequest, CreateSelectiveCredentialRequest, CreateTDidResponse, CreateSelectiveCredentialResponse,
|
|
3
|
+
import { CreateCredentialRequest, CreateTDidRequest, GetAuthorityIssuerResponse, CreateSelectiveCredentialRequest, GetDidDocumentRequest, CreateTDidResponse, CreateSelectiveCredentialResponse, SetCredentialStatusRequest, CreateTDidByPublicKeyRequest, CreateTDidByPublicKeyResponse, CreateCredentialResponse, GetAuthorityIssuerRequest, GetDidDocumentResponse, VerifyCredentialResponse, SetCredentialStatusResponse, VerifyCredentialRequest } from "./tdid_models";
|
|
4
4
|
/**
|
|
5
5
|
* tdid client
|
|
6
6
|
* @class
|
|
7
7
|
*/
|
|
8
8
|
export declare class Client extends AbstractClient {
|
|
9
9
|
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 查看DID文档
|
|
12
|
+
|
|
13
|
+
*/
|
|
14
|
+
GetDidDocument(req: GetDidDocumentRequest, cb?: (error: string, rep: GetDidDocumentResponse) => void): Promise<GetDidDocumentResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* 创建选择性批露凭证
|
|
17
|
+
*/
|
|
18
|
+
CreateSelectiveCredential(req: CreateSelectiveCredentialRequest, cb?: (error: string, rep: CreateSelectiveCredentialResponse) => void): Promise<CreateSelectiveCredentialResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* 创建凭证
|
|
21
|
+
*/
|
|
22
|
+
CreateCredential(req: CreateCredentialRequest, cb?: (error: string, rep: CreateCredentialResponse) => void): Promise<CreateCredentialResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* 新建DID根据公钥生成Tdid
|
|
25
|
+
*/
|
|
26
|
+
CreateTDidByPublicKey(req: CreateTDidByPublicKeyRequest, cb?: (error: string, rep: CreateTDidByPublicKeyResponse) => void): Promise<CreateTDidByPublicKeyResponse>;
|
|
10
27
|
/**
|
|
11
28
|
* 验证凭证
|
|
12
29
|
*/
|
|
@@ -16,11 +33,11 @@ export declare class Client extends AbstractClient {
|
|
|
16
33
|
*/
|
|
17
34
|
CreateTDid(req: CreateTDidRequest, cb?: (error: string, rep: CreateTDidResponse) => void): Promise<CreateTDidResponse>;
|
|
18
35
|
/**
|
|
19
|
-
*
|
|
36
|
+
* 获取权威机构信息
|
|
20
37
|
*/
|
|
21
|
-
|
|
38
|
+
GetAuthorityIssuer(req: GetAuthorityIssuerRequest, cb?: (error: string, rep: GetAuthorityIssuerResponse) => void): Promise<GetAuthorityIssuerResponse>;
|
|
22
39
|
/**
|
|
23
|
-
*
|
|
40
|
+
* 设置凭证链上状态
|
|
24
41
|
*/
|
|
25
|
-
|
|
42
|
+
SetCredentialStatus(req: SetCredentialStatusRequest, cb?: (error: string, rep: SetCredentialStatusResponse) => void): Promise<SetCredentialStatusResponse>;
|
|
26
43
|
}
|
|
@@ -27,6 +27,31 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
27
27
|
constructor(clientConfig) {
|
|
28
28
|
super("tdid.tencentcloudapi.com", "2021-05-19", clientConfig);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* 查看DID文档
|
|
32
|
+
|
|
33
|
+
*/
|
|
34
|
+
async GetDidDocument(req, cb) {
|
|
35
|
+
return this.request("GetDidDocument", req, cb);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 创建选择性批露凭证
|
|
39
|
+
*/
|
|
40
|
+
async CreateSelectiveCredential(req, cb) {
|
|
41
|
+
return this.request("CreateSelectiveCredential", req, cb);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 创建凭证
|
|
45
|
+
*/
|
|
46
|
+
async CreateCredential(req, cb) {
|
|
47
|
+
return this.request("CreateCredential", req, cb);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 新建DID根据公钥生成Tdid
|
|
51
|
+
*/
|
|
52
|
+
async CreateTDidByPublicKey(req, cb) {
|
|
53
|
+
return this.request("CreateTDidByPublicKey", req, cb);
|
|
54
|
+
}
|
|
30
55
|
/**
|
|
31
56
|
* 验证凭证
|
|
32
57
|
*/
|
|
@@ -40,16 +65,16 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
40
65
|
return this.request("CreateTDid", req, cb);
|
|
41
66
|
}
|
|
42
67
|
/**
|
|
43
|
-
*
|
|
68
|
+
* 获取权威机构信息
|
|
44
69
|
*/
|
|
45
|
-
async
|
|
46
|
-
return this.request("
|
|
70
|
+
async GetAuthorityIssuer(req, cb) {
|
|
71
|
+
return this.request("GetAuthorityIssuer", req, cb);
|
|
47
72
|
}
|
|
48
73
|
/**
|
|
49
|
-
*
|
|
74
|
+
* 设置凭证链上状态
|
|
50
75
|
*/
|
|
51
|
-
async
|
|
52
|
-
return this.request("
|
|
76
|
+
async SetCredentialStatus(req, cb) {
|
|
77
|
+
return this.request("SetCredentialStatus", req, cb);
|
|
53
78
|
}
|
|
54
79
|
}
|
|
55
80
|
exports.Client = Client;
|
|
@@ -55,6 +55,10 @@ export interface CreateCredentialRequest {
|
|
|
55
55
|
* 版本
|
|
56
56
|
*/
|
|
57
57
|
VersionCredential: string;
|
|
58
|
+
/**
|
|
59
|
+
* 是否未签名
|
|
60
|
+
*/
|
|
61
|
+
UnSigned?: boolean;
|
|
58
62
|
}
|
|
59
63
|
/**
|
|
60
64
|
* 创建凭证第二个
|
|
@@ -83,25 +87,73 @@ export interface CreateTDidRequest {
|
|
|
83
87
|
Relegation: number;
|
|
84
88
|
}
|
|
85
89
|
/**
|
|
86
|
-
*
|
|
90
|
+
* GetAuthorityIssuer返回参数结构体
|
|
87
91
|
*/
|
|
88
|
-
export interface
|
|
92
|
+
export interface GetAuthorityIssuerResponse {
|
|
89
93
|
/**
|
|
90
|
-
*
|
|
94
|
+
* 名称
|
|
91
95
|
*/
|
|
92
|
-
|
|
96
|
+
Name: string;
|
|
93
97
|
/**
|
|
94
|
-
*
|
|
98
|
+
* 区块链网络id
|
|
99
|
+
*/
|
|
100
|
+
ClusterId: string;
|
|
101
|
+
/**
|
|
102
|
+
* 区块链群组id
|
|
103
|
+
*/
|
|
104
|
+
GroupId: number;
|
|
105
|
+
/**
|
|
106
|
+
* 权威机构did
|
|
107
|
+
*/
|
|
108
|
+
Did: string;
|
|
109
|
+
/**
|
|
110
|
+
* 机构备注信息
|
|
111
|
+
*/
|
|
112
|
+
Remark: string;
|
|
113
|
+
/**
|
|
114
|
+
* 注册时间
|
|
115
|
+
*/
|
|
116
|
+
RegisterTime: string;
|
|
117
|
+
/**
|
|
118
|
+
* 认证时间
|
|
119
|
+
*/
|
|
120
|
+
RecognizeTime: string;
|
|
121
|
+
/**
|
|
122
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
123
|
+
*/
|
|
124
|
+
RequestId?: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 凭证链上状态信息
|
|
128
|
+
*/
|
|
129
|
+
export interface CredentialStatus {
|
|
130
|
+
/**
|
|
131
|
+
* 凭证唯一id
|
|
132
|
+
*/
|
|
133
|
+
CredentialId: string;
|
|
134
|
+
/**
|
|
135
|
+
* 凭证状态(0:吊销;1:有效)
|
|
136
|
+
*/
|
|
137
|
+
Status: number;
|
|
138
|
+
/**
|
|
139
|
+
* 凭证颁发者Did
|
|
95
140
|
*/
|
|
96
141
|
Issuer: string;
|
|
97
142
|
/**
|
|
98
|
-
*
|
|
143
|
+
* 凭证摘要
|
|
144
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
99
145
|
*/
|
|
100
|
-
|
|
146
|
+
Digest: string;
|
|
101
147
|
/**
|
|
102
|
-
*
|
|
148
|
+
* 凭证签名
|
|
149
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
103
150
|
*/
|
|
104
|
-
|
|
151
|
+
Signature: string;
|
|
152
|
+
/**
|
|
153
|
+
* 更新时间戳
|
|
154
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
155
|
+
*/
|
|
156
|
+
TimeStamp: number;
|
|
105
157
|
}
|
|
106
158
|
/**
|
|
107
159
|
* CreateSelectiveCredential请求参数结构体
|
|
@@ -116,6 +168,36 @@ export interface CreateSelectiveCredentialRequest {
|
|
|
116
168
|
*/
|
|
117
169
|
PolicyId: number;
|
|
118
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* GetDidDocument请求参数结构体
|
|
173
|
+
*/
|
|
174
|
+
export interface GetDidDocumentRequest {
|
|
175
|
+
/**
|
|
176
|
+
* tdid
|
|
177
|
+
*/
|
|
178
|
+
Did: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* 创建凭证入参的FunctionArg
|
|
182
|
+
*/
|
|
183
|
+
export interface FunctionArg {
|
|
184
|
+
/**
|
|
185
|
+
* CPT ID
|
|
186
|
+
*/
|
|
187
|
+
CptId: number;
|
|
188
|
+
/**
|
|
189
|
+
* 签发者 did
|
|
190
|
+
*/
|
|
191
|
+
Issuer: string;
|
|
192
|
+
/**
|
|
193
|
+
* 过期时间
|
|
194
|
+
*/
|
|
195
|
+
ExpirationDate: string;
|
|
196
|
+
/**
|
|
197
|
+
* 声明
|
|
198
|
+
*/
|
|
199
|
+
ClaimJson: string;
|
|
200
|
+
}
|
|
119
201
|
/**
|
|
120
202
|
* CreateTDid返回参数结构体
|
|
121
203
|
*/
|
|
@@ -142,6 +224,88 @@ export interface CreateSelectiveCredentialResponse {
|
|
|
142
224
|
*/
|
|
143
225
|
RequestId?: string;
|
|
144
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* SetCredentialStatus请求参数结构体
|
|
229
|
+
*/
|
|
230
|
+
export interface SetCredentialStatusRequest {
|
|
231
|
+
/**
|
|
232
|
+
* 凭证状态
|
|
233
|
+
*/
|
|
234
|
+
CredentialStatus: CredentialStatus;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* CreateTDidByPublicKey请求参数结构体
|
|
238
|
+
*/
|
|
239
|
+
export interface CreateTDidByPublicKeyRequest {
|
|
240
|
+
/**
|
|
241
|
+
* 网络ID
|
|
242
|
+
*/
|
|
243
|
+
ClusterId: string;
|
|
244
|
+
/**
|
|
245
|
+
* 群组ID
|
|
246
|
+
*/
|
|
247
|
+
GroupId: number;
|
|
248
|
+
/**
|
|
249
|
+
* 身份公钥
|
|
250
|
+
*/
|
|
251
|
+
PublicKey: string;
|
|
252
|
+
/**
|
|
253
|
+
* 加密公钥
|
|
254
|
+
*/
|
|
255
|
+
EncryptPubKey?: string;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* CreateTDidByPublicKey返回参数结构体
|
|
259
|
+
*/
|
|
260
|
+
export interface CreateTDidByPublicKeyResponse {
|
|
261
|
+
/**
|
|
262
|
+
* did具体信息
|
|
263
|
+
*/
|
|
264
|
+
Did: string;
|
|
265
|
+
/**
|
|
266
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
267
|
+
*/
|
|
268
|
+
RequestId?: string;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* CreateCredential返回参数结构体
|
|
272
|
+
*/
|
|
273
|
+
export interface CreateCredentialResponse {
|
|
274
|
+
/**
|
|
275
|
+
* Credential的具体信息
|
|
276
|
+
*/
|
|
277
|
+
CredentialData: string;
|
|
278
|
+
/**
|
|
279
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
280
|
+
*/
|
|
281
|
+
RequestId?: string;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* GetAuthorityIssuer请求参数结构体
|
|
285
|
+
*/
|
|
286
|
+
export interface GetAuthorityIssuerRequest {
|
|
287
|
+
/**
|
|
288
|
+
* tdid
|
|
289
|
+
*/
|
|
290
|
+
Did: string;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* GetDidDocument返回参数结构体
|
|
294
|
+
*/
|
|
295
|
+
export interface GetDidDocumentResponse {
|
|
296
|
+
/**
|
|
297
|
+
* 名称
|
|
298
|
+
*/
|
|
299
|
+
Name: string;
|
|
300
|
+
/**
|
|
301
|
+
* DID文档
|
|
302
|
+
*/
|
|
303
|
+
Document: string;
|
|
304
|
+
/**
|
|
305
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
306
|
+
*/
|
|
307
|
+
RequestId?: string;
|
|
308
|
+
}
|
|
145
309
|
/**
|
|
146
310
|
* VerifyCredential返回参数结构体
|
|
147
311
|
*/
|
|
@@ -164,13 +328,9 @@ export interface VerifyCredentialResponse {
|
|
|
164
328
|
RequestId?: string;
|
|
165
329
|
}
|
|
166
330
|
/**
|
|
167
|
-
*
|
|
331
|
+
* SetCredentialStatus返回参数结构体
|
|
168
332
|
*/
|
|
169
|
-
export interface
|
|
170
|
-
/**
|
|
171
|
-
* Credential的具体信息
|
|
172
|
-
*/
|
|
173
|
-
CredentialData: string;
|
|
333
|
+
export interface SetCredentialStatusResponse {
|
|
174
334
|
/**
|
|
175
335
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
176
336
|
*/
|
|
@@ -18,9 +18,9 @@ const client = new tencentcloud.antiddos.v20200309.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("antiddos.v20200309.test.js", function () {
|
|
20
20
|
|
|
21
|
-
it("antiddos.v20200309.
|
|
21
|
+
it("antiddos.v20200309.ModifyCCLevelPolicy", async function () {
|
|
22
22
|
try {
|
|
23
|
-
const data = await client.
|
|
23
|
+
const data = await client.ModifyCCLevelPolicy({})
|
|
24
24
|
expect(data).to.be.ok
|
|
25
25
|
} catch(error) {
|
|
26
26
|
expect(error.requestId).to.be.ok
|
|
@@ -58,9 +58,19 @@ it("antiddos.v20200309.DescribeListWaterPrintConfig", async function () {
|
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
60
|
|
|
61
|
-
it("antiddos.v20200309.
|
|
61
|
+
it("antiddos.v20200309.ModifyNewDomainRules", async function () {
|
|
62
62
|
try {
|
|
63
|
-
const data = await client.
|
|
63
|
+
const data = await client.ModifyNewDomainRules({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
it("antiddos.v20200309.CreateCcBlackWhiteIpList", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.CreateCcBlackWhiteIpList({})
|
|
64
74
|
expect(data).to.be.ok
|
|
65
75
|
} catch(error) {
|
|
66
76
|
expect(error.requestId).to.be.ok
|
|
@@ -188,6 +198,16 @@ it("antiddos.v20200309.DescribeDDoSTrend", async function () {
|
|
|
188
198
|
}
|
|
189
199
|
})
|
|
190
200
|
|
|
201
|
+
it("antiddos.v20200309.DeleteDDoSBlackWhiteIpList", async function () {
|
|
202
|
+
try {
|
|
203
|
+
const data = await client.DeleteDDoSBlackWhiteIpList({})
|
|
204
|
+
expect(data).to.be.ok
|
|
205
|
+
} catch(error) {
|
|
206
|
+
expect(error.requestId).to.be.ok
|
|
207
|
+
expect(error.code).to.be.ok
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
|
|
191
211
|
it("antiddos.v20200309.DescribeDefaultAlarmThreshold", async function () {
|
|
192
212
|
try {
|
|
193
213
|
const data = await client.DescribeDefaultAlarmThreshold({})
|
|
@@ -208,9 +228,9 @@ it("antiddos.v20200309.DescribeListBlackWhiteIpList", async function () {
|
|
|
208
228
|
}
|
|
209
229
|
})
|
|
210
230
|
|
|
211
|
-
it("antiddos.v20200309.
|
|
231
|
+
it("antiddos.v20200309.DeleteCCThresholdPolicy", async function () {
|
|
212
232
|
try {
|
|
213
|
-
const data = await client.
|
|
233
|
+
const data = await client.DeleteCCThresholdPolicy({})
|
|
214
234
|
expect(data).to.be.ok
|
|
215
235
|
} catch(error) {
|
|
216
236
|
expect(error.requestId).to.be.ok
|
|
@@ -248,9 +268,9 @@ it("antiddos.v20200309.DisassociateDDoSEipAddress", async function () {
|
|
|
248
268
|
}
|
|
249
269
|
})
|
|
250
270
|
|
|
251
|
-
it("antiddos.v20200309.
|
|
271
|
+
it("antiddos.v20200309.DescribeCCLevelPolicy", async function () {
|
|
252
272
|
try {
|
|
253
|
-
const data = await client.
|
|
273
|
+
const data = await client.DescribeCCLevelPolicy({})
|
|
254
274
|
expect(data).to.be.ok
|
|
255
275
|
} catch(error) {
|
|
256
276
|
expect(error.requestId).to.be.ok
|
|
@@ -288,6 +308,16 @@ it("antiddos.v20200309.CreateBoundIP", async function () {
|
|
|
288
308
|
}
|
|
289
309
|
})
|
|
290
310
|
|
|
311
|
+
it("antiddos.v20200309.ModifyCcBlackWhiteIpList", async function () {
|
|
312
|
+
try {
|
|
313
|
+
const data = await client.ModifyCcBlackWhiteIpList({})
|
|
314
|
+
expect(data).to.be.ok
|
|
315
|
+
} catch(error) {
|
|
316
|
+
expect(error.requestId).to.be.ok
|
|
317
|
+
expect(error.code).to.be.ok
|
|
318
|
+
}
|
|
319
|
+
})
|
|
320
|
+
|
|
291
321
|
it("antiddos.v20200309.DeleteCcGeoIPBlockConfig", async function () {
|
|
292
322
|
try {
|
|
293
323
|
const data = await client.DeleteCcGeoIPBlockConfig({})
|
|
@@ -338,6 +368,16 @@ it("antiddos.v20200309.DescribeBlackWhiteIpList", async function () {
|
|
|
338
368
|
}
|
|
339
369
|
})
|
|
340
370
|
|
|
371
|
+
it("antiddos.v20200309.DescribeCCLevelList", async function () {
|
|
372
|
+
try {
|
|
373
|
+
const data = await client.DescribeCCLevelList({})
|
|
374
|
+
expect(data).to.be.ok
|
|
375
|
+
} catch(error) {
|
|
376
|
+
expect(error.requestId).to.be.ok
|
|
377
|
+
expect(error.code).to.be.ok
|
|
378
|
+
}
|
|
379
|
+
})
|
|
380
|
+
|
|
341
381
|
it("antiddos.v20200309.ModifyDDoSBlackWhiteIpList", async function () {
|
|
342
382
|
try {
|
|
343
383
|
const data = await client.ModifyDDoSBlackWhiteIpList({})
|
|
@@ -378,9 +418,9 @@ it("antiddos.v20200309.CreateDDoSBlackWhiteIpList", async function () {
|
|
|
378
418
|
}
|
|
379
419
|
})
|
|
380
420
|
|
|
381
|
-
it("antiddos.v20200309.
|
|
421
|
+
it("antiddos.v20200309.DescribeCCThresholdList", async function () {
|
|
382
422
|
try {
|
|
383
|
-
const data = await client.
|
|
423
|
+
const data = await client.DescribeCCThresholdList({})
|
|
384
424
|
expect(data).to.be.ok
|
|
385
425
|
} catch(error) {
|
|
386
426
|
expect(error.requestId).to.be.ok
|
|
@@ -398,6 +438,16 @@ it("antiddos.v20200309.ModifyCCPrecisionPolicy", async function () {
|
|
|
398
438
|
}
|
|
399
439
|
})
|
|
400
440
|
|
|
441
|
+
it("antiddos.v20200309.ModifyL7RulesEdge", async function () {
|
|
442
|
+
try {
|
|
443
|
+
const data = await client.ModifyL7RulesEdge({})
|
|
444
|
+
expect(data).to.be.ok
|
|
445
|
+
} catch(error) {
|
|
446
|
+
expect(error.requestId).to.be.ok
|
|
447
|
+
expect(error.code).to.be.ok
|
|
448
|
+
}
|
|
449
|
+
})
|
|
450
|
+
|
|
401
451
|
it("antiddos.v20200309.CreateIPAlarmThresholdConfig", async function () {
|
|
402
452
|
try {
|
|
403
453
|
const data = await client.CreateIPAlarmThresholdConfig({})
|
|
@@ -408,9 +458,9 @@ it("antiddos.v20200309.CreateIPAlarmThresholdConfig", async function () {
|
|
|
408
458
|
}
|
|
409
459
|
})
|
|
410
460
|
|
|
411
|
-
it("antiddos.v20200309.
|
|
461
|
+
it("antiddos.v20200309.DeleteCCLevelPolicy", async function () {
|
|
412
462
|
try {
|
|
413
|
-
const data = await client.
|
|
463
|
+
const data = await client.DeleteCCLevelPolicy({})
|
|
414
464
|
expect(data).to.be.ok
|
|
415
465
|
} catch(error) {
|
|
416
466
|
expect(error.requestId).to.be.ok
|
|
@@ -608,9 +658,9 @@ it("antiddos.v20200309.DeleteWaterPrintConfig", async function () {
|
|
|
608
658
|
}
|
|
609
659
|
})
|
|
610
660
|
|
|
611
|
-
it("antiddos.v20200309.
|
|
661
|
+
it("antiddos.v20200309.DescribeCcGeoIPBlockConfigList", async function () {
|
|
612
662
|
try {
|
|
613
|
-
const data = await client.
|
|
663
|
+
const data = await client.DescribeCcGeoIPBlockConfigList({})
|
|
614
664
|
expect(data).to.be.ok
|
|
615
665
|
} catch(error) {
|
|
616
666
|
expect(error.requestId).to.be.ok
|
|
@@ -688,9 +738,9 @@ it("antiddos.v20200309.DescribeDDoSBlackWhiteIpList", async function () {
|
|
|
688
738
|
}
|
|
689
739
|
})
|
|
690
740
|
|
|
691
|
-
it("antiddos.v20200309.
|
|
741
|
+
it("antiddos.v20200309.DescribeCCTrend", async function () {
|
|
692
742
|
try {
|
|
693
|
-
const data = await client.
|
|
743
|
+
const data = await client.DescribeCCTrend({})
|
|
694
744
|
expect(data).to.be.ok
|
|
695
745
|
} catch(error) {
|
|
696
746
|
expect(error.requestId).to.be.ok
|
|
@@ -748,6 +798,16 @@ it("antiddos.v20200309.DescribeListPortAclList", async function () {
|
|
|
748
798
|
}
|
|
749
799
|
})
|
|
750
800
|
|
|
801
|
+
it("antiddos.v20200309.DescribeDDoSConnectLimitList", async function () {
|
|
802
|
+
try {
|
|
803
|
+
const data = await client.DescribeDDoSConnectLimitList({})
|
|
804
|
+
expect(data).to.be.ok
|
|
805
|
+
} catch(error) {
|
|
806
|
+
expect(error.requestId).to.be.ok
|
|
807
|
+
expect(error.code).to.be.ok
|
|
808
|
+
}
|
|
809
|
+
})
|
|
810
|
+
|
|
751
811
|
it("antiddos.v20200309.CreateCcGeoIPBlockConfig", async function () {
|
|
752
812
|
try {
|
|
753
813
|
const data = await client.CreateCcGeoIPBlockConfig({})
|