tencentcloud-sdk-nodejs 4.0.218 → 4.0.222

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.
Files changed (122) hide show
  1. package/CHANGELOG.md +880 -324
  2. package/package.json +1 -1
  3. package/products.md +30 -29
  4. package/src/common/sdk_version.ts +1 -1
  5. package/src/services/advisor/index.ts +5 -0
  6. package/src/services/advisor/v20200721/advisor_client.ts +58 -0
  7. package/src/services/advisor/v20200721/advisor_models.ts +197 -0
  8. package/src/services/advisor/v20200721/index.ts +6 -0
  9. package/src/services/as/v20180419/as_client.ts +30 -2
  10. package/src/services/as/v20180419/as_models.ts +44 -4
  11. package/src/services/cdb/v20170320/cdb_models.ts +5 -0
  12. package/src/services/cdn/v20180606/cdn_client.ts +105 -40
  13. package/src/services/cdn/v20180606/cdn_models.ts +844 -346
  14. package/src/services/clb/v20180317/clb_models.ts +20 -2
  15. package/src/services/cls/v20201016/cls_models.ts +2 -2
  16. package/src/services/cvm/v20170312/cvm_client.ts +1 -1
  17. package/src/services/cvm/v20170312/cvm_models.ts +2 -2
  18. package/src/services/cwp/v20180228/cwp_client.ts +33 -22
  19. package/src/services/cwp/v20180228/cwp_models.ts +252 -105
  20. package/src/services/ecm/v20190719/ecm_client.ts +16 -0
  21. package/src/services/ecm/v20190719/ecm_models.ts +160 -8
  22. package/src/services/eiam/v20210420/eiam_models.ts +1 -1
  23. package/src/services/essbasic/v20210526/essbasic_client.ts +14 -0
  24. package/src/services/essbasic/v20210526/essbasic_models.ts +81 -0
  25. package/src/services/faceid/v20180301/faceid_models.ts +5 -0
  26. package/src/services/gaap/v20180529/gaap_models.ts +5 -5
  27. package/src/services/ie/v20200304/ie_models.ts +1 -1
  28. package/src/services/index.ts +1 -0
  29. package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +3 -1
  30. package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +76 -1
  31. package/src/services/lighthouse/v20200324/lighthouse_client.ts +1 -0
  32. package/src/services/lighthouse/v20200324/lighthouse_models.ts +35 -0
  33. package/src/services/live/v20180801/live_client.ts +1 -1
  34. package/src/services/live/v20180801/live_models.ts +1 -0
  35. package/src/services/mrs/v20200910/mrs_client.ts +11 -7
  36. package/src/services/mrs/v20200910/mrs_models.ts +321 -97
  37. package/src/services/organization/v20210331/organization_client.ts +12 -0
  38. package/src/services/organization/v20210331/organization_models.ts +50 -0
  39. package/src/services/postgres/v20170312/postgres_client.ts +48 -8
  40. package/src/services/postgres/v20170312/postgres_models.ts +300 -12
  41. package/src/services/rce/v20201103/rce_models.ts +19 -96
  42. package/src/services/scf/v20180416/scf_client.ts +1 -0
  43. package/src/services/scf/v20180416/scf_models.ts +34 -0
  44. package/src/services/tcb/v20180608/tcb_client.ts +31 -5
  45. package/src/services/tcb/v20180608/tcb_models.ts +462 -189
  46. package/src/services/tcr/v20190924/tcr_models.ts +15 -0
  47. package/src/services/tdmq/v20200217/tdmq_models.ts +79 -1
  48. package/src/services/tsf/v20180326/tsf_client.ts +57 -32
  49. package/src/services/tsf/v20180326/tsf_models.ts +137 -51
  50. package/src/services/vpc/v20170312/vpc_client.ts +3 -1
  51. package/src/services/vpc/v20170312/vpc_models.ts +86 -22
  52. package/tencentcloud/common/sdk_version.d.ts +1 -1
  53. package/tencentcloud/common/sdk_version.js +1 -1
  54. package/tencentcloud/services/advisor/index.d.ts +6 -0
  55. package/tencentcloud/services/advisor/index.js +7 -0
  56. package/tencentcloud/services/advisor/v20200721/advisor_client.d.ts +18 -0
  57. package/tencentcloud/services/advisor/v20200721/advisor_client.js +43 -0
  58. package/tencentcloud/services/advisor/v20200721/advisor_models.d.ts +155 -0
  59. package/tencentcloud/services/advisor/v20200721/advisor_models.js +18 -0
  60. package/tencentcloud/services/advisor/v20200721/index.d.ts +6 -0
  61. package/tencentcloud/services/advisor/v20200721/index.js +9 -0
  62. package/tencentcloud/services/as/v20180419/as_client.d.ts +28 -0
  63. package/tencentcloud/services/as/v20180419/as_client.js +28 -0
  64. package/tencentcloud/services/as/v20180419/as_models.d.ts +36 -4
  65. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +4 -0
  66. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +29 -9
  67. package/tencentcloud/services/cdn/v20180606/cdn_client.js +42 -12
  68. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +731 -307
  69. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +16 -1
  70. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +2 -2
  71. package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +1 -1
  72. package/tencentcloud/services/cvm/v20170312/cvm_client.js +1 -1
  73. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +2 -2
  74. package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +11 -9
  75. package/tencentcloud/services/cwp/v20180228/cwp_client.js +15 -11
  76. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +214 -88
  77. package/tencentcloud/services/ecm/v20190719/ecm_client.d.ts +5 -1
  78. package/tencentcloud/services/ecm/v20190719/ecm_client.js +6 -0
  79. package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +137 -8
  80. package/tencentcloud/services/eiam/v20210420/eiam_models.d.ts +1 -1
  81. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +5 -1
  82. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +6 -0
  83. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +70 -0
  84. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +4 -0
  85. package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +5 -5
  86. package/tencentcloud/services/ie/v20200304/ie_models.d.ts +1 -1
  87. package/tencentcloud/services/index.d.ts +1 -0
  88. package/tencentcloud/services/index.js +2 -0
  89. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +1 -1
  90. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +64 -1
  91. package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +29 -0
  92. package/tencentcloud/services/live/v20180801/live_client.d.ts +1 -1
  93. package/tencentcloud/services/live/v20180801/live_client.js +1 -1
  94. package/tencentcloud/services/live/v20180801/live_models.d.ts +1 -0
  95. package/tencentcloud/services/mrs/v20200910/mrs_client.d.ts +1 -1
  96. package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +275 -85
  97. package/tencentcloud/services/organization/v20210331/organization_client.d.ts +5 -1
  98. package/tencentcloud/services/organization/v20210331/organization_client.js +6 -0
  99. package/tencentcloud/services/organization/v20210331/organization_models.d.ts +42 -0
  100. package/tencentcloud/services/postgres/v20170312/postgres_client.d.ts +15 -3
  101. package/tencentcloud/services/postgres/v20170312/postgres_client.js +21 -3
  102. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +258 -12
  103. package/tencentcloud/services/rce/v20201103/rce_models.d.ts +13 -90
  104. package/tencentcloud/services/scf/v20180416/scf_models.d.ts +29 -0
  105. package/tencentcloud/services/tcb/v20180608/tcb_client.d.ts +9 -1
  106. package/tencentcloud/services/tcb/v20180608/tcb_client.js +12 -0
  107. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +387 -157
  108. package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +12 -0
  109. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +65 -1
  110. package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +19 -11
  111. package/tencentcloud/services/tsf/v20180326/tsf_client.js +27 -15
  112. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +120 -46
  113. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +75 -21
  114. package/test/advisor.v20200721.test.js +41 -0
  115. package/test/cdn.v20180606.test.js +58 -8
  116. package/test/cwp.v20180228.test.js +22 -12
  117. package/test/ecm.v20190719.test.js +10 -0
  118. package/test/essbasic.v20210526.test.js +10 -0
  119. package/test/organization.v20210331.test.js +10 -0
  120. package/test/postgres.v20170312.test.js +32 -2
  121. package/test/tcb.v20180608.test.js +20 -0
  122. package/test/tsf.v20180326.test.js +36 -16
@@ -220,9 +220,14 @@ export interface CreateServiceTemplateRequest {
220
220
  ServiceTemplateName: string
221
221
 
222
222
  /**
223
- * 支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。
223
+ * 支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。Services与ServicesExtra必填其一。
224
+ */
225
+ Services?: Array<string>
226
+
227
+ /**
228
+ * 支持添加备注,单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。Services与ServicesExtra必填其一。
224
229
  */
225
- Services: Array<string>
230
+ ServicesExtra?: Array<ServicesInfo>
226
231
  }
227
232
 
228
233
  /**
@@ -557,7 +562,7 @@ export interface CreateDhcpIpResponse {
557
562
  */
558
563
  export interface DescribeIpGeolocationInfosRequest {
559
564
  /**
560
- * 需查询的IP地址列表,支持IPv4和IPv6。批量查询的IP地址上限为100个。
565
+ * 需查询的IP地址列表,目前仅支持IPv4地址。查询的IP地址数量上限为100个。
561
566
  */
562
567
  AddressIps: Array<string>
563
568
 
@@ -986,6 +991,11 @@ export interface AddressTemplate {
986
991
  * 创建时间。
987
992
  */
988
993
  CreatedTime?: string
994
+
995
+ /**
996
+ * 带备注的IP地址信息。
997
+ */
998
+ AddressExtraSet: Array<AddressInfo>
989
999
  }
990
1000
 
991
1001
  /**
@@ -1718,6 +1728,11 @@ export interface ServiceTemplate {
1718
1728
  * 创建时间。
1719
1729
  */
1720
1730
  CreatedTime?: string
1731
+
1732
+ /**
1733
+ * 带备注的协议端口信息。
1734
+ */
1735
+ ServiceExtraSet: Array<ServicesInfo>
1721
1736
  }
1722
1737
 
1723
1738
  /**
@@ -3091,6 +3106,11 @@ export interface ModifyAddressTemplateAttributeRequest {
3091
3106
  * 地址信息,支持 IP、CIDR、IP 范围。
3092
3107
  */
3093
3108
  Addresses?: Array<string>
3109
+
3110
+ /**
3111
+ * 支持添加备注的地址信息,支持 IP、CIDR、IP 范围。
3112
+ */
3113
+ AddressesExtra?: Array<AddressInfo>
3094
3114
  }
3095
3115
 
3096
3116
  /**
@@ -5573,7 +5593,7 @@ export interface CreateAddressTemplateResponse {
5573
5593
  /**
5574
5594
  * IP地址模板对象。
5575
5595
  */
5576
- AddressTemplate?: AddressTemplate
5596
+ AddressTemplate: AddressTemplate
5577
5597
 
5578
5598
  /**
5579
5599
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -5844,6 +5864,11 @@ export interface ModifyServiceTemplateAttributeRequest {
5844
5864
  * 支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。
5845
5865
  */
5846
5866
  Services?: Array<string>
5867
+
5868
+ /**
5869
+ * 支持添加备注的协议端口信息,支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。
5870
+ */
5871
+ ServicesExtra?: Array<ServicesInfo>
5847
5872
  }
5848
5873
 
5849
5874
  /**
@@ -8758,12 +8783,12 @@ export interface DescribeServiceTemplatesResponse {
8758
8783
  /**
8759
8784
  * 符合条件的实例数量。
8760
8785
  */
8761
- TotalCount?: number
8786
+ TotalCount: number
8762
8787
 
8763
8788
  /**
8764
8789
  * 协议端口模板对象。
8765
8790
  */
8766
- ServiceTemplateSet?: Array<ServiceTemplate>
8791
+ ServiceTemplateSet: Array<ServiceTemplate>
8767
8792
 
8768
8793
  /**
8769
8794
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -10860,6 +10885,22 @@ export interface CreateLocalGatewayResponse {
10860
10885
  RequestId?: string
10861
10886
  }
10862
10887
 
10888
+ /**
10889
+ * 协议端口模板信息
10890
+ */
10891
+ export interface ServicesInfo {
10892
+ /**
10893
+ * 协议端口
10894
+ */
10895
+ Service: string
10896
+
10897
+ /**
10898
+ * 备注
10899
+ 注意:此字段可能返回 null,表示取不到有效值。
10900
+ */
10901
+ Description?: string
10902
+ }
10903
+
10863
10904
  /**
10864
10905
  * MigratePrivateIpAddress请求参数结构体
10865
10906
  */
@@ -10886,8 +10927,9 @@ export interface MigratePrivateIpAddressRequest {
10886
10927
  export interface DescribeServiceTemplatesRequest {
10887
10928
  /**
10888
10929
  * 过滤条件。
10889
- <li>service-template-name - String - (过滤条件)协议端口模板名称。</li>
10890
- <li>service-template-id - String - (过滤条件)协议端口模板实例ID,例如:ppm-e6dy460g。</li>
10930
+ <li>service-template-name - 协议端口模板名称。</li>
10931
+ <li>service-template-id - 协议端口模板实例ID,例如:ppm-e6dy460g。</li>
10932
+ <li>service-port- 协议端口。</li>
10891
10933
  */
10892
10934
  Filters?: Array<Filter>
10893
10935
 
@@ -11498,9 +11540,14 @@ export interface CreateAddressTemplateRequest {
11498
11540
  AddressTemplateName: string
11499
11541
 
11500
11542
  /**
11501
- * 地址信息,支持 IP、CIDR、IP 范围。
11543
+ * 地址信息,支持 IP、CIDR、IP 范围。Addresses与AddressesExtra必填其一。
11502
11544
  */
11503
- Addresses: Array<string>
11545
+ Addresses?: Array<string>
11546
+
11547
+ /**
11548
+ * 地址信息,支持携带备注,支持 IP、CIDR、IP 范围。Addresses与AddressesExtra必填其一。
11549
+ */
11550
+ AddressesExtra?: Array<AddressInfo>
11504
11551
  }
11505
11552
 
11506
11553
  /**
@@ -12471,7 +12518,7 @@ export interface CreateServiceTemplateResponse {
12471
12518
  /**
12472
12519
  * 协议端口模板对象。
12473
12520
  */
12474
- ServiceTemplate?: ServiceTemplate
12521
+ ServiceTemplate: ServiceTemplate
12475
12522
 
12476
12523
  /**
12477
12524
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -12571,8 +12618,9 @@ export interface CustomerGatewayVendor {
12571
12618
  export interface DescribeAddressTemplatesRequest {
12572
12619
  /**
12573
12620
  * 过滤条件。
12574
- <li>address-template-name - String - (过滤条件)IP地址模板名称。</li>
12575
- <li>address-template-id - String - (过滤条件)IP地址模板实例ID,例如:ipm-mdunqeb6。</li>
12621
+ <li>address-template-name - IP地址模板名称。</li>
12622
+ <li>address-template-id - IP地址模板实例ID,例如:ipm-mdunqeb6。</li>
12623
+ <li>address-ip - IP地址。</li>
12576
12624
  */
12577
12625
  Filters?: Array<Filter>
12578
12626
 
@@ -12669,12 +12717,12 @@ export interface DescribeAddressTemplatesResponse {
12669
12717
  /**
12670
12718
  * 符合条件的实例数量。
12671
12719
  */
12672
- TotalCount?: number
12720
+ TotalCount: number
12673
12721
 
12674
12722
  /**
12675
12723
  * IP地址模版。
12676
12724
  */
12677
- AddressTemplateSet?: Array<AddressTemplate>
12725
+ AddressTemplateSet: Array<AddressTemplate>
12678
12726
 
12679
12727
  /**
12680
12728
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -13000,6 +13048,21 @@ export interface DeleteVpcResponse {
13000
13048
  RequestId?: string
13001
13049
  }
13002
13050
 
13051
+ /**
13052
+ * 预付费(包年包月)计费对象。
13053
+ */
13054
+ export interface InstanceChargePrepaid {
13055
+ /**
13056
+ * 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36。
13057
+ */
13058
+ Period: number
13059
+
13060
+ /**
13061
+ * 自动续费标识。取值范围: NOTIFY_AND_AUTO_RENEW:通知过期且自动续费, NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费。默认:NOTIFY_AND_MANUAL_RENEW
13062
+ */
13063
+ RenewFlag?: string
13064
+ }
13065
+
13003
13066
  /**
13004
13067
  * DescribeTemplateLimits请求参数结构体
13005
13068
  */
@@ -13051,18 +13114,19 @@ export interface AcceptAttachCcnInstancesResponse {
13051
13114
  }
13052
13115
 
13053
13116
  /**
13054
- * 预付费(包年包月)计费对象。
13117
+ * IP地址模板信息
13055
13118
  */
13056
- export interface InstanceChargePrepaid {
13119
+ export interface AddressInfo {
13057
13120
  /**
13058
- * 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36。
13121
+ * ip地址
13059
13122
  */
13060
- Period: number
13123
+ Address: string
13061
13124
 
13062
13125
  /**
13063
- * 自动续费标识。取值范围: NOTIFY_AND_AUTO_RENEW:通知过期且自动续费, NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费。默认:NOTIFY_AND_MANUAL_RENEW
13064
- */
13065
- RenewFlag?: string
13126
+ * 备注
13127
+ 注意:此字段可能返回 null,表示取不到有效值。
13128
+ */
13129
+ Description?: string
13066
13130
  }
13067
13131
 
13068
13132
  /**
@@ -1 +1 @@
1
- export declare const sdkVersion = "4.0.218";
1
+ export declare const sdkVersion = "4.0.222";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sdkVersion = void 0;
4
- exports.sdkVersion = "4.0.218";
4
+ exports.sdkVersion = "4.0.222";
@@ -0,0 +1,6 @@
1
+ export declare const advisor: {
2
+ v20200721: {
3
+ Client: typeof import("./v20200721/advisor_client").Client;
4
+ Models: typeof import("./v20200721/advisor_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.advisor = void 0;
4
+ const v20200721_1 = require("./v20200721");
5
+ exports.advisor = {
6
+ v20200721: v20200721_1.v20200721,
7
+ };
@@ -0,0 +1,18 @@
1
+ import { AbstractClient } from "../../../common/abstract_client";
2
+ import { ClientConfig } from "../../../common/interface";
3
+ import { DescribeStrategiesResponse, DescribeTaskStrategyRisksRequest, DescribeTaskStrategyRisksResponse, DescribeStrategiesRequest } from "./advisor_models";
4
+ /**
5
+ * advisor client
6
+ * @class
7
+ */
8
+ export declare class Client extends AbstractClient {
9
+ constructor(clientConfig: ClientConfig);
10
+ /**
11
+ * 查询评估项风险实例列表
12
+ */
13
+ DescribeTaskStrategyRisks(req: DescribeTaskStrategyRisksRequest, cb?: (error: string, rep: DescribeTaskStrategyRisksResponse) => void): Promise<DescribeTaskStrategyRisksResponse>;
14
+ /**
15
+ * 用于查询评估项的信息
16
+ */
17
+ DescribeStrategies(req?: DescribeStrategiesRequest, cb?: (error: string, rep: DescribeStrategiesResponse) => void): Promise<DescribeStrategiesResponse>;
18
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const abstract_client_1 = require("../../../common/abstract_client");
22
+ /**
23
+ * advisor client
24
+ * @class
25
+ */
26
+ class Client extends abstract_client_1.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("advisor.tencentcloudapi.com", "2020-07-21", clientConfig);
29
+ }
30
+ /**
31
+ * 查询评估项风险实例列表
32
+ */
33
+ async DescribeTaskStrategyRisks(req, cb) {
34
+ return this.request("DescribeTaskStrategyRisks", req, cb);
35
+ }
36
+ /**
37
+ * 用于查询评估项的信息
38
+ */
39
+ async DescribeStrategies(req, cb) {
40
+ return this.request("DescribeStrategies", req, cb);
41
+ }
42
+ }
43
+ exports.Client = Client;
@@ -0,0 +1,155 @@
1
+ /**
2
+ * DescribeStrategies返回参数结构体
3
+ */
4
+ export interface DescribeStrategiesResponse {
5
+ /**
6
+ * 评估项列表
7
+ 注意:此字段可能返回 null,表示取不到有效值。
8
+ */
9
+ Strategies: Array<DescribeStrategie>;
10
+ /**
11
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
12
+ */
13
+ RequestId?: string;
14
+ }
15
+ /**
16
+ * DescribeTaskStrategyRisks请求参数结构体
17
+ */
18
+ export interface DescribeTaskStrategyRisksRequest {
19
+ /**
20
+ * 评估项ID
21
+ */
22
+ StrategyId: number;
23
+ /**
24
+ * 限制数量,默认100
25
+ */
26
+ Limit?: number;
27
+ /**
28
+ * 偏移量,默认0
29
+ */
30
+ Offset?: number;
31
+ }
32
+ /**
33
+ * 评估项信息
34
+ */
35
+ export interface DescribeStrategie {
36
+ /**
37
+ * 评估项ID
38
+ 注意:此字段可能返回 null,表示取不到有效值。
39
+ */
40
+ StrategyId: number;
41
+ /**
42
+ * 评估项名称
43
+ 注意:此字段可能返回 null,表示取不到有效值。
44
+ */
45
+ Name: string;
46
+ /**
47
+ * 评估项描述
48
+ 注意:此字段可能返回 null,表示取不到有效值。
49
+ */
50
+ Desc: string;
51
+ /**
52
+ * 评估项对应产品ID
53
+ 注意:此字段可能返回 null,表示取不到有效值。
54
+ */
55
+ Product: string;
56
+ /**
57
+ * 评估项对应产品名称
58
+ 注意:此字段可能返回 null,表示取不到有效值。
59
+ */
60
+ ProductDesc: string;
61
+ /**
62
+ * 评估项优化建议
63
+ 注意:此字段可能返回 null,表示取不到有效值。
64
+ */
65
+ Repair: string;
66
+ /**
67
+ * 评估项类别ID
68
+ 注意:此字段可能返回 null,表示取不到有效值。
69
+ */
70
+ GroupId: number;
71
+ /**
72
+ * 评估项类别名称
73
+ 注意:此字段可能返回 null,表示取不到有效值。
74
+ */
75
+ GroupName: string;
76
+ /**
77
+ * 评估项风险列表
78
+ 注意:此字段可能返回 null,表示取不到有效值。
79
+ */
80
+ Conditions: Array<DescribeStrategiesCondition>;
81
+ }
82
+ /**
83
+ * DescribeTaskStrategyRisks返回参数结构体
84
+ */
85
+ export interface DescribeTaskStrategyRisksResponse {
86
+ /**
87
+ * 根据此配置,匹配风险实例列表(Risks)对应字段,例如:
88
+ {"Response":{"RequestId":"111","RiskFieldsDesc":[{"Field":"InstanceId","FieldName":"ID","FieldType":"string","FieldDict":{}},{"Field":"InstanceName","FieldName":"名称","FieldType":"string","FieldDict":{}},{"Field":"InstanceState","FieldName":"状态","FieldType":"string","FieldDict":{"LAUNCH_FAILED":"创建失败","PENDING":"创建中","REBOOTING":"重启中","RUNNING":"运行中","SHUTDOWN":"停止待销毁","STARTING":"开机中","STOPPED":"关机","STOPPING":"关机中","TERMINATING":"销毁中"}},{"Field":"Zone","FieldName":"可用区","FieldType":"string","FieldDict":{}},{"Field":"PrivateIPAddresses","FieldName":"IP地址(内)","FieldType":"stringSlice","FieldDict":{}},{"Field":"PublicIPAddresses","FieldName":"IP地址(公)","FieldType":"stringSlice","FieldDict":{}},{"Field":"Tags","FieldName":"标签","FieldType":"tags","FieldDict":{}}],"RiskTotalCount":1,"Risks":[{"InstanceId":"ins-diha6wb3","InstanceName":"tke_cls-13rigq6t_worker","InstanceState":"RUNNING","PrivateIPAddresses":["1.0.0.1"],"PublicIPAddresses":null,"Tags":null,"Zone":"ap-beijing-1"}],"StrategyId":9}}
89
+ 注意:此字段可能返回 null,表示取不到有效值。
90
+ */
91
+ RiskFieldsDesc: Array<RiskFieldsDesc>;
92
+ /**
93
+ * 评估项ID
94
+ 注意:此字段可能返回 null,表示取不到有效值。
95
+ */
96
+ StrategyId: number;
97
+ /**
98
+ * 风险实例个数
99
+ 注意:此字段可能返回 null,表示取不到有效值。
100
+ */
101
+ RiskTotalCount: number;
102
+ /**
103
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
104
+ */
105
+ RequestId?: string;
106
+ }
107
+ /**
108
+ * 风险实例字段描述
109
+ */
110
+ export interface RiskFieldsDesc {
111
+ /**
112
+ * 字段ID
113
+ */
114
+ Field: string;
115
+ /**
116
+ * 字段名称
117
+ */
118
+ FieldName: string;
119
+ /**
120
+ * 字段类型,
121
+ string: 字符串类型,例如"aa"
122
+ int: 整形,例如 111
123
+ stringSlice : 字符串数组类型,例如["a", "b"]
124
+ tags: 标签类型, 例如: [{"Key":"kkk","Value":"vvv"},{"Key":"kkk2","Value":"vvv2"}]
125
+ */
126
+ FieldType: string;
127
+ }
128
+ /**
129
+ * 评估项警告条件
130
+ */
131
+ export interface DescribeStrategiesCondition {
132
+ /**
133
+ * 警告条件ID
134
+ 注意:此字段可能返回 null,表示取不到有效值。
135
+ */
136
+ ConditionId: number;
137
+ /**
138
+ * 警告级别,2:中风险,3:高风险
139
+ 注意:此字段可能返回 null,表示取不到有效值。
140
+ */
141
+ Level: number;
142
+ /**
143
+ * 警告级别描述
144
+ 注意:此字段可能返回 null,表示取不到有效值。
145
+ */
146
+ LevelDesc: string;
147
+ /**
148
+ * 警告条件描述
149
+ */
150
+ Desc: string;
151
+ }
152
+ /**
153
+ * DescribeStrategies请求参数结构体
154
+ */
155
+ export declare type DescribeStrategiesRequest = null;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import * as Models from "./advisor_models";
2
+ import { Client } from "./advisor_client";
3
+ export declare const v20200721: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20200721 = void 0;
4
+ const Models = require("./advisor_models");
5
+ const advisor_client_1 = require("./advisor_client");
6
+ exports.v20200721 = {
7
+ Client: advisor_client_1.Client,
8
+ Models: Models
9
+ };
@@ -136,6 +136,7 @@ export declare class Client extends AbstractClient {
136
136
  SetInstancesProtection(req: SetInstancesProtectionRequest, cb?: (error: string, rep: SetInstancesProtectionResponse) => void): Promise<SetInstancesProtectionResponse>;
137
137
  /**
138
138
  * 本接口(ModifyNotificationConfiguration)用于修改通知。
139
+ * 通知的接收端类型不支持修改。
139
140
  */
140
141
  ModifyNotificationConfiguration(req: ModifyNotificationConfigurationRequest, cb?: (error: string, rep: ModifyNotificationConfigurationResponse) => void): Promise<ModifyNotificationConfigurationResponse>;
141
142
  /**
@@ -161,6 +162,33 @@ export declare class Client extends AbstractClient {
161
162
  ModifyAutoScalingGroup(req: ModifyAutoScalingGroupRequest, cb?: (error: string, rep: ModifyAutoScalingGroupResponse) => void): Promise<ModifyAutoScalingGroupResponse>;
162
163
  /**
163
164
  * 本接口(CreateNotificationConfiguration)用于创建通知。
165
+ 通知到 CMQ 主题或队列时,消息内容如下:
166
+ ```
167
+ {
168
+ "Service": "Tencent Cloud Auto Scaling",
169
+ "CreatedTime": "2021-10-11T10:15:11Z", // 活动创建时间
170
+ "AppId": "100000000",
171
+ "ActivityId": "asa-fznnvrja", // 伸缩活动ID
172
+ "AutoScalingGroupId": "asg-pc2oqu2z", // 伸缩组ID
173
+ "ActivityType": "SCALE_OUT", // 伸缩活动类型
174
+ "StatusCode": "SUCCESSFUL", // 伸缩活动结果
175
+ "Description": "Activity was launched in response to a difference between desired capacity and actual capacity,
176
+ scale out 1 instance(s).", // 伸缩活动描述
177
+ "StartTime": "2021-10-11T10:15:11Z", // 活动开始时间
178
+ "EndTime": "2021-10-11T10:15:32Z", // 活动结束时间
179
+ "DetailedStatusMessageSet": [ // 活动内部错误集合(非空不代表活动失败)
180
+ {
181
+ "Code": "InvalidInstanceType",
182
+ "Zone": "ap-guangzhou-2",
183
+ "InstanceId": "",
184
+ "InstanceChargeType": "POSTPAID_BY_HOUR",
185
+ "SubnetId": "subnet-4t5mgeuu",
186
+ "Message": "The specified instance type `S5.LARGE8` is invalid in `subnet-4t5mgeuu`, `ap-guangzhou-2`.",
187
+ "InstanceType": "S5.LARGE8"
188
+ }
189
+ ]
190
+ }
191
+ ```
164
192
  */
165
193
  CreateNotificationConfiguration(req: CreateNotificationConfigurationRequest, cb?: (error: string, rep: CreateNotificationConfigurationResponse) => void): Promise<CreateNotificationConfigurationResponse>;
166
194
  /**
@@ -202,6 +202,7 @@ class Client extends abstract_client_1.AbstractClient {
202
202
  }
203
203
  /**
204
204
  * 本接口(ModifyNotificationConfiguration)用于修改通知。
205
+ * 通知的接收端类型不支持修改。
205
206
  */
206
207
  async ModifyNotificationConfiguration(req, cb) {
207
208
  return this.request("ModifyNotificationConfiguration", req, cb);
@@ -235,6 +236,33 @@ class Client extends abstract_client_1.AbstractClient {
235
236
  }
236
237
  /**
237
238
  * 本接口(CreateNotificationConfiguration)用于创建通知。
239
+ 通知到 CMQ 主题或队列时,消息内容如下:
240
+ ```
241
+ {
242
+ "Service": "Tencent Cloud Auto Scaling",
243
+ "CreatedTime": "2021-10-11T10:15:11Z", // 活动创建时间
244
+ "AppId": "100000000",
245
+ "ActivityId": "asa-fznnvrja", // 伸缩活动ID
246
+ "AutoScalingGroupId": "asg-pc2oqu2z", // 伸缩组ID
247
+ "ActivityType": "SCALE_OUT", // 伸缩活动类型
248
+ "StatusCode": "SUCCESSFUL", // 伸缩活动结果
249
+ "Description": "Activity was launched in response to a difference between desired capacity and actual capacity,
250
+ scale out 1 instance(s).", // 伸缩活动描述
251
+ "StartTime": "2021-10-11T10:15:11Z", // 活动开始时间
252
+ "EndTime": "2021-10-11T10:15:32Z", // 活动结束时间
253
+ "DetailedStatusMessageSet": [ // 活动内部错误集合(非空不代表活动失败)
254
+ {
255
+ "Code": "InvalidInstanceType",
256
+ "Zone": "ap-guangzhou-2",
257
+ "InstanceId": "",
258
+ "InstanceChargeType": "POSTPAID_BY_HOUR",
259
+ "SubnetId": "subnet-4t5mgeuu",
260
+ "Message": "The specified instance type `S5.LARGE8` is invalid in `subnet-4t5mgeuu`, `ap-guangzhou-2`.",
261
+ "InstanceType": "S5.LARGE8"
262
+ }
263
+ ]
264
+ }
265
+ ```
238
266
  */
239
267
  async CreateNotificationConfiguration(req, cb) {
240
268
  return this.request("CreateNotificationConfiguration", req, cb);
@@ -259,6 +259,18 @@ export interface AutoScalingNotification {
259
259
  * 事件通知ID。
260
260
  */
261
261
  AutoScalingNotificationId: string;
262
+ /**
263
+ * 通知接收端类型。
264
+ */
265
+ TargetType: string;
266
+ /**
267
+ * CMQ 队列名。
268
+ */
269
+ QueueName: string;
270
+ /**
271
+ * CMQ 主题名。
272
+ */
273
+ TopicName: string;
262
274
  }
263
275
  /**
264
276
  * ModifyScheduledAction请求参数结构体
@@ -901,7 +913,7 @@ export interface CreateLaunchConfigurationRequest {
901
913
  */
902
914
  ImageId: string;
903
915
  /**
904
- * 启动配置所属项目ID。该参数可以通过调用DescribeProject的返回值中的`projectId`字段来获取。不填为默认项目。
916
+ * 启动配置所属项目ID。不填为默认项目。
905
917
  注意:伸缩组内实例所属项目ID取伸缩组项目ID,与这里取值无关。
906
918
  */
907
919
  ProjectId?: number;
@@ -1315,7 +1327,19 @@ export interface CreateNotificationConfigurationRequest {
1315
1327
  /**
1316
1328
  * 通知组ID,即为用户组ID集合,用户组ID可以通过[ListGroups](https://cloud.tencent.com/document/product/598/34589)查询。
1317
1329
  */
1318
- NotificationUserGroupIds: Array<string>;
1330
+ NotificationUserGroupIds?: Array<string>;
1331
+ /**
1332
+ * 通知接收端类型,取值:`USER_GROUP`,`CMQ_QUEUE`,`CMQ_TOPIC`。默认值为:`USER_GROUP`。
1333
+ */
1334
+ TargetType?: string;
1335
+ /**
1336
+ * CMQ 队列名称,如 TargetType 取值为 `CMQ_QUEUE`,该字段必填。
1337
+ */
1338
+ QueueName?: string;
1339
+ /**
1340
+ * CMQ 主题名称,如 TargetType 取值为 `CMQ_TOPIC`,该字段必填。
1341
+ */
1342
+ TopicName?: string;
1319
1343
  }
1320
1344
  /**
1321
1345
  * DescribeScheduledActions返回参数结构体
@@ -1356,6 +1380,14 @@ export interface ModifyNotificationConfigurationRequest {
1356
1380
  * 通知组ID,即为用户组ID集合,用户组ID可以通过[ListGroups](https://cloud.tencent.com/document/product/598/34589)查询。
1357
1381
  */
1358
1382
  NotificationUserGroupIds?: Array<string>;
1383
+ /**
1384
+ * CMQ 队列名。
1385
+ */
1386
+ QueueName?: string;
1387
+ /**
1388
+ * CMQ 主题名。
1389
+ */
1390
+ TopicName?: string;
1359
1391
  }
1360
1392
  /**
1361
1393
  * DeleteLifecycleHook请求参数结构体
@@ -1508,7 +1540,7 @@ export interface CreateAutoScalingGroupRequest {
1508
1540
  */
1509
1541
  LoadBalancerIds?: Array<string>;
1510
1542
  /**
1511
- * 伸缩组内实例所属项目ID。该参数可以通过调用 [DescribeProject](https://cloud.tencent.com/document/api/378/4400) 的返回值中的`projectId`字段来获取。不填为默认项目。
1543
+ * 伸缩组内实例所属项目ID。不填为默认项目。
1512
1544
  */
1513
1545
  ProjectId?: number;
1514
1546
  /**
@@ -1663,7 +1695,7 @@ export interface UpgradeLaunchConfigurationRequest {
1663
1695
  */
1664
1696
  LoginSettings?: LoginSettings;
1665
1697
  /**
1666
- * 实例所属项目ID。该参数可以通过调用 [DescribeProject](https://cloud.tencent.com/document/api/378/4400) 的返回值中的`projectId`字段来获取。不填为默认项目。
1698
+ * 实例所属项目ID。不填为默认项目。
1667
1699
  */
1668
1700
  ProjectId?: number;
1669
1701
  /**