tencentcloud-sdk-nodejs-intl-en 3.0.1257 → 3.0.1259

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.1257",
3
+ "version": "3.0.1259",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1257";
1
+ const sdkVersion = "3.0.1259";
2
2
  module.exports = sdkVersion
@@ -2223,20 +2223,21 @@ Default value: 4
2223
2223
  this.SecurityLevel = null;
2224
2224
 
2225
2225
  /**
2226
- * Card Types Supported for Authentication: Currently supported types are as follows:
2227
- 1.HK (Default): Hong Kong (China) Identity Card
2228
- 2.ML: Malaysia Identity Card
2229
- 3.IndonesiaIDCard: Indonesia Identity Card
2230
- 4.PhilippinesVoteID: Philippines Voter ID
2231
- 5.PhilippinesDrivingLicense: Philippines Driving License
2232
- 6.PhilippinesTinID: Philippines Tin ID
2233
- 7.PhilippinesSSSID: Philippines SSS ID
2234
- 8.PhilippinesUMID: Philippines UMID
2235
- 9.MLIDPassport: Passports of Hong Kong, Macao, Taiwan Regions (China) and Foreign Countries
2236
- 10.ThailandIDCard: Thailand Identity Card
2237
- 11.MainlandIDCard: Mainland China Identity Card
2238
- 12.SingaporeIDCard: Singapore Identity Card
2239
- 13.HMTPermit: Exit-Entry Permit for Travel to and from Hong Kong, Macao and Taiwan (China)
2226
+ * Specifies the identity document type used for authentication. valid values:.
2227
+
2228
+ HK (default): hong kong (china) identity card.
2229
+ 2. ML: malaysian identity card.
2230
+ Indonesian identity card.
2231
+ 4. PhilippinesVoteID: specifies the voter card in the philippines.
2232
+ 5. PhilippinesDrivingLicense: specifies the driving license in philippines.
2233
+ 6. PhilippinesTinID: specifies the philippines tin id.
2234
+ 7. PhilippinesSSSID: specifies the SSSID in the philippines.
2235
+ 8. philippines UMID: specifies the philippines UMID.
2236
+ 9. MLIDPassport: specifies the passport for hong kong (china), macao (china), and taiwan (china) as well as overseas passports.
2237
+ ThailandIDCard: specifies the thai identity card.
2238
+ Mainland id card.
2239
+ 12. SingaporeIDCard: specifies the Singapore id card.
2240
+ 13. HMTPermit: specifies the hong kong, macau and taiwan travel permit.
2240
2241
  * @type {string || null}
2241
2242
  */
2242
2243
  this.IdCardType = null;
@@ -2266,6 +2267,13 @@ This feature applies only to Hong Kong (China) identity cards, Malaysian identit
2266
2267
  */
2267
2268
  this.DisableCheckOcrWarnings = null;
2268
2269
 
2270
+ /**
2271
+ * Customize which alarm codes to block. If left blank, all alarm codes will be blocked by default.
2272
+ Optional alarm codes are: -9101 (occlusion or incomplete border), -9102 (photocopying), -9103 (screen capture by camera), -9104 (image editing/PS modification), -9107 (glare/reflection), -9108 (blurriness), -9901 (other alarms).
2273
+ * @type {Array.<number> || null}
2274
+ */
2275
+ this.SelectedWarningCodes = null;
2276
+
2269
2277
  /**
2270
2278
  * A passthrough field, which is returned together with the verification result and can contain up to 1,024 bits.
2271
2279
  * @type {string || null}
@@ -2273,7 +2281,8 @@ This feature applies only to Hong Kong (China) identity cards, Malaysian identit
2273
2281
  this.Extra = null;
2274
2282
 
2275
2283
  /**
2276
- * ENHANCED: Enhanced Version, BASIC: Basic Version (Default)
2284
+ * ENHANCED: enhanced.
2285
+ BASIC: basic version (default).
2277
2286
  * @type {string || null}
2278
2287
  */
2279
2288
  this.SdkVersion = null;
@@ -2309,6 +2318,7 @@ The default value is blink. The different action types passed in this parameter
2309
2318
  this.NeedVerifyIdCard = 'NeedVerifyIdCard' in params ? params.NeedVerifyIdCard : null;
2310
2319
  this.DisableChangeOcrResult = 'DisableChangeOcrResult' in params ? params.DisableChangeOcrResult : null;
2311
2320
  this.DisableCheckOcrWarnings = 'DisableCheckOcrWarnings' in params ? params.DisableCheckOcrWarnings : null;
2321
+ this.SelectedWarningCodes = 'SelectedWarningCodes' in params ? params.SelectedWarningCodes : null;
2312
2322
  this.Extra = 'Extra' in params ? params.Extra : null;
2313
2323
  this.SdkVersion = 'SdkVersion' in params ? params.SdkVersion : null;
2314
2324
  this.ActionList = 'ActionList' in params ? params.ActionList : null;
@@ -4389,7 +4399,7 @@ class ApplySdkVerificationTokenResponse extends AbstractModel {
4389
4399
  super();
4390
4400
 
4391
4401
  /**
4392
- * The token used to identify an SDK-based verification process. It is valid for 7,200s and can be used to get the verification result after the process is completed.
4402
+ * A token that identifies an SDK verification process. the validity time is 10 minutes. after the process is complete, the token can be used to retrieve the verification result.
4393
4403
  * @type {string || null}
4394
4404
  */
4395
4405
  this.SdkToken = null;
@@ -88,6 +88,7 @@ module.exports = {
88
88
  postgres: require("./postgres"),
89
89
  privatedns: require("./privatedns"),
90
90
  pts: require("./pts"),
91
+ quota: require("./quota"),
91
92
  rce: require("./rce"),
92
93
  redis: require("./redis"),
93
94
  region: require("./region"),
@@ -19049,6 +19049,21 @@ class ProcessImageRequest extends AbstractModel {
19049
19049
  */
19050
19050
  this.OutputDir = null;
19051
19051
 
19052
+ /**
19053
+ * Output path, which can be a relative or an absolute path.
19054
+ The path must end with `.{format}`. For details, please refer to the [Filename Variable](https://www.tencentcloud.comom/document/product/862/37039?from_cn_redirect=1).
19055
+ **Relative path example:**
19056
+ <Li>`Filename_{Variablename}.{format}`.</li>
19057
+ <Li>`Filename.{format}`.</li>
19058
+
19059
+ **Absolute path example:**
19060
+ <Li>`/Path/Filename_{Variablename}.{format}`.</li>
19061
+
19062
+ If not filled in, default relative path: `{inputName}.{format}`.
19063
+ * @type {string || null}
19064
+ */
19065
+ this.OutputPath = null;
19066
+
19052
19067
  /**
19053
19068
  * Image processing parameter.
19054
19069
  * @type {ImageTaskInput || null}
@@ -19077,6 +19092,7 @@ class ProcessImageRequest extends AbstractModel {
19077
19092
  this.OutputStorage = obj;
19078
19093
  }
19079
19094
  this.OutputDir = 'OutputDir' in params ? params.OutputDir : null;
19095
+ this.OutputPath = 'OutputPath' in params ? params.OutputPath : null;
19080
19096
 
19081
19097
  if (params.ImageTask) {
19082
19098
  let obj = new ImageTaskInput();
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ v20241204: require("./v20241204"),
3
+ };
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ Client: require("./quota_client"),
3
+ Models: require("./models"),
4
+ };
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. 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
+ * CreateAlarm request structure.
21
+ * @class
22
+ */
23
+ class CreateAlarmRequest extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * Alarm rule name. specifies the name of the Alarm rule.
29
+ * @type {string || null}
30
+ */
31
+ this.Name = null;
32
+
33
+ /**
34
+ * Product ID.
35
+ * @type {number || null}
36
+ */
37
+ this.ProductId = null;
38
+
39
+ /**
40
+ * Quota ID.
41
+ * @type {number || null}
42
+ */
43
+ this.QuotaId = null;
44
+
45
+ /**
46
+ * Alert metrics 1: quota usage 2: quota usage rate 3: remaining quota 4: remaining quota rate.
47
+ * @type {number || null}
48
+ */
49
+ this.Metrics = null;
50
+
51
+ /**
52
+ * Specifies the Alarm threshold. value range: 0-100.
53
+ * @type {number || null}
54
+ */
55
+ this.Threshold = null;
56
+
57
+ /**
58
+ * Alarm frequency.
59
+ * @type {number || null}
60
+ */
61
+ this.Frequency = null;
62
+
63
+ /**
64
+ * Member UIN
65
+ * @type {number || null}
66
+ */
67
+ this.MemberUin = null;
68
+
69
+ }
70
+
71
+ /**
72
+ * @private
73
+ */
74
+ deserialize(params) {
75
+ if (!params) {
76
+ return;
77
+ }
78
+ this.Name = 'Name' in params ? params.Name : null;
79
+ this.ProductId = 'ProductId' in params ? params.ProductId : null;
80
+ this.QuotaId = 'QuotaId' in params ? params.QuotaId : null;
81
+ this.Metrics = 'Metrics' in params ? params.Metrics : null;
82
+ this.Threshold = 'Threshold' in params ? params.Threshold : null;
83
+ this.Frequency = 'Frequency' in params ? params.Frequency : null;
84
+ this.MemberUin = 'MemberUin' in params ? params.MemberUin : null;
85
+
86
+ }
87
+ }
88
+
89
+ /**
90
+ * CreateAlarm response structure.
91
+ * @class
92
+ */
93
+ class CreateAlarmResponse extends AbstractModel {
94
+ constructor(){
95
+ super();
96
+
97
+ /**
98
+ * 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.
99
+ * @type {string || null}
100
+ */
101
+ this.RequestId = null;
102
+
103
+ }
104
+
105
+ /**
106
+ * @private
107
+ */
108
+ deserialize(params) {
109
+ if (!params) {
110
+ return;
111
+ }
112
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
113
+
114
+ }
115
+ }
116
+
117
+ module.exports = {
118
+ CreateAlarmRequest: CreateAlarmRequest,
119
+ CreateAlarmResponse: CreateAlarmResponse,
120
+
121
+ }
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. 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 CreateAlarmRequest = models.CreateAlarmRequest;
20
+ const CreateAlarmResponse = models.CreateAlarmResponse;
21
+
22
+
23
+ /**
24
+ * quota client
25
+ * @class
26
+ */
27
+ class QuotaClient extends AbstractClient {
28
+
29
+ constructor(credential, region, profile) {
30
+ super("quota.intl.tencentcloudapi.com", "2024-12-04", credential, region, profile);
31
+ }
32
+
33
+ /**
34
+ * Add alarm rules
35
+ * @param {CreateAlarmRequest} req
36
+ * @param {function(string, CreateAlarmResponse):void} cb
37
+ * @public
38
+ */
39
+ CreateAlarm(req, cb) {
40
+ let resp = new CreateAlarmResponse();
41
+ this.request("CreateAlarm", req, resp, cb);
42
+ }
43
+
44
+
45
+ }
46
+ module.exports = QuotaClient;
@@ -2586,64 +2586,55 @@ class ClusterInfo extends AbstractModel {
2586
2586
  this.ApiAccessPort = null;
2587
2587
 
2588
2588
  /**
2589
- * If `PasswordStatus` is `unmodifiable`, the old password has not expired, and this field will display its expiration time; otherwise, this field will be empty
2590
- Note: this field may return null, indicating that no valid values can be obtained.
2589
+ * If the value of PasswordStatus is unmodifiable, it indicates that the old password has not expired. This field will display the expiration time of the old password; otherwise, the value is null.
2591
2590
  * @type {string || null}
2592
2591
  */
2593
2592
  this.OldPasswordExpireTime = null;
2594
2593
 
2595
2594
  /**
2596
- * TcaplusDB SDK connection parameter for accessing IPv6 addresses
2597
- Note: this field may return null, indicating that no valid values can be obtained.
2595
+ * TencentDB for TcaplusDB (TcaplusDB) SDK connection parameters, which are used to access the IPv6 address.
2598
2596
  * @type {string || null}
2599
2597
  */
2600
2598
  this.ApiAccessIpv6 = null;
2601
2599
 
2602
2600
  /**
2603
- * Cluster type. Valid values: `0` and `1` (shared cluster), `2` (dedicated cluster).
2604
- Note: This field may return null, indicating that no valid values can be obtained.
2601
+ * Cluster type. 0,1: shared cluster; 2: independent cluster.
2605
2602
  * @type {number || null}
2606
2603
  */
2607
2604
  this.ClusterType = null;
2608
2605
 
2609
2606
  /**
2610
- * Cluster status. Valid values: `0` (Running), `1` (Isolated. This status is caused by overdue payments), `2` (To be repossessed. This status is caused when the cluster is actively deleted.),·`3` (To be released. The resources occupied by the table can be released in this status.), `4` (Modifying).
2611
- Note: This field may return null, indicating that no valid values can be obtained.
2607
+ * Cluster status. 0: indicates normal operation; 1: indicates frozen isolation (usually due to arrears); 2: indicates to be recycled (usually when the user proactively triggers deletion); 3: pending release (indicating that resources occupied by this table can be released); 4: changing.
2612
2608
  * @type {number || null}
2613
2609
  */
2614
2610
  this.ClusterStatus = null;
2615
2611
 
2616
2612
  /**
2617
- * Read CU
2618
- Note: this field may return `null`, indicating that no valid values can be obtained.
2613
+ * Read CU.
2619
2614
  * @type {number || null}
2620
2615
  */
2621
2616
  this.ReadCapacityUnit = null;
2622
2617
 
2623
2618
  /**
2624
- * Write CU
2625
- Note: this field may return `null`, indicating that no valid values can be obtained.
2619
+ * Write CU.
2626
2620
  * @type {number || null}
2627
2621
  */
2628
2622
  this.WriteCapacityUnit = null;
2629
2623
 
2630
2624
  /**
2631
- * Disk capacity
2632
- Note: this field may return `null`, indicating that no valid values can be obtained.
2625
+ * Disk capacity.
2633
2626
  * @type {number || null}
2634
2627
  */
2635
2628
  this.DiskVolume = null;
2636
2629
 
2637
2630
  /**
2638
- * Information of the machine at the storage layer (tcapsvr) in a dedicated cluster
2639
- Note: this field may return `null`, indicating that no valid values can be obtained.
2631
+ * Information about the dedicated server.
2640
2632
  * @type {Array.<ServerDetailInfo> || null}
2641
2633
  */
2642
2634
  this.ServerList = null;
2643
2635
 
2644
2636
  /**
2645
- * Information of the machine at the access layer (tcaproxy) in a dedicated cluster
2646
- Note: this field may return `null`, indicating that no valid values can be obtained.
2637
+ * Information about the dedicated proxy server.
2647
2638
  * @type {Array.<ProxyDetailInfo> || null}
2648
2639
  */
2649
2640
  this.ProxyList = null;
@@ -2655,54 +2646,59 @@ Note: this field may return `null`, indicating that no valid values can be obtai
2655
2646
  this.Censorship = null;
2656
2647
 
2657
2648
  /**
2658
- * Approver UIN list
2659
- Note: `null` may be returned for this field, indicating that no valid values can be obtained.
2649
+ * Approver UIN list.
2660
2650
  * @type {Array.<string> || null}
2661
2651
  */
2662
2652
  this.DbaUins = null;
2663
2653
 
2664
2654
  /**
2665
- * Whether data subscription is enabled
2666
- Note: this field may return `null`, indicating that no valid values can be obtained.
2655
+ * Whether data subscription is enabled.
2667
2656
  * @type {number || null}
2668
2657
  */
2669
2658
  this.DataFlowStatus = null;
2670
2659
 
2671
2660
  /**
2672
- * CKafka information when data subscription is enabled
2673
- Note: this field may return `null`, indicating that no valid values can be obtained.
2661
+ * Kafka information for data subscription.
2674
2662
  * @type {KafkaInfo || null}
2675
2663
  */
2676
2664
  this.KafkaInfo = null;
2677
2665
 
2678
2666
  /**
2679
- * The number of days after which the cluster Txh backup file will expire and be deleted.
2680
- Note: This field may return `null`, indicating that no valid values can be obtained.
2667
+ * Retention period for the Txh backup file of the cluster before expiration and deletion.
2681
2668
  * @type {number || null}
2682
2669
  */
2683
2670
  this.TxhBackupExpireDay = null;
2684
2671
 
2685
2672
  /**
2686
- * The number of days after which the cluster Ulog backup file will expire and be deleted.
2687
- Note: This field may return `null`, indicating that no valid values can be obtained.
2673
+ * Retention period for the Ulog backup file of the cluster before expiration and deletion.
2688
2674
  * @type {number || null}
2689
2675
  */
2690
2676
  this.UlogBackupExpireDay = null;
2691
2677
 
2692
2678
  /**
2693
- * Whether the expiration policy of cluster Ulog backup file is read-only. `0`: Yes; `1`: No.
2694
- Note: This field may return `null`, indicating that no valid values can be obtained.
2679
+ * Whether the expiration policy for the Ulog backup file of the cluster is read-only. 0: UlogBackupExpire is read-only and cannot be modified; 1: UlogBackupExpire can be modified.
2695
2680
  * @type {number || null}
2696
2681
  */
2697
2682
  this.IsReadOnlyUlogBackupExpireDay = null;
2698
2683
 
2699
2684
  /**
2700
- * restproxy Status
2701
- Note: This field may return null, indicating that no valid values can be obtained.
2685
+ * restproxy status.
2702
2686
  * @type {number || null}
2703
2687
  */
2704
2688
  this.RestProxyStatus = null;
2705
2689
 
2690
+ /**
2691
+ * Total number of shards in the cluster.
2692
+ * @type {number || null}
2693
+ */
2694
+ this.ShardTotalNum = null;
2695
+
2696
+ /**
2697
+ * Total number of used shards.
2698
+ * @type {number || null}
2699
+ */
2700
+ this.ShardUsedNum = null;
2701
+
2706
2702
  }
2707
2703
 
2708
2704
  /**
@@ -2763,6 +2759,8 @@ Note: This field may return null, indicating that no valid values can be obtaine
2763
2759
  this.UlogBackupExpireDay = 'UlogBackupExpireDay' in params ? params.UlogBackupExpireDay : null;
2764
2760
  this.IsReadOnlyUlogBackupExpireDay = 'IsReadOnlyUlogBackupExpireDay' in params ? params.IsReadOnlyUlogBackupExpireDay : null;
2765
2761
  this.RestProxyStatus = 'RestProxyStatus' in params ? params.RestProxyStatus : null;
2762
+ this.ShardTotalNum = 'ShardTotalNum' in params ? params.ShardTotalNum : null;
2763
+ this.ShardUsedNum = 'ShardUsedNum' in params ? params.ShardUsedNum : null;
2766
2764
 
2767
2765
  }
2768
2766
  }
@@ -4775,8 +4773,7 @@ class ServerDetailInfo extends AbstractModel {
4775
4773
  this.WriteNum = null;
4776
4774
 
4777
4775
  /**
4778
- * Version
4779
- Note: This field may return null, indicating that no valid values can be obtained.
4776
+ * Version.
4780
4777
  * @type {string || null}
4781
4778
  */
4782
4779
  this.Version = null;
@@ -6115,13 +6112,13 @@ class KafkaInfo extends AbstractModel {
6115
6112
  super();
6116
6113
 
6117
6114
  /**
6118
- * CKafka address
6115
+ * Kafka address
6119
6116
  * @type {string || null}
6120
6117
  */
6121
6118
  this.Address = null;
6122
6119
 
6123
6120
  /**
6124
- * CKafka topic
6121
+ * Kafka topic
6125
6122
  * @type {string || null}
6126
6123
  */
6127
6124
  this.Topic = null;
@@ -7538,8 +7535,7 @@ class ProxyDetailInfo extends AbstractModel {
7538
7535
  this.SlowProcessSpeed = null;
7539
7536
 
7540
7537
  /**
7541
- * Version
7542
- Note: This field may return null, indicating that no valid values can be obtained.
7538
+ * Version.
7543
7539
  * @type {string || null}
7544
7540
  */
7545
7541
  this.Version = null;