tencentcloud-sdk-nodejs-intl-en 3.0.1315 → 3.0.1317
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 +1 -1
- package/tencentcloud/cbs/v20170312/cbs_client.js +15 -0
- package/tencentcloud/cbs/v20170312/models.js +109 -31
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/faceid/v20180301/models.js +3 -3
- package/tencentcloud/ses/v20201002/models.js +357 -108
- package/tencentcloud/ses/v20201002/ses_client.js +29 -15
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@ const InitializeDisksResponse = models.InitializeDisksResponse;
|
|
|
37
37
|
const DeleteDiskBackupsResponse = models.DeleteDiskBackupsResponse;
|
|
38
38
|
const DescribeDiskBackupsResponse = models.DescribeDiskBackupsResponse;
|
|
39
39
|
const SnapshotCopyResult = models.SnapshotCopyResult;
|
|
40
|
+
const RenewDiskRequest = models.RenewDiskRequest;
|
|
40
41
|
const InquirePriceModifyDiskExtraPerformanceResponse = models.InquirePriceModifyDiskExtraPerformanceResponse;
|
|
41
42
|
const AdvancedRetentionPolicy = models.AdvancedRetentionPolicy;
|
|
42
43
|
const CreateDisksRequest = models.CreateDisksRequest;
|
|
@@ -106,6 +107,7 @@ const GetSnapOverviewResponse = models.GetSnapOverviewResponse;
|
|
|
106
107
|
const AutoMountConfiguration = models.AutoMountConfiguration;
|
|
107
108
|
const CopySnapshotCrossRegionsRequest = models.CopySnapshotCrossRegionsRequest;
|
|
108
109
|
const PrepayPrice = models.PrepayPrice;
|
|
110
|
+
const RenewDiskResponse = models.RenewDiskResponse;
|
|
109
111
|
const DescribeAutoSnapshotPoliciesResponse = models.DescribeAutoSnapshotPoliciesResponse;
|
|
110
112
|
const UnbindAutoSnapshotPolicyRequest = models.UnbindAutoSnapshotPolicyRequest;
|
|
111
113
|
const UnbindAutoSnapshotPolicyResponse = models.UnbindAutoSnapshotPolicyResponse;
|
|
@@ -138,6 +140,19 @@ class CbsClient extends AbstractClient {
|
|
|
138
140
|
this.request("ModifyDiskExtraPerformance", req, resp, cb);
|
|
139
141
|
}
|
|
140
142
|
|
|
143
|
+
/**
|
|
144
|
+
* This API is used to renew cloud disks.
|
|
145
|
+
|
|
146
|
+
This API is used to support renewal along with mounted instances. The parameter specifies CurInstanceDeadline in [DiskChargePrepaid](https://www.tencentcloud.com/document/product/362/15669?from_cn_redirect=1#DiskChargePrepaid), and renewal will be at the expiry date after the instance is renewed.
|
|
147
|
+
* @param {RenewDiskRequest} req
|
|
148
|
+
* @param {function(string, RenewDiskResponse):void} cb
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
RenewDisk(req, cb) {
|
|
152
|
+
let resp = new RenewDiskResponse();
|
|
153
|
+
this.request("RenewDisk", req, resp, cb);
|
|
154
|
+
}
|
|
155
|
+
|
|
141
156
|
/**
|
|
142
157
|
* This API is used to roll back a backup point to the original cloud disk.
|
|
143
158
|
|
|
@@ -717,7 +717,7 @@ class InquiryPriceCreateDisksResponse extends AbstractModel {
|
|
|
717
717
|
this.DiskPrice = null;
|
|
718
718
|
|
|
719
719
|
/**
|
|
720
|
-
* The unique request ID,
|
|
720
|
+
* 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.
|
|
721
721
|
* @type {string || null}
|
|
722
722
|
*/
|
|
723
723
|
this.RequestId = null;
|
|
@@ -1094,6 +1094,46 @@ class SnapshotCopyResult extends AbstractModel {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
|
+
/**
|
|
1098
|
+
* RenewDisk request structure.
|
|
1099
|
+
* @class
|
|
1100
|
+
*/
|
|
1101
|
+
class RenewDiskRequest extends AbstractModel {
|
|
1102
|
+
constructor(){
|
|
1103
|
+
super();
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Specifies the parameter CurInstanceDeadline in the scenario where the cloud disk and mounted instance renew together. at this point, the cloud disk renewal aligns with the instance renewal expiry date.
|
|
1107
|
+
* @type {DiskChargePrepaid || null}
|
|
1108
|
+
*/
|
|
1109
|
+
this.DiskChargePrepaid = null;
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Cloud disk ID, which can be queried by calling the [DescribeDisks](https://www.tencentcloud.com/document/product/362/16315?from_cn_redirect=1) API.
|
|
1113
|
+
* @type {string || null}
|
|
1114
|
+
*/
|
|
1115
|
+
this.DiskId = null;
|
|
1116
|
+
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* @private
|
|
1121
|
+
*/
|
|
1122
|
+
deserialize(params) {
|
|
1123
|
+
if (!params) {
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
if (params.DiskChargePrepaid) {
|
|
1128
|
+
let obj = new DiskChargePrepaid();
|
|
1129
|
+
obj.deserialize(params.DiskChargePrepaid)
|
|
1130
|
+
this.DiskChargePrepaid = obj;
|
|
1131
|
+
}
|
|
1132
|
+
this.DiskId = 'DiskId' in params ? params.DiskId : null;
|
|
1133
|
+
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1097
1137
|
/**
|
|
1098
1138
|
* InquirePriceModifyDiskExtraPerformance response structure.
|
|
1099
1139
|
* @class
|
|
@@ -3354,19 +3394,25 @@ class DiskChargePrepaid extends AbstractModel {
|
|
|
3354
3394
|
super();
|
|
3355
3395
|
|
|
3356
3396
|
/**
|
|
3357
|
-
*
|
|
3397
|
+
* Specifies the duration for purchasing cloud block storage (cbs) in months. default unit: month. valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
|
|
3358
3398
|
* @type {number || null}
|
|
3359
3399
|
*/
|
|
3360
3400
|
this.Period = null;
|
|
3361
3401
|
|
|
3362
3402
|
/**
|
|
3363
|
-
*
|
|
3403
|
+
* Automatic renewal flag. valid values:.
|
|
3404
|
+
<ul>
|
|
3405
|
+
<Li>NOTIFY_AND_AUTO_RENEW: notifies expiry and renews automatically.</li>.
|
|
3406
|
+
<Li>NOTIFY_AND_MANUAL_RENEW: notifies expiry but does not renew automatically.</li>.
|
|
3407
|
+
<Li>DISABLE_NOTIFY_AND_MANUAL_RENEW: no notification is sent upon expiration, and the instance is not renewed automatically.</li>.
|
|
3408
|
+
</ul>
|
|
3409
|
+
Default value: NOTIFY_AND_MANUAL_RENEW.
|
|
3364
3410
|
* @type {string || null}
|
|
3365
3411
|
*/
|
|
3366
3412
|
this.RenewFlag = null;
|
|
3367
3413
|
|
|
3368
3414
|
/**
|
|
3369
|
-
*
|
|
3415
|
+
* Specifies the current expiration time of the child machine when the expiration time of the cloud block storage needs to align with the mounted child machine. you can input this parameter. if Period is input at this time, it indicates the duration of child machine renewal. the cloud disk will automatically renew according to the expiration time after the child machine is renewed.
|
|
3370
3416
|
* @type {string || null}
|
|
3371
3417
|
*/
|
|
3372
3418
|
this.CurInstanceDeadline = null;
|
|
@@ -3431,43 +3477,45 @@ class InquiryPriceCreateDisksRequest extends AbstractModel {
|
|
|
3431
3477
|
super();
|
|
3432
3478
|
|
|
3433
3479
|
/**
|
|
3434
|
-
* Cloud disk billing mode. <br
|
|
3480
|
+
* Cloud disk billing mode. <br>
|
|
3481
|
+
<li>PREPAID: Prepaid by month.</li>
|
|
3482
|
+
<li>POSTPAID_BY_HOUR: Hourly pay-as-you-go.</li>
|
|
3435
3483
|
* @type {string || null}
|
|
3436
3484
|
*/
|
|
3437
3485
|
this.DiskChargeType = null;
|
|
3438
3486
|
|
|
3439
3487
|
/**
|
|
3440
|
-
*
|
|
3488
|
+
* Hard disk media type. valid values: <ul> <li>CLOUD_PREMIUM: high-performance CLOUD block storage</li> <li>CLOUD_SSD: SSD CLOUD disk</li> <li>CLOUD_HSSD: enhanced SSD CLOUD disk</li> <li>CLOUD_TSSD: ultra-fast SSD cbs</li> </ul>.
|
|
3441
3489
|
* @type {string || null}
|
|
3442
3490
|
*/
|
|
3443
3491
|
this.DiskType = null;
|
|
3444
3492
|
|
|
3445
3493
|
/**
|
|
3446
|
-
*
|
|
3494
|
+
* Specifies the disk capacity in GiB. for the cloud disk size range, please refer to the product type of cloud block storage (https://www.tencentcloud.com/document/product/362/2353?from_cn_redirect=1).
|
|
3447
3495
|
* @type {number || null}
|
|
3448
3496
|
*/
|
|
3449
3497
|
this.DiskSize = null;
|
|
3450
3498
|
|
|
3451
3499
|
/**
|
|
3452
|
-
* ID
|
|
3500
|
+
* cloud disk project ID. obtain this parameter by calling the projectId field in the return value of [DescribeProject](https://www.tencentcloud.comom/document/api/651/78725?from_cn_redirect=1). default to the default project.
|
|
3453
3501
|
* @type {number || null}
|
|
3454
3502
|
*/
|
|
3455
3503
|
this.ProjectId = null;
|
|
3456
3504
|
|
|
3457
3505
|
/**
|
|
3458
|
-
*
|
|
3506
|
+
* Specifies the number of cloud block storage (cbs) disks to purchase. defaults to 1 if left blank.
|
|
3459
3507
|
* @type {number || null}
|
|
3460
3508
|
*/
|
|
3461
3509
|
this.DiskCount = null;
|
|
3462
3510
|
|
|
3463
3511
|
/**
|
|
3464
|
-
*
|
|
3512
|
+
* Specifies the additional performance value of the CBS disk in MiB/s. extra performance is only supported for enhanced SSD (CLOUD_HSSD) and ultra-fast SSD (CLOUD_TSSD) CBS disks exceeding 460GiB in size.
|
|
3465
3513
|
* @type {number || null}
|
|
3466
3514
|
*/
|
|
3467
3515
|
this.ThroughputPerformance = null;
|
|
3468
3516
|
|
|
3469
3517
|
/**
|
|
3470
|
-
*
|
|
3518
|
+
* Prepaid mode, that is, the settings for the monthly subscription-related parameters. through this parameter, you can specify the purchase duration of the monthly subscribed cloud disk, whether to enable auto-renewal, and other attributes. this parameter is required for creating a prepaid cloud disk, but no need to specify it when creating an hourly postpaid cloud disk.
|
|
3471
3519
|
* @type {DiskChargePrepaid || null}
|
|
3472
3520
|
*/
|
|
3473
3521
|
this.DiskChargePrepaid = null;
|
|
@@ -4746,6 +4794,34 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
4746
4794
|
}
|
|
4747
4795
|
}
|
|
4748
4796
|
|
|
4797
|
+
/**
|
|
4798
|
+
* RenewDisk response structure.
|
|
4799
|
+
* @class
|
|
4800
|
+
*/
|
|
4801
|
+
class RenewDiskResponse extends AbstractModel {
|
|
4802
|
+
constructor(){
|
|
4803
|
+
super();
|
|
4804
|
+
|
|
4805
|
+
/**
|
|
4806
|
+
* 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.
|
|
4807
|
+
* @type {string || null}
|
|
4808
|
+
*/
|
|
4809
|
+
this.RequestId = null;
|
|
4810
|
+
|
|
4811
|
+
}
|
|
4812
|
+
|
|
4813
|
+
/**
|
|
4814
|
+
* @private
|
|
4815
|
+
*/
|
|
4816
|
+
deserialize(params) {
|
|
4817
|
+
if (!params) {
|
|
4818
|
+
return;
|
|
4819
|
+
}
|
|
4820
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
4821
|
+
|
|
4822
|
+
}
|
|
4823
|
+
}
|
|
4824
|
+
|
|
4749
4825
|
/**
|
|
4750
4826
|
* DescribeAutoSnapshotPolicies response structure.
|
|
4751
4827
|
* @class
|
|
@@ -4981,11 +5057,11 @@ class Price extends AbstractModel {
|
|
|
4981
5057
|
super();
|
|
4982
5058
|
|
|
4983
5059
|
/**
|
|
4984
|
-
*
|
|
5060
|
+
* Discount unit price of a pay-as-you-go cloud disk, in USD.
|
|
4985
5061
|
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
4986
5062
|
* @type {number || null}
|
|
4987
5063
|
*/
|
|
4988
|
-
this.
|
|
5064
|
+
this.UnitPriceDiscount = null;
|
|
4989
5065
|
|
|
4990
5066
|
/**
|
|
4991
5067
|
* Discounted price of a monthly-subscribed cloud disk, in USD.
|
|
@@ -5002,25 +5078,25 @@ Note: this field may return `null`, indicating that no valid values can be obtai
|
|
|
5002
5078
|
this.UnitPrice = null;
|
|
5003
5079
|
|
|
5004
5080
|
/**
|
|
5005
|
-
*
|
|
5006
|
-
Note:
|
|
5081
|
+
* Original unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
|
|
5082
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
5007
5083
|
* @type {string || null}
|
|
5008
5084
|
*/
|
|
5009
|
-
this.
|
|
5085
|
+
this.UnitPriceHigh = null;
|
|
5010
5086
|
|
|
5011
5087
|
/**
|
|
5012
|
-
*
|
|
5088
|
+
* Original payment of a monthly-subscribed cloud disk, in USD, with six decimal places.
|
|
5013
5089
|
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
5014
|
-
* @type {
|
|
5090
|
+
* @type {string || null}
|
|
5015
5091
|
*/
|
|
5016
|
-
this.
|
|
5092
|
+
this.OriginalPriceHigh = null;
|
|
5017
5093
|
|
|
5018
5094
|
/**
|
|
5019
|
-
* Original
|
|
5095
|
+
* Original price of a monthly-subscribed cloud disk, in USD.
|
|
5020
5096
|
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
5021
|
-
* @type {
|
|
5097
|
+
* @type {number || null}
|
|
5022
5098
|
*/
|
|
5023
|
-
this.
|
|
5099
|
+
this.OriginalPrice = null;
|
|
5024
5100
|
|
|
5025
5101
|
/**
|
|
5026
5102
|
* Discounted payment price of a monthly-subscribed cloud disk, in USD, with six decimal places.
|
|
@@ -5030,18 +5106,18 @@ Note: this field may return `null`, indicating that no valid values can be obtai
|
|
|
5030
5106
|
this.DiscountPriceHigh = null;
|
|
5031
5107
|
|
|
5032
5108
|
/**
|
|
5033
|
-
*
|
|
5109
|
+
* Discounted unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
|
|
5034
5110
|
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
5035
5111
|
* @type {string || null}
|
|
5036
5112
|
*/
|
|
5037
|
-
this.
|
|
5113
|
+
this.UnitPriceDiscountHigh = null;
|
|
5038
5114
|
|
|
5039
5115
|
/**
|
|
5040
|
-
*
|
|
5041
|
-
Note:
|
|
5116
|
+
* Billing unit for postpaid cloud disk. valid values:<br><li>HOUR: the billing unit for postpaid cloud disk is calculated hourly.</li>.
|
|
5117
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
5042
5118
|
* @type {string || null}
|
|
5043
5119
|
*/
|
|
5044
|
-
this.
|
|
5120
|
+
this.ChargeUnit = null;
|
|
5045
5121
|
|
|
5046
5122
|
}
|
|
5047
5123
|
|
|
@@ -5052,15 +5128,15 @@ Note: this field may return `null`, indicating that no valid values can be obtai
|
|
|
5052
5128
|
if (!params) {
|
|
5053
5129
|
return;
|
|
5054
5130
|
}
|
|
5055
|
-
this.
|
|
5131
|
+
this.UnitPriceDiscount = 'UnitPriceDiscount' in params ? params.UnitPriceDiscount : null;
|
|
5056
5132
|
this.DiscountPrice = 'DiscountPrice' in params ? params.DiscountPrice : null;
|
|
5057
5133
|
this.UnitPrice = 'UnitPrice' in params ? params.UnitPrice : null;
|
|
5058
|
-
this.
|
|
5059
|
-
this.UnitPriceDiscount = 'UnitPriceDiscount' in params ? params.UnitPriceDiscount : null;
|
|
5134
|
+
this.UnitPriceHigh = 'UnitPriceHigh' in params ? params.UnitPriceHigh : null;
|
|
5060
5135
|
this.OriginalPriceHigh = 'OriginalPriceHigh' in params ? params.OriginalPriceHigh : null;
|
|
5136
|
+
this.OriginalPrice = 'OriginalPrice' in params ? params.OriginalPrice : null;
|
|
5061
5137
|
this.DiscountPriceHigh = 'DiscountPriceHigh' in params ? params.DiscountPriceHigh : null;
|
|
5062
|
-
this.UnitPriceHigh = 'UnitPriceHigh' in params ? params.UnitPriceHigh : null;
|
|
5063
5138
|
this.UnitPriceDiscountHigh = 'UnitPriceDiscountHigh' in params ? params.UnitPriceDiscountHigh : null;
|
|
5139
|
+
this.ChargeUnit = 'ChargeUnit' in params ? params.ChargeUnit : null;
|
|
5064
5140
|
|
|
5065
5141
|
}
|
|
5066
5142
|
}
|
|
@@ -5137,6 +5213,7 @@ module.exports = {
|
|
|
5137
5213
|
DeleteDiskBackupsResponse: DeleteDiskBackupsResponse,
|
|
5138
5214
|
DescribeDiskBackupsResponse: DescribeDiskBackupsResponse,
|
|
5139
5215
|
SnapshotCopyResult: SnapshotCopyResult,
|
|
5216
|
+
RenewDiskRequest: RenewDiskRequest,
|
|
5140
5217
|
InquirePriceModifyDiskExtraPerformanceResponse: InquirePriceModifyDiskExtraPerformanceResponse,
|
|
5141
5218
|
AdvancedRetentionPolicy: AdvancedRetentionPolicy,
|
|
5142
5219
|
CreateDisksRequest: CreateDisksRequest,
|
|
@@ -5206,6 +5283,7 @@ module.exports = {
|
|
|
5206
5283
|
AutoMountConfiguration: AutoMountConfiguration,
|
|
5207
5284
|
CopySnapshotCrossRegionsRequest: CopySnapshotCrossRegionsRequest,
|
|
5208
5285
|
PrepayPrice: PrepayPrice,
|
|
5286
|
+
RenewDiskResponse: RenewDiskResponse,
|
|
5209
5287
|
DescribeAutoSnapshotPoliciesResponse: DescribeAutoSnapshotPoliciesResponse,
|
|
5210
5288
|
UnbindAutoSnapshotPolicyRequest: UnbindAutoSnapshotPolicyRequest,
|
|
5211
5289
|
UnbindAutoSnapshotPolicyResponse: UnbindAutoSnapshotPolicyResponse,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1317";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -3687,14 +3687,14 @@ The default value is blink.
|
|
|
3687
3687
|
this.ActionList = null;
|
|
3688
3688
|
|
|
3689
3689
|
/**
|
|
3690
|
-
*
|
|
3690
|
+
* Maximum liveness verification attempts. Valid range: [1,99].
|
|
3691
3691
|
The default value is 99.
|
|
3692
3692
|
* @type {number || null}
|
|
3693
3693
|
*/
|
|
3694
3694
|
this.LivenessRetryLimit = null;
|
|
3695
3695
|
|
|
3696
3696
|
/**
|
|
3697
|
-
* Specifies the liveness detection timeout period in seconds.
|
|
3697
|
+
* Specifies the liveness detection timeout period in seconds. Value range: (0,600].
|
|
3698
3698
|
The default value is 45.
|
|
3699
3699
|
* @type {number || null}
|
|
3700
3700
|
*/
|
|
@@ -3844,7 +3844,7 @@ class Encryption extends AbstractModel {
|
|
|
3844
3844
|
this.EncryptList = null;
|
|
3845
3845
|
|
|
3846
3846
|
/**
|
|
3847
|
-
* Symmetric key after encryption. For the generation and usage of the key, please refer to the <a href="https://
|
|
3847
|
+
* Symmetric key after encryption. For the generation and usage of the key, please refer to the <a href="https://www.tencentcloud.com/document/product/1061/77849?lang=en&pg=">Data Encryption</a> document.
|
|
3848
3848
|
* @type {string || null}
|
|
3849
3849
|
*/
|
|
3850
3850
|
this.CiphertextBlob = null;
|
|
@@ -816,36 +816,119 @@ class DNSAttributes extends AbstractModel {
|
|
|
816
816
|
}
|
|
817
817
|
|
|
818
818
|
/**
|
|
819
|
-
*
|
|
819
|
+
* Describes the email sending status
|
|
820
820
|
* @class
|
|
821
821
|
*/
|
|
822
|
-
class
|
|
822
|
+
class SendEmailStatus extends AbstractModel {
|
|
823
823
|
constructor(){
|
|
824
824
|
super();
|
|
825
825
|
|
|
826
826
|
/**
|
|
827
|
-
*
|
|
828
|
-
* @type {
|
|
827
|
+
* The `MessageId` field returned by the `SendEmail` API
|
|
828
|
+
* @type {string || null}
|
|
829
829
|
*/
|
|
830
|
-
this.
|
|
830
|
+
this.MessageId = null;
|
|
831
831
|
|
|
832
832
|
/**
|
|
833
|
-
*
|
|
834
|
-
* @type {
|
|
833
|
+
* Recipient email address
|
|
834
|
+
* @type {string || null}
|
|
835
835
|
*/
|
|
836
|
-
this.
|
|
836
|
+
this.ToEmailAddress = null;
|
|
837
837
|
|
|
838
838
|
/**
|
|
839
|
-
*
|
|
839
|
+
* Sender email address
|
|
840
840
|
* @type {string || null}
|
|
841
841
|
*/
|
|
842
|
-
this.
|
|
842
|
+
this.FromEmailAddress = null;
|
|
843
843
|
|
|
844
844
|
/**
|
|
845
|
-
*
|
|
845
|
+
* Tencent Cloud processing status
|
|
846
|
+
0: Successful.
|
|
847
|
+
1001: Internal system exception.
|
|
848
|
+
1002: Internal system exception.
|
|
849
|
+
1003: Internal system exception.
|
|
850
|
+
1003: Internal system exception.
|
|
851
|
+
1004: Email sending timed out.
|
|
852
|
+
1005: Internal system exception.
|
|
853
|
+
1006: You have sent too many emails to the same address in a short period.
|
|
854
|
+
1007: The email address is in the blocklist.
|
|
855
|
+
1008: The sender domain is rejected by the recipient.
|
|
856
|
+
1009: Internal system exception.
|
|
857
|
+
1010: The daily email sending limit is exceeded.
|
|
858
|
+
1011: You have no permission to send custom content. Use a template.
|
|
859
|
+
1013: The sender domain is unsubscribed from by the recipient.
|
|
860
|
+
2001: No results were found.
|
|
861
|
+
3007: The template ID is invalid or the template is unavailable.
|
|
862
|
+
3008: The sender domain is temporarily blocked by the recipient domain.
|
|
863
|
+
3009: You have no permission to use this template.
|
|
864
|
+
3010: The format of the `TemplateData` field is incorrect.
|
|
865
|
+
3014: The email cannot be sent because the sender domain is not verified.
|
|
866
|
+
3020: The recipient email address is in the blocklist.
|
|
867
|
+
3024: Failed to precheck the email address format.
|
|
868
|
+
3030: Email sending is restricted temporarily due to a high bounce rate.
|
|
869
|
+
3033: The account has insufficient balance or overdue payment.
|
|
870
|
+
* @type {number || null}
|
|
871
|
+
*/
|
|
872
|
+
this.SendStatus = null;
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* Recipient processing status
|
|
876
|
+
0: Tencent Cloud has accepted the request and added it to the send queue.
|
|
877
|
+
1: The email is delivered successfully. `DeliverTime` indicates the time when the email is delivered successfully.
|
|
878
|
+
2: The email is discarded. `DeliverMessage` indicates the reason for discarding.
|
|
879
|
+
3: The recipient's ESP rejects the email, probably because the email address does not exist or due to other reasons.
|
|
880
|
+
8: The email is delayed by the ESP. `DeliverMessage` indicates the reason for delay.
|
|
881
|
+
* @type {number || null}
|
|
882
|
+
*/
|
|
883
|
+
this.DeliverStatus = null;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* Description of the recipient processing status
|
|
846
887
|
* @type {string || null}
|
|
847
888
|
*/
|
|
848
|
-
this.
|
|
889
|
+
this.DeliverMessage = null;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Timestamp when the request arrives at Tencent Cloud
|
|
893
|
+
* @type {number || null}
|
|
894
|
+
*/
|
|
895
|
+
this.RequestTime = null;
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Timestamp when Tencent Cloud delivers the email
|
|
899
|
+
* @type {number || null}
|
|
900
|
+
*/
|
|
901
|
+
this.DeliverTime = null;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Whether the recipient has opened the email
|
|
905
|
+
* @type {boolean || null}
|
|
906
|
+
*/
|
|
907
|
+
this.UserOpened = null;
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Whether the recipient has clicked the links in the email
|
|
911
|
+
* @type {boolean || null}
|
|
912
|
+
*/
|
|
913
|
+
this.UserClicked = null;
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Whether the recipient has unsubscribed from the email sent by the sender
|
|
917
|
+
* @type {boolean || null}
|
|
918
|
+
*/
|
|
919
|
+
this.UserUnsubscribed = null;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Whether the recipient has reported the sender
|
|
923
|
+
* @type {boolean || null}
|
|
924
|
+
*/
|
|
925
|
+
this.UserComplainted = null;
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Whether the user reports the sender.
|
|
929
|
+
* @type {boolean || null}
|
|
930
|
+
*/
|
|
931
|
+
this.UserComplained = null;
|
|
849
932
|
|
|
850
933
|
}
|
|
851
934
|
|
|
@@ -856,15 +939,19 @@ class GetEmailTemplateResponse extends AbstractModel {
|
|
|
856
939
|
if (!params) {
|
|
857
940
|
return;
|
|
858
941
|
}
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
this.
|
|
866
|
-
this.
|
|
867
|
-
this.
|
|
942
|
+
this.MessageId = 'MessageId' in params ? params.MessageId : null;
|
|
943
|
+
this.ToEmailAddress = 'ToEmailAddress' in params ? params.ToEmailAddress : null;
|
|
944
|
+
this.FromEmailAddress = 'FromEmailAddress' in params ? params.FromEmailAddress : null;
|
|
945
|
+
this.SendStatus = 'SendStatus' in params ? params.SendStatus : null;
|
|
946
|
+
this.DeliverStatus = 'DeliverStatus' in params ? params.DeliverStatus : null;
|
|
947
|
+
this.DeliverMessage = 'DeliverMessage' in params ? params.DeliverMessage : null;
|
|
948
|
+
this.RequestTime = 'RequestTime' in params ? params.RequestTime : null;
|
|
949
|
+
this.DeliverTime = 'DeliverTime' in params ? params.DeliverTime : null;
|
|
950
|
+
this.UserOpened = 'UserOpened' in params ? params.UserOpened : null;
|
|
951
|
+
this.UserClicked = 'UserClicked' in params ? params.UserClicked : null;
|
|
952
|
+
this.UserUnsubscribed = 'UserUnsubscribed' in params ? params.UserUnsubscribed : null;
|
|
953
|
+
this.UserComplainted = 'UserComplainted' in params ? params.UserComplainted : null;
|
|
954
|
+
this.UserComplained = 'UserComplained' in params ? params.UserComplained : null;
|
|
868
955
|
|
|
869
956
|
}
|
|
870
957
|
}
|
|
@@ -1115,6 +1202,34 @@ class DeleteEmailIdentityResponse extends AbstractModel {
|
|
|
1115
1202
|
}
|
|
1116
1203
|
}
|
|
1117
1204
|
|
|
1205
|
+
/**
|
|
1206
|
+
* DeleteBlackList request structure.
|
|
1207
|
+
* @class
|
|
1208
|
+
*/
|
|
1209
|
+
class DeleteBlackListRequest extends AbstractModel {
|
|
1210
|
+
constructor(){
|
|
1211
|
+
super();
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* List of email addresses to be unblocklisted. Enter at least one address.
|
|
1215
|
+
* @type {Array.<string> || null}
|
|
1216
|
+
*/
|
|
1217
|
+
this.EmailAddressList = null;
|
|
1218
|
+
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* @private
|
|
1223
|
+
*/
|
|
1224
|
+
deserialize(params) {
|
|
1225
|
+
if (!params) {
|
|
1226
|
+
return;
|
|
1227
|
+
}
|
|
1228
|
+
this.EmailAddressList = 'EmailAddressList' in params ? params.EmailAddressList : null;
|
|
1229
|
+
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1118
1233
|
/**
|
|
1119
1234
|
* DeleteEmailTemplate response structure.
|
|
1120
1235
|
* @class
|
|
@@ -1221,119 +1336,90 @@ class DeleteEmailTemplateRequest extends AbstractModel {
|
|
|
1221
1336
|
}
|
|
1222
1337
|
|
|
1223
1338
|
/**
|
|
1224
|
-
*
|
|
1339
|
+
* Reported spam data.
|
|
1225
1340
|
* @class
|
|
1226
1341
|
*/
|
|
1227
|
-
class
|
|
1342
|
+
class AbuseReport extends AbstractModel {
|
|
1228
1343
|
constructor(){
|
|
1229
1344
|
super();
|
|
1230
1345
|
|
|
1231
1346
|
/**
|
|
1232
|
-
*
|
|
1347
|
+
* Send time.
|
|
1233
1348
|
* @type {string || null}
|
|
1234
1349
|
*/
|
|
1235
|
-
this.
|
|
1350
|
+
this.DeliverTime = null;
|
|
1236
1351
|
|
|
1237
1352
|
/**
|
|
1238
|
-
*
|
|
1353
|
+
* Sender address.
|
|
1239
1354
|
* @type {string || null}
|
|
1240
1355
|
*/
|
|
1241
|
-
this.
|
|
1356
|
+
this.OriginalMailFrom = null;
|
|
1242
1357
|
|
|
1243
1358
|
/**
|
|
1244
|
-
*
|
|
1359
|
+
* Receive email.
|
|
1245
1360
|
* @type {string || null}
|
|
1246
1361
|
*/
|
|
1247
|
-
this.
|
|
1362
|
+
this.OriginalRcptTo = null;
|
|
1248
1363
|
|
|
1249
1364
|
/**
|
|
1250
|
-
*
|
|
1251
|
-
|
|
1252
|
-
1001: Internal system exception.
|
|
1253
|
-
1002: Internal system exception.
|
|
1254
|
-
1003: Internal system exception.
|
|
1255
|
-
1003: Internal system exception.
|
|
1256
|
-
1004: Email sending timed out.
|
|
1257
|
-
1005: Internal system exception.
|
|
1258
|
-
1006: You have sent too many emails to the same address in a short period.
|
|
1259
|
-
1007: The email address is in the blocklist.
|
|
1260
|
-
1008: The sender domain is rejected by the recipient.
|
|
1261
|
-
1009: Internal system exception.
|
|
1262
|
-
1010: The daily email sending limit is exceeded.
|
|
1263
|
-
1011: You have no permission to send custom content. Use a template.
|
|
1264
|
-
1013: The sender domain is unsubscribed from by the recipient.
|
|
1265
|
-
2001: No results were found.
|
|
1266
|
-
3007: The template ID is invalid or the template is unavailable.
|
|
1267
|
-
3008: The sender domain is temporarily blocked by the recipient domain.
|
|
1268
|
-
3009: You have no permission to use this template.
|
|
1269
|
-
3010: The format of the `TemplateData` field is incorrect.
|
|
1270
|
-
3014: The email cannot be sent because the sender domain is not verified.
|
|
1271
|
-
3020: The recipient email address is in the blocklist.
|
|
1272
|
-
3024: Failed to precheck the email address format.
|
|
1273
|
-
3030: Email sending is restricted temporarily due to a high bounce rate.
|
|
1274
|
-
3033: The account has insufficient balance or overdue payment.
|
|
1275
|
-
* @type {number || null}
|
|
1365
|
+
* Sender domain name.
|
|
1366
|
+
* @type {string || null}
|
|
1276
1367
|
*/
|
|
1277
|
-
this.
|
|
1368
|
+
this.FromDomain = null;
|
|
1278
1369
|
|
|
1279
1370
|
/**
|
|
1280
|
-
*
|
|
1281
|
-
|
|
1282
|
-
1: The email is delivered successfully. `DeliverTime` indicates the time when the email is delivered successfully.
|
|
1283
|
-
2: The email is discarded. `DeliverMessage` indicates the reason for discarding.
|
|
1284
|
-
3: The recipient's ESP rejects the email, probably because the email address does not exist or due to other reasons.
|
|
1285
|
-
8: The email is delayed by the ESP. `DeliverMessage` indicates the reason for delay.
|
|
1286
|
-
* @type {number || null}
|
|
1371
|
+
* Complaint time.
|
|
1372
|
+
* @type {string || null}
|
|
1287
1373
|
*/
|
|
1288
|
-
this.
|
|
1374
|
+
this.ComplainTime = null;
|
|
1289
1375
|
|
|
1290
1376
|
/**
|
|
1291
|
-
*
|
|
1377
|
+
* Recipient domain name.
|
|
1292
1378
|
* @type {string || null}
|
|
1293
1379
|
*/
|
|
1294
|
-
this.
|
|
1380
|
+
this.Mta = null;
|
|
1295
1381
|
|
|
1296
1382
|
/**
|
|
1297
|
-
*
|
|
1298
|
-
* @type {
|
|
1383
|
+
* Source IP
|
|
1384
|
+
* @type {string || null}
|
|
1299
1385
|
*/
|
|
1300
|
-
this.
|
|
1386
|
+
this.SourceIp = null;
|
|
1301
1387
|
|
|
1302
1388
|
/**
|
|
1303
|
-
*
|
|
1304
|
-
* @type {
|
|
1389
|
+
* Data time.
|
|
1390
|
+
* @type {string || null}
|
|
1305
1391
|
*/
|
|
1306
|
-
this.
|
|
1392
|
+
this.InsertTime = null;
|
|
1307
1393
|
|
|
1308
1394
|
/**
|
|
1309
|
-
*
|
|
1310
|
-
* @type {
|
|
1395
|
+
* Template ID
|
|
1396
|
+
* @type {string || null}
|
|
1311
1397
|
*/
|
|
1312
|
-
this.
|
|
1398
|
+
this.TemplateId = null;
|
|
1313
1399
|
|
|
1314
1400
|
/**
|
|
1315
|
-
*
|
|
1316
|
-
* @type {
|
|
1401
|
+
* bulkId
|
|
1402
|
+
* @type {string || null}
|
|
1317
1403
|
*/
|
|
1318
|
-
this.
|
|
1404
|
+
this.BulkId = null;
|
|
1319
1405
|
|
|
1320
1406
|
/**
|
|
1321
|
-
*
|
|
1322
|
-
* @type {
|
|
1407
|
+
* Message-Id in mail.
|
|
1408
|
+
* @type {string || null}
|
|
1323
1409
|
*/
|
|
1324
|
-
this.
|
|
1410
|
+
this.MessageId = null;
|
|
1325
1411
|
|
|
1326
1412
|
/**
|
|
1327
|
-
*
|
|
1328
|
-
* @type {
|
|
1413
|
+
* Complaint time.
|
|
1414
|
+
* @type {string || null}
|
|
1329
1415
|
*/
|
|
1330
|
-
this.
|
|
1416
|
+
this.AbuseTime = null;
|
|
1331
1417
|
|
|
1332
1418
|
/**
|
|
1333
|
-
*
|
|
1334
|
-
* @type {
|
|
1419
|
+
* Email subject.
|
|
1420
|
+
* @type {string || null}
|
|
1335
1421
|
*/
|
|
1336
|
-
this.
|
|
1422
|
+
this.Subject = null;
|
|
1337
1423
|
|
|
1338
1424
|
}
|
|
1339
1425
|
|
|
@@ -1344,19 +1430,19 @@ class SendEmailStatus extends AbstractModel {
|
|
|
1344
1430
|
if (!params) {
|
|
1345
1431
|
return;
|
|
1346
1432
|
}
|
|
1347
|
-
this.MessageId = 'MessageId' in params ? params.MessageId : null;
|
|
1348
|
-
this.ToEmailAddress = 'ToEmailAddress' in params ? params.ToEmailAddress : null;
|
|
1349
|
-
this.FromEmailAddress = 'FromEmailAddress' in params ? params.FromEmailAddress : null;
|
|
1350
|
-
this.SendStatus = 'SendStatus' in params ? params.SendStatus : null;
|
|
1351
|
-
this.DeliverStatus = 'DeliverStatus' in params ? params.DeliverStatus : null;
|
|
1352
|
-
this.DeliverMessage = 'DeliverMessage' in params ? params.DeliverMessage : null;
|
|
1353
|
-
this.RequestTime = 'RequestTime' in params ? params.RequestTime : null;
|
|
1354
1433
|
this.DeliverTime = 'DeliverTime' in params ? params.DeliverTime : null;
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1434
|
+
this.OriginalMailFrom = 'OriginalMailFrom' in params ? params.OriginalMailFrom : null;
|
|
1435
|
+
this.OriginalRcptTo = 'OriginalRcptTo' in params ? params.OriginalRcptTo : null;
|
|
1436
|
+
this.FromDomain = 'FromDomain' in params ? params.FromDomain : null;
|
|
1437
|
+
this.ComplainTime = 'ComplainTime' in params ? params.ComplainTime : null;
|
|
1438
|
+
this.Mta = 'Mta' in params ? params.Mta : null;
|
|
1439
|
+
this.SourceIp = 'SourceIp' in params ? params.SourceIp : null;
|
|
1440
|
+
this.InsertTime = 'InsertTime' in params ? params.InsertTime : null;
|
|
1441
|
+
this.TemplateId = 'TemplateId' in params ? params.TemplateId : null;
|
|
1442
|
+
this.BulkId = 'BulkId' in params ? params.BulkId : null;
|
|
1443
|
+
this.MessageId = 'MessageId' in params ? params.MessageId : null;
|
|
1444
|
+
this.AbuseTime = 'AbuseTime' in params ? params.AbuseTime : null;
|
|
1445
|
+
this.Subject = 'Subject' in params ? params.Subject : null;
|
|
1360
1446
|
|
|
1361
1447
|
}
|
|
1362
1448
|
}
|
|
@@ -1397,18 +1483,30 @@ class ListEmailTemplatesRequest extends AbstractModel {
|
|
|
1397
1483
|
}
|
|
1398
1484
|
|
|
1399
1485
|
/**
|
|
1400
|
-
*
|
|
1486
|
+
* GetAbuseReport response structure.
|
|
1401
1487
|
* @class
|
|
1402
1488
|
*/
|
|
1403
|
-
class
|
|
1489
|
+
class GetAbuseReportResponse extends AbstractModel {
|
|
1404
1490
|
constructor(){
|
|
1405
1491
|
super();
|
|
1406
1492
|
|
|
1407
1493
|
/**
|
|
1408
|
-
*
|
|
1409
|
-
* @type {Array.<
|
|
1494
|
+
* Log data.
|
|
1495
|
+
* @type {Array.<AbuseReport> || null}
|
|
1410
1496
|
*/
|
|
1411
|
-
this.
|
|
1497
|
+
this.Data = null;
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* Total quantity.
|
|
1501
|
+
* @type {number || null}
|
|
1502
|
+
*/
|
|
1503
|
+
this.TotalCount = null;
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* 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.
|
|
1507
|
+
* @type {string || null}
|
|
1508
|
+
*/
|
|
1509
|
+
this.RequestId = null;
|
|
1412
1510
|
|
|
1413
1511
|
}
|
|
1414
1512
|
|
|
@@ -1419,7 +1517,17 @@ class DeleteBlackListRequest extends AbstractModel {
|
|
|
1419
1517
|
if (!params) {
|
|
1420
1518
|
return;
|
|
1421
1519
|
}
|
|
1422
|
-
|
|
1520
|
+
|
|
1521
|
+
if (params.Data) {
|
|
1522
|
+
this.Data = new Array();
|
|
1523
|
+
for (let z in params.Data) {
|
|
1524
|
+
let obj = new AbuseReport();
|
|
1525
|
+
obj.deserialize(params.Data[z]);
|
|
1526
|
+
this.Data.push(obj);
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
|
|
1530
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
1423
1531
|
|
|
1424
1532
|
}
|
|
1425
1533
|
}
|
|
@@ -1836,6 +1944,60 @@ class ListEmailIdentitiesRequest extends AbstractModel {
|
|
|
1836
1944
|
}
|
|
1837
1945
|
}
|
|
1838
1946
|
|
|
1947
|
+
/**
|
|
1948
|
+
* GetEmailTemplate response structure.
|
|
1949
|
+
* @class
|
|
1950
|
+
*/
|
|
1951
|
+
class GetEmailTemplateResponse extends AbstractModel {
|
|
1952
|
+
constructor(){
|
|
1953
|
+
super();
|
|
1954
|
+
|
|
1955
|
+
/**
|
|
1956
|
+
* Template content.
|
|
1957
|
+
* @type {TemplateContent || null}
|
|
1958
|
+
*/
|
|
1959
|
+
this.TemplateContent = null;
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
* Template status. Valid values: `0` (approved); `1` (pending approval); `2` (rejected).
|
|
1963
|
+
* @type {number || null}
|
|
1964
|
+
*/
|
|
1965
|
+
this.TemplateStatus = null;
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* Template name
|
|
1969
|
+
* @type {string || null}
|
|
1970
|
+
*/
|
|
1971
|
+
this.TemplateName = null;
|
|
1972
|
+
|
|
1973
|
+
/**
|
|
1974
|
+
* 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.
|
|
1975
|
+
* @type {string || null}
|
|
1976
|
+
*/
|
|
1977
|
+
this.RequestId = null;
|
|
1978
|
+
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
/**
|
|
1982
|
+
* @private
|
|
1983
|
+
*/
|
|
1984
|
+
deserialize(params) {
|
|
1985
|
+
if (!params) {
|
|
1986
|
+
return;
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
if (params.TemplateContent) {
|
|
1990
|
+
let obj = new TemplateContent();
|
|
1991
|
+
obj.deserialize(params.TemplateContent)
|
|
1992
|
+
this.TemplateContent = obj;
|
|
1993
|
+
}
|
|
1994
|
+
this.TemplateStatus = 'TemplateStatus' in params ? params.TemplateStatus : null;
|
|
1995
|
+
this.TemplateName = 'TemplateName' in params ? params.TemplateName : null;
|
|
1996
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
1997
|
+
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
|
|
1839
2001
|
/**
|
|
1840
2002
|
* CreateReceiver response structure.
|
|
1841
2003
|
* @class
|
|
@@ -3128,6 +3290,90 @@ class CreateEmailAddressResponse extends AbstractModel {
|
|
|
3128
3290
|
}
|
|
3129
3291
|
}
|
|
3130
3292
|
|
|
3293
|
+
/**
|
|
3294
|
+
* GetAbuseReport request structure.
|
|
3295
|
+
* @class
|
|
3296
|
+
*/
|
|
3297
|
+
class GetAbuseReportRequest extends AbstractModel {
|
|
3298
|
+
constructor(){
|
|
3299
|
+
super();
|
|
3300
|
+
|
|
3301
|
+
/**
|
|
3302
|
+
* Start time.
|
|
3303
|
+
* @type {string || null}
|
|
3304
|
+
*/
|
|
3305
|
+
this.StartTime = null;
|
|
3306
|
+
|
|
3307
|
+
/**
|
|
3308
|
+
* End time.
|
|
3309
|
+
* @type {string || null}
|
|
3310
|
+
*/
|
|
3311
|
+
this.EndTime = null;
|
|
3312
|
+
|
|
3313
|
+
/**
|
|
3314
|
+
* Offset.
|
|
3315
|
+
* @type {number || null}
|
|
3316
|
+
*/
|
|
3317
|
+
this.Offset = null;
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* Limit quantity (default: 1000).
|
|
3321
|
+
* @type {number || null}
|
|
3322
|
+
*/
|
|
3323
|
+
this.Limit = null;
|
|
3324
|
+
|
|
3325
|
+
/**
|
|
3326
|
+
* Sender domain name.
|
|
3327
|
+
* @type {string || null}
|
|
3328
|
+
*/
|
|
3329
|
+
this.FromDomain = null;
|
|
3330
|
+
|
|
3331
|
+
/**
|
|
3332
|
+
* Sender address.
|
|
3333
|
+
* @type {string || null}
|
|
3334
|
+
*/
|
|
3335
|
+
this.FromAddress = null;
|
|
3336
|
+
|
|
3337
|
+
/**
|
|
3338
|
+
* Recipient domain name.
|
|
3339
|
+
* @type {string || null}
|
|
3340
|
+
*/
|
|
3341
|
+
this.Mta = null;
|
|
3342
|
+
|
|
3343
|
+
/**
|
|
3344
|
+
* Receive email.
|
|
3345
|
+
* @type {string || null}
|
|
3346
|
+
*/
|
|
3347
|
+
this.ToAddress = null;
|
|
3348
|
+
|
|
3349
|
+
/**
|
|
3350
|
+
* Template ID
|
|
3351
|
+
* @type {string || null}
|
|
3352
|
+
*/
|
|
3353
|
+
this.TemplateId = null;
|
|
3354
|
+
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
/**
|
|
3358
|
+
* @private
|
|
3359
|
+
*/
|
|
3360
|
+
deserialize(params) {
|
|
3361
|
+
if (!params) {
|
|
3362
|
+
return;
|
|
3363
|
+
}
|
|
3364
|
+
this.StartTime = 'StartTime' in params ? params.StartTime : null;
|
|
3365
|
+
this.EndTime = 'EndTime' in params ? params.EndTime : null;
|
|
3366
|
+
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
3367
|
+
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
3368
|
+
this.FromDomain = 'FromDomain' in params ? params.FromDomain : null;
|
|
3369
|
+
this.FromAddress = 'FromAddress' in params ? params.FromAddress : null;
|
|
3370
|
+
this.Mta = 'Mta' in params ? params.Mta : null;
|
|
3371
|
+
this.ToAddress = 'ToAddress' in params ? params.ToAddress : null;
|
|
3372
|
+
this.TemplateId = 'TemplateId' in params ? params.TemplateId : null;
|
|
3373
|
+
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3131
3377
|
/**
|
|
3132
3378
|
* DeleteAddressUnsubscribeConfig response structure.
|
|
3133
3379
|
* @class
|
|
@@ -4268,17 +4514,18 @@ module.exports = {
|
|
|
4268
4514
|
CreateReceiverDetailWithDataRequest: CreateReceiverDetailWithDataRequest,
|
|
4269
4515
|
TimedEmailParam: TimedEmailParam,
|
|
4270
4516
|
DNSAttributes: DNSAttributes,
|
|
4271
|
-
|
|
4517
|
+
SendEmailStatus: SendEmailStatus,
|
|
4272
4518
|
ListAddressUnsubscribeConfigResponse: ListAddressUnsubscribeConfigResponse,
|
|
4273
4519
|
SendEmailRequest: SendEmailRequest,
|
|
4274
4520
|
UpdateEmailIdentityRequest: UpdateEmailIdentityRequest,
|
|
4275
4521
|
DeleteEmailIdentityResponse: DeleteEmailIdentityResponse,
|
|
4522
|
+
DeleteBlackListRequest: DeleteBlackListRequest,
|
|
4276
4523
|
DeleteEmailTemplateResponse: DeleteEmailTemplateResponse,
|
|
4277
4524
|
ListCustomBlacklistRequest: ListCustomBlacklistRequest,
|
|
4278
4525
|
DeleteEmailTemplateRequest: DeleteEmailTemplateRequest,
|
|
4279
|
-
|
|
4526
|
+
AbuseReport: AbuseReport,
|
|
4280
4527
|
ListEmailTemplatesRequest: ListEmailTemplatesRequest,
|
|
4281
|
-
|
|
4528
|
+
GetAbuseReportResponse: GetAbuseReportResponse,
|
|
4282
4529
|
ReceiverInputData: ReceiverInputData,
|
|
4283
4530
|
ReceiverDetail: ReceiverDetail,
|
|
4284
4531
|
ListBlackEmailAddressResponse: ListBlackEmailAddressResponse,
|
|
@@ -4288,6 +4535,7 @@ module.exports = {
|
|
|
4288
4535
|
DeleteCustomBlackListRequest: DeleteCustomBlackListRequest,
|
|
4289
4536
|
UpdateAddressUnsubscribeConfigRequest: UpdateAddressUnsubscribeConfigRequest,
|
|
4290
4537
|
ListEmailIdentitiesRequest: ListEmailIdentitiesRequest,
|
|
4538
|
+
GetEmailTemplateResponse: GetEmailTemplateResponse,
|
|
4291
4539
|
CreateReceiverResponse: CreateReceiverResponse,
|
|
4292
4540
|
UpdateEmailSmtpPassWordResponse: UpdateEmailSmtpPassWordResponse,
|
|
4293
4541
|
ListReceiversRequest: ListReceiversRequest,
|
|
@@ -4317,6 +4565,7 @@ module.exports = {
|
|
|
4317
4565
|
ListReceiverDetailsRequest: ListReceiverDetailsRequest,
|
|
4318
4566
|
CreateEmailIdentityResponse: CreateEmailIdentityResponse,
|
|
4319
4567
|
CreateEmailAddressResponse: CreateEmailAddressResponse,
|
|
4568
|
+
GetAbuseReportRequest: GetAbuseReportRequest,
|
|
4320
4569
|
DeleteAddressUnsubscribeConfigResponse: DeleteAddressUnsubscribeConfigResponse,
|
|
4321
4570
|
BatchSendEmailRequest: BatchSendEmailRequest,
|
|
4322
4571
|
CreateCustomBlacklistRequest: CreateCustomBlacklistRequest,
|
|
@@ -34,17 +34,18 @@ const UpdateEmailTemplateResponse = models.UpdateEmailTemplateResponse;
|
|
|
34
34
|
const CreateReceiverDetailWithDataRequest = models.CreateReceiverDetailWithDataRequest;
|
|
35
35
|
const TimedEmailParam = models.TimedEmailParam;
|
|
36
36
|
const DNSAttributes = models.DNSAttributes;
|
|
37
|
-
const
|
|
37
|
+
const SendEmailStatus = models.SendEmailStatus;
|
|
38
38
|
const ListAddressUnsubscribeConfigResponse = models.ListAddressUnsubscribeConfigResponse;
|
|
39
39
|
const SendEmailRequest = models.SendEmailRequest;
|
|
40
40
|
const UpdateEmailIdentityRequest = models.UpdateEmailIdentityRequest;
|
|
41
41
|
const DeleteEmailIdentityResponse = models.DeleteEmailIdentityResponse;
|
|
42
|
+
const DeleteBlackListRequest = models.DeleteBlackListRequest;
|
|
42
43
|
const DeleteEmailTemplateResponse = models.DeleteEmailTemplateResponse;
|
|
43
44
|
const ListCustomBlacklistRequest = models.ListCustomBlacklistRequest;
|
|
44
45
|
const DeleteEmailTemplateRequest = models.DeleteEmailTemplateRequest;
|
|
45
|
-
const
|
|
46
|
+
const AbuseReport = models.AbuseReport;
|
|
46
47
|
const ListEmailTemplatesRequest = models.ListEmailTemplatesRequest;
|
|
47
|
-
const
|
|
48
|
+
const GetAbuseReportResponse = models.GetAbuseReportResponse;
|
|
48
49
|
const ReceiverInputData = models.ReceiverInputData;
|
|
49
50
|
const ReceiverDetail = models.ReceiverDetail;
|
|
50
51
|
const ListBlackEmailAddressResponse = models.ListBlackEmailAddressResponse;
|
|
@@ -54,6 +55,7 @@ const UpdateEmailSmtpPassWordRequest = models.UpdateEmailSmtpPassWordRequest;
|
|
|
54
55
|
const DeleteCustomBlackListRequest = models.DeleteCustomBlackListRequest;
|
|
55
56
|
const UpdateAddressUnsubscribeConfigRequest = models.UpdateAddressUnsubscribeConfigRequest;
|
|
56
57
|
const ListEmailIdentitiesRequest = models.ListEmailIdentitiesRequest;
|
|
58
|
+
const GetEmailTemplateResponse = models.GetEmailTemplateResponse;
|
|
57
59
|
const CreateReceiverResponse = models.CreateReceiverResponse;
|
|
58
60
|
const UpdateEmailSmtpPassWordResponse = models.UpdateEmailSmtpPassWordResponse;
|
|
59
61
|
const ListReceiversRequest = models.ListReceiversRequest;
|
|
@@ -83,6 +85,7 @@ const ListCustomBlacklistResponse = models.ListCustomBlacklistResponse;
|
|
|
83
85
|
const ListReceiverDetailsRequest = models.ListReceiverDetailsRequest;
|
|
84
86
|
const CreateEmailIdentityResponse = models.CreateEmailIdentityResponse;
|
|
85
87
|
const CreateEmailAddressResponse = models.CreateEmailAddressResponse;
|
|
88
|
+
const GetAbuseReportRequest = models.GetAbuseReportRequest;
|
|
86
89
|
const DeleteAddressUnsubscribeConfigResponse = models.DeleteAddressUnsubscribeConfigResponse;
|
|
87
90
|
const BatchSendEmailRequest = models.BatchSendEmailRequest;
|
|
88
91
|
const CreateCustomBlacklistRequest = models.CreateCustomBlacklistRequest;
|
|
@@ -218,14 +221,14 @@ class SesClient extends AbstractClient {
|
|
|
218
221
|
}
|
|
219
222
|
|
|
220
223
|
/**
|
|
221
|
-
*
|
|
222
|
-
* @param {
|
|
223
|
-
* @param {function(string,
|
|
224
|
+
* This API is used to get the email sending statistics over a recent period, including data on sent emails, delivery success rate, open rate, bounce rate, and so on.
|
|
225
|
+
* @param {GetStatisticsReportRequest} req
|
|
226
|
+
* @param {function(string, GetStatisticsReportResponse):void} cb
|
|
224
227
|
* @public
|
|
225
228
|
*/
|
|
226
|
-
|
|
227
|
-
let resp = new
|
|
228
|
-
this.request("
|
|
229
|
+
GetStatisticsReport(req, cb) {
|
|
230
|
+
let resp = new GetStatisticsReportResponse();
|
|
231
|
+
this.request("GetStatisticsReport", req, resp, cb);
|
|
229
232
|
}
|
|
230
233
|
|
|
231
234
|
/**
|
|
@@ -449,6 +452,17 @@ Note: Only an approved template can be used to send emails.
|
|
|
449
452
|
this.request("SendEmail", req, resp, cb);
|
|
450
453
|
}
|
|
451
454
|
|
|
455
|
+
/**
|
|
456
|
+
* Retrieve reported spam data.
|
|
457
|
+
* @param {GetAbuseReportRequest} req
|
|
458
|
+
* @param {function(string, GetAbuseReportResponse):void} cb
|
|
459
|
+
* @public
|
|
460
|
+
*/
|
|
461
|
+
GetAbuseReport(req, cb) {
|
|
462
|
+
let resp = new GetAbuseReportResponse();
|
|
463
|
+
this.request("GetAbuseReport", req, resp, cb);
|
|
464
|
+
}
|
|
465
|
+
|
|
452
466
|
/**
|
|
453
467
|
* Retrieve the custom blocklist.
|
|
454
468
|
* @param {ListCustomBlacklistRequest} req
|
|
@@ -461,14 +475,14 @@ Note: Only an approved template can be used to send emails.
|
|
|
461
475
|
}
|
|
462
476
|
|
|
463
477
|
/**
|
|
464
|
-
*
|
|
465
|
-
* @param {
|
|
466
|
-
* @param {function(string,
|
|
478
|
+
* The API is used to get blocklisted addresses. In the case of a hard bounce, Tencent Cloud will blocklist the recipient address and do not allow any user to send emails to this address. If you confirm that this is a misjudgment, you can remove it from the blocklist.
|
|
479
|
+
* @param {ListBlackEmailAddressRequest} req
|
|
480
|
+
* @param {function(string, ListBlackEmailAddressResponse):void} cb
|
|
467
481
|
* @public
|
|
468
482
|
*/
|
|
469
|
-
|
|
470
|
-
let resp = new
|
|
471
|
-
this.request("
|
|
483
|
+
ListBlackEmailAddress(req, cb) {
|
|
484
|
+
let resp = new ListBlackEmailAddressResponse();
|
|
485
|
+
this.request("ListBlackEmailAddress", req, resp, cb);
|
|
472
486
|
}
|
|
473
487
|
|
|
474
488
|
/**
|