@ucloud-sdks/ucloud-sdk-js 0.0.5 → 0.1.0
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/lib/core/middlewares.js +1 -1
- package/lib/services/cube/index.d.ts +141 -1
- package/lib/services/cube/index.js +36 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +7 -0
- package/lib/services/ipsecvpn/index.d.ts +13 -5
- package/lib/services/pathx/index.d.ts +986 -60
- package/lib/services/pathx/index.js +144 -0
- package/lib/services/uaccount/index.d.ts +0 -24
- package/lib/services/uaccount/index.js +0 -9
- package/lib/services/ubill/index.d.ts +284 -4
- package/lib/services/ubill/index.js +18 -0
- package/lib/services/ucdn/index.d.ts +1085 -946
- package/lib/services/ucdn/index.js +72 -45
- package/lib/services/udb/index.d.ts +89 -12
- package/lib/services/udb/index.js +21 -3
- package/lib/services/udisk/index.d.ts +32 -8
- package/lib/services/uec/index.d.ts +68 -8
- package/lib/services/uec/index.js +9 -0
- package/lib/services/ufile/index.d.ts +288 -0
- package/lib/services/ufile/index.js +45 -0
- package/lib/services/ufs/index.d.ts +201 -3
- package/lib/services/ufs/index.js +45 -0
- package/lib/services/uhost/index.d.ts +18 -99
- package/lib/services/uk8s/index.d.ts +690 -9
- package/lib/services/uk8s/index.js +45 -0
- package/lib/services/ulb/index.d.ts +45 -5
- package/lib/services/ulb/index.js +9 -0
- package/lib/services/umem/index.d.ts +337 -9
- package/lib/services/umem/index.js +27 -0
- package/lib/services/unet/index.d.ts +175 -6
- package/lib/services/unet/index.js +36 -0
- package/lib/services/uphost/index.d.ts +221 -25
- package/lib/services/uphost/index.js +36 -0
- package/lib/services/usms/index.d.ts +23 -3
- package/lib/services/uvms/index.d.ts +64 -0
- package/lib/services/uvms/index.js +25 -0
- package/lib/services/vpc/index.d.ts +390 -19
- package/lib/services/vpc/index.js +54 -0
- package/package.json +1 -1
|
@@ -9,6 +9,12 @@ export default class UFSClient extends Client {
|
|
|
9
9
|
config: ConfigOptions;
|
|
10
10
|
credential: CredentialOptions;
|
|
11
11
|
});
|
|
12
|
+
/**
|
|
13
|
+
* AddUFSVolumeMountPoint - 添加文件系统挂载点
|
|
14
|
+
*
|
|
15
|
+
* See also: https://docs.ucloud.cn/api/ufs-api/add_ufs_volume_mount_point
|
|
16
|
+
*/
|
|
17
|
+
addUFSVolumeMountPoint(request?: AddUFSVolumeMountPointRequest): Promise<AddUFSVolumeMountPointResponse>;
|
|
12
18
|
/**
|
|
13
19
|
* CreateUFSVolume - 创建文件系统
|
|
14
20
|
*
|
|
@@ -21,6 +27,18 @@ export default class UFSClient extends Client {
|
|
|
21
27
|
* See also: https://docs.ucloud.cn/api/ufs-api/describe_ufs_volume2
|
|
22
28
|
*/
|
|
23
29
|
describeUFSVolume2(request?: DescribeUFSVolume2Request): Promise<DescribeUFSVolume2Response>;
|
|
30
|
+
/**
|
|
31
|
+
* DescribeUFSVolumeMountpoint - 获取文件系统挂载点信息
|
|
32
|
+
*
|
|
33
|
+
* See also: https://docs.ucloud.cn/api/ufs-api/describe_ufs_volume_mountpoint
|
|
34
|
+
*/
|
|
35
|
+
describeUFSVolumeMountpoint(request?: DescribeUFSVolumeMountpointRequest): Promise<DescribeUFSVolumeMountpointResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* DescribeUFSVolumePrice - 获取文件系统价格
|
|
38
|
+
*
|
|
39
|
+
* See also: https://docs.ucloud.cn/api/ufs-api/describe_ufs_volume_price
|
|
40
|
+
*/
|
|
41
|
+
describeUFSVolumePrice(request?: DescribeUFSVolumePriceRequest): Promise<DescribeUFSVolumePriceResponse>;
|
|
24
42
|
/**
|
|
25
43
|
* ExtendUFSVolume - 文件系统扩容
|
|
26
44
|
*
|
|
@@ -33,21 +51,59 @@ export default class UFSClient extends Client {
|
|
|
33
51
|
* See also: https://docs.ucloud.cn/api/ufs-api/remove_ufs_volume
|
|
34
52
|
*/
|
|
35
53
|
removeUFSVolume(request?: RemoveUFSVolumeRequest): Promise<RemoveUFSVolumeResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* RemoveUFSVolumeMountPoint - 删除文件系统挂载点
|
|
56
|
+
*
|
|
57
|
+
* See also: https://docs.ucloud.cn/api/ufs-api/remove_ufs_volume_mount_point
|
|
58
|
+
*/
|
|
59
|
+
removeUFSVolumeMountPoint(request?: RemoveUFSVolumeMountPointRequest): Promise<RemoveUFSVolumeMountPointResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* UpdateUFSVolumeInfo - 更改文件系统相关信息(名称/备注)
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/ufs-api/update_ufs_volume_info
|
|
64
|
+
*/
|
|
65
|
+
updateUFSVolumeInfo(request?: UpdateUFSVolumeInfoRequest): Promise<UpdateUFSVolumeInfoResponse>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* AddUFSVolumeMountPoint - 添加文件系统挂载点
|
|
69
|
+
*/
|
|
70
|
+
export interface AddUFSVolumeMountPointRequest {
|
|
71
|
+
/**
|
|
72
|
+
* 文件系统ID
|
|
73
|
+
*/
|
|
74
|
+
VolumeId: string;
|
|
75
|
+
/**
|
|
76
|
+
* 挂载点名称
|
|
77
|
+
*/
|
|
78
|
+
MountPointName: string;
|
|
79
|
+
/**
|
|
80
|
+
* Vpc ID
|
|
81
|
+
*/
|
|
82
|
+
VpcId: string;
|
|
83
|
+
/**
|
|
84
|
+
* Subnet ID
|
|
85
|
+
*/
|
|
86
|
+
SubnetId: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* AddUFSVolumeMountPoint - 添加文件系统挂载点
|
|
90
|
+
*/
|
|
91
|
+
export interface AddUFSVolumeMountPointResponse {
|
|
36
92
|
}
|
|
37
93
|
/**
|
|
38
94
|
* CreateUFSVolume - 创建文件系统
|
|
39
95
|
*/
|
|
40
96
|
export interface CreateUFSVolumeRequest {
|
|
41
97
|
/**
|
|
42
|
-
* 文件系统大小,单位为GB
|
|
98
|
+
* 文件系统大小,单位为GB,必须为100的整数倍,容量型Size最小为500GB,性能型文件系统Size最小为100GB
|
|
43
99
|
*/
|
|
44
100
|
Size: number;
|
|
45
101
|
/**
|
|
46
|
-
*
|
|
102
|
+
* 文件系统存储类型,Basic表示容量型,Advanced表示性能型
|
|
47
103
|
*/
|
|
48
104
|
StorageType: string;
|
|
49
105
|
/**
|
|
50
|
-
*
|
|
106
|
+
* 文件系统协议,目前仅支持NFSv4
|
|
51
107
|
*/
|
|
52
108
|
ProtocolType: string;
|
|
53
109
|
/**
|
|
@@ -175,6 +231,104 @@ export interface DescribeUFSVolume2Response {
|
|
|
175
231
|
IsExpired?: string;
|
|
176
232
|
}[];
|
|
177
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
* DescribeUFSVolumeMountpoint - 获取文件系统挂载点信息
|
|
236
|
+
*/
|
|
237
|
+
export interface DescribeUFSVolumeMountpointRequest {
|
|
238
|
+
/**
|
|
239
|
+
* 文件系统ID
|
|
240
|
+
*/
|
|
241
|
+
VolumeId: string;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* DescribeUFSVolumeMountpoint - 获取文件系统挂载点信息
|
|
245
|
+
*/
|
|
246
|
+
export interface DescribeUFSVolumeMountpointResponse {
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
*/
|
|
250
|
+
DataSet: {
|
|
251
|
+
/**
|
|
252
|
+
* 挂载点名称
|
|
253
|
+
*/
|
|
254
|
+
MountPointName: string;
|
|
255
|
+
/**
|
|
256
|
+
* Vpc ID
|
|
257
|
+
*/
|
|
258
|
+
VpcId: string;
|
|
259
|
+
/**
|
|
260
|
+
* Subnet ID
|
|
261
|
+
*/
|
|
262
|
+
SubnetId: string;
|
|
263
|
+
/**
|
|
264
|
+
* ${挂载点IP}:/
|
|
265
|
+
*/
|
|
266
|
+
MountPointIp: string;
|
|
267
|
+
/**
|
|
268
|
+
* 文件系统创建时间(unix时间戳)
|
|
269
|
+
*/
|
|
270
|
+
CreateTime: number;
|
|
271
|
+
/**
|
|
272
|
+
* Subnet ID + 网段的形式,方便前端展示
|
|
273
|
+
*/
|
|
274
|
+
SubnetDescription: string;
|
|
275
|
+
}[];
|
|
276
|
+
/**
|
|
277
|
+
* 目前的挂载点总数
|
|
278
|
+
*/
|
|
279
|
+
TotalMountPointNum: number;
|
|
280
|
+
/**
|
|
281
|
+
* 文件系统能创建的最大挂载点数目
|
|
282
|
+
*/
|
|
283
|
+
MaxMountPointNum: number;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* DescribeUFSVolumePrice - 获取文件系统价格
|
|
287
|
+
*/
|
|
288
|
+
export interface DescribeUFSVolumePriceRequest {
|
|
289
|
+
/**
|
|
290
|
+
* 文件系统大小,单位为GB,新架构容量型最小容量为500GB,以100GB递增,最大不超过100TB。新架构性能型最小容量为100GB,以100GB递增,最大不超过20TB
|
|
291
|
+
*/
|
|
292
|
+
Size: number;
|
|
293
|
+
/**
|
|
294
|
+
* 文件存储类型,枚举值,Basic表示容量型产品,Advanced表示性能型产品
|
|
295
|
+
*/
|
|
296
|
+
StorageType: string;
|
|
297
|
+
/**
|
|
298
|
+
* 购买UFS的时长, 默认为1
|
|
299
|
+
*/
|
|
300
|
+
Quantity?: number;
|
|
301
|
+
/**
|
|
302
|
+
* Year, Month, Dynamic,Trial,默认: Dynamic
|
|
303
|
+
*/
|
|
304
|
+
ChargeType?: string;
|
|
305
|
+
/**
|
|
306
|
+
* 文件系统id,第一次创建文件系统时不需要传这个参数
|
|
307
|
+
*/
|
|
308
|
+
VolumeId?: string;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* DescribeUFSVolumePrice - 获取文件系统价格
|
|
312
|
+
*/
|
|
313
|
+
export interface DescribeUFSVolumePriceResponse {
|
|
314
|
+
/**
|
|
315
|
+
* ufs 价格信息
|
|
316
|
+
*/
|
|
317
|
+
DataSet?: {
|
|
318
|
+
/**
|
|
319
|
+
* Year, Month, Dynamic,Trial
|
|
320
|
+
*/
|
|
321
|
+
ChargeType?: string;
|
|
322
|
+
/**
|
|
323
|
+
* 价格 (单位: 分)
|
|
324
|
+
*/
|
|
325
|
+
Price?: number;
|
|
326
|
+
/**
|
|
327
|
+
* “UFS”
|
|
328
|
+
*/
|
|
329
|
+
ChargeName?: string;
|
|
330
|
+
}[];
|
|
331
|
+
}
|
|
178
332
|
/**
|
|
179
333
|
* ExtendUFSVolume - 文件系统扩容
|
|
180
334
|
*/
|
|
@@ -207,3 +361,47 @@ export interface RemoveUFSVolumeRequest {
|
|
|
207
361
|
*/
|
|
208
362
|
export interface RemoveUFSVolumeResponse {
|
|
209
363
|
}
|
|
364
|
+
/**
|
|
365
|
+
* RemoveUFSVolumeMountPoint - 删除文件系统挂载点
|
|
366
|
+
*/
|
|
367
|
+
export interface RemoveUFSVolumeMountPointRequest {
|
|
368
|
+
/**
|
|
369
|
+
* 文件系统ID
|
|
370
|
+
*/
|
|
371
|
+
VolumeId: string;
|
|
372
|
+
/**
|
|
373
|
+
* Vpc ID
|
|
374
|
+
*/
|
|
375
|
+
VpcId: string;
|
|
376
|
+
/**
|
|
377
|
+
* Subnet ID
|
|
378
|
+
*/
|
|
379
|
+
SubnetId: string;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* RemoveUFSVolumeMountPoint - 删除文件系统挂载点
|
|
383
|
+
*/
|
|
384
|
+
export interface RemoveUFSVolumeMountPointResponse {
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* UpdateUFSVolumeInfo - 更改文件系统相关信息(名称/备注)
|
|
388
|
+
*/
|
|
389
|
+
export interface UpdateUFSVolumeInfoRequest {
|
|
390
|
+
/**
|
|
391
|
+
* 文件系统ID
|
|
392
|
+
*/
|
|
393
|
+
VolumeId: string;
|
|
394
|
+
/**
|
|
395
|
+
* 文件系统名称(文件系统名称/备注至少传入其中一个)
|
|
396
|
+
*/
|
|
397
|
+
VolumeName?: string;
|
|
398
|
+
/**
|
|
399
|
+
* 文件系统备注(文件系统名称/备注至少传入其中一个)
|
|
400
|
+
*/
|
|
401
|
+
Remark?: string;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* UpdateUFSVolumeInfo - 更改文件系统相关信息(名称/备注)
|
|
405
|
+
*/
|
|
406
|
+
export interface UpdateUFSVolumeInfoResponse {
|
|
407
|
+
}
|
|
@@ -12,6 +12,15 @@ class UFSClient extends client_1.default {
|
|
|
12
12
|
constructor({ config, credential, }) {
|
|
13
13
|
super({ config, credential });
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* AddUFSVolumeMountPoint - 添加文件系统挂载点
|
|
17
|
+
*
|
|
18
|
+
* See also: https://docs.ucloud.cn/api/ufs-api/add_ufs_volume_mount_point
|
|
19
|
+
*/
|
|
20
|
+
addUFSVolumeMountPoint(request) {
|
|
21
|
+
const args = Object.assign({ Action: 'AddUFSVolumeMountPoint' }, (request || {}));
|
|
22
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
|
+
}
|
|
15
24
|
/**
|
|
16
25
|
* CreateUFSVolume - 创建文件系统
|
|
17
26
|
*
|
|
@@ -30,6 +39,24 @@ class UFSClient extends client_1.default {
|
|
|
30
39
|
const args = Object.assign({ Action: 'DescribeUFSVolume2' }, (request || {}));
|
|
31
40
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* DescribeUFSVolumeMountpoint - 获取文件系统挂载点信息
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/ufs-api/describe_ufs_volume_mountpoint
|
|
46
|
+
*/
|
|
47
|
+
describeUFSVolumeMountpoint(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'DescribeUFSVolumeMountpoint' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* DescribeUFSVolumePrice - 获取文件系统价格
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/ufs-api/describe_ufs_volume_price
|
|
55
|
+
*/
|
|
56
|
+
describeUFSVolumePrice(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'DescribeUFSVolumePrice' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
33
60
|
/**
|
|
34
61
|
* ExtendUFSVolume - 文件系统扩容
|
|
35
62
|
*
|
|
@@ -48,5 +75,23 @@ class UFSClient extends client_1.default {
|
|
|
48
75
|
const args = Object.assign({ Action: 'RemoveUFSVolume' }, (request || {}));
|
|
49
76
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* RemoveUFSVolumeMountPoint - 删除文件系统挂载点
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/ufs-api/remove_ufs_volume_mount_point
|
|
82
|
+
*/
|
|
83
|
+
removeUFSVolumeMountPoint(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'RemoveUFSVolumeMountPoint' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* UpdateUFSVolumeInfo - 更改文件系统相关信息(名称/备注)
|
|
89
|
+
*
|
|
90
|
+
* See also: https://docs.ucloud.cn/api/ufs-api/update_ufs_volume_info
|
|
91
|
+
*/
|
|
92
|
+
updateUFSVolumeInfo(request) {
|
|
93
|
+
const args = Object.assign({ Action: 'UpdateUFSVolumeInfo' }, (request || {}));
|
|
94
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
|
+
}
|
|
51
96
|
}
|
|
52
97
|
exports.default = UFSClient;
|
|
@@ -333,7 +333,7 @@ export interface CreateUHostInstanceRequest {
|
|
|
333
333
|
*/
|
|
334
334
|
Size: number;
|
|
335
335
|
/**
|
|
336
|
-
* 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT
|
|
336
|
+
* 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE
|
|
337
337
|
*/
|
|
338
338
|
BackupType?: string;
|
|
339
339
|
/**
|
|
@@ -348,10 +348,6 @@ export interface CreateUHostInstanceRequest {
|
|
|
348
348
|
* 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看
|
|
349
349
|
*/
|
|
350
350
|
CouponId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* 磁盘id,只有云盘系统盘可以有此参数,且该系统盘id必须已经存在
|
|
353
|
-
*/
|
|
354
|
-
Id?: string;
|
|
355
351
|
}[];
|
|
356
352
|
/**
|
|
357
353
|
* 主机登陆模式。密码(默认选项): Password,密钥:KeyPair。
|
|
@@ -370,7 +366,7 @@ export interface CreateUHostInstanceRequest {
|
|
|
370
366
|
*/
|
|
371
367
|
Tag?: string;
|
|
372
368
|
/**
|
|
373
|
-
* 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\Preemptive计费为抢占式实例 \\ 默认为月付
|
|
369
|
+
* 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\Preemptive计费为抢占式实例(内测阶段) \\ 默认为月付
|
|
374
370
|
*/
|
|
375
371
|
ChargeType?: string;
|
|
376
372
|
/**
|
|
@@ -390,26 +386,13 @@ export interface CreateUHostInstanceRequest {
|
|
|
390
386
|
*/
|
|
391
387
|
Memory?: number;
|
|
392
388
|
/**
|
|
393
|
-
* GPU类型,枚举值["K80", "P40", "V100", "T4", "T4S","2080Ti","2080Ti-4C","1080Ti"],MachineType为G时必填
|
|
389
|
+
* GPU类型,枚举值["K80", "P40", "V100", "T4", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", "MI100", "V100S"],MachineType为G时必填
|
|
394
390
|
*/
|
|
395
391
|
GpuType?: string;
|
|
396
392
|
/**
|
|
397
393
|
* GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关)
|
|
398
394
|
*/
|
|
399
395
|
GPU?: number;
|
|
400
|
-
/**
|
|
401
|
-
*
|
|
402
|
-
*/
|
|
403
|
-
VirtualGpu?: {
|
|
404
|
-
/**
|
|
405
|
-
* 虚拟 GPU 类型,枚举值["vGPU_T4","vGPU_P40","vGPU_V100"]
|
|
406
|
-
*/
|
|
407
|
-
GpuType?: string;
|
|
408
|
-
/**
|
|
409
|
-
* 虚拟 GPU 核数,默认 1。注:当前暂时只支持1颗。
|
|
410
|
-
*/
|
|
411
|
-
GPU?: number;
|
|
412
|
-
};
|
|
413
396
|
/**
|
|
414
397
|
* 网络增强特性。枚举值:Normal(默认),不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(仅支持部分可用区,请参考控制台)
|
|
415
398
|
*/
|
|
@@ -443,11 +426,11 @@ export interface CreateUHostInstanceRequest {
|
|
|
443
426
|
*/
|
|
444
427
|
AlarmTemplateId?: number;
|
|
445
428
|
/**
|
|
446
|
-
* 云主机机型(V2.0),在本字段和字段UHostType中,仅需要其中1个字段即可。枚举值["N", "C", "G", "O", "OS", "OPRO", "OMAX", "O.BM"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。
|
|
429
|
+
* 云主机机型(V2.0),在本字段和字段UHostType中,仅需要其中1个字段即可。枚举值["N", "C", "G", "O", "OS", "OM", "OPRO", "OMAX", "O.BM", "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。
|
|
447
430
|
*/
|
|
448
431
|
MachineType?: string;
|
|
449
432
|
/**
|
|
450
|
-
* 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake"
|
|
433
|
+
* 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", "Intel/IceLake", "Amd/Epyc2", "Amd/Auto"],默认值是"Intel/Auto"。
|
|
451
434
|
*/
|
|
452
435
|
MinimalCpuPlatform?: string;
|
|
453
436
|
/**
|
|
@@ -474,23 +457,6 @@ export interface CreateUHostInstanceRequest {
|
|
|
474
457
|
* 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
|
|
475
458
|
*/
|
|
476
459
|
ShareBandwidthId?: string;
|
|
477
|
-
/**
|
|
478
|
-
*
|
|
479
|
-
*/
|
|
480
|
-
GlobalSSH?: {
|
|
481
|
-
/**
|
|
482
|
-
* 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”。Area和AreaCode两者必填其中之一。
|
|
483
|
-
*/
|
|
484
|
-
Area?: string;
|
|
485
|
-
/**
|
|
486
|
-
* SSH端口,1-65535且不能使用80,443端口
|
|
487
|
-
*/
|
|
488
|
-
Port?: number;
|
|
489
|
-
/**
|
|
490
|
-
* GlobalSSH的地区编码,格式为区域航空港国际通用代码。Area和AreaCode两者必填其中之一。
|
|
491
|
-
*/
|
|
492
|
-
AreaCode?: string;
|
|
493
|
-
};
|
|
494
460
|
/**
|
|
495
461
|
* 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International
|
|
496
462
|
*/
|
|
@@ -503,16 +469,7 @@ export interface CreateUHostInstanceRequest {
|
|
|
503
469
|
/**
|
|
504
470
|
*
|
|
505
471
|
*/
|
|
506
|
-
IPv6?:
|
|
507
|
-
/**
|
|
508
|
-
* 第N块网卡中IPv6对应的共享带宽id,默认不带外网
|
|
509
|
-
*/
|
|
510
|
-
ShareBandwidthId?: string;
|
|
511
|
-
/**
|
|
512
|
-
* 第N个网卡对应的IPv6地址,默认不分配IPv6,“Auto”自动分配,不为空的其他字符串为实际要分配的IPv6地址
|
|
513
|
-
*/
|
|
514
|
-
Address?: string;
|
|
515
|
-
};
|
|
472
|
+
IPv6?: object;
|
|
516
473
|
/**
|
|
517
474
|
* 申请并绑定一个教育网EIP。True为申请并绑定,False为不会申请绑定,默认False。当前只支持具有HPC特性的机型。
|
|
518
475
|
*/
|
|
@@ -529,32 +486,20 @@ export interface CreateUHostInstanceRequest {
|
|
|
529
486
|
/**
|
|
530
487
|
*
|
|
531
488
|
*/
|
|
532
|
-
Volumes?:
|
|
533
|
-
/**
|
|
534
|
-
* 存储文件卷类型,当前仅支持[CLOUD_FSX]。
|
|
535
|
-
*/
|
|
536
|
-
Type?: string;
|
|
537
|
-
/**
|
|
538
|
-
* 存储文件卷,当前只用于数据卷,且限于 Windows,默认为 fase。
|
|
539
|
-
*/
|
|
540
|
-
IsBoot?: string;
|
|
541
|
-
/**
|
|
542
|
-
* 存储文件卷大小,单位GB,必须是10GB的整数倍,至少 100GB。
|
|
543
|
-
*/
|
|
544
|
-
Size?: number;
|
|
545
|
-
/**
|
|
546
|
-
* 已有存储文件卷ID,设置了,对应的 Size 可以为 0 GB。
|
|
547
|
-
*/
|
|
548
|
-
VolumeId?: string;
|
|
549
|
-
/**
|
|
550
|
-
* 存储文件卷代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看
|
|
551
|
-
*/
|
|
552
|
-
CouponId?: string;
|
|
553
|
-
}[];
|
|
489
|
+
Volumes?: object[];
|
|
554
490
|
/**
|
|
555
491
|
* KeypairId 密钥对ID,LoginMode为KeyPair时此项必须
|
|
556
492
|
*/
|
|
557
493
|
KeyPairId?: string;
|
|
494
|
+
/**
|
|
495
|
+
*
|
|
496
|
+
*/
|
|
497
|
+
Features?: {
|
|
498
|
+
/**
|
|
499
|
+
* 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启,仅与 NetCapability Normal 兼容。
|
|
500
|
+
*/
|
|
501
|
+
UNI?: boolean;
|
|
502
|
+
};
|
|
558
503
|
/**
|
|
559
504
|
* 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看
|
|
560
505
|
*/
|
|
@@ -1178,10 +1123,6 @@ export interface DescribeUHostKeyPairsResponse {
|
|
|
1178
1123
|
* 密钥对指纹。md5(ProjectId|KeyPairId|PublicKey)
|
|
1179
1124
|
*/
|
|
1180
1125
|
KeyPairFingerPrint?: string;
|
|
1181
|
-
/**
|
|
1182
|
-
* 密钥对的私钥内容。只有创建接口才会返回。
|
|
1183
|
-
*/
|
|
1184
|
-
PrivateKeyBody?: string;
|
|
1185
1126
|
/**
|
|
1186
1127
|
* 密钥对的创建时间,格式为Unix Timestamp。
|
|
1187
1128
|
*/
|
|
@@ -1341,33 +1282,11 @@ export interface GetUHostInstancePriceRequest {
|
|
|
1341
1282
|
/**
|
|
1342
1283
|
*
|
|
1343
1284
|
*/
|
|
1344
|
-
Volumes?:
|
|
1345
|
-
/**
|
|
1346
|
-
* 存储文件卷类型,当前仅支持[CLOUD_FSX]。请参考[[api:uhost-api:volume_type|卷类型]]。
|
|
1347
|
-
*/
|
|
1348
|
-
Type?: string;
|
|
1349
|
-
/**
|
|
1350
|
-
* 存储文件卷大小,单位GB,必须是10GB的整数倍,至少 100GB。
|
|
1351
|
-
*/
|
|
1352
|
-
Size?: number;
|
|
1353
|
-
/**
|
|
1354
|
-
* 存储文件卷,当前只用于数据卷,且限于 Windows,默认为 fase。
|
|
1355
|
-
*/
|
|
1356
|
-
IsBoot?: string;
|
|
1357
|
-
}[];
|
|
1285
|
+
Volumes?: object[];
|
|
1358
1286
|
/**
|
|
1359
1287
|
*
|
|
1360
1288
|
*/
|
|
1361
|
-
VirtualGpu?:
|
|
1362
|
-
/**
|
|
1363
|
-
* 虚拟 GPU 类型,枚举值["vGPU_T4","vGPU_P40","vGPU_V100"]
|
|
1364
|
-
*/
|
|
1365
|
-
GpuType?: string;
|
|
1366
|
-
/**
|
|
1367
|
-
* 虚拟 GPU 核数,默认 1。注:当前暂时只支持1颗。
|
|
1368
|
-
*/
|
|
1369
|
-
GPU?: number;
|
|
1370
|
-
};
|
|
1289
|
+
VirtualGpu?: object;
|
|
1371
1290
|
}
|
|
1372
1291
|
/**
|
|
1373
1292
|
* GetUHostInstancePrice - 根据UHost实例配置,获取UHost实例的价格。
|