tencentcloud-sdk-nodejs-intl-en 3.0.1316 → 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
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;
|