tencentcloud-sdk-nodejs-rce 4.1.262 → 4.1.272
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/es/services/rce/index.js +4 -2
- package/es/services/rce/v20260130/index.js +6 -0
- package/es/services/rce/v20260130/rce_client.js +9 -0
- package/es/services/rce/v20260130/rce_models.js +1 -0
- package/package.json +1 -1
- package/tencentcloud/services/rce/index.d.ts +7 -3
- package/tencentcloud/services/rce/index.js +4 -2
- package/tencentcloud/services/rce/v20260130/index.d.ts +6 -0
- package/tencentcloud/services/rce/v20260130/index.js +10 -0
- package/tencentcloud/services/rce/v20260130/rce_client.d.ts +13 -0
- package/tencentcloud/services/rce/v20260130/rce_client.js +38 -0
- package/tencentcloud/services/rce/v20260130/rce_models.d.ts +184 -0
- package/tencentcloud/services/rce/v20260130/rce_models.js +18 -0
package/es/services/rce/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v20260130 } from "./v20260130";
|
|
2
2
|
import { v20201103 } from "./v20201103";
|
|
3
|
+
import { v20250425 } from "./v20250425";
|
|
3
4
|
export const rce = {
|
|
4
|
-
|
|
5
|
+
v20260130: v20260130,
|
|
5
6
|
v20201103: v20201103,
|
|
7
|
+
v20250425: v20250425,
|
|
6
8
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("rce.tencentcloudapi.com", "2026-01-30", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async AssessEnvironmentRisk(req, cb) {
|
|
7
|
+
return this.request("AssessEnvironmentRisk", req, cb);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export declare const rce: {
|
|
2
|
-
|
|
3
|
-
Client: typeof import("./
|
|
4
|
-
Models: typeof import("./
|
|
2
|
+
v20260130: {
|
|
3
|
+
Client: typeof import("./v20260130/rce_client").Client;
|
|
4
|
+
Models: typeof import("./v20260130/rce_models");
|
|
5
5
|
};
|
|
6
6
|
v20201103: {
|
|
7
7
|
Client: typeof import("./v20201103/rce_client").Client;
|
|
8
8
|
Models: typeof import("./v20201103/rce_models");
|
|
9
9
|
};
|
|
10
|
+
v20250425: {
|
|
11
|
+
Client: typeof import("./v20250425/rce_client").Client;
|
|
12
|
+
Models: typeof import("./v20250425/rce_models");
|
|
13
|
+
};
|
|
10
14
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.rce = void 0;
|
|
4
|
-
const
|
|
4
|
+
const v20260130_1 = require("./v20260130");
|
|
5
5
|
const v20201103_1 = require("./v20201103");
|
|
6
|
+
const v20250425_1 = require("./v20250425");
|
|
6
7
|
exports.rce = {
|
|
7
|
-
|
|
8
|
+
v20260130: v20260130_1.v20260130,
|
|
8
9
|
v20201103: v20201103_1.v20201103,
|
|
10
|
+
v20250425: v20250425_1.v20250425,
|
|
9
11
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20260130 = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Models = tslib_1.__importStar(require("./rce_models"));
|
|
6
|
+
const rce_client_1 = require("./rce_client");
|
|
7
|
+
exports.v20260130 = {
|
|
8
|
+
Client: rce_client_1.Client,
|
|
9
|
+
Models: Models,
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
import { AssessEnvironmentRiskResponse, AssessEnvironmentRiskRequest } from "./rce_models";
|
|
3
|
+
/**
|
|
4
|
+
* rce client
|
|
5
|
+
* @class
|
|
6
|
+
*/
|
|
7
|
+
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 环境风险评估
|
|
11
|
+
*/
|
|
12
|
+
AssessEnvironmentRisk(req: AssessEnvironmentRiskRequest, cb?: (error: string, rep: AssessEnvironmentRiskResponse) => void): Promise<AssessEnvironmentRiskResponse>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
|
+
/*
|
|
7
|
+
* Copyright (c) 2018 Tencent. All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing,
|
|
16
|
+
* software distributed under the License is distributed on an
|
|
17
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
18
|
+
* KIND, either express or implied. See the License for the
|
|
19
|
+
* specific language governing permissions and limitations
|
|
20
|
+
* under the License.
|
|
21
|
+
*/
|
|
22
|
+
const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
|
|
23
|
+
/**
|
|
24
|
+
* rce client
|
|
25
|
+
* @class
|
|
26
|
+
*/
|
|
27
|
+
class Client extends TencentCloudCommon.AbstractClient {
|
|
28
|
+
constructor(clientConfig) {
|
|
29
|
+
super("rce.tencentcloudapi.com", "2026-01-30", clientConfig);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 环境风险评估
|
|
33
|
+
*/
|
|
34
|
+
async AssessEnvironmentRisk(req, cb) {
|
|
35
|
+
return this.request("AssessEnvironmentRisk", req, cb);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Client = Client;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 风险标签
|
|
3
|
+
*/
|
|
4
|
+
export interface RiskLabel {
|
|
5
|
+
/**
|
|
6
|
+
* <p>风险ID</p>
|
|
7
|
+
*/
|
|
8
|
+
Id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* <p>风险描述</p>
|
|
11
|
+
*/
|
|
12
|
+
Reason?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* IP地理位置信息
|
|
16
|
+
*/
|
|
17
|
+
export interface IPLocation {
|
|
18
|
+
/**
|
|
19
|
+
* <p>IP地址所属国家</p>
|
|
20
|
+
*/
|
|
21
|
+
Country?: string;
|
|
22
|
+
/**
|
|
23
|
+
* <p>IP地址所属省份</p>
|
|
24
|
+
*/
|
|
25
|
+
Region?: string;
|
|
26
|
+
/**
|
|
27
|
+
* <p>IP地址所属城市</p>
|
|
28
|
+
*/
|
|
29
|
+
City?: string;
|
|
30
|
+
/**
|
|
31
|
+
* <p>IP地址所属地区</p>
|
|
32
|
+
*/
|
|
33
|
+
District?: string;
|
|
34
|
+
/**
|
|
35
|
+
* <p>IP地址的经度</p>
|
|
36
|
+
*/
|
|
37
|
+
Longitude?: string;
|
|
38
|
+
/**
|
|
39
|
+
* <p>IP地址的纬度</p>
|
|
40
|
+
*/
|
|
41
|
+
Latitude?: string;
|
|
42
|
+
/**
|
|
43
|
+
* <p>IP地址所属时区</p>
|
|
44
|
+
*/
|
|
45
|
+
Timezone?: string;
|
|
46
|
+
/**
|
|
47
|
+
* <p>IP地址的邮政编码</p>
|
|
48
|
+
*/
|
|
49
|
+
ZipCode?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 环境风险评估返回结果
|
|
53
|
+
*/
|
|
54
|
+
export interface AssessEnvironmentRiskRsp {
|
|
55
|
+
/**
|
|
56
|
+
* <p>环境风险分信息</p>
|
|
57
|
+
*/
|
|
58
|
+
Score?: DataScore;
|
|
59
|
+
/**
|
|
60
|
+
* <p>环境基础信息</p>
|
|
61
|
+
*/
|
|
62
|
+
Environment?: Environment;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* AssessEnvironmentRisk返回参数结构体
|
|
66
|
+
*/
|
|
67
|
+
export interface AssessEnvironmentRiskResponse {
|
|
68
|
+
/**
|
|
69
|
+
* <p>环境风险评估返回结果</p>
|
|
70
|
+
*/
|
|
71
|
+
Data?: AssessEnvironmentRiskRsp;
|
|
72
|
+
/**
|
|
73
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
74
|
+
*/
|
|
75
|
+
RequestId?: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* 风险分信息
|
|
79
|
+
*/
|
|
80
|
+
export interface DataScore {
|
|
81
|
+
/**
|
|
82
|
+
* <p>风险等级</p>
|
|
83
|
+
*/
|
|
84
|
+
RiskLevel?: number;
|
|
85
|
+
/**
|
|
86
|
+
* <p>风险标签</p>
|
|
87
|
+
*/
|
|
88
|
+
RiskLabels?: Array<RiskLabel>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 环境基础信息
|
|
92
|
+
*/
|
|
93
|
+
export interface Environment {
|
|
94
|
+
/**
|
|
95
|
+
* <p>IP地理位置信息</p>
|
|
96
|
+
*/
|
|
97
|
+
Location?: IPLocation;
|
|
98
|
+
/**
|
|
99
|
+
* <p>IP基础网络信息</p>
|
|
100
|
+
*/
|
|
101
|
+
Network?: IPNetwork;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* IP基础网络信息
|
|
105
|
+
*/
|
|
106
|
+
export interface IPNetwork {
|
|
107
|
+
/**
|
|
108
|
+
* <p>互联网服务提供商</p>
|
|
109
|
+
*/
|
|
110
|
+
ISP?: string;
|
|
111
|
+
/**
|
|
112
|
+
* <p>自治系统号</p>
|
|
113
|
+
*/
|
|
114
|
+
ASN?: string;
|
|
115
|
+
/**
|
|
116
|
+
* <p>IP注册组织名称</p>
|
|
117
|
+
*/
|
|
118
|
+
Organization?: string;
|
|
119
|
+
/**
|
|
120
|
+
* <p>是否保留IP</p>
|
|
121
|
+
*/
|
|
122
|
+
IsReserved?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* <p>是否网关IP</p>
|
|
125
|
+
*/
|
|
126
|
+
IsGateway?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* <p>是否任播网络</p>
|
|
129
|
+
*/
|
|
130
|
+
IsAnycast?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* <p>是否移动网络</p>
|
|
133
|
+
*/
|
|
134
|
+
IsMobile?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* <p>是否动态IP</p>
|
|
137
|
+
*/
|
|
138
|
+
IsDynamic?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* <p>是否网络出口</p>
|
|
141
|
+
*/
|
|
142
|
+
IsEgress?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* <p>是否域名解析</p>
|
|
145
|
+
*/
|
|
146
|
+
IsDNS?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* <p>是否教育机构</p>
|
|
149
|
+
*/
|
|
150
|
+
IsEducation?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* <p>是否组织机构</p>
|
|
153
|
+
*/
|
|
154
|
+
IsInstitution?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* <p>是否企业专线</p>
|
|
157
|
+
*/
|
|
158
|
+
IsCompany?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* <p>是否家用宽带</p>
|
|
161
|
+
*/
|
|
162
|
+
IsResidence?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* <p>是否云服务</p>
|
|
165
|
+
*/
|
|
166
|
+
IsCloudService?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* <p>是否基础设施</p>
|
|
169
|
+
*/
|
|
170
|
+
IsInfrastructure?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* <p>是否邮箱服务</p>
|
|
173
|
+
*/
|
|
174
|
+
IsMXServer?: boolean;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* AssessEnvironmentRisk请求参数结构体
|
|
178
|
+
*/
|
|
179
|
+
export interface AssessEnvironmentRiskRequest {
|
|
180
|
+
/**
|
|
181
|
+
* <p>客户端 IP 地址</p>
|
|
182
|
+
*/
|
|
183
|
+
UserIp: string;
|
|
184
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 Tencent. 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 });
|