tencentcloud-sdk-nodejs-intl-en 3.0.1349 → 3.0.1350

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.
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20181225: require("./v20181225"), v20210331: require("./v20210331"),
2
+ v20210331: require("./v20210331"), v20181225: require("./v20181225"),
3
3
  };
@@ -6196,7 +6196,7 @@ class AddOrganizationNodeRequest extends AbstractModel {
6196
6196
  super();
6197
6197
 
6198
6198
  /**
6199
- * Parent node ID, which can be obtained through [DescribeOrganizationNodes](https://intl.cloud.tencent.com/document/product/850/82926?from_cn_redirect=1).
6199
+ * Parent node ID, which can be obtained through [DescribeOrganizationNodes](https://intl.cloud.tencent.com/document/product/850/82926?from_cn_redirect=1)
6200
6200
  * @type {number || null}
6201
6201
  */
6202
6202
  this.ParentNodeId = null;
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- v20190711: require("./v20190711"), v20210111: require("./v20210111"),
2
+ v20210111: require("./v20210111"), v20190711: require("./v20190711"),
3
3
  };
@@ -994,7 +994,7 @@ class SendSmsResponse extends AbstractModel {
994
994
  super();
995
995
 
996
996
  /**
997
- * SMS delivery status.
997
+ * SMS send status.
998
998
  * @type {Array.<SendStatus> || null}
999
999
  */
1000
1000
  this.SendStatusSet = null;
@@ -1435,6 +1435,76 @@ class DescribeTemplateListStatus extends AbstractModel {
1435
1435
  }
1436
1436
  }
1437
1437
 
1438
+ /**
1439
+ * SMS send status
1440
+ * @class
1441
+ */
1442
+ class SendMultiStatus extends AbstractModel {
1443
+ constructor(){
1444
+ super();
1445
+
1446
+ /**
1447
+ * Delivery serial number.
1448
+ * @type {string || null}
1449
+ */
1450
+ this.SerialNo = null;
1451
+
1452
+ /**
1453
+ * Mobile number in the E.164 standard (+[country/region code][mobile number]), such as +60198890000, which has a + sign followed by 60 (country/region code) and then by 198890000 (mobile number).
1454
+ * @type {string || null}
1455
+ */
1456
+ this.PhoneNumber = null;
1457
+
1458
+ /**
1459
+ * Number of billable SMS messages. For billing rules, see Billing Policy.
1460
+ * @type {number || null}
1461
+ */
1462
+ this.Fee = null;
1463
+
1464
+ /**
1465
+ * User session content.
1466
+ * @type {string || null}
1467
+ */
1468
+ this.SessionContext = null;
1469
+
1470
+ /**
1471
+ * SMS request error code. For specific meanings, see [Error Codes](https://intl.cloud.tencent.com/zh/document/product/382/40536#6.-error-code). `Ok` will be returned for successful delivery.
1472
+ * @type {string || null}
1473
+ */
1474
+ this.Code = null;
1475
+
1476
+ /**
1477
+ * SMS request error message.
1478
+ * @type {string || null}
1479
+ */
1480
+ this.Message = null;
1481
+
1482
+ /**
1483
+ * Country/Region code, such as US and MY. For unrecognized country/region codes, `DEF` is returned by default. For the specific list of supported values, please see [Global SMS Price Overview](https://intl.cloud.tencent.com/document/product/382/18051?from_cn_redirect=1).
1484
+ * @type {string || null}
1485
+ */
1486
+ this.IsoCode = null;
1487
+
1488
+ }
1489
+
1490
+ /**
1491
+ * @private
1492
+ */
1493
+ deserialize(params) {
1494
+ if (!params) {
1495
+ return;
1496
+ }
1497
+ this.SerialNo = 'SerialNo' in params ? params.SerialNo : null;
1498
+ this.PhoneNumber = 'PhoneNumber' in params ? params.PhoneNumber : null;
1499
+ this.Fee = 'Fee' in params ? params.Fee : null;
1500
+ this.SessionContext = 'SessionContext' in params ? params.SessionContext : null;
1501
+ this.Code = 'Code' in params ? params.Code : null;
1502
+ this.Message = 'Message' in params ? params.Message : null;
1503
+ this.IsoCode = 'IsoCode' in params ? params.IsoCode : null;
1504
+
1505
+ }
1506
+ }
1507
+
1438
1508
  /**
1439
1509
  * AddSmsTemplate response structure.
1440
1510
  * @class
@@ -1596,6 +1666,49 @@ class DescribeSmsSignListResponse extends AbstractModel {
1596
1666
  }
1597
1667
  }
1598
1668
 
1669
+ /**
1670
+ * SendMultiGlobalSms response structure.
1671
+ * @class
1672
+ */
1673
+ class SendMultiGlobalSmsResponse extends AbstractModel {
1674
+ constructor(){
1675
+ super();
1676
+
1677
+ /**
1678
+ * Multi SMS send status.
1679
+ * @type {Array.<SendMultiStatus> || null}
1680
+ */
1681
+ this.SendMultiStatusSet = null;
1682
+
1683
+ /**
1684
+ * 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.
1685
+ * @type {string || null}
1686
+ */
1687
+ this.RequestId = null;
1688
+
1689
+ }
1690
+
1691
+ /**
1692
+ * @private
1693
+ */
1694
+ deserialize(params) {
1695
+ if (!params) {
1696
+ return;
1697
+ }
1698
+
1699
+ if (params.SendMultiStatusSet) {
1700
+ this.SendMultiStatusSet = new Array();
1701
+ for (let z in params.SendMultiStatusSet) {
1702
+ let obj = new SendMultiStatus();
1703
+ obj.deserialize(params.SendMultiStatusSet[z]);
1704
+ this.SendMultiStatusSet.push(obj);
1705
+ }
1706
+ }
1707
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1708
+
1709
+ }
1710
+ }
1711
+
1599
1712
  /**
1600
1713
  * DescribeSmsTemplateList request structure.
1601
1714
  * @class
@@ -1935,54 +2048,45 @@ class PullSmsReplyStatusByPhoneNumberResponse extends AbstractModel {
1935
2048
  }
1936
2049
 
1937
2050
  /**
1938
- * SMS delivery status
2051
+ * SMS information for each phone number in a batch delivery.
1939
2052
  * @class
1940
2053
  */
1941
- class SendStatus extends AbstractModel {
2054
+ class MultiSmsInfo extends AbstractModel {
1942
2055
  constructor(){
1943
2056
  super();
1944
2057
 
1945
2058
  /**
1946
- * Delivery serial number.
1947
- * @type {string || null}
1948
- */
1949
- this.SerialNo = null;
1950
-
1951
- /**
1952
- * Mobile number in the E.164 standard (+[country/region code][mobile number]), such as +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number).
2059
+ * Target mobile number in the E.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all global mobile numbers). For example, +60198890000, which has a + sign followed by 60 (country/region code) and then by 198890000 (mobile number).
1953
2060
  * @type {string || null}
1954
2061
  */
1955
2062
  this.PhoneNumber = null;
1956
2063
 
1957
2064
  /**
1958
- * Number of billable SMS messages. For billing rules, see Billing Policy.
1959
- * @type {number || null}
1960
- */
1961
- this.Fee = null;
1962
-
1963
- /**
1964
- * User session content.
2065
+ * Template ID, which can be viewed on the **Body Templates** page in [Global SMS](https://console.cloud.tencent.com/smsv2/isms-template). You must enter the ID of an approved template.
1965
2066
  * @type {string || null}
1966
2067
  */
1967
- this.SessionContext = null;
2068
+ this.TemplateId = null;
1968
2069
 
1969
2070
  /**
1970
- * SMS request error code. For specific meanings, see [Error Codes](https://intl.cloud.tencent.com/zh/document/product/382/40536#6.-error-code). `Ok` will be returned for successful delivery.
1971
- * @type {string || null}
2071
+ * Template parameter. If there is no template parameter, leave this field empty.
2072
+ <dx-alert infotype="notice" title="Note">The number of template parameters should be consistent with that of the template variables of `TemplateId`.</dx-alert>
2073
+ * @type {Array.<string> || null}
1972
2074
  */
1973
- this.Code = null;
2075
+ this.TemplateParamSet = null;
1974
2076
 
1975
2077
  /**
1976
- * SMS request error message.
2078
+ * Sender ID for Global SMS. For detail, please refer to the [Sender ID](https://www.tencentcloud.com/document/product/382/58270) Guidelines.
2079
+ Note: This parameter applies solely to Global SMS. If you do not require a dedicated Sender ID, the public Sender ID will be used by default, and this parameter may be left blank.
2080
+ Example: Qsms
1977
2081
  * @type {string || null}
1978
2082
  */
1979
- this.Message = null;
2083
+ this.SenderId = null;
1980
2084
 
1981
2085
  /**
1982
- * Country/Region code, such as CN and US. For unrecognized country/region codes, `DEF` is returned by default. For the specific list of supported values, please see [Global SMS Price Overview](https://intl.cloud.tencent.com/document/product/382/18051?from_cn_redirect=1).
2086
+ * User session content, which can carry context information such as user-side ID and will be returned as-is by the server. Note that the length must be less than 512 bytes.
1983
2087
  * @type {string || null}
1984
2088
  */
1985
- this.IsoCode = null;
2089
+ this.SessionContext = null;
1986
2090
 
1987
2091
  }
1988
2092
 
@@ -1993,13 +2097,11 @@ class SendStatus extends AbstractModel {
1993
2097
  if (!params) {
1994
2098
  return;
1995
2099
  }
1996
- this.SerialNo = 'SerialNo' in params ? params.SerialNo : null;
1997
2100
  this.PhoneNumber = 'PhoneNumber' in params ? params.PhoneNumber : null;
1998
- this.Fee = 'Fee' in params ? params.Fee : null;
2101
+ this.TemplateId = 'TemplateId' in params ? params.TemplateId : null;
2102
+ this.TemplateParamSet = 'TemplateParamSet' in params ? params.TemplateParamSet : null;
2103
+ this.SenderId = 'SenderId' in params ? params.SenderId : null;
1999
2104
  this.SessionContext = 'SessionContext' in params ? params.SessionContext : null;
2000
- this.Code = 'Code' in params ? params.Code : null;
2001
- this.Message = 'Message' in params ? params.Message : null;
2002
- this.IsoCode = 'IsoCode' in params ? params.IsoCode : null;
2003
2105
 
2004
2106
  }
2005
2107
  }
@@ -2112,6 +2214,49 @@ class DeleteSmsSignRequest extends AbstractModel {
2112
2214
  }
2113
2215
  }
2114
2216
 
2217
+ /**
2218
+ * SendMultiGlobalSms request structure.
2219
+ * @class
2220
+ */
2221
+ class SendMultiGlobalSmsRequest extends AbstractModel {
2222
+ constructor(){
2223
+ super();
2224
+
2225
+ /**
2226
+ * The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 2400006666.
2227
+ * @type {string || null}
2228
+ */
2229
+ this.SmsSdkAppId = null;
2230
+
2231
+ /**
2232
+ * Multi SMS information list. Up to 200 phone numbers are supported in one request, which should be all Global SMS numbers. Each element contains a phone number and its corresponding template, template parameters, and other information.
2233
+ * @type {Array.<MultiSmsInfo> || null}
2234
+ */
2235
+ this.MultiSmsInfoSet = null;
2236
+
2237
+ }
2238
+
2239
+ /**
2240
+ * @private
2241
+ */
2242
+ deserialize(params) {
2243
+ if (!params) {
2244
+ return;
2245
+ }
2246
+ this.SmsSdkAppId = 'SmsSdkAppId' in params ? params.SmsSdkAppId : null;
2247
+
2248
+ if (params.MultiSmsInfoSet) {
2249
+ this.MultiSmsInfoSet = new Array();
2250
+ for (let z in params.MultiSmsInfoSet) {
2251
+ let obj = new MultiSmsInfo();
2252
+ obj.deserialize(params.MultiSmsInfoSet[z]);
2253
+ this.MultiSmsInfoSet.push(obj);
2254
+ }
2255
+ }
2256
+
2257
+ }
2258
+ }
2259
+
2115
2260
  /**
2116
2261
  * PullSmsReplyStatusByPhoneNumber request structure.
2117
2262
  * @class
@@ -2436,6 +2581,76 @@ class PullSmsReplyStatusResponse extends AbstractModel {
2436
2581
  }
2437
2582
  }
2438
2583
 
2584
+ /**
2585
+ * SMS send status
2586
+ * @class
2587
+ */
2588
+ class SendStatus extends AbstractModel {
2589
+ constructor(){
2590
+ super();
2591
+
2592
+ /**
2593
+ * Delivery serial number.
2594
+ * @type {string || null}
2595
+ */
2596
+ this.SerialNo = null;
2597
+
2598
+ /**
2599
+ * Mobile number in the E.164 standard (+[country/region code][mobile number]), such as +60198890000, which has a + sign followed by 60 (country/region code) and then by 198890000 (mobile number).
2600
+ * @type {string || null}
2601
+ */
2602
+ this.PhoneNumber = null;
2603
+
2604
+ /**
2605
+ * Number of billable SMS messages. For billing rules, see Billing Policy.
2606
+ * @type {number || null}
2607
+ */
2608
+ this.Fee = null;
2609
+
2610
+ /**
2611
+ * User session content.
2612
+ * @type {string || null}
2613
+ */
2614
+ this.SessionContext = null;
2615
+
2616
+ /**
2617
+ * SMS request error code. For specific meanings, see [Error Codes](https://intl.cloud.tencent.com/zh/document/product/382/40536#6.-error-code). `Ok` will be returned for successful delivery.
2618
+ * @type {string || null}
2619
+ */
2620
+ this.Code = null;
2621
+
2622
+ /**
2623
+ * SMS request error message.
2624
+ * @type {string || null}
2625
+ */
2626
+ this.Message = null;
2627
+
2628
+ /**
2629
+ * Country/Region code, such as US and MY. For unrecognized country/region codes, `DEF` is returned by default. For the specific list of supported values, please see [Global SMS Price Overview](https://intl.cloud.tencent.com/document/product/382/18051?from_cn_redirect=1).
2630
+ * @type {string || null}
2631
+ */
2632
+ this.IsoCode = null;
2633
+
2634
+ }
2635
+
2636
+ /**
2637
+ * @private
2638
+ */
2639
+ deserialize(params) {
2640
+ if (!params) {
2641
+ return;
2642
+ }
2643
+ this.SerialNo = 'SerialNo' in params ? params.SerialNo : null;
2644
+ this.PhoneNumber = 'PhoneNumber' in params ? params.PhoneNumber : null;
2645
+ this.Fee = 'Fee' in params ? params.Fee : null;
2646
+ this.SessionContext = 'SessionContext' in params ? params.SessionContext : null;
2647
+ this.Code = 'Code' in params ? params.Code : null;
2648
+ this.Message = 'Message' in params ? params.Message : null;
2649
+ this.IsoCode = 'IsoCode' in params ? params.IsoCode : null;
2650
+
2651
+ }
2652
+ }
2653
+
2439
2654
  module.exports = {
2440
2655
  PullSmsReplyStatusRequest: PullSmsReplyStatusRequest,
2441
2656
  DeleteSmsTemplateResponse: DeleteSmsTemplateResponse,
@@ -2465,19 +2680,22 @@ module.exports = {
2465
2680
  DescribeSmsSignListRequest: DescribeSmsSignListRequest,
2466
2681
  DescribePhoneNumberInfoResponse: DescribePhoneNumberInfoResponse,
2467
2682
  DescribeTemplateListStatus: DescribeTemplateListStatus,
2683
+ SendMultiStatus: SendMultiStatus,
2468
2684
  AddSmsTemplateResponse: AddSmsTemplateResponse,
2469
2685
  PullSmsSendStatus: PullSmsSendStatus,
2470
2686
  DescribeSmsSignListResponse: DescribeSmsSignListResponse,
2687
+ SendMultiGlobalSmsResponse: SendMultiGlobalSmsResponse,
2471
2688
  DescribeSmsTemplateListRequest: DescribeSmsTemplateListRequest,
2472
2689
  CallbackStatusStatistics: CallbackStatusStatistics,
2473
2690
  PhoneNumberInfo: PhoneNumberInfo,
2474
2691
  SendStatusStatisticsRequest: SendStatusStatisticsRequest,
2475
2692
  DeleteSmsTemplateRequest: DeleteSmsTemplateRequest,
2476
2693
  PullSmsReplyStatusByPhoneNumberResponse: PullSmsReplyStatusByPhoneNumberResponse,
2477
- SendStatus: SendStatus,
2694
+ MultiSmsInfo: MultiSmsInfo,
2478
2695
  DeleteSmsSignResponse: DeleteSmsSignResponse,
2479
2696
  AddSmsSignResponse: AddSmsSignResponse,
2480
2697
  DeleteSmsSignRequest: DeleteSmsSignRequest,
2698
+ SendMultiGlobalSmsRequest: SendMultiGlobalSmsRequest,
2481
2699
  PullSmsReplyStatusByPhoneNumberRequest: PullSmsReplyStatusByPhoneNumberRequest,
2482
2700
  ModifySmsSignResponse: ModifySmsSignResponse,
2483
2701
  ReportConversionRequest: ReportConversionRequest,
@@ -2486,5 +2704,6 @@ module.exports = {
2486
2704
  PullSmsSendStatusResponse: PullSmsSendStatusResponse,
2487
2705
  DeleteSignStatus: DeleteSignStatus,
2488
2706
  PullSmsReplyStatusResponse: PullSmsReplyStatusResponse,
2707
+ SendStatus: SendStatus,
2489
2708
 
2490
2709
  }
@@ -44,19 +44,22 @@ const DeleteTemplateStatus = models.DeleteTemplateStatus;
44
44
  const DescribeSmsSignListRequest = models.DescribeSmsSignListRequest;
45
45
  const DescribePhoneNumberInfoResponse = models.DescribePhoneNumberInfoResponse;
46
46
  const DescribeTemplateListStatus = models.DescribeTemplateListStatus;
47
+ const SendMultiStatus = models.SendMultiStatus;
47
48
  const AddSmsTemplateResponse = models.AddSmsTemplateResponse;
48
49
  const PullSmsSendStatus = models.PullSmsSendStatus;
49
50
  const DescribeSmsSignListResponse = models.DescribeSmsSignListResponse;
51
+ const SendMultiGlobalSmsResponse = models.SendMultiGlobalSmsResponse;
50
52
  const DescribeSmsTemplateListRequest = models.DescribeSmsTemplateListRequest;
51
53
  const CallbackStatusStatistics = models.CallbackStatusStatistics;
52
54
  const PhoneNumberInfo = models.PhoneNumberInfo;
53
55
  const SendStatusStatisticsRequest = models.SendStatusStatisticsRequest;
54
56
  const DeleteSmsTemplateRequest = models.DeleteSmsTemplateRequest;
55
57
  const PullSmsReplyStatusByPhoneNumberResponse = models.PullSmsReplyStatusByPhoneNumberResponse;
56
- const SendStatus = models.SendStatus;
58
+ const MultiSmsInfo = models.MultiSmsInfo;
57
59
  const DeleteSmsSignResponse = models.DeleteSmsSignResponse;
58
60
  const AddSmsSignResponse = models.AddSmsSignResponse;
59
61
  const DeleteSmsSignRequest = models.DeleteSmsSignRequest;
62
+ const SendMultiGlobalSmsRequest = models.SendMultiGlobalSmsRequest;
60
63
  const PullSmsReplyStatusByPhoneNumberRequest = models.PullSmsReplyStatusByPhoneNumberRequest;
61
64
  const ModifySmsSignResponse = models.ModifySmsSignResponse;
62
65
  const ReportConversionRequest = models.ReportConversionRequest;
@@ -65,6 +68,7 @@ const ModifyTemplateStatus = models.ModifyTemplateStatus;
65
68
  const PullSmsSendStatusResponse = models.PullSmsSendStatusResponse;
66
69
  const DeleteSignStatus = models.DeleteSignStatus;
67
70
  const PullSmsReplyStatusResponse = models.PullSmsReplyStatusResponse;
71
+ const SendStatus = models.SendStatus;
68
72
 
69
73
 
70
74
  /**
@@ -77,6 +81,17 @@ class SmsClient extends AbstractClient {
77
81
  super("sms.intl.tencentcloudapi.com", "2021-01-11", credential, region, profile);
78
82
  }
79
83
 
84
+ /**
85
+ * This API is used to send Global SMS messages in batches. Compared with the SendSms API, it supports sending SMS messages with different content to multiple phone numbers in a single request and allows specifying different SenderIds.
86
+ * @param {SendMultiGlobalSmsRequest} req
87
+ * @param {function(string, SendMultiGlobalSmsResponse):void} cb
88
+ * @public
89
+ */
90
+ SendMultiGlobalSms(req, cb) {
91
+ let resp = new SendMultiGlobalSmsResponse();
92
+ this.request("SendMultiGlobalSms", req, resp, cb);
93
+ }
94
+
80
95
  /**
81
96
  * 1. This API is used to modify an SMS signature. Read the [Tencent Cloud SMS signature review standards](https://intl.cloud.tencent.com/document/product/382/40658) before making a modification.
82
97
  2. ⚠️ Note: Individual users cannot use this API to modify SMS signatures. For more information, see [Identity Verification Guide](https://intl.cloud.tencent.com/document/product/378/3629). If your account identity is individual, you can log in to the [console](https://console.cloud.tencent.com/smsv2) to modify SMS signatures.
@@ -124,8 +139,6 @@ Currently, you can also [configure the callback](https://intl.cloud.tencent.com/
124
139
 
125
140
  /**
126
141
  * This API is used to send SMS verification codes, notification, or marketing messages to users.
127
- >- Note: Because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the [SDK](https://intl.cloud.tencent.com/document/product/382/43193?from_cn_redirect=1).
128
- >- Note: You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
129
142
  * @param {SendSmsRequest} req
130
143
  * @param {function(string, SendSmsResponse):void} cb
131
144
  * @public
@@ -31,19 +31,19 @@ class AssumeRoleWithSAMLResponse extends AbstractModel {
31
31
  this.Credentials = null;
32
32
 
33
33
  /**
34
- * Credentials expiration time. A Unix timestamp will be returned which is accurate to the second
34
+ * Indicates the expiration time of the temporary access credentials. A Unix timestamp will be returned which is accurate to the second.
35
35
  * @type {number || null}
36
36
  */
37
37
  this.ExpiredTime = null;
38
38
 
39
39
  /**
40
- * Credentials expiration time in UTC time in ISO 8601 format.
40
+ * Indicates the expiration time of the temporary access credentials in UTC time in ISO 8601 format.
41
41
  * @type {string || null}
42
42
  */
43
43
  this.Expiration = null;
44
44
 
45
45
  /**
46
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
46
+ * 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.
47
47
  * @type {string || null}
48
48
  */
49
49
  this.RequestId = null;
@@ -114,7 +114,7 @@ class GetCallerIdentityResponse extends AbstractModel {
114
114
  this.Type = null;
115
115
 
116
116
  /**
117
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
117
+ * 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.
118
118
  * @type {string || null}
119
119
  */
120
120
  this.RequestId = null;
@@ -171,7 +171,7 @@ class AssumeRoleWithWebIdentityRequest extends AbstractModel {
171
171
  this.RoleSessionName = null;
172
172
 
173
173
  /**
174
- * The validity period of the temporary credential in seconds. Default value: 7,200s. Maximum value: 43,200s.
174
+ * Specifies the validity period of the temporary access credentials in seconds. Default value: 7,200s. Maximum value: 43,200s.
175
175
  * @type {number || null}
176
176
  */
177
177
  this.DurationSeconds = null;
@@ -203,25 +203,25 @@ class AssumeRoleWithWebIdentityResponse extends AbstractModel {
203
203
  super();
204
204
 
205
205
  /**
206
- * Expiration time of the temporary credential (timestamp)
206
+ * Expiration time of the temporary access credentials (timestamp).
207
207
  * @type {number || null}
208
208
  */
209
209
  this.ExpiredTime = null;
210
210
 
211
211
  /**
212
- * Expiration time of the temporary credential
212
+ * Expiration time of the temporary access credentials.
213
213
  * @type {string || null}
214
214
  */
215
215
  this.Expiration = null;
216
216
 
217
217
  /**
218
- * Temporary credential
218
+ * Temporary access credentials
219
219
  * @type {Credentials || null}
220
220
  */
221
221
  this.Credentials = null;
222
222
 
223
223
  /**
224
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
224
+ * 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.
225
225
  * @type {string || null}
226
226
  */
227
227
  this.RequestId = null;
@@ -257,26 +257,26 @@ class GetFederationTokenResponse extends AbstractModel {
257
257
  super();
258
258
 
259
259
  /**
260
- * Temporary credentials
260
+ * Temporary access credentials
261
261
  * @type {Credentials || null}
262
262
  */
263
263
  this.Credentials = null;
264
264
 
265
265
  /**
266
- * Temporary credentials expiration time. A Unix timestamp will be returned which is accurate to the second
266
+ * Temporary access credentials expiration time. A Unix timestamp will be returned which is accurate to the second.
267
267
  * @type {number || null}
268
268
  */
269
269
  this.ExpiredTime = null;
270
270
 
271
271
  /**
272
- * Credentials expiration time in UTC time in ISO 8601 format.
272
+ * Temporary access credentials expiration time in UTC time in ISO 8601 format.
273
273
  Note: this field may return null, indicating that no valid values can be obtained.
274
274
  * @type {string || null}
275
275
  */
276
276
  this.Expiration = null;
277
277
 
278
278
  /**
279
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
279
+ * 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.
280
280
  * @type {string || null}
281
281
  */
282
282
  this.RequestId = null;
@@ -312,25 +312,25 @@ class AssumeRoleResponse extends AbstractModel {
312
312
  super();
313
313
 
314
314
  /**
315
- * Temporary security credentials
315
+ * Temporary access credentials
316
316
  * @type {Credentials || null}
317
317
  */
318
318
  this.Credentials = null;
319
319
 
320
320
  /**
321
- * Credentials expiration time. A Unix timestamp will be returned which is accurate to the second
321
+ * Expiration time of the temporary access credentials. A Unix timestamp will be returned which is accurate to the second.
322
322
  * @type {number || null}
323
323
  */
324
324
  this.ExpiredTime = null;
325
325
 
326
326
  /**
327
- * Credentials expiration time in UTC time in ISO 8601 format.
327
+ * Expiration time of the temporary access credentials in UTC time in ISO 8601 format.
328
328
  * @type {string || null}
329
329
  */
330
330
  this.Expiration = null;
331
331
 
332
332
  /**
333
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
333
+ * 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.
334
334
  * @type {string || null}
335
335
  */
336
336
  this.RequestId = null;
@@ -372,11 +372,11 @@ class GetFederationTokenRequest extends AbstractModel {
372
372
  this.Name = null;
373
373
 
374
374
  /**
375
- * Policy description
376
- Note:
377
- 1. The policy needs to be URL-encoded (if you request a TencentCloud API through the GET method, all parameters must be URL-encoded again in accordance with [Signature v3](https://intl.cloud.tencent.com/document/api/598/33159?from_cn_redirect=1#1.-.E6.8B.BC.E6.8E.A5.E8.A7.84.E8.8C.83.E8.AF.B7.E6.B1.82.E4.B8.B2) before the request is sent).
378
- 2. For the policy syntax, please see CAM's [Syntax Logic](https://intl.cloud.tencent.com/document/product/598/10603?from_cn_redirect=1).
379
- 3. The policy cannot contain the `principal` element.
375
+ * Note:
376
+
377
+ The policy syntax refers to [CAM's Syntax Logic](https://intl.cloud.tencent.com/document/product/598/10603?from_cn_redirect=1).
378
+ The policy cannot contain the principal element.
379
+ This parameter needs to be URL-encoded. The server will URL-decode this field and grant temporary access credentials based on the processed policy. Please pass the parameter according to the specification.
380
380
  * @type {string || null}
381
381
  */
382
382
  this.Policy = null;
@@ -506,16 +506,18 @@ It can contain 2-128 letters, digits, and symbols (=,.@_-). Regex: [\w+=,.@_-]*
506
506
  this.RoleSessionName = null;
507
507
 
508
508
  /**
509
- * Specifies the validity period of credentials in seconds. Default value: 7200. Maximum value: 43200
509
+ * Specifies the validity period of the temporary access credentials in seconds. Default value: 7,200s. Maximum value: 43,200s.
510
510
  * @type {number || null}
511
511
  */
512
512
  this.DurationSeconds = null;
513
513
 
514
514
  /**
515
515
  * Policy description
516
+
516
517
  Note:
517
- 1. The policy needs to be URL-encoded (if you request a TencentCloud API through the GET method, all parameters must be URL-encoded again in accordance with [Signature v3](https://intl.cloud.tencent.com/document/api/598/33159?from_cn_redirect=1#1.-.E6.8B.BC.E6.8E.A5.E8.A7.84.E8.8C.83.E8.AF.B7.E6.B1.82.E4.B8.B2) before the request is sent).
518
- 2. For the policy syntax, please see CAM's [Syntax Logic](https://intl.cloud.tencent.com/document/product/598/10603?from_cn_redirect=1).
518
+
519
+ This parameter needs to be URL-encoded. The server will URL-decode this field and grant temporary access credentials based on the processed policy. Please pass the parameter according to the specification. (If you request a TencentCloud API through the GET method, all parameters must be URL-encoded again in accordance with [Signature v3](https://intl.cloud.tencent.com/document/api/598/33159?from_cn_redirect=1#1.-.E6.8B.BC.E6.8E.A5.E8.A7.84.E8.8C.83.E8.AF.B7.E6.B1.82.E4.B8.B2) before the request is sent).
520
+ The policy syntax refers to [CAM's Syntax Logic](https://intl.cloud.tencent.com/document/product/598/10603?from_cn_redirect=1).
519
521
  3. The policy cannot contain the `principal` element.
520
522
  * @type {string || null}
521
523
  */
@@ -540,6 +542,18 @@ It can contain 2-128 letters, digits, and symbols (=,.@:/-). Regex: [\w+=,.@:\/-
540
542
  */
541
543
  this.SourceIdentity = null;
542
544
 
545
+ /**
546
+ *
547
+ * @type {string || null}
548
+ */
549
+ this.SerialNumber = null;
550
+
551
+ /**
552
+ *
553
+ * @type {string || null}
554
+ */
555
+ this.TokenCode = null;
556
+
543
557
  }
544
558
 
545
559
  /**
@@ -564,6 +578,8 @@ It can contain 2-128 letters, digits, and symbols (=,.@:/-). Regex: [\w+=,.@:\/-
564
578
  }
565
579
  }
566
580
  this.SourceIdentity = 'SourceIdentity' in params ? params.SourceIdentity : null;
581
+ this.SerialNumber = 'SerialNumber' in params ? params.SerialNumber : null;
582
+ this.TokenCode = 'TokenCode' in params ? params.TokenCode : null;
567
583
 
568
584
  }
569
585
  }
@@ -622,7 +638,7 @@ class AssumeRoleWithSAMLRequest extends AbstractModel {
622
638
  this.RoleSessionName = null;
623
639
 
624
640
  /**
625
- * The validity period of the temporary credentials in seconds. Default value: 7,200s. Maximum value: 43,200s.
641
+ * Specifies the validity period of the temporary access credentials in seconds. Default value: 7,200s. Maximum value: 43,200s.
626
642
  * @type {number || null}
627
643
  */
628
644
  this.DurationSeconds = null;