tencentcloud-sdk-nodejs 4.0.321 → 4.0.322
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/CHANGELOG.md +141 -0
- package/SERVICE_CHANGELOG.md +185 -110
- package/package.json +1 -1
- package/products.md +10 -10
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdn/v20180606/cdn_models.ts +7 -0
- package/src/services/cls/v20201016/cls_client.ts +37 -13
- package/src/services/cls/v20201016/cls_models.ts +75 -30
- package/src/services/cvm/v20170312/cvm_models.ts +13 -3
- package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +45 -45
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +13 -2
- package/src/services/ssa/v20180608/ssa_client.ts +18 -1
- package/src/services/ssa/v20180608/ssa_models.ts +233 -7
- package/src/services/tdmq/v20200217/tdmq_models.ts +6 -0
- package/src/services/tsf/v20180326/tsf_client.ts +15 -0
- package/src/services/tsf/v20180326/tsf_models.ts +175 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +6 -0
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +13 -5
- package/tencentcloud/services/cls/v20201016/cls_client.js +18 -6
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +65 -25
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +11 -3
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +45 -45
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +12 -1
- package/tencentcloud/services/ssa/v20180608/ssa_client.d.ts +5 -1
- package/tencentcloud/services/ssa/v20180608/ssa_client.js +6 -0
- package/tencentcloud/services/ssa/v20180608/ssa_models.d.ts +199 -7
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +5 -0
- package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +5 -1
- package/tencentcloud/services/tsf/v20180326/tsf_client.js +6 -0
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +149 -0
- package/test/cls.v20201016.test.js +24 -4
- package/test/ssa.v20180608.test.js +10 -0
- package/test/tsf.v20180326.test.js +10 -0
|
@@ -960,6 +960,12 @@ COS相关文档请查阅:https://cloud.tencent.com/document/product/436
|
|
|
960
960
|
async DeleteUnitNamespaces(req, cb) {
|
|
961
961
|
return this.request("DeleteUnitNamespaces", req, cb);
|
|
962
962
|
}
|
|
963
|
+
/**
|
|
964
|
+
* 无
|
|
965
|
+
*/
|
|
966
|
+
async DescribeInstances(req, cb) {
|
|
967
|
+
return this.request("DescribeInstances", req, cb);
|
|
968
|
+
}
|
|
963
969
|
/**
|
|
964
970
|
* 下线Api分组
|
|
965
971
|
*/
|
|
@@ -3279,6 +3279,21 @@ export interface TsfPageCluster {
|
|
|
3279
3279
|
*/
|
|
3280
3280
|
Content: Array<Cluster>;
|
|
3281
3281
|
}
|
|
3282
|
+
/**
|
|
3283
|
+
* InstanceEnrichedInfo列表结构
|
|
3284
|
+
*/
|
|
3285
|
+
export interface InstanceEnrichedInfoPage {
|
|
3286
|
+
/**
|
|
3287
|
+
* 总数量
|
|
3288
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3289
|
+
*/
|
|
3290
|
+
TotalCount: number;
|
|
3291
|
+
/**
|
|
3292
|
+
* 列表
|
|
3293
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3294
|
+
*/
|
|
3295
|
+
Content: Array<InstanceEnrichedInfo>;
|
|
3296
|
+
}
|
|
3282
3297
|
/**
|
|
3283
3298
|
* DescribePodInstances返回参数结构体
|
|
3284
3299
|
*/
|
|
@@ -6711,6 +6726,20 @@ export interface UpdateGatewayApiResponse {
|
|
|
6711
6726
|
*/
|
|
6712
6727
|
RequestId?: string;
|
|
6713
6728
|
}
|
|
6729
|
+
/**
|
|
6730
|
+
* DescribeInstances返回参数结构体
|
|
6731
|
+
*/
|
|
6732
|
+
export interface DescribeInstancesResponse {
|
|
6733
|
+
/**
|
|
6734
|
+
* 机器列表信息
|
|
6735
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6736
|
+
*/
|
|
6737
|
+
Result?: InstanceEnrichedInfoPage;
|
|
6738
|
+
/**
|
|
6739
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
6740
|
+
*/
|
|
6741
|
+
RequestId?: string;
|
|
6742
|
+
}
|
|
6714
6743
|
/**
|
|
6715
6744
|
* 返回容器的事件,比如 k8s deployment 或者 pod 的 events
|
|
6716
6745
|
*/
|
|
@@ -8088,6 +8117,23 @@ export interface UpdateGatewayApiRequest {
|
|
|
8088
8117
|
*/
|
|
8089
8118
|
Description?: string;
|
|
8090
8119
|
}
|
|
8120
|
+
/**
|
|
8121
|
+
* DescribeInstances请求参数结构体
|
|
8122
|
+
*/
|
|
8123
|
+
export interface DescribeInstancesRequest {
|
|
8124
|
+
/**
|
|
8125
|
+
* 过滤条件
|
|
8126
|
+
*/
|
|
8127
|
+
Filters?: Array<Filter>;
|
|
8128
|
+
/**
|
|
8129
|
+
* 偏移量,默认为0
|
|
8130
|
+
*/
|
|
8131
|
+
Offset?: number;
|
|
8132
|
+
/**
|
|
8133
|
+
* 分页个数,默认为20,最大100
|
|
8134
|
+
*/
|
|
8135
|
+
Limit?: number;
|
|
8136
|
+
}
|
|
8091
8137
|
/**
|
|
8092
8138
|
* 路径重写创建对象
|
|
8093
8139
|
*/
|
|
@@ -10357,6 +10403,96 @@ export interface TsfPageApplication {
|
|
|
10357
10403
|
*/
|
|
10358
10404
|
Content: Array<ApplicationForPage>;
|
|
10359
10405
|
}
|
|
10406
|
+
/**
|
|
10407
|
+
* 包含虚拟机所在TSF中的位置信息
|
|
10408
|
+
*/
|
|
10409
|
+
export interface InstanceEnrichedInfo {
|
|
10410
|
+
/**
|
|
10411
|
+
* 机器ID
|
|
10412
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10413
|
+
*/
|
|
10414
|
+
InstanceId: string;
|
|
10415
|
+
/**
|
|
10416
|
+
* 机器名称
|
|
10417
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10418
|
+
*/
|
|
10419
|
+
InstanceName: string;
|
|
10420
|
+
/**
|
|
10421
|
+
* 机器内网IP
|
|
10422
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10423
|
+
*/
|
|
10424
|
+
LanIp: string;
|
|
10425
|
+
/**
|
|
10426
|
+
* 机器外网IP
|
|
10427
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10428
|
+
*/
|
|
10429
|
+
WanIp: string;
|
|
10430
|
+
/**
|
|
10431
|
+
* 机器所在VPC
|
|
10432
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10433
|
+
*/
|
|
10434
|
+
VpcId: string;
|
|
10435
|
+
/**
|
|
10436
|
+
* 机器运行状态 Pending Running Stopped Rebooting Starting Stopping Abnormal Unknown
|
|
10437
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10438
|
+
*/
|
|
10439
|
+
InstanceStatus: string;
|
|
10440
|
+
/**
|
|
10441
|
+
* 机器可用状态(表示机器上的Agent在线)
|
|
10442
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10443
|
+
*/
|
|
10444
|
+
InstanceAvailableStatus: string;
|
|
10445
|
+
/**
|
|
10446
|
+
* 应用ID
|
|
10447
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10448
|
+
*/
|
|
10449
|
+
ApplicationId: string;
|
|
10450
|
+
/**
|
|
10451
|
+
* 应用名称
|
|
10452
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10453
|
+
*/
|
|
10454
|
+
ApplicationName: string;
|
|
10455
|
+
/**
|
|
10456
|
+
* 应用类型
|
|
10457
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10458
|
+
*/
|
|
10459
|
+
ApplicationType: string;
|
|
10460
|
+
/**
|
|
10461
|
+
* 集群ID
|
|
10462
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10463
|
+
*/
|
|
10464
|
+
ClusterId: string;
|
|
10465
|
+
/**
|
|
10466
|
+
* 集群名称
|
|
10467
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10468
|
+
*/
|
|
10469
|
+
ClusterName: string;
|
|
10470
|
+
/**
|
|
10471
|
+
* 集群类型
|
|
10472
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10473
|
+
*/
|
|
10474
|
+
ClusterType: string;
|
|
10475
|
+
/**
|
|
10476
|
+
* 命名空间ID
|
|
10477
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10478
|
+
*/
|
|
10479
|
+
NamespaceId: string;
|
|
10480
|
+
/**
|
|
10481
|
+
* 命名空间名称
|
|
10482
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10483
|
+
*/
|
|
10484
|
+
NamespaceName: string;
|
|
10485
|
+
/**
|
|
10486
|
+
* 机器所在部署组ID
|
|
10487
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10488
|
+
*/
|
|
10489
|
+
GroupId: string;
|
|
10490
|
+
/**
|
|
10491
|
+
* 部署组名称
|
|
10492
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10493
|
+
*/
|
|
10494
|
+
GroupName: string;
|
|
10495
|
+
}
|
|
10360
10496
|
/**
|
|
10361
10497
|
* DescribeInvocationMetricDataCurve返回参数结构体
|
|
10362
10498
|
*/
|
|
@@ -10899,6 +11035,19 @@ export interface ApiRateLimitRule {
|
|
|
10899
11035
|
*/
|
|
10900
11036
|
UpdatedTime: string;
|
|
10901
11037
|
}
|
|
11038
|
+
/**
|
|
11039
|
+
* 用于请求参数中的条件过滤字段
|
|
11040
|
+
*/
|
|
11041
|
+
export interface Filter {
|
|
11042
|
+
/**
|
|
11043
|
+
* 过滤条件名
|
|
11044
|
+
*/
|
|
11045
|
+
Name: string;
|
|
11046
|
+
/**
|
|
11047
|
+
* 过滤条件匹配值,几个条件间是或关系
|
|
11048
|
+
*/
|
|
11049
|
+
Values: Array<string>;
|
|
11050
|
+
}
|
|
10902
11051
|
/**
|
|
10903
11052
|
* DescribeInvocationMetricDataPoint返回参数结构体
|
|
10904
11053
|
*/
|
|
@@ -388,6 +388,16 @@ it("cls.v20201016.DescribeLogHistogram", async function () {
|
|
|
388
388
|
}
|
|
389
389
|
})
|
|
390
390
|
|
|
391
|
+
it("cls.v20201016.SearchLog", async function () {
|
|
392
|
+
try {
|
|
393
|
+
const data = await client.SearchLog({})
|
|
394
|
+
expect(data).to.be.ok
|
|
395
|
+
} catch(error) {
|
|
396
|
+
expect(error.requestId).to.be.ok
|
|
397
|
+
expect(error.code).to.be.ok
|
|
398
|
+
}
|
|
399
|
+
})
|
|
400
|
+
|
|
391
401
|
it("cls.v20201016.ModifyAlarmNotice", async function () {
|
|
392
402
|
try {
|
|
393
403
|
const data = await client.ModifyAlarmNotice({})
|
|
@@ -398,9 +408,9 @@ it("cls.v20201016.ModifyAlarmNotice", async function () {
|
|
|
398
408
|
}
|
|
399
409
|
})
|
|
400
410
|
|
|
401
|
-
it("cls.v20201016.
|
|
411
|
+
it("cls.v20201016.OpenKafkaConsumer", async function () {
|
|
402
412
|
try {
|
|
403
|
-
const data = await client.
|
|
413
|
+
const data = await client.OpenKafkaConsumer({})
|
|
404
414
|
expect(data).to.be.ok
|
|
405
415
|
} catch(error) {
|
|
406
416
|
expect(error.requestId).to.be.ok
|
|
@@ -528,6 +538,16 @@ it("cls.v20201016.DescribeConsumer", async function () {
|
|
|
528
538
|
}
|
|
529
539
|
})
|
|
530
540
|
|
|
541
|
+
it("cls.v20201016.SplitPartition", async function () {
|
|
542
|
+
try {
|
|
543
|
+
const data = await client.SplitPartition({})
|
|
544
|
+
expect(data).to.be.ok
|
|
545
|
+
} catch(error) {
|
|
546
|
+
expect(error.requestId).to.be.ok
|
|
547
|
+
expect(error.code).to.be.ok
|
|
548
|
+
}
|
|
549
|
+
})
|
|
550
|
+
|
|
531
551
|
it("cls.v20201016.DescribeConfigs", async function () {
|
|
532
552
|
try {
|
|
533
553
|
const data = await client.DescribeConfigs({})
|
|
@@ -618,9 +638,9 @@ it("cls.v20201016.CreateExport", async function () {
|
|
|
618
638
|
}
|
|
619
639
|
})
|
|
620
640
|
|
|
621
|
-
it("cls.v20201016.
|
|
641
|
+
it("cls.v20201016.CloseKafkaConsumer", async function () {
|
|
622
642
|
try {
|
|
623
|
-
const data = await client.
|
|
643
|
+
const data = await client.CloseKafkaConsumer({})
|
|
624
644
|
expect(data).to.be.ok
|
|
625
645
|
} catch(error) {
|
|
626
646
|
expect(error.requestId).to.be.ok
|
|
@@ -118,6 +118,16 @@ it("ssa.v20180608.DescribeSocCspmCompliance", async function () {
|
|
|
118
118
|
}
|
|
119
119
|
})
|
|
120
120
|
|
|
121
|
+
it("ssa.v20180608.DescribeMappingResults", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.DescribeMappingResults({})
|
|
124
|
+
expect(data).to.be.ok
|
|
125
|
+
} catch(error) {
|
|
126
|
+
expect(error.requestId).to.be.ok
|
|
127
|
+
expect(error.code).to.be.ok
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
|
|
121
131
|
it("ssa.v20180608.DescribeVulList", async function () {
|
|
122
132
|
try {
|
|
123
133
|
const data = await client.DescribeVulList({})
|
|
@@ -1568,6 +1568,16 @@ it("tsf.v20180326.DeleteUnitNamespaces", async function () {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
})
|
|
1570
1570
|
|
|
1571
|
+
it("tsf.v20180326.DescribeInstances", async function () {
|
|
1572
|
+
try {
|
|
1573
|
+
const data = await client.DescribeInstances({})
|
|
1574
|
+
expect(data).to.be.ok
|
|
1575
|
+
} catch(error) {
|
|
1576
|
+
expect(error.requestId).to.be.ok
|
|
1577
|
+
expect(error.code).to.be.ok
|
|
1578
|
+
}
|
|
1579
|
+
})
|
|
1580
|
+
|
|
1571
1581
|
it("tsf.v20180326.DraftApiGroup", async function () {
|
|
1572
1582
|
try {
|
|
1573
1583
|
const data = await client.DraftApiGroup({})
|