@huaweicloud/huaweicloud-sdk-cdn 3.1.26 → 3.1.28

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-cdn",
3
- "version": "3.1.26",
3
+ "version": "3.1.28",
4
4
  "description": "Huaweicloud SDK for cdn",
5
5
  "main": "huaweicloud-sdk-cdn.js",
6
6
  "typings": "huaweicloud-sdk-cdn.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.1.26"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.28"
18
18
  }
19
19
  }
package/v1/CdnClient.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
2
2
  import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
3
3
  import { BatchDeleteTagsRequest } from './model/BatchDeleteTagsRequest';
4
+ import { BatchDeleteTagsResponse } from './model/BatchDeleteTagsResponse';
4
5
  import { CreateDomainRequest } from './model/CreateDomainRequest';
5
6
  import { CreateDomainResponse } from './model/CreateDomainResponse';
6
7
  import { CreatePreheatingTasksRequest } from './model/CreatePreheatingTasksRequest';
@@ -8,6 +9,7 @@ import { CreatePreheatingTasksResponse } from './model/CreatePreheatingTasksResp
8
9
  import { CreateRefreshTasksRequest } from './model/CreateRefreshTasksRequest';
9
10
  import { CreateRefreshTasksResponse } from './model/CreateRefreshTasksResponse';
10
11
  import { CreateTagsRequest } from './model/CreateTagsRequest';
12
+ import { CreateTagsResponse } from './model/CreateTagsResponse';
11
13
  import { DeleteDomainRequest } from './model/DeleteDomainRequest';
12
14
  import { DeleteDomainResponse } from './model/DeleteDomainResponse';
13
15
  import { DisableDomainRequest } from './model/DisableDomainRequest';
@@ -62,6 +64,7 @@ import { UpdateBlackWhiteListResponse } from './model/UpdateBlackWhiteListRespon
62
64
  import { UpdateCacheRulesRequest } from './model/UpdateCacheRulesRequest';
63
65
  import { UpdateCacheRulesResponse } from './model/UpdateCacheRulesResponse';
64
66
  import { UpdateDomainFullConfigRequest } from './model/UpdateDomainFullConfigRequest';
67
+ import { UpdateDomainFullConfigResponse } from './model/UpdateDomainFullConfigResponse';
65
68
  import { UpdateDomainMultiCertificatesRequest } from './model/UpdateDomainMultiCertificatesRequest';
66
69
  import { UpdateDomainMultiCertificatesResponse } from './model/UpdateDomainMultiCertificatesResponse';
67
70
  import { UpdateDomainOriginRequest } from './model/UpdateDomainOriginRequest';
@@ -95,7 +98,7 @@ export declare class CdnClient {
95
98
  * @param {*} [options] Override http request option.
96
99
  * @throws {RequiredError}
97
100
  */
98
- batchDeleteTags(batchDeleteTagsRequest?: BatchDeleteTagsRequest): Promise<void>;
101
+ batchDeleteTags(batchDeleteTagsRequest?: BatchDeleteTagsRequest): Promise<BatchDeleteTagsResponse>;
99
102
  /**
100
103
  * 创建加速域名。
101
104
  *
@@ -141,7 +144,7 @@ export declare class CdnClient {
141
144
  * @param {*} [options] Override http request option.
142
145
  * @throws {RequiredError}
143
146
  */
144
- createTags(createTagsRequest?: CreateTagsRequest): Promise<void>;
147
+ createTags(createTagsRequest?: CreateTagsRequest): Promise<CreateTagsResponse>;
145
148
  /**
146
149
  * 删除加速域名。
147
150
  *
@@ -591,7 +594,7 @@ export declare class CdnClient {
591
594
  * @param {*} [options] Override http request option.
592
595
  * @throws {RequiredError}
593
596
  */
594
- updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest): Promise<void>;
597
+ updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest): Promise<UpdateDomainFullConfigResponse>;
595
598
  /**
596
599
  * 一个证书配置多个域名,设置域名强制https回源参数。
597
600
  *
package/v1/CdnRegion.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export declare class CdnRegion {
2
2
  static CN_NORTH_1: any;
3
3
  static AP_SOUTHEAST_1: any;
4
- private static STATIC_FIELDS;
5
- private static createStaticFields;
6
- static valueOf(regionId: String): any;
4
+ private static REGION_MAP;
5
+ static valueOf(regionId: string): any;
7
6
  }
package/v1/CdnRegion.js CHANGED
@@ -5,25 +5,22 @@ var region_1 = require("@huaweicloud/huaweicloud-sdk-core/region/region");
5
5
  var CdnRegion = /** @class */ (function () {
6
6
  function CdnRegion() {
7
7
  }
8
- CdnRegion.createStaticFields = function () {
9
- var map = new Map();
10
- map.set("cn-north-1", CdnRegion.CN_NORTH_1);
11
- map.set("ap-southeast-1", CdnRegion.AP_SOUTHEAST_1);
12
- return map;
13
- };
14
8
  CdnRegion.valueOf = function (regionId) {
15
9
  if (!regionId) {
16
10
  throw new Error("Unexpected empty parameter: regionId.");
17
11
  }
18
- var result = this.STATIC_FIELDS.get(regionId);
12
+ var result = this.REGION_MAP[regionId];
19
13
  if (result) {
20
14
  return result;
21
15
  }
22
16
  throw new Error("Unexpected regionId: ".concat(regionId, "."));
23
17
  };
24
- CdnRegion.CN_NORTH_1 = new region_1.Region("cn-north-1", "https://cdn.myhuaweicloud.com");
25
- CdnRegion.AP_SOUTHEAST_1 = new region_1.Region("ap-southeast-1", "https://cdn.myhuaweicloud.com");
26
- CdnRegion.STATIC_FIELDS = CdnRegion.createStaticFields();
18
+ CdnRegion.CN_NORTH_1 = new region_1.Region("cn-north-1", ["https://cdn.myhuaweicloud.com"]);
19
+ CdnRegion.AP_SOUTHEAST_1 = new region_1.Region("ap-southeast-1", ["https://cdn.myhuaweicloud.com"]);
20
+ CdnRegion.REGION_MAP = {
21
+ "cn-north-1": CdnRegion.CN_NORTH_1,
22
+ "ap-southeast-1": CdnRegion.AP_SOUTHEAST_1
23
+ };
27
24
  return CdnRegion;
28
25
  }());
29
26
  exports.CdnRegion = CdnRegion;
package/v2/CdnClient.d.ts CHANGED
@@ -3,7 +3,9 @@ import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
3
3
  import { BatchCopyDomainRequest } from './model/BatchCopyDomainRequest';
4
4
  import { BatchCopyDomainResponse } from './model/BatchCopyDomainResponse';
5
5
  import { DownloadRegionCarrierExcelRequest } from './model/DownloadRegionCarrierExcelRequest';
6
+ import { DownloadRegionCarrierExcelResponse } from './model/DownloadRegionCarrierExcelResponse';
6
7
  import { DownloadStatisticsExcelRequest } from './model/DownloadStatisticsExcelRequest';
8
+ import { DownloadStatisticsExcelResponse } from './model/DownloadStatisticsExcelResponse';
7
9
  import { SetChargeModesRequest } from './model/SetChargeModesRequest';
8
10
  import { SetChargeModesResponse } from './model/SetChargeModesResponse';
9
11
  import { ShowBandwidthCalcRequest } from './model/ShowBandwidthCalcRequest';
@@ -63,7 +65,7 @@ export declare class CdnClient {
63
65
  * @param {*} [options] Override http request option.
64
66
  * @throws {RequiredError}
65
67
  */
66
- downloadRegionCarrierExcel(downloadRegionCarrierExcelRequest?: DownloadRegionCarrierExcelRequest): Promise<void>;
68
+ downloadRegionCarrierExcel(downloadRegionCarrierExcelRequest?: DownloadRegionCarrierExcelRequest): Promise<DownloadRegionCarrierExcelResponse>;
67
69
  /**
68
70
  * - 下载统计指标数据表格文件。
69
71
  *
@@ -91,7 +93,7 @@ export declare class CdnClient {
91
93
  * @param {*} [options] Override http request option.
92
94
  * @throws {RequiredError}
93
95
  */
94
- downloadStatisticsExcel(downloadStatisticsExcelRequest?: DownloadStatisticsExcelRequest): Promise<void>;
96
+ downloadStatisticsExcel(downloadStatisticsExcelRequest?: DownloadStatisticsExcelRequest): Promise<DownloadStatisticsExcelResponse>;
95
97
  /**
96
98
  * - 设置用户计费模式。
97
99
  *
package/v2/CdnRegion.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export declare class CdnRegion {
2
2
  static CN_NORTH_1: any;
3
3
  static AP_SOUTHEAST_1: any;
4
- private static STATIC_FIELDS;
5
- private static createStaticFields;
6
- static valueOf(regionId: String): any;
4
+ private static REGION_MAP;
5
+ static valueOf(regionId: string): any;
7
6
  }
package/v2/CdnRegion.js CHANGED
@@ -5,25 +5,22 @@ var region_1 = require("@huaweicloud/huaweicloud-sdk-core/region/region");
5
5
  var CdnRegion = /** @class */ (function () {
6
6
  function CdnRegion() {
7
7
  }
8
- CdnRegion.createStaticFields = function () {
9
- var map = new Map();
10
- map.set("cn-north-1", CdnRegion.CN_NORTH_1);
11
- map.set("ap-southeast-1", CdnRegion.AP_SOUTHEAST_1);
12
- return map;
13
- };
14
8
  CdnRegion.valueOf = function (regionId) {
15
9
  if (!regionId) {
16
10
  throw new Error("Unexpected empty parameter: regionId.");
17
11
  }
18
- var result = this.STATIC_FIELDS.get(regionId);
12
+ var result = this.REGION_MAP[regionId];
19
13
  if (result) {
20
14
  return result;
21
15
  }
22
16
  throw new Error("Unexpected regionId: ".concat(regionId, "."));
23
17
  };
24
- CdnRegion.CN_NORTH_1 = new region_1.Region("cn-north-1", "https://cdn.myhuaweicloud.com");
25
- CdnRegion.AP_SOUTHEAST_1 = new region_1.Region("ap-southeast-1", "https://cdn.myhuaweicloud.com");
26
- CdnRegion.STATIC_FIELDS = CdnRegion.createStaticFields();
18
+ CdnRegion.CN_NORTH_1 = new region_1.Region("cn-north-1", ["https://cdn.myhuaweicloud.com"]);
19
+ CdnRegion.AP_SOUTHEAST_1 = new region_1.Region("ap-southeast-1", ["https://cdn.myhuaweicloud.com"]);
20
+ CdnRegion.REGION_MAP = {
21
+ "cn-north-1": CdnRegion.CN_NORTH_1,
22
+ "ap-southeast-1": CdnRegion.AP_SOUTHEAST_1
23
+ };
27
24
  return CdnRegion;
28
25
  }());
29
26
  exports.CdnRegion = CdnRegion;