@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.
- 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 +2 -0
- package/lib/services/index.js +14 -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 +201 -99
- package/lib/services/uhost/index.js +9 -0
- 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/uphone/index.d.ts +1986 -0
- package/lib/services/uphone/index.js +352 -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 +7 -7
|
@@ -15,6 +15,12 @@ export default class UECClient extends Client {
|
|
|
15
15
|
* See also: https://docs.ucloud.cn/api/uec-api/bind_u_ec_firewall
|
|
16
16
|
*/
|
|
17
17
|
bindUEcFirewall(request?: BindUEcFirewallRequest): Promise<BindUEcFirewallResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* CreateUEcCustomImage - 从指定虚拟机,生成自定义镜像。
|
|
20
|
+
*
|
|
21
|
+
* See also: https://docs.ucloud.cn/api/uec-api/create_u_ec_custom_image
|
|
22
|
+
*/
|
|
23
|
+
createUEcCustomImage(request?: CreateUEcCustomImageRequest): Promise<CreateUEcCustomImageResponse>;
|
|
18
24
|
/**
|
|
19
25
|
* CreateUEcFirewall - 创建外网防火墙
|
|
20
26
|
*
|
|
@@ -274,6 +280,32 @@ export interface BindUEcFirewallRequest {
|
|
|
274
280
|
*/
|
|
275
281
|
export interface BindUEcFirewallResponse {
|
|
276
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* CreateUEcCustomImage - 从指定虚拟机,生成自定义镜像。
|
|
285
|
+
*/
|
|
286
|
+
export interface CreateUEcCustomImageRequest {
|
|
287
|
+
/**
|
|
288
|
+
* 虚拟机实例ID
|
|
289
|
+
*/
|
|
290
|
+
NodeId: string;
|
|
291
|
+
/**
|
|
292
|
+
* 镜像名称
|
|
293
|
+
*/
|
|
294
|
+
ImageName: string;
|
|
295
|
+
/**
|
|
296
|
+
* 镜像描述
|
|
297
|
+
*/
|
|
298
|
+
ImageDescription?: string;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* CreateUEcCustomImage - 从指定虚拟机,生成自定义镜像。
|
|
302
|
+
*/
|
|
303
|
+
export interface CreateUEcCustomImageResponse {
|
|
304
|
+
/**
|
|
305
|
+
* 镜像ID
|
|
306
|
+
*/
|
|
307
|
+
ImageId: string;
|
|
308
|
+
}
|
|
277
309
|
/**
|
|
278
310
|
* CreateUEcFirewall - 创建外网防火墙
|
|
279
311
|
*/
|
|
@@ -350,7 +382,7 @@ export interface CreateUEcHolderRequest {
|
|
|
350
382
|
*/
|
|
351
383
|
Name?: string;
|
|
352
384
|
/**
|
|
353
|
-
* 机型(normal
|
|
385
|
+
* 机型(normal-经济型,hf-标准型,默认normal)
|
|
354
386
|
*/
|
|
355
387
|
ProductType?: string;
|
|
356
388
|
/**
|
|
@@ -545,7 +577,7 @@ export interface CreateUEcVHostRequest {
|
|
|
545
577
|
*/
|
|
546
578
|
SubnetId?: string;
|
|
547
579
|
/**
|
|
548
|
-
* 产品类型:normal
|
|
580
|
+
* 产品类型:normal(经济型),hf(标准型),g(Gpu型)
|
|
549
581
|
*/
|
|
550
582
|
ProductType?: string;
|
|
551
583
|
/**
|
|
@@ -557,9 +589,17 @@ export interface CreateUEcVHostRequest {
|
|
|
557
589
|
*/
|
|
558
590
|
Isp?: number[];
|
|
559
591
|
/**
|
|
560
|
-
*
|
|
592
|
+
* 是否需要外网ip(no-否)
|
|
561
593
|
*/
|
|
562
594
|
IsNeedOuterIp?: string;
|
|
595
|
+
/**
|
|
596
|
+
* Gpu卡核心数。仅Gpu机型支持此字段
|
|
597
|
+
*/
|
|
598
|
+
Gpu?: number;
|
|
599
|
+
/**
|
|
600
|
+
* Gpu类型,枚举值["T4S"],ProductType为G时必填
|
|
601
|
+
*/
|
|
602
|
+
GpuType?: string;
|
|
563
603
|
}
|
|
564
604
|
/**
|
|
565
605
|
* CreateUEcVHost - 创建虚拟机v2.0
|
|
@@ -932,7 +972,7 @@ export interface DescribeUEcHolderResponse {
|
|
|
932
972
|
}[];
|
|
933
973
|
}[];
|
|
934
974
|
/**
|
|
935
|
-
* 机器类型(normal
|
|
975
|
+
* 机器类型(normal经济型,hf标准型)
|
|
936
976
|
*/
|
|
937
977
|
ProductType?: string;
|
|
938
978
|
/**
|
|
@@ -1075,9 +1115,13 @@ export interface DescribeUEcIDCRequest {
|
|
|
1075
1115
|
*/
|
|
1076
1116
|
Type?: number;
|
|
1077
1117
|
/**
|
|
1078
|
-
* 产品类型:normal
|
|
1118
|
+
* 产品类型:normal(经济型),hf(标准型),g(GPU型)
|
|
1079
1119
|
*/
|
|
1080
1120
|
ProductType?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* Gpu卡核心数
|
|
1123
|
+
*/
|
|
1124
|
+
Gpu?: number;
|
|
1081
1125
|
}
|
|
1082
1126
|
/**
|
|
1083
1127
|
* DescribeUEcIDC - 获取IDC机房列表
|
|
@@ -1295,9 +1339,13 @@ export interface DescribeUEcVHostResponse {
|
|
|
1295
1339
|
*/
|
|
1296
1340
|
FirewallId?: string;
|
|
1297
1341
|
/**
|
|
1298
|
-
* 机器类型
|
|
1342
|
+
* 机器类型(normal-经济型,hf-标准型,g-GPU型)
|
|
1299
1343
|
*/
|
|
1300
1344
|
ProductType?: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* 内网ip列表
|
|
1347
|
+
*/
|
|
1348
|
+
InnerIps?: string[];
|
|
1301
1349
|
}[];
|
|
1302
1350
|
}
|
|
1303
1351
|
/**
|
|
@@ -1745,7 +1793,7 @@ export interface GetUEcImageResponse {
|
|
|
1745
1793
|
*/
|
|
1746
1794
|
ImageDesc?: string;
|
|
1747
1795
|
/**
|
|
1748
|
-
* 镜像状态:镜像状态 1可用,2
|
|
1796
|
+
* 镜像状态:镜像状态 1可用,2不可用,3制作中
|
|
1749
1797
|
*/
|
|
1750
1798
|
State?: number;
|
|
1751
1799
|
/**
|
|
@@ -1769,6 +1817,10 @@ export interface GetUEcImageResponse {
|
|
|
1769
1817
|
*/
|
|
1770
1818
|
State?: number;
|
|
1771
1819
|
}[];
|
|
1820
|
+
/**
|
|
1821
|
+
* 是否支持Gpu(1-支持,0-不支持)
|
|
1822
|
+
*/
|
|
1823
|
+
Gpu?: number;
|
|
1772
1824
|
}[];
|
|
1773
1825
|
/**
|
|
1774
1826
|
* 镜像总数
|
|
@@ -2065,13 +2117,21 @@ export interface GetUEcVHostPriceRequest {
|
|
|
2065
2117
|
*/
|
|
2066
2118
|
ChargeQuantity?: number;
|
|
2067
2119
|
/**
|
|
2068
|
-
* 产品类型:normal(标准型),
|
|
2120
|
+
* 产品类型:normal(经济型),hf(标准型),g(Gpu型),默认normal
|
|
2069
2121
|
*/
|
|
2070
2122
|
ProductType?: string;
|
|
2071
2123
|
/**
|
|
2072
2124
|
* 外网IP的数量,默认1
|
|
2073
2125
|
*/
|
|
2074
2126
|
IpCount?: number;
|
|
2127
|
+
/**
|
|
2128
|
+
* Gpu卡核心数。仅Gpu机型支持此字段
|
|
2129
|
+
*/
|
|
2130
|
+
Gpu?: number;
|
|
2131
|
+
/**
|
|
2132
|
+
* Gpu类型,枚举值["T4"],ProductType为g时必填
|
|
2133
|
+
*/
|
|
2134
|
+
GpuType?: string;
|
|
2075
2135
|
}
|
|
2076
2136
|
/**
|
|
2077
2137
|
* GetUEcVHostPrice - 获取虚拟机价格
|
|
@@ -21,6 +21,15 @@ class UECClient extends client_1.default {
|
|
|
21
21
|
const args = Object.assign({ Action: 'BindUEcFirewall' }, (request || {}));
|
|
22
22
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* CreateUEcCustomImage - 从指定虚拟机,生成自定义镜像。
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/uec-api/create_u_ec_custom_image
|
|
28
|
+
*/
|
|
29
|
+
createUEcCustomImage(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'CreateUEcCustomImage' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
24
33
|
/**
|
|
25
34
|
* CreateUEcFirewall - 创建外网防火墙
|
|
26
35
|
*
|
|
@@ -15,6 +15,12 @@ export default class UFileClient extends Client {
|
|
|
15
15
|
* See also: https://docs.ucloud.cn/api/ufile-api/create_bucket
|
|
16
16
|
*/
|
|
17
17
|
createBucket(request?: CreateBucketRequest): Promise<CreateBucketResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* CreateUFileLifeCycle - 创建生命周期管理
|
|
20
|
+
*
|
|
21
|
+
* See also: https://docs.ucloud.cn/api/ufile-api/create_ufile_life_cycle
|
|
22
|
+
*/
|
|
23
|
+
createUFileLifeCycle(request?: CreateUFileLifeCycleRequest): Promise<CreateUFileLifeCycleResponse>;
|
|
18
24
|
/**
|
|
19
25
|
* CreateUFileToken - 创建US3令牌
|
|
20
26
|
*
|
|
@@ -27,6 +33,12 @@ export default class UFileClient extends Client {
|
|
|
27
33
|
* See also: https://docs.ucloud.cn/api/ufile-api/delete_bucket
|
|
28
34
|
*/
|
|
29
35
|
deleteBucket(request?: DeleteBucketRequest): Promise<DeleteBucketResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* DeleteUFileLifeCycle - 删除生命周期管理
|
|
38
|
+
*
|
|
39
|
+
* See also: https://docs.ucloud.cn/api/ufile-api/delete_ufile_life_cycle
|
|
40
|
+
*/
|
|
41
|
+
deleteUFileLifeCycle(request?: DeleteUFileLifeCycleRequest): Promise<DeleteUFileLifeCycleResponse>;
|
|
30
42
|
/**
|
|
31
43
|
* DeleteUFileToken - 删除令牌
|
|
32
44
|
*
|
|
@@ -39,12 +51,24 @@ export default class UFileClient extends Client {
|
|
|
39
51
|
* See also: https://docs.ucloud.cn/api/ufile-api/describe_bucket
|
|
40
52
|
*/
|
|
41
53
|
describeBucket(request?: DescribeBucketRequest): Promise<DescribeBucketResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* DescribeUFileLifeCycle - 获取生命周期信息
|
|
56
|
+
*
|
|
57
|
+
* See also: https://docs.ucloud.cn/api/ufile-api/describe_ufile_life_cycle
|
|
58
|
+
*/
|
|
59
|
+
describeUFileLifeCycle(request?: DescribeUFileLifeCycleRequest): Promise<DescribeUFileLifeCycleResponse>;
|
|
42
60
|
/**
|
|
43
61
|
* DescribeUFileToken - 获取令牌信息
|
|
44
62
|
*
|
|
45
63
|
* See also: https://docs.ucloud.cn/api/ufile-api/describe_ufile_token
|
|
46
64
|
*/
|
|
47
65
|
describeUFileToken(request?: DescribeUFileTokenRequest): Promise<DescribeUFileTokenResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* GetUFileDailyReport - 查看日消费报表
|
|
68
|
+
*
|
|
69
|
+
* See also: https://docs.ucloud.cn/api/ufile-api/get_ufile_daily_report
|
|
70
|
+
*/
|
|
71
|
+
getUFileDailyReport(request?: GetUFileDailyReportRequest): Promise<GetUFileDailyReportResponse>;
|
|
48
72
|
/**
|
|
49
73
|
* GetUFileQuota - 查看配额状态
|
|
50
74
|
*
|
|
@@ -81,6 +105,12 @@ export default class UFileClient extends Client {
|
|
|
81
105
|
* See also: https://docs.ucloud.cn/api/ufile-api/update_bucket
|
|
82
106
|
*/
|
|
83
107
|
updateBucket(request?: UpdateBucketRequest): Promise<UpdateBucketResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* UpdateUFileLifeCycle - 更新生命周期管理
|
|
110
|
+
*
|
|
111
|
+
* See also: https://docs.ucloud.cn/api/ufile-api/update_ufile_life_cycle
|
|
112
|
+
*/
|
|
113
|
+
updateUFileLifeCycle(request?: UpdateUFileLifeCycleRequest): Promise<UpdateUFileLifeCycleResponse>;
|
|
84
114
|
/**
|
|
85
115
|
* UpdateUFileToken - 更新令牌的操作权限,可操作key的前缀,可操作bucket和令牌超时时间点
|
|
86
116
|
*
|
|
@@ -114,6 +144,48 @@ export interface CreateBucketResponse {
|
|
|
114
144
|
*/
|
|
115
145
|
BucketId?: string;
|
|
116
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* CreateUFileLifeCycle - 创建生命周期管理
|
|
149
|
+
*/
|
|
150
|
+
export interface CreateUFileLifeCycleRequest {
|
|
151
|
+
/**
|
|
152
|
+
* 生命周期名称
|
|
153
|
+
*/
|
|
154
|
+
LifeCycleName: string;
|
|
155
|
+
/**
|
|
156
|
+
* 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀;
|
|
157
|
+
*/
|
|
158
|
+
Prefix: string;
|
|
159
|
+
/**
|
|
160
|
+
* Enabled -- 启用,Disabled -- 不启用
|
|
161
|
+
*/
|
|
162
|
+
Status: string;
|
|
163
|
+
/**
|
|
164
|
+
* 存储空间名称
|
|
165
|
+
*/
|
|
166
|
+
BucketName: string;
|
|
167
|
+
/**
|
|
168
|
+
* 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;参数范围:[7,36500],0代表不启用
|
|
169
|
+
*/
|
|
170
|
+
Days?: number;
|
|
171
|
+
/**
|
|
172
|
+
* 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为归档存储类型;参数范围:[7,36500],0代表不启用
|
|
173
|
+
*/
|
|
174
|
+
ArchivalDays?: number;
|
|
175
|
+
/**
|
|
176
|
+
* 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为低频存储类型;参数范围:[7,36500],0代表不启用
|
|
177
|
+
*/
|
|
178
|
+
IADays?: number;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* CreateUFileLifeCycle - 创建生命周期管理
|
|
182
|
+
*/
|
|
183
|
+
export interface CreateUFileLifeCycleResponse {
|
|
184
|
+
/**
|
|
185
|
+
* 生命周期Id
|
|
186
|
+
*/
|
|
187
|
+
LifeCycleId: string;
|
|
188
|
+
}
|
|
117
189
|
/**
|
|
118
190
|
* CreateUFileToken - 创建US3令牌
|
|
119
191
|
*/
|
|
@@ -170,6 +242,24 @@ export interface DeleteBucketResponse {
|
|
|
170
242
|
*/
|
|
171
243
|
BucketId?: string;
|
|
172
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* DeleteUFileLifeCycle - 删除生命周期管理
|
|
247
|
+
*/
|
|
248
|
+
export interface DeleteUFileLifeCycleRequest {
|
|
249
|
+
/**
|
|
250
|
+
* 生命周期Id
|
|
251
|
+
*/
|
|
252
|
+
LifeCycleId: string;
|
|
253
|
+
/**
|
|
254
|
+
* 存储空间名称
|
|
255
|
+
*/
|
|
256
|
+
BucketName: string;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* DeleteUFileLifeCycle - 删除生命周期管理
|
|
260
|
+
*/
|
|
261
|
+
export interface DeleteUFileLifeCycleResponse {
|
|
262
|
+
}
|
|
173
263
|
/**
|
|
174
264
|
* DeleteUFileToken - 删除令牌
|
|
175
265
|
*/
|
|
@@ -272,6 +362,61 @@ export interface DescribeBucketResponse {
|
|
|
272
362
|
HasUserDomain?: number;
|
|
273
363
|
}[];
|
|
274
364
|
}
|
|
365
|
+
/**
|
|
366
|
+
* DescribeUFileLifeCycle - 获取生命周期信息
|
|
367
|
+
*/
|
|
368
|
+
export interface DescribeUFileLifeCycleRequest {
|
|
369
|
+
/**
|
|
370
|
+
* 存储空间名称
|
|
371
|
+
*/
|
|
372
|
+
BucketName: string;
|
|
373
|
+
/**
|
|
374
|
+
* 生命周期Id;不传递此参数拉取存储空间下面的所有生命周期信息
|
|
375
|
+
*/
|
|
376
|
+
LifeCycleId?: string;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* DescribeUFileLifeCycle - 获取生命周期信息
|
|
380
|
+
*/
|
|
381
|
+
export interface DescribeUFileLifeCycleResponse {
|
|
382
|
+
/**
|
|
383
|
+
* 生命周期信息
|
|
384
|
+
*/
|
|
385
|
+
DateSet: {
|
|
386
|
+
/**
|
|
387
|
+
* 生命周期Id
|
|
388
|
+
*/
|
|
389
|
+
LifeCycleId?: string;
|
|
390
|
+
/**
|
|
391
|
+
* 生命周期名称
|
|
392
|
+
*/
|
|
393
|
+
LifeCycleName?: string;
|
|
394
|
+
/**
|
|
395
|
+
* 生命周期所适用的前缀;*为整个存储空间文件;
|
|
396
|
+
*/
|
|
397
|
+
Prefix?: string;
|
|
398
|
+
/**
|
|
399
|
+
* 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除,0代表不启用;
|
|
400
|
+
*/
|
|
401
|
+
Days?: number;
|
|
402
|
+
/**
|
|
403
|
+
* Enabled -- 启用,Disabled -- 不启用
|
|
404
|
+
*/
|
|
405
|
+
Status?: string;
|
|
406
|
+
/**
|
|
407
|
+
* 存储空间名称
|
|
408
|
+
*/
|
|
409
|
+
BucketName?: string;
|
|
410
|
+
/**
|
|
411
|
+
* 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型,0代表不启用;
|
|
412
|
+
*/
|
|
413
|
+
ArchivalDays?: number;
|
|
414
|
+
/**
|
|
415
|
+
* 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型,0代表不启用;
|
|
416
|
+
*/
|
|
417
|
+
IADays?: number;
|
|
418
|
+
}[];
|
|
419
|
+
}
|
|
275
420
|
/**
|
|
276
421
|
* DescribeUFileToken - 获取令牌信息
|
|
277
422
|
*/
|
|
@@ -343,6 +488,107 @@ export interface DescribeUFileTokenResponse {
|
|
|
343
488
|
Region: string;
|
|
344
489
|
}[];
|
|
345
490
|
}
|
|
491
|
+
/**
|
|
492
|
+
* GetUFileDailyReport - 查看日消费报表
|
|
493
|
+
*/
|
|
494
|
+
export interface GetUFileDailyReportRequest {
|
|
495
|
+
/**
|
|
496
|
+
* 查询开始时间;unix时间戳,单位s
|
|
497
|
+
*/
|
|
498
|
+
StartTime: number;
|
|
499
|
+
/**
|
|
500
|
+
* 查询结束时间;unix时间戳,单位s
|
|
501
|
+
*/
|
|
502
|
+
EndTime: number;
|
|
503
|
+
/**
|
|
504
|
+
* 空间名称。此字段不为空,返回此Bucket日使用量;否则,返回这个项目的日使用量
|
|
505
|
+
*/
|
|
506
|
+
BucketName?: string;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* GetUFileDailyReport - 查看日消费报表
|
|
510
|
+
*/
|
|
511
|
+
export interface GetUFileDailyReportResponse {
|
|
512
|
+
/**
|
|
513
|
+
* 消费情况
|
|
514
|
+
*/
|
|
515
|
+
DataSet: {
|
|
516
|
+
/**
|
|
517
|
+
* 总消费情况
|
|
518
|
+
*/
|
|
519
|
+
Total?: {
|
|
520
|
+
/**
|
|
521
|
+
* 下载流量:单位byte;国内无此字段
|
|
522
|
+
*/
|
|
523
|
+
Flow?: number;
|
|
524
|
+
/**
|
|
525
|
+
* 闲时流量;单位byte;海外无此字段
|
|
526
|
+
*/
|
|
527
|
+
IdleFlow?: number;
|
|
528
|
+
/**
|
|
529
|
+
* 忙时流量;单位byte;海外无此字段
|
|
530
|
+
*/
|
|
531
|
+
BusyFlow?: number;
|
|
532
|
+
/**
|
|
533
|
+
* cdn回源流量;单位byte
|
|
534
|
+
*/
|
|
535
|
+
CdnFlow?: number;
|
|
536
|
+
/**
|
|
537
|
+
* API请求次数(万次)
|
|
538
|
+
*/
|
|
539
|
+
ApiTimes?: number;
|
|
540
|
+
}[];
|
|
541
|
+
/**
|
|
542
|
+
* 日消费情况
|
|
543
|
+
*/
|
|
544
|
+
Daily?: {
|
|
545
|
+
/**
|
|
546
|
+
* 标准存储量;单位byte
|
|
547
|
+
*/
|
|
548
|
+
Storage?: number;
|
|
549
|
+
/**
|
|
550
|
+
* 低频存储量;单位byte
|
|
551
|
+
*/
|
|
552
|
+
IaStorage?: number;
|
|
553
|
+
/**
|
|
554
|
+
* 冷存(归档)存储量;单位byte
|
|
555
|
+
*/
|
|
556
|
+
AcStorage?: number;
|
|
557
|
+
/**
|
|
558
|
+
* 低频数据取回量;单位byte
|
|
559
|
+
*/
|
|
560
|
+
IaGetSize?: number;
|
|
561
|
+
/**
|
|
562
|
+
* 冷存激活量,即归档数据取回量;单位byte
|
|
563
|
+
*/
|
|
564
|
+
AcRestore?: number;
|
|
565
|
+
/**
|
|
566
|
+
* 忙时流量;单位byte;海外无此字段
|
|
567
|
+
*/
|
|
568
|
+
BusyFlow?: number;
|
|
569
|
+
/**
|
|
570
|
+
* 闲时流量;单位byte;海外无此字段
|
|
571
|
+
*/
|
|
572
|
+
IdleFlow?: number;
|
|
573
|
+
/**
|
|
574
|
+
* cdn回源流量;单位byte
|
|
575
|
+
*/
|
|
576
|
+
CdnFlow?: number;
|
|
577
|
+
/**
|
|
578
|
+
* 下载流量:单位byte;国内无此字段
|
|
579
|
+
*/
|
|
580
|
+
Flow?: number;
|
|
581
|
+
/**
|
|
582
|
+
* 配额消费时间,unix时间戳(单位s),精确到日期
|
|
583
|
+
*/
|
|
584
|
+
Date?: number;
|
|
585
|
+
/**
|
|
586
|
+
* API请求次数(万次)
|
|
587
|
+
*/
|
|
588
|
+
ApiTimes?: number;
|
|
589
|
+
}[];
|
|
590
|
+
}[];
|
|
591
|
+
}
|
|
346
592
|
/**
|
|
347
593
|
* GetUFileQuota - 查看配额状态
|
|
348
594
|
*/
|
|
@@ -536,6 +782,48 @@ export interface UpdateBucketResponse {
|
|
|
536
782
|
*/
|
|
537
783
|
BucketId?: string;
|
|
538
784
|
}
|
|
785
|
+
/**
|
|
786
|
+
* UpdateUFileLifeCycle - 更新生命周期管理
|
|
787
|
+
*/
|
|
788
|
+
export interface UpdateUFileLifeCycleRequest {
|
|
789
|
+
/**
|
|
790
|
+
* 生命周期Id
|
|
791
|
+
*/
|
|
792
|
+
LifeCycleId: string;
|
|
793
|
+
/**
|
|
794
|
+
* 生命周期名称
|
|
795
|
+
*/
|
|
796
|
+
LifeCycleName: string;
|
|
797
|
+
/**
|
|
798
|
+
* 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀;
|
|
799
|
+
*/
|
|
800
|
+
Prefix: string;
|
|
801
|
+
/**
|
|
802
|
+
* Enabled -- 启用,Disabled -- 不启用
|
|
803
|
+
*/
|
|
804
|
+
Status: string;
|
|
805
|
+
/**
|
|
806
|
+
* 存储空间名称
|
|
807
|
+
*/
|
|
808
|
+
BucketName: string;
|
|
809
|
+
/**
|
|
810
|
+
* 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500]
|
|
811
|
+
*/
|
|
812
|
+
Days?: number;
|
|
813
|
+
/**
|
|
814
|
+
* 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型;范围: [7,36500],0代表不启用
|
|
815
|
+
*/
|
|
816
|
+
ArchivalDays?: number;
|
|
817
|
+
/**
|
|
818
|
+
* 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型;范围: [7,36500],0代表不启用
|
|
819
|
+
*/
|
|
820
|
+
IADays?: number;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* UpdateUFileLifeCycle - 更新生命周期管理
|
|
824
|
+
*/
|
|
825
|
+
export interface UpdateUFileLifeCycleResponse {
|
|
826
|
+
}
|
|
539
827
|
/**
|
|
540
828
|
* UpdateUFileToken - 更新令牌的操作权限,可操作key的前缀,可操作bucket和令牌超时时间点
|
|
541
829
|
*/
|
|
@@ -21,6 +21,15 @@ class UFileClient extends client_1.default {
|
|
|
21
21
|
const args = Object.assign({ Action: 'CreateBucket' }, (request || {}));
|
|
22
22
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* CreateUFileLifeCycle - 创建生命周期管理
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/ufile-api/create_ufile_life_cycle
|
|
28
|
+
*/
|
|
29
|
+
createUFileLifeCycle(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'CreateUFileLifeCycle' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
24
33
|
/**
|
|
25
34
|
* CreateUFileToken - 创建US3令牌
|
|
26
35
|
*
|
|
@@ -39,6 +48,15 @@ class UFileClient extends client_1.default {
|
|
|
39
48
|
const args = Object.assign({ Action: 'DeleteBucket' }, (request || {}));
|
|
40
49
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* DeleteUFileLifeCycle - 删除生命周期管理
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/ufile-api/delete_ufile_life_cycle
|
|
55
|
+
*/
|
|
56
|
+
deleteUFileLifeCycle(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'DeleteUFileLifeCycle' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
42
60
|
/**
|
|
43
61
|
* DeleteUFileToken - 删除令牌
|
|
44
62
|
*
|
|
@@ -57,6 +75,15 @@ class UFileClient extends client_1.default {
|
|
|
57
75
|
const args = Object.assign({ Action: 'DescribeBucket' }, (request || {}));
|
|
58
76
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* DescribeUFileLifeCycle - 获取生命周期信息
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/ufile-api/describe_ufile_life_cycle
|
|
82
|
+
*/
|
|
83
|
+
describeUFileLifeCycle(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'DescribeUFileLifeCycle' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
60
87
|
/**
|
|
61
88
|
* DescribeUFileToken - 获取令牌信息
|
|
62
89
|
*
|
|
@@ -66,6 +93,15 @@ class UFileClient extends client_1.default {
|
|
|
66
93
|
const args = Object.assign({ Action: 'DescribeUFileToken' }, (request || {}));
|
|
67
94
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* GetUFileDailyReport - 查看日消费报表
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/ufile-api/get_ufile_daily_report
|
|
100
|
+
*/
|
|
101
|
+
getUFileDailyReport(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'GetUFileDailyReport' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
69
105
|
/**
|
|
70
106
|
* GetUFileQuota - 查看配额状态
|
|
71
107
|
*
|
|
@@ -120,6 +156,15 @@ class UFileClient extends client_1.default {
|
|
|
120
156
|
const args = Object.assign({ Action: 'UpdateBucket' }, (request || {}));
|
|
121
157
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
122
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* UpdateUFileLifeCycle - 更新生命周期管理
|
|
161
|
+
*
|
|
162
|
+
* See also: https://docs.ucloud.cn/api/ufile-api/update_ufile_life_cycle
|
|
163
|
+
*/
|
|
164
|
+
updateUFileLifeCycle(request) {
|
|
165
|
+
const args = Object.assign({ Action: 'UpdateUFileLifeCycle' }, (request || {}));
|
|
166
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
167
|
+
}
|
|
123
168
|
/**
|
|
124
169
|
* UpdateUFileToken - 更新令牌的操作权限,可操作key的前缀,可操作bucket和令牌超时时间点
|
|
125
170
|
*
|