@huaweicloud/huaweicloud-sdk-image 3.1.26 → 3.1.28
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.
- package/package.json +2 -2
- package/v2/ImageRegion.d.ts +2 -3
- package/v2/ImageRegion.js +13 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaweicloud/huaweicloud-sdk-image",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.28",
|
|
4
4
|
"description": "Huaweicloud SDK for image",
|
|
5
5
|
"main": "huaweicloud-sdk-image.js",
|
|
6
6
|
"typings": "huaweicloud-sdk-image.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.
|
|
17
|
+
"@huaweicloud/huaweicloud-sdk-core": "^3.1.28"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/v2/ImageRegion.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export declare class ImageRegion {
|
|
|
4
4
|
static AP_SOUTHEAST_1: any;
|
|
5
5
|
static AP_SOUTHEAST_3: any;
|
|
6
6
|
static CN_EAST_3: any;
|
|
7
|
-
private static
|
|
8
|
-
|
|
9
|
-
static valueOf(regionId: String): any;
|
|
7
|
+
private static REGION_MAP;
|
|
8
|
+
static valueOf(regionId: string): any;
|
|
10
9
|
}
|
package/v2/ImageRegion.js
CHANGED
|
@@ -5,31 +5,28 @@ var region_1 = require("@huaweicloud/huaweicloud-sdk-core/region/region");
|
|
|
5
5
|
var ImageRegion = /** @class */ (function () {
|
|
6
6
|
function ImageRegion() {
|
|
7
7
|
}
|
|
8
|
-
ImageRegion.createStaticFields = function () {
|
|
9
|
-
var map = new Map();
|
|
10
|
-
map.set("cn-north-4", ImageRegion.CN_NORTH_4);
|
|
11
|
-
map.set("cn-north-1", ImageRegion.CN_NORTH_1);
|
|
12
|
-
map.set("ap-southeast-1", ImageRegion.AP_SOUTHEAST_1);
|
|
13
|
-
map.set("ap-southeast-3", ImageRegion.AP_SOUTHEAST_3);
|
|
14
|
-
map.set("cn-east-3", ImageRegion.CN_EAST_3);
|
|
15
|
-
return map;
|
|
16
|
-
};
|
|
17
8
|
ImageRegion.valueOf = function (regionId) {
|
|
18
9
|
if (!regionId) {
|
|
19
10
|
throw new Error("Unexpected empty parameter: regionId.");
|
|
20
11
|
}
|
|
21
|
-
var result = this.
|
|
12
|
+
var result = this.REGION_MAP[regionId];
|
|
22
13
|
if (result) {
|
|
23
14
|
return result;
|
|
24
15
|
}
|
|
25
16
|
throw new Error("Unexpected regionId: ".concat(regionId, "."));
|
|
26
17
|
};
|
|
27
|
-
ImageRegion.CN_NORTH_4 = new region_1.Region("cn-north-4", "https://image.cn-north-4.myhuaweicloud.com");
|
|
28
|
-
ImageRegion.CN_NORTH_1 = new region_1.Region("cn-north-1", "https://image.cn-north-1.myhuaweicloud.com");
|
|
29
|
-
ImageRegion.AP_SOUTHEAST_1 = new region_1.Region("ap-southeast-1", "https://image.ap-southeast-1.myhuaweicloud.com");
|
|
30
|
-
ImageRegion.AP_SOUTHEAST_3 = new region_1.Region("ap-southeast-3", "https://image.ap-southeast-3.myhuaweicloud.com");
|
|
31
|
-
ImageRegion.CN_EAST_3 = new region_1.Region("cn-east-3", "https://image.cn-east-3.myhuaweicloud.com");
|
|
32
|
-
ImageRegion.
|
|
18
|
+
ImageRegion.CN_NORTH_4 = new region_1.Region("cn-north-4", ["https://image.cn-north-4.myhuaweicloud.com"]);
|
|
19
|
+
ImageRegion.CN_NORTH_1 = new region_1.Region("cn-north-1", ["https://image.cn-north-1.myhuaweicloud.com"]);
|
|
20
|
+
ImageRegion.AP_SOUTHEAST_1 = new region_1.Region("ap-southeast-1", ["https://image.ap-southeast-1.myhuaweicloud.com"]);
|
|
21
|
+
ImageRegion.AP_SOUTHEAST_3 = new region_1.Region("ap-southeast-3", ["https://image.ap-southeast-3.myhuaweicloud.com"]);
|
|
22
|
+
ImageRegion.CN_EAST_3 = new region_1.Region("cn-east-3", ["https://image.cn-east-3.myhuaweicloud.com"]);
|
|
23
|
+
ImageRegion.REGION_MAP = {
|
|
24
|
+
"cn-north-4": ImageRegion.CN_NORTH_4,
|
|
25
|
+
"cn-north-1": ImageRegion.CN_NORTH_1,
|
|
26
|
+
"ap-southeast-1": ImageRegion.AP_SOUTHEAST_1,
|
|
27
|
+
"ap-southeast-3": ImageRegion.AP_SOUTHEAST_3,
|
|
28
|
+
"cn-east-3": ImageRegion.CN_EAST_3
|
|
29
|
+
};
|
|
33
30
|
return ImageRegion;
|
|
34
31
|
}());
|
|
35
32
|
exports.ImageRegion = ImageRegion;
|