@huaweicloud/huaweicloud-sdk-core 3.0.14-beta → 3.0.18-beta
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/CHANGELOG.md +84 -0
- package/CHANGELOG_CN.md +84 -0
- package/auth/AKSKSigner.d.ts +1 -0
- package/auth/AKSKSigner.js +17 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,87 @@
|
|
|
1
|
+
# 3.0.18-beta 2021-09-29
|
|
2
|
+
|
|
3
|
+
### HuaweiCloud SDK ECS
|
|
4
|
+
|
|
5
|
+
- _Features_
|
|
6
|
+
- Support the following interfaces:
|
|
7
|
+
- `ListServerTags`
|
|
8
|
+
- `BatchAttachSharableVolumes`
|
|
9
|
+
- `ShowServerAutoRecovery`
|
|
10
|
+
- `BatchResetServersPassword`
|
|
11
|
+
- `ReinstallServerWithoutCloudInit`
|
|
12
|
+
- `ChangeServerOsWithoutCloudInit`
|
|
13
|
+
- `BatchUpdateServersName`
|
|
14
|
+
- `ShowServerPassword`
|
|
15
|
+
- `AssociateServerVirtualIp`
|
|
16
|
+
- `MigrateServer`
|
|
17
|
+
- `ShowServerBlockDevice`
|
|
18
|
+
- `DisassociateServerVirtualIp`
|
|
19
|
+
- _Bug Fix_
|
|
20
|
+
- None
|
|
21
|
+
- _Change_
|
|
22
|
+
- None
|
|
23
|
+
|
|
24
|
+
# 3.0.17-beta 2021-09-26
|
|
25
|
+
|
|
26
|
+
### HuaweiCloud SDK FunctionGraph
|
|
27
|
+
|
|
28
|
+
- _Features_
|
|
29
|
+
- Support the service `FunctionGraph`.
|
|
30
|
+
- _Bug Fix_
|
|
31
|
+
- None
|
|
32
|
+
- _Change_
|
|
33
|
+
- None
|
|
34
|
+
|
|
35
|
+
# 3.0.16-beta 2021-09-24
|
|
36
|
+
|
|
37
|
+
### HuaweiCloud SDK CCE
|
|
38
|
+
|
|
39
|
+
- _Features_
|
|
40
|
+
- Support the interface `ShowQuotas`.
|
|
41
|
+
- _Bug Fix_
|
|
42
|
+
- None
|
|
43
|
+
- _Change_
|
|
44
|
+
- None
|
|
45
|
+
|
|
46
|
+
### HuaweiCloud SDK IVS
|
|
47
|
+
|
|
48
|
+
- _Features_
|
|
49
|
+
- Support the service `Identity Verification Solution`.
|
|
50
|
+
- _Bug Fix_
|
|
51
|
+
- None
|
|
52
|
+
- _Change_
|
|
53
|
+
- None
|
|
54
|
+
|
|
55
|
+
# 3.0.15-beta 2021-09-16
|
|
56
|
+
|
|
57
|
+
### HuaweiCloud SDK CCE
|
|
58
|
+
|
|
59
|
+
- _Features_
|
|
60
|
+
- None
|
|
61
|
+
- _Bug Fix_
|
|
62
|
+
- None
|
|
63
|
+
- _Change_
|
|
64
|
+
- Add the response parameter `platformVersion` to the interface `ShowCluster`.
|
|
65
|
+
|
|
66
|
+
### HuaweiCloud SDK IMS
|
|
67
|
+
|
|
68
|
+
- _Features_
|
|
69
|
+
- None
|
|
70
|
+
- _Bug Fix_
|
|
71
|
+
- None
|
|
72
|
+
- _Change_
|
|
73
|
+
- Add the optional request parameter `__support_amd` to the interface `CreateDataImage`.
|
|
74
|
+
- Add the response parameter `__support_amd` to the interface `ListImages`.
|
|
75
|
+
|
|
76
|
+
### HuaweiCloud SDK OCR
|
|
77
|
+
|
|
78
|
+
- _Features_
|
|
79
|
+
- Support the interface `RecognizeInvoiceVerification`.
|
|
80
|
+
- _Bug Fix_
|
|
81
|
+
- None
|
|
82
|
+
- _Change_
|
|
83
|
+
- None
|
|
84
|
+
|
|
1
85
|
# 3.0.14-beta 2021-09-10
|
|
2
86
|
|
|
3
87
|
### HuaweiCloud SDK Core
|
package/CHANGELOG_CN.md
CHANGED
|
@@ -1,3 +1,87 @@
|
|
|
1
|
+
# 3.0.18-beta 2021-09-29
|
|
2
|
+
|
|
3
|
+
### HuaweiCloud SDK ECS
|
|
4
|
+
|
|
5
|
+
- _新增特性_
|
|
6
|
+
- 支持以下接口:
|
|
7
|
+
- `ListServerTags`
|
|
8
|
+
- `BatchAttachSharableVolumes`
|
|
9
|
+
- `ShowServerAutoRecovery`
|
|
10
|
+
- `BatchResetServersPassword`
|
|
11
|
+
- `ReinstallServerWithoutCloudInit`
|
|
12
|
+
- `ChangeServerOsWithoutCloudInit`
|
|
13
|
+
- `BatchUpdateServersName`
|
|
14
|
+
- `ShowServerPassword`
|
|
15
|
+
- `AssociateServerVirtualIp`
|
|
16
|
+
- `MigrateServer`
|
|
17
|
+
- `ShowServerBlockDevice`
|
|
18
|
+
- `DisassociateServerVirtualIp`
|
|
19
|
+
- _解决问题_
|
|
20
|
+
- 无
|
|
21
|
+
- _特性变更_
|
|
22
|
+
- 无
|
|
23
|
+
|
|
24
|
+
# 3.0.17-beta 2021-09-26
|
|
25
|
+
|
|
26
|
+
### HuaweiCloud SDK FunctionGraph
|
|
27
|
+
|
|
28
|
+
- _新增特性_
|
|
29
|
+
- 支持函数工作流服务
|
|
30
|
+
- _解决问题_
|
|
31
|
+
- 无
|
|
32
|
+
- _特性变更_
|
|
33
|
+
- 无
|
|
34
|
+
|
|
35
|
+
# 3.0.16-beta 2021-09-24
|
|
36
|
+
|
|
37
|
+
### HuaweiCloud SDK CCE
|
|
38
|
+
|
|
39
|
+
- _新增特性_
|
|
40
|
+
- 支持接口`ShowQuotas`
|
|
41
|
+
- _解决问题_
|
|
42
|
+
- 无
|
|
43
|
+
- _特性变更_
|
|
44
|
+
- 无
|
|
45
|
+
|
|
46
|
+
### HuaweiCloud SDK IVS
|
|
47
|
+
|
|
48
|
+
- _新增特性_
|
|
49
|
+
- 支持人证核身服务
|
|
50
|
+
- _解决问题_
|
|
51
|
+
- 无
|
|
52
|
+
- _特性变更_
|
|
53
|
+
- 无
|
|
54
|
+
|
|
55
|
+
# 3.0.15-beta 2021-09-16
|
|
56
|
+
|
|
57
|
+
### HuaweiCloud SDK CCE
|
|
58
|
+
|
|
59
|
+
- _新增特性_
|
|
60
|
+
- 无
|
|
61
|
+
- _解决问题_
|
|
62
|
+
- 无
|
|
63
|
+
- _特性变更_
|
|
64
|
+
- 接口`ShowCluster`新增响应参数`platformVersion`
|
|
65
|
+
|
|
66
|
+
### HuaweiCloud SDK IMS
|
|
67
|
+
|
|
68
|
+
- _新增特性_
|
|
69
|
+
- 无
|
|
70
|
+
- _解决问题_
|
|
71
|
+
- 无
|
|
72
|
+
- _特性变更_
|
|
73
|
+
- 接口`CreateDataImage`新增非必填的请求参数`__support_amd`
|
|
74
|
+
- 接口`ListImages`新增响应参数`__support_amd`
|
|
75
|
+
|
|
76
|
+
### HuaweiCloud SDK OCR
|
|
77
|
+
|
|
78
|
+
- _新增特性_
|
|
79
|
+
- 支持接口`RecognizeInvoiceVerification`
|
|
80
|
+
- _解决问题_
|
|
81
|
+
- 无
|
|
82
|
+
- _特性变更_
|
|
83
|
+
- 无
|
|
84
|
+
|
|
1
85
|
# 3.0.14-beta 2021-09-10
|
|
2
86
|
|
|
3
87
|
### HuaweiCloud SDK Core
|
package/auth/AKSKSigner.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare class AKSKSigner {
|
|
|
11
11
|
private static hexTable;
|
|
12
12
|
private static noEscape;
|
|
13
13
|
static sign(request: IHttpRequest, credential: ICredential): {};
|
|
14
|
+
private static CanonicalURI;
|
|
14
15
|
private static Hex;
|
|
15
16
|
private static hmacSHA256;
|
|
16
17
|
private static getStringToSign;
|
package/auth/AKSKSigner.js
CHANGED
|
@@ -93,7 +93,7 @@ var AKSKSigner = /** @class */ (function () {
|
|
|
93
93
|
Object.assign(authenticationHeaders, { "host": host });
|
|
94
94
|
var allHeaders = {};
|
|
95
95
|
Object.assign(allHeaders, request.headers, authenticationHeaders);
|
|
96
|
-
var canonicalURI = parsedUrl.pathname
|
|
96
|
+
var canonicalURI = this.CanonicalURI(parsedUrl.pathname);
|
|
97
97
|
var canonicalQueryString = this.CanonicalQueryString(request);
|
|
98
98
|
var sortedKeys = _.sortBy(Object.keys(allHeaders), function (x) {
|
|
99
99
|
return x.toLocaleLowerCase();
|
|
@@ -111,6 +111,22 @@ var AKSKSigner = /** @class */ (function () {
|
|
|
111
111
|
Object.assign(allHeaders, authorization);
|
|
112
112
|
return allHeaders;
|
|
113
113
|
};
|
|
114
|
+
AKSKSigner.CanonicalURI = function (inputUri) {
|
|
115
|
+
if (!inputUri) {
|
|
116
|
+
return inputUri;
|
|
117
|
+
}
|
|
118
|
+
var uriList = inputUri.split('/');
|
|
119
|
+
var uri = [];
|
|
120
|
+
for (var item in uriList) {
|
|
121
|
+
var uriValue = uriList[item];
|
|
122
|
+
uri.push(encodeURIComponent(uriValue));
|
|
123
|
+
}
|
|
124
|
+
var urlpath = uri.join('/');
|
|
125
|
+
if (urlpath[urlpath.length - 1] !== '/') {
|
|
126
|
+
urlpath = urlpath + '/';
|
|
127
|
+
}
|
|
128
|
+
return urlpath;
|
|
129
|
+
};
|
|
114
130
|
AKSKSigner.getStringToSign = function (sdkSigningHash, dateTimeStamp, canonicalRequestHash) {
|
|
115
131
|
var arr = [sdkSigningHash, dateTimeStamp, canonicalRequestHash];
|
|
116
132
|
return arr.join("\n");
|
package/package.json
CHANGED