tencentcloud-sdk-nodejs 4.0.569 → 4.0.570
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 +156 -0
- package/SERVICE_CHANGELOG.md +217 -170
- package/package.json +1 -1
- package/products.md +190 -190
- package/src/common/sdk_version.ts +1 -1
- package/src/services/bma/v20221115/bma_models.ts +5 -0
- package/src/services/cwp/v20180228/cwp_client.ts +26 -13
- package/src/services/cwp/v20180228/cwp_models.ts +193 -4
- package/src/services/ess/v20201111/ess_models.ts +3 -3
- package/src/services/mongodb/v20190725/mongodb_client.ts +1 -1
- package/src/services/mongodb/v20190725/mongodb_models.ts +7 -7
- package/src/services/ocr/v20181119/ocr_models.ts +11 -1
- package/src/services/ssl/v20191205/ssl_models.ts +3 -3
- package/src/services/thpc/index.ts +2 -0
- package/src/services/thpc/v20230321/index.ts +6 -0
- package/src/services/thpc/v20230321/thpc_client.ts +250 -0
- package/src/services/thpc/v20230321/thpc_models.ts +1558 -0
- package/src/services/trtc/v20190722/trtc_client.ts +3 -3
- package/src/services/tse/v20201207/tse_models.ts +30 -0
- package/src/services/tts/v20190823/tts_models.ts +4 -4
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/bma/v20221115/bma_models.d.ts +4 -0
- package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +9 -5
- package/tencentcloud/services/cwp/v20180228/cwp_client.js +12 -6
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +160 -4
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +3 -3
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +1 -1
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +1 -1
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +7 -7
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +10 -1
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +3 -3
- package/tencentcloud/services/thpc/index.d.ts +4 -0
- package/tencentcloud/services/thpc/index.js +2 -0
- package/tencentcloud/services/thpc/v20230321/index.d.ts +6 -0
- package/tencentcloud/services/thpc/v20230321/index.js +9 -0
- package/tencentcloud/services/thpc/v20230321/thpc_client.d.ts +77 -0
- package/tencentcloud/services/thpc/v20230321/thpc_client.js +128 -0
- package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +1314 -0
- package/tencentcloud/services/thpc/v20230321/thpc_models.js +18 -0
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +3 -3
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +3 -3
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +25 -0
- package/tencentcloud/services/tts/v20190823/tts_models.d.ts +4 -4
- package/test/cwp.v20180228.test.js +14 -4
- package/test/thpc.v20230321.test.js +171 -0
|
@@ -5080,6 +5080,16 @@ export interface UntrustMalwaresResponse {
|
|
|
5080
5080
|
RequestId?: string
|
|
5081
5081
|
}
|
|
5082
5082
|
|
|
5083
|
+
/**
|
|
5084
|
+
* 可用区信息
|
|
5085
|
+
*/
|
|
5086
|
+
export interface ZoneInfo {
|
|
5087
|
+
/**
|
|
5088
|
+
* 可用区名称
|
|
5089
|
+
*/
|
|
5090
|
+
ZoneName: string
|
|
5091
|
+
}
|
|
5092
|
+
|
|
5083
5093
|
/**
|
|
5084
5094
|
* DescribeExpertServiceList返回参数结构体
|
|
5085
5095
|
*/
|
|
@@ -7044,6 +7054,43 @@ export interface ModifyBaselineRuleResponse {
|
|
|
7044
7054
|
*/
|
|
7045
7055
|
export type DescribeIndexListRequest = null
|
|
7046
7056
|
|
|
7057
|
+
/**
|
|
7058
|
+
* DescribeRiskDnsEventList请求参数结构体
|
|
7059
|
+
*/
|
|
7060
|
+
export interface DescribeRiskDnsEventListRequest {
|
|
7061
|
+
/**
|
|
7062
|
+
* <li>IpOrName - String - 是否必填:否 - 主机Ip或别名筛选</li>
|
|
7063
|
+
<li>HostId - String - 是否必填:否 - 主机Id</li>
|
|
7064
|
+
<li>AgentId - String - 是否必填:否 - 客户端Id</li>
|
|
7065
|
+
<li>PolicyType - String - 是否必填:否 - 策略类型,0:系统策略1:用户自定义策略</li>
|
|
7066
|
+
<li>Domain - String - 是否必填:否 - 域名(先对域名做urlencode,再base64)</li>
|
|
7067
|
+
<li>HandleStatus - String - 是否必填:否 - 状态筛选0:待处理;2:信任;3:不信任</li>
|
|
7068
|
+
<li>BeginTime - String - 是否必填:否 - 最近访问开始时间</li>
|
|
7069
|
+
<li>EndTime - String - 是否必填:否 - 最近访问结束时间</li>
|
|
7070
|
+
*/
|
|
7071
|
+
Filters?: Array<Filter>
|
|
7072
|
+
|
|
7073
|
+
/**
|
|
7074
|
+
* 需要返回的数量,默认为10,最大值为100
|
|
7075
|
+
*/
|
|
7076
|
+
Limit?: number
|
|
7077
|
+
|
|
7078
|
+
/**
|
|
7079
|
+
* 偏移量,默认为0。
|
|
7080
|
+
*/
|
|
7081
|
+
Offset?: number
|
|
7082
|
+
|
|
7083
|
+
/**
|
|
7084
|
+
* 排序方式:根据请求次数排序:[asc:升序|desc:降序]
|
|
7085
|
+
*/
|
|
7086
|
+
Order?: string
|
|
7087
|
+
|
|
7088
|
+
/**
|
|
7089
|
+
* 排序字段:[AccessCount:请求次数|LastTime:最近请求时间]
|
|
7090
|
+
*/
|
|
7091
|
+
By?: string
|
|
7092
|
+
}
|
|
7093
|
+
|
|
7047
7094
|
/**
|
|
7048
7095
|
* 防护目录列表集
|
|
7049
7096
|
*/
|
|
@@ -9792,13 +9839,134 @@ export interface AssetDiskPartitionInfo {
|
|
|
9792
9839
|
}
|
|
9793
9840
|
|
|
9794
9841
|
/**
|
|
9795
|
-
*
|
|
9842
|
+
* 恶意请求事件
|
|
9796
9843
|
*/
|
|
9797
|
-
export interface
|
|
9844
|
+
export interface RiskDnsEvent {
|
|
9798
9845
|
/**
|
|
9799
|
-
*
|
|
9846
|
+
* 事件Id
|
|
9800
9847
|
*/
|
|
9801
|
-
|
|
9848
|
+
Id?: number
|
|
9849
|
+
|
|
9850
|
+
/**
|
|
9851
|
+
* 策略ID
|
|
9852
|
+
*/
|
|
9853
|
+
PolicyId?: number
|
|
9854
|
+
|
|
9855
|
+
/**
|
|
9856
|
+
* 命中策略类型[-1:未知|0系统|1:用户]
|
|
9857
|
+
*/
|
|
9858
|
+
PolicyType?: number
|
|
9859
|
+
|
|
9860
|
+
/**
|
|
9861
|
+
* 命中策略名称
|
|
9862
|
+
*/
|
|
9863
|
+
PolicyName?: string
|
|
9864
|
+
|
|
9865
|
+
/**
|
|
9866
|
+
* 保护级别[0:基础版|1:专业版|2:旗舰版]
|
|
9867
|
+
*/
|
|
9868
|
+
ProtectLevel?: number
|
|
9869
|
+
|
|
9870
|
+
/**
|
|
9871
|
+
* 主机ID
|
|
9872
|
+
*/
|
|
9873
|
+
HostId?: string
|
|
9874
|
+
|
|
9875
|
+
/**
|
|
9876
|
+
* 主机名称
|
|
9877
|
+
*/
|
|
9878
|
+
HostName?: string
|
|
9879
|
+
|
|
9880
|
+
/**
|
|
9881
|
+
* 主机IP
|
|
9882
|
+
*/
|
|
9883
|
+
HostIp?: string
|
|
9884
|
+
|
|
9885
|
+
/**
|
|
9886
|
+
* 外网IP
|
|
9887
|
+
*/
|
|
9888
|
+
WanIp?: string
|
|
9889
|
+
|
|
9890
|
+
/**
|
|
9891
|
+
* 客户端ID
|
|
9892
|
+
*/
|
|
9893
|
+
AgentId?: string
|
|
9894
|
+
|
|
9895
|
+
/**
|
|
9896
|
+
* 访问域名
|
|
9897
|
+
*/
|
|
9898
|
+
Domain?: string
|
|
9899
|
+
|
|
9900
|
+
/**
|
|
9901
|
+
* 标签特性
|
|
9902
|
+
*/
|
|
9903
|
+
Tags?: Array<string>
|
|
9904
|
+
|
|
9905
|
+
/**
|
|
9906
|
+
* 访问次数
|
|
9907
|
+
*/
|
|
9908
|
+
AccessCount?: number
|
|
9909
|
+
|
|
9910
|
+
/**
|
|
9911
|
+
* 威胁描述
|
|
9912
|
+
*/
|
|
9913
|
+
ThreatDesc?: string
|
|
9914
|
+
|
|
9915
|
+
/**
|
|
9916
|
+
* 修复方案
|
|
9917
|
+
*/
|
|
9918
|
+
SuggestSolution?: string
|
|
9919
|
+
|
|
9920
|
+
/**
|
|
9921
|
+
* 参考链接
|
|
9922
|
+
*/
|
|
9923
|
+
ReferenceLink?: string
|
|
9924
|
+
|
|
9925
|
+
/**
|
|
9926
|
+
* 处理状态;[0:待处理|2:已加白|3:非信任状态|4:已处理|5:已忽略]
|
|
9927
|
+
*/
|
|
9928
|
+
HandleStatus?: number
|
|
9929
|
+
|
|
9930
|
+
/**
|
|
9931
|
+
* 进程ID
|
|
9932
|
+
*/
|
|
9933
|
+
Pid?: number
|
|
9934
|
+
|
|
9935
|
+
/**
|
|
9936
|
+
* 进程名
|
|
9937
|
+
*/
|
|
9938
|
+
ProcessName?: string
|
|
9939
|
+
|
|
9940
|
+
/**
|
|
9941
|
+
* 进程MD5
|
|
9942
|
+
*/
|
|
9943
|
+
ProcessMd5?: string
|
|
9944
|
+
|
|
9945
|
+
/**
|
|
9946
|
+
* 命令行
|
|
9947
|
+
*/
|
|
9948
|
+
CmdLine?: string
|
|
9949
|
+
|
|
9950
|
+
/**
|
|
9951
|
+
* 首次访问时间
|
|
9952
|
+
*/
|
|
9953
|
+
FirstTime?: string
|
|
9954
|
+
|
|
9955
|
+
/**
|
|
9956
|
+
* 最近访问时间
|
|
9957
|
+
*/
|
|
9958
|
+
LastTime?: string
|
|
9959
|
+
|
|
9960
|
+
/**
|
|
9961
|
+
* 主机在线状态[OFFLINE:离线|ONLINE:在线|UNKNOWN:未知]
|
|
9962
|
+
*/
|
|
9963
|
+
HostStatus?: string
|
|
9964
|
+
|
|
9965
|
+
/**
|
|
9966
|
+
* 附加信息
|
|
9967
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
9968
|
+
*/
|
|
9969
|
+
MachineExtraInfo?: MachineExtraInfo
|
|
9802
9970
|
}
|
|
9803
9971
|
|
|
9804
9972
|
/**
|
|
@@ -15657,6 +15825,27 @@ export interface AssetProcessBaseInfo {
|
|
|
15657
15825
|
MachineExtraInfo?: MachineExtraInfo
|
|
15658
15826
|
}
|
|
15659
15827
|
|
|
15828
|
+
/**
|
|
15829
|
+
* DescribeRiskDnsEventList返回参数结构体
|
|
15830
|
+
*/
|
|
15831
|
+
export interface DescribeRiskDnsEventListResponse {
|
|
15832
|
+
/**
|
|
15833
|
+
* 恶意请求事件列表
|
|
15834
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15835
|
+
*/
|
|
15836
|
+
List: Array<RiskDnsEvent>
|
|
15837
|
+
|
|
15838
|
+
/**
|
|
15839
|
+
* 总数
|
|
15840
|
+
*/
|
|
15841
|
+
TotalCount: number
|
|
15842
|
+
|
|
15843
|
+
/**
|
|
15844
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
15845
|
+
*/
|
|
15846
|
+
RequestId?: string
|
|
15847
|
+
}
|
|
15848
|
+
|
|
15660
15849
|
/**
|
|
15661
15850
|
* DeleteBruteAttacks请求参数结构体
|
|
15662
15851
|
*/
|
|
@@ -108,9 +108,9 @@ export interface CreatePreparedPersonalEsignRequest {
|
|
|
108
108
|
* 身份证件类型:
|
|
109
109
|
ID_CARD 身份证
|
|
110
110
|
PASSPORT 护照
|
|
111
|
-
HONGKONG_AND_MACAO
|
|
112
|
-
FOREIGN_ID_CARD
|
|
113
|
-
HONGKONG_MACAO_AND_TAIWAN
|
|
111
|
+
HONGKONG_AND_MACAO 中国香港
|
|
112
|
+
FOREIGN_ID_CARD 境外身份
|
|
113
|
+
HONGKONG_MACAO_AND_TAIWAN 中国台湾
|
|
114
114
|
*/
|
|
115
115
|
IdCardType?: string
|
|
116
116
|
|
|
@@ -238,7 +238,7 @@ export class Client extends AbstractClient {
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
|
-
* 本接口 (InquirePriceModifyDBInstanceSpec)
|
|
241
|
+
* 本接口 (InquirePriceModifyDBInstanceSpec) 用于查询实例配置变更后的价格。
|
|
242
242
|
*/
|
|
243
243
|
async InquirePriceModifyDBInstanceSpec(
|
|
244
244
|
req: InquirePriceModifyDBInstanceSpecRequest,
|
|
@@ -306,7 +306,7 @@ export interface DescribeSlowLogsRequest {
|
|
|
306
306
|
Limit?: number
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
|
-
*
|
|
309
|
+
* 慢日志返回格式。默认返回原生慢日志格式,4.4及以上版本可设置为json。
|
|
310
310
|
*/
|
|
311
311
|
Format?: string
|
|
312
312
|
}
|
|
@@ -825,13 +825,13 @@ export interface DescribeSlowLogsResponse {
|
|
|
825
825
|
/**
|
|
826
826
|
* 慢日志总数
|
|
827
827
|
*/
|
|
828
|
-
Count
|
|
828
|
+
Count?: number
|
|
829
829
|
|
|
830
830
|
/**
|
|
831
831
|
* 慢日志详情
|
|
832
832
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
833
833
|
*/
|
|
834
|
-
SlowLogs
|
|
834
|
+
SlowLogs?: Array<string>
|
|
835
835
|
|
|
836
836
|
/**
|
|
837
837
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -844,7 +844,7 @@ export interface DescribeSlowLogsResponse {
|
|
|
844
844
|
*/
|
|
845
845
|
export interface InquirePriceModifyDBInstanceSpecRequest {
|
|
846
846
|
/**
|
|
847
|
-
* 实例ID,格式如:cmgo-
|
|
847
|
+
* 实例 ID,格式如:cmgo-p8vn****。与云数据库控制台页面中显示的实例ID相同。
|
|
848
848
|
*/
|
|
849
849
|
InstanceId: string
|
|
850
850
|
|
|
@@ -859,12 +859,12 @@ export interface InquirePriceModifyDBInstanceSpecRequest {
|
|
|
859
859
|
Volume: number
|
|
860
860
|
|
|
861
861
|
/**
|
|
862
|
-
*
|
|
862
|
+
* 实例节点数。默认为不变更节点数,暂不支持变更。
|
|
863
863
|
*/
|
|
864
864
|
NodeNum?: number
|
|
865
865
|
|
|
866
866
|
/**
|
|
867
|
-
*
|
|
867
|
+
* 实例分片数。默认为不变更分片数,暂不支持变更。
|
|
868
868
|
*/
|
|
869
869
|
ReplicateSetNum?: number
|
|
870
870
|
}
|
|
@@ -1688,7 +1688,7 @@ export interface InquirePriceModifyDBInstanceSpecResponse {
|
|
|
1688
1688
|
/**
|
|
1689
1689
|
* 价格。
|
|
1690
1690
|
*/
|
|
1691
|
-
Price
|
|
1691
|
+
Price?: DBInstancePrice
|
|
1692
1692
|
|
|
1693
1693
|
/**
|
|
1694
1694
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -3295,7 +3295,17 @@ export interface InvoiceGeneralOCRResponse {
|
|
|
3295
3295
|
/**
|
|
3296
3296
|
* 智慧表单上传文件信息
|
|
3297
3297
|
*/
|
|
3298
|
-
export
|
|
3298
|
+
export interface SmartFormFileUrl {
|
|
3299
|
+
/**
|
|
3300
|
+
* 文件url地址
|
|
3301
|
+
*/
|
|
3302
|
+
FileUrl: string
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* 文件的顺序,顺序从1开始
|
|
3306
|
+
*/
|
|
3307
|
+
FileOrderNumber: number
|
|
3308
|
+
}
|
|
3299
3309
|
|
|
3300
3310
|
/**
|
|
3301
3311
|
* VatInvoiceVerifyNew返回参数结构体
|
|
@@ -1621,17 +1621,17 @@ export interface CheckCertificateChainResponse {
|
|
|
1621
1621
|
/**
|
|
1622
1622
|
* true为通过检查,false为未通过检查。
|
|
1623
1623
|
*/
|
|
1624
|
-
IsValid
|
|
1624
|
+
IsValid?: boolean
|
|
1625
1625
|
|
|
1626
1626
|
/**
|
|
1627
1627
|
* true为可信CA,false为不可信CA。
|
|
1628
1628
|
*/
|
|
1629
|
-
IsTrustedCA
|
|
1629
|
+
IsTrustedCA?: boolean
|
|
1630
1630
|
|
|
1631
1631
|
/**
|
|
1632
1632
|
* 包含证书链中每一段证书的通用名称。
|
|
1633
1633
|
*/
|
|
1634
|
-
Chains
|
|
1634
|
+
Chains?: Array<string>
|
|
1635
1635
|
|
|
1636
1636
|
/**
|
|
1637
1637
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -0,0 +1,250 @@
|
|
|
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 {
|
|
21
|
+
DescribeAutoScalingConfigurationResponse,
|
|
22
|
+
DescribeClusterStorageOptionRequest,
|
|
23
|
+
ClusterOverview,
|
|
24
|
+
QueueOverview,
|
|
25
|
+
DescribeClustersRequest,
|
|
26
|
+
SetAutoScalingConfigurationRequest,
|
|
27
|
+
NodeOverview,
|
|
28
|
+
DescribeNodesRequest,
|
|
29
|
+
DeleteNodesResponse,
|
|
30
|
+
AddClusterStorageOptionResponse,
|
|
31
|
+
StorageOptionOverview,
|
|
32
|
+
DeleteClusterResponse,
|
|
33
|
+
ExpansionNodeConfig,
|
|
34
|
+
NodeActivity,
|
|
35
|
+
Placement,
|
|
36
|
+
AddQueueRequest,
|
|
37
|
+
LoginNodeOverview,
|
|
38
|
+
CFSOption,
|
|
39
|
+
ClusterActivity,
|
|
40
|
+
CreateClusterResponse,
|
|
41
|
+
DescribeQueuesRequest,
|
|
42
|
+
SetAutoScalingConfigurationResponse,
|
|
43
|
+
CreateClusterRequest,
|
|
44
|
+
AddQueueResponse,
|
|
45
|
+
DescribeClusterStorageOptionResponse,
|
|
46
|
+
DescribeQueuesResponse,
|
|
47
|
+
GooseFSOptionOverview,
|
|
48
|
+
QueueConfig,
|
|
49
|
+
InstanceChargePrepaid,
|
|
50
|
+
Tag,
|
|
51
|
+
LoginNode,
|
|
52
|
+
ManagerNodeOverview,
|
|
53
|
+
ManagerNode,
|
|
54
|
+
DeleteClusterRequest,
|
|
55
|
+
ComputeNodeOverview,
|
|
56
|
+
SystemDisk,
|
|
57
|
+
LoginSettings,
|
|
58
|
+
GooseFSOption,
|
|
59
|
+
DescribeClusterActivitiesRequest,
|
|
60
|
+
DeleteQueueRequest,
|
|
61
|
+
Filter,
|
|
62
|
+
AddNodesRequest,
|
|
63
|
+
CFSOptionOverview,
|
|
64
|
+
DeleteClusterStorageOptionRequest,
|
|
65
|
+
AddClusterStorageOptionRequest,
|
|
66
|
+
GooseFSxOption,
|
|
67
|
+
QueueConfigOverview,
|
|
68
|
+
VirtualPrivateCloud,
|
|
69
|
+
ExpansionNodeConfigOverview,
|
|
70
|
+
GooseFSxOptionOverview,
|
|
71
|
+
DescribeAutoScalingConfigurationRequest,
|
|
72
|
+
StorageOption,
|
|
73
|
+
InternetAccessible,
|
|
74
|
+
ComputeNode,
|
|
75
|
+
DeleteNodesRequest,
|
|
76
|
+
DescribeClustersResponse,
|
|
77
|
+
DeleteClusterStorageOptionResponse,
|
|
78
|
+
DescribeNodesResponse,
|
|
79
|
+
DescribeClusterActivitiesResponse,
|
|
80
|
+
DataDisk,
|
|
81
|
+
DeleteQueueResponse,
|
|
82
|
+
AddNodesResponse,
|
|
83
|
+
} from "./thpc_models"
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* thpc client
|
|
87
|
+
* @class
|
|
88
|
+
*/
|
|
89
|
+
export class Client extends AbstractClient {
|
|
90
|
+
constructor(clientConfig: ClientConfig) {
|
|
91
|
+
super("thpc.tencentcloudapi.com", "2023-03-21", clientConfig)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
|
|
96
|
+
*/
|
|
97
|
+
async DescribeClusterStorageOption(
|
|
98
|
+
req: DescribeClusterStorageOptionRequest,
|
|
99
|
+
cb?: (error: string, rep: DescribeClusterStorageOptionResponse) => void
|
|
100
|
+
): Promise<DescribeClusterStorageOptionResponse> {
|
|
101
|
+
return this.request("DescribeClusterStorageOption", req, cb)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
|
|
106
|
+
*/
|
|
107
|
+
async DeleteNodes(
|
|
108
|
+
req: DeleteNodesRequest,
|
|
109
|
+
cb?: (error: string, rep: DeleteNodesResponse) => void
|
|
110
|
+
): Promise<DeleteNodesResponse> {
|
|
111
|
+
return this.request("DeleteNodes", req, cb)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* 本接口 (CreateCluster) 用于创建并启动集群。
|
|
116
|
+
|
|
117
|
+
* 本接口为异步接口, 当创建集群请求下发成功后会返回一个集群`ID`和一个`RequestId`,此时创建集群操作并未立即完成。在此期间集群的状态将会处于“PENDING”或者“INITING”,集群创建结果可以通过调用 [DescribeClusters](https://cloud.tencent.com/document/product/1527/72100) 接口查询,如果集群状态(ClusterStatus)变为“RUNNING(运行中)”,则代表集群创建成功,“ INIT_FAILED”代表集群创建失败。
|
|
118
|
+
*/
|
|
119
|
+
async CreateCluster(
|
|
120
|
+
req: CreateClusterRequest,
|
|
121
|
+
cb?: (error: string, rep: CreateClusterResponse) => void
|
|
122
|
+
): Promise<CreateClusterResponse> {
|
|
123
|
+
return this.request("CreateCluster", req, cb)
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
|
|
128
|
+
*/
|
|
129
|
+
async AddClusterStorageOption(
|
|
130
|
+
req: AddClusterStorageOptionRequest,
|
|
131
|
+
cb?: (error: string, rep: AddClusterStorageOptionResponse) => void
|
|
132
|
+
): Promise<AddClusterStorageOptionResponse> {
|
|
133
|
+
return this.request("AddClusterStorageOption", req, cb)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
|
138
|
+
*/
|
|
139
|
+
async SetAutoScalingConfiguration(
|
|
140
|
+
req: SetAutoScalingConfigurationRequest,
|
|
141
|
+
cb?: (error: string, rep: SetAutoScalingConfigurationResponse) => void
|
|
142
|
+
): Promise<SetAutoScalingConfigurationResponse> {
|
|
143
|
+
return this.request("SetAutoScalingConfiguration", req, cb)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* 本接口(AddQueue)用于添加队列到指定集群。
|
|
148
|
+
* 本接口为目前只支持SchedulerType为SLURM的集群。
|
|
149
|
+
* 单个集群中队列数量上限为10个。
|
|
150
|
+
*/
|
|
151
|
+
async AddQueue(
|
|
152
|
+
req: AddQueueRequest,
|
|
153
|
+
cb?: (error: string, rep: AddQueueResponse) => void
|
|
154
|
+
): Promise<AddQueueResponse> {
|
|
155
|
+
return this.request("AddQueue", req, cb)
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
|
|
160
|
+
*/
|
|
161
|
+
async DescribeNodes(
|
|
162
|
+
req: DescribeNodesRequest,
|
|
163
|
+
cb?: (error: string, rep: DescribeNodesResponse) => void
|
|
164
|
+
): Promise<DescribeNodesResponse> {
|
|
165
|
+
return this.request("DescribeNodes", req, cb)
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* 本接口(DeleteQueue)用于从指定集群删除队列。
|
|
170
|
+
* 本接口为目前只支持SchedulerType为SLURM的集群。
|
|
171
|
+
|
|
172
|
+
* 删除队列时,需要保证队列内不存在节点。
|
|
173
|
+
*/
|
|
174
|
+
async DeleteQueue(
|
|
175
|
+
req: DeleteQueueRequest,
|
|
176
|
+
cb?: (error: string, rep: DeleteQueueResponse) => void
|
|
177
|
+
): Promise<DeleteQueueResponse> {
|
|
178
|
+
return this.request("DeleteQueue", req, cb)
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
|
|
183
|
+
*/
|
|
184
|
+
async DeleteClusterStorageOption(
|
|
185
|
+
req: DeleteClusterStorageOptionRequest,
|
|
186
|
+
cb?: (error: string, rep: DeleteClusterStorageOptionResponse) => void
|
|
187
|
+
): Promise<DeleteClusterStorageOptionResponse> {
|
|
188
|
+
return this.request("DeleteClusterStorageOption", req, cb)
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
|
|
193
|
+
*/
|
|
194
|
+
async AddNodes(
|
|
195
|
+
req: AddNodesRequest,
|
|
196
|
+
cb?: (error: string, rep: AddNodesResponse) => void
|
|
197
|
+
): Promise<AddNodesResponse> {
|
|
198
|
+
return this.request("AddNodes", req, cb)
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
|
|
203
|
+
*/
|
|
204
|
+
async DescribeAutoScalingConfiguration(
|
|
205
|
+
req: DescribeAutoScalingConfigurationRequest,
|
|
206
|
+
cb?: (error: string, rep: DescribeAutoScalingConfigurationResponse) => void
|
|
207
|
+
): Promise<DescribeAutoScalingConfigurationResponse> {
|
|
208
|
+
return this.request("DescribeAutoScalingConfiguration", req, cb)
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* 本接口(DescribeClusters)用于查询集群列表。
|
|
213
|
+
*/
|
|
214
|
+
async DescribeClusters(
|
|
215
|
+
req: DescribeClustersRequest,
|
|
216
|
+
cb?: (error: string, rep: DescribeClustersResponse) => void
|
|
217
|
+
): Promise<DescribeClustersResponse> {
|
|
218
|
+
return this.request("DescribeClusters", req, cb)
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* 本接口(DeleteCluster)用于删除一个指定的集群。
|
|
223
|
+
*/
|
|
224
|
+
async DeleteCluster(
|
|
225
|
+
req: DeleteClusterRequest,
|
|
226
|
+
cb?: (error: string, rep: DeleteClusterResponse) => void
|
|
227
|
+
): Promise<DeleteClusterResponse> {
|
|
228
|
+
return this.request("DeleteCluster", req, cb)
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
|
|
233
|
+
*/
|
|
234
|
+
async DescribeClusterActivities(
|
|
235
|
+
req: DescribeClusterActivitiesRequest,
|
|
236
|
+
cb?: (error: string, rep: DescribeClusterActivitiesResponse) => void
|
|
237
|
+
): Promise<DescribeClusterActivitiesResponse> {
|
|
238
|
+
return this.request("DescribeClusterActivities", req, cb)
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
|
|
243
|
+
*/
|
|
244
|
+
async DescribeQueues(
|
|
245
|
+
req: DescribeQueuesRequest,
|
|
246
|
+
cb?: (error: string, rep: DescribeQueuesResponse) => void
|
|
247
|
+
): Promise<DescribeQueuesResponse> {
|
|
248
|
+
return this.request("DescribeQueues", req, cb)
|
|
249
|
+
}
|
|
250
|
+
}
|