@huaweicloud/huaweicloud-sdk-swr 3.0.37-rc → 3.0.40-rc

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,18 @@
1
+ export declare class SwrRegion {
2
+ static AF_SOUTH_1: any;
3
+ static AP_SOUTHEAST_1: any;
4
+ static AP_SOUTHEAST_2: any;
5
+ static AP_SOUTHEAST_3: any;
6
+ static CN_EAST_2: any;
7
+ static CN_EAST_3: any;
8
+ static CN_NORTH_1: any;
9
+ static CN_NORTH_2: any;
10
+ static CN_NORTH_4: any;
11
+ static CN_SOUTH_1: any;
12
+ static CN_SOUTH_2: any;
13
+ static CN_SOUTHWEST_2: any;
14
+ static RU_NORTHWEST_2: any;
15
+ private static STATIC_FIELDS;
16
+ private static createStaticFields;
17
+ static valueOf(regionId: String): any;
18
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SwrRegion = void 0;
4
+ var region_1 = require("@huaweicloud/huaweicloud-sdk-core/region/region");
5
+ var SwrRegion = /** @class */ (function () {
6
+ function SwrRegion() {
7
+ }
8
+ SwrRegion.createStaticFields = function () {
9
+ var map = new Map();
10
+ map.set("af-south-1", SwrRegion.AF_SOUTH_1);
11
+ map.set("ap-southeast-1", SwrRegion.AP_SOUTHEAST_1);
12
+ map.set("ap-southeast-2", SwrRegion.AP_SOUTHEAST_2);
13
+ map.set("ap-southeast-3", SwrRegion.AP_SOUTHEAST_3);
14
+ map.set("cn-east-2", SwrRegion.CN_EAST_2);
15
+ map.set("cn-east-3", SwrRegion.CN_EAST_3);
16
+ map.set("cn-north-1", SwrRegion.CN_NORTH_1);
17
+ map.set("cn-north-2", SwrRegion.CN_NORTH_2);
18
+ map.set("cn-north-4", SwrRegion.CN_NORTH_4);
19
+ map.set("cn-south-1", SwrRegion.CN_SOUTH_1);
20
+ map.set("cn-south-2", SwrRegion.CN_SOUTH_2);
21
+ map.set("cn-southwest-2", SwrRegion.CN_SOUTHWEST_2);
22
+ map.set("ru-northwest-2", SwrRegion.RU_NORTHWEST_2);
23
+ return map;
24
+ };
25
+ SwrRegion.valueOf = function (regionId) {
26
+ if (!regionId) {
27
+ throw new Error("Unexpected empty parameter: regionId.");
28
+ }
29
+ var result = this.STATIC_FIELDS.get(regionId);
30
+ if (result) {
31
+ return result;
32
+ }
33
+ throw new Error("Unexpected regionId: ".concat(regionId, "."));
34
+ };
35
+ SwrRegion.AF_SOUTH_1 = new region_1.Region("af-south-1", "https://swr-api.af-south-1.myhuaweicloud.com");
36
+ SwrRegion.AP_SOUTHEAST_1 = new region_1.Region("ap-southeast-1", "https://swr-api.ap-southeast-1.myhuaweicloud.com");
37
+ SwrRegion.AP_SOUTHEAST_2 = new region_1.Region("ap-southeast-2", "https://swr-api.ap-southeast-2.myhuaweicloud.com");
38
+ SwrRegion.AP_SOUTHEAST_3 = new region_1.Region("ap-southeast-3", "https://swr-api.ap-southeast-3.myhuaweicloud.com");
39
+ SwrRegion.CN_EAST_2 = new region_1.Region("cn-east-2", "https://swr-api.cn-east-2.myhuaweicloud.com");
40
+ SwrRegion.CN_EAST_3 = new region_1.Region("cn-east-3", "https://swr-api.cn-east-3.myhuaweicloud.com");
41
+ SwrRegion.CN_NORTH_1 = new region_1.Region("cn-north-1", "https://swr-api.cn-north-1.myhuaweicloud.com");
42
+ SwrRegion.CN_NORTH_2 = new region_1.Region("cn-north-2", "https://swr-api.cn-north-2.myhuaweicloud.com");
43
+ SwrRegion.CN_NORTH_4 = new region_1.Region("cn-north-4", "https://swr-api.cn-north-4.myhuaweicloud.com");
44
+ SwrRegion.CN_SOUTH_1 = new region_1.Region("cn-south-1", "https://swr-api.cn-south-1.myhuaweicloud.com");
45
+ SwrRegion.CN_SOUTH_2 = new region_1.Region("cn-south-2", "https://swr-api.cn-south-2.myhuaweicloud.com");
46
+ SwrRegion.CN_SOUTHWEST_2 = new region_1.Region("cn-southwest-2", "https://swr-api.cn-southwest-2.myhuaweicloud.com");
47
+ SwrRegion.RU_NORTHWEST_2 = new region_1.Region("ru-northwest-2", "https://swr-api.ru-northwest-2.myhuaweicloud.com");
48
+ SwrRegion.STATIC_FIELDS = SwrRegion.createStaticFields();
49
+ return SwrRegion;
50
+ }());
51
+ exports.SwrRegion = SwrRegion;
@@ -119,3 +119,4 @@ export * from './model/UpdateUserRepositoryAuthRequest';
119
119
  export * from './model/UpdateUserRepositoryAuthResponse';
120
120
  export * from './model/UserAuth';
121
121
  export * from './model/VersionDetail';
122
+ export * from './SwrRegion';
package/v2/public-api.js CHANGED
@@ -135,3 +135,4 @@ __exportStar(require("./model/UpdateUserRepositoryAuthRequest"), exports);
135
135
  __exportStar(require("./model/UpdateUserRepositoryAuthResponse"), exports);
136
136
  __exportStar(require("./model/UserAuth"), exports);
137
137
  __exportStar(require("./model/VersionDetail"), exports);
138
+ __exportStar(require("./SwrRegion"), exports);