tencentcloud-sdk-nodejs-thpc 4.1.136 → 4.1.137
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/es/services/thpc/index.js +2 -2
- package/es/services/thpc/v20230321/thpc_client.js +3 -0
- package/package.json +1 -1
- package/tencentcloud/services/thpc/index.d.ts +4 -4
- package/tencentcloud/services/thpc/index.js +2 -2
- package/tencentcloud/services/thpc/v20230321/thpc_client.d.ts +7 -3
- package/tencentcloud/services/thpc/v20230321/thpc_client.js +6 -0
- package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +168 -92
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { v20220401 } from "./v20220401";
|
|
1
2
|
import { v20230321 } from "./v20230321";
|
|
2
3
|
import { v20211109 } from "./v20211109";
|
|
3
|
-
import { v20220401 } from "./v20220401";
|
|
4
4
|
export const thpc = {
|
|
5
|
+
v20220401: v20220401,
|
|
5
6
|
v20230321: v20230321,
|
|
6
7
|
v20211109: v20211109,
|
|
7
|
-
v20220401: v20220401,
|
|
8
8
|
};
|
|
@@ -75,6 +75,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
75
75
|
async DescribeClusterStorageOption(req, cb) {
|
|
76
76
|
return this.request("DescribeClusterStorageOption", req, cb);
|
|
77
77
|
}
|
|
78
|
+
async ModifyClusterDeletionProtection(req, cb) {
|
|
79
|
+
return this.request("ModifyClusterDeletionProtection", req, cb);
|
|
80
|
+
}
|
|
78
81
|
async ModifyInitNodeScripts(req, cb) {
|
|
79
82
|
return this.request("ModifyInitNodeScripts", req, cb);
|
|
80
83
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const thpc: {
|
|
2
|
+
v20220401: {
|
|
3
|
+
Client: typeof import("./v20220401/thpc_client").Client;
|
|
4
|
+
Models: typeof import("./v20220401/thpc_models");
|
|
5
|
+
};
|
|
2
6
|
v20230321: {
|
|
3
7
|
Client: typeof import("./v20230321/thpc_client").Client;
|
|
4
8
|
Models: typeof import("./v20230321/thpc_models");
|
|
@@ -7,8 +11,4 @@ export declare const thpc: {
|
|
|
7
11
|
Client: typeof import("./v20211109/thpc_client").Client;
|
|
8
12
|
Models: typeof import("./v20211109/thpc_models");
|
|
9
13
|
};
|
|
10
|
-
v20220401: {
|
|
11
|
-
Client: typeof import("./v20220401/thpc_client").Client;
|
|
12
|
-
Models: typeof import("./v20220401/thpc_models");
|
|
13
|
-
};
|
|
14
14
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.thpc = void 0;
|
|
4
|
+
const v20220401_1 = require("./v20220401");
|
|
4
5
|
const v20230321_1 = require("./v20230321");
|
|
5
6
|
const v20211109_1 = require("./v20211109");
|
|
6
|
-
const v20220401_1 = require("./v20220401");
|
|
7
7
|
exports.thpc = {
|
|
8
|
+
v20220401: v20220401_1.v20220401,
|
|
8
9
|
v20230321: v20230321_1.v20230321,
|
|
9
10
|
v20211109: v20211109_1.v20211109,
|
|
10
|
-
v20220401: v20220401_1.v20220401,
|
|
11
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeInitNodeScriptsRequest, AddNodesResponse, CreateWorkspacesResponse, DeleteClusterRequest, TerminateWorkspacesResponse, ModifyInitNodeScriptsRequest, AttachNodesRequest, DescribeWorkspacesResponse, DescribeJobsOverviewRequest, DeleteClusterResponse, DescribeAutoScalingConfigurationResponse, DescribeClustersRequest, TerminateJobRequest, DeleteNodesResponse, AddClusterStorageOptionResponse, DescribeWorkspacesRequest, AddQueueRequest, DescribeQueuesResponse, SubmitJobRequest, ModifyWorkspacesRenewFlagResponse, DescribeNodesResponse, DeleteClusterStorageOptionRequest, DeleteJobRequest, DetachNodesResponse, DescribeClusterStorageOptionRequest, ModifyWorkspacesAttributeResponse, DescribeClustersResponse, DescribeClusterActivitiesResponse,
|
|
2
|
+
import { DescribeInitNodeScriptsRequest, AddNodesResponse, ModifyClusterDeletionProtectionResponse, CreateWorkspacesResponse, DeleteClusterRequest, TerminateWorkspacesResponse, ModifyInitNodeScriptsRequest, AttachNodesRequest, DescribeWorkspacesResponse, DescribeJobsOverviewRequest, DeleteClusterResponse, DescribeAutoScalingConfigurationResponse, DescribeClustersRequest, TerminateJobRequest, DeleteNodesResponse, AddClusterStorageOptionResponse, DescribeWorkspacesRequest, AddQueueRequest, DescribeQueuesResponse, SubmitJobRequest, ModifyWorkspacesRenewFlagResponse, DescribeNodesResponse, DeleteClusterStorageOptionRequest, DeleteJobRequest, DetachNodesResponse, DescribeClusterStorageOptionRequest, ModifyWorkspacesAttributeResponse, DescribeClustersResponse, DescribeClusterActivitiesResponse, AddNodesRequest, DeleteQueueResponse, DeleteJobResponse, DescribeJobSubmitInfoResponse, CreateClusterResponse, DescribeQueuesRequest, SetAutoScalingConfigurationResponse, CreateClusterRequest, AddQueueResponse, DescribeClusterStorageOptionResponse, ModifyInitNodeScriptsResponse, DescribeJobSubmitInfoRequest, ModifyWorkspacesAttributeRequest, TerminateWorkspacesRequest, DeleteNodesRequest, DeleteClusterStorageOptionResponse, TerminateJobResponse, DescribeJobsRequest, SetAutoScalingConfigurationRequest, SubmitJobResponse, DescribeNodesRequest, DetachNodesRequest, AttachNodesResponse, DescribeJobsOverviewResponse, ModifyWorkspacesRenewFlagRequest, CreateWorkspacesRequest, DescribeClusterActivitiesRequest, DescribeJobsResponse, ModifyClusterDeletionProtectionRequest, DescribeInitNodeScriptsResponse, DeleteQueueRequest, AddClusterStorageOptionRequest, DescribeAutoScalingConfigurationRequest } from "./thpc_models";
|
|
3
3
|
/**
|
|
4
4
|
* thpc client
|
|
5
5
|
* @class
|
|
@@ -101,11 +101,15 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
101
101
|
/**
|
|
102
102
|
* 本接口 (SubmitJob) 用于提交一个作业任务。
|
|
103
103
|
*/
|
|
104
|
-
SubmitJob(req
|
|
104
|
+
SubmitJob(req: SubmitJobRequest, cb?: (error: string, rep: SubmitJobResponse) => void): Promise<SubmitJobResponse>;
|
|
105
105
|
/**
|
|
106
106
|
* 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
|
|
107
107
|
*/
|
|
108
108
|
DescribeClusterStorageOption(req: DescribeClusterStorageOptionRequest, cb?: (error: string, rep: DescribeClusterStorageOptionResponse) => void): Promise<DescribeClusterStorageOptionResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* 修改集群删除保护状态
|
|
111
|
+
*/
|
|
112
|
+
ModifyClusterDeletionProtection(req: ModifyClusterDeletionProtectionRequest, cb?: (error: string, rep: ModifyClusterDeletionProtectionResponse) => void): Promise<ModifyClusterDeletionProtectionResponse>;
|
|
109
113
|
/**
|
|
110
114
|
* 本接口 (ModifyInitNodeScripts) 用于修改节点初始化脚本。
|
|
111
115
|
*/
|
|
@@ -117,7 +121,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
117
121
|
/**
|
|
118
122
|
* 本接口 (DescribeJobs) 用于查询作业任务列表信息。
|
|
119
123
|
*/
|
|
120
|
-
DescribeJobsOverview(req
|
|
124
|
+
DescribeJobsOverview(req: DescribeJobsOverviewRequest, cb?: (error: string, rep: DescribeJobsOverviewResponse) => void): Promise<DescribeJobsOverviewResponse>;
|
|
121
125
|
/**
|
|
122
126
|
* 本接口 (DeleteJob) 用于删除一个作业任务。
|
|
123
127
|
*/
|
|
@@ -176,6 +176,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
176
176
|
async DescribeClusterStorageOption(req, cb) {
|
|
177
177
|
return this.request("DescribeClusterStorageOption", req, cb);
|
|
178
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* 修改集群删除保护状态
|
|
181
|
+
*/
|
|
182
|
+
async ModifyClusterDeletionProtection(req, cb) {
|
|
183
|
+
return this.request("ModifyClusterDeletionProtection", req, cb);
|
|
184
|
+
}
|
|
179
185
|
/**
|
|
180
186
|
* 本接口 (ModifyInitNodeScripts) 用于修改节点初始化脚本。
|
|
181
187
|
*/
|
|
@@ -66,6 +66,13 @@ export interface ClusterOverview {
|
|
|
66
66
|
* 集群类型
|
|
67
67
|
*/
|
|
68
68
|
ClusterType?: string;
|
|
69
|
+
/**
|
|
70
|
+
* 集群销毁保护开关状态,当前支持参数:
|
|
71
|
+
|
|
72
|
+
- ON: 集群销毁保护打开
|
|
73
|
+
- OFF: 集群销毁保护关闭
|
|
74
|
+
*/
|
|
75
|
+
DeletionProtection?: string;
|
|
69
76
|
}
|
|
70
77
|
/**
|
|
71
78
|
* 节点概览信息。
|
|
@@ -200,6 +207,15 @@ export interface NodeActivity {
|
|
|
200
207
|
*/
|
|
201
208
|
NodeActivityStatusReason?: string;
|
|
202
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* ModifyClusterDeletionProtection返回参数结构体
|
|
212
|
+
*/
|
|
213
|
+
export interface ModifyClusterDeletionProtectionResponse {
|
|
214
|
+
/**
|
|
215
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
216
|
+
*/
|
|
217
|
+
RequestId?: string;
|
|
218
|
+
}
|
|
203
219
|
/**
|
|
204
220
|
* CreateWorkspaces返回参数结构体
|
|
205
221
|
*/
|
|
@@ -437,7 +453,12 @@ export interface StorageOptionOverview {
|
|
|
437
453
|
/**
|
|
438
454
|
* DescribeJobsOverview请求参数结构体
|
|
439
455
|
*/
|
|
440
|
-
export
|
|
456
|
+
export interface DescribeJobsOverviewRequest {
|
|
457
|
+
/**
|
|
458
|
+
* 集群ID
|
|
459
|
+
*/
|
|
460
|
+
ClusterId: string;
|
|
461
|
+
}
|
|
441
462
|
/**
|
|
442
463
|
* DeleteCluster返回参数结构体
|
|
443
464
|
*/
|
|
@@ -654,7 +675,22 @@ export interface DescribeQueuesResponse {
|
|
|
654
675
|
/**
|
|
655
676
|
* SubmitJob请求参数结构体
|
|
656
677
|
*/
|
|
657
|
-
export
|
|
678
|
+
export interface SubmitJobRequest {
|
|
679
|
+
/**
|
|
680
|
+
* 集群id
|
|
681
|
+
*/
|
|
682
|
+
ClusterId: string;
|
|
683
|
+
/**
|
|
684
|
+
* 作业任务参数配置
|
|
685
|
+
*/
|
|
686
|
+
Job: Job;
|
|
687
|
+
/**
|
|
688
|
+
* 队列名称。不指定则为默认队列:
|
|
689
|
+
SLURM默认队列为:compute。
|
|
690
|
+
SGE默认队列为:all.q。
|
|
691
|
+
*/
|
|
692
|
+
QueueName?: string;
|
|
693
|
+
}
|
|
658
694
|
/**
|
|
659
695
|
* 提交Job作业信息
|
|
660
696
|
*/
|
|
@@ -1031,17 +1067,100 @@ export interface DescribeClusterActivitiesResponse {
|
|
|
1031
1067
|
RequestId?: string;
|
|
1032
1068
|
}
|
|
1033
1069
|
/**
|
|
1034
|
-
*
|
|
1070
|
+
* AddNodes请求参数结构体
|
|
1035
1071
|
*/
|
|
1036
|
-
export interface
|
|
1072
|
+
export interface AddNodesRequest {
|
|
1037
1073
|
/**
|
|
1038
|
-
*
|
|
1074
|
+
* 集群中实例所在的位置。
|
|
1039
1075
|
*/
|
|
1040
|
-
|
|
1076
|
+
Placement: Placement;
|
|
1041
1077
|
/**
|
|
1042
|
-
*
|
|
1078
|
+
* 集群ID。
|
|
1043
1079
|
*/
|
|
1044
|
-
|
|
1080
|
+
ClusterId: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* 私有网络相关信息配置。
|
|
1083
|
+
*/
|
|
1084
|
+
VirtualPrivateCloud: VirtualPrivateCloud;
|
|
1085
|
+
/**
|
|
1086
|
+
* 添加节点数量。
|
|
1087
|
+
*/
|
|
1088
|
+
Count: number;
|
|
1089
|
+
/**
|
|
1090
|
+
* 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。公共镜像请参考[镜像限制](https://cloud.tencent.com/document/product/1527/64818#.E9.95.9C.E5.83.8F)
|
|
1091
|
+
*/
|
|
1092
|
+
ImageId?: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:按小时后付费</li><li>SPOTPAID:竞价付费</li>默认值:POSTPAID_BY_HOUR。
|
|
1095
|
+
*/
|
|
1096
|
+
InstanceChargeType?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
|
|
1099
|
+
*/
|
|
1100
|
+
InstanceChargePrepaid?: InstanceChargePrepaid;
|
|
1101
|
+
/**
|
|
1102
|
+
* 节点机型。不同实例机型指定了不同的资源规格。<br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。</li>
|
|
1103
|
+
*/
|
|
1104
|
+
InstanceType?: string;
|
|
1105
|
+
/**
|
|
1106
|
+
* 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
|
1107
|
+
*/
|
|
1108
|
+
SystemDisk?: SystemDisk;
|
|
1109
|
+
/**
|
|
1110
|
+
* 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
|
|
1111
|
+
*/
|
|
1112
|
+
DataDisks?: Array<DataDisk>;
|
|
1113
|
+
/**
|
|
1114
|
+
* 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。
|
|
1115
|
+
*/
|
|
1116
|
+
InternetAccessible?: InternetAccessible;
|
|
1117
|
+
/**
|
|
1118
|
+
* 节点显示名称。
|
|
1119
|
+
不指定节点显示名称则默认显示‘未命名’。
|
|
1120
|
+
最多支持60个字符。
|
|
1121
|
+
*/
|
|
1122
|
+
InstanceName?: string;
|
|
1123
|
+
/**
|
|
1124
|
+
* 集群登录设置。
|
|
1125
|
+
*/
|
|
1126
|
+
LoginSettings?: LoginSettings;
|
|
1127
|
+
/**
|
|
1128
|
+
* 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
|
|
1129
|
+
*/
|
|
1130
|
+
SecurityGroupIds?: Array<string>;
|
|
1131
|
+
/**
|
|
1132
|
+
* 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
|
|
1133
|
+
*/
|
|
1134
|
+
ClientToken?: string;
|
|
1135
|
+
/**
|
|
1136
|
+
* 队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。</li>
|
|
1137
|
+
|
|
1138
|
+
*/
|
|
1139
|
+
QueueName?: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* 添加节点角色。默认值:Compute<br><li>Compute:计算节点。</li><li>Login:登录节点。</li>
|
|
1142
|
+
*/
|
|
1143
|
+
NodeRole?: string;
|
|
1144
|
+
/**
|
|
1145
|
+
* 是否只预检此次请求。
|
|
1146
|
+
true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。
|
|
1147
|
+
如果检查不通过,则返回对应错误码;
|
|
1148
|
+
如果检查通过,则返回RequestId.
|
|
1149
|
+
false(默认):发送正常请求,通过检查后直接创建实例
|
|
1150
|
+
*/
|
|
1151
|
+
DryRun?: boolean;
|
|
1152
|
+
/**
|
|
1153
|
+
* 添加节点类型。默认取值:STATIC。<li>STATIC:静态节点,不会参与弹性伸缩流程。</li><li>DYNAMIC:弹性节点,会被弹性缩容的节点。管控节点和登录节点不支持此参数。</li>
|
|
1154
|
+
*/
|
|
1155
|
+
NodeType?: string;
|
|
1156
|
+
/**
|
|
1157
|
+
* 实例所属项目ID。该参数可以通过调用 [DescribeProject](https://cloud.tencent.com/document/api/651/78725) 的返回值中的 projectId 字段来获取。不填为默认项目。
|
|
1158
|
+
*/
|
|
1159
|
+
ProjectId?: number;
|
|
1160
|
+
/**
|
|
1161
|
+
* 要新增节点的资源类型。<li>CVM:CVM实例类型资源</li><li>WORKSPACE:工作空间类型实例资源</li>默认值:CVM。
|
|
1162
|
+
*/
|
|
1163
|
+
ResourceType?: string;
|
|
1045
1164
|
}
|
|
1046
1165
|
/**
|
|
1047
1166
|
* DeleteQueue返回参数结构体
|
|
@@ -1263,7 +1382,7 @@ export interface CreateClusterRequest {
|
|
|
1263
1382
|
/**
|
|
1264
1383
|
* 集群中实例所在的位置。
|
|
1265
1384
|
*/
|
|
1266
|
-
Placement
|
|
1385
|
+
Placement?: Placement;
|
|
1267
1386
|
/**
|
|
1268
1387
|
* 指定管理节点。
|
|
1269
1388
|
*/
|
|
@@ -1545,8 +1664,18 @@ export interface Application {
|
|
|
1545
1664
|
- Custom:表示用户自定义作业
|
|
1546
1665
|
|
|
1547
1666
|
默认参数为:Custom
|
|
1667
|
+
* @deprecated
|
|
1548
1668
|
*/
|
|
1549
1669
|
JobType?: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* 表示所选训练框架,支持可选参数
|
|
1672
|
+
|
|
1673
|
+
- PyTorch:表示提交PyTorch训练作业
|
|
1674
|
+
- Custom:表示用户自定义作业
|
|
1675
|
+
|
|
1676
|
+
默认参数为:Custom
|
|
1677
|
+
*/
|
|
1678
|
+
TaskType?: string;
|
|
1550
1679
|
}
|
|
1551
1680
|
/**
|
|
1552
1681
|
* 描述工作空间的信息
|
|
@@ -1789,6 +1918,10 @@ export interface SetAutoScalingConfigurationRequest {
|
|
|
1789
1918
|
* SubmitJob返回参数结构体
|
|
1790
1919
|
*/
|
|
1791
1920
|
export interface SubmitJobResponse {
|
|
1921
|
+
/**
|
|
1922
|
+
* 作业任务ID
|
|
1923
|
+
*/
|
|
1924
|
+
JobId?: string;
|
|
1792
1925
|
/**
|
|
1793
1926
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1794
1927
|
*/
|
|
@@ -1898,6 +2031,18 @@ export interface LoginNode {
|
|
|
1898
2031
|
* DescribeJobsOverview返回参数结构体
|
|
1899
2032
|
*/
|
|
1900
2033
|
export interface DescribeJobsOverviewResponse {
|
|
2034
|
+
/**
|
|
2035
|
+
* 作业任务数量
|
|
2036
|
+
*/
|
|
2037
|
+
JobTotal?: number;
|
|
2038
|
+
/**
|
|
2039
|
+
* 排队中的作业任务数量
|
|
2040
|
+
*/
|
|
2041
|
+
QueuingJobTotal?: number;
|
|
2042
|
+
/**
|
|
2043
|
+
* 运行中的作业数量
|
|
2044
|
+
*/
|
|
2045
|
+
RunningJobTotal?: number;
|
|
1901
2046
|
/**
|
|
1902
2047
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1903
2048
|
*/
|
|
@@ -2148,100 +2293,31 @@ export interface DescribeJobsResponse {
|
|
|
2148
2293
|
RequestId?: string;
|
|
2149
2294
|
}
|
|
2150
2295
|
/**
|
|
2151
|
-
*
|
|
2296
|
+
* ModifyClusterDeletionProtection请求参数结构体
|
|
2152
2297
|
*/
|
|
2153
|
-
export interface
|
|
2154
|
-
/**
|
|
2155
|
-
* 集群中实例所在的位置。
|
|
2156
|
-
*/
|
|
2157
|
-
Placement: Placement;
|
|
2298
|
+
export interface ModifyClusterDeletionProtectionRequest {
|
|
2158
2299
|
/**
|
|
2159
2300
|
* 集群ID。
|
|
2160
2301
|
*/
|
|
2161
2302
|
ClusterId: string;
|
|
2162
2303
|
/**
|
|
2163
|
-
*
|
|
2164
|
-
|
|
2165
|
-
VirtualPrivateCloud: VirtualPrivateCloud;
|
|
2166
|
-
/**
|
|
2167
|
-
* 添加节点数量。
|
|
2304
|
+
* 集群删除保护开关。
|
|
2305
|
+
可选值:<li>OFF:关闭集群删除保护。</li><li>ON:打开集群删除保护。</li>
|
|
2168
2306
|
*/
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
* 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:按小时后付费</li><li>SPOTPAID:竞价付费</li>默认值:POSTPAID_BY_HOUR。
|
|
2176
|
-
*/
|
|
2177
|
-
InstanceChargeType?: string;
|
|
2178
|
-
/**
|
|
2179
|
-
* 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
|
|
2180
|
-
*/
|
|
2181
|
-
InstanceChargePrepaid?: InstanceChargePrepaid;
|
|
2182
|
-
/**
|
|
2183
|
-
* 节点机型。不同实例机型指定了不同的资源规格。<br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。</li>
|
|
2184
|
-
*/
|
|
2185
|
-
InstanceType?: string;
|
|
2186
|
-
/**
|
|
2187
|
-
* 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
|
2188
|
-
*/
|
|
2189
|
-
SystemDisk?: SystemDisk;
|
|
2190
|
-
/**
|
|
2191
|
-
* 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
|
|
2192
|
-
*/
|
|
2193
|
-
DataDisks?: Array<DataDisk>;
|
|
2194
|
-
/**
|
|
2195
|
-
* 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。
|
|
2196
|
-
*/
|
|
2197
|
-
InternetAccessible?: InternetAccessible;
|
|
2198
|
-
/**
|
|
2199
|
-
* 节点显示名称。
|
|
2200
|
-
不指定节点显示名称则默认显示‘未命名’。
|
|
2201
|
-
最多支持60个字符。
|
|
2202
|
-
*/
|
|
2203
|
-
InstanceName?: string;
|
|
2204
|
-
/**
|
|
2205
|
-
* 集群登录设置。
|
|
2206
|
-
*/
|
|
2207
|
-
LoginSettings?: LoginSettings;
|
|
2208
|
-
/**
|
|
2209
|
-
* 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
|
|
2210
|
-
*/
|
|
2211
|
-
SecurityGroupIds?: Array<string>;
|
|
2212
|
-
/**
|
|
2213
|
-
* 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
|
|
2214
|
-
*/
|
|
2215
|
-
ClientToken?: string;
|
|
2216
|
-
/**
|
|
2217
|
-
* 队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。</li>
|
|
2218
|
-
|
|
2219
|
-
*/
|
|
2220
|
-
QueueName?: string;
|
|
2221
|
-
/**
|
|
2222
|
-
* 添加节点角色。默认值:Compute<br><li>Compute:计算节点。</li><li>Login:登录节点。</li>
|
|
2223
|
-
*/
|
|
2224
|
-
NodeRole?: string;
|
|
2225
|
-
/**
|
|
2226
|
-
* 是否只预检此次请求。
|
|
2227
|
-
true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。
|
|
2228
|
-
如果检查不通过,则返回对应错误码;
|
|
2229
|
-
如果检查通过,则返回RequestId.
|
|
2230
|
-
false(默认):发送正常请求,通过检查后直接创建实例
|
|
2231
|
-
*/
|
|
2232
|
-
DryRun?: boolean;
|
|
2233
|
-
/**
|
|
2234
|
-
* 添加节点类型。默认取值:STATIC。<li>STATIC:静态节点,不会参与弹性伸缩流程。</li><li>DYNAMIC:弹性节点,会被弹性缩容的节点。管控节点和登录节点不支持此参数。</li>
|
|
2235
|
-
*/
|
|
2236
|
-
NodeType?: string;
|
|
2307
|
+
DeletionProtection: string;
|
|
2308
|
+
}
|
|
2309
|
+
/**
|
|
2310
|
+
* DescribeInitNodeScripts返回参数结构体
|
|
2311
|
+
*/
|
|
2312
|
+
export interface DescribeInitNodeScriptsResponse {
|
|
2237
2313
|
/**
|
|
2238
|
-
*
|
|
2314
|
+
* 节点初始化脚本列表。
|
|
2239
2315
|
*/
|
|
2240
|
-
|
|
2316
|
+
InitNodeScriptSet?: Array<NodeScript>;
|
|
2241
2317
|
/**
|
|
2242
|
-
*
|
|
2318
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2243
2319
|
*/
|
|
2244
|
-
|
|
2320
|
+
RequestId?: string;
|
|
2245
2321
|
}
|
|
2246
2322
|
/**
|
|
2247
2323
|
* CFS存储选项概览信息。
|