@huaweicloud/huaweicloud-sdk-cfw 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-cfw",
3
- "version": "3.1.26",
3
+ "version": "3.1.28",
4
4
  "description": "Huaweicloud SDK for cfw",
5
5
  "main": "huaweicloud-sdk-cfw.js",
6
6
  "typings": "huaweicloud-sdk-cfw.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/CfwClient.d.ts CHANGED
@@ -23,6 +23,7 @@ import { ChangeProtectEipResponse } from './model/ChangeProtectEipResponse';
23
23
  import { CountEipsRequest } from './model/CountEipsRequest';
24
24
  import { CountEipsResponse } from './model/CountEipsResponse';
25
25
  import { DeleteAclRuleCountRequest } from './model/DeleteAclRuleCountRequest';
26
+ import { DeleteAclRuleCountResponse } from './model/DeleteAclRuleCountResponse';
26
27
  import { DeleteAddressItemUsingDeleteRequest } from './model/DeleteAddressItemUsingDeleteRequest';
27
28
  import { DeleteAddressItemUsingDeleteResponse } from './model/DeleteAddressItemUsingDeleteResponse';
28
29
  import { DeleteAddressSetInfoUsingDeleteRequest } from './model/DeleteAddressSetInfoUsingDeleteRequest';
@@ -203,7 +204,7 @@ export declare class CfwClient {
203
204
  * @param {*} [options] Override http request option.
204
205
  * @throws {RequiredError}
205
206
  */
206
- deleteAclRuleCount(deleteAclRuleCountRequest?: DeleteAclRuleCountRequest): Promise<string>;
207
+ deleteAclRuleCount(deleteAclRuleCountRequest?: DeleteAclRuleCountRequest): Promise<DeleteAclRuleCountResponse>;
207
208
  /**
208
209
  * 删除地址组成员
209
210
  *
package/v1/CfwRegion.d.ts CHANGED
@@ -10,7 +10,6 @@ export declare class CfwRegion {
10
10
  static AP_SOUTHEAST_2: any;
11
11
  static AP_SOUTHEAST_4: any;
12
12
  static LA_SOUTH_2: any;
13
- private static STATIC_FIELDS;
14
- private static createStaticFields;
15
- static valueOf(regionId: String): any;
13
+ private static REGION_MAP;
14
+ static valueOf(regionId: string): any;
16
15
  }
package/v1/CfwRegion.js CHANGED
@@ -5,43 +5,40 @@ var region_1 = require("@huaweicloud/huaweicloud-sdk-core/region/region");
5
5
  var CfwRegion = /** @class */ (function () {
6
6
  function CfwRegion() {
7
7
  }
8
- CfwRegion.createStaticFields = function () {
9
- var map = new Map();
10
- map.set("cn-south-4", CfwRegion.CN_SOUTH_4);
11
- map.set("cn-southwest-2", CfwRegion.CN_SOUTHWEST_2);
12
- map.set("cn-south-1", CfwRegion.CN_SOUTH_1);
13
- map.set("cn-east-3", CfwRegion.CN_EAST_3);
14
- map.set("cn-north-4", CfwRegion.CN_NORTH_4);
15
- map.set("ap-southeast-1", CfwRegion.AP_SOUTHEAST_1);
16
- map.set("ap-southeast-3", CfwRegion.AP_SOUTHEAST_3);
17
- map.set("la-north-2", CfwRegion.LA_NORTH_2);
18
- map.set("ap-southeast-2", CfwRegion.AP_SOUTHEAST_2);
19
- map.set("ap-southeast-4", CfwRegion.AP_SOUTHEAST_4);
20
- map.set("la-south-2", CfwRegion.LA_SOUTH_2);
21
- return map;
22
- };
23
8
  CfwRegion.valueOf = function (regionId) {
24
9
  if (!regionId) {
25
10
  throw new Error("Unexpected empty parameter: regionId.");
26
11
  }
27
- var result = this.STATIC_FIELDS.get(regionId);
12
+ var result = this.REGION_MAP[regionId];
28
13
  if (result) {
29
14
  return result;
30
15
  }
31
16
  throw new Error("Unexpected regionId: ".concat(regionId, "."));
32
17
  };
33
- CfwRegion.CN_SOUTH_4 = new region_1.Region("cn-south-4", "https://cfw.cn-south-4.myhuaweicloud.com");
34
- CfwRegion.CN_SOUTHWEST_2 = new region_1.Region("cn-southwest-2", "https://cfw.cn-southwest-2.myhuaweicloud.com");
35
- CfwRegion.CN_SOUTH_1 = new region_1.Region("cn-south-1", "https://cfw.cn-south-1.myhuaweicloud.com");
36
- CfwRegion.CN_EAST_3 = new region_1.Region("cn-east-3", "https://cfw.cn-east-3.myhuaweicloud.com");
37
- CfwRegion.CN_NORTH_4 = new region_1.Region("cn-north-4", "https://cfw.cn-north-4.myhuaweicloud.com");
38
- CfwRegion.AP_SOUTHEAST_1 = new region_1.Region("ap-southeast-1", "https://cfw.ap-southeast-1.myhuaweicloud.com");
39
- CfwRegion.AP_SOUTHEAST_3 = new region_1.Region("ap-southeast-3", "https://cfw.ap-southeast-3.myhuaweicloud.com");
40
- CfwRegion.LA_NORTH_2 = new region_1.Region("la-north-2", "https://cfw.la-north-2.myhuaweicloud.com");
41
- CfwRegion.AP_SOUTHEAST_2 = new region_1.Region("ap-southeast-2", "https://cfw.ap-southeast-2.myhuaweicloud.com");
42
- CfwRegion.AP_SOUTHEAST_4 = new region_1.Region("ap-southeast-4", "https://cfw.ap-southeast-4.myhuaweicloud.com");
43
- CfwRegion.LA_SOUTH_2 = new region_1.Region("la-south-2", "https://cfw.la-south-2.myhuaweicloud.com");
44
- CfwRegion.STATIC_FIELDS = CfwRegion.createStaticFields();
18
+ CfwRegion.CN_SOUTH_4 = new region_1.Region("cn-south-4", ["https://cfw.cn-south-4.myhuaweicloud.com"]);
19
+ CfwRegion.CN_SOUTHWEST_2 = new region_1.Region("cn-southwest-2", ["https://cfw.cn-southwest-2.myhuaweicloud.com"]);
20
+ CfwRegion.CN_SOUTH_1 = new region_1.Region("cn-south-1", ["https://cfw.cn-south-1.myhuaweicloud.com"]);
21
+ CfwRegion.CN_EAST_3 = new region_1.Region("cn-east-3", ["https://cfw.cn-east-3.myhuaweicloud.com"]);
22
+ CfwRegion.CN_NORTH_4 = new region_1.Region("cn-north-4", ["https://cfw.cn-north-4.myhuaweicloud.com"]);
23
+ CfwRegion.AP_SOUTHEAST_1 = new region_1.Region("ap-southeast-1", ["https://cfw.ap-southeast-1.myhuaweicloud.com"]);
24
+ CfwRegion.AP_SOUTHEAST_3 = new region_1.Region("ap-southeast-3", ["https://cfw.ap-southeast-3.myhuaweicloud.com"]);
25
+ CfwRegion.LA_NORTH_2 = new region_1.Region("la-north-2", ["https://cfw.la-north-2.myhuaweicloud.com"]);
26
+ CfwRegion.AP_SOUTHEAST_2 = new region_1.Region("ap-southeast-2", ["https://cfw.ap-southeast-2.myhuaweicloud.com"]);
27
+ CfwRegion.AP_SOUTHEAST_4 = new region_1.Region("ap-southeast-4", ["https://cfw.ap-southeast-4.myhuaweicloud.com"]);
28
+ CfwRegion.LA_SOUTH_2 = new region_1.Region("la-south-2", ["https://cfw.la-south-2.myhuaweicloud.com"]);
29
+ CfwRegion.REGION_MAP = {
30
+ "cn-south-4": CfwRegion.CN_SOUTH_4,
31
+ "cn-southwest-2": CfwRegion.CN_SOUTHWEST_2,
32
+ "cn-south-1": CfwRegion.CN_SOUTH_1,
33
+ "cn-east-3": CfwRegion.CN_EAST_3,
34
+ "cn-north-4": CfwRegion.CN_NORTH_4,
35
+ "ap-southeast-1": CfwRegion.AP_SOUTHEAST_1,
36
+ "ap-southeast-3": CfwRegion.AP_SOUTHEAST_3,
37
+ "la-north-2": CfwRegion.LA_NORTH_2,
38
+ "ap-southeast-2": CfwRegion.AP_SOUTHEAST_2,
39
+ "ap-southeast-4": CfwRegion.AP_SOUTHEAST_4,
40
+ "la-south-2": CfwRegion.LA_SOUTH_2
41
+ };
45
42
  return CfwRegion;
46
43
  }());
47
44
  exports.CfwRegion = CfwRegion;