@huaweicloud/huaweicloud-sdk-cdn 3.1.59 → 3.1.61

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/package.json +2 -2
  2. package/v1/CdnClient.d.ts +13 -13
  3. package/v1/CdnClient.js +13 -13
  4. package/v1/model/PreheatingTaskRequestBody.d.ts +4 -0
  5. package/v1/model/PreheatingTaskRequestBody.d.ts.map +1 -1
  6. package/v1/model/PreheatingTaskRequestBody.js +10 -0
  7. package/v1/model/PreheatingTaskRequestBody.js.map +1 -1
  8. package/v1/model/RefreshTaskRequestBody.d.ts +4 -0
  9. package/v1/model/RefreshTaskRequestBody.d.ts.map +1 -1
  10. package/v1/model/RefreshTaskRequestBody.js +10 -0
  11. package/v1/model/RefreshTaskRequestBody.js.map +1 -1
  12. package/v2/CdnClient.d.ts +157 -1
  13. package/v2/CdnClient.d.ts.map +1 -1
  14. package/v2/CdnClient.js +421 -1
  15. package/v2/CdnClient.js.map +1 -1
  16. package/v2/model/CreatePreheatingTasksRequest.d.ts +11 -0
  17. package/v2/model/CreatePreheatingTasksRequest.d.ts.map +1 -0
  18. package/v2/model/CreatePreheatingTasksRequest.js +23 -0
  19. package/v2/model/CreatePreheatingTasksRequest.js.map +1 -0
  20. package/v2/model/CreatePreheatingTasksResponse.d.ts +9 -0
  21. package/v2/model/CreatePreheatingTasksResponse.d.ts.map +1 -0
  22. package/v2/model/CreatePreheatingTasksResponse.js +21 -0
  23. package/v2/model/CreatePreheatingTasksResponse.js.map +1 -0
  24. package/v2/model/CreateRefreshTasksRequest.d.ts +11 -0
  25. package/v2/model/CreateRefreshTasksRequest.d.ts.map +1 -0
  26. package/v2/model/CreateRefreshTasksRequest.js +23 -0
  27. package/v2/model/CreateRefreshTasksRequest.js.map +1 -0
  28. package/v2/model/CreateRefreshTasksResponse.d.ts +9 -0
  29. package/v2/model/CreateRefreshTasksResponse.d.ts.map +1 -0
  30. package/v2/model/CreateRefreshTasksResponse.js +21 -0
  31. package/v2/model/CreateRefreshTasksResponse.js.map +1 -0
  32. package/v2/model/PreheatingTaskRequest.d.ts +9 -0
  33. package/v2/model/PreheatingTaskRequest.d.ts.map +1 -0
  34. package/v2/model/PreheatingTaskRequest.js +20 -0
  35. package/v2/model/PreheatingTaskRequest.js.map +1 -0
  36. package/v2/model/PreheatingTaskRequestBody.d.ts +10 -0
  37. package/v2/model/PreheatingTaskRequestBody.d.ts.map +1 -0
  38. package/v2/model/PreheatingTaskRequestBody.js +24 -0
  39. package/v2/model/PreheatingTaskRequestBody.js.map +1 -0
  40. package/v2/model/RefreshTaskRequest.d.ts +9 -0
  41. package/v2/model/RefreshTaskRequest.d.ts.map +1 -0
  42. package/v2/model/RefreshTaskRequest.js +20 -0
  43. package/v2/model/RefreshTaskRequest.js.map +1 -0
  44. package/v2/model/RefreshTaskRequestBody.d.ts +30 -0
  45. package/v2/model/RefreshTaskRequestBody.d.ts.map +1 -0
  46. package/v2/model/RefreshTaskRequestBody.js +50 -0
  47. package/v2/model/RefreshTaskRequestBody.js.map +1 -0
  48. package/v2/model/ShowHistoryTaskDetailsRequest.d.ts +28 -0
  49. package/v2/model/ShowHistoryTaskDetailsRequest.d.ts.map +1 -0
  50. package/v2/model/ShowHistoryTaskDetailsRequest.js +68 -0
  51. package/v2/model/ShowHistoryTaskDetailsRequest.js.map +1 -0
  52. package/v2/model/ShowHistoryTaskDetailsResponse.d.ts +32 -0
  53. package/v2/model/ShowHistoryTaskDetailsResponse.d.ts.map +1 -0
  54. package/v2/model/ShowHistoryTaskDetailsResponse.js +69 -0
  55. package/v2/model/ShowHistoryTaskDetailsResponse.js.map +1 -0
  56. package/v2/model/ShowHistoryTasksRequest.d.ts +66 -0
  57. package/v2/model/ShowHistoryTasksRequest.d.ts.map +1 -0
  58. package/v2/model/ShowHistoryTasksRequest.js +130 -0
  59. package/v2/model/ShowHistoryTasksRequest.js.map +1 -0
  60. package/v2/model/ShowHistoryTasksResponse.d.ts +10 -0
  61. package/v2/model/ShowHistoryTasksResponse.d.ts.map +1 -0
  62. package/v2/model/ShowHistoryTasksResponse.js +19 -0
  63. package/v2/model/ShowHistoryTasksResponse.js.map +1 -0
  64. package/v2/model/ShowUrlTaskInfoRequest.d.ts +28 -0
  65. package/v2/model/ShowUrlTaskInfoRequest.d.ts.map +1 -0
  66. package/v2/model/ShowUrlTaskInfoRequest.js +65 -0
  67. package/v2/model/ShowUrlTaskInfoRequest.js.map +1 -0
  68. package/v2/model/ShowUrlTaskInfoResponse.d.ts +16 -0
  69. package/v2/model/ShowUrlTaskInfoResponse.d.ts.map +1 -0
  70. package/v2/model/ShowUrlTaskInfoResponse.js +33 -0
  71. package/v2/model/ShowUrlTaskInfoResponse.js.map +1 -0
  72. package/v2/model/TasksObject.d.ts +44 -0
  73. package/v2/model/TasksObject.d.ts.map +1 -0
  74. package/v2/model/TasksObject.js +81 -0
  75. package/v2/model/TasksObject.js.map +1 -0
  76. package/v2/model/UrlObject.d.ts +22 -0
  77. package/v2/model/UrlObject.d.ts.map +1 -0
  78. package/v2/model/UrlObject.js +51 -0
  79. package/v2/model/UrlObject.js.map +1 -0
  80. package/v2/model/Urls.d.ts +30 -0
  81. package/v2/model/Urls.d.ts.map +1 -0
  82. package/v2/model/Urls.js +69 -0
  83. package/v2/model/Urls.js.map +1 -0
  84. package/v2/public-api.d.ts +17 -0
  85. package/v2/public-api.d.ts.map +1 -1
  86. package/v2/public-api.js +17 -0
  87. package/v2/public-api.js.map +1 -1
package/v2/CdnClient.js CHANGED
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RequiredError = exports.ParamCreater = exports.CdnClient = void 0;
4
4
  const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
5
5
  const BatchCopyDomainRequest_1 = require("./model/BatchCopyDomainRequest");
6
+ const CreatePreheatingTasksRequest_1 = require("./model/CreatePreheatingTasksRequest");
7
+ const CreateRefreshTasksRequest_1 = require("./model/CreateRefreshTasksRequest");
6
8
  const DownloadRegionCarrierExcelRequest_1 = require("./model/DownloadRegionCarrierExcelRequest");
7
9
  const DownloadStatisticsExcelRequest_1 = require("./model/DownloadStatisticsExcelRequest");
8
10
  const ListDomainsRequest_1 = require("./model/ListDomainsRequest");
@@ -13,8 +15,11 @@ const ShowDomainDetailByNameRequest_1 = require("./model/ShowDomainDetailByNameR
13
15
  const ShowDomainFullConfigRequest_1 = require("./model/ShowDomainFullConfigRequest");
14
16
  const ShowDomainLocationStatsRequest_1 = require("./model/ShowDomainLocationStatsRequest");
15
17
  const ShowDomainStatsRequest_1 = require("./model/ShowDomainStatsRequest");
18
+ const ShowHistoryTaskDetailsRequest_1 = require("./model/ShowHistoryTaskDetailsRequest");
19
+ const ShowHistoryTasksRequest_1 = require("./model/ShowHistoryTasksRequest");
16
20
  const ShowTopDomainNamesRequest_1 = require("./model/ShowTopDomainNamesRequest");
17
21
  const ShowTopUrlRequest_1 = require("./model/ShowTopUrlRequest");
22
+ const ShowUrlTaskInfoRequest_1 = require("./model/ShowUrlTaskInfoRequest");
18
23
  const UpdateDomainFullConfigRequest_1 = require("./model/UpdateDomainFullConfigRequest");
19
24
  class CdnClient {
20
25
  static newBuilder() {
@@ -43,6 +48,40 @@ class CdnClient {
43
48
  options['responseHeaders'] = [''];
44
49
  return this.hcClient.sendRequest(options);
45
50
  }
51
+ /**
52
+ * 创建预热任务。
53
+ *
54
+ * Please refer to HUAWEI cloud API Explorer for details.
55
+ *
56
+ * @summary 创建预热缓存任务
57
+ * @param {PreheatingTaskRequest} preheatingTaskRequest urls: 多个URL之间需要用逗号分隔,目前不支持对目录的预热,单个url的长度限制为4096字符。每个账户每天最多预热1000个URL,单次提交数量不超过1000条。
58
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示在当前企业项目下添加缓存预热任务,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ createPreheatingTasks(createPreheatingTasksRequest) {
63
+ const options = (0, exports.ParamCreater)().createPreheatingTasks(createPreheatingTasksRequest);
64
+ // @ts-ignore
65
+ options['responseHeaders'] = [''];
66
+ return this.hcClient.sendRequest(options);
67
+ }
68
+ /**
69
+ * 创建刷新缓存任务。
70
+ *
71
+ * Please refer to HUAWEI cloud API Explorer for details.
72
+ *
73
+ * @summary 创建刷新缓存任务
74
+ * @param {RefreshTaskRequest} refreshTaskRequest type: 刷新类型,其值可为file 或directory,默认为file; urls: 多个URL之间需用逗号分隔,单个url长度限制为4096字符。每个账户每天最多刷新2000个文件和100个目录,单次提交数量不超过1000条。
75
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示在当前企业项目下添加缓存刷新任务,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ createRefreshTasks(createRefreshTasksRequest) {
80
+ const options = (0, exports.ParamCreater)().createRefreshTasks(createRefreshTasksRequest);
81
+ // @ts-ignore
82
+ options['responseHeaders'] = [''];
83
+ return this.hcClient.sendRequest(options);
84
+ }
46
85
  /**
47
86
  * - 下载区域运营商指标数据表格文件。
48
87
  *
@@ -308,7 +347,7 @@ class CdnClient {
308
347
  *
309
348
  * Please refer to HUAWEI cloud API Explorer for details.
310
349
  *
311
- * @summary 查询域名统计基础数据
350
+ * @summary 查询域名统计数据
312
351
  * @param {string} action 动作名称,可选summary、detail。 - summary:查询汇总数据 - detail:查询数据详情。
313
352
  * @param {number} startTime 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
314
353
  * @param {number} endTime 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
@@ -327,6 +366,53 @@ class CdnClient {
327
366
  options['responseHeaders'] = [''];
328
367
  return this.hcClient.sendRequest(options);
329
368
  }
369
+ /**
370
+ * 查询刷新预热任务详情。
371
+ *
372
+ * Please refer to HUAWEI cloud API Explorer for details.
373
+ *
374
+ * @summary 查询刷新预热任务详情
375
+ * @param {string} historyTasksId 刷新任务ID。
376
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
377
+ * @param {number} [pageSize] 刷新预热的urls所显示单页最大数量,取值范围为1-10000。page_size和page_number必须同时传值。默认值30。
378
+ * @param {number} [pageNumber] 刷新预热的urls当前查询为第几页,取值范围为1-65535。默认值1。
379
+ * @param {string} [status] url的状态 processing 处理中,succeed 完成,failed 失败,waiting 等待,refreshing 刷新中,preheating 预热中。
380
+ * @param {string} [url] url的地址。
381
+ * @param {number} [createTime] 刷新预热任务的创建时间。不传参默认为查询7天内的任务。最长可查询15天内数据。
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ showHistoryTaskDetails(showHistoryTaskDetailsRequest) {
386
+ const options = (0, exports.ParamCreater)().showHistoryTaskDetails(showHistoryTaskDetailsRequest);
387
+ // @ts-ignore
388
+ options['responseHeaders'] = [''];
389
+ return this.hcClient.sendRequest(options);
390
+ }
391
+ /**
392
+ * 查询刷新预热任务。
393
+ *
394
+ * Please refer to HUAWEI cloud API Explorer for details.
395
+ *
396
+ * @summary 查询刷新预热任务
397
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
398
+ * @param {number} [pageSize] 单页最大数量,取值范围为1-10000。page_size和page_number必须同时传值。默认值30。
399
+ * @param {number} [pageNumber] 当前查询第几页,取值范围为1-65535。默认值1。
400
+ * @param {'task_inprocess' | 'task_done'} [status] 任务状态。 task_inprocess 表示任务处理中,task_done表示任务完成。
401
+ * @param {number} [startDate] 查询起始时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
402
+ * @param {number} [endDate] 查询结束时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
403
+ * @param {string} [orderField] 用来排序的字段,支持的字段有“task_type”:任务的类型,“total”:url总数,“processing”:处理中的url个数, “succeed”:成功处理的url个数,“failed”:处理失败的url个数,“create_time”:任务的创建时间。order_field和order_type必须同时传值,否则使用默认值\"create_time\" 和 \"desc\":降序。
404
+ * @param {string} [orderType] desc:降序,或者asc:升序。默认值desc。
405
+ * @param {'file' | 'directory'} [fileType] 默认是文件file。file:文件,directory:目录。
406
+ * @param {'refresh' | 'preheating'} [taskType] 任务类型,refresh:刷新任务;preheating:预热任务
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ showHistoryTasks(showHistoryTasksRequest) {
411
+ const options = (0, exports.ParamCreater)().showHistoryTasks(showHistoryTasksRequest);
412
+ // @ts-ignore
413
+ options['responseHeaders'] = [''];
414
+ return this.hcClient.sendRequest(options);
415
+ }
330
416
  /**
331
417
  * - 查询TOP域名。
332
418
  *
@@ -393,6 +479,29 @@ class CdnClient {
393
479
  options['responseHeaders'] = [''];
394
480
  return this.hcClient.sendRequest(options);
395
481
  }
482
+ /**
483
+ * 查询刷新预热URL记录。如需此接口,请提交工单开通。
484
+ *
485
+ * Please refer to HUAWEI cloud API Explorer for details.
486
+ *
487
+ * @summary 查询刷新预热URL记录
488
+ * @param {number} [startTime] 起始时间戳(毫秒),默认当天00:00。
489
+ * @param {number} [endTime] 结束时间戳(毫秒),默认次日00:00。
490
+ * @param {number} [offset] 偏移量:特定数据字段与起始数据字段位置的距离。
491
+ * @param {number} [limit] 单次查询数据条数,上限为100。
492
+ * @param {string} [url] 刷新预热url。
493
+ * @param {string} [taskType] 任务类型,REFRESH:刷新任务;PREHEATING:预热任务。
494
+ * @param {string} [status] url状态,状态类型:processing:处理中;succeed:完成;failed:失败;waiting:等待;refreshing:刷新中; preheating : 预热中。
495
+ * @param {string} [fileType] 文件类型,file:文件;directory:目录。
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ */
499
+ showUrlTaskInfo(showUrlTaskInfoRequest) {
500
+ const options = (0, exports.ParamCreater)().showUrlTaskInfo(showUrlTaskInfoRequest);
501
+ // @ts-ignore
502
+ options['responseHeaders'] = ['X-request-id'];
503
+ return this.hcClient.sendRequest(options);
504
+ }
396
505
  /**
397
506
  * 修改域名配置接口,支持修改业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽。
398
507
  *
@@ -449,6 +558,88 @@ const ParamCreater = function () {
449
558
  options.headers = localVarHeaderParameter;
450
559
  return options;
451
560
  },
561
+ /**
562
+ * 创建预热任务。
563
+ *
564
+ * Please refer to HUAWEI cloud API Explorer for details.
565
+ */
566
+ createPreheatingTasks(createPreheatingTasksRequest) {
567
+ const options = {
568
+ method: "POST",
569
+ url: "/v1.0/cdn/content/preheating-tasks",
570
+ contentType: "application/json",
571
+ queryParams: {},
572
+ pathParams: {},
573
+ headers: {},
574
+ data: {}
575
+ };
576
+ const localVarHeaderParameter = {};
577
+ const localVarQueryParameter = {};
578
+ let body;
579
+ let enterpriseProjectId;
580
+ if (createPreheatingTasksRequest !== null && createPreheatingTasksRequest !== undefined) {
581
+ if (createPreheatingTasksRequest instanceof CreatePreheatingTasksRequest_1.CreatePreheatingTasksRequest) {
582
+ body = createPreheatingTasksRequest.body;
583
+ enterpriseProjectId = createPreheatingTasksRequest.enterpriseProjectId;
584
+ }
585
+ else {
586
+ body = createPreheatingTasksRequest['body'];
587
+ enterpriseProjectId = createPreheatingTasksRequest['enterprise_project_id'];
588
+ }
589
+ }
590
+ if (body === null || body === undefined) {
591
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
592
+ }
593
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
594
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
595
+ }
596
+ localVarHeaderParameter['Content-Type'] = 'application/json';
597
+ options.data = body !== undefined ? body : {};
598
+ options.queryParams = localVarQueryParameter;
599
+ options.headers = localVarHeaderParameter;
600
+ return options;
601
+ },
602
+ /**
603
+ * 创建刷新缓存任务。
604
+ *
605
+ * Please refer to HUAWEI cloud API Explorer for details.
606
+ */
607
+ createRefreshTasks(createRefreshTasksRequest) {
608
+ const options = {
609
+ method: "POST",
610
+ url: "/v1.0/cdn/content/refresh-tasks",
611
+ contentType: "application/json",
612
+ queryParams: {},
613
+ pathParams: {},
614
+ headers: {},
615
+ data: {}
616
+ };
617
+ const localVarHeaderParameter = {};
618
+ const localVarQueryParameter = {};
619
+ let body;
620
+ let enterpriseProjectId;
621
+ if (createRefreshTasksRequest !== null && createRefreshTasksRequest !== undefined) {
622
+ if (createRefreshTasksRequest instanceof CreateRefreshTasksRequest_1.CreateRefreshTasksRequest) {
623
+ body = createRefreshTasksRequest.body;
624
+ enterpriseProjectId = createRefreshTasksRequest.enterpriseProjectId;
625
+ }
626
+ else {
627
+ body = createRefreshTasksRequest['body'];
628
+ enterpriseProjectId = createRefreshTasksRequest['enterprise_project_id'];
629
+ }
630
+ }
631
+ if (body === null || body === undefined) {
632
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
633
+ }
634
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
635
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
636
+ }
637
+ localVarHeaderParameter['Content-Type'] = 'application/json';
638
+ options.data = body !== undefined ? body : {};
639
+ options.queryParams = localVarQueryParameter;
640
+ options.headers = localVarHeaderParameter;
641
+ return options;
642
+ },
452
643
  /**
453
644
  * - 下载区域运营商指标数据表格文件。
454
645
  *
@@ -1225,6 +1416,161 @@ const ParamCreater = function () {
1225
1416
  options.headers = localVarHeaderParameter;
1226
1417
  return options;
1227
1418
  },
1419
+ /**
1420
+ * 查询刷新预热任务详情。
1421
+ *
1422
+ * Please refer to HUAWEI cloud API Explorer for details.
1423
+ */
1424
+ showHistoryTaskDetails(showHistoryTaskDetailsRequest) {
1425
+ const options = {
1426
+ method: "GET",
1427
+ url: "/v1.0/cdn/historytasks/{history_tasks_id}/detail",
1428
+ contentType: "application/json",
1429
+ queryParams: {},
1430
+ pathParams: {},
1431
+ headers: {}
1432
+ };
1433
+ const localVarHeaderParameter = {};
1434
+ const localVarQueryParameter = {};
1435
+ let historyTasksId;
1436
+ let enterpriseProjectId;
1437
+ let pageSize;
1438
+ let pageNumber;
1439
+ let status;
1440
+ let url;
1441
+ let createTime;
1442
+ if (showHistoryTaskDetailsRequest !== null && showHistoryTaskDetailsRequest !== undefined) {
1443
+ if (showHistoryTaskDetailsRequest instanceof ShowHistoryTaskDetailsRequest_1.ShowHistoryTaskDetailsRequest) {
1444
+ historyTasksId = showHistoryTaskDetailsRequest.historyTasksId;
1445
+ enterpriseProjectId = showHistoryTaskDetailsRequest.enterpriseProjectId;
1446
+ pageSize = showHistoryTaskDetailsRequest.pageSize;
1447
+ pageNumber = showHistoryTaskDetailsRequest.pageNumber;
1448
+ status = showHistoryTaskDetailsRequest.status;
1449
+ url = showHistoryTaskDetailsRequest.url;
1450
+ createTime = showHistoryTaskDetailsRequest.createTime;
1451
+ }
1452
+ else {
1453
+ historyTasksId = showHistoryTaskDetailsRequest['history_tasks_id'];
1454
+ enterpriseProjectId = showHistoryTaskDetailsRequest['enterprise_project_id'];
1455
+ pageSize = showHistoryTaskDetailsRequest['page_size'];
1456
+ pageNumber = showHistoryTaskDetailsRequest['page_number'];
1457
+ status = showHistoryTaskDetailsRequest['status'];
1458
+ url = showHistoryTaskDetailsRequest['url'];
1459
+ createTime = showHistoryTaskDetailsRequest['create_time'];
1460
+ }
1461
+ }
1462
+ if (historyTasksId === null || historyTasksId === undefined) {
1463
+ throw new RequiredError('historyTasksId', 'Required parameter historyTasksId was null or undefined when calling showHistoryTaskDetails.');
1464
+ }
1465
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1466
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1467
+ }
1468
+ if (pageSize !== null && pageSize !== undefined) {
1469
+ localVarQueryParameter['page_size'] = pageSize;
1470
+ }
1471
+ if (pageNumber !== null && pageNumber !== undefined) {
1472
+ localVarQueryParameter['page_number'] = pageNumber;
1473
+ }
1474
+ if (status !== null && status !== undefined) {
1475
+ localVarQueryParameter['status'] = status;
1476
+ }
1477
+ if (url !== null && url !== undefined) {
1478
+ localVarQueryParameter['url'] = url;
1479
+ }
1480
+ if (createTime !== null && createTime !== undefined) {
1481
+ localVarQueryParameter['create_time'] = createTime;
1482
+ }
1483
+ options.queryParams = localVarQueryParameter;
1484
+ options.pathParams = { 'history_tasks_id': historyTasksId, };
1485
+ options.headers = localVarHeaderParameter;
1486
+ return options;
1487
+ },
1488
+ /**
1489
+ * 查询刷新预热任务。
1490
+ *
1491
+ * Please refer to HUAWEI cloud API Explorer for details.
1492
+ */
1493
+ showHistoryTasks(showHistoryTasksRequest) {
1494
+ const options = {
1495
+ method: "GET",
1496
+ url: "/v1.0/cdn/historytasks",
1497
+ contentType: "application/json",
1498
+ queryParams: {},
1499
+ pathParams: {},
1500
+ headers: {}
1501
+ };
1502
+ const localVarHeaderParameter = {};
1503
+ const localVarQueryParameter = {};
1504
+ let enterpriseProjectId;
1505
+ let pageSize;
1506
+ let pageNumber;
1507
+ let status;
1508
+ let startDate;
1509
+ let endDate;
1510
+ let orderField;
1511
+ let orderType;
1512
+ let fileType;
1513
+ let taskType;
1514
+ if (showHistoryTasksRequest !== null && showHistoryTasksRequest !== undefined) {
1515
+ if (showHistoryTasksRequest instanceof ShowHistoryTasksRequest_1.ShowHistoryTasksRequest) {
1516
+ enterpriseProjectId = showHistoryTasksRequest.enterpriseProjectId;
1517
+ pageSize = showHistoryTasksRequest.pageSize;
1518
+ pageNumber = showHistoryTasksRequest.pageNumber;
1519
+ status = showHistoryTasksRequest.status;
1520
+ startDate = showHistoryTasksRequest.startDate;
1521
+ endDate = showHistoryTasksRequest.endDate;
1522
+ orderField = showHistoryTasksRequest.orderField;
1523
+ orderType = showHistoryTasksRequest.orderType;
1524
+ fileType = showHistoryTasksRequest.fileType;
1525
+ taskType = showHistoryTasksRequest.taskType;
1526
+ }
1527
+ else {
1528
+ enterpriseProjectId = showHistoryTasksRequest['enterprise_project_id'];
1529
+ pageSize = showHistoryTasksRequest['page_size'];
1530
+ pageNumber = showHistoryTasksRequest['page_number'];
1531
+ status = showHistoryTasksRequest['status'];
1532
+ startDate = showHistoryTasksRequest['start_date'];
1533
+ endDate = showHistoryTasksRequest['end_date'];
1534
+ orderField = showHistoryTasksRequest['order_field'];
1535
+ orderType = showHistoryTasksRequest['order_type'];
1536
+ fileType = showHistoryTasksRequest['file_type'];
1537
+ taskType = showHistoryTasksRequest['task_type'];
1538
+ }
1539
+ }
1540
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1541
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1542
+ }
1543
+ if (pageSize !== null && pageSize !== undefined) {
1544
+ localVarQueryParameter['page_size'] = pageSize;
1545
+ }
1546
+ if (pageNumber !== null && pageNumber !== undefined) {
1547
+ localVarQueryParameter['page_number'] = pageNumber;
1548
+ }
1549
+ if (status !== null && status !== undefined) {
1550
+ localVarQueryParameter['status'] = status;
1551
+ }
1552
+ if (startDate !== null && startDate !== undefined) {
1553
+ localVarQueryParameter['start_date'] = startDate;
1554
+ }
1555
+ if (endDate !== null && endDate !== undefined) {
1556
+ localVarQueryParameter['end_date'] = endDate;
1557
+ }
1558
+ if (orderField !== null && orderField !== undefined) {
1559
+ localVarQueryParameter['order_field'] = orderField;
1560
+ }
1561
+ if (orderType !== null && orderType !== undefined) {
1562
+ localVarQueryParameter['order_type'] = orderType;
1563
+ }
1564
+ if (fileType !== null && fileType !== undefined) {
1565
+ localVarQueryParameter['file_type'] = fileType;
1566
+ }
1567
+ if (taskType !== null && taskType !== undefined) {
1568
+ localVarQueryParameter['task_type'] = taskType;
1569
+ }
1570
+ options.queryParams = localVarQueryParameter;
1571
+ options.headers = localVarHeaderParameter;
1572
+ return options;
1573
+ },
1228
1574
  /**
1229
1575
  * - 查询TOP域名。
1230
1576
  *
@@ -1394,6 +1740,80 @@ const ParamCreater = function () {
1394
1740
  options.headers = localVarHeaderParameter;
1395
1741
  return options;
1396
1742
  },
1743
+ /**
1744
+ * 查询刷新预热URL记录。如需此接口,请提交工单开通。
1745
+ *
1746
+ * Please refer to HUAWEI cloud API Explorer for details.
1747
+ */
1748
+ showUrlTaskInfo(showUrlTaskInfoRequest) {
1749
+ const options = {
1750
+ method: "GET",
1751
+ url: "/v1.0/cdn/contentgateway/url-tasks",
1752
+ contentType: "application/json",
1753
+ queryParams: {},
1754
+ pathParams: {},
1755
+ headers: {}
1756
+ };
1757
+ const localVarHeaderParameter = {};
1758
+ const localVarQueryParameter = {};
1759
+ let startTime;
1760
+ let endTime;
1761
+ let offset;
1762
+ let limit;
1763
+ let url;
1764
+ let taskType;
1765
+ let status;
1766
+ let fileType;
1767
+ if (showUrlTaskInfoRequest !== null && showUrlTaskInfoRequest !== undefined) {
1768
+ if (showUrlTaskInfoRequest instanceof ShowUrlTaskInfoRequest_1.ShowUrlTaskInfoRequest) {
1769
+ startTime = showUrlTaskInfoRequest.startTime;
1770
+ endTime = showUrlTaskInfoRequest.endTime;
1771
+ offset = showUrlTaskInfoRequest.offset;
1772
+ limit = showUrlTaskInfoRequest.limit;
1773
+ url = showUrlTaskInfoRequest.url;
1774
+ taskType = showUrlTaskInfoRequest.taskType;
1775
+ status = showUrlTaskInfoRequest.status;
1776
+ fileType = showUrlTaskInfoRequest.fileType;
1777
+ }
1778
+ else {
1779
+ startTime = showUrlTaskInfoRequest['start_time'];
1780
+ endTime = showUrlTaskInfoRequest['end_time'];
1781
+ offset = showUrlTaskInfoRequest['offset'];
1782
+ limit = showUrlTaskInfoRequest['limit'];
1783
+ url = showUrlTaskInfoRequest['url'];
1784
+ taskType = showUrlTaskInfoRequest['task_type'];
1785
+ status = showUrlTaskInfoRequest['status'];
1786
+ fileType = showUrlTaskInfoRequest['file_type'];
1787
+ }
1788
+ }
1789
+ if (startTime !== null && startTime !== undefined) {
1790
+ localVarQueryParameter['start_time'] = startTime;
1791
+ }
1792
+ if (endTime !== null && endTime !== undefined) {
1793
+ localVarQueryParameter['end_time'] = endTime;
1794
+ }
1795
+ if (offset !== null && offset !== undefined) {
1796
+ localVarQueryParameter['offset'] = offset;
1797
+ }
1798
+ if (limit !== null && limit !== undefined) {
1799
+ localVarQueryParameter['limit'] = limit;
1800
+ }
1801
+ if (url !== null && url !== undefined) {
1802
+ localVarQueryParameter['url'] = url;
1803
+ }
1804
+ if (taskType !== null && taskType !== undefined) {
1805
+ localVarQueryParameter['task_type'] = taskType;
1806
+ }
1807
+ if (status !== null && status !== undefined) {
1808
+ localVarQueryParameter['status'] = status;
1809
+ }
1810
+ if (fileType !== null && fileType !== undefined) {
1811
+ localVarQueryParameter['file_type'] = fileType;
1812
+ }
1813
+ options.queryParams = localVarQueryParameter;
1814
+ options.headers = localVarHeaderParameter;
1815
+ return options;
1816
+ },
1397
1817
  /**
1398
1818
  * 修改域名配置接口,支持修改业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽。
1399
1819
  *