tencentcloud-sdk-nodejs-intl-en 3.0.1290 → 3.0.1291

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.
@@ -227,7 +227,7 @@ class CreateKeyRequest extends AbstractModel {
227
227
  this.Description = null;
228
228
 
229
229
  /**
230
- * Defines the purpose of the key. The valid values are as follows: `ENCRYPT_DECRYPT` (default): creates a symmetric encryption/decryption key; `ASYMMETRIC_DECRYPT_RSA_2048`: creates an asymmetric encryption/decryption 2048-bit RSA key; `ASYMMETRIC_DECRYPT_SM2`: creates an asymmetric encryption/decryption SM2 key; `ASYMMETRIC_SIGN_VERIFY_SM2`: creates an asymmetric SM2 key for signature verification; `ASYMMETRIC_SIGN_VERIFY_ECC`: creates an asymmetric 2048-bit RSA key for signature verification; `ASYMMETRIC_SIGN_VERIFY_ECDSA384`: creates an asymmetric ECDSA384 key for signature verification. You can get a full list of supported key purposes and algorithms using the ListAlgorithms API.
230
+ * Specifies the key purpose, defaults to "ENCRYPT_DECRYPT" indicating the creation of a symmetric encryption/decryption key. other supported purposes include "ASYMMETRIC_DECRYPT_RSA_2048" for RSA2048 ASYMMETRIC keys used to ENCRYPT and DECRYPT, "ASYMMETRIC_DECRYPT_SM2" for SM2 ASYMMETRIC keys used to ENCRYPT and DECRYPT, "ASYMMETRIC_SIGN_VERIFY_SM2" for SM2 ASYMMETRIC keys used for signature verification, "ASYMMETRIC_SIGN_VERIFY_ECC" for ECC ASYMMETRIC keys used for signature verification, "ASYMMETRIC_SIGN_VERIFY_RSA_2048" for RSA_2048 ASYMMETRIC keys used for signature verification, and "ASYMMETRIC_SIGN_VERIFY_ECDSA384" for ECDSA384 ASYMMETRIC keys used for signature verification. the complete list of key purposes and algorithm support can be obtained through the ListAlgorithms api.
231
231
  * @type {string || null}
232
232
  */
233
233
  this.KeyUsage = null;
@@ -1164,6 +1164,12 @@ class GenerateDataKeyRequest extends AbstractModel {
1164
1164
  */
1165
1165
  this.HsmClusterId = null;
1166
1166
 
1167
+ /**
1168
+ * Tag list. valid at that time when parameter IsHostedByKms=1 and the data key is hosted by kms.
1169
+ * @type {Array.<Tag> || null}
1170
+ */
1171
+ this.Tags = null;
1172
+
1167
1173
  }
1168
1174
 
1169
1175
  /**
@@ -1184,6 +1190,15 @@ class GenerateDataKeyRequest extends AbstractModel {
1184
1190
  this.Description = 'Description' in params ? params.Description : null;
1185
1191
  this.HsmClusterId = 'HsmClusterId' in params ? params.HsmClusterId : null;
1186
1192
 
1193
+ if (params.Tags) {
1194
+ this.Tags = new Array();
1195
+ for (let z in params.Tags) {
1196
+ let obj = new Tag();
1197
+ obj.deserialize(params.Tags[z]);
1198
+ this.Tags.push(obj);
1199
+ }
1200
+ }
1201
+
1187
1202
  }
1188
1203
  }
1189
1204
 
@@ -2431,6 +2446,12 @@ class DataKeyMetadata extends AbstractModel {
2431
2446
  */
2432
2447
  this.KeyId = null;
2433
2448
 
2449
+ /**
2450
+ * CMK name.
2451
+ * @type {string || null}
2452
+ */
2453
+ this.KeyName = null;
2454
+
2434
2455
  /**
2435
2456
  * Key name as a more recognizable and understandable data key.
2436
2457
  * @type {string || null}
@@ -2550,6 +2571,7 @@ class DataKeyMetadata extends AbstractModel {
2550
2571
  }
2551
2572
  this.DataKeyId = 'DataKeyId' in params ? params.DataKeyId : null;
2552
2573
  this.KeyId = 'KeyId' in params ? params.KeyId : null;
2574
+ this.KeyName = 'KeyName' in params ? params.KeyName : null;
2553
2575
  this.DataKeyName = 'DataKeyName' in params ? params.DataKeyName : null;
2554
2576
  this.NumberOfBytes = 'NumberOfBytes' in params ? params.NumberOfBytes : null;
2555
2577
  this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
@@ -2701,6 +2723,12 @@ When importing plaintext data key, KeyId cannot be empty. the data key is encryp
2701
2723
  */
2702
2724
  this.HsmClusterId = null;
2703
2725
 
2726
+ /**
2727
+ * Tag list
2728
+ * @type {Array.<Tag> || null}
2729
+ */
2730
+ this.Tags = null;
2731
+
2704
2732
  }
2705
2733
 
2706
2734
  /**
@@ -2717,6 +2745,15 @@ When importing plaintext data key, KeyId cannot be empty. the data key is encryp
2717
2745
  this.KeyId = 'KeyId' in params ? params.KeyId : null;
2718
2746
  this.HsmClusterId = 'HsmClusterId' in params ? params.HsmClusterId : null;
2719
2747
 
2748
+ if (params.Tags) {
2749
+ this.Tags = new Array();
2750
+ for (let z in params.Tags) {
2751
+ let obj = new Tag();
2752
+ obj.deserialize(params.Tags[z]);
2753
+ this.Tags.push(obj);
2754
+ }
2755
+ }
2756
+
2720
2757
  }
2721
2758
  }
2722
2759
 
@@ -3069,6 +3106,18 @@ If `EncryptionPublicKey` is specified, this field will return the Base64-encoded
3069
3106
  */
3070
3107
  this.DataKeyId = null;
3071
3108
 
3109
+ /**
3110
+ * Response code of the Tag operation. 0: success; 1: internal error; 2: business processing error.
3111
+ * @type {number || null}
3112
+ */
3113
+ this.TagCode = null;
3114
+
3115
+ /**
3116
+ * Response of the Tag operation.
3117
+ * @type {string || null}
3118
+ */
3119
+ this.TagMsg = null;
3120
+
3072
3121
  /**
3073
3122
  * 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.
3074
3123
  * @type {string || null}
@@ -3088,6 +3137,8 @@ If `EncryptionPublicKey` is specified, this field will return the Base64-encoded
3088
3137
  this.Plaintext = 'Plaintext' in params ? params.Plaintext : null;
3089
3138
  this.CiphertextBlob = 'CiphertextBlob' in params ? params.CiphertextBlob : null;
3090
3139
  this.DataKeyId = 'DataKeyId' in params ? params.DataKeyId : null;
3140
+ this.TagCode = 'TagCode' in params ? params.TagCode : null;
3141
+ this.TagMsg = 'TagMsg' in params ? params.TagMsg : null;
3091
3142
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
3092
3143
 
3093
3144
  }
@@ -3702,6 +3753,18 @@ class ImportDataKeyResponse extends AbstractModel {
3702
3753
  */
3703
3754
  this.DataKeyId = null;
3704
3755
 
3756
+ /**
3757
+ * Response code of the Tag operation. 0: success; 1: internal error; 2: business processing error.
3758
+ * @type {number || null}
3759
+ */
3760
+ this.TagCode = null;
3761
+
3762
+ /**
3763
+ * Response of the Tag operation.
3764
+ * @type {string || null}
3765
+ */
3766
+ this.TagMsg = null;
3767
+
3705
3768
  /**
3706
3769
  * 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.
3707
3770
  * @type {string || null}
@@ -3719,6 +3782,8 @@ class ImportDataKeyResponse extends AbstractModel {
3719
3782
  }
3720
3783
  this.KeyId = 'KeyId' in params ? params.KeyId : null;
3721
3784
  this.DataKeyId = 'DataKeyId' in params ? params.DataKeyId : null;
3785
+ this.TagCode = 'TagCode' in params ? params.TagCode : null;
3786
+ this.TagMsg = 'TagMsg' in params ? params.TagMsg : null;
3722
3787
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
3723
3788
 
3724
3789
  }
@@ -4186,6 +4251,12 @@ class ListDataKeyDetailRequest extends AbstractModel {
4186
4251
  */
4187
4252
  this.DataKeyLen = null;
4188
4253
 
4254
+ /**
4255
+ * Tag filtering conditions.
4256
+ * @type {Array.<TagFilter> || null}
4257
+ */
4258
+ this.TagFilters = null;
4259
+
4189
4260
  }
4190
4261
 
4191
4262
  /**
@@ -4206,6 +4277,15 @@ class ListDataKeyDetailRequest extends AbstractModel {
4206
4277
  this.KeyId = 'KeyId' in params ? params.KeyId : null;
4207
4278
  this.DataKeyLen = 'DataKeyLen' in params ? params.DataKeyLen : null;
4208
4279
 
4280
+ if (params.TagFilters) {
4281
+ this.TagFilters = new Array();
4282
+ for (let z in params.TagFilters) {
4283
+ let obj = new TagFilter();
4284
+ obj.deserialize(params.TagFilters[z]);
4285
+ this.TagFilters.push(obj);
4286
+ }
4287
+ }
4288
+
4209
4289
  }
4210
4290
  }
4211
4291
 
@@ -5951,7 +6031,7 @@ class DescribeKeyResponse extends AbstractModel {
5951
6031
  super();
5952
6032
 
5953
6033
  /**
5954
- * Specifies the attribute information of the key.
6034
+ * Specifies the key attribute information.
5955
6035
  * @type {KeyMetadata || null}
5956
6036
  */
5957
6037
  this.KeyMetadata = null;
@@ -53,6 +53,7 @@ const DescribeStreamLiveRegionsRequest = models.DescribeStreamLiveRegionsRequest
53
53
  const DescribeStreamLiveChannelAlertsRequest = models.DescribeStreamLiveChannelAlertsRequest;
54
54
  const AudioSelectorInfo = models.AudioSelectorInfo;
55
55
  const LogInfo = models.LogInfo;
56
+ const WebVTTFontStyle = models.WebVTTFontStyle;
56
57
  const DescribeStreamLiveWatermarkRequest = models.DescribeStreamLiveWatermarkRequest;
57
58
  const CaptionSelector = models.CaptionSelector;
58
59
  const DrmSettingsInfo = models.DrmSettingsInfo;
@@ -2069,6 +2069,97 @@ It contains the value of `StreamStart` which refers to the push information.
2069
2069
  }
2070
2070
  }
2071
2071
 
2072
+ /**
2073
+ * WebVTT format configuration.
2074
+ * @class
2075
+ */
2076
+ class WebVTTFontStyle extends AbstractModel {
2077
+ constructor(){
2078
+ super();
2079
+
2080
+ /**
2081
+ * Text color, RGB hexadecimal representation, 6 hexadecimal characters (no # needed).
2082
+ * @type {string || null}
2083
+ */
2084
+ this.TextColor = null;
2085
+
2086
+ /**
2087
+ * Background color, RGB hexadecimal representation, 6 hexadecimal characters (no # needed).
2088
+ * @type {string || null}
2089
+ */
2090
+ this.BackgroundColor = null;
2091
+
2092
+ /**
2093
+ * Background opacity parameter, a number from 0 to 100, with 0 being the default for full transparency.
2094
+ * @type {number || null}
2095
+ */
2096
+ this.BackgroundAlpha = null;
2097
+
2098
+ /**
2099
+ * Font size, in units of vh (1% of height), default value 0 means automatic.
2100
+ * @type {number || null}
2101
+ */
2102
+ this.FontSize = null;
2103
+
2104
+ /**
2105
+ * The position of the text box, default value AUTO, can be empty; represents the percentage of video height, supports integers from 0 to 100.
2106
+ * @type {string || null}
2107
+ */
2108
+ this.Line = null;
2109
+
2110
+ /**
2111
+ * The alignment of the text box on the Line. Optional values: START, CENTER, END. Which can be empty.
2112
+ * @type {string || null}
2113
+ */
2114
+ this.LineAlignment = null;
2115
+
2116
+ /**
2117
+ * The text box is positioned in another direction as a percentage of the video's width. It defaults to AUTO and can be empty.
2118
+ * @type {string || null}
2119
+ */
2120
+ this.Position = null;
2121
+
2122
+ /**
2123
+ * The alignment of the text box on the Position. Optional values are LINE_LEFT, LINE_RIGHT, CENTER, and AUTO. The default value is AUTO, and it can be empty.
2124
+ * @type {string || null}
2125
+ */
2126
+ this.PositionAlignment = null;
2127
+
2128
+ /**
2129
+ * Text box size, a percentage of video width/height, with values (0, 100), default AUTO, can be empty.
2130
+ * @type {string || null}
2131
+ */
2132
+ this.CueSize = null;
2133
+
2134
+ /**
2135
+ * Text alignment, with possible values START, CENTER, END, LEFT, and RIGHT; the default value is CENTER, which can be empty.
2136
+ * @type {string || null}
2137
+ */
2138
+ this.TextAlignment = null;
2139
+
2140
+ }
2141
+
2142
+ /**
2143
+ * @private
2144
+ */
2145
+ deserialize(params) {
2146
+ if (!params) {
2147
+ return;
2148
+ }
2149
+ this.TextColor = 'TextColor' in params ? params.TextColor : null;
2150
+ this.BackgroundColor = 'BackgroundColor' in params ? params.BackgroundColor : null;
2151
+ this.BackgroundAlpha = 'BackgroundAlpha' in params ? params.BackgroundAlpha : null;
2152
+ this.FontSize = 'FontSize' in params ? params.FontSize : null;
2153
+ this.Line = 'Line' in params ? params.Line : null;
2154
+ this.LineAlignment = 'LineAlignment' in params ? params.LineAlignment : null;
2155
+ this.Position = 'Position' in params ? params.Position : null;
2156
+ this.PositionAlignment = 'PositionAlignment' in params ? params.PositionAlignment : null;
2157
+ this.CueSize = 'CueSize' in params ? params.CueSize : null;
2158
+ this.TextAlignment = 'TextAlignment' in params ? params.TextAlignment : null;
2159
+
2160
+ }
2161
+ }
2162
+
2072
2163
  /**
2073
2164
  * DescribeStreamLiveWatermark request structure.
2074
2165
  * @class
@@ -4988,13 +5079,13 @@ class SubtitleConf extends AbstractModel {
4988
5079
  this.CaptionSource = null;
4989
5080
 
4990
5081
  /**
4991
- * Optional values: 1 Source, 2 Source+Target, 3 Target (original language only, original language + translation language, translation language). Required when CaptionSource selects `ANALYSIS `.
5082
+ * Optional values: 1 Source, 2 Source+Target, 3 Target (original language only, original language + translation language, translation language). Required when CaptionSource selects `ANALYSIS `. When outputting as WebVTT, a single template can only output one language.
4992
5083
  * @type {number || null}
4993
5084
  */
4994
5085
  this.ContentType = null;
4995
5086
 
4996
5087
  /**
4997
- * Output mode: 1 Burn in, 2 Embedded. Support `2` when CaptionSource selects `INPUT`. Support `1` when CaptionSource selects `ANALYSIS `.
5088
+ * Output mode: 1 Burn in, 2 Embedded, 3 WebVTT. Support `2` when CaptionSource selects `INPUT`. Support `1` and `3` when CaptionSource selects `ANALYSIS `.
4998
5089
  * @type {number || null}
4999
5090
  */
5000
5091
  this.TargetType = null;
@@ -5020,7 +5111,7 @@ Optional values: Chinese, English, Japanese, Korean. Required when CaptionSource
5020
5111
  this.FontStyle = null;
5021
5112
 
5022
5113
  /**
5023
- * There are two modes: STEADY and DYNAMIC, corresponding to steady state and unstable state respectively; the default is STEADY. Required when CaptionSource selects `ANALYSIS `.
5114
+ * There are two modes: STEADY and DYNAMIC, corresponding to steady state and unstable state respectively; the default is STEADY. Required when CaptionSource selects `ANALYSIS `. When the output is WebVTT, only STEADY can be selected.
5024
5115
  * @type {string || null}
5025
5116
  */
5026
5117
  this.StateEffectMode = null;
@@ -5031,6 +5122,30 @@ Optional values: Chinese, English, Japanese, Korean. Required when CaptionSource
5031
5122
  */
5032
5123
  this.SteadyStateDelayedTime = null;
5033
5124
 
5125
+ /**
5126
+ * Audio selector name, required for generating WebVTT subtitles using speech recognition, can be empty.
5127
+ * @type {string || null}
5128
+ */
5129
+ this.AudioSelectorName = null;
5130
+
5131
+ /**
5132
+ * Format configuration for speech recognition output on WebVTT.
5133
+ * @type {WebVTTFontStyle || null}
5134
+ */
5135
+ this.WebVTTFontStyle = null;
5136
+
5137
+ /**
5138
+ * Language code, length 2-20. ISO 639-2 three-digit code is recommend.
5139
+ * @type {string || null}
5140
+ */
5141
+ this.LanguageCode = null;
5142
+
5143
+ /**
5144
+ * Language description, less than 100 characters in length.
5145
+ * @type {string || null}
5146
+ */
5147
+ this.LanguageDescription = null;
5148
+
5034
5149
  }
5035
5150
 
5036
5151
  /**
@@ -5055,6 +5170,15 @@ Optional values: Chinese, English, Japanese, Korean. Required when CaptionSource
5055
5170
  }
5056
5171
  this.StateEffectMode = 'StateEffectMode' in params ? params.StateEffectMode : null;
5057
5172
  this.SteadyStateDelayedTime = 'SteadyStateDelayedTime' in params ? params.SteadyStateDelayedTime : null;
5173
+ this.AudioSelectorName = 'AudioSelectorName' in params ? params.AudioSelectorName : null;
5174
+
5175
+ if (params.WebVTTFontStyle) {
5176
+ let obj = new WebVTTFontStyle();
5177
+ obj.deserialize(params.WebVTTFontStyle)
5178
+ this.WebVTTFontStyle = obj;
5179
+ }
5180
+ this.LanguageCode = 'LanguageCode' in params ? params.LanguageCode : null;
5181
+ this.LanguageDescription = 'LanguageDescription' in params ? params.LanguageDescription : null;
5058
5182
 
5059
5183
  }
5060
5184
  }
@@ -8788,6 +8912,7 @@ module.exports = {
8788
8912
  DescribeStreamLiveChannelAlertsRequest: DescribeStreamLiveChannelAlertsRequest,
8789
8913
  AudioSelectorInfo: AudioSelectorInfo,
8790
8914
  LogInfo: LogInfo,
8915
+ WebVTTFontStyle: WebVTTFontStyle,
8791
8916
  DescribeStreamLiveWatermarkRequest: DescribeStreamLiveWatermarkRequest,
8792
8917
  CaptionSelector: CaptionSelector,
8793
8918
  DrmSettingsInfo: DrmSettingsInfo,
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20210331: require("./v20210331"), v20181225: require("./v20181225"),
2
+ v20181225: require("./v20181225"), v20210331: require("./v20210331"),
3
3
  };
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ v20210712: require("./v20210712"),
3
+ };
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ Client: require("./smh_client"),
3
+ Models: require("./models"),
4
+ };