tencentcloud-sdk-nodejs-intl-en 3.0.331 → 3.0.335
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/cls/v20201016/cls_client.js +32 -47
- package/tencentcloud/cls/v20201016/models.js +26 -3
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/es/v20180416/models.js +51 -0
- package/tencentcloud/lighthouse/v20200324/lighthouse_client.js +4 -2
- package/tencentcloud/lighthouse/v20200324/models.js +8 -2
- package/tencentcloud/monitor/v20180724/models.js +4 -6
- package/tencentcloud/scf/v20180416/models.js +85 -1
- package/tencentcloud/scf/v20180416/scf_client.js +1 -0
- package/tencentcloud/sms/v20210111/models.js +5 -5
- package/tencentcloud/vpc/v20170312/models.js +239 -23
- package/tencentcloud/vpc/v20170312/vpc_client.js +5 -2
package/package.json
CHANGED
|
@@ -595,7 +595,7 @@ class ClsClient extends AbstractClient {
|
|
|
595
595
|
/**
|
|
596
596
|
* ## Feature Description
|
|
597
597
|
|
|
598
|
-
This API is used to write
|
|
598
|
+
This API is used to write logs to a specified log topic.
|
|
599
599
|
|
|
600
600
|
CLS provides the following two modes:
|
|
601
601
|
|
|
@@ -605,72 +605,57 @@ In this mode, logs will be automatically written to a target partition among all
|
|
|
605
605
|
|
|
606
606
|
#### Hash routing mode
|
|
607
607
|
|
|
608
|
-
In this mode, data will be written to a target partition that meets the range requirements based on the hash value (X-CLS-HashKey) carried by data. For example, a log source can be bound to a topic partition through `
|
|
608
|
+
In this mode, data will be written to a target partition that meets the range requirements based on the hash value (`X-CLS-HashKey`) carried by data. For example, a log source can be bound to a topic partition through `HashKey`, strictly guaranteeing the sequence of the data written to and consumed in this partition.
|
|
609
609
|
|
|
610
610
|
In addition, CLS allows you to upload logs in the following two modes:
|
|
611
|
+
|
|
611
612
|
|
|
613
|
+
#### Input parameters (pb binary streams in `body`)
|
|
612
614
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
#### Request header parameters
|
|
616
|
-
|
|
617
|
-
The `X-CLS-HashKey` request header indicates that logs are written to the CLS topic partitions with a range corresponding to the hashkey route, strictly guaranteeing the write sequence of logs to each topic partition for sequential consumption.
|
|
618
|
-
|
|
619
|
-
| Field | Type | Location | Required | Description |
|
|
620
|
-
| ------------------ | ------ | ------ | -------- | ------------------------------------------------------------ |
|
|
621
|
-
| X-CLS-HashKey | string | header | No | Logs are written to the corresponding topic partition according to `hashkey` |
|
|
622
|
-
| X-CLS-TopicId | String | header | Yes | Topic ID | |
|
|
623
|
-
| Content-Type | String | header | Yes | Protocol type of the request parameter. Currently, only the PB protocol is supported. Please enter "application/octet-stream". |
|
|
624
|
-
| X-TC-Action | String | header | Yes | Common parameter. The value used for this API: UploadLog.
|
|
625
|
-
| X-TC-Region | String | header | Yes | Common parameter. This parameter is not required for this API.
|
|
626
|
-
| X-TC-Version | String | header | Yes | Common parameter. The value used for this API: 2020-10-16.
|
|
627
|
-
|
|
628
|
-
#### Input parameters (PB protocol)
|
|
629
|
-
|
|
630
|
-
| Field | Type | Location | Required | Description |
|
|
615
|
+
| Parameter | Type | Location | Required | Description |
|
|
631
616
|
| ------------ | ------- | ---- | ---- | ------------------------------------------------------------ |
|
|
632
|
-
| logGroupList | message | pb | Yes | The logGroup list, which describes the encapsulated log groups.
|
|
617
|
+
| logGroupList | message | pb | Yes | The `logGroup` list, which describes the encapsulated log groups. We recommend you enter up to 5 `logGroup` values. |
|
|
633
618
|
|
|
634
619
|
`LogGroup` description:
|
|
635
620
|
|
|
636
|
-
|
|
|
621
|
+
| Parameter | Required | Description |
|
|
637
622
|
| ----------- | -------- | ------------------------------------------------------------ |
|
|
638
623
|
| logs | Yes | Log array consisting of multiple `Log` values. The `Log` indicates a log, and a `LogGroup` can contain up to 10,000 `Log` values. |
|
|
639
|
-
| contextFlow | No | Unique LogGroup ID, which should be passed in if the context feature needs to be used. Format: "{context ID}-{LogGroupID}". <br>Context ID: uniquely identifies the context (a series of log files that are continuously scrolling or a series of logs that need to be sequenced), which is a 64-bit integer hex string. <br>LogGroupID: a 64-bit integer hex string that continuously increases, such as
|
|
624
|
+
| contextFlow | No | Unique `LogGroup` ID, which should be passed in if the context feature needs to be used. Format: "{context ID}-{LogGroupID}". <br>Context ID: uniquely identifies the context (a series of log files that are continuously scrolling or a series of logs that need to be sequenced), which is a 64-bit integer hex string. <br>LogGroupID: a 64-bit integer hex string that continuously increases, such as `102700A66102516A-59F59`. |
|
|
640
625
|
| filename | No | Log filename |
|
|
641
|
-
| source | No | Log source, which is generally the
|
|
642
|
-
| logTags | No | Tag list of
|
|
626
|
+
| source | No | Log source, which is generally the machine IP |
|
|
627
|
+
| logTags | No | Tag list of logs |
|
|
643
628
|
|
|
644
629
|
`Log` description:
|
|
645
630
|
|
|
646
|
-
|
|
|
631
|
+
| Parameter | Required | Description |
|
|
647
632
|
| -------- | -------- | ------------------------------------------------------------ |
|
|
648
|
-
| time | Yes |
|
|
649
|
-
| contents | No | Log content in
|
|
633
|
+
| time | Yes | Unix timestamp of log time in seconds or milliseconds (recommended) |
|
|
634
|
+
| contents | No | Log content in key-value format. A log can contain multiple key-value pairs. |
|
|
650
635
|
|
|
651
636
|
`Content` description:
|
|
652
637
|
|
|
653
|
-
|
|
|
638
|
+
| Parameter | Required | Description |
|
|
654
639
|
| ------ | -------- | ------------------------------------------------------------ |
|
|
655
640
|
| key | Yes | Key of a field group in one log, which cannot start with `_`. |
|
|
656
|
-
| value | Yes | Value of a field group
|
|
641
|
+
| value | Yes | Value of a field group. The `value` of one log cannot exceed 1 MB and the total `value` in `LogGroup` cannot exceed 5 MB. |
|
|
657
642
|
|
|
658
643
|
`LogTag` description:
|
|
659
644
|
|
|
660
|
-
|
|
|
645
|
+
| Parameter | Required | Description |
|
|
661
646
|
| ------ | -------- | -------------------------------- |
|
|
662
|
-
| key | Yes | Key of a custom tag
|
|
647
|
+
| key | Yes | Key of a custom tag |
|
|
663
648
|
| value | Yes | Value corresponding to the custom tag key |
|
|
664
649
|
|
|
665
|
-
##
|
|
650
|
+
## pb Compilation Sample
|
|
666
651
|
|
|
667
|
-
This sample describes how to use the protoc compiler to compile the
|
|
652
|
+
This sample describes how to use the protoc compiler to compile the pb description file into a log upload API in C++.
|
|
668
653
|
|
|
669
654
|
> ?Currently, protoc supports compilation in multiple programming languages such as Java, C++, and Python. For more information, please see [protoc](https://github.com/protocolbuffers/protobuf).
|
|
670
655
|
|
|
671
|
-
#### 1. Install Protocol
|
|
656
|
+
#### 1. Install Protocol Buffers
|
|
672
657
|
|
|
673
|
-
Download [Protocol
|
|
658
|
+
Download [Protocol Buffers](https://main.qcloudimg.com/raw/d7810aaf8b3073fbbc9d4049c21532aa/protobuf-2.6.1.tar.gz), decompress the package, and install the tool. The version used in the sample is protobuf 2.6.1 running on CentOS 7.3. Run the following command to decompress the `protobuf-2.6.1.tar.gz` package to the `/usr/local` directory and enter the directory:
|
|
674
659
|
|
|
675
660
|
```
|
|
676
661
|
tar -zxvf protobuf-2.6.1.tar.gz -C /usr/local/ && cd /usr/local/protobuf-2.6.1
|
|
@@ -691,15 +676,15 @@ After the compilation succeeds, run the following command to check the version:
|
|
|
691
676
|
liprotoc 2.6.1
|
|
692
677
|
```
|
|
693
678
|
|
|
694
|
-
#### 2. Create a
|
|
679
|
+
#### 2. Create a pb description file
|
|
695
680
|
|
|
696
|
-
A
|
|
681
|
+
A pb description file is an agreed-on data interchange format for communication. To upload logs, please compile the specified protocol format to an API in the target programming language and add the API to the project code. For more information, please see [protoc](https://github.com/protocolbuffers/protobuf).
|
|
697
682
|
|
|
698
|
-
Create a
|
|
683
|
+
Create a pb message description file `cls.proto` based on the pb data format content specified by CLS.
|
|
699
684
|
|
|
700
|
-
> !The
|
|
685
|
+
> !The pb description file content cannot be modified, and the filename must end with `.proto`.
|
|
701
686
|
|
|
702
|
-
The content of `cls.proto` (
|
|
687
|
+
The content of `cls.proto` (pb description file) is as follows:
|
|
703
688
|
|
|
704
689
|
```
|
|
705
690
|
package cls;
|
|
@@ -712,7 +697,7 @@ message Log
|
|
|
712
697
|
required string value = 2; // Value of each field group
|
|
713
698
|
}
|
|
714
699
|
required int64 time = 1; // Unix timestamp
|
|
715
|
-
repeated Content contents = 2; // Multiple
|
|
700
|
+
repeated Content contents = 2; // Multiple key-value pairs in one log
|
|
716
701
|
}
|
|
717
702
|
|
|
718
703
|
message LogTag
|
|
@@ -726,7 +711,7 @@ message LogGroup
|
|
|
726
711
|
repeated Log logs = 1; // Log array consisting of multiple logs
|
|
727
712
|
optional string contextFlow = 2; // This parameter does not take effect currently
|
|
728
713
|
optional string filename = 3; // Log filename
|
|
729
|
-
optional string source = 4; // Log source, which is generally the
|
|
714
|
+
optional string source = 4; // Log source, which is generally the machine IP
|
|
730
715
|
repeated LogTag logTags = 5;
|
|
731
716
|
}
|
|
732
717
|
|
|
@@ -744,9 +729,9 @@ This sample uses the proto compiler to generate a C++ file in the same directory
|
|
|
744
729
|
protoc --cpp_out=./ ./cls.proto
|
|
745
730
|
```
|
|
746
731
|
|
|
747
|
-
> ?`--cpp_out
|
|
732
|
+
> ?`--cpp_out=./ ` indicates that the file will be compiled in cpp format and output to the current directory. `./cls.proto` indicates the `cls.proto` description file in the current directory.
|
|
748
733
|
|
|
749
|
-
After the compilation succeeds, the code file in the corresponding programming language will be generated. This sample generates the `cls.pb.h` header file and
|
|
734
|
+
After the compilation succeeds, the code file in the corresponding programming language will be generated. This sample generates the `cls.pb.h` header file and `cls.pb.cc` code implementation file as shown below:
|
|
750
735
|
|
|
751
736
|
```
|
|
752
737
|
[root@VM_0_8_centos protobuf-2.6.1]# protoc --cpp_out=./ ./cls.proto
|
|
@@ -754,9 +739,9 @@ After the compilation succeeds, the code file in the corresponding programming l
|
|
|
754
739
|
cls.pb.cc cls.pb.h cls.proto
|
|
755
740
|
```
|
|
756
741
|
|
|
757
|
-
#### 4. Call
|
|
742
|
+
#### 4. Call the API
|
|
758
743
|
|
|
759
|
-
Import the generated `cls.pb.h` header file into the code and call the API for data
|
|
744
|
+
Import the generated `cls.pb.h` header file into the code and call the API for data encapsulation.
|
|
760
745
|
* @param {UploadLogRequest} req
|
|
761
746
|
* @param {function(string, UploadLogResponse):void} cb
|
|
762
747
|
* @public
|
|
@@ -702,6 +702,24 @@ class UploadLogRequest extends AbstractModel {
|
|
|
702
702
|
constructor(){
|
|
703
703
|
super();
|
|
704
704
|
|
|
705
|
+
/**
|
|
706
|
+
* Topic ID
|
|
707
|
+
* @type {string || null}
|
|
708
|
+
*/
|
|
709
|
+
this.TopicId = null;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Topic partition where data will be written into by `HashKey`
|
|
713
|
+
* @type {string || null}
|
|
714
|
+
*/
|
|
715
|
+
this.HashKey = null;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Compression type
|
|
719
|
+
* @type {string || null}
|
|
720
|
+
*/
|
|
721
|
+
this.CompressType = null;
|
|
722
|
+
|
|
705
723
|
}
|
|
706
724
|
|
|
707
725
|
/**
|
|
@@ -711,6 +729,9 @@ class UploadLogRequest extends AbstractModel {
|
|
|
711
729
|
if (!params) {
|
|
712
730
|
return;
|
|
713
731
|
}
|
|
732
|
+
this.TopicId = 'TopicId' in params ? params.TopicId : null;
|
|
733
|
+
this.HashKey = 'HashKey' in params ? params.HashKey : null;
|
|
734
|
+
this.CompressType = 'CompressType' in params ? params.CompressType : null;
|
|
714
735
|
|
|
715
736
|
}
|
|
716
737
|
}
|
|
@@ -3629,13 +3650,15 @@ Note: this field may return `null`, indicating that no valid values can be obtai
|
|
|
3629
3650
|
this.AnalysisResults = null;
|
|
3630
3651
|
|
|
3631
3652
|
/**
|
|
3632
|
-
*
|
|
3653
|
+
* New log analysis result, which will be valid if `UseNewAnalysis` is `true`
|
|
3654
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
3633
3655
|
* @type {Array.<string> || null}
|
|
3634
3656
|
*/
|
|
3635
3657
|
this.AnalysisRecords = null;
|
|
3636
3658
|
|
|
3637
3659
|
/**
|
|
3638
|
-
*
|
|
3660
|
+
* Column attribute of log analysis, which will be valid if `UseNewAnalysis` is `true`
|
|
3661
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
3639
3662
|
* @type {Array.<Column> || null}
|
|
3640
3663
|
*/
|
|
3641
3664
|
this.Columns = null;
|
|
@@ -5542,7 +5565,7 @@ class GetAlarmLogRequest extends AbstractModel {
|
|
|
5542
5565
|
this.Sort = null;
|
|
5543
5566
|
|
|
5544
5567
|
/**
|
|
5545
|
-
*
|
|
5568
|
+
* If the value is `true`, the new search method will be used, and the response parameters `AnalysisRecords` and `Columns` will be valid. If the value is `false`, the old search method will be used, and `AnalysisResults` and `ColNames` will be valid.
|
|
5546
5569
|
* @type {boolean || null}
|
|
5547
5570
|
*/
|
|
5548
5571
|
this.UseNewAnalysis = null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.335";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -1064,6 +1064,12 @@ Dedicated primary node disk size in GB, which is optional. If passed in, it can
|
|
|
1064
1064
|
*/
|
|
1065
1065
|
this.WebNodeTypeInfo = null;
|
|
1066
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* Valid values: `https`, `http` (default)
|
|
1069
|
+
* @type {string || null}
|
|
1070
|
+
*/
|
|
1071
|
+
this.Protocol = null;
|
|
1072
|
+
|
|
1067
1073
|
}
|
|
1068
1074
|
|
|
1069
1075
|
/**
|
|
@@ -1131,6 +1137,7 @@ Dedicated primary node disk size in GB, which is optional. If passed in, it can
|
|
|
1131
1137
|
obj.deserialize(params.WebNodeTypeInfo)
|
|
1132
1138
|
this.WebNodeTypeInfo = obj;
|
|
1133
1139
|
}
|
|
1140
|
+
this.Protocol = 'Protocol' in params ? params.Protocol : null;
|
|
1134
1141
|
|
|
1135
1142
|
}
|
|
1136
1143
|
}
|
|
@@ -1506,6 +1513,20 @@ Note: this field may return `null`, indicating that no valid values can be obtai
|
|
|
1506
1513
|
*/
|
|
1507
1514
|
this.Jdk = null;
|
|
1508
1515
|
|
|
1516
|
+
/**
|
|
1517
|
+
* Cluster network communication protocol
|
|
1518
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1519
|
+
* @type {string || null}
|
|
1520
|
+
*/
|
|
1521
|
+
this.Protocol = null;
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* Security group ID
|
|
1525
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1526
|
+
* @type {Array.<string> || null}
|
|
1527
|
+
*/
|
|
1528
|
+
this.SecurityGroups = null;
|
|
1529
|
+
|
|
1509
1530
|
}
|
|
1510
1531
|
|
|
1511
1532
|
/**
|
|
@@ -1631,6 +1652,8 @@ Note: this field may return `null`, indicating that no valid values can be obtai
|
|
|
1631
1652
|
this.WebNodeTypeInfo = obj;
|
|
1632
1653
|
}
|
|
1633
1654
|
this.Jdk = 'Jdk' in params ? params.Jdk : null;
|
|
1655
|
+
this.Protocol = 'Protocol' in params ? params.Protocol : null;
|
|
1656
|
+
this.SecurityGroups = 'SecurityGroups' in params ? params.SecurityGroups : null;
|
|
1634
1657
|
|
|
1635
1658
|
}
|
|
1636
1659
|
}
|
|
@@ -2124,6 +2147,30 @@ Dedicated primary node disk size in GB. This is 50 GB by default and currently c
|
|
|
2124
2147
|
*/
|
|
2125
2148
|
this.WebNodeTypeInfo = null;
|
|
2126
2149
|
|
|
2150
|
+
/**
|
|
2151
|
+
* Whether to switch to the new network architecture
|
|
2152
|
+
* @type {string || null}
|
|
2153
|
+
*/
|
|
2154
|
+
this.SwitchPrivateLink = null;
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* Whether to enable Cerebro
|
|
2158
|
+
* @type {boolean || null}
|
|
2159
|
+
*/
|
|
2160
|
+
this.EnableCerebro = null;
|
|
2161
|
+
|
|
2162
|
+
/**
|
|
2163
|
+
* Cerebro public network access status
|
|
2164
|
+
* @type {string || null}
|
|
2165
|
+
*/
|
|
2166
|
+
this.CerebroPublicAccess = null;
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* Cerebro private network access status
|
|
2170
|
+
* @type {string || null}
|
|
2171
|
+
*/
|
|
2172
|
+
this.CerebroPrivateAccess = null;
|
|
2173
|
+
|
|
2127
2174
|
}
|
|
2128
2175
|
|
|
2129
2176
|
/**
|
|
@@ -2194,6 +2241,10 @@ Dedicated primary node disk size in GB. This is 50 GB by default and currently c
|
|
|
2194
2241
|
obj.deserialize(params.WebNodeTypeInfo)
|
|
2195
2242
|
this.WebNodeTypeInfo = obj;
|
|
2196
2243
|
}
|
|
2244
|
+
this.SwitchPrivateLink = 'SwitchPrivateLink' in params ? params.SwitchPrivateLink : null;
|
|
2245
|
+
this.EnableCerebro = 'EnableCerebro' in params ? params.EnableCerebro : null;
|
|
2246
|
+
this.CerebroPublicAccess = 'CerebroPublicAccess' in params ? params.CerebroPublicAccess : null;
|
|
2247
|
+
this.CerebroPrivateAccess = 'CerebroPrivateAccess' in params ? params.CerebroPrivateAccess : null;
|
|
2197
2248
|
|
|
2198
2249
|
}
|
|
2199
2250
|
}
|
|
@@ -462,7 +462,9 @@ In the `FirewallRules` parameter:
|
|
|
462
462
|
* This API is used to reset the password of the instance OS to a user-specified password.
|
|
463
463
|
* You can only use this API to modify the password of the admin account. The name of the admin account varies by OS (on Windows, it is `Administrator`; on Ubuntu, it is `ubuntu`; on other systems, it is `root`).
|
|
464
464
|
* Batch operations are supported. You can reset the passwords of multiple instances to the same one. The maximum number of instances in each request is 100.
|
|
465
|
+
* It’s recommended to shut down the instance first and then reset the password. If the instance is running, this API will try to shut it down normally. If the attempt fails, it will force to instance to shut down.
|
|
465
466
|
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
|
|
467
|
+
Note: Just like powering off a physical PC, a forced shutdown may cause data loss or the corruption of file system.
|
|
466
468
|
* @param {ResetInstancesPasswordRequest} req
|
|
467
469
|
* @param {function(string, ResetInstancesPasswordResponse):void} cb
|
|
468
470
|
* @public
|
|
@@ -694,10 +696,10 @@ In the `FirewallRules` parameter:
|
|
|
694
696
|
}
|
|
695
697
|
|
|
696
698
|
/**
|
|
697
|
-
* This API is used to
|
|
699
|
+
* This API is used to terminate one or more instances.
|
|
698
700
|
|
|
699
701
|
* Instances in `SHUTDOWN` status can be terminated through this API and cannot be recovered.
|
|
700
|
-
* Batch operations are supported. The maximum number of instances in each request is 100.
|
|
702
|
+
* Batch operations are supported. The allowed maximum number of instances in each request is 100.
|
|
701
703
|
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
|
|
702
704
|
* @param {TerminateInstancesRequest} req
|
|
703
705
|
* @param {function(string, TerminateInstancesResponse):void} cb
|
|
@@ -1895,6 +1895,9 @@ Required: no
|
|
|
1895
1895
|
<li>blueprint-name</li>Filter by **image name**.
|
|
1896
1896
|
Type: String
|
|
1897
1897
|
Required: no
|
|
1898
|
+
<li>blueprint-state</li>Filter by **image status**.
|
|
1899
|
+
Type: String
|
|
1900
|
+
Required: no
|
|
1898
1901
|
|
|
1899
1902
|
Each request can contain up to 10 `Filters` and 5 `Filter.Values`. `BlueprintIds` and `Filters` cannot be specified at the same time.
|
|
1900
1903
|
* @type {Array.<Filter> || null}
|
|
@@ -3736,8 +3739,8 @@ class ResetInstancesPasswordRequest extends AbstractModel {
|
|
|
3736
3739
|
this.InstanceIds = null;
|
|
3737
3740
|
|
|
3738
3741
|
/**
|
|
3739
|
-
*
|
|
3740
|
-
The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/": <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'
|
|
3742
|
+
* Login password of the instance(s). The password requirements vary among different operating systems:
|
|
3743
|
+
The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/": <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/</li>
|
|
3741
3744
|
The password of a `WINDOWS` instance must contain 12–30 characters in at least three of the following types and cannot begin with "/" or include the username: <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/<br><li>If both `LINUX_UNIX` and `WINDOWS` instances exist, the requirements for password complexity of `WINDOWS` instances shall prevail.
|
|
3742
3745
|
* @type {string || null}
|
|
3743
3746
|
*/
|
|
@@ -4665,6 +4668,9 @@ Required: no
|
|
|
4665
4668
|
<li>blueprint-name</li>Filter by **image name**.
|
|
4666
4669
|
Type: String
|
|
4667
4670
|
Required: no
|
|
4671
|
+
<li>blueprint-state</li>Filter by **image status**.
|
|
4672
|
+
Type: String
|
|
4673
|
+
Required: no
|
|
4668
4674
|
|
|
4669
4675
|
Each request can contain up to 10 `Filters` and 5 `Filter.Values`. `BlueprintIds` and `Filters` cannot be specified at the same time.
|
|
4670
4676
|
* @type {Array.<Filter> || null}
|
|
@@ -357,7 +357,7 @@ class DescribeProductEventListRequest extends AbstractModel {
|
|
|
357
357
|
this.Dimensions = null;
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
|
-
* Region filter parameter for service events
|
|
360
|
+
* Region filter parameter for service events.
|
|
361
361
|
* @type {Array.<string> || null}
|
|
362
362
|
*/
|
|
363
363
|
this.RegionList = null;
|
|
@@ -875,7 +875,7 @@ class CreateAlarmPolicyRequest extends AbstractModel {
|
|
|
875
875
|
this.MonitorType = null;
|
|
876
876
|
|
|
877
877
|
/**
|
|
878
|
-
* Type of alarm policy, which can be obtained via [DescribeAllNamespaces](https://intl.cloud.tencent.com/document/product/248/48683?from_cn_redirect=1).
|
|
878
|
+
* Type of alarm policy, which can be obtained via [DescribeAllNamespaces](https://intl.cloud.tencent.com/document/product/248/48683?from_cn_redirect=1). For the monitoring of Tencent Cloud services, the value of this parameter is `QceNamespacesNew.N.Id` of the output parameter of `DescribeAllNamespaces`, for example, `cvm_device`.
|
|
879
879
|
* @type {string || null}
|
|
880
880
|
*/
|
|
881
881
|
this.Namespace = null;
|
|
@@ -4757,7 +4757,6 @@ class DescribeAlarmHistoriesRequest extends AbstractModel {
|
|
|
4757
4757
|
|
|
4758
4758
|
/**
|
|
4759
4759
|
* Filter by project ID. Valid values: `-1` (no project), `0` (default project)
|
|
4760
|
-
You can query [Project Management](https://console.cloud.tencent.com/project) on this page.
|
|
4761
4760
|
* @type {Array.<number> || null}
|
|
4762
4761
|
*/
|
|
4763
4762
|
this.ProjectIds = null;
|
|
@@ -4770,7 +4769,6 @@ You can query [Project Management](https://console.cloud.tencent.com/project) on
|
|
|
4770
4769
|
|
|
4771
4770
|
/**
|
|
4772
4771
|
* Filter by policy type. Monitoring type and policy type are first-level and second-level filters respectively and both need to be passed in. For example, `[{"MonitorType": "MT_QCE", "Namespace": "cvm_device"}]`
|
|
4773
|
-
This parameter can be queried with the API [DescribeAllNamespaces](https://intl.cloud.tencent.com/document/product/248/48683?from_cn_redirect=1).
|
|
4774
4772
|
* @type {Array.<MonitorTypeNamespace> || null}
|
|
4775
4773
|
*/
|
|
4776
4774
|
this.Namespaces = null;
|
|
@@ -4794,13 +4792,13 @@ This parameter can be queried with the API [DescribeAllNamespaces](https://intl.
|
|
|
4794
4792
|
this.Content = null;
|
|
4795
4793
|
|
|
4796
4794
|
/**
|
|
4797
|
-
* Search by recipient
|
|
4795
|
+
* Search by recipient
|
|
4798
4796
|
* @type {Array.<number> || null}
|
|
4799
4797
|
*/
|
|
4800
4798
|
this.ReceiverUids = null;
|
|
4801
4799
|
|
|
4802
4800
|
/**
|
|
4803
|
-
* Search by recipient group
|
|
4801
|
+
* Search by recipient group
|
|
4804
4802
|
* @type {Array.<number> || null}
|
|
4805
4803
|
*/
|
|
4806
4804
|
this.ReceiverGroups = null;
|
|
@@ -1012,6 +1012,13 @@ class VersionProvisionedConcurrencyInfo extends AbstractModel {
|
|
|
1012
1012
|
*/
|
|
1013
1013
|
this.Qualifier = null;
|
|
1014
1014
|
|
|
1015
|
+
/**
|
|
1016
|
+
* List of scheduled provisioned concurrency scaling actions
|
|
1017
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1018
|
+
* @type {Array.<TriggerAction> || null}
|
|
1019
|
+
*/
|
|
1020
|
+
this.TriggerActions = null;
|
|
1021
|
+
|
|
1015
1022
|
}
|
|
1016
1023
|
|
|
1017
1024
|
/**
|
|
@@ -1027,6 +1034,15 @@ class VersionProvisionedConcurrencyInfo extends AbstractModel {
|
|
|
1027
1034
|
this.StatusReason = 'StatusReason' in params ? params.StatusReason : null;
|
|
1028
1035
|
this.Qualifier = 'Qualifier' in params ? params.Qualifier : null;
|
|
1029
1036
|
|
|
1037
|
+
if (params.TriggerActions) {
|
|
1038
|
+
this.TriggerActions = new Array();
|
|
1039
|
+
for (let z in params.TriggerActions) {
|
|
1040
|
+
let obj = new TriggerAction();
|
|
1041
|
+
obj.deserialize(params.TriggerActions[z]);
|
|
1042
|
+
this.TriggerActions.push(obj);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1030
1046
|
}
|
|
1031
1047
|
}
|
|
1032
1048
|
|
|
@@ -2281,6 +2297,12 @@ class TerminateAsyncEventRequest extends AbstractModel {
|
|
|
2281
2297
|
*/
|
|
2282
2298
|
this.Namespace = null;
|
|
2283
2299
|
|
|
2300
|
+
/**
|
|
2301
|
+
* Specifies whether to enable graceful shutdown
|
|
2302
|
+
* @type {boolean || null}
|
|
2303
|
+
*/
|
|
2304
|
+
this.GraceShutdown = null;
|
|
2305
|
+
|
|
2284
2306
|
}
|
|
2285
2307
|
|
|
2286
2308
|
/**
|
|
@@ -2293,6 +2315,7 @@ class TerminateAsyncEventRequest extends AbstractModel {
|
|
|
2293
2315
|
this.FunctionName = 'FunctionName' in params ? params.FunctionName : null;
|
|
2294
2316
|
this.InvokeRequestId = 'InvokeRequestId' in params ? params.InvokeRequestId : null;
|
|
2295
2317
|
this.Namespace = 'Namespace' in params ? params.Namespace : null;
|
|
2318
|
+
this.GraceShutdown = 'GraceShutdown' in params ? params.GraceShutdown : null;
|
|
2296
2319
|
|
|
2297
2320
|
}
|
|
2298
2321
|
}
|
|
@@ -5039,7 +5062,7 @@ class Code extends AbstractModel {
|
|
|
5039
5062
|
this.CosBucketName = null;
|
|
5040
5063
|
|
|
5041
5064
|
/**
|
|
5042
|
-
* COS
|
|
5065
|
+
* File path of code package stored in COS, which should start with “/”
|
|
5043
5066
|
* @type {string || null}
|
|
5044
5067
|
*/
|
|
5045
5068
|
this.CosObjectName = null;
|
|
@@ -5680,6 +5703,51 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
5680
5703
|
}
|
|
5681
5704
|
}
|
|
5682
5705
|
|
|
5706
|
+
/**
|
|
5707
|
+
* Details of a scheduled provisioned concurrency scaling action
|
|
5708
|
+
* @class
|
|
5709
|
+
*/
|
|
5710
|
+
class TriggerAction extends AbstractModel {
|
|
5711
|
+
constructor(){
|
|
5712
|
+
super();
|
|
5713
|
+
|
|
5714
|
+
/**
|
|
5715
|
+
* Scheduled action name
|
|
5716
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
5717
|
+
* @type {string || null}
|
|
5718
|
+
*/
|
|
5719
|
+
this.TriggerName = null;
|
|
5720
|
+
|
|
5721
|
+
/**
|
|
5722
|
+
* Target provisioned concurrency of the scheduled scaling action
|
|
5723
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
5724
|
+
* @type {number || null}
|
|
5725
|
+
*/
|
|
5726
|
+
this.TriggerProvisionedConcurrencyNum = null;
|
|
5727
|
+
|
|
5728
|
+
/**
|
|
5729
|
+
* Trigger time of the scheduled action in Cron expression. Seven fields are required and should be separated with a space.
|
|
5730
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
5731
|
+
* @type {string || null}
|
|
5732
|
+
*/
|
|
5733
|
+
this.TriggerCronConfig = null;
|
|
5734
|
+
|
|
5735
|
+
}
|
|
5736
|
+
|
|
5737
|
+
/**
|
|
5738
|
+
* @private
|
|
5739
|
+
*/
|
|
5740
|
+
deserialize(params) {
|
|
5741
|
+
if (!params) {
|
|
5742
|
+
return;
|
|
5743
|
+
}
|
|
5744
|
+
this.TriggerName = 'TriggerName' in params ? params.TriggerName : null;
|
|
5745
|
+
this.TriggerProvisionedConcurrencyNum = 'TriggerProvisionedConcurrencyNum' in params ? params.TriggerProvisionedConcurrencyNum : null;
|
|
5746
|
+
this.TriggerCronConfig = 'TriggerCronConfig' in params ? params.TriggerCronConfig : null;
|
|
5747
|
+
|
|
5748
|
+
}
|
|
5749
|
+
}
|
|
5750
|
+
|
|
5683
5751
|
/**
|
|
5684
5752
|
* Limit information
|
|
5685
5753
|
* @class
|
|
@@ -6197,6 +6265,12 @@ class PutProvisionedConcurrencyConfigRequest extends AbstractModel {
|
|
|
6197
6265
|
*/
|
|
6198
6266
|
this.Namespace = null;
|
|
6199
6267
|
|
|
6268
|
+
/**
|
|
6269
|
+
* Scheduled provisioned concurrency scaling action
|
|
6270
|
+
* @type {Array.<TriggerAction> || null}
|
|
6271
|
+
*/
|
|
6272
|
+
this.TriggerActions = null;
|
|
6273
|
+
|
|
6200
6274
|
}
|
|
6201
6275
|
|
|
6202
6276
|
/**
|
|
@@ -6211,6 +6285,15 @@ class PutProvisionedConcurrencyConfigRequest extends AbstractModel {
|
|
|
6211
6285
|
this.VersionProvisionedConcurrencyNum = 'VersionProvisionedConcurrencyNum' in params ? params.VersionProvisionedConcurrencyNum : null;
|
|
6212
6286
|
this.Namespace = 'Namespace' in params ? params.Namespace : null;
|
|
6213
6287
|
|
|
6288
|
+
if (params.TriggerActions) {
|
|
6289
|
+
this.TriggerActions = new Array();
|
|
6290
|
+
for (let z in params.TriggerActions) {
|
|
6291
|
+
let obj = new TriggerAction();
|
|
6292
|
+
obj.deserialize(params.TriggerActions[z]);
|
|
6293
|
+
this.TriggerActions.push(obj);
|
|
6294
|
+
}
|
|
6295
|
+
}
|
|
6296
|
+
|
|
6214
6297
|
}
|
|
6215
6298
|
}
|
|
6216
6299
|
|
|
@@ -7209,6 +7292,7 @@ module.exports = {
|
|
|
7209
7292
|
RetryConfig: RetryConfig,
|
|
7210
7293
|
GetFunctionAddressResponse: GetFunctionAddressResponse,
|
|
7211
7294
|
CfsInsInfo: CfsInsInfo,
|
|
7295
|
+
TriggerAction: TriggerAction,
|
|
7212
7296
|
LimitsInfo: LimitsInfo,
|
|
7213
7297
|
ListLayersResponse: ListLayersResponse,
|
|
7214
7298
|
FunctionVersion: FunctionVersion,
|
|
@@ -115,6 +115,7 @@ const InvokeFunctionRequest = models.InvokeFunctionRequest;
|
|
|
115
115
|
const RetryConfig = models.RetryConfig;
|
|
116
116
|
const GetFunctionAddressResponse = models.GetFunctionAddressResponse;
|
|
117
117
|
const CfsInsInfo = models.CfsInsInfo;
|
|
118
|
+
const TriggerAction = models.TriggerAction;
|
|
118
119
|
const LimitsInfo = models.LimitsInfo;
|
|
119
120
|
const ListLayersResponse = models.ListLayersResponse;
|
|
120
121
|
const FunctionVersion = models.FunctionVersion;
|
|
@@ -270,7 +270,7 @@ Note: the identity certificate type must be selected according to the correspond
|
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
272
|
* Identity certificate type:
|
|
273
|
-
0: three-in-one.
|
|
273
|
+
0: three-in-one licence.
|
|
274
274
|
1: business license.
|
|
275
275
|
2: organization code certificate.
|
|
276
276
|
3: social credit code certificate.
|
|
@@ -1014,14 +1014,14 @@ Note: 11-digit Chinese mainland numbers prefixed by 0086 or 86 or those without
|
|
|
1014
1014
|
this.SmsSdkAppId = null;
|
|
1015
1015
|
|
|
1016
1016
|
/**
|
|
1017
|
-
* Template ID. You must enter the ID of an approved template, which can be viewed on the [Mainland
|
|
1017
|
+
* Template ID. You must enter the ID of an approved template, which can be viewed on the [Chinese Mainland SMS](https://console.cloud.tencent.com/smsv2/csms-template) or [Global SMS](https://console.cloud.tencent.com/smsv2/isms-template) body template management page. If you need to send SMS messages to global mobile numbers, you can only use a Global SMS template.
|
|
1018
1018
|
* @type {string || null}
|
|
1019
1019
|
*/
|
|
1020
1020
|
this.TemplateId = null;
|
|
1021
1021
|
|
|
1022
1022
|
/**
|
|
1023
|
-
* Content of the SMS signature, which should be encoded in UTF-8. You must enter an approved signature, such as Tencent Cloud. The signature information can be viewed on the [Mainland
|
|
1024
|
-
<dx-alert infotype="notice" title="Note">This parameter is required for Mainland
|
|
1023
|
+
* Content of the SMS signature, which should be encoded in UTF-8. You must enter an approved signature, such as Tencent Cloud. The signature information can be viewed on the [Chinese Mainland SMS](https://console.cloud.tencent.com/smsv2/csms-sign) or [Global SMS](https://console.cloud.tencent.com/smsv2/isms-sign) signature management page.
|
|
1024
|
+
<dx-alert infotype="notice" title="Note">This parameter is required for Chinese Mainland SMS.</dx-alert>
|
|
1025
1025
|
* @type {string || null}
|
|
1026
1026
|
*/
|
|
1027
1027
|
this.SignName = null;
|
|
@@ -1046,7 +1046,7 @@ Note: 11-digit Chinese mainland numbers prefixed by 0086 or 86 or those without
|
|
|
1046
1046
|
this.SessionContext = null;
|
|
1047
1047
|
|
|
1048
1048
|
/**
|
|
1049
|
-
* This parameter is not required for Mainland
|
|
1049
|
+
* This parameter is not required for Chinese Mainland SMS. For Global SMS, if you have applied for a separate `SenderId`, this parameter is required. By default, the public `SenderId` is used, in which case you don't need to enter this parameter.
|
|
1050
1050
|
Note: if your monthly usage reaches the specified threshold, you can apply for an independent `SenderId`. For more information, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81).
|
|
1051
1051
|
* @type {string || null}
|
|
1052
1052
|
*/
|
|
@@ -463,11 +463,17 @@ class CreateServiceTemplateRequest extends AbstractModel {
|
|
|
463
463
|
this.ServiceTemplateName = null;
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
|
-
*
|
|
466
|
+
* Supported ports inlcude single port, multiple ports, consecutive ports and all ports. Supported protocols include TCP, UDP, ICMP and GRE. Either Services or ServicesExtra is required.
|
|
467
467
|
* @type {Array.<string> || null}
|
|
468
468
|
*/
|
|
469
469
|
this.Services = null;
|
|
470
470
|
|
|
471
|
+
/**
|
|
472
|
+
* You can add remarks. Supported ports include single port, multiple ports, consecutive ports and all ports. Supported protocols include TCP, UDP, ICMP and GRE. Either Services or ServicesExtra is required.
|
|
473
|
+
* @type {Array.<ServicesInfo> || null}
|
|
474
|
+
*/
|
|
475
|
+
this.ServicesExtra = null;
|
|
476
|
+
|
|
471
477
|
}
|
|
472
478
|
|
|
473
479
|
/**
|
|
@@ -480,6 +486,15 @@ class CreateServiceTemplateRequest extends AbstractModel {
|
|
|
480
486
|
this.ServiceTemplateName = 'ServiceTemplateName' in params ? params.ServiceTemplateName : null;
|
|
481
487
|
this.Services = 'Services' in params ? params.Services : null;
|
|
482
488
|
|
|
489
|
+
if (params.ServicesExtra) {
|
|
490
|
+
this.ServicesExtra = new Array();
|
|
491
|
+
for (let z in params.ServicesExtra) {
|
|
492
|
+
let obj = new ServicesInfo();
|
|
493
|
+
obj.deserialize(params.ServicesExtra[z]);
|
|
494
|
+
this.ServicesExtra.push(obj);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
483
498
|
}
|
|
484
499
|
}
|
|
485
500
|
|
|
@@ -1162,6 +1177,12 @@ class ModifyServiceTemplateAttributeRequest extends AbstractModel {
|
|
|
1162
1177
|
*/
|
|
1163
1178
|
this.Services = null;
|
|
1164
1179
|
|
|
1180
|
+
/**
|
|
1181
|
+
* Protocol port information with remarks. Supported ports include single port, multiple ports, consecutive ports and other ports. Supported protocols include TCP, UDP, ICMP, and GRE.
|
|
1182
|
+
* @type {Array.<ServicesInfo> || null}
|
|
1183
|
+
*/
|
|
1184
|
+
this.ServicesExtra = null;
|
|
1185
|
+
|
|
1165
1186
|
}
|
|
1166
1187
|
|
|
1167
1188
|
/**
|
|
@@ -1175,6 +1196,15 @@ class ModifyServiceTemplateAttributeRequest extends AbstractModel {
|
|
|
1175
1196
|
this.ServiceTemplateName = 'ServiceTemplateName' in params ? params.ServiceTemplateName : null;
|
|
1176
1197
|
this.Services = 'Services' in params ? params.Services : null;
|
|
1177
1198
|
|
|
1199
|
+
if (params.ServicesExtra) {
|
|
1200
|
+
this.ServicesExtra = new Array();
|
|
1201
|
+
for (let z in params.ServicesExtra) {
|
|
1202
|
+
let obj = new ServicesInfo();
|
|
1203
|
+
obj.deserialize(params.ServicesExtra[z]);
|
|
1204
|
+
this.ServicesExtra.push(obj);
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1178
1208
|
}
|
|
1179
1209
|
}
|
|
1180
1210
|
|
|
@@ -1187,13 +1217,13 @@ class DescribeIpGeolocationInfosRequest extends AbstractModel {
|
|
|
1187
1217
|
super();
|
|
1188
1218
|
|
|
1189
1219
|
/**
|
|
1190
|
-
* IP addresses
|
|
1220
|
+
* The list of IP addresses (only IPv4 addresses are available currently) to be queried; upper limit: 100
|
|
1191
1221
|
* @type {Array.<string> || null}
|
|
1192
1222
|
*/
|
|
1193
1223
|
this.AddressIps = null;
|
|
1194
1224
|
|
|
1195
1225
|
/**
|
|
1196
|
-
* Fields of the IP addresses to be queried
|
|
1226
|
+
* Fields of the IP addresses to be queried.
|
|
1197
1227
|
* @type {IpField || null}
|
|
1198
1228
|
*/
|
|
1199
1229
|
this.Fields = null;
|
|
@@ -2106,6 +2136,12 @@ class AddressTemplate extends AbstractModel {
|
|
|
2106
2136
|
*/
|
|
2107
2137
|
this.CreatedTime = null;
|
|
2108
2138
|
|
|
2139
|
+
/**
|
|
2140
|
+
* IP address information with remarks
|
|
2141
|
+
* @type {Array.<AddressInfo> || null}
|
|
2142
|
+
*/
|
|
2143
|
+
this.AddressExtraSet = null;
|
|
2144
|
+
|
|
2109
2145
|
}
|
|
2110
2146
|
|
|
2111
2147
|
/**
|
|
@@ -2120,6 +2156,15 @@ class AddressTemplate extends AbstractModel {
|
|
|
2120
2156
|
this.AddressSet = 'AddressSet' in params ? params.AddressSet : null;
|
|
2121
2157
|
this.CreatedTime = 'CreatedTime' in params ? params.CreatedTime : null;
|
|
2122
2158
|
|
|
2159
|
+
if (params.AddressExtraSet) {
|
|
2160
|
+
this.AddressExtraSet = new Array();
|
|
2161
|
+
for (let z in params.AddressExtraSet) {
|
|
2162
|
+
let obj = new AddressInfo();
|
|
2163
|
+
obj.deserialize(params.AddressExtraSet[z]);
|
|
2164
|
+
this.AddressExtraSet.push(obj);
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2123
2168
|
}
|
|
2124
2169
|
}
|
|
2125
2170
|
|
|
@@ -2602,6 +2647,12 @@ class ModifyBandwidthPackageAttributeRequest extends AbstractModel {
|
|
|
2602
2647
|
*/
|
|
2603
2648
|
this.ChargeType = null;
|
|
2604
2649
|
|
|
2650
|
+
/**
|
|
2651
|
+
* When a monthly-subscribed bandwidth package is returned, whether to convert it to a pay-as-you-go bandwidth packages. Default value: `No`
|
|
2652
|
+
* @type {boolean || null}
|
|
2653
|
+
*/
|
|
2654
|
+
this.MigrateOnRefund = null;
|
|
2655
|
+
|
|
2605
2656
|
}
|
|
2606
2657
|
|
|
2607
2658
|
/**
|
|
@@ -2614,6 +2665,7 @@ class ModifyBandwidthPackageAttributeRequest extends AbstractModel {
|
|
|
2614
2665
|
this.BandwidthPackageId = 'BandwidthPackageId' in params ? params.BandwidthPackageId : null;
|
|
2615
2666
|
this.BandwidthPackageName = 'BandwidthPackageName' in params ? params.BandwidthPackageName : null;
|
|
2616
2667
|
this.ChargeType = 'ChargeType' in params ? params.ChargeType : null;
|
|
2668
|
+
this.MigrateOnRefund = 'MigrateOnRefund' in params ? params.MigrateOnRefund : null;
|
|
2617
2669
|
|
|
2618
2670
|
}
|
|
2619
2671
|
}
|
|
@@ -3394,6 +3446,12 @@ class ServiceTemplate extends AbstractModel {
|
|
|
3394
3446
|
*/
|
|
3395
3447
|
this.CreatedTime = null;
|
|
3396
3448
|
|
|
3449
|
+
/**
|
|
3450
|
+
* Protocol port template information with remarks
|
|
3451
|
+
* @type {Array.<ServicesInfo> || null}
|
|
3452
|
+
*/
|
|
3453
|
+
this.ServiceExtraSet = null;
|
|
3454
|
+
|
|
3397
3455
|
}
|
|
3398
3456
|
|
|
3399
3457
|
/**
|
|
@@ -3408,6 +3466,15 @@ class ServiceTemplate extends AbstractModel {
|
|
|
3408
3466
|
this.ServiceSet = 'ServiceSet' in params ? params.ServiceSet : null;
|
|
3409
3467
|
this.CreatedTime = 'CreatedTime' in params ? params.CreatedTime : null;
|
|
3410
3468
|
|
|
3469
|
+
if (params.ServiceExtraSet) {
|
|
3470
|
+
this.ServiceExtraSet = new Array();
|
|
3471
|
+
for (let z in params.ServiceExtraSet) {
|
|
3472
|
+
let obj = new ServicesInfo();
|
|
3473
|
+
obj.deserialize(params.ServiceExtraSet[z]);
|
|
3474
|
+
this.ServiceExtraSet.push(obj);
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3411
3478
|
}
|
|
3412
3479
|
}
|
|
3413
3480
|
|
|
@@ -6181,6 +6248,12 @@ class ModifyAddressTemplateAttributeRequest extends AbstractModel {
|
|
|
6181
6248
|
*/
|
|
6182
6249
|
this.Addresses = null;
|
|
6183
6250
|
|
|
6251
|
+
/**
|
|
6252
|
+
* Address information with remarks, including the IP, CIDR block or IP address range.
|
|
6253
|
+
* @type {Array.<AddressInfo> || null}
|
|
6254
|
+
*/
|
|
6255
|
+
this.AddressesExtra = null;
|
|
6256
|
+
|
|
6184
6257
|
}
|
|
6185
6258
|
|
|
6186
6259
|
/**
|
|
@@ -6194,6 +6267,15 @@ class ModifyAddressTemplateAttributeRequest extends AbstractModel {
|
|
|
6194
6267
|
this.AddressTemplateName = 'AddressTemplateName' in params ? params.AddressTemplateName : null;
|
|
6195
6268
|
this.Addresses = 'Addresses' in params ? params.Addresses : null;
|
|
6196
6269
|
|
|
6270
|
+
if (params.AddressesExtra) {
|
|
6271
|
+
this.AddressesExtra = new Array();
|
|
6272
|
+
for (let z in params.AddressesExtra) {
|
|
6273
|
+
let obj = new AddressInfo();
|
|
6274
|
+
obj.deserialize(params.AddressesExtra[z]);
|
|
6275
|
+
this.AddressesExtra.push(obj);
|
|
6276
|
+
}
|
|
6277
|
+
}
|
|
6278
|
+
|
|
6197
6279
|
}
|
|
6198
6280
|
}
|
|
6199
6281
|
|
|
@@ -18067,13 +18149,13 @@ class ModifyCcnAttributeRequest extends AbstractModel {
|
|
|
18067
18149
|
this.CcnId = null;
|
|
18068
18150
|
|
|
18069
18151
|
/**
|
|
18070
|
-
* The name of
|
|
18152
|
+
* The name of CCN instance. Up to 60 characters allowed. It can contain up to 60 bytes. Either `CcnName` or `CcnDescription` must be specified.
|
|
18071
18153
|
* @type {string || null}
|
|
18072
18154
|
*/
|
|
18073
18155
|
this.CcnName = null;
|
|
18074
18156
|
|
|
18075
18157
|
/**
|
|
18076
|
-
* The description of
|
|
18158
|
+
* The description of CCN instance. Up to 100 characters allowed. It can contain up to 60 bytes. Either `CcnName` or `CcnDescription` must be specified.
|
|
18077
18159
|
* @type {string || null}
|
|
18078
18160
|
*/
|
|
18079
18161
|
this.CcnDescription = null;
|
|
@@ -18602,6 +18684,18 @@ class VpnGateway extends AbstractModel {
|
|
|
18602
18684
|
*/
|
|
18603
18685
|
this.NetworkInstanceId = null;
|
|
18604
18686
|
|
|
18687
|
+
/**
|
|
18688
|
+
* CDC instance ID
|
|
18689
|
+
* @type {string || null}
|
|
18690
|
+
*/
|
|
18691
|
+
this.CdcId = null;
|
|
18692
|
+
|
|
18693
|
+
/**
|
|
18694
|
+
* Maximum number of connected clients allowed for the SSL VPN gateway.
|
|
18695
|
+
* @type {number || null}
|
|
18696
|
+
*/
|
|
18697
|
+
this.MaxConnection = null;
|
|
18698
|
+
|
|
18605
18699
|
}
|
|
18606
18700
|
|
|
18607
18701
|
/**
|
|
@@ -18637,6 +18731,8 @@ class VpnGateway extends AbstractModel {
|
|
|
18637
18731
|
}
|
|
18638
18732
|
this.Version = 'Version' in params ? params.Version : null;
|
|
18639
18733
|
this.NetworkInstanceId = 'NetworkInstanceId' in params ? params.NetworkInstanceId : null;
|
|
18734
|
+
this.CdcId = 'CdcId' in params ? params.CdcId : null;
|
|
18735
|
+
this.MaxConnection = 'MaxConnection' in params ? params.MaxConnection : null;
|
|
18640
18736
|
|
|
18641
18737
|
}
|
|
18642
18738
|
}
|
|
@@ -20979,6 +21075,42 @@ class CreateLocalGatewayResponse extends AbstractModel {
|
|
|
20979
21075
|
}
|
|
20980
21076
|
}
|
|
20981
21077
|
|
|
21078
|
+
/**
|
|
21079
|
+
* Protocol port template information
|
|
21080
|
+
* @class
|
|
21081
|
+
*/
|
|
21082
|
+
class ServicesInfo extends AbstractModel {
|
|
21083
|
+
constructor(){
|
|
21084
|
+
super();
|
|
21085
|
+
|
|
21086
|
+
/**
|
|
21087
|
+
* Protocol port
|
|
21088
|
+
* @type {string || null}
|
|
21089
|
+
*/
|
|
21090
|
+
this.Service = null;
|
|
21091
|
+
|
|
21092
|
+
/**
|
|
21093
|
+
* Remarks
|
|
21094
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
21095
|
+
* @type {string || null}
|
|
21096
|
+
*/
|
|
21097
|
+
this.Description = null;
|
|
21098
|
+
|
|
21099
|
+
}
|
|
21100
|
+
|
|
21101
|
+
/**
|
|
21102
|
+
* @private
|
|
21103
|
+
*/
|
|
21104
|
+
deserialize(params) {
|
|
21105
|
+
if (!params) {
|
|
21106
|
+
return;
|
|
21107
|
+
}
|
|
21108
|
+
this.Service = 'Service' in params ? params.Service : null;
|
|
21109
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
21110
|
+
|
|
21111
|
+
}
|
|
21112
|
+
}
|
|
21113
|
+
|
|
20982
21114
|
/**
|
|
20983
21115
|
* MigratePrivateIpAddress request structure.
|
|
20984
21116
|
* @class
|
|
@@ -21030,9 +21162,10 @@ class DescribeServiceTemplatesRequest extends AbstractModel {
|
|
|
21030
21162
|
super();
|
|
21031
21163
|
|
|
21032
21164
|
/**
|
|
21033
|
-
*
|
|
21034
|
-
<li>service-template-name -
|
|
21035
|
-
<li>service-template-id -
|
|
21165
|
+
* Filters
|
|
21166
|
+
<li>service-template-name - Protocol port template name.</li>
|
|
21167
|
+
<li>service-template-id - Protocol port template ID, such as `ppm-e6dy460g`.</li>
|
|
21168
|
+
<li>service-port-Protocol port.</li>
|
|
21036
21169
|
* @type {Array.<Filter> || null}
|
|
21037
21170
|
*/
|
|
21038
21171
|
this.Filters = null;
|
|
@@ -21146,7 +21279,7 @@ class CreateVpnGatewayRequest extends AbstractModel {
|
|
|
21146
21279
|
this.Zone = null;
|
|
21147
21280
|
|
|
21148
21281
|
/**
|
|
21149
|
-
* VPN gateway type.
|
|
21282
|
+
* VPN gateway type. Values: `CCN` (CCN VPN gateway), `SSL` (SSL VPN gateway)
|
|
21150
21283
|
* @type {string || null}
|
|
21151
21284
|
*/
|
|
21152
21285
|
this.Type = null;
|
|
@@ -21157,6 +21290,18 @@ class CreateVpnGatewayRequest extends AbstractModel {
|
|
|
21157
21290
|
*/
|
|
21158
21291
|
this.Tags = null;
|
|
21159
21292
|
|
|
21293
|
+
/**
|
|
21294
|
+
* CDC instance ID
|
|
21295
|
+
* @type {string || null}
|
|
21296
|
+
*/
|
|
21297
|
+
this.CdcId = null;
|
|
21298
|
+
|
|
21299
|
+
/**
|
|
21300
|
+
* Maximum number of connected clients allowed for the SSL VPN gateway. Valid values: [5, 10, 20, 50, 100]. This parameter is only required for SSL VPN gateways.
|
|
21301
|
+
* @type {number || null}
|
|
21302
|
+
*/
|
|
21303
|
+
this.MaxConnection = null;
|
|
21304
|
+
|
|
21160
21305
|
}
|
|
21161
21306
|
|
|
21162
21307
|
/**
|
|
@@ -21187,6 +21332,8 @@ class CreateVpnGatewayRequest extends AbstractModel {
|
|
|
21187
21332
|
this.Tags.push(obj);
|
|
21188
21333
|
}
|
|
21189
21334
|
}
|
|
21335
|
+
this.CdcId = 'CdcId' in params ? params.CdcId : null;
|
|
21336
|
+
this.MaxConnection = 'MaxConnection' in params ? params.MaxConnection : null;
|
|
21190
21337
|
|
|
21191
21338
|
}
|
|
21192
21339
|
}
|
|
@@ -22238,11 +22385,17 @@ class CreateAddressTemplateRequest extends AbstractModel {
|
|
|
22238
22385
|
this.AddressTemplateName = null;
|
|
22239
22386
|
|
|
22240
22387
|
/**
|
|
22241
|
-
*
|
|
22388
|
+
* The address information can be presented by the IP, CIDR block or IP address range. Either Addresses or AddressesExtra is required.
|
|
22242
22389
|
* @type {Array.<string> || null}
|
|
22243
22390
|
*/
|
|
22244
22391
|
this.Addresses = null;
|
|
22245
22392
|
|
|
22393
|
+
/**
|
|
22394
|
+
* The address information can contain remarks and be presented by the IP, CIDR block or IP address range. Either Addresses or AddressesExtra is required.
|
|
22395
|
+
* @type {Array.<AddressInfo> || null}
|
|
22396
|
+
*/
|
|
22397
|
+
this.AddressesExtra = null;
|
|
22398
|
+
|
|
22246
22399
|
}
|
|
22247
22400
|
|
|
22248
22401
|
/**
|
|
@@ -22255,6 +22408,15 @@ class CreateAddressTemplateRequest extends AbstractModel {
|
|
|
22255
22408
|
this.AddressTemplateName = 'AddressTemplateName' in params ? params.AddressTemplateName : null;
|
|
22256
22409
|
this.Addresses = 'Addresses' in params ? params.Addresses : null;
|
|
22257
22410
|
|
|
22411
|
+
if (params.AddressesExtra) {
|
|
22412
|
+
this.AddressesExtra = new Array();
|
|
22413
|
+
for (let z in params.AddressesExtra) {
|
|
22414
|
+
let obj = new AddressInfo();
|
|
22415
|
+
obj.deserialize(params.AddressesExtra[z]);
|
|
22416
|
+
this.AddressesExtra.push(obj);
|
|
22417
|
+
}
|
|
22418
|
+
}
|
|
22419
|
+
|
|
22258
22420
|
}
|
|
22259
22421
|
}
|
|
22260
22422
|
|
|
@@ -22600,6 +22762,13 @@ class SecurityGroup extends AbstractModel {
|
|
|
22600
22762
|
*/
|
|
22601
22763
|
this.TagSet = null;
|
|
22602
22764
|
|
|
22765
|
+
/**
|
|
22766
|
+
* Security group update time.
|
|
22767
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
22768
|
+
* @type {string || null}
|
|
22769
|
+
*/
|
|
22770
|
+
this.UpdateTime = null;
|
|
22771
|
+
|
|
22603
22772
|
}
|
|
22604
22773
|
|
|
22605
22774
|
/**
|
|
@@ -22624,6 +22793,7 @@ class SecurityGroup extends AbstractModel {
|
|
|
22624
22793
|
this.TagSet.push(obj);
|
|
22625
22794
|
}
|
|
22626
22795
|
}
|
|
22796
|
+
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
|
|
22627
22797
|
|
|
22628
22798
|
}
|
|
22629
22799
|
}
|
|
@@ -23312,6 +23482,12 @@ class UnassignPrivateIpAddressesRequest extends AbstractModel {
|
|
|
23312
23482
|
*/
|
|
23313
23483
|
this.PrivateIpAddresses = null;
|
|
23314
23484
|
|
|
23485
|
+
/**
|
|
23486
|
+
* Instance ID of the server bound with this IP. This parameter is only applicable when you need to return an IP and unbind the related servers.
|
|
23487
|
+
* @type {string || null}
|
|
23488
|
+
*/
|
|
23489
|
+
this.InstanceId = null;
|
|
23490
|
+
|
|
23315
23491
|
}
|
|
23316
23492
|
|
|
23317
23493
|
/**
|
|
@@ -23331,6 +23507,7 @@ class UnassignPrivateIpAddressesRequest extends AbstractModel {
|
|
|
23331
23507
|
this.PrivateIpAddresses.push(obj);
|
|
23332
23508
|
}
|
|
23333
23509
|
}
|
|
23510
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
23334
23511
|
|
|
23335
23512
|
}
|
|
23336
23513
|
}
|
|
@@ -24513,9 +24690,10 @@ class DescribeAddressTemplatesRequest extends AbstractModel {
|
|
|
24513
24690
|
super();
|
|
24514
24691
|
|
|
24515
24692
|
/**
|
|
24516
|
-
*
|
|
24517
|
-
<li>address-template-name -
|
|
24518
|
-
<li>address-template-id -
|
|
24693
|
+
* Filters
|
|
24694
|
+
<li>address-template-name - IP address template name.</li>
|
|
24695
|
+
<li>address-template-id - IP address template ID, such as `ipm-mdunqeb6`.</li>
|
|
24696
|
+
<li>address-ip - IP address.</li>
|
|
24519
24697
|
* @type {Array.<Filter> || null}
|
|
24520
24698
|
*/
|
|
24521
24699
|
this.Filters = null;
|
|
@@ -25405,6 +25583,41 @@ class DeleteVpcResponse extends AbstractModel {
|
|
|
25405
25583
|
}
|
|
25406
25584
|
}
|
|
25407
25585
|
|
|
25586
|
+
/**
|
|
25587
|
+
* Prepaid (monthly subscription) billing object.
|
|
25588
|
+
* @class
|
|
25589
|
+
*/
|
|
25590
|
+
class InstanceChargePrepaid extends AbstractModel {
|
|
25591
|
+
constructor(){
|
|
25592
|
+
super();
|
|
25593
|
+
|
|
25594
|
+
/**
|
|
25595
|
+
* Purchased usage period (in month). Value range: [1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36].
|
|
25596
|
+
* @type {number || null}
|
|
25597
|
+
*/
|
|
25598
|
+
this.Period = null;
|
|
25599
|
+
|
|
25600
|
+
/**
|
|
25601
|
+
* Auto-renewal ID. Value range: NOTIFY_AND_AUTO_RENEW: notify expiry and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify expiry but do not renew automatically. The default is NOTIFY_AND_MANUAL_RENEW
|
|
25602
|
+
* @type {string || null}
|
|
25603
|
+
*/
|
|
25604
|
+
this.RenewFlag = null;
|
|
25605
|
+
|
|
25606
|
+
}
|
|
25607
|
+
|
|
25608
|
+
/**
|
|
25609
|
+
* @private
|
|
25610
|
+
*/
|
|
25611
|
+
deserialize(params) {
|
|
25612
|
+
if (!params) {
|
|
25613
|
+
return;
|
|
25614
|
+
}
|
|
25615
|
+
this.Period = 'Period' in params ? params.Period : null;
|
|
25616
|
+
this.RenewFlag = 'RenewFlag' in params ? params.RenewFlag : null;
|
|
25617
|
+
|
|
25618
|
+
}
|
|
25619
|
+
}
|
|
25620
|
+
|
|
25408
25621
|
/**
|
|
25409
25622
|
* DescribeVpcEndPointServiceWhiteList response structure.
|
|
25410
25623
|
* @class
|
|
@@ -25484,24 +25697,25 @@ class AcceptAttachCcnInstancesResponse extends AbstractModel {
|
|
|
25484
25697
|
}
|
|
25485
25698
|
|
|
25486
25699
|
/**
|
|
25487
|
-
*
|
|
25700
|
+
* IP address template information
|
|
25488
25701
|
* @class
|
|
25489
25702
|
*/
|
|
25490
|
-
class
|
|
25703
|
+
class AddressInfo extends AbstractModel {
|
|
25491
25704
|
constructor(){
|
|
25492
25705
|
super();
|
|
25493
25706
|
|
|
25494
25707
|
/**
|
|
25495
|
-
*
|
|
25496
|
-
* @type {
|
|
25708
|
+
* IP address
|
|
25709
|
+
* @type {string || null}
|
|
25497
25710
|
*/
|
|
25498
|
-
this.
|
|
25711
|
+
this.Address = null;
|
|
25499
25712
|
|
|
25500
25713
|
/**
|
|
25501
|
-
*
|
|
25714
|
+
* Remarks
|
|
25715
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
25502
25716
|
* @type {string || null}
|
|
25503
25717
|
*/
|
|
25504
|
-
this.
|
|
25718
|
+
this.Description = null;
|
|
25505
25719
|
|
|
25506
25720
|
}
|
|
25507
25721
|
|
|
@@ -25512,8 +25726,8 @@ class InstanceChargePrepaid extends AbstractModel {
|
|
|
25512
25726
|
if (!params) {
|
|
25513
25727
|
return;
|
|
25514
25728
|
}
|
|
25515
|
-
this.
|
|
25516
|
-
this.
|
|
25729
|
+
this.Address = 'Address' in params ? params.Address : null;
|
|
25730
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
25517
25731
|
|
|
25518
25732
|
}
|
|
25519
25733
|
}
|
|
@@ -26050,6 +26264,7 @@ module.exports = {
|
|
|
26050
26264
|
DirectConnectGatewayCcnRoute: DirectConnectGatewayCcnRoute,
|
|
26051
26265
|
DeleteHaVipRequest: DeleteHaVipRequest,
|
|
26052
26266
|
CreateLocalGatewayResponse: CreateLocalGatewayResponse,
|
|
26267
|
+
ServicesInfo: ServicesInfo,
|
|
26053
26268
|
MigratePrivateIpAddressRequest: MigratePrivateIpAddressRequest,
|
|
26054
26269
|
DescribeServiceTemplatesRequest: DescribeServiceTemplatesRequest,
|
|
26055
26270
|
DeleteRouteTableRequest: DeleteRouteTableRequest,
|
|
@@ -26151,9 +26366,10 @@ module.exports = {
|
|
|
26151
26366
|
ModifySubnetAttributeRequest: ModifySubnetAttributeRequest,
|
|
26152
26367
|
DescribeBandwidthPackageQuotaRequest: DescribeBandwidthPackageQuotaRequest,
|
|
26153
26368
|
DeleteVpcResponse: DeleteVpcResponse,
|
|
26369
|
+
InstanceChargePrepaid: InstanceChargePrepaid,
|
|
26154
26370
|
DescribeVpcEndPointServiceWhiteListResponse: DescribeVpcEndPointServiceWhiteListResponse,
|
|
26155
26371
|
AcceptAttachCcnInstancesResponse: AcceptAttachCcnInstancesResponse,
|
|
26156
|
-
|
|
26372
|
+
AddressInfo: AddressInfo,
|
|
26157
26373
|
AuditCrossBorderComplianceRequest: AuditCrossBorderComplianceRequest,
|
|
26158
26374
|
DescribeNetDetectsResponse: DescribeNetDetectsResponse,
|
|
26159
26375
|
|
|
@@ -453,6 +453,7 @@ const ModifyLocalGatewayRequest = models.ModifyLocalGatewayRequest;
|
|
|
453
453
|
const DirectConnectGatewayCcnRoute = models.DirectConnectGatewayCcnRoute;
|
|
454
454
|
const DeleteHaVipRequest = models.DeleteHaVipRequest;
|
|
455
455
|
const CreateLocalGatewayResponse = models.CreateLocalGatewayResponse;
|
|
456
|
+
const ServicesInfo = models.ServicesInfo;
|
|
456
457
|
const MigratePrivateIpAddressRequest = models.MigratePrivateIpAddressRequest;
|
|
457
458
|
const DescribeServiceTemplatesRequest = models.DescribeServiceTemplatesRequest;
|
|
458
459
|
const DeleteRouteTableRequest = models.DeleteRouteTableRequest;
|
|
@@ -554,9 +555,10 @@ const Route = models.Route;
|
|
|
554
555
|
const ModifySubnetAttributeRequest = models.ModifySubnetAttributeRequest;
|
|
555
556
|
const DescribeBandwidthPackageQuotaRequest = models.DescribeBandwidthPackageQuotaRequest;
|
|
556
557
|
const DeleteVpcResponse = models.DeleteVpcResponse;
|
|
558
|
+
const InstanceChargePrepaid = models.InstanceChargePrepaid;
|
|
557
559
|
const DescribeVpcEndPointServiceWhiteListResponse = models.DescribeVpcEndPointServiceWhiteListResponse;
|
|
558
560
|
const AcceptAttachCcnInstancesResponse = models.AcceptAttachCcnInstancesResponse;
|
|
559
|
-
const
|
|
561
|
+
const AddressInfo = models.AddressInfo;
|
|
560
562
|
const AuditCrossBorderComplianceRequest = models.AuditCrossBorderComplianceRequest;
|
|
561
563
|
const DescribeNetDetectsResponse = models.DescribeNetDetectsResponse;
|
|
562
564
|
|
|
@@ -2453,7 +2455,8 @@ This API is completed asynchronously. If you need to query the execution result
|
|
|
2453
2455
|
}
|
|
2454
2456
|
|
|
2455
2457
|
/**
|
|
2456
|
-
* This API is used to query the
|
|
2458
|
+
* This API is used to query the location and network information of one or more IP addresses.
|
|
2459
|
+
This API is currently in beta test. To use it, please [submit a ticket](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=660&source=0&data_title=%E5%BC%B9%E6%80%A7%E5%85%AC%E7%BD%91%20EIP&level3_id=662&queue=96&scene_code=16400&step=2).
|
|
2457
2460
|
* @param {DescribeIpGeolocationInfosRequest} req
|
|
2458
2461
|
* @param {function(string, DescribeIpGeolocationInfosResponse):void} cb
|
|
2459
2462
|
* @public
|