@@ -150,13 +150,6 @@ def describe_bucket(
150
150
151
151
**Response Model**
152
152
153
- **UFileDomainSet**
154
- - **Cdn** (list) - UCDN加速域名
155
- - **CustomCdn** (list) - 用户自定义CDN加速域名
156
- - **CustomSrc** (list) - 用户自定义源站域名
157
- - **Src** (list) - 源站域名
158
-
159
-
160
153
**UFileBucketSet**
161
154
- **Biz** (str) - Bucket所属业务, general或vod或udb general: 普通业务; vod: 视频云业务; udb: 云数据库业务
162
155
- **BucketId** (str) - Bucket的ID
@@ -171,6 +164,13 @@ def describe_bucket(
171
164
- **Type** (str) - Bucket访问类型
172
165
173
166
167
+ **UFileDomainSet**
168
+ - **Cdn** (list) - UCDN加速域名
169
+ - **CustomCdn** (list) - 用户自定义CDN加速域名
170
+ - **CustomSrc** (list) - 用户自定义源站域名
171
+ - **Src** (list) - 源站域名
172
+
173
+
174
174
"""
175
175
# build request
176
176
d = {
@@ -228,6 +228,64 @@ def describe_ufile_token(
228
228
resp = self .invoke ("DescribeUFileToken" , d , ** kwargs )
229
229
return apis .DescribeUFileTokenResponseSchema ().loads (resp )
230
230
231
+ def get_ufile_daily_report (
232
+ self , req : typing .Optional [dict ] = None , ** kwargs
233
+ ) -> dict :
234
+ """GetUFileDailyReport - 查看日消费报表
235
+
236
+ **Request**
237
+
238
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
239
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
240
+ - **EndTime** (int) - (Required) 查询结束时间;unix时间戳,单位s
241
+ - **StartTime** (int) - (Required) 查询开始时间;unix时间戳,单位s
242
+ - **BucketName** (str) - 空间名称。此字段不为空,返回此Bucket日使用量;否则,返回这个项目的日使用量
243
+
244
+ **Response**
245
+
246
+ - **DataSet** (list) - 见 **UFileReportItem** 模型定义
247
+
248
+ **Response Model**
249
+
250
+ **UFileDailyReportItem**
251
+ - **AcRestore** (float) - 冷存激活量,即归档数据取回量;单位byte
252
+ - **AcStorage** (float) - 冷存(归档)存储量;单位byte
253
+ - **ApiTimes** (float) - API请求次数(次)
254
+ - **BusyFlow** (float) - 忙时流量;单位byte;海外无此字段
255
+ - **CdnFlow** (float) - cdn回源流量;单位byte
256
+ - **Date** (int) - 配额消费时间,unix时间戳(单位s),精确到日期
257
+ - **Flow** (float) - 下载流量:单位byte;国内无此字段
258
+ - **IaGetSize** (float) - 低频数据取回量;单位byte
259
+ - **IaStorage** (float) - 低频存储量;单位byte
260
+ - **IdleFlow** (float) - 闲时流量;单位byte;海外无此字段
261
+ - **Storage** (float) - 标准存储量;单位byte
262
+
263
+
264
+ **UFileTotalReportItem**
265
+ - **ApiTimes** (float) - API请求次数(次)
266
+ - **BusyFlow** (float) - 忙时流量;单位byte;海外无此字段
267
+ - **CdnFlow** (float) - cdn回源流量;单位byte
268
+ - **Flow** (float) - 下载流量:单位byte;国内无此字段
269
+ - **IdleFlow** (float) - 闲时流量;单位byte;海外无此字段
270
+
271
+
272
+ **UFileReportItem**
273
+ - **Daily** (list) - 见 **UFileDailyReportItem** 模型定义
274
+ - **Total** (list) - 见 **UFileTotalReportItem** 模型定义
275
+
276
+
277
+ """
278
+ # build request
279
+ d = {
280
+ "ProjectId" : self .config .project_id ,
281
+ "Region" : self .config .region ,
282
+ }
283
+ req and d .update (req )
284
+ d = apis .GetUFileDailyReportRequestSchema ().dumps (d )
285
+
286
+ resp = self .invoke ("GetUFileDailyReport" , d , ** kwargs )
287
+ return apis .GetUFileDailyReportResponseSchema ().loads (resp )
288
+
231
289
def get_ufile_quota (
232
290
self , req : typing .Optional [dict ] = None , ** kwargs
233
291
) -> dict :
@@ -270,10 +328,6 @@ def get_ufile_quota_info(
270
328
271
329
**Response Model**
272
330
273
- **UFileQuotaLeft**
274
- - **Left** (float) - 配额剩余量
275
-
276
-
277
331
**UFileQuotaDataSetItem**
278
332
- **DownloadFlow** (dict) - 见 **UFileQuotaLeft** 模型定义
279
333
- **Owe** (int) - 是否欠费:1表示欠费;0表示未欠费
@@ -282,6 +336,10 @@ def get_ufile_quota_info(
282
336
- **Storage** (dict) - 见 **UFileQuotaLeft** 模型定义
283
337
284
338
339
+ **UFileQuotaLeft**
340
+ - **Left** (float) - 配额剩余量
341
+
342
+
285
343
"""
286
344
# build request
287
345
d = {
0 commit comments