tencentcloud-sdk-nodejs 4.0.939 → 4.0.940

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.
@@ -271,6 +271,15 @@ export interface ServiceAccountAuthenticationOptions {
271
271
  */
272
272
  AutoCreateDiscoveryAnonymousAuth?: boolean;
273
273
  }
274
+ /**
275
+ * ModifyOpenPolicyList返回参数结构体
276
+ */
277
+ export interface ModifyOpenPolicyListResponse {
278
+ /**
279
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
280
+ */
281
+ RequestId?: string;
282
+ }
274
283
  /**
275
284
  * 执行步骤信息
276
285
  */
@@ -481,6 +490,61 @@ export interface Addon {
481
490
  */
482
491
  Reason?: string;
483
492
  }
493
+ /**
494
+ * opa策略信息
495
+ */
496
+ export interface OpenPolicyInfo {
497
+ /**
498
+ * 策略分类:cluster集群策略、node节点策略、namespace命名空间策略、configuration配置相关策略、compute计算资源策略、storage存储资源策略、network网络资源策略
499
+ 注意:此字段可能返回 null,表示取不到有效值。
500
+ */
501
+ PolicyCategory?: string;
502
+ /**
503
+ * 策略中文名称
504
+ 注意:此字段可能返回 null,表示取不到有效值。
505
+ */
506
+ PolicyName?: string;
507
+ /**
508
+ * 策略描述
509
+ 注意:此字段可能返回 null,表示取不到有效值。
510
+ */
511
+ PolicyDesc?: string;
512
+ /**
513
+ * 策略运行模式:dryrun空跑不生效,deny拦截生效
514
+ 注意:此字段可能返回 null,表示取不到有效值。
515
+ */
516
+ EnforcementAction?: string;
517
+ /**
518
+ * 关联的事件数量(最近7d)
519
+ 注意:此字段可能返回 null,表示取不到有效值。
520
+ */
521
+ EventNums?: number;
522
+ /**
523
+ * 策略英文名称
524
+ 注意:此字段可能返回 null,表示取不到有效值。
525
+ */
526
+ Name?: string;
527
+ /**
528
+ * 策略模版类型
529
+ 注意:此字段可能返回 null,表示取不到有效值。
530
+ */
531
+ Kind?: string;
532
+ /**
533
+ * 策略开关状态:open打开,close关闭
534
+ 注意:此字段可能返回 null,表示取不到有效值。
535
+ */
536
+ EnabledStatus?: string;
537
+ /**
538
+ * 策略的实例的yaml示例base64编码
539
+ 注意:此字段可能返回 null,表示取不到有效值。
540
+ */
541
+ ConstraintYamlExample?: string;
542
+ /**
543
+ * 策略关联的实例列表
544
+ 注意:此字段可能返回 null,表示取不到有效值。
545
+ */
546
+ OpenConstraintInfoList?: Array<OpenConstraintInfo>;
547
+ }
484
548
  /**
485
549
  * DescribeEdgeClusterUpgradeInfo请求参数结构体
486
550
  */
@@ -3111,6 +3175,23 @@ export interface UpdateClusterVersionRequest {
3111
3175
  */
3112
3176
  SkipPreCheck?: boolean;
3113
3177
  }
3178
+ /**
3179
+ * ModifyOpenPolicyList请求参数结构体
3180
+ */
3181
+ export interface ModifyOpenPolicyListRequest {
3182
+ /**
3183
+ * 集群ID
3184
+ */
3185
+ ClusterId: string;
3186
+ /**
3187
+ * 修改的策略列表,目前仅支持修改EnforcementAction字段
3188
+ */
3189
+ OpenPolicyInfoList?: Array<OpenPolicySwitch>;
3190
+ /**
3191
+ * 策略分类 基线:baseline 优选:priority 可选:optional
3192
+ */
3193
+ Category?: string;
3194
+ }
3114
3195
  /**
3115
3196
  * 健康检查探测参数
3116
3197
  */
@@ -3895,6 +3976,26 @@ export interface DescribeAvailableTKEEdgeVersionRequest {
3895
3976
  */
3896
3977
  ClusterId?: string;
3897
3978
  }
3979
+ /**
3980
+ * 策略实例信息
3981
+ */
3982
+ export interface OpenConstraintInfo {
3983
+ /**
3984
+ * 策略实例名称
3985
+ 注意:此字段可能返回 null,表示取不到有效值。
3986
+ */
3987
+ Name?: string;
3988
+ /**
3989
+ * 策略实例关联事件数
3990
+ 注意:此字段可能返回 null,表示取不到有效值。
3991
+ */
3992
+ EventNums?: number;
3993
+ /**
3994
+ * 实例yaml详情base64编码
3995
+ 注意:此字段可能返回 null,表示取不到有效值。
3996
+ */
3997
+ YamlDetail?: string;
3998
+ }
3898
3999
  /**
3899
4000
  * DescribeClusterInspectionResultsOverview请求参数结构体
3900
4001
  */
@@ -3958,41 +4059,17 @@ export interface ForwardApplicationRequestV3Request {
3958
4059
  EncodedBody?: string;
3959
4060
  }
3960
4061
  /**
3961
- * prometheus告警历史
4062
+ * DescribeOpenPolicyList请求参数结构体
3962
4063
  */
3963
- export interface PrometheusAlertHistoryItem {
3964
- /**
3965
- * 告警名称
3966
- */
3967
- RuleName: string;
3968
- /**
3969
- * 告警开始时间
3970
- */
3971
- StartTime: string;
3972
- /**
3973
- * 告警内容
3974
- */
3975
- Content: string;
4064
+ export interface DescribeOpenPolicyListRequest {
3976
4065
  /**
3977
- * 告警状态
3978
- 注意:此字段可能返回 null,表示取不到有效值。
3979
- */
3980
- State?: string;
3981
- /**
3982
- * 触发的规则名称
3983
- 注意:此字段可能返回 null,表示取不到有效值。
3984
- */
3985
- RuleItem?: string;
3986
- /**
3987
- * 告警渠道的id
3988
- 注意:此字段可能返回 null,表示取不到有效值。
4066
+ * 集群ID
3989
4067
  */
3990
- TopicId?: string;
4068
+ ClusterId: string;
3991
4069
  /**
3992
- * 告警渠道的名称
3993
- 注意:此字段可能返回 null,表示取不到有效值。
4070
+ * 策略分类 基线:baseline 优选:priority 可选:optional
3994
4071
  */
3995
- TopicName?: string;
4072
+ Category?: string;
3996
4073
  }
3997
4074
  /**
3998
4075
  * 云原生Prometheus模板同步目标
@@ -5309,9 +5386,14 @@ export interface DescribeExternalNodeSupportConfigResponse {
5309
5386
  */
5310
5387
  EnabledPublicConnect?: boolean;
5311
5388
  /**
5312
- * 公网连接地址
5389
+ * 注册节点公网版公网连接地址
5313
5390
  */
5314
5391
  PublicConnectUrl?: string;
5392
+ /**
5393
+ * 注册节点公网版自定义域名
5394
+ 注意:此字段可能返回 null,表示取不到有效值。
5395
+ */
5396
+ PublicCustomDomain?: string;
5315
5397
  /**
5316
5398
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5317
5399
  */
@@ -5720,13 +5802,14 @@ export interface UpdateTKEEdgeClusterRequest {
5720
5802
  ClusterLevel?: string;
5721
5803
  }
5722
5804
  /**
5723
- * DescribeTKEEdgeExternalKubeconfig返回参数结构体
5805
+ * DescribeOpenPolicyList返回参数结构体
5724
5806
  */
5725
- export interface DescribeTKEEdgeExternalKubeconfigResponse {
5807
+ export interface DescribeOpenPolicyListResponse {
5726
5808
  /**
5727
- * kubeconfig文件内容
5809
+ * 策略信息列表
5810
+ 注意:此字段可能返回 null,表示取不到有效值。
5728
5811
  */
5729
- Kubeconfig?: string;
5812
+ OpenPolicyInfoList?: Array<OpenPolicyInfo>;
5730
5813
  /**
5731
5814
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5732
5815
  */
@@ -7359,6 +7442,11 @@ export interface Cluster {
7359
7442
  注意:此字段可能返回 null,表示取不到有效值。
7360
7443
  */
7361
7444
  ClusterEtcdNodeNum?: number;
7445
+ /**
7446
+ * 本地专用集群Id
7447
+ 注意:此字段可能返回 null,表示取不到有效值。
7448
+ */
7449
+ CdcId?: string;
7362
7450
  }
7363
7451
  /**
7364
7452
  * DescribeClusterAuthenticationOptions请求参数结构体
@@ -8762,6 +8850,19 @@ export interface DescribePrometheusClusterAgentsRequest {
8762
8850
  */
8763
8851
  Limit?: number;
8764
8852
  }
8853
+ /**
8854
+ * DescribeTKEEdgeExternalKubeconfig返回参数结构体
8855
+ */
8856
+ export interface DescribeTKEEdgeExternalKubeconfigResponse {
8857
+ /**
8858
+ * kubeconfig文件内容
8859
+ */
8860
+ Kubeconfig?: string;
8861
+ /**
8862
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8863
+ */
8864
+ RequestId?: string;
8865
+ }
8765
8866
  /**
8766
8867
  * 边缘容器参数描述
8767
8868
  */
@@ -9469,6 +9570,43 @@ export interface DescribeClusterAsGroupsResponse {
9469
9570
  */
9470
9571
  RequestId?: string;
9471
9572
  }
9573
+ /**
9574
+ * prometheus告警历史
9575
+ */
9576
+ export interface PrometheusAlertHistoryItem {
9577
+ /**
9578
+ * 告警名称
9579
+ */
9580
+ RuleName: string;
9581
+ /**
9582
+ * 告警开始时间
9583
+ */
9584
+ StartTime: string;
9585
+ /**
9586
+ * 告警内容
9587
+ */
9588
+ Content: string;
9589
+ /**
9590
+ * 告警状态
9591
+ 注意:此字段可能返回 null,表示取不到有效值。
9592
+ */
9593
+ State?: string;
9594
+ /**
9595
+ * 触发的规则名称
9596
+ 注意:此字段可能返回 null,表示取不到有效值。
9597
+ */
9598
+ RuleItem?: string;
9599
+ /**
9600
+ * 告警渠道的id
9601
+ 注意:此字段可能返回 null,表示取不到有效值。
9602
+ */
9603
+ TopicId?: string;
9604
+ /**
9605
+ * 告警渠道的名称
9606
+ 注意:此字段可能返回 null,表示取不到有效值。
9607
+ */
9608
+ TopicName?: string;
9609
+ }
9472
9610
  /**
9473
9611
  * DescribeLogSwitches请求参数结构体
9474
9612
  */
@@ -10280,6 +10418,31 @@ export interface DescribeVersionsResponse {
10280
10418
  */
10281
10419
  RequestId?: string;
10282
10420
  }
10421
+ /**
10422
+ * opa策略开关
10423
+ */
10424
+ export interface OpenPolicySwitch {
10425
+ /**
10426
+ * 策略运行模式:dryrun空跑不生效,deny拦截生效
10427
+ */
10428
+ EnforcementAction: string;
10429
+ /**
10430
+ * 策略英文名称
10431
+ */
10432
+ Name: string;
10433
+ /**
10434
+ * 策略模版类型
10435
+ */
10436
+ Kind: string;
10437
+ /**
10438
+ * 策略开关状态:open打开,close关闭
10439
+ */
10440
+ EnabledStatus?: string;
10441
+ /**
10442
+ * 策略关联的实例列表
10443
+ */
10444
+ OpenConstraintInfoList?: Array<OpenConstraintInfo>;
10445
+ }
10283
10446
  /**
10284
10447
  * ScaleInClusterMaster请求参数结构体
10285
10448
  */
@@ -10339,7 +10502,7 @@ export interface ClusterNetworkSettings {
10339
10502
  /**
10340
10503
  * 用于分配集群容器和服务 IP 的 CIDR,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突
10341
10504
  */
10342
- ClusterCIDR: string;
10505
+ ClusterCIDR?: string;
10343
10506
  /**
10344
10507
  * 是否忽略 ClusterCIDR 冲突错误, 默认不忽略
10345
10508
  */
@@ -10368,38 +10531,38 @@ export interface ClusterNetworkSettings {
10368
10531
  * service的网络模式,当前参数只适用于ipvs+bpf模式
10369
10532
  注意:此字段可能返回 null,表示取不到有效值。
10370
10533
  */
10371
- KubeProxyMode: string;
10534
+ KubeProxyMode?: string;
10372
10535
  /**
10373
10536
  * 用于分配service的IP range,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突
10374
10537
  注意:此字段可能返回 null,表示取不到有效值。
10375
10538
  */
10376
- ServiceCIDR: string;
10539
+ ServiceCIDR?: string;
10377
10540
  /**
10378
10541
  * 集群关联的容器子网
10379
10542
  注意:此字段可能返回 null,表示取不到有效值。
10380
10543
  */
10381
- Subnets: Array<string>;
10544
+ Subnets?: Array<string>;
10382
10545
  /**
10383
10546
  * 是否忽略 ServiceCIDR 冲突错误, 仅在 VPC-CNI 模式生效,默认不忽略
10384
10547
  注意:此字段可能返回 null,表示取不到有效值。
10385
10548
  */
10386
- IgnoreServiceCIDRConflict: boolean;
10549
+ IgnoreServiceCIDRConflict?: boolean;
10387
10550
  /**
10388
10551
  * 集群VPC-CNI模式是否为非双栈集群,默认false,非双栈。
10389
10552
  注意:此字段可能返回 null,表示取不到有效值。
10390
10553
  */
10391
- IsDualStack: boolean;
10554
+ IsDualStack?: boolean;
10392
10555
  /**
10393
10556
  * 用于分配service的IP range,由系统自动分配
10394
10557
  注意:此字段可能返回 null,表示取不到有效值。
10395
10558
  */
10396
- Ipv6ServiceCIDR: string;
10559
+ Ipv6ServiceCIDR?: string;
10397
10560
  /**
10398
10561
  * 集群Cilium Mode配置
10399
10562
  - clusterIP
10400
10563
  注意:此字段可能返回 null,表示取不到有效值。
10401
10564
  */
10402
- CiliumMode: string;
10565
+ CiliumMode?: string;
10403
10566
  }
10404
10567
  /**
10405
10568
  * DescribeImages返回参数结构体
@@ -1562,6 +1562,10 @@ export interface CreateVpcEndPointRequest {
1562
1562
  * 安全组ID。
1563
1563
  */
1564
1564
  SecurityGroupId?: string;
1565
+ /**
1566
+ * 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]。
1567
+ */
1568
+ Tags?: Array<Tag>;
1565
1569
  }
1566
1570
  /**
1567
1571
  * ModifyBandwidthPackageAttribute请求参数结构体
@@ -78,6 +78,16 @@ it("tke.v20180525.InstallEdgeLogAgent", async function () {
78
78
  }
79
79
  })
80
80
 
81
+ it("tke.v20180525.DescribeOpenPolicyList", async function () {
82
+ try {
83
+ const data = await client.DescribeOpenPolicyList({})
84
+ expect(data).to.be.ok
85
+ } catch(error) {
86
+ expect(error.requestId).to.be.ok
87
+ expect(error.code).to.be.ok
88
+ }
89
+ })
90
+
81
91
  it("tke.v20180525.CreateClusterVirtualNodePool", async function () {
82
92
  try {
83
93
  const data = await client.CreateClusterVirtualNodePool({})
@@ -488,6 +498,16 @@ it("tke.v20180525.DescribeAvailableClusterVersion", async function () {
488
498
  }
489
499
  })
490
500
 
501
+ it("tke.v20180525.ModifyPrometheusConfig", async function () {
502
+ try {
503
+ const data = await client.ModifyPrometheusConfig({})
504
+ expect(data).to.be.ok
505
+ } catch(error) {
506
+ expect(error.requestId).to.be.ok
507
+ expect(error.code).to.be.ok
508
+ }
509
+ })
510
+
491
511
  it("tke.v20180525.DescribeVpcCniPodLimits", async function () {
492
512
  try {
493
513
  const data = await client.DescribeVpcCniPodLimits({})
@@ -1678,9 +1698,9 @@ it("tke.v20180525.SyncPrometheusTemp", async function () {
1678
1698
  }
1679
1699
  })
1680
1700
 
1681
- it("tke.v20180525.ModifyPrometheusConfig", async function () {
1701
+ it("tke.v20180525.ModifyOpenPolicyList", async function () {
1682
1702
  try {
1683
- const data = await client.ModifyPrometheusConfig({})
1703
+ const data = await client.ModifyOpenPolicyList({})
1684
1704
  expect(data).to.be.ok
1685
1705
  } catch(error) {
1686
1706
  expect(error.requestId).to.be.ok