tencentcloud-sdk-nodejs-intl-en 3.0.1082 → 3.0.1084

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.1082",
3
+ "version": "3.0.1084",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1082";
1
+ const sdkVersion = "3.0.1084";
2
2
  module.exports = sdkVersion
@@ -79,6 +79,7 @@ module.exports = {
79
79
  organization: require("./organization"),
80
80
  postgres: require("./postgres"),
81
81
  privatedns: require("./privatedns"),
82
+ rce: require("./rce"),
82
83
  redis: require("./redis"),
83
84
  rum: require("./rum"),
84
85
  scf: require("./scf"),
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ v20201103: require("./v20201103"),
3
+ };
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ Client: require("./rce_client"),
3
+ Models: require("./models"),
4
+ };
@@ -0,0 +1,308 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const AbstractModel = require("../../common/abstract_model");
18
+
19
+ /**
20
+ * DescribeRiskAssessment request structure.
21
+ * @class
22
+ */
23
+ class DescribeRiskAssessmentRequest extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * Business parameters
29
+ * @type {InputBizCryptoData || null}
30
+ */
31
+ this.BizCryptoData = null;
32
+
33
+ }
34
+
35
+ /**
36
+ * @private
37
+ */
38
+ deserialize(params) {
39
+ if (!params) {
40
+ return;
41
+ }
42
+
43
+ if (params.BizCryptoData) {
44
+ let obj = new InputBizCryptoData();
45
+ obj.deserialize(params.BizCryptoData)
46
+ this.BizCryptoData = obj;
47
+ }
48
+
49
+ }
50
+ }
51
+
52
+ /**
53
+ * Risk assessment extended attribute key-value pairs.
54
+ * @class
55
+ */
56
+ class OutputRiskAssessmentExtraInfoPair extends AbstractModel {
57
+ constructor(){
58
+ super();
59
+
60
+ /**
61
+ * Key.
62
+ Note: This field may return null, indicating that no valid value is found.
63
+ * @type {string || null}
64
+ */
65
+ this.Key = null;
66
+
67
+ /**
68
+ * Value.
69
+ Note: This field may return null, indicating that no valid value is found.
70
+ * @type {string || null}
71
+ */
72
+ this.Value = null;
73
+
74
+ }
75
+
76
+ /**
77
+ * @private
78
+ */
79
+ deserialize(params) {
80
+ if (!params) {
81
+ return;
82
+ }
83
+ this.Key = 'Key' in params ? params.Key : null;
84
+ this.Value = 'Value' in params ? params.Value : null;
85
+
86
+ }
87
+ }
88
+
89
+ /**
90
+ * Query output parameters of risk assessment results.
91
+ * @class
92
+ */
93
+ class OutputRiskAssessment extends AbstractModel {
94
+ constructor(){
95
+ super();
96
+
97
+ /**
98
+ * Return code.
99
+ Note: This field may return null, indicating that no valid value is found.
100
+ * @type {number || null}
101
+ */
102
+ this.Code = null;
103
+
104
+ /**
105
+ * Returned information
106
+
107
+ Note: This field may return null, indicating that no valid value is found.
108
+ * @type {string || null}
109
+ */
110
+ this.Message = null;
111
+
112
+ /**
113
+ * Business details.
114
+ Note: This field may return null, indicating that no valid value is found.
115
+ * @type {OutputRiskAssessmentInfo || null}
116
+ */
117
+ this.Value = null;
118
+
119
+ /**
120
+ * Request ID.
121
+ Note: This field may return null, indicating that no valid value is found.
122
+ * @type {string || null}
123
+ */
124
+ this.UUid = null;
125
+
126
+ }
127
+
128
+ /**
129
+ * @private
130
+ */
131
+ deserialize(params) {
132
+ if (!params) {
133
+ return;
134
+ }
135
+ this.Code = 'Code' in params ? params.Code : null;
136
+ this.Message = 'Message' in params ? params.Message : null;
137
+
138
+ if (params.Value) {
139
+ let obj = new OutputRiskAssessmentInfo();
140
+ obj.deserialize(params.Value)
141
+ this.Value = obj;
142
+ }
143
+ this.UUid = 'UUid' in params ? params.UUid : null;
144
+
145
+ }
146
+ }
147
+
148
+ /**
149
+ * Query input parameters of risk assessment results
150
+ * @class
151
+ */
152
+ class InputBizCryptoData extends AbstractModel {
153
+ constructor(){
154
+ super();
155
+
156
+ /**
157
+ * Whether to authorize.
158
+ * @type {string || null}
159
+ */
160
+ this.IsAuthorized = null;
161
+
162
+ /**
163
+ * Encryption type.
164
+ * @type {string || null}
165
+ */
166
+ this.CryptoType = null;
167
+
168
+ /**
169
+ * Encrypted content.
170
+ * @type {string || null}
171
+ */
172
+ this.CryptoContent = null;
173
+
174
+ }
175
+
176
+ /**
177
+ * @private
178
+ */
179
+ deserialize(params) {
180
+ if (!params) {
181
+ return;
182
+ }
183
+ this.IsAuthorized = 'IsAuthorized' in params ? params.IsAuthorized : null;
184
+ this.CryptoType = 'CryptoType' in params ? params.CryptoType : null;
185
+ this.CryptoContent = 'CryptoContent' in params ? params.CryptoContent : null;
186
+
187
+ }
188
+ }
189
+
190
+ /**
191
+ * Query output parameters of risk assessment results.
192
+ * @class
193
+ */
194
+ class OutputRiskAssessmentInfo extends AbstractModel {
195
+ constructor(){
196
+ super();
197
+
198
+ /**
199
+ * Risk value.
200
+ Note: This field may return null, indicating that no valid value is found.
201
+ * @type {string || null}
202
+ */
203
+ this.RiskLevel = null;
204
+
205
+ /**
206
+ * Risk type.
207
+ Note: This field may return null, indicating that no valid value is found.
208
+ * @type {Array.<number> || null}
209
+ */
210
+ this.RiskType = null;
211
+
212
+ /**
213
+ * Device identification
214
+
215
+ Note: This field may return null, indicating that no valid value is found.
216
+ * @type {string || null}
217
+ */
218
+ this.DeviceId = null;
219
+
220
+ /**
221
+ * Extended attributes.
222
+ Note: This field may return null, indicating that no valid value is found.
223
+ * @type {Array.<OutputRiskAssessmentExtraInfoPair> || null}
224
+ */
225
+ this.ExtraInfo = null;
226
+
227
+ /**
228
+ * Token generation timestamp.
229
+ Note: This field may return null, indicating that no valid value is found.
230
+ * @type {string || null}
231
+ */
232
+ this.TokenTime = null;
233
+
234
+ }
235
+
236
+ /**
237
+ * @private
238
+ */
239
+ deserialize(params) {
240
+ if (!params) {
241
+ return;
242
+ }
243
+ this.RiskLevel = 'RiskLevel' in params ? params.RiskLevel : null;
244
+ this.RiskType = 'RiskType' in params ? params.RiskType : null;
245
+ this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
246
+
247
+ if (params.ExtraInfo) {
248
+ this.ExtraInfo = new Array();
249
+ for (let z in params.ExtraInfo) {
250
+ let obj = new OutputRiskAssessmentExtraInfoPair();
251
+ obj.deserialize(params.ExtraInfo[z]);
252
+ this.ExtraInfo.push(obj);
253
+ }
254
+ }
255
+ this.TokenTime = 'TokenTime' in params ? params.TokenTime : null;
256
+
257
+ }
258
+ }
259
+
260
+ /**
261
+ * DescribeRiskAssessment response structure.
262
+ * @class
263
+ */
264
+ class DescribeRiskAssessmentResponse extends AbstractModel {
265
+ constructor(){
266
+ super();
267
+
268
+ /**
269
+ * Business output parameters.
270
+ * @type {OutputRiskAssessment || null}
271
+ */
272
+ this.Data = null;
273
+
274
+ /**
275
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
276
+ * @type {string || null}
277
+ */
278
+ this.RequestId = null;
279
+
280
+ }
281
+
282
+ /**
283
+ * @private
284
+ */
285
+ deserialize(params) {
286
+ if (!params) {
287
+ return;
288
+ }
289
+
290
+ if (params.Data) {
291
+ let obj = new OutputRiskAssessment();
292
+ obj.deserialize(params.Data)
293
+ this.Data = obj;
294
+ }
295
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
296
+
297
+ }
298
+ }
299
+
300
+ module.exports = {
301
+ DescribeRiskAssessmentRequest: DescribeRiskAssessmentRequest,
302
+ OutputRiskAssessmentExtraInfoPair: OutputRiskAssessmentExtraInfoPair,
303
+ OutputRiskAssessment: OutputRiskAssessment,
304
+ InputBizCryptoData: InputBizCryptoData,
305
+ OutputRiskAssessmentInfo: OutputRiskAssessmentInfo,
306
+ DescribeRiskAssessmentResponse: DescribeRiskAssessmentResponse,
307
+
308
+ }
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const models = require("./models");
18
+ const AbstractClient = require('../../common/abstract_client')
19
+ const DescribeRiskAssessmentRequest = models.DescribeRiskAssessmentRequest;
20
+ const OutputRiskAssessmentExtraInfoPair = models.OutputRiskAssessmentExtraInfoPair;
21
+ const OutputRiskAssessment = models.OutputRiskAssessment;
22
+ const InputBizCryptoData = models.InputBizCryptoData;
23
+ const OutputRiskAssessmentInfo = models.OutputRiskAssessmentInfo;
24
+ const DescribeRiskAssessmentResponse = models.DescribeRiskAssessmentResponse;
25
+
26
+
27
+ /**
28
+ * rce client
29
+ * @class
30
+ */
31
+ class RceClient extends AbstractClient {
32
+
33
+ constructor(credential, region, profile) {
34
+ super("rce.tencentcloudapi.com", "2020-11-03", credential, region, profile);
35
+ }
36
+
37
+ /**
38
+ * This API is used to query risk assessment results.
39
+ * @param {DescribeRiskAssessmentRequest} req
40
+ * @param {function(string, DescribeRiskAssessmentResponse):void} cb
41
+ * @public
42
+ */
43
+ DescribeRiskAssessment(req, cb) {
44
+ let resp = new DescribeRiskAssessmentResponse();
45
+ this.request("DescribeRiskAssessment", req, resp, cb);
46
+ }
47
+
48
+
49
+ }
50
+ module.exports = RceClient;
@@ -25283,6 +25283,12 @@ class VerifyDomainRecordRequest extends AbstractModel {
25283
25283
  */
25284
25284
  this.Domain = null;
25285
25285
 
25286
+ /**
25287
+ * <b>The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2024, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.</b>
25288
+ * @type {number || null}
25289
+ */
25290
+ this.SubAppId = null;
25291
+
25286
25292
  /**
25287
25293
  * VerifyType:
25288
25294
  <li>dns: DNS Parse verification; </li>
@@ -25303,6 +25309,7 @@ Default value: dns.
25303
25309
  return;
25304
25310
  }
25305
25311
  this.Domain = 'Domain' in params ? params.Domain : null;
25312
+ this.SubAppId = 'SubAppId' in params ? params.SubAppId : null;
25306
25313
  this.VerifyType = 'VerifyType' in params ? params.VerifyType : null;
25307
25314
 
25308
25315
  }
@@ -34911,6 +34918,18 @@ class CreateDomainVerifyRecordRequest extends AbstractModel {
34911
34918
  constructor(){
34912
34919
  super();
34913
34920
 
34921
+ /**
34922
+ * Need to access the VOD acceleration domain name.
34923
+ * @type {string || null}
34924
+ */
34925
+ this.Domain = null;
34926
+
34927
+ /**
34928
+ * <b>The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2024, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.</b>
34929
+ * @type {number || null}
34930
+ */
34931
+ this.SubAppId = null;
34932
+
34914
34933
  }
34915
34934
 
34916
34935
  /**
@@ -34920,6 +34939,8 @@ class CreateDomainVerifyRecordRequest extends AbstractModel {
34920
34939
  if (!params) {
34921
34940
  return;
34922
34941
  }
34942
+ this.Domain = 'Domain' in params ? params.Domain : null;
34943
+ this.SubAppId = 'SubAppId' in params ? params.SubAppId : null;
34923
34944
 
34924
34945
  }
34925
34946
  }