tencentcloud-sdk-nodejs 4.0.788 → 4.0.789

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 (41) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/SERVICE_CHANGELOG.md +225 -2
  3. package/package.json +1 -1
  4. package/products.md +10 -9
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/apigateway/v20180808/apigateway_models.ts +1 -1
  7. package/src/services/emr/v20190103/emr_models.ts +34 -29
  8. package/src/services/index.ts +1 -0
  9. package/src/services/mongodb/v20190725/mongodb_models.ts +5 -0
  10. package/src/services/monitor/v20180724/monitor_models.ts +2 -4
  11. package/src/services/redis/v20180412/redis_models.ts +25 -11
  12. package/src/services/ssl/v20191205/ssl_models.ts +9 -0
  13. package/src/services/svp/index.ts +5 -0
  14. package/src/services/svp/v20240125/index.ts +6 -0
  15. package/src/services/svp/v20240125/svp_client.ts +40 -0
  16. package/src/services/svp/v20240125/svp_models.ts +72 -0
  17. package/src/services/teo/v20220901/teo_client.ts +32 -18
  18. package/src/services/teo/v20220901/teo_models.ts +172 -77
  19. package/tencentcloud/common/sdk_version.d.ts +1 -1
  20. package/tencentcloud/common/sdk_version.js +1 -1
  21. package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +1 -1
  22. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +34 -29
  23. package/tencentcloud/services/index.d.ts +1 -0
  24. package/tencentcloud/services/index.js +2 -0
  25. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +5 -0
  26. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +2 -4
  27. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +25 -11
  28. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +9 -0
  29. package/tencentcloud/services/svp/index.d.ts +6 -0
  30. package/tencentcloud/services/svp/index.js +7 -0
  31. package/tencentcloud/services/svp/v20240125/index.d.ts +6 -0
  32. package/tencentcloud/services/svp/v20240125/index.js +9 -0
  33. package/tencentcloud/services/svp/v20240125/svp_client.d.ts +14 -0
  34. package/tencentcloud/services/svp/v20240125/svp_client.js +37 -0
  35. package/tencentcloud/services/svp/v20240125/svp_models.d.ts +54 -0
  36. package/tencentcloud/services/svp/v20240125/svp_models.js +18 -0
  37. package/tencentcloud/services/teo/v20220901/teo_client.d.ts +9 -5
  38. package/tencentcloud/services/teo/v20220901/teo_client.js +12 -6
  39. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +168 -77
  40. package/test/svp.v20240125.test.js +31 -0
  41. package/test/teo.v20220901.test.js +14 -4
@@ -180,6 +180,7 @@ export { ssl } from "./ssl"
180
180
  export { sslpod } from "./sslpod"
181
181
  export { ssm } from "./ssm"
182
182
  export { sts } from "./sts"
183
+ export { svp } from "./svp"
183
184
  export { taf } from "./taf"
184
185
  export { tag } from "./tag"
185
186
  export { tan } from "./tan"
@@ -2639,6 +2639,11 @@ export interface InstanceDetail {
2639
2639
  * 实例对应的物理实例id,回档并替换过的实例有不同的InstanceId和RealInstanceId,从barad获取监控数据等场景下需要用物理id获取
2640
2640
  */
2641
2641
  RealInstanceId?: string
2642
+ /**
2643
+ * 实例当前可用区信息。
2644
+ 注意:此字段可能返回 null,表示取不到有效值。
2645
+ */
2646
+ ZoneList?: Array<string>
2642
2647
  /**
2643
2648
  * mongos节点个数。
2644
2649
  注意:此字段可能返回 null,表示取不到有效值。
@@ -10547,13 +10547,11 @@ export interface DescribeStatisticDataRequest {
10547
10547
  */
10548
10548
  Namespace: string
10549
10549
  /**
10550
- * 指标名列表,相关指标信息可参考对应 云产品指标文档
10551
- https://cloud.tencent.com/document/product/248/62458
10550
+ * 指标名列表,相关指标信息可参考对应 [云产品指标文档](https://cloud.tencent.com/document/product/248/62458)
10552
10551
  */
10553
10552
  MetricNames: Array<string>
10554
10553
  /**
10555
- * 维度条件,操作符支持=、in
10556
- 配置文档参考:https://cloud.tencent.com/document/product/248/53821
10554
+ * 维度条件,操作符支持=、in,详情请参考对应 [指标维度信息](https://cloud.tencent.com/document/product/248/53821)
10557
10555
  */
10558
10556
  Conditions?: Array<MidQueryCondition>
10559
10557
  /**
@@ -4354,10 +4354,15 @@ export interface InstanceSet {
4354
4354
  */
4355
4355
  PasswordFree?: number
4356
4356
  /**
4357
- * 内部参数,用户可忽略。
4357
+ * 该参数存在命名不规范问题,建议用参数IPv6取代。内部参数,用户可忽略。
4358
4358
  注意:此字段可能返回 null,表示取不到有效值。
4359
4359
  */
4360
4360
  Vip6?: string
4361
+ /**
4362
+ * 内部参数,用户可忽略。
4363
+ 注意:此字段可能返回 null,表示取不到有效值。
4364
+ */
4365
+ IPv6?: string
4361
4366
  /**
4362
4367
  * 实例只读标识(内部参数,用户可忽略)。
4363
4368
  注意:此字段可能返回 null,表示取不到有效值。
@@ -5337,43 +5342,47 @@ export interface InstanceClusterShard {
5337
5342
  /**
5338
5343
  * 分片节点名称。
5339
5344
  */
5340
- ShardName: string
5345
+ ShardName?: string
5341
5346
  /**
5342
5347
  * 分片节点序号。
5343
5348
  */
5344
- ShardId: string
5349
+ ShardId?: string
5345
5350
  /**
5346
5351
  * 分片节点的角色。
5347
5352
  - 0:主节点。
5348
5353
  - 1:副本节点。
5349
5354
  */
5350
- Role: number
5355
+ Role?: number
5351
5356
  /**
5352
5357
  * Key数量。
5353
5358
  */
5354
- Keys: number
5359
+ Keys?: number
5355
5360
  /**
5356
5361
  * Slot信息。
5357
5362
  */
5358
- Slots: string
5363
+ Slots?: string
5359
5364
  /**
5360
5365
  * 已使用容量。
5361
5366
  */
5362
- Storage: number
5367
+ Storage?: number
5363
5368
  /**
5364
5369
  * 容量倾斜率。
5365
5370
  */
5366
- StorageSlope: number
5371
+ StorageSlope?: number
5372
+ /**
5373
+ * 该字段因拼写不规范问题,建议使用RunId取代。含义:实例运行时节点 ID。
5374
+ */
5375
+ Runid?: string
5367
5376
  /**
5368
5377
  * 实例运行时节点 ID。
5369
5378
  */
5370
- Runid: string
5379
+ RunId?: string
5371
5380
  /**
5372
5381
  * 服务状态。
5373
5382
  - 0:down。
5374
5383
  - 1:on。
5375
5384
  */
5376
- Connected: number
5385
+ Connected?: number
5377
5386
  }
5378
5387
 
5379
5388
  /**
@@ -5617,10 +5626,15 @@ export interface Instances {
5617
5626
  */
5618
5627
  Vip?: string
5619
5628
  /**
5620
- * 内部参数,用户可忽略。
5629
+ * 该参数存在命名不规范问题,建议用参数IPv6取代。内部参数,用户可忽略。
5621
5630
  注意:此字段可能返回 null,表示取不到有效值。
5622
5631
  */
5623
5632
  Vip6?: string
5633
+ /**
5634
+ * 内部参数,用户可忽略。
5635
+ 注意:此字段可能返回 null,表示取不到有效值。
5636
+ */
5637
+ IPv6?: string
5624
5638
  /**
5625
5639
  * VPC 网络ID,如:75101。
5626
5640
  */
@@ -3517,6 +3517,11 @@ export interface DeleteCertificateResponse {
3517
3517
  * 删除结果(true:删除成功,false:删除失败)
3518
3518
  */
3519
3519
  DeleteResult?: boolean
3520
+ /**
3521
+ * 异步删除的任务ID
3522
+ 注意:此字段可能返回 null,表示取不到有效值。
3523
+ */
3524
+ TaskId?: string
3520
3525
  /**
3521
3526
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3522
3527
  */
@@ -4181,6 +4186,10 @@ export interface DeleteCertificateRequest {
4181
4186
  * 证书 ID。
4182
4187
  */
4183
4188
  CertificateId: string
4189
+ /**
4190
+ * 删除时是否检查证书关联了云资源。默认不检查。如选择检查(需要授权服务角色SSL_QCSLinkedRoleInReplaceLoadCertificate)删除将变成异步,接口会返回异步任务ID。需使用DescribeDeleteCertificatesTaskResult接口查询删除是否成功。
4191
+ */
4192
+ IsCheckResource?: boolean
4184
4193
  }
4185
4194
 
4186
4195
  /**
@@ -0,0 +1,5 @@
1
+ import { v20240125 } from "./v20240125"
2
+
3
+ export const svp = {
4
+ v20240125: v20240125,
5
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./svp_models"
2
+ import { Client } from "./svp_client"
3
+ export const v20240125 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -0,0 +1,40 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
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
+ import { AbstractClient } from "../../../common/abstract_client"
19
+ import { ClientConfig } from "../../../common/interface"
20
+ import { CreateSavingPlanOrderRequest, CreateSavingPlanOrderResponse } from "./svp_models"
21
+
22
+ /**
23
+ * svp client
24
+ * @class
25
+ */
26
+ export class Client extends AbstractClient {
27
+ constructor(clientConfig: ClientConfig) {
28
+ super("svp.tencentcloudapi.com", "2024-01-25", clientConfig)
29
+ }
30
+
31
+ /**
32
+ * 创建节省计划订单
33
+ */
34
+ async CreateSavingPlanOrder(
35
+ req: CreateSavingPlanOrderRequest,
36
+ cb?: (error: string, rep: CreateSavingPlanOrderResponse) => void
37
+ ): Promise<CreateSavingPlanOrderResponse> {
38
+ return this.request("CreateSavingPlanOrder", req, cb)
39
+ }
40
+ }
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * CreateSavingPlanOrder请求参数结构体
20
+ */
21
+ export interface CreateSavingPlanOrderRequest {
22
+ /**
23
+ * 地域编码
24
+ */
25
+ RegionId: number
26
+ /**
27
+ * 区域编码
28
+ */
29
+ ZoneId: number
30
+ /**
31
+ * 预付费类型
32
+ */
33
+ PrePayType: string
34
+ /**
35
+ * 时长
36
+ */
37
+ TimeSpan: number
38
+ /**
39
+ * 时长单位
40
+ */
41
+ TimeUnit: string
42
+ /**
43
+ * 商品唯一标识
44
+ */
45
+ CommodityCode: string
46
+ /**
47
+ * 承诺时长内的小额金额(单位:元)
48
+ */
49
+ PromiseUseAmount: number
50
+ /**
51
+ * 节省计划的指定生效时间,若不传则为当前下单时间。传参数格式:"2023-10-01 00:00:00",仅支持指定日期的0点时刻
52
+ */
53
+ SpecifyEffectTime?: string
54
+ /**
55
+ * 可重入ID
56
+ */
57
+ ClientToken?: string
58
+ }
59
+
60
+ /**
61
+ * CreateSavingPlanOrder返回参数结构体
62
+ */
63
+ export interface CreateSavingPlanOrderResponse {
64
+ /**
65
+ * 订单号
66
+ */
67
+ BigDealId?: string
68
+ /**
69
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
70
+ */
71
+ RequestId?: string
72
+ }
@@ -67,7 +67,7 @@ import {
67
67
  DescribeDeployHistoryRequest,
68
68
  DescribeAvailablePlansRequest,
69
69
  OriginInfo,
70
- Tag,
70
+ BillingData,
71
71
  ModifySecurityPolicyResponse,
72
72
  DescribeHostsSettingResponse,
73
73
  ModifyZoneStatusResponse,
@@ -78,21 +78,24 @@ import {
78
78
  DeleteZoneResponse,
79
79
  CreateRuleResponse,
80
80
  BotExtendAction,
81
+ TimingDataRecord,
81
82
  CreatePurgeTaskResponse,
82
83
  DeleteApplicationProxyRuleResponse,
83
84
  ModifyZoneSettingRequest,
84
85
  DescribeRulesResponse,
85
- TimingDataRecord,
86
+ DownloadL4LogsResponse,
86
87
  OriginProtectionInfo,
87
88
  DescribeOriginProtectionResponse,
88
89
  BindZoneToPlanResponse,
89
90
  ExceptConfig,
90
91
  DeleteOriginGroupRequest,
91
92
  ImageOptimize,
93
+ DescribeBillingDataRequest,
92
94
  AliasDomain,
93
95
  WebSocket,
94
96
  ModifyAliasDomainRequest,
95
97
  AclCondition,
98
+ TimingTypeValue,
96
99
  DescribeAliasDomainsRequest,
97
100
  SkipCondition,
98
101
  IpTableRule,
@@ -166,6 +169,7 @@ import {
166
169
  CreatePrefetchTaskResponse,
167
170
  NoCache,
168
171
  DescribeDefaultCertificatesRequest,
172
+ SlowPostConfig,
169
173
  BindZoneToPlanRequest,
170
174
  EnvInfo,
171
175
  IPWhitelist,
@@ -214,7 +218,7 @@ import {
214
218
  DescribeEnvironmentsResponse,
215
219
  VanityNameServersIps,
216
220
  NsVerification,
217
- SlowPostConfig,
221
+ Rule,
218
222
  AccelerateMainland,
219
223
  ExceptUserRule,
220
224
  CreateApplicationProxyRuleResponse,
@@ -234,7 +238,7 @@ import {
234
238
  IntelligenceRule,
235
239
  PostMaxSize,
236
240
  Sv,
237
- Rule,
241
+ DescribeBillingDataResponse,
238
242
  ModifyL4ProxyRulesStatusRequest,
239
243
  Filter,
240
244
  CreateAccelerationDomainResponse,
@@ -248,7 +252,7 @@ import {
248
252
  ModifySecurityIPGroupResponse,
249
253
  CacheKey,
250
254
  ModifyOriginGroupRequest,
251
- DownloadL4LogsResponse,
255
+ BillingDataFilter,
252
256
  DescribeTimingL7CacheDataResponse,
253
257
  BindSharedCNAMERequest,
254
258
  RateLimitIntelligence,
@@ -345,7 +349,7 @@ import {
345
349
  DescribeIPRegionRequest,
346
350
  ModifyAccelerationDomainStatusesRequest,
347
351
  BotConfig,
348
- TimingTypeValue,
352
+ Tag,
349
353
  } from "./teo_models"
350
354
 
351
355
  /**
@@ -574,13 +578,13 @@ CNAME 模式接入时,若您未完成站点归属权校验,本接口将为
574
578
  }
575
579
 
576
580
  /**
577
- * 用于修改站点配置
581
+ * 在版本管理模式下,用于获取版本的详细信息,包括版本 ID、描述、状态、创建时间、所属配置组信息以及版本配置文件的内容。版本管理功能内测中,当前仅白名单开放。
578
582
  */
579
- async ModifyZoneSetting(
580
- req: ModifyZoneSettingRequest,
581
- cb?: (error: string, rep: ModifyZoneSettingResponse) => void
582
- ): Promise<ModifyZoneSettingResponse> {
583
- return this.request("ModifyZoneSetting", req, cb)
583
+ async DescribeConfigGroupVersionDetail(
584
+ req: DescribeConfigGroupVersionDetailRequest,
585
+ cb?: (error: string, rep: DescribeConfigGroupVersionDetailResponse) => void
586
+ ): Promise<DescribeConfigGroupVersionDetailResponse> {
587
+ return this.request("DescribeConfigGroupVersionDetail", req, cb)
584
588
  }
585
589
 
586
590
  /**
@@ -694,13 +698,13 @@ CNAME 模式接入时,若您未完成站点归属权校验,本接口将为
694
698
  }
695
699
 
696
700
  /**
697
- * 在版本管理模式下,用于获取版本的详细信息,包括版本 ID、描述、状态、创建时间、所属配置组信息以及版本配置文件的内容。版本管理功能内测中,当前仅白名单开放。
701
+ * 用于修改站点配置
698
702
  */
699
- async DescribeConfigGroupVersionDetail(
700
- req: DescribeConfigGroupVersionDetailRequest,
701
- cb?: (error: string, rep: DescribeConfigGroupVersionDetailResponse) => void
702
- ): Promise<DescribeConfigGroupVersionDetailResponse> {
703
- return this.request("DescribeConfigGroupVersionDetail", req, cb)
703
+ async ModifyZoneSetting(
704
+ req: ModifyZoneSettingRequest,
705
+ cb?: (error: string, rep: ModifyZoneSettingResponse) => void
706
+ ): Promise<ModifyZoneSettingResponse> {
707
+ return this.request("ModifyZoneSetting", req, cb)
704
708
  }
705
709
 
706
710
  /**
@@ -1246,4 +1250,14 @@ CNAME 模式接入时,若您未完成站点归属权校验,本接口将为
1246
1250
  ): Promise<DescribeAliasDomainsResponse> {
1247
1251
  return this.request("DescribeAliasDomains", req, cb)
1248
1252
  }
1253
+
1254
+ /**
1255
+ * 通过本接口查询计费数据。
1256
+ */
1257
+ async DescribeBillingData(
1258
+ req: DescribeBillingDataRequest,
1259
+ cb?: (error: string, rep: DescribeBillingDataResponse) => void
1260
+ ): Promise<DescribeBillingDataResponse> {
1261
+ return this.request("DescribeBillingData", req, cb)
1262
+ }
1249
1263
  }