@huaweicloud/huaweicloud-sdk-core 3.1.36 → 3.1.38

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,302 @@
1
+ # 3.1.38 2023-05-18
2
+
3
+ ### HuaweiCloud SDK CBR
4
+
5
+ - _Features_
6
+ - Support the following interfaces:
7
+ - `AddAgentPath`
8
+ - `ShowAgent`
9
+ - `UpdateAgent`
10
+ - `UnregisterAgent`
11
+ - `ListAgent`
12
+ - `RegisterAgent`
13
+ - `RemoveAgentPath`
14
+ - _Bug Fix_
15
+ - None
16
+ - _Change_
17
+ - None
18
+
19
+ ### HuaweiCloud SDK CCE
20
+
21
+ - _Features_
22
+ - None
23
+ - _Bug Fix_
24
+ - None
25
+ - _Change_
26
+ - **ShowNode**
27
+ - changes of response param
28
+ - `+ status.lastProbeTime`
29
+ - **UpdateNode**
30
+ - changes of response param
31
+ - `+ status.lastProbeTime`
32
+ - **DeleteNode**
33
+ - changes of response param
34
+ - `+ status.lastProbeTime`
35
+ - **CreateNode**
36
+ - changes of response param
37
+ - `+ status.lastProbeTime`
38
+ - **ListNodes**
39
+ - changes of response param
40
+ - `+ items.status.lastProbeTime`
41
+
42
+ ### HuaweiCloud SDK CDN
43
+
44
+ - _Features_
45
+ - None
46
+ - _Bug Fix_
47
+ - None
48
+ - _Change_
49
+ - **CreateRefreshTasks**
50
+ - changes of request param
51
+ - `* refresh_task.mode: boolean -> string`
52
+ - **ShowDomainFullConfig**
53
+ - changes of response param
54
+ - `+ configs.flexible_origin`
55
+ - `+ configs.slice_etag_status`
56
+ - `+ configs.origin_receive_timeout`
57
+ - `+ configs.remote_auth`
58
+ - `+ configs.websocket`
59
+ - `+ configs.video_seek`
60
+ - `+ configs.request_limit_rules`
61
+ - `+ configs.url_auth.sign_method`
62
+ - `+ configs.url_auth.match_type`
63
+ - `+ configs.url_auth.key`
64
+ - `+ configs.url_auth.backup_key`
65
+ - `+ configs.url_auth.sign_arg`
66
+ - `+ configs.https.expire_time`
67
+ - `+ configs.https.certificate_type`
68
+ - `+ configs.https.ocsp_stapling_status`
69
+ - `+ configs.sources.obs_bucket_type`
70
+ - `+ configs.compress.file_type`
71
+ - `+ configs.user_agent_filter.ua_list`
72
+ - **UpdateDomainFullConfig**
73
+ - changes of request param
74
+ - `+ configs.flexible_origin`
75
+ - `+ configs.slice_etag_status`
76
+ - `+ configs.origin_receive_timeout`
77
+ - `+ configs.remote_auth`
78
+ - `+ configs.websocket`
79
+ - `+ configs.video_seek`
80
+ - `+ configs.request_limit_rules`
81
+ - `+ configs.url_auth.sign_method`
82
+ - `+ configs.url_auth.match_type`
83
+ - `+ configs.url_auth.backup_key`
84
+ - `+ configs.url_auth.sign_arg`
85
+ - `+ configs.https.certificate_type`
86
+ - `+ configs.https.ocsp_stapling_status`
87
+ - `+ configs.sources.obs_bucket_type`
88
+ - `+ configs.compress.file_type`
89
+ - `+ configs.user_agent_filter.ua_list`
90
+ - **ShowDomainDetailByName**
91
+ - changes of response param
92
+ - `+ domain.sources.obs_bucket_type`
93
+
94
+ ### HuaweiCloud SDK CSE
95
+
96
+ - _Features_
97
+ - None
98
+ - _Bug Fix_
99
+ - None
100
+ - _Change_
101
+ - **UpgradeEngine**
102
+ - changes of response param
103
+ - `+ jobId`
104
+ - `- job_id`
105
+ - **RetryEngine**
106
+ - changes of response param
107
+ - `+ jobId`
108
+ - `- job_id`
109
+ - **DownloadKie**
110
+ - changes of response param
111
+ - `+ data.id`
112
+ - **CreateEngine**
113
+ - changes of response param
114
+ - `+ jobId`
115
+ - `- job_id`
116
+ - **DeleteEngine**
117
+ - changes of response param
118
+ - `+ jobId`
119
+ - `- job_id`
120
+
121
+ ### HuaweiCloud SDK DWS
122
+
123
+ - _Features_
124
+ - Support the interfaces `ListAvailableDisasterClusters`, `CheckDisasterName`, `ShowDisasterDetail`, `UpdateDisasterInfo`
125
+ - _Bug Fix_
126
+ - None
127
+ - _Change_
128
+ - **CreateCluster**
129
+ - changes of request param
130
+ - `+ cluster.tags`
131
+
132
+ ### HuaweiCloud SDK ECS
133
+
134
+ - _Features_
135
+ - None
136
+ - _Bug Fix_
137
+ - None
138
+ - _Change_
139
+ - **CreateServers**
140
+ - changes of request param
141
+ - `+ server.root_volume.metadata`
142
+ - `- server.root_volume.extendparam.__system__encrypted`
143
+ - `- server.root_volume.extendparam.__system__cmkid`
144
+ - `+ server.data_volumes.delete_on_termination`
145
+ - **CreatePostPaidServers**
146
+ - changes of request param
147
+ - `+ server.data_volumes.delete_on_termination`
148
+ - `+ server.root_volume.metadata`
149
+ - `- server.root_volume.extendparam.__system__encrypted`
150
+ - `- server.root_volume.extendparam.__system__cmkid`
151
+
152
+ ### HuaweiCloud SDK IoTDA
153
+
154
+ - _Features_
155
+ - None
156
+ - _Bug Fix_
157
+ - None
158
+ - _Change_
159
+ - **BroadcastMessage**
160
+ - changes of request param
161
+ - `+ ttl`
162
+ - `+ message_id`
163
+ - **ShowDeviceGroup**
164
+ - changes of response param
165
+ - `+ dynamic_group_rule`
166
+ - `+ group_type`
167
+ - **UpdateDeviceGroup**
168
+ - changes of response param
169
+ - `+ dynamic_group_rule`
170
+ - `+ group_type`
171
+ - **SearchDevices**
172
+ - changes of response param
173
+ - `+ devices.groups`
174
+ - **AddDeviceGroup**
175
+ - changes of request param
176
+ - `+ group_type`
177
+ - `+ dynamic_group_rule`
178
+ - changes of response param
179
+ - `+ dynamic_group_rule`
180
+ - `+ group_type`
181
+ - **ListDeviceGroups**
182
+ - changes of request param
183
+ - `+ group_type`
184
+ - `+ name`
185
+ - changes of response param
186
+ - `+ device_groups.group_type`
187
+ - `* device_groups: list<DeviceGroupResponsSummery> -> list<DeviceGroupResponseSummary>`
188
+
189
+ # 3.1.37 2023-05-11
190
+
191
+ ### HuaweiCloud SDK MSGSMS
192
+
193
+ - _Features_
194
+ - Support the service `MSG&SMS`
195
+ - _Bug Fix_
196
+ - None
197
+ - _Change_
198
+ - None
199
+
200
+ ### HuaweiCloud SDK AOS
201
+
202
+ - _Features_
203
+ - Support the interface `ContinueDeployStack`
204
+ - _Bug Fix_
205
+ - None
206
+ - _Change_
207
+ - None
208
+
209
+ ### HuaweiCloud SDK CBR
210
+
211
+ - _Features_
212
+ - None
213
+ - _Bug Fix_
214
+ - None
215
+ - _Change_
216
+ - **ShowVaultResourceInstances**
217
+ - changes of response param
218
+ - `* resources.resource_detail: list<Vault> -> object<InstancesResourceDetail>`
219
+ - **ListPolicies**
220
+ - changes of response param
221
+ - `+ policies.operation_definition.full_backup_interval`
222
+ - **CreatePolicy**
223
+ - changes of request param
224
+ - `+ policy.operation_definition.full_backup_interval`
225
+ - changes of response param
226
+ - `+ policy.operation_definition.full_backup_interval`
227
+ - **ShowPolicy**
228
+ - changes of response param
229
+ - `+ policy.operation_definition.full_backup_interval`
230
+ - **UpdatePolicy**
231
+ - changes of request param
232
+ - `+ policy.operation_definition.full_backup_interval`
233
+ - changes of response param
234
+ - `+ policy.operation_definition.full_backup_interval`
235
+ - **CreateVault**
236
+ - changes of request param
237
+ - `- vault.billing.extra_info`
238
+
239
+ ### HuaweiCloud SDK ECS
240
+
241
+ - _Features_
242
+ - Support the interface `NovaAttachInterface`
243
+ - _Bug Fix_
244
+ - None
245
+ - _Change_
246
+ - **ReinstallServerWithoutCloudInit**
247
+ - changes of request param
248
+ - `+ os-reinstall.metadata`
249
+ - **ChangeServerOsWithoutCloudInit**
250
+ - changes of request param
251
+ - `+ os-change.metadata`
252
+ - **ReinstallServerWithCloudInit**
253
+ - changes of request param
254
+ - `+ os-reinstall.metadata.__system__encrypted`
255
+ - `+ os-reinstall.metadata.__system__cmkid`
256
+ - **ChangeServerOsWithCloudInit**
257
+ - changes of request param
258
+ - `+ os-change.metadata.__system__encrypted`
259
+ - `+ os-change.metadata.__system__cmkid`
260
+ - **CreateServers**
261
+ - changes of request param
262
+ - `+ server.root_volume.extendparam.__system__encrypted`
263
+ - `+ server.root_volume.extendparam.__system__cmkid`
264
+ - **CreatePostPaidServers**
265
+ - changes of request param
266
+ - `+ server.root_volume.extendparam.__system__encrypted`
267
+ - `+ server.root_volume.extendparam.__system__cmkid`
268
+
269
+ ### HuaweiCloud SDK Image
270
+
271
+ - _Features_
272
+ - Support the interfaces `CreateVideoTaggingMediaTask`, `ShowVideoTaggingMediaTask`
273
+ - _Bug Fix_
274
+ - None
275
+ - _Change_
276
+ - None
277
+
278
+ ### HuaweiCloud SDK IMS
279
+
280
+ - _Features_
281
+ - None
282
+ - _Bug Fix_
283
+ - None
284
+ - _Change_
285
+ - **ListImages**
286
+ - changes of request param
287
+ - `+ __imagetype: enum value [market]`
288
+
289
+ ### HuaweiCloud SDK LTS
290
+
291
+ - _Features_
292
+ - None
293
+ - _Bug Fix_
294
+ - None
295
+ - _Change_
296
+ - **UpdateAomMappingRules**
297
+ - changes of request param
298
+ - `* body: object<AomMappingRequestInfo> -> object<UpdateAomMappingRequest>`
299
+
1
300
  # 3.1.36 2023-04-27
2
301
 
3
302
  ### HuaweiCloud SDK CBR
package/CHANGELOG_CN.md CHANGED
@@ -1,3 +1,302 @@
1
+ # 3.1.38 2023-05-18
2
+
3
+ ### HuaweiCloud SDK CBR
4
+
5
+ - _新增特性_
6
+ - 支持以下接口:
7
+ - `AddAgentPath`
8
+ - `ShowAgent`
9
+ - `UpdateAgent`
10
+ - `UnregisterAgent`
11
+ - `ListAgent`
12
+ - `RegisterAgent`
13
+ - `RemoveAgentPath`
14
+ - _解决问题_
15
+ - 无
16
+ - _特性变更_
17
+ - 无
18
+
19
+ ### HuaweiCloud SDK CCE
20
+
21
+ - _新增特性_
22
+ - 无
23
+ - _解决问题_
24
+ - 无
25
+ - _特性变更_
26
+ - **ShowNode**
27
+ - 响应参数变更
28
+ - `+ status.lastProbeTime`
29
+ - **UpdateNode**
30
+ - 响应参数变更
31
+ - `+ status.lastProbeTime`
32
+ - **DeleteNode**
33
+ - 响应参数变更
34
+ - `+ status.lastProbeTime`
35
+ - **CreateNode**
36
+ - 响应参数变更
37
+ - `+ status.lastProbeTime`
38
+ - **ListNodes**
39
+ - 响应参数变更
40
+ - `+ items.status.lastProbeTime`
41
+
42
+ ### HuaweiCloud SDK CDN
43
+
44
+ - _新增特性_
45
+ - 无
46
+ - _解决问题_
47
+ - 无
48
+ - _特性变更_
49
+ - **CreateRefreshTasks**
50
+ - 请求参数变更
51
+ - `* refresh_task.mode: boolean -> string`
52
+ - **ShowDomainFullConfig**
53
+ - 响应参数变更
54
+ - `+ configs.flexible_origin`
55
+ - `+ configs.slice_etag_status`
56
+ - `+ configs.origin_receive_timeout`
57
+ - `+ configs.remote_auth`
58
+ - `+ configs.websocket`
59
+ - `+ configs.video_seek`
60
+ - `+ configs.request_limit_rules`
61
+ - `+ configs.url_auth.sign_method`
62
+ - `+ configs.url_auth.match_type`
63
+ - `+ configs.url_auth.key`
64
+ - `+ configs.url_auth.backup_key`
65
+ - `+ configs.url_auth.sign_arg`
66
+ - `+ configs.https.expire_time`
67
+ - `+ configs.https.certificate_type`
68
+ - `+ configs.https.ocsp_stapling_status`
69
+ - `+ configs.sources.obs_bucket_type`
70
+ - `+ configs.compress.file_type`
71
+ - `+ configs.user_agent_filter.ua_list`
72
+ - **UpdateDomainFullConfig**
73
+ - 请求参数变更
74
+ - `+ configs.flexible_origin`
75
+ - `+ configs.slice_etag_status`
76
+ - `+ configs.origin_receive_timeout`
77
+ - `+ configs.remote_auth`
78
+ - `+ configs.websocket`
79
+ - `+ configs.video_seek`
80
+ - `+ configs.request_limit_rules`
81
+ - `+ configs.url_auth.sign_method`
82
+ - `+ configs.url_auth.match_type`
83
+ - `+ configs.url_auth.backup_key`
84
+ - `+ configs.url_auth.sign_arg`
85
+ - `+ configs.https.certificate_type`
86
+ - `+ configs.https.ocsp_stapling_status`
87
+ - `+ configs.sources.obs_bucket_type`
88
+ - `+ configs.compress.file_type`
89
+ - `+ configs.user_agent_filter.ua_list`
90
+ - **ShowDomainDetailByName**
91
+ - 响应参数变更
92
+ - `+ domain.sources.obs_bucket_type`
93
+
94
+ ### HuaweiCloud SDK CSE
95
+
96
+ - _新增特性_
97
+ - 无
98
+ - _解决问题_
99
+ - 无
100
+ - _特性变更_
101
+ - **UpgradeEngine**
102
+ - 响应参数变更
103
+ - `+ jobId`
104
+ - `- job_id`
105
+ - **RetryEngine**
106
+ - 响应参数变更
107
+ - `+ jobId`
108
+ - `- job_id`
109
+ - **DownloadKie**
110
+ - 响应参数变更
111
+ - `+ data.id`
112
+ - **CreateEngine**
113
+ - 响应参数变更
114
+ - `+ jobId`
115
+ - `- job_id`
116
+ - **DeleteEngine**
117
+ - 响应参数变更
118
+ - `+ jobId`
119
+ - `- job_id`
120
+
121
+ ### HuaweiCloud SDK DWS
122
+
123
+ - _新增特性_
124
+ - 支持接口`ListAvailableDisasterClusters`、`CheckDisasterName`、`ShowDisasterDetail`、`UpdateDisasterInfo`
125
+ - _解决问题_
126
+ - 无
127
+ - _特性变更_
128
+ - **CreateCluster**
129
+ - 请求参数变更
130
+ - `+ cluster.tags`
131
+
132
+ ### HuaweiCloud SDK ECS
133
+
134
+ - _新增特性_
135
+ - 无
136
+ - _解决问题_
137
+ - 无
138
+ - _特性变更_
139
+ - **CreateServers**
140
+ - 请求参数变更
141
+ - `+ server.root_volume.metadata`
142
+ - `- server.root_volume.extendparam.__system__encrypted`
143
+ - `- server.root_volume.extendparam.__system__cmkid`
144
+ - `+ server.data_volumes.delete_on_termination`
145
+ - **CreatePostPaidServers**
146
+ - 请求参数变更
147
+ - `+ server.data_volumes.delete_on_termination`
148
+ - `+ server.root_volume.metadata`
149
+ - `- server.root_volume.extendparam.__system__encrypted`
150
+ - `- server.root_volume.extendparam.__system__cmkid`
151
+
152
+ ### HuaweiCloud SDK IoTDA
153
+
154
+ - _新增特性_
155
+ - 无
156
+ - _解决问题_
157
+ - 无
158
+ - _特性变更_
159
+ - **BroadcastMessage**
160
+ - 请求参数变更
161
+ - `+ ttl`
162
+ - `+ message_id`
163
+ - **ShowDeviceGroup**
164
+ - 响应参数变更
165
+ - `+ dynamic_group_rule`
166
+ - `+ group_type`
167
+ - **UpdateDeviceGroup**
168
+ - 响应参数变更
169
+ - `+ dynamic_group_rule`
170
+ - `+ group_type`
171
+ - **SearchDevices**
172
+ - 响应参数变更
173
+ - `+ devices.groups`
174
+ - **AddDeviceGroup**
175
+ - 请求参数变更
176
+ - `+ group_type`
177
+ - `+ dynamic_group_rule`
178
+ - 响应参数变更
179
+ - `+ dynamic_group_rule`
180
+ - `+ group_type`
181
+ - **ListDeviceGroups**
182
+ - 请求参数变更
183
+ - `+ group_type`
184
+ - `+ name`
185
+ - 响应参数变更
186
+ - `+ device_groups.group_type`
187
+ - `* device_groups: list<DeviceGroupResponsSummery> -> list<DeviceGroupResponseSummary>`
188
+
189
+ # 3.1.37 2023-05-11
190
+
191
+ ### HuaweiCloud SDK MSGSMS
192
+
193
+ - _新增特性_
194
+ - 支持消息&短信服务
195
+ - _解决问题_
196
+ - 无
197
+ - _特性变更_
198
+ - 无
199
+
200
+ ### HuaweiCloud SDK AOS
201
+
202
+ - _新增特性_
203
+ - 支持接口`ContinueDeployStack`
204
+ - _解决问题_
205
+ - 无
206
+ - _特性变更_
207
+ - 无
208
+
209
+ ### HuaweiCloud SDK CBR
210
+
211
+ - _新增特性_
212
+ - 无
213
+ - _解决问题_
214
+ - 无
215
+ - _特性变更_
216
+ - **ShowVaultResourceInstances**
217
+ - 响应参数变更
218
+ - `* resources.resource_detail: list<Vault> -> object<InstancesResourceDetail>`
219
+ - **ListPolicies**
220
+ - 响应参数变更
221
+ - `+ policies.operation_definition.full_backup_interval`
222
+ - **CreatePolicy**
223
+ - 请求参数变更
224
+ - `+ policy.operation_definition.full_backup_interval`
225
+ - 响应参数变更
226
+ - `+ policy.operation_definition.full_backup_interval`
227
+ - **ShowPolicy**
228
+ - 响应参数变更
229
+ - `+ policy.operation_definition.full_backup_interval`
230
+ - **UpdatePolicy**
231
+ - 请求参数变更
232
+ - `+ policy.operation_definition.full_backup_interval`
233
+ - 响应参数变更
234
+ - `+ policy.operation_definition.full_backup_interval`
235
+ - **CreateVault**
236
+ - 请求参数变更
237
+ - `- vault.billing.extra_info`
238
+
239
+ ### HuaweiCloud SDK ECS
240
+
241
+ - _新增特性_
242
+ - 支持接口`NovaAttachInterface`
243
+ - _解决问题_
244
+ - 无
245
+ - _特性变更_
246
+ - **ReinstallServerWithoutCloudInit**
247
+ - 请求参数变更
248
+ - `+ os-reinstall.metadata`
249
+ - **ChangeServerOsWithoutCloudInit**
250
+ - 请求参数变更
251
+ - `+ os-change.metadata`
252
+ - **ReinstallServerWithCloudInit**
253
+ - 请求参数变更
254
+ - `+ os-reinstall.metadata.__system__encrypted`
255
+ - `+ os-reinstall.metadata.__system__cmkid`
256
+ - **ChangeServerOsWithCloudInit**
257
+ - 请求参数变更
258
+ - `+ os-change.metadata.__system__encrypted`
259
+ - `+ os-change.metadata.__system__cmkid`
260
+ - **CreateServers**
261
+ - 请求参数变更
262
+ - `+ server.root_volume.extendparam.__system__encrypted`
263
+ - `+ server.root_volume.extendparam.__system__cmkid`
264
+ - **CreatePostPaidServers**
265
+ - 请求参数变更
266
+ - `+ server.root_volume.extendparam.__system__encrypted`
267
+ - `+ server.root_volume.extendparam.__system__cmkid`
268
+
269
+ ### HuaweiCloud SDK Image
270
+
271
+ - _新增特性_
272
+ - 支持接口`CreateVideoTaggingMediaTask`、`ShowVideoTaggingMediaTask`
273
+ - _解决问题_
274
+ - 无
275
+ - _特性变更_
276
+ - 无
277
+
278
+ ### HuaweiCloud SDK IMS
279
+
280
+ - _新增特性_
281
+ - 无
282
+ - _解决问题_
283
+ - 无
284
+ - _特性变更_
285
+ - **ListImages**
286
+ - 请求参数变更
287
+ - `+ __imagetype: enum value [market]`
288
+
289
+ ### HuaweiCloud SDK LTS
290
+
291
+ - _新增特性_
292
+ - 无
293
+ - _解决问题_
294
+ - 无
295
+ - _特性变更_
296
+ - **UpdateAomMappingRules**
297
+ - 请求参数变更
298
+ - `* body: object<AomMappingRequestInfo> -> object<UpdateAomMappingRequest>`
299
+
1
300
  # 3.1.36 2023-04-27
2
301
 
3
302
  ### HuaweiCloud SDK CBR
package/HcClient.d.ts CHANGED
@@ -10,7 +10,7 @@ export interface HttpRequestOptions {
10
10
  queryParams: Record<string, any>;
11
11
  pathParams: Record<string, any>;
12
12
  headers: Record<string, string>;
13
- data: Record<string, any>;
13
+ data?: Record<string, any>;
14
14
  }
15
15
  export declare class HcClient {
16
16
  private httpClient;
@@ -75,7 +75,6 @@ var axios_1 = __importDefault(require("axios"));
75
75
  var querystring_1 = require("querystring");
76
76
  var https_proxy_agent_1 = __importDefault(require("https-proxy-agent"));
77
77
  var logger_1 = require("../logger");
78
- var ExceptionUtil_1 = require("../exception/ExceptionUtil");
79
78
  var SdkException_1 = require("../exception/SdkException");
80
79
  var AKSKSigner_1 = require("../auth/AKSKSigner");
81
80
  var DefaultHttpClient = /** @class */ (function () {
@@ -114,7 +113,7 @@ var DefaultHttpClient = /** @class */ (function () {
114
113
  error_1 = _a.sent();
115
114
  exceptionResponse = this._formatExceptionResponse(error_1);
116
115
  this._logger.error('Some error found:', exceptionResponse);
117
- throw ExceptionUtil_1.ExceptionUtil.generalException(exceptionResponse);
116
+ throw exceptionResponse;
118
117
  case 3: return [2 /*return*/];
119
118
  }
120
119
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-core",
3
- "version": "3.1.36",
3
+ "version": "3.1.38",
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",