tencentcloud-sdk-nodejs 4.0.505 → 4.0.507
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 +430 -0
- package/README.md +17 -29
- package/SERVICE_CHANGELOG.md +548 -45
- package/examples/cvm_role.js +26 -0
- package/package.json +1 -1
- package/products.md +23 -23
- package/src/common/abstract_client.ts +27 -19
- package/src/common/cvm_role_credential.ts +62 -0
- package/src/common/http/fetch.ts +2 -2
- package/src/common/interface.ts +8 -1
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_client.ts +14 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +121 -6
- package/src/services/billing/v20180709/billing_models.ts +4 -6
- package/src/services/cam/v20190116/cam_client.ts +1 -1
- package/src/services/cam/v20190116/cam_models.ts +3 -3
- package/src/services/cdb/v20170320/cdb_client.ts +24 -0
- package/src/services/cdb/v20170320/cdb_models.ts +151 -0
- package/src/services/cdwch/v20200915/cdwch_client.ts +48 -19
- package/src/services/cdwch/v20200915/cdwch_models.ts +614 -202
- package/src/services/cfs/v20190719/cfs_models.ts +12 -0
- package/src/services/ckafka/v20190819/ckafka_client.ts +2 -0
- package/src/services/ckafka/v20190819/ckafka_models.ts +73 -0
- package/src/services/cvm/v20170312/cvm_models.ts +7 -2
- package/src/services/essbasic/v20210526/essbasic_client.ts +1 -1
- package/src/services/irp/v20220805/irp_models.ts +5 -5
- package/src/services/lighthouse/v20200324/lighthouse_client.ts +105 -23
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +408 -140
- package/src/services/monitor/v20180724/monitor_client.ts +14 -1
- package/src/services/monitor/v20180724/monitor_models.ts +75 -4
- package/src/services/ssl/v20191205/ssl_client.ts +1 -0
- package/src/services/ssl/v20191205/ssl_models.ts +52 -0
- package/src/services/teo/v20220901/teo_client.ts +0 -12
- package/src/services/teo/v20220901/teo_models.ts +0 -32
- package/src/services/thpc/v20220401/thpc_client.ts +42 -6
- package/src/services/thpc/v20220401/thpc_models.ts +75 -5
- package/src/services/tione/v20211111/tione_models.ts +24 -2
- package/src/services/trtc/v20190722/trtc_models.ts +4 -4
- package/src/services/vod/v20180717/vod_client.ts +81 -28
- package/src/services/vod/v20180717/vod_models.ts +312 -19
- package/src/services/vpc/v20170312/vpc_client.ts +1 -1
- package/src/services/vpc/v20170312/vpc_models.ts +14 -8
- package/src/services/waf/v20180125/waf_models.ts +67 -1
- package/tencentcloud/common/abstract_client.d.ts +3 -2
- package/tencentcloud/common/abstract_client.js +20 -12
- package/tencentcloud/common/cvm_role_credential.d.ts +17 -0
- package/tencentcloud/common/cvm_role_credential.js +47 -0
- package/tencentcloud/common/http/fetch.d.ts +2 -2
- package/tencentcloud/common/interface.d.ts +7 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +5 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +6 -0
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +101 -6
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +4 -6
- package/tencentcloud/services/cam/v20190116/cam_client.d.ts +1 -1
- package/tencentcloud/services/cam/v20190116/cam_client.js +1 -1
- package/tencentcloud/services/cam/v20190116/cam_models.d.ts +3 -3
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +9 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +12 -0
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +125 -0
- package/tencentcloud/services/cdwch/v20200915/cdwch_client.d.ts +11 -3
- package/tencentcloud/services/cdwch/v20200915/cdwch_client.js +15 -3
- package/tencentcloud/services/cdwch/v20200915/cdwch_models.d.ts +484 -138
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +10 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +62 -0
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +6 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
- package/tencentcloud/services/irp/v20220805/irp_models.d.ts +5 -5
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.d.ts +39 -7
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.js +51 -7
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +361 -128
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +5 -1
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +6 -0
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +65 -4
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +44 -0
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +1 -5
- package/tencentcloud/services/teo/v20220901/teo_client.js +0 -6
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +0 -28
- package/tencentcloud/services/thpc/v20220401/thpc_client.d.ts +15 -3
- package/tencentcloud/services/thpc/v20220401/thpc_client.js +21 -3
- package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +67 -5
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +20 -2
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +4 -4
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +38 -20
- package/tencentcloud/services/vod/v20180717/vod_client.js +47 -21
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +273 -18
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +11 -6
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +57 -1
- package/test/antiddos.v20200309.test.js +10 -0
- package/test/cdb.v20170320.test.js +20 -0
- package/test/cdwch.v20200915.test.js +22 -2
- package/test/lighthouse.v20200324.test.js +62 -2
- package/test/monitor.v20180724.test.js +10 -0
- package/test/teo.v20220901.test.js +0 -10
- package/test/thpc.v20220401.test.js +32 -2
- package/test/vod.v20180717.test.js +44 -4
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
CreateExporterIntegrationRequest,
|
|
62
62
|
DescribeAlarmEventsResponse,
|
|
63
63
|
DescribeProductEventListDimensions,
|
|
64
|
+
UpdateExporterIntegrationResponse,
|
|
64
65
|
DescribePolicyGroupInfoResponse,
|
|
65
66
|
Operator,
|
|
66
67
|
ModifyAlarmPolicyNoticeRequest,
|
|
@@ -179,7 +180,7 @@ import {
|
|
|
179
180
|
UpgradeGrafanaInstanceRequest,
|
|
180
181
|
DescribeAlarmNoticeCallbacksRequest,
|
|
181
182
|
DescribeAlarmNoticeCallbacksResponse,
|
|
182
|
-
|
|
183
|
+
DescribePrometheusInstanceUsageRequest,
|
|
183
184
|
ModifyAlarmPolicyConditionRequest,
|
|
184
185
|
DeleteSSOAccountRequest,
|
|
185
186
|
PrometheusScrapeJob,
|
|
@@ -192,6 +193,7 @@ import {
|
|
|
192
193
|
CreateGrafanaInstanceRequest,
|
|
193
194
|
UpdateAlertRuleStateResponse,
|
|
194
195
|
BindingPolicyObjectDimension,
|
|
196
|
+
DescribePrometheusInstanceUsageResponse,
|
|
195
197
|
UnbindPrometheusManagedGrafanaResponse,
|
|
196
198
|
DescribeBasicAlarmListAlarms,
|
|
197
199
|
DescribeGrafanaChannelsResponse,
|
|
@@ -307,6 +309,7 @@ import {
|
|
|
307
309
|
DescribeSSOAccountRequest,
|
|
308
310
|
Tag,
|
|
309
311
|
DescribeAlarmNoticeRequest,
|
|
312
|
+
PrometheusInstanceTenantUsage,
|
|
310
313
|
UninstallGrafanaDashboardRequest,
|
|
311
314
|
GrafanaNotificationChannel,
|
|
312
315
|
CreatePrometheusAgentRequest,
|
|
@@ -400,6 +403,16 @@ export class Client extends AbstractClient {
|
|
|
400
403
|
return this.request("UpdateAlertRule", req, cb)
|
|
401
404
|
}
|
|
402
405
|
|
|
406
|
+
/**
|
|
407
|
+
* 查询Prometheus按量实例用量
|
|
408
|
+
*/
|
|
409
|
+
async DescribePrometheusInstanceUsage(
|
|
410
|
+
req: DescribePrometheusInstanceUsageRequest,
|
|
411
|
+
cb?: (error: string, rep: DescribePrometheusInstanceUsageResponse) => void
|
|
412
|
+
): Promise<DescribePrometheusInstanceUsageResponse> {
|
|
413
|
+
return this.request("DescribePrometheusInstanceUsage", req, cb)
|
|
414
|
+
}
|
|
415
|
+
|
|
403
416
|
/**
|
|
404
417
|
* 修改告警接收人
|
|
405
418
|
*/
|
|
@@ -1060,6 +1060,16 @@ export interface DescribeProductEventListDimensions {
|
|
|
1060
1060
|
Value: string
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
+
/**
|
|
1064
|
+
* UpdateExporterIntegration返回参数结构体
|
|
1065
|
+
*/
|
|
1066
|
+
export interface UpdateExporterIntegrationResponse {
|
|
1067
|
+
/**
|
|
1068
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1069
|
+
*/
|
|
1070
|
+
RequestId?: string
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1063
1073
|
/**
|
|
1064
1074
|
* DescribePolicyGroupInfo返回参数结构体
|
|
1065
1075
|
*/
|
|
@@ -4192,13 +4202,23 @@ export interface DescribeAlarmNoticeCallbacksResponse {
|
|
|
4192
4202
|
}
|
|
4193
4203
|
|
|
4194
4204
|
/**
|
|
4195
|
-
*
|
|
4205
|
+
* DescribePrometheusInstanceUsage请求参数结构体
|
|
4196
4206
|
*/
|
|
4197
|
-
export interface
|
|
4207
|
+
export interface DescribePrometheusInstanceUsageRequest {
|
|
4198
4208
|
/**
|
|
4199
|
-
*
|
|
4209
|
+
* 按照一个或者多个实例ID查询。实例ID形如:prom-xxxxxxxx。请求的实例的上限为100。
|
|
4200
4210
|
*/
|
|
4201
|
-
|
|
4211
|
+
InstanceIds: Array<string>
|
|
4212
|
+
|
|
4213
|
+
/**
|
|
4214
|
+
* 开始时间
|
|
4215
|
+
*/
|
|
4216
|
+
StartCalcDate: string
|
|
4217
|
+
|
|
4218
|
+
/**
|
|
4219
|
+
* 结束时间
|
|
4220
|
+
*/
|
|
4221
|
+
EndCalcDate: string
|
|
4202
4222
|
}
|
|
4203
4223
|
|
|
4204
4224
|
/**
|
|
@@ -4455,6 +4475,22 @@ export interface BindingPolicyObjectDimension {
|
|
|
4455
4475
|
EventDimensions?: string
|
|
4456
4476
|
}
|
|
4457
4477
|
|
|
4478
|
+
/**
|
|
4479
|
+
* DescribePrometheusInstanceUsage返回参数结构体
|
|
4480
|
+
*/
|
|
4481
|
+
export interface DescribePrometheusInstanceUsageResponse {
|
|
4482
|
+
/**
|
|
4483
|
+
* 用量列表
|
|
4484
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4485
|
+
*/
|
|
4486
|
+
UsageSet: Array<PrometheusInstanceTenantUsage>
|
|
4487
|
+
|
|
4488
|
+
/**
|
|
4489
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4490
|
+
*/
|
|
4491
|
+
RequestId?: string
|
|
4492
|
+
}
|
|
4493
|
+
|
|
4458
4494
|
/**
|
|
4459
4495
|
* UnbindPrometheusManagedGrafana返回参数结构体
|
|
4460
4496
|
*/
|
|
@@ -8049,6 +8085,41 @@ export interface DescribeAlarmNoticeRequest {
|
|
|
8049
8085
|
NoticeId: string
|
|
8050
8086
|
}
|
|
8051
8087
|
|
|
8088
|
+
/**
|
|
8089
|
+
* Prometheus用量信息
|
|
8090
|
+
*/
|
|
8091
|
+
export interface PrometheusInstanceTenantUsage {
|
|
8092
|
+
/**
|
|
8093
|
+
* 实例ID
|
|
8094
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8095
|
+
*/
|
|
8096
|
+
InstanceId: string
|
|
8097
|
+
|
|
8098
|
+
/**
|
|
8099
|
+
* 计费周期
|
|
8100
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8101
|
+
*/
|
|
8102
|
+
CalcDate: string
|
|
8103
|
+
|
|
8104
|
+
/**
|
|
8105
|
+
* 总用量
|
|
8106
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8107
|
+
*/
|
|
8108
|
+
Total: number
|
|
8109
|
+
|
|
8110
|
+
/**
|
|
8111
|
+
* 基础指标用量
|
|
8112
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8113
|
+
*/
|
|
8114
|
+
Basic: number
|
|
8115
|
+
|
|
8116
|
+
/**
|
|
8117
|
+
* 付费指标用量
|
|
8118
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8119
|
+
*/
|
|
8120
|
+
Fee: number
|
|
8121
|
+
}
|
|
8122
|
+
|
|
8052
8123
|
/**
|
|
8053
8124
|
* UninstallGrafanaDashboard请求参数结构体
|
|
8054
8125
|
*/
|
|
@@ -593,6 +593,30 @@ export interface Certificates {
|
|
|
593
593
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
594
594
|
*/
|
|
595
595
|
EncryptAlgorithm: string
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* 上传CA证书的加密算法
|
|
599
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
600
|
+
*/
|
|
601
|
+
CAEncryptAlgorithms: Array<string>
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* 上传CA证书的过期时间
|
|
605
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
606
|
+
*/
|
|
607
|
+
CAEndTimes: Array<string>
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* 上传CA证书的通用名称
|
|
611
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
612
|
+
*/
|
|
613
|
+
CACommonNames: Array<string>
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* 证书预审核信息
|
|
617
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
618
|
+
*/
|
|
619
|
+
PreAuditInfo: PreAuditInfo
|
|
596
620
|
}
|
|
597
621
|
|
|
598
622
|
/**
|
|
@@ -1146,6 +1170,11 @@ export interface ApplyCertificateRequest {
|
|
|
1146
1170
|
* 权益包ID,用于免费证书扩容包使用
|
|
1147
1171
|
*/
|
|
1148
1172
|
PackageId?: string
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* 签发后是否删除自动域名验证记录, 默认为否;仅域名为DNS_AUTO验证类型支持传参
|
|
1176
|
+
*/
|
|
1177
|
+
DeleteDnsAutoRecord?: boolean
|
|
1149
1178
|
}
|
|
1150
1179
|
|
|
1151
1180
|
/**
|
|
@@ -2517,6 +2546,29 @@ export interface RevokeCertificateRequest {
|
|
|
2517
2546
|
Reason?: string
|
|
2518
2547
|
}
|
|
2519
2548
|
|
|
2549
|
+
/**
|
|
2550
|
+
* 预审核信息列表
|
|
2551
|
+
*/
|
|
2552
|
+
export interface PreAuditInfo {
|
|
2553
|
+
/**
|
|
2554
|
+
* 证书总年限
|
|
2555
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2556
|
+
*/
|
|
2557
|
+
TotalPeriod: number
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* 证书当前年限
|
|
2561
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2562
|
+
*/
|
|
2563
|
+
NowPeriod: number
|
|
2564
|
+
|
|
2565
|
+
/**
|
|
2566
|
+
* 证书预审核管理人ID
|
|
2567
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2568
|
+
*/
|
|
2569
|
+
ManagerId: string
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2520
2572
|
/**
|
|
2521
2573
|
* 获取证书列表(DescribeCertificate)返回参数键为 SubmittedData 的内容。
|
|
2522
2574
|
*/
|
|
@@ -20,7 +20,6 @@ import { ClientConfig } from "../../../common/interface"
|
|
|
20
20
|
import {
|
|
21
21
|
Compression,
|
|
22
22
|
DescribeOriginGroupResponse,
|
|
23
|
-
ModifyLoadBalancingStatusResponse,
|
|
24
23
|
DescribeBotDataRequest,
|
|
25
24
|
SpeedTestingInfo,
|
|
26
25
|
DescribeSingleL7AnalysisDataRequest,
|
|
@@ -158,7 +157,6 @@ import {
|
|
|
158
157
|
DescribeDnsDataResponse,
|
|
159
158
|
Zone,
|
|
160
159
|
DescribeDDoSAttackSourceEventRequest,
|
|
161
|
-
ModifyLoadBalancingStatusRequest,
|
|
162
160
|
DDoSAttackEvent,
|
|
163
161
|
DropPageDetail,
|
|
164
162
|
SwitchLogTopicTaskResponse,
|
|
@@ -665,16 +663,6 @@ export class Client extends AbstractClient {
|
|
|
665
663
|
return this.request("DeleteApplicationProxyRule", req, cb)
|
|
666
664
|
}
|
|
667
665
|
|
|
668
|
-
/**
|
|
669
|
-
* 修改负载均衡状态
|
|
670
|
-
*/
|
|
671
|
-
async ModifyLoadBalancingStatus(
|
|
672
|
-
req: ModifyLoadBalancingStatusRequest,
|
|
673
|
-
cb?: (error: string, rep: ModifyLoadBalancingStatusResponse) => void
|
|
674
|
-
): Promise<ModifyLoadBalancingStatusResponse> {
|
|
675
|
-
return this.request("ModifyLoadBalancingStatus", req, cb)
|
|
676
|
-
}
|
|
677
|
-
|
|
678
666
|
/**
|
|
679
667
|
* 本接口(DescribeWebProtectionData)用于查询CC防护时序数据。
|
|
680
668
|
*/
|
|
@@ -55,16 +55,6 @@ export interface DescribeOriginGroupResponse {
|
|
|
55
55
|
RequestId?: string
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
/**
|
|
59
|
-
* ModifyLoadBalancingStatus返回参数结构体
|
|
60
|
-
*/
|
|
61
|
-
export interface ModifyLoadBalancingStatusResponse {
|
|
62
|
-
/**
|
|
63
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
64
|
-
*/
|
|
65
|
-
RequestId?: string
|
|
66
|
-
}
|
|
67
|
-
|
|
68
58
|
/**
|
|
69
59
|
* DescribeBotData请求参数结构体
|
|
70
60
|
*/
|
|
@@ -4299,28 +4289,6 @@ export interface DescribeDDoSAttackSourceEventRequest {
|
|
|
4299
4289
|
Area?: string
|
|
4300
4290
|
}
|
|
4301
4291
|
|
|
4302
|
-
/**
|
|
4303
|
-
* ModifyLoadBalancingStatus请求参数结构体
|
|
4304
|
-
*/
|
|
4305
|
-
export interface ModifyLoadBalancingStatusRequest {
|
|
4306
|
-
/**
|
|
4307
|
-
* 站点ID。
|
|
4308
|
-
*/
|
|
4309
|
-
ZoneId: string
|
|
4310
|
-
|
|
4311
|
-
/**
|
|
4312
|
-
* 负载均衡ID。
|
|
4313
|
-
*/
|
|
4314
|
-
LoadBalancingId: string
|
|
4315
|
-
|
|
4316
|
-
/**
|
|
4317
|
-
* 负载均衡状态,取值有:
|
|
4318
|
-
<li>online:启用;</li>
|
|
4319
|
-
<li>offline:停用。</li>
|
|
4320
|
-
*/
|
|
4321
|
-
Status: string
|
|
4322
|
-
}
|
|
4323
|
-
|
|
4324
4292
|
/**
|
|
4325
4293
|
* DDoS攻击事件对象
|
|
4326
4294
|
*/
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
SetAutoScalingConfigurationRequest,
|
|
24
24
|
LoginSettings,
|
|
25
25
|
DeleteNodesResponse,
|
|
26
|
+
AddClusterStorageOptionResponse,
|
|
26
27
|
DeleteClusterResponse,
|
|
27
28
|
ExpansionNodeConfig,
|
|
28
29
|
NodeActivity,
|
|
@@ -33,6 +34,7 @@ import {
|
|
|
33
34
|
CreateClusterResponse,
|
|
34
35
|
SetAutoScalingConfigurationResponse,
|
|
35
36
|
CreateClusterRequest,
|
|
37
|
+
DescribeClusterStorageOptionResponse,
|
|
36
38
|
Tag,
|
|
37
39
|
LoginNode,
|
|
38
40
|
BindAutoScalingGroupResponse,
|
|
@@ -44,14 +46,18 @@ import {
|
|
|
44
46
|
Placement,
|
|
45
47
|
DescribeClusterActivitiesRequest,
|
|
46
48
|
AddNodesRequest,
|
|
49
|
+
DeleteClusterStorageOptionRequest,
|
|
50
|
+
AddClusterStorageOptionRequest,
|
|
47
51
|
BindAutoScalingGroupRequest,
|
|
48
52
|
VirtualPrivateCloud,
|
|
49
53
|
InstanceChargePrepaid,
|
|
54
|
+
DescribeClusterStorageOptionRequest,
|
|
50
55
|
StorageOption,
|
|
51
56
|
InternetAccessible,
|
|
52
57
|
ComputeNode,
|
|
53
58
|
DeleteNodesRequest,
|
|
54
59
|
DescribeClustersResponse,
|
|
60
|
+
DeleteClusterStorageOptionResponse,
|
|
55
61
|
GooseFSOption,
|
|
56
62
|
DescribeClusterActivitiesResponse,
|
|
57
63
|
DataDisk,
|
|
@@ -67,6 +73,16 @@ export class Client extends AbstractClient {
|
|
|
67
73
|
super("thpc.tencentcloudapi.com", "2022-04-01", clientConfig)
|
|
68
74
|
}
|
|
69
75
|
|
|
76
|
+
/**
|
|
77
|
+
* 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
|
|
78
|
+
*/
|
|
79
|
+
async DescribeClusterStorageOption(
|
|
80
|
+
req: DescribeClusterStorageOptionRequest,
|
|
81
|
+
cb?: (error: string, rep: DescribeClusterStorageOptionResponse) => void
|
|
82
|
+
): Promise<DescribeClusterStorageOptionResponse> {
|
|
83
|
+
return this.request("DescribeClusterStorageOption", req, cb)
|
|
84
|
+
}
|
|
85
|
+
|
|
70
86
|
/**
|
|
71
87
|
* 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
|
|
72
88
|
*/
|
|
@@ -97,6 +113,16 @@ export class Client extends AbstractClient {
|
|
|
97
113
|
return this.request("CreateCluster", req, cb)
|
|
98
114
|
}
|
|
99
115
|
|
|
116
|
+
/**
|
|
117
|
+
* 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
|
|
118
|
+
*/
|
|
119
|
+
async DeleteClusterStorageOption(
|
|
120
|
+
req: DeleteClusterStorageOptionRequest,
|
|
121
|
+
cb?: (error: string, rep: DeleteClusterStorageOptionResponse) => void
|
|
122
|
+
): Promise<DeleteClusterStorageOptionResponse> {
|
|
123
|
+
return this.request("DeleteClusterStorageOption", req, cb)
|
|
124
|
+
}
|
|
125
|
+
|
|
100
126
|
/**
|
|
101
127
|
* 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
|
102
128
|
*/
|
|
@@ -128,13 +154,13 @@ export class Client extends AbstractClient {
|
|
|
128
154
|
}
|
|
129
155
|
|
|
130
156
|
/**
|
|
131
|
-
* 本接口(
|
|
157
|
+
* 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
|
|
132
158
|
*/
|
|
133
|
-
async
|
|
134
|
-
req:
|
|
135
|
-
cb?: (error: string, rep:
|
|
136
|
-
): Promise<
|
|
137
|
-
return this.request("
|
|
159
|
+
async AddClusterStorageOption(
|
|
160
|
+
req: AddClusterStorageOptionRequest,
|
|
161
|
+
cb?: (error: string, rep: AddClusterStorageOptionResponse) => void
|
|
162
|
+
): Promise<AddClusterStorageOptionResponse> {
|
|
163
|
+
return this.request("AddClusterStorageOption", req, cb)
|
|
138
164
|
}
|
|
139
165
|
|
|
140
166
|
/**
|
|
@@ -146,4 +172,14 @@ export class Client extends AbstractClient {
|
|
|
146
172
|
): Promise<DescribeClusterActivitiesResponse> {
|
|
147
173
|
return this.request("DescribeClusterActivities", req, cb)
|
|
148
174
|
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* 本接口(DeleteCluster)用于删除一个指定的集群。
|
|
178
|
+
*/
|
|
179
|
+
async DeleteCluster(
|
|
180
|
+
req: DeleteClusterRequest,
|
|
181
|
+
cb?: (error: string, rep: DeleteClusterResponse) => void
|
|
182
|
+
): Promise<DeleteClusterResponse> {
|
|
183
|
+
return this.request("DeleteCluster", req, cb)
|
|
184
|
+
}
|
|
149
185
|
}
|
|
@@ -159,6 +159,16 @@ export interface DeleteNodesResponse {
|
|
|
159
159
|
RequestId?: string
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
/**
|
|
163
|
+
* AddClusterStorageOption返回参数结构体
|
|
164
|
+
*/
|
|
165
|
+
export interface AddClusterStorageOptionResponse {
|
|
166
|
+
/**
|
|
167
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
168
|
+
*/
|
|
169
|
+
RequestId?: string
|
|
170
|
+
}
|
|
171
|
+
|
|
162
172
|
/**
|
|
163
173
|
* DeleteCluster返回参数结构体
|
|
164
174
|
*/
|
|
@@ -362,12 +372,12 @@ export interface LoginNodeOverview {
|
|
|
362
372
|
*/
|
|
363
373
|
export interface CFSOption {
|
|
364
374
|
/**
|
|
365
|
-
*
|
|
375
|
+
* 文件系统本地挂载路径。
|
|
366
376
|
*/
|
|
367
377
|
LocalPath: string
|
|
368
378
|
|
|
369
379
|
/**
|
|
370
|
-
* 文件系统远程挂载ip
|
|
380
|
+
* 文件系统远程挂载ip及路径。
|
|
371
381
|
*/
|
|
372
382
|
RemotePath: string
|
|
373
383
|
|
|
@@ -516,6 +526,16 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
|
516
526
|
AutoScalingType?: string
|
|
517
527
|
}
|
|
518
528
|
|
|
529
|
+
/**
|
|
530
|
+
* DescribeClusterStorageOption返回参数结构体
|
|
531
|
+
*/
|
|
532
|
+
export interface DescribeClusterStorageOptionResponse {
|
|
533
|
+
/**
|
|
534
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
535
|
+
*/
|
|
536
|
+
RequestId?: string
|
|
537
|
+
}
|
|
538
|
+
|
|
519
539
|
/**
|
|
520
540
|
* 标签键值对。
|
|
521
541
|
*/
|
|
@@ -814,6 +834,36 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
|
814
834
|
DryRun?: boolean
|
|
815
835
|
}
|
|
816
836
|
|
|
837
|
+
/**
|
|
838
|
+
* DeleteClusterStorageOption请求参数结构体
|
|
839
|
+
*/
|
|
840
|
+
export interface DeleteClusterStorageOptionRequest {
|
|
841
|
+
/**
|
|
842
|
+
* 集群ID。
|
|
843
|
+
*/
|
|
844
|
+
ClusterId: string
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* 本地挂载路径。
|
|
848
|
+
*/
|
|
849
|
+
LocalPath: string
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* AddClusterStorageOption请求参数结构体
|
|
854
|
+
*/
|
|
855
|
+
export interface AddClusterStorageOptionRequest {
|
|
856
|
+
/**
|
|
857
|
+
* 集群ID。
|
|
858
|
+
*/
|
|
859
|
+
ClusterId: string
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* 集群存储选项。
|
|
863
|
+
*/
|
|
864
|
+
StorageOption: StorageOption
|
|
865
|
+
}
|
|
866
|
+
|
|
817
867
|
/**
|
|
818
868
|
* BindAutoScalingGroup请求参数结构体
|
|
819
869
|
*/
|
|
@@ -903,6 +953,16 @@ DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费
|
|
|
903
953
|
RenewFlag?: string
|
|
904
954
|
}
|
|
905
955
|
|
|
956
|
+
/**
|
|
957
|
+
* DescribeClusterStorageOption请求参数结构体
|
|
958
|
+
*/
|
|
959
|
+
export interface DescribeClusterStorageOptionRequest {
|
|
960
|
+
/**
|
|
961
|
+
* 集群ID。
|
|
962
|
+
*/
|
|
963
|
+
ClusterId: string
|
|
964
|
+
}
|
|
965
|
+
|
|
906
966
|
/**
|
|
907
967
|
* 描述集群文件系统选项
|
|
908
968
|
*/
|
|
@@ -1016,22 +1076,32 @@ export interface DescribeClustersResponse {
|
|
|
1016
1076
|
RequestId?: string
|
|
1017
1077
|
}
|
|
1018
1078
|
|
|
1079
|
+
/**
|
|
1080
|
+
* DeleteClusterStorageOption返回参数结构体
|
|
1081
|
+
*/
|
|
1082
|
+
export interface DeleteClusterStorageOptionResponse {
|
|
1083
|
+
/**
|
|
1084
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1085
|
+
*/
|
|
1086
|
+
RequestId?: string
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1019
1089
|
/**
|
|
1020
1090
|
* 描述GooseFS挂载信息
|
|
1021
1091
|
*/
|
|
1022
1092
|
export interface GooseFSOption {
|
|
1023
1093
|
/**
|
|
1024
|
-
*
|
|
1094
|
+
* 文件系统本地挂载路径。
|
|
1025
1095
|
*/
|
|
1026
1096
|
LocalPath: string
|
|
1027
1097
|
|
|
1028
1098
|
/**
|
|
1029
|
-
*
|
|
1099
|
+
* 文件系统远程挂载路径。
|
|
1030
1100
|
*/
|
|
1031
1101
|
RemotePath: string
|
|
1032
1102
|
|
|
1033
1103
|
/**
|
|
1034
|
-
* 文件系统master的ip
|
|
1104
|
+
* 文件系统master的ip和端口。
|
|
1035
1105
|
*/
|
|
1036
1106
|
Masters: Array<string>
|
|
1037
1107
|
}
|
|
@@ -173,7 +173,7 @@ HYBRID_PAID:
|
|
|
173
173
|
ServiceLimit?: ServiceLimit
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
176
|
+
* 回调地址,用于回调创建服务状态信息,回调格式&内容详情见:[TI-ONE 接口回调说明](https://cloud.tencent.com/document/product/851/84292)
|
|
177
177
|
*/
|
|
178
178
|
CallbackUrl?: string
|
|
179
179
|
}
|
|
@@ -1390,6 +1390,11 @@ export interface CreateBatchTaskRequest {
|
|
|
1390
1390
|
* 备注
|
|
1391
1391
|
*/
|
|
1392
1392
|
Remark?: string
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* 任务执行结果回调URL,仅支持http和https。回调格式&内容详见: [TI-ONE 接口回调说明](https://cloud.tencent.com/document/product/851/84292)
|
|
1396
|
+
*/
|
|
1397
|
+
CallbackUrl?: string
|
|
1393
1398
|
}
|
|
1394
1399
|
|
|
1395
1400
|
/**
|
|
@@ -3422,6 +3427,11 @@ export interface CreateTrainingTaskRequest {
|
|
|
3422
3427
|
* 数据来源,eg:DATASET、COS、CFS、HDFS
|
|
3423
3428
|
*/
|
|
3424
3429
|
DataSource?: string
|
|
3430
|
+
|
|
3431
|
+
/**
|
|
3432
|
+
* 回调地址,用于创建/启动/停止训练任务的异步回调。回调格式&内容详见:[[TI-ONE接口回调说明]](https://cloud.tencent.com/document/product/851/84292)
|
|
3433
|
+
*/
|
|
3434
|
+
CallbackUrl?: string
|
|
3425
3435
|
}
|
|
3426
3436
|
|
|
3427
3437
|
/**
|
|
@@ -4375,7 +4385,7 @@ export interface CreateModelServiceResponse {
|
|
|
4375
4385
|
* 生成的模型服务
|
|
4376
4386
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4377
4387
|
*/
|
|
4378
|
-
Service
|
|
4388
|
+
Service?: Service
|
|
4379
4389
|
|
|
4380
4390
|
/**
|
|
4381
4391
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -5124,6 +5134,12 @@ export interface TrainingTaskDetail {
|
|
|
5124
5134
|
* 任务状态,eg:STARTING启动中、RUNNING运行中、STOPPING停止中、STOPPED已停止、FAILED异常、SUCCEED已完成
|
|
5125
5135
|
*/
|
|
5126
5136
|
Status: string
|
|
5137
|
+
|
|
5138
|
+
/**
|
|
5139
|
+
* 回调地址
|
|
5140
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5141
|
+
*/
|
|
5142
|
+
CallbackUrl: string
|
|
5127
5143
|
}
|
|
5128
5144
|
|
|
5129
5145
|
/**
|
|
@@ -5542,6 +5558,12 @@ export interface TrainingTaskSetItem {
|
|
|
5542
5558
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5543
5559
|
*/
|
|
5544
5560
|
Tags: Array<Tag>
|
|
5561
|
+
|
|
5562
|
+
/**
|
|
5563
|
+
* 回调地址
|
|
5564
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5565
|
+
*/
|
|
5566
|
+
CallbackUrl: string
|
|
5545
5567
|
}
|
|
5546
5568
|
|
|
5547
5569
|
/**
|
|
@@ -890,17 +890,17 @@ export interface SdkAppIdNewTrtcTimeUsage {
|
|
|
890
890
|
*/
|
|
891
891
|
export interface EncodeParams {
|
|
892
892
|
/**
|
|
893
|
-
* 混流-输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz
|
|
893
|
+
* 混流-输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
894
894
|
*/
|
|
895
895
|
AudioSampleRate: number
|
|
896
896
|
|
|
897
897
|
/**
|
|
898
|
-
* 混流-输出流音频码率。取值范围[8,500],单位为kbps
|
|
898
|
+
* 混流-输出流音频码率。取值范围[8,500],单位为kbps。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
899
899
|
*/
|
|
900
900
|
AudioBitrate: number
|
|
901
901
|
|
|
902
902
|
/**
|
|
903
|
-
* 混流-输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2
|
|
903
|
+
* 混流-输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
904
904
|
*/
|
|
905
905
|
AudioChannels: number
|
|
906
906
|
|
|
@@ -947,7 +947,7 @@ export interface EncodeParams {
|
|
|
947
947
|
BackgroundImageId?: number
|
|
948
948
|
|
|
949
949
|
/**
|
|
950
|
-
* 混流-输出流音频编码类型,取值范围[0,1, 2],0为LC-AAC,1为HE-AAC,2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]
|
|
950
|
+
* 混流-输出流音频编码类型,取值范围[0,1, 2],0为LC-AAC,1为HE-AAC,2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
951
951
|
*/
|
|
952
952
|
AudioCodec?: number
|
|
953
953
|
|