tencentcloud-sdk-nodejs-intl-en 3.0.758 → 3.0.760
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/ciam/index.js +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cynosdb/v20190107/models.js +50 -5
- package/tencentcloud/dts/index.js +1 -1
- package/tencentcloud/mdl/v20200326/models.js +22 -1
- package/tencentcloud/mps/v20190612/models.js +107 -10
- package/tencentcloud/mps/v20190612/mps_client.js +1 -0
- package/tencentcloud/sms/index.js +1 -1
- package/tencentcloud/tem/index.js +1 -1
- package/tencentcloud/vm/index.js +1 -1
- package/tencentcloud/vpc/v20170312/models.js +244 -60
- package/tencentcloud/vpc/v20170312/vpc_client.js +52 -26
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.760";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -1738,7 +1738,8 @@ Note: u200dThis field may return null, indicating that no valid values can be ob
|
|
|
1738
1738
|
this.MaintainWeekDays = null;
|
|
1739
1739
|
|
|
1740
1740
|
/**
|
|
1741
|
-
*
|
|
1741
|
+
* Serverless instance u200denablement status
|
|
1742
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
1742
1743
|
* @type {string || null}
|
|
1743
1744
|
*/
|
|
1744
1745
|
this.ServerlessStatus = null;
|
|
@@ -4990,6 +4991,30 @@ class InstanceInitInfo extends AbstractModel {
|
|
|
4990
4991
|
*/
|
|
4991
4992
|
this.InstanceCount = null;
|
|
4992
4993
|
|
|
4994
|
+
/**
|
|
4995
|
+
* Minimum number of serverless instances. Value range: 1-15.
|
|
4996
|
+
* @type {number || null}
|
|
4997
|
+
*/
|
|
4998
|
+
this.MinRoCount = null;
|
|
4999
|
+
|
|
5000
|
+
/**
|
|
5001
|
+
* Maximum number of serverless instances. Value range: 1-15.
|
|
5002
|
+
* @type {number || null}
|
|
5003
|
+
*/
|
|
5004
|
+
this.MaxRoCount = null;
|
|
5005
|
+
|
|
5006
|
+
/**
|
|
5007
|
+
* Minimum specifications for serverless instance
|
|
5008
|
+
* @type {number || null}
|
|
5009
|
+
*/
|
|
5010
|
+
this.MinRoCpu = null;
|
|
5011
|
+
|
|
5012
|
+
/**
|
|
5013
|
+
* Maximum specifications for serverless instance
|
|
5014
|
+
* @type {number || null}
|
|
5015
|
+
*/
|
|
5016
|
+
this.MaxRoCpu = null;
|
|
5017
|
+
|
|
4993
5018
|
}
|
|
4994
5019
|
|
|
4995
5020
|
/**
|
|
@@ -5003,6 +5028,10 @@ class InstanceInitInfo extends AbstractModel {
|
|
|
5003
5028
|
this.Memory = 'Memory' in params ? params.Memory : null;
|
|
5004
5029
|
this.InstanceType = 'InstanceType' in params ? params.InstanceType : null;
|
|
5005
5030
|
this.InstanceCount = 'InstanceCount' in params ? params.InstanceCount : null;
|
|
5031
|
+
this.MinRoCount = 'MinRoCount' in params ? params.MinRoCount : null;
|
|
5032
|
+
this.MaxRoCount = 'MaxRoCount' in params ? params.MaxRoCount : null;
|
|
5033
|
+
this.MinRoCpu = 'MinRoCpu' in params ? params.MinRoCpu : null;
|
|
5034
|
+
this.MaxRoCpu = 'MaxRoCpu' in params ? params.MaxRoCpu : null;
|
|
5006
5035
|
|
|
5007
5036
|
}
|
|
5008
5037
|
}
|
|
@@ -6070,7 +6099,8 @@ class BindInstanceInfo extends AbstractModel {
|
|
|
6070
6099
|
super();
|
|
6071
6100
|
|
|
6072
6101
|
/**
|
|
6073
|
-
*
|
|
6102
|
+
* ID of the bound cluster
|
|
6103
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
6074
6104
|
* @type {string || null}
|
|
6075
6105
|
*/
|
|
6076
6106
|
this.InstanceId = null;
|
|
@@ -6087,6 +6117,13 @@ class BindInstanceInfo extends AbstractModel {
|
|
|
6087
6117
|
*/
|
|
6088
6118
|
this.InstanceType = null;
|
|
6089
6119
|
|
|
6120
|
+
/**
|
|
6121
|
+
* ID of the instance in the bound cluster
|
|
6122
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
6123
|
+
* @type {Array.<string> || null}
|
|
6124
|
+
*/
|
|
6125
|
+
this.ExtendIds = null;
|
|
6126
|
+
|
|
6090
6127
|
}
|
|
6091
6128
|
|
|
6092
6129
|
/**
|
|
@@ -6099,6 +6136,7 @@ class BindInstanceInfo extends AbstractModel {
|
|
|
6099
6136
|
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
6100
6137
|
this.InstanceRegion = 'InstanceRegion' in params ? params.InstanceRegion : null;
|
|
6101
6138
|
this.InstanceType = 'InstanceType' in params ? params.InstanceType : null;
|
|
6139
|
+
this.ExtendIds = 'ExtendIds' in params ? params.ExtendIds : null;
|
|
6102
6140
|
|
|
6103
6141
|
}
|
|
6104
6142
|
}
|
|
@@ -8297,7 +8335,7 @@ class Addr extends AbstractModel {
|
|
|
8297
8335
|
super();
|
|
8298
8336
|
|
|
8299
8337
|
/**
|
|
8300
|
-
* IP
|
|
8338
|
+
* IP address
|
|
8301
8339
|
* @type {string || null}
|
|
8302
8340
|
*/
|
|
8303
8341
|
this.IP = null;
|
|
@@ -13323,7 +13361,7 @@ class DescribeResourcePackageDetailRequest extends AbstractModel {
|
|
|
13323
13361
|
this.PackageId = null;
|
|
13324
13362
|
|
|
13325
13363
|
/**
|
|
13326
|
-
*
|
|
13364
|
+
* Cluster ID
|
|
13327
13365
|
* @type {Array.<string> || null}
|
|
13328
13366
|
*/
|
|
13329
13367
|
this.ClusterIds = null;
|
|
@@ -13352,6 +13390,12 @@ class DescribeResourcePackageDetailRequest extends AbstractModel {
|
|
|
13352
13390
|
*/
|
|
13353
13391
|
this.Limit = null;
|
|
13354
13392
|
|
|
13393
|
+
/**
|
|
13394
|
+
* Instance D
|
|
13395
|
+
* @type {Array.<string> || null}
|
|
13396
|
+
*/
|
|
13397
|
+
this.InstanceIds = null;
|
|
13398
|
+
|
|
13355
13399
|
}
|
|
13356
13400
|
|
|
13357
13401
|
/**
|
|
@@ -13367,6 +13411,7 @@ class DescribeResourcePackageDetailRequest extends AbstractModel {
|
|
|
13367
13411
|
this.EndTime = 'EndTime' in params ? params.EndTime : null;
|
|
13368
13412
|
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
13369
13413
|
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
13414
|
+
this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
|
|
13370
13415
|
|
|
13371
13416
|
}
|
|
13372
13417
|
}
|
|
@@ -14555,7 +14600,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
14555
14600
|
this.Vport = null;
|
|
14556
14601
|
|
|
14557
14602
|
/**
|
|
14558
|
-
* vport
|
|
14603
|
+
* VIP u200dand vport of the read-only instance in a cluster
|
|
14559
14604
|
* @type {Array.<Addr> || null}
|
|
14560
14605
|
*/
|
|
14561
14606
|
this.RoAddr = null;
|
|
@@ -2737,7 +2737,7 @@ class HlsRemuxSettingsInfo extends AbstractModel {
|
|
|
2737
2737
|
this.PdtDuration = null;
|
|
2738
2738
|
|
|
2739
2739
|
/**
|
|
2740
|
-
* Audio/Video packaging scheme. Valid values: `SEPARATE`, `MERGE
|
|
2740
|
+
* Audio/Video packaging scheme. Valid values: `SEPARATE`, `MERGE`. Default value is: SEPARATE.
|
|
2741
2741
|
* @type {string || null}
|
|
2742
2742
|
*/
|
|
2743
2743
|
this.Scheme = null;
|
|
@@ -2755,6 +2755,24 @@ Currently, fMP4 segments do not support DRM or time shifting.
|
|
|
2755
2755
|
*/
|
|
2756
2756
|
this.H265PackageType = null;
|
|
2757
2757
|
|
|
2758
|
+
/**
|
|
2759
|
+
*
|
|
2760
|
+
* @type {number || null}
|
|
2761
|
+
*/
|
|
2762
|
+
this.LowLatency = null;
|
|
2763
|
+
|
|
2764
|
+
/**
|
|
2765
|
+
*
|
|
2766
|
+
* @type {number || null}
|
|
2767
|
+
*/
|
|
2768
|
+
this.PartialSegmentDuration = null;
|
|
2769
|
+
|
|
2770
|
+
/**
|
|
2771
|
+
*
|
|
2772
|
+
* @type {number || null}
|
|
2773
|
+
*/
|
|
2774
|
+
this.PartialSegmentPlaySite = null;
|
|
2775
|
+
|
|
2758
2776
|
}
|
|
2759
2777
|
|
|
2760
2778
|
/**
|
|
@@ -2771,6 +2789,9 @@ Currently, fMP4 segments do not support DRM or time shifting.
|
|
|
2771
2789
|
this.Scheme = 'Scheme' in params ? params.Scheme : null;
|
|
2772
2790
|
this.SegmentType = 'SegmentType' in params ? params.SegmentType : null;
|
|
2773
2791
|
this.H265PackageType = 'H265PackageType' in params ? params.H265PackageType : null;
|
|
2792
|
+
this.LowLatency = 'LowLatency' in params ? params.LowLatency : null;
|
|
2793
|
+
this.PartialSegmentDuration = 'PartialSegmentDuration' in params ? params.PartialSegmentDuration : null;
|
|
2794
|
+
this.PartialSegmentPlaySite = 'PartialSegmentPlaySite' in params ? params.PartialSegmentPlaySite : null;
|
|
2774
2795
|
|
|
2775
2796
|
}
|
|
2776
2797
|
}
|
|
@@ -364,13 +364,15 @@ class OverrideTranscodeParameter extends AbstractModel {
|
|
|
364
364
|
this.AudioTemplate = null;
|
|
365
365
|
|
|
366
366
|
/**
|
|
367
|
-
*
|
|
367
|
+
* The TSC transcoding parameters.
|
|
368
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
368
369
|
* @type {TEHDConfigForUpdate || null}
|
|
369
370
|
*/
|
|
370
371
|
this.TEHDConfig = null;
|
|
371
372
|
|
|
372
373
|
/**
|
|
373
374
|
* The subtitle settings.
|
|
375
|
+
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
|
374
376
|
* @type {SubtitleTemplate || null}
|
|
375
377
|
*/
|
|
376
378
|
this.SubtitleTemplate = null;
|
|
@@ -382,6 +384,20 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
382
384
|
*/
|
|
383
385
|
this.AddonAudioStream = null;
|
|
384
386
|
|
|
387
|
+
/**
|
|
388
|
+
* An extended field for transcoding.
|
|
389
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
390
|
+
* @type {string || null}
|
|
391
|
+
*/
|
|
392
|
+
this.StdExtInfo = null;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* The subtitle file to add.
|
|
396
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
397
|
+
* @type {Array.<AddOnSubtitle> || null}
|
|
398
|
+
*/
|
|
399
|
+
this.AddOnSubtitles = null;
|
|
400
|
+
|
|
385
401
|
}
|
|
386
402
|
|
|
387
403
|
/**
|
|
@@ -427,6 +443,16 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
427
443
|
this.AddonAudioStream.push(obj);
|
|
428
444
|
}
|
|
429
445
|
}
|
|
446
|
+
this.StdExtInfo = 'StdExtInfo' in params ? params.StdExtInfo : null;
|
|
447
|
+
|
|
448
|
+
if (params.AddOnSubtitles) {
|
|
449
|
+
this.AddOnSubtitles = new Array();
|
|
450
|
+
for (let z in params.AddOnSubtitles) {
|
|
451
|
+
let obj = new AddOnSubtitle();
|
|
452
|
+
obj.deserialize(params.AddOnSubtitles[z]);
|
|
453
|
+
this.AddOnSubtitles.push(obj);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
430
456
|
|
|
431
457
|
}
|
|
432
458
|
}
|
|
@@ -13852,44 +13878,50 @@ class SubtitleTemplate extends AbstractModel {
|
|
|
13852
13878
|
|
|
13853
13879
|
/**
|
|
13854
13880
|
* The URL of the subtitles to add to the video.
|
|
13881
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
13855
13882
|
* @type {string || null}
|
|
13856
13883
|
*/
|
|
13857
13884
|
this.Path = null;
|
|
13858
13885
|
|
|
13859
13886
|
/**
|
|
13860
13887
|
* The subtitle track to add to the video. If both `Path` and `StreamIndex` are specified, `Path` will be used. You need to specify at least one of the two parameters.
|
|
13888
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
13861
13889
|
* @type {number || null}
|
|
13862
13890
|
*/
|
|
13863
13891
|
this.StreamIndex = null;
|
|
13864
13892
|
|
|
13865
13893
|
/**
|
|
13866
13894
|
* The font. Valid values:
|
|
13867
|
-
<li
|
|
13868
|
-
<li
|
|
13869
|
-
<li
|
|
13870
|
-
<li
|
|
13895
|
+
<li>`hei.ttf`: Heiti.</li>
|
|
13896
|
+
<li>`song.ttf`: Songti.</li>
|
|
13897
|
+
<li>`simkai.ttf`: Kaiti.</li>
|
|
13898
|
+
<li>`arial.ttf`: Arial.</li>
|
|
13871
13899
|
The default is `hei.ttf`.
|
|
13900
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
13872
13901
|
* @type {string || null}
|
|
13873
13902
|
*/
|
|
13874
13903
|
this.FontType = null;
|
|
13875
13904
|
|
|
13876
13905
|
/**
|
|
13877
13906
|
* The font size (pixels). If this is not specified, the font size in the subtitle file will be used.
|
|
13907
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
13878
13908
|
* @type {string || null}
|
|
13879
13909
|
*/
|
|
13880
13910
|
this.FontSize = null;
|
|
13881
13911
|
|
|
13882
13912
|
/**
|
|
13883
13913
|
* The font color in 0xRRGGBB format. Default value: 0xFFFFFF (white).
|
|
13914
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
13884
13915
|
* @type {string || null}
|
|
13885
13916
|
*/
|
|
13886
13917
|
this.FontColor = null;
|
|
13887
13918
|
|
|
13888
13919
|
/**
|
|
13889
13920
|
* The text transparency. Value range: 0-1.
|
|
13890
|
-
<li
|
|
13891
|
-
<li
|
|
13921
|
+
<li>`0`: Fully transparent.</li>
|
|
13922
|
+
<li>`1`: u200dFully opaque.</li>
|
|
13892
13923
|
Default value: 1.
|
|
13924
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
13893
13925
|
* @type {number || null}
|
|
13894
13926
|
*/
|
|
13895
13927
|
this.FontAlpha = null;
|
|
@@ -15428,15 +15460,18 @@ class TEHDConfigForUpdate extends AbstractModel {
|
|
|
15428
15460
|
super();
|
|
15429
15461
|
|
|
15430
15462
|
/**
|
|
15431
|
-
*
|
|
15432
|
-
<li
|
|
15463
|
+
* The TSC type. Valid values:
|
|
15464
|
+
<li>`TEHD-100`: TSC-100 (video TSC). </li>
|
|
15465
|
+
<li>`TEHD-200`: TSC-200 (audio TSC). </li>
|
|
15433
15466
|
If this parameter is left blank, no modification will be made.
|
|
15467
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
15434
15468
|
* @type {string || null}
|
|
15435
15469
|
*/
|
|
15436
15470
|
this.Type = null;
|
|
15437
15471
|
|
|
15438
15472
|
/**
|
|
15439
|
-
*
|
|
15473
|
+
* u200dThe maximum video bitrate. If this parameter is not specified, no modifications will be made.
|
|
15474
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
15440
15475
|
* @type {number || null}
|
|
15441
15476
|
*/
|
|
15442
15477
|
this.MaxVideoBitrate = null;
|
|
@@ -17361,6 +17396,13 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
17361
17396
|
*/
|
|
17362
17397
|
this.SegmentObjectName = null;
|
|
17363
17398
|
|
|
17399
|
+
/**
|
|
17400
|
+
* The subtitle file to add.
|
|
17401
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
17402
|
+
* @type {Array.<AddOnSubtitle> || null}
|
|
17403
|
+
*/
|
|
17404
|
+
this.AddOnSubtitles = null;
|
|
17405
|
+
|
|
17364
17406
|
}
|
|
17365
17407
|
|
|
17366
17408
|
/**
|
|
@@ -17390,6 +17432,15 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
17390
17432
|
this.SubStreamObjectName = 'SubStreamObjectName' in params ? params.SubStreamObjectName : null;
|
|
17391
17433
|
this.SegmentObjectName = 'SegmentObjectName' in params ? params.SegmentObjectName : null;
|
|
17392
17434
|
|
|
17435
|
+
if (params.AddOnSubtitles) {
|
|
17436
|
+
this.AddOnSubtitles = new Array();
|
|
17437
|
+
for (let z in params.AddOnSubtitles) {
|
|
17438
|
+
let obj = new AddOnSubtitle();
|
|
17439
|
+
obj.deserialize(params.AddOnSubtitles[z]);
|
|
17440
|
+
this.AddOnSubtitles.push(obj);
|
|
17441
|
+
}
|
|
17442
|
+
}
|
|
17443
|
+
|
|
17393
17444
|
}
|
|
17394
17445
|
}
|
|
17395
17446
|
|
|
@@ -20000,6 +20051,51 @@ You can select multiple elements, which are connected by OR logic. If a usage co
|
|
|
20000
20051
|
}
|
|
20001
20052
|
}
|
|
20002
20053
|
|
|
20054
|
+
/**
|
|
20055
|
+
* The information of the subtitles to add.
|
|
20056
|
+
* @class
|
|
20057
|
+
*/
|
|
20058
|
+
class AddOnSubtitle extends AbstractModel {
|
|
20059
|
+
constructor(){
|
|
20060
|
+
super();
|
|
20061
|
+
|
|
20062
|
+
/**
|
|
20063
|
+
* The mode. Valid values:
|
|
20064
|
+
<li>`subtitle-stream`: Add a subtitle track.</li>
|
|
20065
|
+
<li>`close-caption-708`: u200dEmbed EA-708 subtitles in SEI frames.</li>
|
|
20066
|
+
<li>`close-caption-608`: Embed CEA-608 subtitles in SEI frames.</li>
|
|
20067
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
20068
|
+
* @type {string || null}
|
|
20069
|
+
*/
|
|
20070
|
+
this.Type = null;
|
|
20071
|
+
|
|
20072
|
+
/**
|
|
20073
|
+
* The subtitle file.
|
|
20074
|
+
Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
|
|
20075
|
+
* @type {MediaInputInfo || null}
|
|
20076
|
+
*/
|
|
20077
|
+
this.Subtitle = null;
|
|
20078
|
+
|
|
20079
|
+
}
|
|
20080
|
+
|
|
20081
|
+
/**
|
|
20082
|
+
* @private
|
|
20083
|
+
*/
|
|
20084
|
+
deserialize(params) {
|
|
20085
|
+
if (!params) {
|
|
20086
|
+
return;
|
|
20087
|
+
}
|
|
20088
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
20089
|
+
|
|
20090
|
+
if (params.Subtitle) {
|
|
20091
|
+
let obj = new MediaInputInfo();
|
|
20092
|
+
obj.deserialize(params.Subtitle)
|
|
20093
|
+
this.Subtitle = obj;
|
|
20094
|
+
}
|
|
20095
|
+
|
|
20096
|
+
}
|
|
20097
|
+
}
|
|
20098
|
+
|
|
20003
20099
|
/**
|
|
20004
20100
|
* The information of an AWS SQS queue.
|
|
20005
20101
|
* @class
|
|
@@ -24292,6 +24388,7 @@ module.exports = {
|
|
|
24292
24388
|
AiReviewProhibitedOcrTaskInput: AiReviewProhibitedOcrTaskInput,
|
|
24293
24389
|
DeleteWatermarkTemplateRequest: DeleteWatermarkTemplateRequest,
|
|
24294
24390
|
DescribeWordSamplesRequest: DescribeWordSamplesRequest,
|
|
24391
|
+
AddOnSubtitle: AddOnSubtitle,
|
|
24295
24392
|
AwsSQS: AwsSQS,
|
|
24296
24393
|
LiveStreamProcessTask: LiveStreamProcessTask,
|
|
24297
24394
|
QualityControlData: QualityControlData,
|
|
@@ -363,6 +363,7 @@ const ModifyImageSpriteTemplateRequest = models.ModifyImageSpriteTemplateRequest
|
|
|
363
363
|
const AiReviewProhibitedOcrTaskInput = models.AiReviewProhibitedOcrTaskInput;
|
|
364
364
|
const DeleteWatermarkTemplateRequest = models.DeleteWatermarkTemplateRequest;
|
|
365
365
|
const DescribeWordSamplesRequest = models.DescribeWordSamplesRequest;
|
|
366
|
+
const AddOnSubtitle = models.AddOnSubtitle;
|
|
366
367
|
const AwsSQS = models.AwsSQS;
|
|
367
368
|
const LiveStreamProcessTask = models.LiveStreamProcessTask;
|
|
368
369
|
const QualityControlData = models.QualityControlData;
|
package/tencentcloud/vm/index.js
CHANGED
|
@@ -16,6 +16,34 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const AbstractModel = require("../../common/abstract_model");
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* GenerateVpnConnectionDefaultHealthCheckIp request structure.
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class GenerateVpnConnectionDefaultHealthCheckIpRequest extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* VPN gateway ID, such as `vpngw-1w9tue3d`
|
|
29
|
+
* @type {string || null}
|
|
30
|
+
*/
|
|
31
|
+
this.VpnGatewayId = null;
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
deserialize(params) {
|
|
39
|
+
if (!params) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
this.VpnGatewayId = 'VpnGatewayId' in params ? params.VpnGatewayId : null;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
19
47
|
/**
|
|
20
48
|
* CreateNetworkAcl response structure.
|
|
21
49
|
* @class
|
|
@@ -778,21 +806,22 @@ class DescribeNetworkInterfacesRequest extends AbstractModel {
|
|
|
778
806
|
|
|
779
807
|
/**
|
|
780
808
|
* Filter. `NetworkInterfaceIds` and `Filters` cannot be specified at the same time.
|
|
781
|
-
<li>`vpc-id` - String - VPC ID, such as `vpc-f49l6u0z
|
|
782
|
-
<li>`subnet-id` - String - Subnet ID, such as `subnet-f49l6u0z
|
|
783
|
-
<li>`network-interface-id` - String - ENI ID, such as `eni-5k56k7k7
|
|
784
|
-
<li>`attachment.instance-id` - String - ID of the bound CVM, such as `ins-3nqpdn3i
|
|
785
|
-
<li>`groups.security-group-id` - String -
|
|
786
|
-
<li>`network-interface-name` - String - ENI instance name
|
|
787
|
-
<li>`network-interface-description` - String - ENI instance description
|
|
788
|
-
<li>`address-ip` - String - Private IPv4 address. A single IP will be fuzzily matched with the suffix, while multiple IPs will be exactly matched. It can be used with `ip-exact-match` to query and exactly match a single IP
|
|
789
|
-
<li>`ip-exact-match` - Boolean - Exact match by private IPv4 address. The first value will be returned if multiple values are found
|
|
790
|
-
<li>`tag-key` - String -
|
|
791
|
-
<li>`tag:tag-key` - String - Optional -
|
|
792
|
-
<li>`is-primary` - Boolean - Optional - Filter based on whether it is a primary ENI. Values: `true`, `false`. If this parameter is not specified, filter the both
|
|
793
|
-
<li>`eni-type` - String - Optional - Filter by
|
|
794
|
-
<li>`eni-qos` - String - Optional - Filter by
|
|
795
|
-
<li>`address-ipv6` - String - Optional - Filter by
|
|
809
|
+
<li>`vpc-id` - String - VPC ID, such as `vpc-f49l6u0z`. </li>
|
|
810
|
+
<li>`subnet-id` - String - Subnet ID, such as `subnet-f49l6u0z`. </li>
|
|
811
|
+
<li>`network-interface-id` - String - ENI ID, such as `eni-5k56k7k7`. </li>
|
|
812
|
+
<li>`attachment.instance-id` - String - ID of the bound CVM instance, such as `ins-3nqpdn3i`. </li>
|
|
813
|
+
<li>`groups.security-group-id` - String - ID of the bound security group, such as `sg-f9ekbxeq`. </li>
|
|
814
|
+
<li>`network-interface-name` - String - ENI instance name. </li>
|
|
815
|
+
<li>`network-interface-description` - String - ENI instance description. </li>
|
|
816
|
+
<li>`address-ip` - String - Private IPv4 address. A single IP will be fuzzily matched with the suffix, while multiple IPs will be exactly matched. It can be used with `ip-exact-match` to query and exactly match a single IP. </li>
|
|
817
|
+
<li>`ip-exact-match` - Boolean - Exact match by private IPv4 address. The first value will be returned if multiple values are found. </li>
|
|
818
|
+
<li>`tag-key` - String - u200dOptional - u200dTag key. See Example 2 to learn more details. </li>
|
|
819
|
+
<li>`tag:tag-key` - String - Optional - Tag key-value pair. The `tag-key` should be replaced with a specific tag key. See Example 2 to learn more details. </li>
|
|
820
|
+
<li>`is-primary` - Boolean - Optional - Filter based on whether it is a primary ENI. Values: `true`, `false`. If this parameter is not specified, filter the both. </li>
|
|
821
|
+
<li>`eni-type` - String - Optional - Filter by ENI type. Values: `0` (Secondary ENI), `1` (Primary ENI), `2` (Relayed ENI) </li>
|
|
822
|
+
<li>`eni-qos` - String - Optional - Filter by ENI service level. Values: `AG` (Bronze), `AU` (Silver) </li>
|
|
823
|
+
<li>`address-ipv6` - String - Optional - Filter by private IPv6 address. Multiple IPv6 addresses can be used for query. If this field is used together with `address-ip`, their intersection will be used. </li>
|
|
824
|
+
<li>`public-address-ip` - String - Public IPv4 address. It supports exact matching. </li>
|
|
796
825
|
* @type {Array.<Filter> || null}
|
|
797
826
|
*/
|
|
798
827
|
this.Filters = null;
|
|
@@ -892,14 +921,14 @@ class SourceIpTranslationNatRule extends AbstractModel {
|
|
|
892
921
|
super();
|
|
893
922
|
|
|
894
923
|
/**
|
|
895
|
-
* Resource ID
|
|
924
|
+
* Resource ID. It can be left empty if `ResourceType` is `USERDEFINED`.
|
|
896
925
|
* @type {string || null}
|
|
897
926
|
*/
|
|
898
927
|
this.ResourceId = null;
|
|
899
928
|
|
|
900
929
|
/**
|
|
901
|
-
* Resource type. Valid values: SUBNET
|
|
902
|
-
Note: This field may return
|
|
930
|
+
* Resource type. Valid values: `SUBNET`, `NETWORKINTERFACE`, `USERDEFINED`
|
|
931
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
903
932
|
* @type {string || null}
|
|
904
933
|
*/
|
|
905
934
|
this.ResourceType = null;
|
|
@@ -1541,7 +1570,7 @@ class AssignPrivateIpAddressesRequest extends AbstractModel {
|
|
|
1541
1570
|
this.SecondaryPrivateIpAddressCount = null;
|
|
1542
1571
|
|
|
1543
1572
|
/**
|
|
1544
|
-
* IP
|
|
1573
|
+
* IP u200dservice level. It is used together with `SecondaryPrivateIpAddressCount`. Values: PT` u200d(Gold), `AU` u200d(Silver), `AG `(Bronze) and DEFAULT (Default).
|
|
1545
1574
|
* @type {string || null}
|
|
1546
1575
|
*/
|
|
1547
1576
|
this.QosLevel = null;
|
|
@@ -2675,7 +2704,7 @@ class CloneSecurityGroupRequest extends AbstractModel {
|
|
|
2675
2704
|
super();
|
|
2676
2705
|
|
|
2677
2706
|
/**
|
|
2678
|
-
*
|
|
2707
|
+
* Security group instance ID, such as `esg-33ocnj9n`, which can be obtained through the <a href="https://intl.cloud.tencent.com/document/product/215/15808?from_cn_redirect=1">DescribeSecurityGroups</a> API.
|
|
2679
2708
|
* @type {string || null}
|
|
2680
2709
|
*/
|
|
2681
2710
|
this.SecurityGroupId = null;
|
|
@@ -2693,7 +2722,7 @@ class CloneSecurityGroupRequest extends AbstractModel {
|
|
|
2693
2722
|
this.GroupDescription = null;
|
|
2694
2723
|
|
|
2695
2724
|
/**
|
|
2696
|
-
* Project ID
|
|
2725
|
+
* Project ID. Default value: 0. You can query it on the <a href="https://console.cloud.tencent.com/project">project management page</a> of the Tencent Cloud console.
|
|
2697
2726
|
* @type {string || null}
|
|
2698
2727
|
*/
|
|
2699
2728
|
this.ProjectId = null;
|
|
@@ -3900,10 +3929,10 @@ class DescribeCcnAttachedInstancesRequest extends AbstractModel {
|
|
|
3900
3929
|
|
|
3901
3930
|
/**
|
|
3902
3931
|
* Filter conditions:
|
|
3903
|
-
<li
|
|
3904
|
-
<li
|
|
3905
|
-
<li
|
|
3906
|
-
<li
|
|
3932
|
+
<li>`ccn-id` - String - The CCN instance ID. </li>
|
|
3933
|
+
<li>`instance-type` - String - The associated instance type. </li>
|
|
3934
|
+
<li>`instance-region` - String - The associated instance region. </li>
|
|
3935
|
+
<li>`instance-id` - String - The instance ID of the associated instance. </li>
|
|
3907
3936
|
* @type {Array.<Filter> || null}
|
|
3908
3937
|
*/
|
|
3909
3938
|
this.Filters = null;
|
|
@@ -4843,7 +4872,7 @@ class DescribeSnapshotFilesRequest extends AbstractModel {
|
|
|
4843
4872
|
this.BusinessType = null;
|
|
4844
4873
|
|
|
4845
4874
|
/**
|
|
4846
|
-
* ID
|
|
4875
|
+
* Service instance ID. It's corresponding to the `BusinessType`.
|
|
4847
4876
|
* @type {string || null}
|
|
4848
4877
|
*/
|
|
4849
4878
|
this.InstanceId = null;
|
|
@@ -4867,7 +4896,7 @@ class DescribeSnapshotFilesRequest extends AbstractModel {
|
|
|
4867
4896
|
this.Offset = null;
|
|
4868
4897
|
|
|
4869
4898
|
/**
|
|
4870
|
-
* Number of returned results. Default value: 20. Maximum value:
|
|
4899
|
+
* Number of returned results. Default value: 20. Maximum value: 100.
|
|
4871
4900
|
* @type {number || null}
|
|
4872
4901
|
*/
|
|
4873
4902
|
this.Limit = null;
|
|
@@ -5863,7 +5892,7 @@ class DescribeSecurityGroupsRequest extends AbstractModel {
|
|
|
5863
5892
|
super();
|
|
5864
5893
|
|
|
5865
5894
|
/**
|
|
5866
|
-
*
|
|
5895
|
+
* Security group ID, such as `sg-33ocnj9n`. Each request can contain up to 100 instances at a time. `SecurityGroupIds` and `Filters` cannot be specified at the same time.
|
|
5867
5896
|
* @type {Array.<string> || null}
|
|
5868
5897
|
*/
|
|
5869
5898
|
this.SecurityGroupIds = null;
|
|
@@ -5891,6 +5920,18 @@ class DescribeSecurityGroupsRequest extends AbstractModel {
|
|
|
5891
5920
|
*/
|
|
5892
5921
|
this.Limit = null;
|
|
5893
5922
|
|
|
5923
|
+
/**
|
|
5924
|
+
* Sorting field. Values: `CreatedTime`, `UpdateTime` Note: This field does not have default value.
|
|
5925
|
+
* @type {string || null}
|
|
5926
|
+
*/
|
|
5927
|
+
this.OrderField = null;
|
|
5928
|
+
|
|
5929
|
+
/**
|
|
5930
|
+
* Sorting method Order methods. Ascending: `ASC`, Descending: `DESC`. Default: `ASC`
|
|
5931
|
+
* @type {string || null}
|
|
5932
|
+
*/
|
|
5933
|
+
this.OrderDirection = null;
|
|
5934
|
+
|
|
5894
5935
|
}
|
|
5895
5936
|
|
|
5896
5937
|
/**
|
|
@@ -5912,6 +5953,8 @@ class DescribeSecurityGroupsRequest extends AbstractModel {
|
|
|
5912
5953
|
}
|
|
5913
5954
|
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
5914
5955
|
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
5956
|
+
this.OrderField = 'OrderField' in params ? params.OrderField : null;
|
|
5957
|
+
this.OrderDirection = 'OrderDirection' in params ? params.OrderDirection : null;
|
|
5915
5958
|
|
|
5916
5959
|
}
|
|
5917
5960
|
}
|
|
@@ -7204,12 +7247,12 @@ class ModifyNetDetectRequest extends AbstractModel {
|
|
|
7204
7247
|
this.NextHopType = null;
|
|
7205
7248
|
|
|
7206
7249
|
/**
|
|
7207
|
-
* ID of the next-hop gateway.
|
|
7208
|
-
|
|
7250
|
+
* ID of the next-hop gateway.
|
|
7251
|
+
If NextHopType is set to VPN, the value of this parameter is the VPN gateway ID, such as vpngw-12345678.
|
|
7209
7252
|
`NextHopType` = `DIRECTCONNECT`: Direct connect gateway ID, such as `dcg-12345678`.
|
|
7210
7253
|
`NextHopType` = `PEERCONNECTION`: Peering connection ID, such as `pcx-12345678`.
|
|
7211
7254
|
`NextHopType` = `NAT`: NAT gateway ID, such as `nat-12345678`.
|
|
7212
|
-
|
|
7255
|
+
If NextHopType is set to NORMAL_CVM, the value of this parameter is the IPv4 address of the CVM, such as 10.0.0.12.
|
|
7213
7256
|
`NextHopType` = `CCN`: CCN instance ID, such as `ccn-12345678`.
|
|
7214
7257
|
`NextHopType` = `NONEXTHOP`: No next hop.
|
|
7215
7258
|
* @type {string || null}
|
|
@@ -9629,6 +9672,34 @@ class DescribeSnapshotPoliciesRequest extends AbstractModel {
|
|
|
9629
9672
|
}
|
|
9630
9673
|
}
|
|
9631
9674
|
|
|
9675
|
+
/**
|
|
9676
|
+
* DeleteTrafficPackages request structure.
|
|
9677
|
+
* @class
|
|
9678
|
+
*/
|
|
9679
|
+
class DeleteTrafficPackagesRequest extends AbstractModel {
|
|
9680
|
+
constructor(){
|
|
9681
|
+
super();
|
|
9682
|
+
|
|
9683
|
+
/**
|
|
9684
|
+
* The unique ID array of traffic packages to delete
|
|
9685
|
+
* @type {Array.<string> || null}
|
|
9686
|
+
*/
|
|
9687
|
+
this.TrafficPackageIds = null;
|
|
9688
|
+
|
|
9689
|
+
}
|
|
9690
|
+
|
|
9691
|
+
/**
|
|
9692
|
+
* @private
|
|
9693
|
+
*/
|
|
9694
|
+
deserialize(params) {
|
|
9695
|
+
if (!params) {
|
|
9696
|
+
return;
|
|
9697
|
+
}
|
|
9698
|
+
this.TrafficPackageIds = 'TrafficPackageIds' in params ? params.TrafficPackageIds : null;
|
|
9699
|
+
|
|
9700
|
+
}
|
|
9701
|
+
}
|
|
9702
|
+
|
|
9632
9703
|
/**
|
|
9633
9704
|
* NotifyRoutes request structure.
|
|
9634
9705
|
* @class
|
|
@@ -10078,6 +10149,13 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
10078
10149
|
*/
|
|
10079
10150
|
this.RestrictState = null;
|
|
10080
10151
|
|
|
10152
|
+
/**
|
|
10153
|
+
* NAT gateway major version. `1`: Classic, `2`: Standard
|
|
10154
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
10155
|
+
* @type {number || null}
|
|
10156
|
+
*/
|
|
10157
|
+
this.NatProductVersion = null;
|
|
10158
|
+
|
|
10081
10159
|
}
|
|
10082
10160
|
|
|
10083
10161
|
/**
|
|
@@ -10138,6 +10216,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
10138
10216
|
this.IsExclusive = 'IsExclusive' in params ? params.IsExclusive : null;
|
|
10139
10217
|
this.ExclusiveGatewayBandwidth = 'ExclusiveGatewayBandwidth' in params ? params.ExclusiveGatewayBandwidth : null;
|
|
10140
10218
|
this.RestrictState = 'RestrictState' in params ? params.RestrictState : null;
|
|
10219
|
+
this.NatProductVersion = 'NatProductVersion' in params ? params.NatProductVersion : null;
|
|
10141
10220
|
|
|
10142
10221
|
}
|
|
10143
10222
|
}
|
|
@@ -11454,12 +11533,12 @@ VPN: VPN gateway;
|
|
|
11454
11533
|
this.NextHopType = null;
|
|
11455
11534
|
|
|
11456
11535
|
/**
|
|
11457
|
-
* ID of the next-hop gateway.
|
|
11458
|
-
|
|
11536
|
+
* ID of the next-hop gateway.
|
|
11537
|
+
If NextHopType is set to VPN, the value of this parameter is the VPN gateway ID, such as vpngw-12345678.
|
|
11459
11538
|
`NextHopType` = `DIRECTCONNECT`: Direct connect gateway ID, such as `dcg-12345678`.
|
|
11460
11539
|
`NextHopType` = `PEERCONNECTION`: Peering connection ID, such as `pcx-12345678`.
|
|
11461
11540
|
`NextHopType` = `NAT`: NAT gateway ID, such as `nat-12345678`.
|
|
11462
|
-
|
|
11541
|
+
If NextHopType is set to NORMAL_CVM, the value of this parameter is the IPv4 address of the CVM, such as 10.0.0.12.
|
|
11463
11542
|
`NextHopType` = `CCN`: CCN instance ID, such as `ccn-12345678`.
|
|
11464
11543
|
`NextHopType` = `NONEXTHOP`: No next hop.
|
|
11465
11544
|
* @type {string || null}
|
|
@@ -12279,12 +12358,12 @@ class CreateNetDetectRequest extends AbstractModel {
|
|
|
12279
12358
|
this.NextHopType = null;
|
|
12280
12359
|
|
|
12281
12360
|
/**
|
|
12282
|
-
* ID of the next-hop gateway.
|
|
12283
|
-
|
|
12361
|
+
* ID of the next-hop gateway.
|
|
12362
|
+
If NextHopType is set to VPN, the value of this parameter is the VPN gateway ID, such as vpngw-12345678.
|
|
12284
12363
|
`NextHopType` = `DIRECTCONNECT`: Direct connect gateway ID, such as `dcg-12345678`.
|
|
12285
12364
|
`NextHopType` = `PEERCONNECTION`: Peering connection ID, such as `pcx-12345678`.
|
|
12286
12365
|
`NextHopType` = `NAT`: NAT gateway ID, such as `nat-12345678`.
|
|
12287
|
-
|
|
12366
|
+
If NextHopType is set to NORMAL_CVM, the value of this parameter is the IPv4 address of the CVM, such as 10.0.0.12.
|
|
12288
12367
|
`NextHopType` = `CCN`: CCN instance ID, such as `ccn-12345678`.
|
|
12289
12368
|
`NextHopType` = `NONEXTHOP`: No next hop.
|
|
12290
12369
|
* @type {string || null}
|
|
@@ -12779,10 +12858,11 @@ class DescribeVpcEndPointServiceRequest extends AbstractModel {
|
|
|
12779
12858
|
super();
|
|
12780
12859
|
|
|
12781
12860
|
/**
|
|
12782
|
-
*
|
|
12783
|
-
<li
|
|
12784
|
-
<li
|
|
12785
|
-
<li
|
|
12861
|
+
* Filters. `EndPointServiceIds` and `Filters` cannot be both passed in.
|
|
12862
|
+
<li>`service-id` - String - Unique endpoint service ID. </li>
|
|
12863
|
+
<li>`service-name` - String - Endpoint service instance name. </li>
|
|
12864
|
+
<li>`service-instance-id` - String - Unique backend service ID in the format of `lb-xxx`. </li>
|
|
12865
|
+
<li>`service-type` - String - Backend PaaS service type. It can be `CLB`, `CDB` or `CRS`. It defaults to `CLB` if not specified. </li>
|
|
12786
12866
|
* @type {Array.<Filter> || null}
|
|
12787
12867
|
*/
|
|
12788
12868
|
this.Filters = null;
|
|
@@ -12800,11 +12880,17 @@ class DescribeVpcEndPointServiceRequest extends AbstractModel {
|
|
|
12800
12880
|
this.Limit = null;
|
|
12801
12881
|
|
|
12802
12882
|
/**
|
|
12803
|
-
* Endpoint service ID
|
|
12883
|
+
* Endpoint service ID `EndPointServiceIds` and `Filters` cannot be both passed in.
|
|
12804
12884
|
* @type {Array.<string> || null}
|
|
12805
12885
|
*/
|
|
12806
12886
|
this.EndPointServiceIds = null;
|
|
12807
12887
|
|
|
12888
|
+
/**
|
|
12889
|
+
*
|
|
12890
|
+
* @type {boolean || null}
|
|
12891
|
+
*/
|
|
12892
|
+
this.IsListAuthorizedEndPointService = null;
|
|
12893
|
+
|
|
12808
12894
|
}
|
|
12809
12895
|
|
|
12810
12896
|
/**
|
|
@@ -12826,6 +12912,7 @@ class DescribeVpcEndPointServiceRequest extends AbstractModel {
|
|
|
12826
12912
|
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
12827
12913
|
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
12828
12914
|
this.EndPointServiceIds = 'EndPointServiceIds' in params ? params.EndPointServiceIds : null;
|
|
12915
|
+
this.IsListAuthorizedEndPointService = 'IsListAuthorizedEndPointService' in params ? params.IsListAuthorizedEndPointService : null;
|
|
12829
12916
|
|
|
12830
12917
|
}
|
|
12831
12918
|
}
|
|
@@ -15478,7 +15565,7 @@ class CreateNetworkInterfaceRequest extends AbstractModel {
|
|
|
15478
15565
|
this.SecondaryPrivateIpAddressCount = null;
|
|
15479
15566
|
|
|
15480
15567
|
/**
|
|
15481
|
-
* IP
|
|
15568
|
+
* IP u200dservice level. It is used together with `SecondaryPrivateIpAddressCount`. Values: `PT` u200d(Gold), `AU` u200d(Silver), `AG` (Bronze) and `DEFAULT` (Default).
|
|
15482
15569
|
* @type {string || null}
|
|
15483
15570
|
*/
|
|
15484
15571
|
this.QosLevel = null;
|
|
@@ -16574,6 +16661,48 @@ class DescribeCcnRoutesRequest extends AbstractModel {
|
|
|
16574
16661
|
}
|
|
16575
16662
|
}
|
|
16576
16663
|
|
|
16664
|
+
/**
|
|
16665
|
+
* GenerateVpnConnectionDefaultHealthCheckIp response structure.
|
|
16666
|
+
* @class
|
|
16667
|
+
*/
|
|
16668
|
+
class GenerateVpnConnectionDefaultHealthCheckIpResponse extends AbstractModel {
|
|
16669
|
+
constructor(){
|
|
16670
|
+
super();
|
|
16671
|
+
|
|
16672
|
+
/**
|
|
16673
|
+
* Local IP used for VPN tunnel health check
|
|
16674
|
+
* @type {string || null}
|
|
16675
|
+
*/
|
|
16676
|
+
this.HealthCheckLocalIp = null;
|
|
16677
|
+
|
|
16678
|
+
/**
|
|
16679
|
+
* Remote IP used for VPN tunnel health check
|
|
16680
|
+
* @type {string || null}
|
|
16681
|
+
*/
|
|
16682
|
+
this.HealthCheckRemoteIp = null;
|
|
16683
|
+
|
|
16684
|
+
/**
|
|
16685
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
16686
|
+
* @type {string || null}
|
|
16687
|
+
*/
|
|
16688
|
+
this.RequestId = null;
|
|
16689
|
+
|
|
16690
|
+
}
|
|
16691
|
+
|
|
16692
|
+
/**
|
|
16693
|
+
* @private
|
|
16694
|
+
*/
|
|
16695
|
+
deserialize(params) {
|
|
16696
|
+
if (!params) {
|
|
16697
|
+
return;
|
|
16698
|
+
}
|
|
16699
|
+
this.HealthCheckLocalIp = 'HealthCheckLocalIp' in params ? params.HealthCheckLocalIp : null;
|
|
16700
|
+
this.HealthCheckRemoteIp = 'HealthCheckRemoteIp' in params ? params.HealthCheckRemoteIp : null;
|
|
16701
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
16702
|
+
|
|
16703
|
+
}
|
|
16704
|
+
}
|
|
16705
|
+
|
|
16577
16706
|
/**
|
|
16578
16707
|
* CreateAndAttachNetworkInterface request structure.
|
|
16579
16708
|
* @class
|
|
@@ -16619,7 +16748,7 @@ class CreateAndAttachNetworkInterfaceRequest extends AbstractModel {
|
|
|
16619
16748
|
this.SecondaryPrivateIpAddressCount = null;
|
|
16620
16749
|
|
|
16621
16750
|
/**
|
|
16622
|
-
* IP
|
|
16751
|
+
* IP u200dservice level. It is used together with `SecondaryPrivateIpAddressCount`. Values: `PT` u200d(Gold), `AU` u200d(Silver), `AG` (Bronze) and `DEFAULT` (Default).
|
|
16623
16752
|
* @type {string || null}
|
|
16624
16753
|
*/
|
|
16625
16754
|
this.QosLevel = null;
|
|
@@ -16780,11 +16909,11 @@ class AllocateAddressesRequest extends AbstractModel {
|
|
|
16780
16909
|
|
|
16781
16910
|
/**
|
|
16782
16911
|
* The EIP outbound bandwidth cap, in Mbps.
|
|
16783
|
-
<ul style="margin:0"><li>For bill-by-IP account beta users,
|
|
16784
|
-
<li
|
|
16785
|
-
<li
|
|
16786
|
-
<li
|
|
16787
|
-
<li>If you are not a bill-by-IP account beta user, the EIP outbound bandwidth cap is subject to
|
|
16912
|
+
<ul style="margin:0"><li>For bill-by-IP account beta users, the bandwidth cap range is determined by the EIP billing mode. <ul><li>`BANDWIDTH_PACKAGE`: 1 Mbps to 2000 Mbps</li>
|
|
16913
|
+
<li>`BANDWIDTH_POSTPAID_BY_HOUR`: 1 Mbps to 100 Mbps</li>
|
|
16914
|
+
<li>`BANDWIDTH_PREPAID_BY_MONTH`: 1 Mbps to 200 Mbps</li>
|
|
16915
|
+
<li>`TRAFFIC_POSTPAID_BY_HOUR`: 1 Mbps to 100 Mbps</li></ul>Default value: 1 Mbps </li>
|
|
16916
|
+
<li>If you are not a bill-by-IP account beta user, the EIP outbound bandwidth cap is subject to the bandwidth cap of the instance bound to the EIP. Therefore, you do not need to pass in this parameter. </li></ul>
|
|
16788
16917
|
* @type {number || null}
|
|
16789
16918
|
*/
|
|
16790
16919
|
this.InternetMaxBandwidthOut = null;
|
|
@@ -16796,9 +16925,11 @@ class AllocateAddressesRequest extends AbstractModel {
|
|
|
16796
16925
|
this.AddressChargePrepaid = null;
|
|
16797
16926
|
|
|
16798
16927
|
/**
|
|
16799
|
-
*
|
|
16800
|
-
<ul style="margin:0"><li>For
|
|
16801
|
-
<ul style="margin:0"><li>For
|
|
16928
|
+
* EIP type. Default value: EIP.
|
|
16929
|
+
<ul style="margin:0"><li>For beta users of AIA, the value can be:</li></ul>`AnycastEIP`: an AIA IP address. For more information, see [Anycast Internet Acceleration](https://intl.cloud.tencent.com/document/product/644?from_cn_redirect=1).</li></ul>Note: Anycast EIPs are supported only in partial regions. </li></ul>
|
|
16930
|
+
<ul style="margin:0"><li>For beta users of dedicated IP, the value can be: <ul><li>`HighQualityEIP`: Dedicated IP</li></ul>Note that dedicated IPs are only available in partial regions. </li></ul>
|
|
16931
|
+
</ul>
|
|
16932
|
+
<ul style="margin:0"><li>For beta users of Anti-DDoS IP, the value can be: <ul><li>`AntiDDoSEIP`: Anti-DDoS EIP</li></ul>Note that Anti-DDoS IPs are only available in partial regions. </li></ul>
|
|
16802
16933
|
* @type {string || null}
|
|
16803
16934
|
*/
|
|
16804
16935
|
this.AddressType = null;
|
|
@@ -16843,6 +16974,18 @@ Whether the Anycast EIP can be bound to CLB instances.
|
|
|
16843
16974
|
*/
|
|
16844
16975
|
this.Egress = null;
|
|
16845
16976
|
|
|
16977
|
+
/**
|
|
16978
|
+
* Anti-DDoS service package ID. This is required when you want to request an u200dAnti-DDoS IP.
|
|
16979
|
+
* @type {string || null}
|
|
16980
|
+
*/
|
|
16981
|
+
this.AntiDDoSPackageId = null;
|
|
16982
|
+
|
|
16983
|
+
/**
|
|
16984
|
+
* A string used to ensure the idempotency of the request. Generate a value based on your client. This can ensure that the value is unique for different requests. It only supports ASCII characters and can contain up to 64 characters.
|
|
16985
|
+
* @type {string || null}
|
|
16986
|
+
*/
|
|
16987
|
+
this.ClientToken = null;
|
|
16988
|
+
|
|
16846
16989
|
}
|
|
16847
16990
|
|
|
16848
16991
|
/**
|
|
@@ -16877,6 +17020,8 @@ Whether the Anycast EIP can be bound to CLB instances.
|
|
|
16877
17020
|
this.BandwidthPackageId = 'BandwidthPackageId' in params ? params.BandwidthPackageId : null;
|
|
16878
17021
|
this.AddressName = 'AddressName' in params ? params.AddressName : null;
|
|
16879
17022
|
this.Egress = 'Egress' in params ? params.Egress : null;
|
|
17023
|
+
this.AntiDDoSPackageId = 'AntiDDoSPackageId' in params ? params.AntiDDoSPackageId : null;
|
|
17024
|
+
this.ClientToken = 'ClientToken' in params ? params.ClientToken : null;
|
|
16880
17025
|
|
|
16881
17026
|
}
|
|
16882
17027
|
}
|
|
@@ -17125,7 +17270,7 @@ class AssociateDirectConnectGatewayNatGatewayRequest extends AbstractModel {
|
|
|
17125
17270
|
super();
|
|
17126
17271
|
|
|
17127
17272
|
/**
|
|
17128
|
-
*
|
|
17273
|
+
* VPC instance ID. VPC instance ID, which can be obtained from the `VpcId` field in the response of the `DescribeVpcs` API.
|
|
17129
17274
|
* @type {string || null}
|
|
17130
17275
|
*/
|
|
17131
17276
|
this.VpcId = null;
|
|
@@ -17137,7 +17282,7 @@ class AssociateDirectConnectGatewayNatGatewayRequest extends AbstractModel {
|
|
|
17137
17282
|
this.NatGatewayId = null;
|
|
17138
17283
|
|
|
17139
17284
|
/**
|
|
17140
|
-
* The
|
|
17285
|
+
* The direct connect gateway ID.
|
|
17141
17286
|
* @type {string || null}
|
|
17142
17287
|
*/
|
|
17143
17288
|
this.DirectConnectGatewayId = null;
|
|
@@ -18825,7 +18970,7 @@ AVAILABLE: Available
|
|
|
18825
18970
|
this.State = null;
|
|
18826
18971
|
|
|
18827
18972
|
/**
|
|
18828
|
-
* IP
|
|
18973
|
+
* IP u200dservice level. Values: PT` u200d(Gold), `AU` u200d(Silver), `AG `(Bronze) and DEFAULT` (Default).
|
|
18829
18974
|
* @type {string || null}
|
|
18830
18975
|
*/
|
|
18831
18976
|
this.QosLevel = null;
|
|
@@ -18935,19 +19080,19 @@ class DescribeUsedIpAddressRequest extends AbstractModel {
|
|
|
18935
19080
|
this.SubnetId = null;
|
|
18936
19081
|
|
|
18937
19082
|
/**
|
|
18938
|
-
* IPs to
|
|
19083
|
+
* List of IPs to be queried. The IPs must be within the VPC or subnet. Up to 100 IPs can be queried at a time.
|
|
18939
19084
|
* @type {Array.<string> || null}
|
|
18940
19085
|
*/
|
|
18941
19086
|
this.IpAddresses = null;
|
|
18942
19087
|
|
|
18943
19088
|
/**
|
|
18944
|
-
*
|
|
19089
|
+
* The offset. Default value: 0
|
|
18945
19090
|
* @type {number || null}
|
|
18946
19091
|
*/
|
|
18947
19092
|
this.Offset = null;
|
|
18948
19093
|
|
|
18949
19094
|
/**
|
|
18950
|
-
* The number of
|
|
19095
|
+
* The number of returned results. Default value: 20. Maximum value: 100.
|
|
18951
19096
|
* @type {number || null}
|
|
18952
19097
|
*/
|
|
18953
19098
|
this.Limit = null;
|
|
@@ -21394,7 +21539,7 @@ Note: this field may return `null`, indicating that no valid value was found.
|
|
|
21394
21539
|
this.InstanceType = null;
|
|
21395
21540
|
|
|
21396
21541
|
/**
|
|
21397
|
-
*
|
|
21542
|
+
* ID of the Anti-DDoS service package. It is returned if the EIP is an u200dAnti-DDoS EIP.
|
|
21398
21543
|
* @type {string || null}
|
|
21399
21544
|
*/
|
|
21400
21545
|
this.AntiDDoSPackageId = null;
|
|
@@ -21820,6 +21965,34 @@ class AllocateAddressesResponse extends AbstractModel {
|
|
|
21820
21965
|
}
|
|
21821
21966
|
}
|
|
21822
21967
|
|
|
21968
|
+
/**
|
|
21969
|
+
* DeleteTrafficPackages response structure.
|
|
21970
|
+
* @class
|
|
21971
|
+
*/
|
|
21972
|
+
class DeleteTrafficPackagesResponse extends AbstractModel {
|
|
21973
|
+
constructor(){
|
|
21974
|
+
super();
|
|
21975
|
+
|
|
21976
|
+
/**
|
|
21977
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
21978
|
+
* @type {string || null}
|
|
21979
|
+
*/
|
|
21980
|
+
this.RequestId = null;
|
|
21981
|
+
|
|
21982
|
+
}
|
|
21983
|
+
|
|
21984
|
+
/**
|
|
21985
|
+
* @private
|
|
21986
|
+
*/
|
|
21987
|
+
deserialize(params) {
|
|
21988
|
+
if (!params) {
|
|
21989
|
+
return;
|
|
21990
|
+
}
|
|
21991
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
21992
|
+
|
|
21993
|
+
}
|
|
21994
|
+
}
|
|
21995
|
+
|
|
21823
21996
|
/**
|
|
21824
21997
|
* The structure of information of the bandwidth package.
|
|
21825
21998
|
* @class
|
|
@@ -21943,6 +22116,12 @@ class ModifyVpcAttributeRequest extends AbstractModel {
|
|
|
21943
22116
|
*/
|
|
21944
22117
|
this.DomainName = null;
|
|
21945
22118
|
|
|
22119
|
+
/**
|
|
22120
|
+
* Whether to publish the CDC subnet to CCN. `true`: Publish; `false`: u200dDo not publish
|
|
22121
|
+
* @type {boolean || null}
|
|
22122
|
+
*/
|
|
22123
|
+
this.EnableCdcPublish = null;
|
|
22124
|
+
|
|
21946
22125
|
}
|
|
21947
22126
|
|
|
21948
22127
|
/**
|
|
@@ -21957,6 +22136,7 @@ class ModifyVpcAttributeRequest extends AbstractModel {
|
|
|
21957
22136
|
this.EnableMulticast = 'EnableMulticast' in params ? params.EnableMulticast : null;
|
|
21958
22137
|
this.DnsServers = 'DnsServers' in params ? params.DnsServers : null;
|
|
21959
22138
|
this.DomainName = 'DomainName' in params ? params.DomainName : null;
|
|
22139
|
+
this.EnableCdcPublish = 'EnableCdcPublish' in params ? params.EnableCdcPublish : null;
|
|
21960
22140
|
|
|
21961
22141
|
}
|
|
21962
22142
|
}
|
|
@@ -28695,7 +28875,7 @@ class CreateSecurityGroupWithPoliciesRequest extends AbstractModel {
|
|
|
28695
28875
|
this.GroupDescription = null;
|
|
28696
28876
|
|
|
28697
28877
|
/**
|
|
28698
|
-
*
|
|
28878
|
+
* Project ID. Default value: 0. You can query it on the <a href="https://console.cloud.tencent.com/project">project management page</a> of the Tencent Cloud console.
|
|
28699
28879
|
* @type {string || null}
|
|
28700
28880
|
*/
|
|
28701
28881
|
this.ProjectId = null;
|
|
@@ -29434,6 +29614,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
29434
29614
|
}
|
|
29435
29615
|
|
|
29436
29616
|
module.exports = {
|
|
29617
|
+
GenerateVpnConnectionDefaultHealthCheckIpRequest: GenerateVpnConnectionDefaultHealthCheckIpRequest,
|
|
29437
29618
|
CreateNetworkAclResponse: CreateNetworkAclResponse,
|
|
29438
29619
|
NetworkAcl: NetworkAcl,
|
|
29439
29620
|
ModifyAddressTemplateAttributeResponse: ModifyAddressTemplateAttributeResponse,
|
|
@@ -29625,6 +29806,7 @@ module.exports = {
|
|
|
29625
29806
|
RenewVpnGatewayRequest: RenewVpnGatewayRequest,
|
|
29626
29807
|
SecurityGroupPolicy: SecurityGroupPolicy,
|
|
29627
29808
|
DescribeSnapshotPoliciesRequest: DescribeSnapshotPoliciesRequest,
|
|
29809
|
+
DeleteTrafficPackagesRequest: DeleteTrafficPackagesRequest,
|
|
29628
29810
|
NotifyRoutesRequest: NotifyRoutesRequest,
|
|
29629
29811
|
DeleteVpcRequest: DeleteVpcRequest,
|
|
29630
29812
|
ModifyServiceTemplateAttributeResponse: ModifyServiceTemplateAttributeResponse,
|
|
@@ -29760,6 +29942,7 @@ module.exports = {
|
|
|
29760
29942
|
ModifySnapshotPoliciesResponse: ModifySnapshotPoliciesResponse,
|
|
29761
29943
|
DescribeAccountAttributesRequest: DescribeAccountAttributesRequest,
|
|
29762
29944
|
DescribeCcnRoutesRequest: DescribeCcnRoutesRequest,
|
|
29945
|
+
GenerateVpnConnectionDefaultHealthCheckIpResponse: GenerateVpnConnectionDefaultHealthCheckIpResponse,
|
|
29763
29946
|
CreateAndAttachNetworkInterfaceRequest: CreateAndAttachNetworkInterfaceRequest,
|
|
29764
29947
|
DeleteVpcEndPointResponse: DeleteVpcEndPointResponse,
|
|
29765
29948
|
DeleteNetDetectResponse: DeleteNetDetectResponse,
|
|
@@ -29871,6 +30054,7 @@ module.exports = {
|
|
|
29871
30054
|
Resource: Resource,
|
|
29872
30055
|
CustomerGateway: CustomerGateway,
|
|
29873
30056
|
AllocateAddressesResponse: AllocateAddressesResponse,
|
|
30057
|
+
DeleteTrafficPackagesResponse: DeleteTrafficPackagesResponse,
|
|
29874
30058
|
BandwidthPackage: BandwidthPackage,
|
|
29875
30059
|
ModifyVpcAttributeRequest: ModifyVpcAttributeRequest,
|
|
29876
30060
|
ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest: ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest,
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const models = require("./models");
|
|
18
18
|
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
+
const GenerateVpnConnectionDefaultHealthCheckIpRequest = models.GenerateVpnConnectionDefaultHealthCheckIpRequest;
|
|
19
20
|
const CreateNetworkAclResponse = models.CreateNetworkAclResponse;
|
|
20
21
|
const NetworkAcl = models.NetworkAcl;
|
|
21
22
|
const ModifyAddressTemplateAttributeResponse = models.ModifyAddressTemplateAttributeResponse;
|
|
@@ -207,6 +208,7 @@ const AdjustPublicAddressResponse = models.AdjustPublicAddressResponse;
|
|
|
207
208
|
const RenewVpnGatewayRequest = models.RenewVpnGatewayRequest;
|
|
208
209
|
const SecurityGroupPolicy = models.SecurityGroupPolicy;
|
|
209
210
|
const DescribeSnapshotPoliciesRequest = models.DescribeSnapshotPoliciesRequest;
|
|
211
|
+
const DeleteTrafficPackagesRequest = models.DeleteTrafficPackagesRequest;
|
|
210
212
|
const NotifyRoutesRequest = models.NotifyRoutesRequest;
|
|
211
213
|
const DeleteVpcRequest = models.DeleteVpcRequest;
|
|
212
214
|
const ModifyServiceTemplateAttributeResponse = models.ModifyServiceTemplateAttributeResponse;
|
|
@@ -342,6 +344,7 @@ const SetCcnRegionBandwidthLimitsResponse = models.SetCcnRegionBandwidthLimitsRe
|
|
|
342
344
|
const ModifySnapshotPoliciesResponse = models.ModifySnapshotPoliciesResponse;
|
|
343
345
|
const DescribeAccountAttributesRequest = models.DescribeAccountAttributesRequest;
|
|
344
346
|
const DescribeCcnRoutesRequest = models.DescribeCcnRoutesRequest;
|
|
347
|
+
const GenerateVpnConnectionDefaultHealthCheckIpResponse = models.GenerateVpnConnectionDefaultHealthCheckIpResponse;
|
|
345
348
|
const CreateAndAttachNetworkInterfaceRequest = models.CreateAndAttachNetworkInterfaceRequest;
|
|
346
349
|
const DeleteVpcEndPointResponse = models.DeleteVpcEndPointResponse;
|
|
347
350
|
const DeleteNetDetectResponse = models.DeleteNetDetectResponse;
|
|
@@ -453,6 +456,7 @@ const EnableGatewayFlowMonitorResponse = models.EnableGatewayFlowMonitorResponse
|
|
|
453
456
|
const Resource = models.Resource;
|
|
454
457
|
const CustomerGateway = models.CustomerGateway;
|
|
455
458
|
const AllocateAddressesResponse = models.AllocateAddressesResponse;
|
|
459
|
+
const DeleteTrafficPackagesResponse = models.DeleteTrafficPackagesResponse;
|
|
456
460
|
const BandwidthPackage = models.BandwidthPackage;
|
|
457
461
|
const ModifyVpcAttributeRequest = models.ModifyVpcAttributeRequest;
|
|
458
462
|
const ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest = models.ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest;
|
|
@@ -686,8 +690,7 @@ Only one policy in a single direction can be replaced in each request, and the P
|
|
|
686
690
|
}
|
|
687
691
|
|
|
688
692
|
/**
|
|
689
|
-
* This API is used to change the IP
|
|
690
|
-
|
|
693
|
+
* This API is used to change the public IP of a CVM or the EIP of the associated bandwidth package.
|
|
691
694
|
* @param {AdjustPublicAddressRequest} req
|
|
692
695
|
* @param {function(string, AdjustPublicAddressResponse):void} cb
|
|
693
696
|
* @public
|
|
@@ -754,7 +757,7 @@ Only one policy in a single direction can be replaced in each request, and the P
|
|
|
754
757
|
}
|
|
755
758
|
|
|
756
759
|
/**
|
|
757
|
-
*
|
|
760
|
+
* This API is used to query route tables.
|
|
758
761
|
* @param {DescribeRouteTablesRequest} req
|
|
759
762
|
* @param {function(string, DescribeRouteTablesResponse):void} cb
|
|
760
763
|
* @public
|
|
@@ -1327,15 +1330,25 @@ Policies to modify must be in the same direction. `PolicyIndex` must be specifie
|
|
|
1327
1330
|
}
|
|
1328
1331
|
|
|
1329
1332
|
/**
|
|
1330
|
-
* This API
|
|
1331
|
-
*
|
|
1332
|
-
* @param {
|
|
1333
|
-
* @param {function(string, ReplaceRouteTableAssociationResponse):void} cb
|
|
1333
|
+
* This API is used to get a pair of VPN tunnel health check addresses.
|
|
1334
|
+
* @param {GenerateVpnConnectionDefaultHealthCheckIpRequest} req
|
|
1335
|
+
* @param {function(string, GenerateVpnConnectionDefaultHealthCheckIpResponse):void} cb
|
|
1334
1336
|
* @public
|
|
1335
1337
|
*/
|
|
1336
|
-
|
|
1337
|
-
let resp = new
|
|
1338
|
-
this.request("
|
|
1338
|
+
GenerateVpnConnectionDefaultHealthCheckIp(req, cb) {
|
|
1339
|
+
let resp = new GenerateVpnConnectionDefaultHealthCheckIpResponse();
|
|
1340
|
+
this.request("GenerateVpnConnectionDefaultHealthCheckIp", req, resp, cb);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* This API is used to delete traffic packages. Note that only non-valid traffic packages can be deleted.
|
|
1345
|
+
* @param {DeleteTrafficPackagesRequest} req
|
|
1346
|
+
* @param {function(string, DeleteTrafficPackagesResponse):void} cb
|
|
1347
|
+
* @public
|
|
1348
|
+
*/
|
|
1349
|
+
DeleteTrafficPackages(req, cb) {
|
|
1350
|
+
let resp = new DeleteTrafficPackagesResponse();
|
|
1351
|
+
this.request("DeleteTrafficPackages", req, resp, cb);
|
|
1339
1352
|
}
|
|
1340
1353
|
|
|
1341
1354
|
/**
|
|
@@ -1683,8 +1696,8 @@ This API is used to query only the information of `IPv6` addresses that are alre
|
|
|
1683
1696
|
}
|
|
1684
1697
|
|
|
1685
1698
|
/**
|
|
1686
|
-
* This API
|
|
1687
|
-
The number of network instances that each CCN can be associated with is limited. For more information, see the product documentation. If you need to associate more instances, please
|
|
1699
|
+
* This API is used to add a network instance to a CCN instance. Network instances include VPCs and Direct Connect gateways. <br />
|
|
1700
|
+
The number of network instances that each CCN can be associated with is limited. For more information, see the product documentation. If you need to associate more instances, please submit a ticket.
|
|
1688
1701
|
* @param {AttachCcnInstancesRequest} req
|
|
1689
1702
|
* @param {function(string, AttachCcnInstancesResponse):void} cb
|
|
1690
1703
|
* @public
|
|
@@ -1723,8 +1736,8 @@ The number of network instances that each CCN can be associated with is limited.
|
|
|
1723
1736
|
}
|
|
1724
1737
|
|
|
1725
1738
|
/**
|
|
1726
|
-
* This API
|
|
1727
|
-
|
|
1739
|
+
* This API is used to delete a subnet.
|
|
1740
|
+
* Remove all resources in the subnet before deleting it
|
|
1728
1741
|
* @param {DeleteSubnetRequest} req
|
|
1729
1742
|
* @param {function(string, DeleteSubnetResponse):void} cb
|
|
1730
1743
|
* @public
|
|
@@ -2141,6 +2154,18 @@ When a NAT gateway is deleted, all routes containing this gateway are deleted au
|
|
|
2141
2154
|
this.request("DescribeCcnRegionBandwidthLimits", req, resp, cb);
|
|
2142
2155
|
}
|
|
2143
2156
|
|
|
2157
|
+
/**
|
|
2158
|
+
* This API (ReplaceRouteTableAssociation) is used to modify the route table associated with a subnet.
|
|
2159
|
+
* A subnet can only be associated with one route table.
|
|
2160
|
+
* @param {ReplaceRouteTableAssociationRequest} req
|
|
2161
|
+
* @param {function(string, ReplaceRouteTableAssociationResponse):void} cb
|
|
2162
|
+
* @public
|
|
2163
|
+
*/
|
|
2164
|
+
ReplaceRouteTableAssociation(req, cb) {
|
|
2165
|
+
let resp = new ReplaceRouteTableAssociationResponse();
|
|
2166
|
+
this.request("ReplaceRouteTableAssociation", req, resp, cb);
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2144
2169
|
/**
|
|
2145
2170
|
* This API is used to withdraw a route from CCN.
|
|
2146
2171
|
* @param {WithdrawNotifyRoutesRequest} req
|
|
@@ -2189,8 +2214,8 @@ This API is completed asynchronously. If you need to query the execution result
|
|
|
2189
2214
|
}
|
|
2190
2215
|
|
|
2191
2216
|
/**
|
|
2192
|
-
* This API is used to query IP usage of a subnet or VPC.
|
|
2193
|
-
If the IP is
|
|
2217
|
+
* This API is used to query the IP usage of a subnet or VPC.
|
|
2218
|
+
If the IP is occupied, the resource type and ID associated with the are is returned. If the IP is not used, it returns null.
|
|
2194
2219
|
* @param {DescribeUsedIpAddressRequest} req
|
|
2195
2220
|
* @param {function(string, DescribeUsedIpAddressResponse):void} cb
|
|
2196
2221
|
* @public
|
|
@@ -3590,19 +3615,20 @@ For parameters of `SecurityGroupPolicySet`,
|
|
|
3590
3615
|
}
|
|
3591
3616
|
|
|
3592
3617
|
/**
|
|
3593
|
-
* This API
|
|
3594
|
-
*
|
|
3595
|
-
*
|
|
3618
|
+
* This API is used to create u200da security group, and add security group policies.
|
|
3619
|
+
* For the the upper limit of security groups per project in each region under each account, <a href="https://intl.cloud.tencent.com/document/product/213/12453?from_cn_redirect=1">see here</a>
|
|
3620
|
+
* u200dFor u200dnewly u200dcreated security groups, u200dthe inbound and outbound policies are set to `Deny All` by default. You need to call <a href="https://intl.cloud.tencent.com/document/product/215/15807?from_cn_redirect=1">CreateSecurityGroupPolicies</a>
|
|
3621
|
+
to change it.
|
|
3596
3622
|
|
|
3597
3623
|
Description:
|
|
3598
|
-
* `Version`:
|
|
3599
|
-
* `Protocol`: Values can be TCP
|
|
3600
|
-
* `CidrBlock`:
|
|
3601
|
-
* `Ipv6CidrBlock`:
|
|
3602
|
-
* `SecurityGroupId`: ID of the security group. It can be
|
|
3603
|
-
* `Port`:
|
|
3624
|
+
* `Version`: The version number of a security group policy. It automatically increments by 1 every time you update the security policy, so to prevent the expiration of the updated policies. If this field is left empty, any conflicts will be ignored.
|
|
3625
|
+
* `Protocol`: Values can be `TCP`, `UDP`, `ICMP`, `ICMPV6`, `GRE`, and `ALL`.
|
|
3626
|
+
* `CidrBlock`: Enter a CIDR block in the correct format. In the classic network, even if the CIDR block specified in u200d`CidrBlock` contains the Tencent Cloud private IPs not used for CVMs under your Tencent Cloud account, it does not mean this policy allows you to access those resources. The network isolation policies between tenants take priority over the private network policies in security groups.
|
|
3627
|
+
* `Ipv6CidrBlock`: Enter an IPv6 CIDR block in the correct format. In the classic network, even if the CIDR block specified in `Ipv6CidrBlock` contains the Tencent Cloud private IPv6 addresses not used for CVMs under your Tencent Cloud account, it does not mean this policy allows you to access those resources. The network isolation policies between tenants take priority over the private network policies in security groups.
|
|
3628
|
+
* `SecurityGroupId`: ID of the security group. It can be the ID of a security group to be modified, or the ID of another security group in the same project. All private IPs of all CVMs under the security group will be covered. If this field is used, the policy will automatically change according to the CVM associated with the group ID while being used to match network messages. You don't need to change it manually.
|
|
3629
|
+
* `Port`: Enter a single port number (such as `80`), or a port range (such as `8000-8010`). `Port` is only applicable when `Protocol` is `TCP` or `UDP`. If `Protocol` is not `TCP` or `UDP`, `Protocol` and `Port` cannot be both specified.
|
|
3604
3630
|
* `Action`: Values can be `ACCEPT` or `DROP`.
|
|
3605
|
-
* CidrBlock
|
|
3631
|
+
* `CidrBlock`, `Ipv6CidrBlock`, `SecurityGroupId`, and `AddressTemplate` are exclusive u200dto one another. “Protocol + Port” and `ServiceTemplate` are mutually exclusive.
|
|
3606
3632
|
* Only policies in one direction can be created in each request. If you need to specify the `PolicyIndex` parameter, the indexes of policies must be consistent.
|
|
3607
3633
|
* @param {CreateSecurityGroupWithPoliciesRequest} req
|
|
3608
3634
|
* @param {function(string, CreateSecurityGroupWithPoliciesResponse):void} cb
|