@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
|
@@ -39,6 +39,24 @@ class PathXClient extends client_1.default {
|
|
|
39
39
|
const args = Object.assign({ Action: 'CreatePathXSSL' }, (request || {}));
|
|
40
40
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* CreateUGA3Instance - 创建全球统一接入加速配置项
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/create_uga3_instance
|
|
46
|
+
*/
|
|
47
|
+
createUGA3Instance(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'CreateUGA3Instance' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* CreateUGA3Port - 创建统一接入加速实例端口,目前仅支持四层TCP端口
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/create_uga3_port
|
|
55
|
+
*/
|
|
56
|
+
createUGA3Port(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'CreateUGA3Port' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
42
60
|
/**
|
|
43
61
|
* CreateUGAForwarder - 创建加速实例转发器,支持HTTPS接入HTTPS回源、HTTPS接入HTTP回源、HTTP接入HTTP回源、TCP接入TCP回源、UDP接入UDP回源、 支持WSS接入WSS回源、WSS接入WS回源、WS接入WS回源
|
|
44
62
|
*
|
|
@@ -84,6 +102,24 @@ class PathXClient extends client_1.default {
|
|
|
84
102
|
const args = Object.assign({ Action: 'DeletePathXSSL' }, (request || {}));
|
|
85
103
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* DeleteUGA3Instance - 删除全球统一接入转发实例
|
|
107
|
+
*
|
|
108
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/delete_uga3_instance
|
|
109
|
+
*/
|
|
110
|
+
deleteUGA3Instance(request) {
|
|
111
|
+
const args = Object.assign({ Action: 'DeleteUGA3Instance' }, (request || {}));
|
|
112
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* DeleteUGA3Port - 删除统一接入加速实例转发器 按接入端口删除
|
|
116
|
+
*
|
|
117
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/delete_uga3_port
|
|
118
|
+
*/
|
|
119
|
+
deleteUGA3Port(request) {
|
|
120
|
+
const args = Object.assign({ Action: 'DeleteUGA3Port' }, (request || {}));
|
|
121
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
122
|
+
}
|
|
87
123
|
/**
|
|
88
124
|
* DeleteUGAForwarder - 删除加速实例转发器 按接入端口删除
|
|
89
125
|
*
|
|
@@ -138,6 +174,33 @@ class PathXClient extends client_1.default {
|
|
|
138
174
|
const args = Object.assign({ Action: 'DescribePathXSSL' }, (request || {}));
|
|
139
175
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
140
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* DescribeUGA3Area - 获取全球接入源站可选列表
|
|
179
|
+
*
|
|
180
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/describe_uga3_area
|
|
181
|
+
*/
|
|
182
|
+
describeUGA3Area(request) {
|
|
183
|
+
const args = Object.assign({ Action: 'DescribeUGA3Area' }, (request || {}));
|
|
184
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* DescribeUGA3Instance - 获取全球统一接入加速服务加速配置信息,指定实例ID返回单个实例。未指定实例ID时 指定分页参数 则按创建时间降序 返回记录
|
|
188
|
+
*
|
|
189
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/describe_uga3_instance
|
|
190
|
+
*/
|
|
191
|
+
describeUGA3Instance(request) {
|
|
192
|
+
const args = Object.assign({ Action: 'DescribeUGA3Instance' }, (request || {}));
|
|
193
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* DescribeUGA3Optimization - 获取全球接入UGA3线路加速化情况
|
|
197
|
+
*
|
|
198
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/describe_uga3_optimization
|
|
199
|
+
*/
|
|
200
|
+
describeUGA3Optimization(request) {
|
|
201
|
+
const args = Object.assign({ Action: 'DescribeUGA3Optimization' }, (request || {}));
|
|
202
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
203
|
+
}
|
|
141
204
|
/**
|
|
142
205
|
* DescribeUGAInstance - 获取全球加速服务加速配置信息,指定实例ID返回单个实例。未指定实例ID时 指定分页参数 则按创建时间降序 返回记录
|
|
143
206
|
*
|
|
@@ -192,6 +255,33 @@ class PathXClient extends client_1.default {
|
|
|
192
255
|
const args = Object.assign({ Action: 'GetPathXMetric' }, (request || {}));
|
|
193
256
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
194
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* GetUGA3Metric - 获取全地域加速监控信息
|
|
260
|
+
*
|
|
261
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/get_uga3_metric
|
|
262
|
+
*/
|
|
263
|
+
getUGA3Metric(request) {
|
|
264
|
+
const args = Object.assign({ Action: 'GetUGA3Metric' }, (request || {}));
|
|
265
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* GetUGA3Price - 获取全球统一接入转发实例价格
|
|
269
|
+
*
|
|
270
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/get_uga3_price
|
|
271
|
+
*/
|
|
272
|
+
getUGA3Price(request) {
|
|
273
|
+
const args = Object.assign({ Action: 'GetUGA3Price' }, (request || {}));
|
|
274
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* GetUGA3UpdatePrice - 全球统一接入获取实例更新价格(增加、删退)
|
|
278
|
+
*
|
|
279
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/get_uga3_update_price
|
|
280
|
+
*/
|
|
281
|
+
getUGA3UpdatePrice(request) {
|
|
282
|
+
const args = Object.assign({ Action: 'GetUGA3UpdatePrice' }, (request || {}));
|
|
283
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
284
|
+
}
|
|
195
285
|
/**
|
|
196
286
|
* ModifyGlobalSSHPort - 修改GlobalSSH端口
|
|
197
287
|
*
|
|
@@ -201,6 +291,15 @@ class PathXClient extends client_1.default {
|
|
|
201
291
|
const args = Object.assign({ Action: 'ModifyGlobalSSHPort' }, (request || {}));
|
|
202
292
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
203
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* ModifyGlobalSSHRemark - 修改GlobalSSH备注
|
|
296
|
+
*
|
|
297
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/modify_global_ssh_remark
|
|
298
|
+
*/
|
|
299
|
+
modifyGlobalSSHRemark(request) {
|
|
300
|
+
const args = Object.assign({ Action: 'ModifyGlobalSSHRemark' }, (request || {}));
|
|
301
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
302
|
+
}
|
|
204
303
|
/**
|
|
205
304
|
* ModifyGlobalSSHType - 修改GlobalSSH实例类型,仅支持低版本升级到高版本,不支持高版本降级到低版本
|
|
206
305
|
*
|
|
@@ -210,6 +309,42 @@ class PathXClient extends client_1.default {
|
|
|
210
309
|
const args = Object.assign({ Action: 'ModifyGlobalSSHType' }, (request || {}));
|
|
211
310
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
212
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
* ModifyUGA3Bandwidth - 修改统一接入加速配置带宽
|
|
314
|
+
*
|
|
315
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/modify_uga3_bandwidth
|
|
316
|
+
*/
|
|
317
|
+
modifyUGA3Bandwidth(request) {
|
|
318
|
+
const args = Object.assign({ Action: 'ModifyUGA3Bandwidth' }, (request || {}));
|
|
319
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* ModifyUGA3Instance - 修改统一接入加速配置属性,如Name,ReMark
|
|
323
|
+
*
|
|
324
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/modify_uga3_instance
|
|
325
|
+
*/
|
|
326
|
+
modifyUGA3Instance(request) {
|
|
327
|
+
const args = Object.assign({ Action: 'ModifyUGA3Instance' }, (request || {}));
|
|
328
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* ModifyUGA3OriginInfo - Domain, IPList注意:修改Domain或IPList时, 请确保源站服务端口已经开启且外网防火墙允许pathx出口ip访问。
|
|
332
|
+
*
|
|
333
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/modify_uga3_origin_info
|
|
334
|
+
*/
|
|
335
|
+
modifyUGA3OriginInfo(request) {
|
|
336
|
+
const args = Object.assign({ Action: 'ModifyUGA3OriginInfo' }, (request || {}));
|
|
337
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* ModifyUGA3Port - 修改统一接入加速实例端口,目前仅支持四层TCP端口
|
|
341
|
+
*
|
|
342
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/modify_uga3_port
|
|
343
|
+
*/
|
|
344
|
+
modifyUGA3Port(request) {
|
|
345
|
+
const args = Object.assign({ Action: 'ModifyUGA3Port' }, (request || {}));
|
|
346
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
347
|
+
}
|
|
213
348
|
/**
|
|
214
349
|
* ModifyUPathBandwidth - 修改加速线路带宽
|
|
215
350
|
*
|
|
@@ -255,5 +390,14 @@ class PathXClient extends client_1.default {
|
|
|
255
390
|
const args = Object.assign({ Action: 'UnBindPathXSSL' }, (request || {}));
|
|
256
391
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
257
392
|
}
|
|
393
|
+
/**
|
|
394
|
+
* UpdatePathXWhitelist - 更新入口白名单,仅限GlobalSSH 实例使用。其他uga-实例不生效
|
|
395
|
+
*
|
|
396
|
+
* See also: https://docs.ucloud.cn/api/pathx-api/update_path_x_whitelist
|
|
397
|
+
*/
|
|
398
|
+
updatePathXWhitelist(request) {
|
|
399
|
+
const args = Object.assign({ Action: 'UpdatePathXWhitelist' }, (request || {}));
|
|
400
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
401
|
+
}
|
|
258
402
|
}
|
|
259
403
|
exports.default = PathXClient;
|
|
@@ -15,12 +15,6 @@ export default class UAccountClient extends Client {
|
|
|
15
15
|
* See also: https://docs.ucloud.cn/api/uaccount-api/add_member_to_project
|
|
16
16
|
*/
|
|
17
17
|
addMemberToProject(request?: AddMemberToProjectRequest): Promise<AddMemberToProjectResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* CreateProject - 创建项目
|
|
20
|
-
*
|
|
21
|
-
* See also: https://docs.ucloud.cn/api/uaccount-api/create_project
|
|
22
|
-
*/
|
|
23
|
-
createProject(request?: CreateProjectRequest): Promise<CreateProjectResponse>;
|
|
24
18
|
/**
|
|
25
19
|
* FreezeMember - 冻结成员
|
|
26
20
|
*
|
|
@@ -82,24 +76,6 @@ export interface AddMemberToProjectRequest {
|
|
|
82
76
|
*/
|
|
83
77
|
export interface AddMemberToProjectResponse {
|
|
84
78
|
}
|
|
85
|
-
/**
|
|
86
|
-
* CreateProject - 创建项目
|
|
87
|
-
*/
|
|
88
|
-
export interface CreateProjectRequest {
|
|
89
|
-
/**
|
|
90
|
-
* 项目名称,不得与现有项目重名
|
|
91
|
-
*/
|
|
92
|
-
ProjectName: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* CreateProject - 创建项目
|
|
96
|
-
*/
|
|
97
|
-
export interface CreateProjectResponse {
|
|
98
|
-
/**
|
|
99
|
-
* 所创建项目的Id
|
|
100
|
-
*/
|
|
101
|
-
ProjectId: string;
|
|
102
|
-
}
|
|
103
79
|
/**
|
|
104
80
|
* FreezeMember - 冻结成员
|
|
105
81
|
*/
|
|
@@ -21,15 +21,6 @@ class UAccountClient extends client_1.default {
|
|
|
21
21
|
const args = Object.assign({ Action: 'AddMemberToProject' }, (request || {}));
|
|
22
22
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
25
|
-
* CreateProject - 创建项目
|
|
26
|
-
*
|
|
27
|
-
* See also: https://docs.ucloud.cn/api/uaccount-api/create_project
|
|
28
|
-
*/
|
|
29
|
-
createProject(request) {
|
|
30
|
-
const args = Object.assign({ Action: 'CreateProject' }, (request || {}));
|
|
31
|
-
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
-
}
|
|
33
24
|
/**
|
|
34
25
|
* FreezeMember - 冻结成员
|
|
35
26
|
*
|
|
@@ -21,6 +21,18 @@ export default class UBillClient extends Client {
|
|
|
21
21
|
* See also: https://docs.ucloud.cn/api/ubill-api/get_bill_data_file_url
|
|
22
22
|
*/
|
|
23
23
|
getBillDataFileUrl(request?: GetBillDataFileUrlRequest): Promise<GetBillDataFileUrlResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* ListUBillDetail - 获取某个账期内的所有消费。
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/ubill-api/list_u_bill_detail
|
|
28
|
+
*/
|
|
29
|
+
listUBillDetail(request?: ListUBillDetailRequest): Promise<ListUBillDetailResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* ListUBillOverview - 账单总览。可按产品/项目/用户纬度获取某个账期内账单总览信息。
|
|
32
|
+
*
|
|
33
|
+
* See also: https://docs.ucloud.cn/api/ubill-api/list_u_bill_overview
|
|
34
|
+
*/
|
|
35
|
+
listUBillOverview(request?: ListUBillOverviewRequest): Promise<ListUBillOverviewResponse>;
|
|
24
36
|
}
|
|
25
37
|
/**
|
|
26
38
|
* GetBalance - 获取账户余额
|
|
@@ -61,14 +73,18 @@ export interface GetBalanceResponse {
|
|
|
61
73
|
* GetBillDataFileUrl - 生成账单数据文件下载的 url
|
|
62
74
|
*/
|
|
63
75
|
export interface GetBillDataFileUrlRequest {
|
|
64
|
-
/**
|
|
65
|
-
* 账期(时间戳格式)
|
|
66
|
-
*/
|
|
67
|
-
BillPeriod: number;
|
|
68
76
|
/**
|
|
69
77
|
* 账单类型,传 0 时获取账单总览报表,传 1 获取账单明细报表
|
|
70
78
|
*/
|
|
71
79
|
BillType: number;
|
|
80
|
+
/**
|
|
81
|
+
* 账期(字符串格式,YYYY-MM,例如2021-08). 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先
|
|
82
|
+
*/
|
|
83
|
+
BillingCycle: string;
|
|
84
|
+
/**
|
|
85
|
+
* 此字段不推荐使用,建议使用BillingCycle. 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先
|
|
86
|
+
*/
|
|
87
|
+
BillPeriod?: number;
|
|
72
88
|
/**
|
|
73
89
|
* 获取账单总览报表时,账单的支付状态,传 0 时获取待支付账单,传 1 时获取已支付账单。获取账单明细报表时该参数无效
|
|
74
90
|
*/
|
|
@@ -77,6 +93,10 @@ export interface GetBillDataFileUrlRequest {
|
|
|
77
93
|
* 如需求其他语言版本的账单则使用此参数。默认中文。如 RequireVersion = "EN",则提供英文版本账单。
|
|
78
94
|
*/
|
|
79
95
|
RequireVersion?: string;
|
|
96
|
+
/**
|
|
97
|
+
* 文件版本,若为"v1"表示获取带有子用户信息的账单,可以为空
|
|
98
|
+
*/
|
|
99
|
+
Version?: string;
|
|
80
100
|
}
|
|
81
101
|
/**
|
|
82
102
|
* GetBillDataFileUrl - 生成账单数据文件下载的 url
|
|
@@ -91,3 +111,263 @@ export interface GetBillDataFileUrlResponse {
|
|
|
91
111
|
*/
|
|
92
112
|
IsValid?: string;
|
|
93
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* ListUBillDetail - 获取某个账期内的所有消费。
|
|
116
|
+
*/
|
|
117
|
+
export interface ListUBillDetailRequest {
|
|
118
|
+
/**
|
|
119
|
+
* 账期,YYYY-MM,比如2021-08,只支持2018-05之后的查询
|
|
120
|
+
*/
|
|
121
|
+
BillingCycle: string;
|
|
122
|
+
/**
|
|
123
|
+
* 项目名称 (筛选项, 默认全部)
|
|
124
|
+
*/
|
|
125
|
+
ProjectName?: string;
|
|
126
|
+
/**
|
|
127
|
+
* 资源ID(筛选项, 默认全部) 支持多筛选,多筛选请在请求参数中添加多个字段例ResourceIds.0: uhost-bzgf1gh5,ResourceIds.1: uhost-gu1xpspa,
|
|
128
|
+
*/
|
|
129
|
+
ResourceIds?: string[];
|
|
130
|
+
/**
|
|
131
|
+
* 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款
|
|
132
|
+
*/
|
|
133
|
+
OrderType?: string;
|
|
134
|
+
/**
|
|
135
|
+
* 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 \\ > Post:后付费
|
|
136
|
+
*/
|
|
137
|
+
ChargeType?: string;
|
|
138
|
+
/**
|
|
139
|
+
* 是否显示0元订单 (0 不显示, 1 显示, 默认0)
|
|
140
|
+
*/
|
|
141
|
+
ShowZero?: number;
|
|
142
|
+
/**
|
|
143
|
+
* 支付状态 (筛选项, 1:仅显示未支付订单; 2:仅显示已支付订单; 0:两者都显示)
|
|
144
|
+
*/
|
|
145
|
+
PaidState?: number;
|
|
146
|
+
/**
|
|
147
|
+
* 用户邮箱,可以根据用户邮箱来进行筛选
|
|
148
|
+
*/
|
|
149
|
+
UserEmail?: string;
|
|
150
|
+
/**
|
|
151
|
+
* 每页数量,默认值25,最大值:100。
|
|
152
|
+
*/
|
|
153
|
+
Limit?: number;
|
|
154
|
+
/**
|
|
155
|
+
* 数据偏移量 (默认0)
|
|
156
|
+
*/
|
|
157
|
+
Offset?: number;
|
|
158
|
+
/**
|
|
159
|
+
* 产品类型 (筛选项, 默认全部),支持多筛选,多筛选请在请求参数中添加多个字段。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘
|
|
160
|
+
*/
|
|
161
|
+
ResourceTypes?: string[];
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* ListUBillDetail - 获取某个账期内的所有消费。
|
|
165
|
+
*/
|
|
166
|
+
export interface ListUBillDetailResponse {
|
|
167
|
+
/**
|
|
168
|
+
* 账单明细数组
|
|
169
|
+
*/
|
|
170
|
+
Items: {
|
|
171
|
+
/**
|
|
172
|
+
* 订单总金额
|
|
173
|
+
*/
|
|
174
|
+
Amount: string;
|
|
175
|
+
/**
|
|
176
|
+
* 现金账户支付
|
|
177
|
+
*/
|
|
178
|
+
AmountReal: string;
|
|
179
|
+
/**
|
|
180
|
+
* 赠送金额抵扣
|
|
181
|
+
*/
|
|
182
|
+
AmountFree: string;
|
|
183
|
+
/**
|
|
184
|
+
* 代金券抵扣
|
|
185
|
+
*/
|
|
186
|
+
AmountCoupon: string;
|
|
187
|
+
/**
|
|
188
|
+
* 可用区
|
|
189
|
+
*/
|
|
190
|
+
AzGroupCName: string;
|
|
191
|
+
/**
|
|
192
|
+
* 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 \\ > Post:后付费
|
|
193
|
+
*/
|
|
194
|
+
ChargeType: string;
|
|
195
|
+
/**
|
|
196
|
+
* 创建时间(时间戳)
|
|
197
|
+
*/
|
|
198
|
+
CreateTime: number;
|
|
199
|
+
/**
|
|
200
|
+
* 开始时间(时间戳)
|
|
201
|
+
*/
|
|
202
|
+
StartTime: number;
|
|
203
|
+
/**
|
|
204
|
+
* 订单号
|
|
205
|
+
*/
|
|
206
|
+
OrderNo: string;
|
|
207
|
+
/**
|
|
208
|
+
* 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款
|
|
209
|
+
*/
|
|
210
|
+
OrderType: string;
|
|
211
|
+
/**
|
|
212
|
+
* 项目名称
|
|
213
|
+
*/
|
|
214
|
+
ProjectName: string;
|
|
215
|
+
/**
|
|
216
|
+
* 资源ID
|
|
217
|
+
*/
|
|
218
|
+
ResourceId: string;
|
|
219
|
+
/**
|
|
220
|
+
* 产品类型。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘
|
|
221
|
+
*/
|
|
222
|
+
ResourceType: string;
|
|
223
|
+
/**
|
|
224
|
+
* 产品类型代码
|
|
225
|
+
*/
|
|
226
|
+
ResourceTypeCode: number;
|
|
227
|
+
/**
|
|
228
|
+
* 产品配置
|
|
229
|
+
*/
|
|
230
|
+
ItemDetails: {
|
|
231
|
+
/**
|
|
232
|
+
* 产品小类名称
|
|
233
|
+
*/
|
|
234
|
+
ProductName: string;
|
|
235
|
+
/**
|
|
236
|
+
* 产品小类规格
|
|
237
|
+
*/
|
|
238
|
+
Value: string;
|
|
239
|
+
}[];
|
|
240
|
+
/**
|
|
241
|
+
* 资源标识
|
|
242
|
+
*/
|
|
243
|
+
ResourceExtendInfo: {
|
|
244
|
+
/**
|
|
245
|
+
* 资源标识健
|
|
246
|
+
*/
|
|
247
|
+
KeyId: string;
|
|
248
|
+
/**
|
|
249
|
+
* 资源标识值
|
|
250
|
+
*/
|
|
251
|
+
Value: string;
|
|
252
|
+
}[];
|
|
253
|
+
/**
|
|
254
|
+
* 订单支付状态。枚举值:\\> 0:未支付 \\ > 1:已支付
|
|
255
|
+
*/
|
|
256
|
+
ShowHover: number;
|
|
257
|
+
/**
|
|
258
|
+
* 账户邮箱
|
|
259
|
+
*/
|
|
260
|
+
UserEmail: string;
|
|
261
|
+
/**
|
|
262
|
+
* 账户名
|
|
263
|
+
*/
|
|
264
|
+
UserName: string;
|
|
265
|
+
/**
|
|
266
|
+
* 账户昵称
|
|
267
|
+
*/
|
|
268
|
+
UserDisplayName: string;
|
|
269
|
+
/**
|
|
270
|
+
* 是否为主账号。枚举值:\\ > 0:子账号 \\ > 1:主账号
|
|
271
|
+
*/
|
|
272
|
+
Admin: number;
|
|
273
|
+
}[];
|
|
274
|
+
/**
|
|
275
|
+
* 账单明细总长度
|
|
276
|
+
*/
|
|
277
|
+
TotalCount: number;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* ListUBillOverview - 账单总览。可按产品/项目/用户纬度获取某个账期内账单总览信息。
|
|
281
|
+
*/
|
|
282
|
+
export interface ListUBillOverviewRequest {
|
|
283
|
+
/**
|
|
284
|
+
* 账期,YYYY-MM格式,例如2022-02,只支持2018-05之后的查询
|
|
285
|
+
*/
|
|
286
|
+
BillingCycle: string;
|
|
287
|
+
/**
|
|
288
|
+
* 账单维度, product 按产品聚合,project 按项目聚合,user 按子账号聚合
|
|
289
|
+
*/
|
|
290
|
+
Dimension: string;
|
|
291
|
+
/**
|
|
292
|
+
* 是否显示已入账账单, 1 已入账, 0 待入账 (默认0 )
|
|
293
|
+
*/
|
|
294
|
+
HideUnpaid?: number;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* ListUBillOverview - 账单总览。可按产品/项目/用户纬度获取某个账期内账单总览信息。
|
|
298
|
+
*/
|
|
299
|
+
export interface ListUBillOverviewResponse {
|
|
300
|
+
/**
|
|
301
|
+
* 账单总览数据总数
|
|
302
|
+
*/
|
|
303
|
+
TotalCount: number;
|
|
304
|
+
/**
|
|
305
|
+
* 已入账订单总额(已入账时显示)
|
|
306
|
+
*/
|
|
307
|
+
TotalPaidAmount?: string;
|
|
308
|
+
/**
|
|
309
|
+
* 现金账户扣款总额 (已入账时显示)
|
|
310
|
+
*/
|
|
311
|
+
TotalPaidAmountReal?: string;
|
|
312
|
+
/**
|
|
313
|
+
* 待入账订单总额(待入账时显示)
|
|
314
|
+
*/
|
|
315
|
+
TotalUnpaidAmount?: string;
|
|
316
|
+
/**
|
|
317
|
+
* 账单聚合数据
|
|
318
|
+
*/
|
|
319
|
+
Items: {
|
|
320
|
+
/**
|
|
321
|
+
* 账单维度, product 按产品维度聚合,project 按项目维度聚合,user 按子账号维度聚合
|
|
322
|
+
*/
|
|
323
|
+
Dimension: string;
|
|
324
|
+
/**
|
|
325
|
+
* 订单总金额
|
|
326
|
+
*/
|
|
327
|
+
Amount: string;
|
|
328
|
+
/**
|
|
329
|
+
* 代金券抵扣(已入账时显示)
|
|
330
|
+
*/
|
|
331
|
+
AmountCoupon?: string;
|
|
332
|
+
/**
|
|
333
|
+
* 赠送金额抵扣(已入账时显示)
|
|
334
|
+
*/
|
|
335
|
+
AmountFree?: string;
|
|
336
|
+
/**
|
|
337
|
+
* 现金账户支付(已入账时显示)
|
|
338
|
+
*/
|
|
339
|
+
AmountReal?: string;
|
|
340
|
+
/**
|
|
341
|
+
* 产品分类 (账单维度按产品筛选时显示)
|
|
342
|
+
*/
|
|
343
|
+
ProductCategory?: string;
|
|
344
|
+
/**
|
|
345
|
+
* 产品类型 (账单维度按产品筛选时显示)
|
|
346
|
+
*/
|
|
347
|
+
ResourceType?: string;
|
|
348
|
+
/**
|
|
349
|
+
* 产品类型代码(账单维度按产品筛选时显示)
|
|
350
|
+
*/
|
|
351
|
+
ResourceTypeCode?: number;
|
|
352
|
+
/**
|
|
353
|
+
* 项目名称(账单维度按项目筛选时显示)
|
|
354
|
+
*/
|
|
355
|
+
ProjectName?: string;
|
|
356
|
+
/**
|
|
357
|
+
* 账户邮箱(账单维度按子账号筛选时显示)
|
|
358
|
+
*/
|
|
359
|
+
UserEmail?: string;
|
|
360
|
+
/**
|
|
361
|
+
* 账户名 (账单维度按子账号筛选时显示)
|
|
362
|
+
*/
|
|
363
|
+
UserName?: string;
|
|
364
|
+
/**
|
|
365
|
+
* 账户昵称(账单维度按子账号筛选时显示)
|
|
366
|
+
*/
|
|
367
|
+
UserDisplayName?: string;
|
|
368
|
+
/**
|
|
369
|
+
* 该账户是否为主账号,1 主账号,0 子账号(账单维度按子账号筛选时显示)
|
|
370
|
+
*/
|
|
371
|
+
Admin?: number;
|
|
372
|
+
}[];
|
|
373
|
+
}
|
|
@@ -30,5 +30,23 @@ class UBillClient extends client_1.default {
|
|
|
30
30
|
const args = Object.assign({ Action: 'GetBillDataFileUrl' }, (request || {}));
|
|
31
31
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* ListUBillDetail - 获取某个账期内的所有消费。
|
|
35
|
+
*
|
|
36
|
+
* See also: https://docs.ucloud.cn/api/ubill-api/list_u_bill_detail
|
|
37
|
+
*/
|
|
38
|
+
listUBillDetail(request) {
|
|
39
|
+
const args = Object.assign({ Action: 'ListUBillDetail' }, (request || {}));
|
|
40
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* ListUBillOverview - 账单总览。可按产品/项目/用户纬度获取某个账期内账单总览信息。
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/ubill-api/list_u_bill_overview
|
|
46
|
+
*/
|
|
47
|
+
listUBillOverview(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'ListUBillOverview' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
33
51
|
}
|
|
34
52
|
exports.default = UBillClient;
|