@ucloud-sdks/ucloud-sdk-js 0.0.5 → 0.2.1

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.
Files changed (43) hide show
  1. package/lib/core/middlewares.js +1 -1
  2. package/lib/services/cube/index.d.ts +141 -1
  3. package/lib/services/cube/index.js +36 -0
  4. package/lib/services/index.d.ts +2 -0
  5. package/lib/services/index.js +14 -0
  6. package/lib/services/ipsecvpn/index.d.ts +13 -5
  7. package/lib/services/pathx/index.d.ts +986 -60
  8. package/lib/services/pathx/index.js +144 -0
  9. package/lib/services/uaccount/index.d.ts +0 -24
  10. package/lib/services/uaccount/index.js +0 -9
  11. package/lib/services/ubill/index.d.ts +284 -4
  12. package/lib/services/ubill/index.js +18 -0
  13. package/lib/services/ucdn/index.d.ts +1085 -946
  14. package/lib/services/ucdn/index.js +72 -45
  15. package/lib/services/udb/index.d.ts +89 -12
  16. package/lib/services/udb/index.js +21 -3
  17. package/lib/services/udisk/index.d.ts +32 -8
  18. package/lib/services/uec/index.d.ts +68 -8
  19. package/lib/services/uec/index.js +9 -0
  20. package/lib/services/ufile/index.d.ts +288 -0
  21. package/lib/services/ufile/index.js +45 -0
  22. package/lib/services/ufs/index.d.ts +201 -3
  23. package/lib/services/ufs/index.js +45 -0
  24. package/lib/services/uhost/index.d.ts +201 -99
  25. package/lib/services/uhost/index.js +9 -0
  26. package/lib/services/uk8s/index.d.ts +690 -9
  27. package/lib/services/uk8s/index.js +45 -0
  28. package/lib/services/ulb/index.d.ts +45 -5
  29. package/lib/services/ulb/index.js +9 -0
  30. package/lib/services/umem/index.d.ts +337 -9
  31. package/lib/services/umem/index.js +27 -0
  32. package/lib/services/unet/index.d.ts +175 -6
  33. package/lib/services/unet/index.js +36 -0
  34. package/lib/services/uphone/index.d.ts +1986 -0
  35. package/lib/services/uphone/index.js +352 -0
  36. package/lib/services/uphost/index.d.ts +221 -25
  37. package/lib/services/uphost/index.js +36 -0
  38. package/lib/services/usms/index.d.ts +23 -3
  39. package/lib/services/uvms/index.d.ts +64 -0
  40. package/lib/services/uvms/index.js +25 -0
  41. package/lib/services/vpc/index.d.ts +390 -19
  42. package/lib/services/vpc/index.js +54 -0
  43. package/package.json +7 -7
@@ -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,最大不超过20T,香港容量型必须为100的整数倍,Size最小为500GB,北京,上海,广州的容量型必须为1024的整数倍,Size最小为1024GB。性能型文件系统Size最小为100GB
98
+ * 文件系统大小,单位为GB,必须为100的整数倍,容量型Size最小为500GB,性能型文件系统Size最小为100GB
43
99
  */
44
100
  Size: number;
45
101
  /**
46
- * 文件系统存储类型,枚举值,Basic表示容量型,Advanced表示性能型
102
+ * 文件系统存储类型,Basic表示容量型,Advanced表示性能型
47
103
  */
48
104
  StorageType: string;
49
105
  /**
50
- * 文件系统协议,枚举值,NFSv3表示NFS V3协议,NFSv4表示NFS V4协议
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;