@ucloud-sdks/ucloud-sdk-js 0.2.13 → 0.2.14
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.
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const client_1 = __importDefault(require("../../core/client"));
|
|
7
|
+
const request_1 = __importDefault(require("../../core/request"));
|
|
8
|
+
/**
|
|
9
|
+
* This client is used to call actions of **uai_modelverse** service
|
|
10
|
+
*/
|
|
11
|
+
class UAIModelverseClient extends client_1.default {
|
|
12
|
+
constructor({ config, credential, }) {
|
|
13
|
+
super({ config, credential });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* CreateUMInferAPIKey - 创建apikey
|
|
17
|
+
*
|
|
18
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/create_um_infer_api_key
|
|
19
|
+
*/
|
|
20
|
+
createUMInferAPIKey(request) {
|
|
21
|
+
const args = Object.assign({ Action: 'CreateUMInferAPIKey' }, (request || {}));
|
|
22
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* DeleteUMInferAPIKey - 删除apikey
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/delete_um_infer_api_key
|
|
28
|
+
*/
|
|
29
|
+
deleteUMInferAPIKey(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'DeleteUMInferAPIKey' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* DownloadListPaidOrders - 生成已完成(已支付)订单明细 Excel 文件并返回 US3 预签名下载链接;查询条件与 ListPaidOrders 完全一致,StartTime/EndTime 必填;取数范围是 [StartTime, EndTime),即取开始计费时间大于等于StartTime且小于EndTime的数据
|
|
35
|
+
*
|
|
36
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/download_list_paid_orders
|
|
37
|
+
*/
|
|
38
|
+
downloadListPaidOrders(request) {
|
|
39
|
+
const args = Object.assign({ Action: 'DownloadListPaidOrders' }, (request || {}));
|
|
40
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* DownloadListUnpaidOrders - 生成欠费(未支付)订单明细 Excel 文件并返回 US3 预签名下载链接;查询条件与 ListUnpaidOrders 完全一致,StartTime/EndTime 必填
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/download_list_unpaid_orders
|
|
46
|
+
*/
|
|
47
|
+
downloadListUnpaidOrders(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'DownloadListUnpaidOrders' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* DownloadOrderSummary - 生成订单汇总 Excel 文件(包含已完成订单和欠费订单两个 sheet),返回 US3 预签名下载链接;StartTime/EndTime 必填
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/download_order_summary
|
|
55
|
+
*/
|
|
56
|
+
downloadOrderSummary(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'DownloadOrderSummary' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* GetFilterOptions - 查询可用于订单筛选的资源、模型、地域等选项列表
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_filter_options
|
|
64
|
+
*/
|
|
65
|
+
getFilterOptions(request) {
|
|
66
|
+
const args = Object.assign({ Action: 'GetFilterOptions' }, (request || {}));
|
|
67
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* GetOrderAmount - 查询指定条件下订单的金额汇总及数量统计
|
|
71
|
+
*
|
|
72
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_order_amount
|
|
73
|
+
*/
|
|
74
|
+
getOrderAmount(request) {
|
|
75
|
+
const args = Object.assign({ Action: 'GetOrderAmount' }, (request || {}));
|
|
76
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* GetUMInferAPIModel - 获取该apikey能调用api的模型列表
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_um_infer_api_model
|
|
82
|
+
*/
|
|
83
|
+
getUMInferAPIModel(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'GetUMInferAPIModel' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* GetUMInferTokenUsage - 获取某个key下的某个模型的token使用量
|
|
89
|
+
*
|
|
90
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_um_infer_token_usage
|
|
91
|
+
*/
|
|
92
|
+
getUMInferTokenUsage(request) {
|
|
93
|
+
const args = Object.assign({ Action: 'GetUMInferTokenUsage' }, (request || {}));
|
|
94
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* ListPaidOrderSummary - 按指定维度汇总查询已完成(已支付)订单的统计数据
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_paid_order_summary
|
|
100
|
+
*/
|
|
101
|
+
listPaidOrderSummary(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'ListPaidOrderSummary' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* ListPaidOrders - 查询已完成(已支付)的订单明细列表,StartTime/EndTime 必填;取数范围是 [StartTime, EndTime),即取开始计费时间大于等于StartTime且小于EndTime的数据
|
|
107
|
+
*
|
|
108
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_paid_orders
|
|
109
|
+
*/
|
|
110
|
+
listPaidOrders(request) {
|
|
111
|
+
const args = Object.assign({ Action: 'ListPaidOrders' }, (request || {}));
|
|
112
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* ListUFSquareModel - 查询模型广场数据
|
|
116
|
+
*
|
|
117
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_uf_square_model
|
|
118
|
+
*/
|
|
119
|
+
listUFSquareModel(request) {
|
|
120
|
+
const args = Object.assign({ Action: 'ListUFSquareModel' }, (request || {}));
|
|
121
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* ListUMInferAPIKey - 列表查询apikey
|
|
125
|
+
*
|
|
126
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_um_infer_api_key
|
|
127
|
+
*/
|
|
128
|
+
listUMInferAPIKey(request) {
|
|
129
|
+
const args = Object.assign({ Action: 'ListUMInferAPIKey' }, (request || {}));
|
|
130
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* ListUnpaidOrderSummary - 按指定维度汇总查询欠费订单的统计数据
|
|
134
|
+
*
|
|
135
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_unpaid_order_summary
|
|
136
|
+
*/
|
|
137
|
+
listUnpaidOrderSummary(request) {
|
|
138
|
+
const args = Object.assign({ Action: 'ListUnpaidOrderSummary' }, (request || {}));
|
|
139
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* ListUnpaidOrders - 查询当前欠费(未支付)的订单明细列表
|
|
143
|
+
*
|
|
144
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_unpaid_orders
|
|
145
|
+
*/
|
|
146
|
+
listUnpaidOrders(request) {
|
|
147
|
+
const args = Object.assign({ Action: 'ListUnpaidOrders' }, (request || {}));
|
|
148
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* UpdateUMInferAPIKey - 更新apikey
|
|
152
|
+
*
|
|
153
|
+
* See also: https://docs.ucloud.cn/api/uai-modelverse-api/update_um_infer_api_key
|
|
154
|
+
*/
|
|
155
|
+
updateUMInferAPIKey(request) {
|
|
156
|
+
const args = Object.assign({ Action: 'UpdateUMInferAPIKey' }, (request || {}));
|
|
157
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.default = UAIModelverseClient;
|