@huaweicloud/huaweicloud-sdk-core 3.0.20-beta → 3.0.24-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 CHANGED
@@ -1,3 +1,151 @@
1
+ # 3.0.24-beta 2021-11-29
2
+
3
+ ### HuaweiCloud SDK CCE
4
+
5
+ - _Features_
6
+ - None
7
+ - _Bug Fix_
8
+ - None
9
+ - _Change_
10
+ - Add the response parameter `cidrs` to the interface `ShowCluster`.
11
+
12
+ ### HuaweiCloud SDK EVS
13
+
14
+ - _Features_
15
+ - None
16
+ - _Bug Fix_
17
+ - None
18
+ - _Change_
19
+ - Remove the interface `CinderExportToImage`.
20
+
21
+ ### HuaweiCloud SDK ECS
22
+
23
+ - _Features_
24
+ - None
25
+ - _Bug Fix_
26
+ - None
27
+ - _Change_
28
+ - Add the response parameter `os:scheduler_hints` to the interfaces `NovaShowServer` and `NovaListServersDetails`.
29
+
30
+ ### HuaweiCloud SDK FunctionGraph
31
+
32
+ - _Features_
33
+ - None
34
+ - _Bug Fix_
35
+ - None
36
+ - _Change_
37
+ - Add the response parameter `ListVersionAliases` to the interface `ListVersionAliases`.
38
+ - Update the request parameter `name` to required of the interfaces `CreateDependency` and `UpdateDependency`.
39
+ - Update the request parameters `name` and `content` to required of the interface `CreateEvent`.
40
+
41
+ # 3.0.23-beta 2021-11-25
42
+
43
+ ### HuaweiCloud SDK CCE
44
+
45
+ - _Features_
46
+ - None
47
+ - _Bug Fix_
48
+ - None
49
+ - _Change_
50
+ - Add the response parameter `platformVersion` to the interface `ShowCluster`.
51
+ - Add the enumeration values `RollingBack` and `RollbackFailed` to the request parameter `status` of the interface `ListClusters`.
52
+
53
+ ### HuaweiCloud SDK EIP
54
+
55
+ - _Features_
56
+ - None
57
+ - _Bug Fix_
58
+ - None
59
+ - _Change_
60
+ - Add the request and response parameter `alias` to the interfaces `CreatePrePaidPublicip` and `CreatePublicip`.
61
+ - Add the response parameter `alias` to the interfaces `ShowPublicip` and `UpdatePublicip`.
62
+
63
+ ### HuaweiCloud SDK OCR
64
+
65
+ - _Features_
66
+ - None
67
+ - _Bug Fix_
68
+ - None
69
+ - _Change_
70
+ - Remove the response parameter `extracted_data` of the interface `RecognizeHandwriting`.
71
+
72
+ # 3.0.22-beta 2021-11-12
73
+
74
+ ### HuaweiCloud SDK CCE
75
+
76
+ - _Features_
77
+ - None
78
+ - _Bug Fix_
79
+ - None
80
+ - _Change_
81
+ - Add the request parameter `customSan` to the interface `UpdateNode`.
82
+
83
+ ### HuaweiCloud SDK OCR
84
+
85
+ - _Features_
86
+ - None
87
+ - _Bug Fix_
88
+ - None
89
+ - _Change_
90
+ - Add the response parameter `confidence` to the interface `RecognizeGeneralTable`.
91
+
92
+ ### HuaweiCloud SDK VPC
93
+
94
+ - _Features_
95
+ - Support interfaces(V3): `AddVpcExtendCidr`��`RemoveVpcExtendCidr`��`ListVpcs`��`ShowVpc`
96
+ - _Bug Fix_
97
+ - None
98
+ - _Change_
99
+ - None
100
+
101
+ # 3.0.21-beta 2021-10-25
102
+
103
+ ### HuaweiCloud SDK EIP
104
+
105
+ - _Features_
106
+ - None
107
+ - _Bug Fix_
108
+ - None
109
+ - _Change_
110
+ - Add the request parameter `bandwidth_type` to the interface `CreateSharedBandwidth`.
111
+
112
+ ### HuaweiCloud SDK FRS
113
+
114
+ - _Features_
115
+ - None
116
+ - _Bug Fix_
117
+ - None
118
+ - _Change_
119
+ - Add the request parameter `single` to the interfaces `AddFacesByFile`, `AddFacesByBase64` and `AddFacesByUrl`.
120
+
121
+ ### HuaweiCloud SDK IMS
122
+
123
+ - _Features_
124
+ - None
125
+ - _Bug Fix_
126
+ - None
127
+ - _Change_
128
+ - Add the response parameters `current_task`, `image_name` and `process_percent` to the interface `ShowJob`.
129
+
130
+ ### HuaweiCloud SDK IoTDA
131
+
132
+ - _Features_
133
+ - None
134
+ - _Bug Fix_
135
+ - None
136
+ - _Change_
137
+ - Add the request parameter `status` to the interface `ListDevices`.
138
+ - Add the request parameter `file_path` to the interface `CreateRuleAction`.
139
+
140
+ ### HuaweiCloud SDK OCR
141
+
142
+ - _Features_
143
+ - Support the interfaces `RecognizeInsurancePolicy`, `RecognizeFinancialStatement` and `RecognizeQualificationCertificate`.
144
+ - _Bug Fix_
145
+ - None
146
+ - _Change_
147
+ - None
148
+
1
149
  # 3.0.20-beta 2021-10-19
2
150
 
3
151
  ### HuaweiCloud SDK EIP
package/CHANGELOG_CN.md CHANGED
@@ -1,3 +1,151 @@
1
+ # 3.0.24-beta 2021-11-29
2
+
3
+ ### HuaweiCloud SDK CCE
4
+
5
+ - _新增特性_
6
+ - 无
7
+ - _解决问题_
8
+ - 无
9
+ - _特性变更_
10
+ - 接口`ShowCluster`新增响应参数`cidrs`
11
+
12
+ ### HuaweiCloud SDK EVS
13
+
14
+ - _新增特性_
15
+ - 无
16
+ - _解决问题_
17
+ - 无
18
+ - _特性变更_
19
+ - 移除接口`CinderExportToImage`
20
+
21
+ ### HuaweiCloud SDK ECS
22
+
23
+ - _新增特性_
24
+ - 无
25
+ - _解决问题_
26
+ - 无
27
+ - _特性变更_
28
+ - 接口`NovaShowServer`和`NovaListServersDetails`新增响应参数`os:scheduler_hints`
29
+
30
+ ### HuaweiCloud SDK FunctionGraph
31
+
32
+ - _新增特性_
33
+ - 无
34
+ - _解决问题_
35
+ - 无
36
+ - _特性变更_
37
+ - 接口`ListVersionAliases`新增响应参数`ListVersionAliases`
38
+ - 接口`CreateDependency`和`UpdateDependency`的请求参数`name`改为必填
39
+ - 接口`CreateEvent`的请求参数`name`和`content`改为必填
40
+
41
+ # 3.0.23-beta 2021-11-25
42
+
43
+ ### HuaweiCloud SDK CCE
44
+
45
+ - _新增特性_
46
+ - 无
47
+ - _解决问题_
48
+ - 无
49
+ - _特性变更_
50
+ - 接口`ShowCluster`新增响应参数`platformVersion`
51
+ - 接口`ListClusters`的请求参数`status`新增枚举值`RollingBack`和`RollbackFailed`
52
+
53
+ ### HuaweiCloud SDK EIP
54
+
55
+ - _新增特性_
56
+ - 无
57
+ - _解决问题_
58
+ - 无
59
+ - _特性变更_
60
+ - 接口`CreatePrePaidPublicip`、`CreatePublicip`新增请求和响应参数`alias`
61
+ - 接口`ShowPublicip`、`UpdatePublicip`新增响应参数`alias`
62
+
63
+ ### HuaweiCloud SDK OCR
64
+
65
+ - _新增特性_
66
+ - 无
67
+ - _解决问题_
68
+ - 无
69
+ - _特性变更_
70
+ - 接口`RecognizeHandwriting`移除响应参数`extracted_data`
71
+
72
+ # 3.0.22-beta 2021-11-12
73
+
74
+ ### HuaweiCloud SDK CCE
75
+
76
+ - _新增特性_
77
+ - 无
78
+ - _解决问题_
79
+ - 无
80
+ - _特性变更_
81
+ - 接口`UpdateNode`新增请求参数`customSan`
82
+
83
+ ### HuaweiCloud SDK OCR
84
+
85
+ - _新增特性_
86
+ - 无
87
+ - _解决问题_
88
+ - 无
89
+ - _特性变更_
90
+ - 接口`RecognizeGeneralTable`新增响应参数`confidence`
91
+
92
+ ### HuaweiCloud SDK VPC
93
+
94
+ - _新增特性_
95
+ - 支持接口(V3): `AddVpcExtendCidr`、`RemoveVpcExtendCidr`、`ListVpcs`、`ShowVpc`
96
+ - _解决问题_
97
+ - 无
98
+ - _特性变更_
99
+ - 无
100
+
101
+ # 3.0.21-beta 2021-10-25
102
+
103
+ ### HuaweiCloud SDK EIP
104
+
105
+ - _新增特性_
106
+ - 无
107
+ - _解决问题_
108
+ - 无
109
+ - _特性变更_
110
+ - 接口`CreateSharedBandwidth`新增请求参数`bandwidth_type`
111
+
112
+ ### HuaweiCloud SDK FRS
113
+
114
+ - _新增特性_
115
+ - 无
116
+ - _解决问题_
117
+ - 无
118
+ - _特性变更_
119
+ - 接口`AddFacesByFile`、`AddFacesByBase64`、`AddFacesByUrl`新增请求参数`single`
120
+
121
+ ### HuaweiCloud SDK IMS
122
+
123
+ - _新增特性_
124
+ - 无
125
+ - _解决问题_
126
+ - 无
127
+ - _特性变更_
128
+ - 接口`ShowJob`新增响应参数`current_task`、`image_name`、`process_percent`
129
+
130
+ ### HuaweiCloud SDK IoTDA
131
+
132
+ - _新增特性_
133
+ - 无
134
+ - _解决问题_
135
+ - 无
136
+ - _特性变更_
137
+ - 接口`ListDevices`新增请求参数`status`
138
+ - 接口`CreateRuleAction`新增请求参数`file_path`
139
+
140
+ ### HuaweiCloud SDK OCR
141
+
142
+ - _新增特性_
143
+ - 新增接口`RecognizeInsurancePolicy`、`RecognizeFinancialStatement`、`RecognizeQualificationCertificate`
144
+ - _解决问题_
145
+ - 无
146
+ - _特性变更_
147
+ - 无
148
+
1
149
  # 3.0.20-beta 2021-10-19
2
150
 
3
151
  ### HuaweiCloud SDK EIP
package/ClientBuilder.js CHANGED
@@ -63,7 +63,7 @@ var ClientBuilder = /** @class */ (function () {
63
63
  this.credential = this.getCredentialFromEnvironment();
64
64
  }
65
65
  if (!this.credential) {
66
- throw new SdkException_1.SdkException("credential can not be null, " + this.credentialType + "Credential objects are required");
66
+ throw new SdkException_1.SdkException("credential can not be null, ".concat(this.credentialType, "Credential objects are required"));
67
67
  }
68
68
  var client = new DefaultHttpClient_1.DefaultHttpClient(axiosOptions);
69
69
  var hcClient = new HcClient_1.HcClient(client);
@@ -97,7 +97,7 @@ var ClientBuilder = /** @class */ (function () {
97
97
  break;
98
98
  default:
99
99
  var obj = {};
100
- var definedCredPath = path.join(this.init().getPath(), "" + sdkType);
100
+ var definedCredPath = path.join(this.init().getPath(), "".concat(sdkType));
101
101
  if (!obj[sdkType]) {
102
102
  credentialTYPE = require(definedCredPath);
103
103
  // 多加一层
@@ -106,7 +106,7 @@ var AKSKSigner = /** @class */ (function () {
106
106
  var stringToSign = this.getStringToSign(this.SDK_SIGNING_ALGORITHM, dateTimeStamp, canonicalRequestHash);
107
107
  var signatureString = this.hmacSHA256(credential.getSk(), stringToSign);
108
108
  var authorization = {
109
- Authorization: this.SDK_SIGNING_ALGORITHM + " Access=" + credential.getAk() + ", SignedHeaders=" + signedHeaderNames + ", Signature=" + signatureString
109
+ Authorization: "".concat(this.SDK_SIGNING_ALGORITHM, " Access=").concat(credential.getAk(), ", SignedHeaders=").concat(signedHeaderNames, ", Signature=").concat(signatureString)
110
110
  };
111
111
  Object.assign(allHeaders, authorization);
112
112
  return allHeaders;
@@ -153,7 +153,7 @@ var AKSKSigner = /** @class */ (function () {
153
153
  for (var _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) {
154
154
  var key = sortedKeys_1[_i];
155
155
  var lowerKey = key.toLocaleLowerCase();
156
- canonicalHeaders += lowerKey + ":" + allHeaders[key] + "\n";
156
+ canonicalHeaders += "".concat(lowerKey, ":").concat(allHeaders[key], "\n");
157
157
  }
158
158
  return canonicalHeaders;
159
159
  };
@@ -119,7 +119,7 @@ var BasicCredentials = /** @class */ (function () {
119
119
  }
120
120
  return Object.keys(params).reduce(function (parsedPath, param) {
121
121
  var value = encodeURIComponent(params[param]);
122
- return parsedPath.replace(new RegExp("{" + param + "}"), value);
122
+ return parsedPath.replace(new RegExp("{".concat(param, "}")), value);
123
123
  }, path);
124
124
  };
125
125
  return BasicCredentials;
@@ -130,6 +130,6 @@ function parsePath(path, params) {
130
130
  }
131
131
  return Object.keys(params).reduce(function (parsedPath, param) {
132
132
  var value = encodeURIComponent(params[param]);
133
- return parsedPath.replace(new RegExp("{" + param + "}"), value);
133
+ return parsedPath.replace(new RegExp("{".concat(param, "}")), value);
134
134
  }, path);
135
135
  }
@@ -102,24 +102,24 @@ var DefaultHttpClient = /** @class */ (function () {
102
102
  });
103
103
  this.axiosInstance.interceptors.request.use(function (request) {
104
104
  var url = request.url, method = request.method, data = request.data, headers = request.headers;
105
- _this.logger.debug("Request: " + method.toUpperCase() + " " + url + " " + JSON.stringify(headers) + " " + JSON.stringify(data));
105
+ _this.logger.debug("Request: ".concat(method.toUpperCase(), " ").concat(url, " ").concat(JSON.stringify(headers), " ").concat(JSON.stringify(data)));
106
106
  return request;
107
107
  });
108
108
  this.axiosInstance.interceptors.response.use(function (response) {
109
109
  var _a = response.config, url = _a.url, method = _a.method, status = response.status, statusText = response.statusText, headers = response.headers;
110
110
  var statusStr = '';
111
111
  if (status && statusText) {
112
- statusStr += status + ":" + statusText + " ";
112
+ statusStr += "".concat(status, ":").concat(statusText, " ");
113
113
  }
114
114
  else if (status) {
115
- statusStr += status + " ";
115
+ statusStr += "".concat(status, " ");
116
116
  }
117
117
  else if (statusText) {
118
- statusStr += statusText + " ";
118
+ statusStr += "".concat(statusText, " ");
119
119
  }
120
120
  var requestId = response.headers ? response.headers['x-request-id'] : undefined;
121
121
  var reponseLength = response.result ? JSON.stringify(response.result).length : 1;
122
- _this.logger.debug("Response: " + method.toUpperCase() + " " + statusStr + " " + url + " " + JSON.stringify(headers) + " " + reponseLength + " " + requestId);
122
+ _this.logger.debug("Response: ".concat(method.toUpperCase(), " ").concat(statusStr, " ").concat(url, " ").concat(JSON.stringify(headers), " ").concat(reponseLength, " ").concat(requestId));
123
123
  return response;
124
124
  });
125
125
  delete this.axiosInstance.defaults.headers.post['Content-Type'];
@@ -152,7 +152,7 @@ var DefaultHttpClient = /** @class */ (function () {
152
152
  case 0:
153
153
  endpoint = httpRequest.endpoint, queryParams = httpRequest.queryParams, method = httpRequest.method, data = httpRequest.data, headers = httpRequest.headers;
154
154
  headers = headers || {};
155
- this.logger.debug("send request start: " + endpoint + " ");
155
+ this.logger.debug("send request start: ".concat(endpoint, " "));
156
156
  url = endpoint;
157
157
  url = stripTrailingSlash(url);
158
158
  headers['User-Agent'] = "huaweicloud-usdk-nodejs/3.0";
package/logger/index.js CHANGED
@@ -120,7 +120,7 @@ function getLogger(name, level, existingLogger) {
120
120
  if (level !== undefined) {
121
121
  logger.setLevel(level);
122
122
  }
123
- logger.setName("nodesdk:" + name + ":" + instanceId);
123
+ logger.setName("nodesdk:".concat(name, ":").concat(instanceId));
124
124
  if (process.env.DEBUG === "DEBUG") {
125
125
  logger.setLevel(LogLevel.DEBUG);
126
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-core",
3
- "version": "3.0.20-beta",
3
+ "version": "3.0.24-beta",
4
4
  "description": "Core code for Huaweicloud SDK for Node.js",
5
5
  "main": "huaweicloud-sdk-core.js",
6
6
  "typings": "huaweicloud-sdk-core.d.ts",