@huaweicloud/huaweicloud-sdk-core 3.1.43 → 3.1.45
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 +380 -0
- package/CHANGELOG_CN.md +380 -0
- package/HcClient.js +3 -1
- package/auth/BasicCredentials.d.ts +1 -1
- package/auth/BasicCredentials.js +33 -29
- package/auth/GlobalCredentials.d.ts +1 -1
- package/auth/GlobalCredentials.js +31 -27
- package/auth/ICredential.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,383 @@
|
|
|
1
|
+
# 3.1.45 2023-07-06
|
|
2
|
+
|
|
3
|
+
### HuaweiCloud SDK CCE
|
|
4
|
+
|
|
5
|
+
- _Features_
|
|
6
|
+
- None
|
|
7
|
+
- _Bug Fix_
|
|
8
|
+
- None
|
|
9
|
+
- _Change_
|
|
10
|
+
- **UpgradeCluster**
|
|
11
|
+
- changes of response param
|
|
12
|
+
- `+ metadata`
|
|
13
|
+
- `+ spec`
|
|
14
|
+
- `- uid`
|
|
15
|
+
|
|
16
|
+
### HuaweiCloud SDK CDN
|
|
17
|
+
|
|
18
|
+
- _Features_
|
|
19
|
+
- None
|
|
20
|
+
- _Bug Fix_
|
|
21
|
+
- None
|
|
22
|
+
- _Change_
|
|
23
|
+
- **ShowDomainDetailByName**
|
|
24
|
+
- changes of response param
|
|
25
|
+
- `+ domain.sources.weight`
|
|
26
|
+
- **ShowDomainFullConfig**
|
|
27
|
+
- changes of response param
|
|
28
|
+
- `+ configs.business_type`
|
|
29
|
+
- `+ configs.service_area`
|
|
30
|
+
- `+ configs.sources.weight`
|
|
31
|
+
- **UpdateDomainFullConfig**
|
|
32
|
+
- changes of request param
|
|
33
|
+
- `+ configs.business_type`
|
|
34
|
+
- `+ configs.service_area`
|
|
35
|
+
- `+ configs.sources.weight`
|
|
36
|
+
|
|
37
|
+
### HuaweiCloud SDK EVS
|
|
38
|
+
|
|
39
|
+
- _Features_
|
|
40
|
+
- None
|
|
41
|
+
- _Bug Fix_
|
|
42
|
+
- None
|
|
43
|
+
- _Change_
|
|
44
|
+
- **CreateVolume**
|
|
45
|
+
- changes of request param
|
|
46
|
+
- `+ volume.iops`
|
|
47
|
+
- `+ volume.throughput`
|
|
48
|
+
- `+ volume.volume_type: enum value [GPSSD2,ESSD2]`
|
|
49
|
+
|
|
50
|
+
### HuaweiCloud SDK LTS
|
|
51
|
+
|
|
52
|
+
- _Features_
|
|
53
|
+
- None
|
|
54
|
+
- _Bug Fix_
|
|
55
|
+
- None
|
|
56
|
+
- _Change_
|
|
57
|
+
- **UpdateSqlAlarmRule**
|
|
58
|
+
- changes of request param
|
|
59
|
+
- `+ notification_save_rule.template_name`
|
|
60
|
+
- **CreateSqlAlarmRule**
|
|
61
|
+
- changes of request param
|
|
62
|
+
- `+ notification_save_rule.template_name`
|
|
63
|
+
- **UpdateKeywordsAlarmRule**
|
|
64
|
+
- changes of request param
|
|
65
|
+
- `+ notification_save_rule.template_name`
|
|
66
|
+
- **CreateKeywordsAlarmRule**
|
|
67
|
+
- changes of request param
|
|
68
|
+
- `+ notification_save_rule.template_name`
|
|
69
|
+
- **ListAccessConfig**
|
|
70
|
+
- changes of response param
|
|
71
|
+
- `+ log_split`
|
|
72
|
+
- `+ binary_collect`
|
|
73
|
+
- `+ result.log_split`
|
|
74
|
+
- `+ result.binary_collect`
|
|
75
|
+
- `+ result.access_config_type: enum value [K8S_CCE]`
|
|
76
|
+
- `+ result.access_config_detail.stdout`
|
|
77
|
+
- `+ result.access_config_detail.stderr`
|
|
78
|
+
- `+ result.access_config_detail.pathType`
|
|
79
|
+
- `+ result.access_config_detail.namespaceRegex`
|
|
80
|
+
- `+ result.access_config_detail.podNameRegex`
|
|
81
|
+
- `+ result.access_config_detail.containerNameRegex`
|
|
82
|
+
- `+ result.access_config_detail.includeLabels`
|
|
83
|
+
- `+ result.access_config_detail.excludeLabels`
|
|
84
|
+
- `+ result.access_config_detail.includeEnvs`
|
|
85
|
+
- `+ result.access_config_detail.excludeEnvs`
|
|
86
|
+
- `+ result.access_config_detail.logLabels`
|
|
87
|
+
- `+ result.access_config_detail.logEnvs`
|
|
88
|
+
- `+ result.access_config_detail.includeK8sLabels`
|
|
89
|
+
- `+ result.access_config_detail.excludeK8sLabels`
|
|
90
|
+
- `+ result.access_config_detail.logK8s`
|
|
91
|
+
- `* result.access_config_detail.format.single: object<AccessConfigFormatSingle> -> object<AccessConfigFormatSingleCreate>`
|
|
92
|
+
- `* result.access_config_detail.format.multi: object<AccessConfigFormatMutil> -> object<AccessConfigFormatMutilCreate>`
|
|
93
|
+
- `* result.access_config_detail.format: object<AccessConfigFormat> -> object<AccessConfigFormatCreate>`
|
|
94
|
+
- `* result.access_config_detail.windows_log_info: object<AccessConfigWindowsLogInfo> -> object<AccessConfigWindowsLogInfoCreate>`
|
|
95
|
+
- `* result.access_config_detail: object<AccessConfigDeatil> -> object<AccessConfigDeatilCreate>`
|
|
96
|
+
- **UpdateAccessConfig**
|
|
97
|
+
- changes of request param
|
|
98
|
+
- `+ log_split`
|
|
99
|
+
- `+ binary_collect`
|
|
100
|
+
- `+ access_config_detail.stdout`
|
|
101
|
+
- `+ access_config_detail.stderr`
|
|
102
|
+
- `+ access_config_detail.pathType`
|
|
103
|
+
- `+ access_config_detail.namespaceRegex`
|
|
104
|
+
- `+ access_config_detail.podNameRegex`
|
|
105
|
+
- `+ access_config_detail.containerNameRegex`
|
|
106
|
+
- `+ access_config_detail.includeLabels`
|
|
107
|
+
- `+ access_config_detail.excludeLabels`
|
|
108
|
+
- `+ access_config_detail.includeEnvs`
|
|
109
|
+
- `+ access_config_detail.excludeEnvs`
|
|
110
|
+
- `+ access_config_detail.logLabels`
|
|
111
|
+
- `+ access_config_detail.logEnvs`
|
|
112
|
+
- `+ access_config_detail.includeK8sLabels`
|
|
113
|
+
- `+ access_config_detail.excludeK8sLabels`
|
|
114
|
+
- `+ access_config_detail.logK8s`
|
|
115
|
+
- `* access_config_detail.format.single: object<AccessConfigFormatSingle> -> object<AccessConfigFormatSingleCreate>`
|
|
116
|
+
- `* access_config_detail.format.multi: object<AccessConfigFormatMutil> -> object<AccessConfigFormatMutilCreate>`
|
|
117
|
+
- `* access_config_detail.format: object<AccessConfigFormat> -> object<AccessConfigFormatCreate>`
|
|
118
|
+
- `* access_config_detail.windows_log_info: object<AccessConfigWindowsLogInfo> -> object<AccessConfigWindowsLogInfoCreate>`
|
|
119
|
+
- `* access_config_detail: object<AccessConfigDeatil> -> object<AccessConfigDeatilCreate>`
|
|
120
|
+
- changes of response param
|
|
121
|
+
- `+ log_split`
|
|
122
|
+
- `+ binary_collect`
|
|
123
|
+
- `+ access_config_type: enum value [K8S_CCE]`
|
|
124
|
+
- `+ access_config_detail.stdout`
|
|
125
|
+
- `+ access_config_detail.stderr`
|
|
126
|
+
- `+ access_config_detail.pathType`
|
|
127
|
+
- `+ access_config_detail.namespaceRegex`
|
|
128
|
+
- `+ access_config_detail.podNameRegex`
|
|
129
|
+
- `+ access_config_detail.containerNameRegex`
|
|
130
|
+
- `+ access_config_detail.includeLabels`
|
|
131
|
+
- `+ access_config_detail.excludeLabels`
|
|
132
|
+
- `+ access_config_detail.includeEnvs`
|
|
133
|
+
- `+ access_config_detail.excludeEnvs`
|
|
134
|
+
- `+ access_config_detail.logLabels`
|
|
135
|
+
- `+ access_config_detail.logEnvs`
|
|
136
|
+
- `+ access_config_detail.includeK8sLabels`
|
|
137
|
+
- `+ access_config_detail.excludeK8sLabels`
|
|
138
|
+
- `+ access_config_detail.logK8s`
|
|
139
|
+
- `* access_config_detail.format.single: object<AccessConfigFormatSingle> -> object<AccessConfigFormatSingleCreate>`
|
|
140
|
+
- `* access_config_detail.format.multi: object<AccessConfigFormatMutil> -> object<AccessConfigFormatMutilCreate>`
|
|
141
|
+
- `* access_config_detail.format: object<AccessConfigFormat> -> object<AccessConfigFormatCreate>`
|
|
142
|
+
- `* access_config_detail.windows_log_info: object<AccessConfigWindowsLogInfo> -> object<AccessConfigWindowsLogInfoCreate>`
|
|
143
|
+
- `* access_config_detail: object<AccessConfigDeatil> -> object<AccessConfigDeatilCreate>`
|
|
144
|
+
- **CreateAccessConfig**
|
|
145
|
+
- changes of request param
|
|
146
|
+
- `+ binary_collect`
|
|
147
|
+
- `+ log_split`
|
|
148
|
+
- `+ access_config_type: enum value [K8S_CCE]`
|
|
149
|
+
- `+ access_config_detail.stdout`
|
|
150
|
+
- `+ access_config_detail.stderr`
|
|
151
|
+
- `+ access_config_detail.pathType`
|
|
152
|
+
- `+ access_config_detail.namespaceRegex`
|
|
153
|
+
- `+ access_config_detail.podNameRegex`
|
|
154
|
+
- `+ access_config_detail.containerNameRegex`
|
|
155
|
+
- `+ access_config_detail.includeLabels`
|
|
156
|
+
- `+ access_config_detail.excludeLabels`
|
|
157
|
+
- `+ access_config_detail.includeEnvs`
|
|
158
|
+
- `+ access_config_detail.excludeEnvs`
|
|
159
|
+
- `+ access_config_detail.logLabels`
|
|
160
|
+
- `+ access_config_detail.logEnvs`
|
|
161
|
+
- `+ access_config_detail.includeK8sLabels`
|
|
162
|
+
- `+ access_config_detail.excludeK8sLabels`
|
|
163
|
+
- `+ access_config_detail.logK8s`
|
|
164
|
+
- changes of response param
|
|
165
|
+
- `+ log_split`
|
|
166
|
+
- `+ binary_collect`
|
|
167
|
+
- `+ access_config_type: enum value [K8S_CCE]`
|
|
168
|
+
- `+ access_config_detail.stdout`
|
|
169
|
+
- `+ access_config_detail.stderr`
|
|
170
|
+
- `+ access_config_detail.pathType`
|
|
171
|
+
- `+ access_config_detail.namespaceRegex`
|
|
172
|
+
- `+ access_config_detail.podNameRegex`
|
|
173
|
+
- `+ access_config_detail.containerNameRegex`
|
|
174
|
+
- `+ access_config_detail.includeLabels`
|
|
175
|
+
- `+ access_config_detail.excludeLabels`
|
|
176
|
+
- `+ access_config_detail.includeEnvs`
|
|
177
|
+
- `+ access_config_detail.excludeEnvs`
|
|
178
|
+
- `+ access_config_detail.logLabels`
|
|
179
|
+
- `+ access_config_detail.logEnvs`
|
|
180
|
+
- `+ access_config_detail.includeK8sLabels`
|
|
181
|
+
- `+ access_config_detail.excludeK8sLabels`
|
|
182
|
+
- `+ access_config_detail.logK8s`
|
|
183
|
+
- `* access_config_detail.format.single: object<AccessConfigFormatSingle> -> object<AccessConfigFormatSingleCreate>`
|
|
184
|
+
- `* access_config_detail.format.multi: object<AccessConfigFormatMutil> -> object<AccessConfigFormatMutilCreate>`
|
|
185
|
+
- `* access_config_detail.format: object<AccessConfigFormat> -> object<AccessConfigFormatCreate>`
|
|
186
|
+
- `* access_config_detail.windows_log_info: object<AccessConfigWindowsLogInfo> -> object<AccessConfigWindowsLogInfoCreate>`
|
|
187
|
+
- `* access_config_detail: object<AccessConfigDeatil> -> object<AccessConfigDeatilCreate>`
|
|
188
|
+
- **DeleteAccessConfig**
|
|
189
|
+
- changes of response param
|
|
190
|
+
- `+ log_split`
|
|
191
|
+
- `+ binary_collect`
|
|
192
|
+
- `+ result.log_split`
|
|
193
|
+
- `+ result.binary_collect`
|
|
194
|
+
- `+ result.access_config_type: enum value [K8S_CCE]`
|
|
195
|
+
- `+ result.access_config_detail.stdout`
|
|
196
|
+
- `+ result.access_config_detail.stderr`
|
|
197
|
+
- `+ result.access_config_detail.pathType`
|
|
198
|
+
- `+ result.access_config_detail.namespaceRegex`
|
|
199
|
+
- `+ result.access_config_detail.podNameRegex`
|
|
200
|
+
- `+ result.access_config_detail.containerNameRegex`
|
|
201
|
+
- `+ result.access_config_detail.includeLabels`
|
|
202
|
+
- `+ result.access_config_detail.excludeLabels`
|
|
203
|
+
- `+ result.access_config_detail.includeEnvs`
|
|
204
|
+
- `+ result.access_config_detail.excludeEnvs`
|
|
205
|
+
- `+ result.access_config_detail.logLabels`
|
|
206
|
+
- `+ result.access_config_detail.logEnvs`
|
|
207
|
+
- `+ result.access_config_detail.includeK8sLabels`
|
|
208
|
+
- `+ result.access_config_detail.excludeK8sLabels`
|
|
209
|
+
- `+ result.access_config_detail.logK8s`
|
|
210
|
+
- `* result.access_config_detail.format.single: object<AccessConfigFormatSingle> -> object<AccessConfigFormatSingleCreate>`
|
|
211
|
+
- `* result.access_config_detail.format.multi: object<AccessConfigFormatMutil> -> object<AccessConfigFormatMutilCreate>`
|
|
212
|
+
- `* result.access_config_detail.format: object<AccessConfigFormat> -> object<AccessConfigFormatCreate>`
|
|
213
|
+
- `* result.access_config_detail.windows_log_info: object<AccessConfigWindowsLogInfo> -> object<AccessConfigWindowsLogInfoCreate>`
|
|
214
|
+
- `* result.access_config_detail: object<AccessConfigDeatil> -> object<AccessConfigDeatilCreate>`
|
|
215
|
+
|
|
216
|
+
### HuaweiCloud SDK Moderation
|
|
217
|
+
|
|
218
|
+
- _Features_
|
|
219
|
+
- None
|
|
220
|
+
- _Bug Fix_
|
|
221
|
+
- None
|
|
222
|
+
- _Change_
|
|
223
|
+
- **RunCreateVideoModerationJob**
|
|
224
|
+
- changes of request param
|
|
225
|
+
- `+ data.language`
|
|
226
|
+
|
|
227
|
+
### HuaweiCloud SDK VPC
|
|
228
|
+
|
|
229
|
+
- _Features_
|
|
230
|
+
- None
|
|
231
|
+
- _Bug Fix_
|
|
232
|
+
- None
|
|
233
|
+
- _Change_
|
|
234
|
+
- **ListSecurityGroupRules**
|
|
235
|
+
- changes of request param
|
|
236
|
+
- `+ remote_ip_prefix`
|
|
237
|
+
|
|
238
|
+
# 3.1.44 2023-06-29
|
|
239
|
+
|
|
240
|
+
### HuaweiCloud SDK IdentityCenter
|
|
241
|
+
|
|
242
|
+
- _Features_
|
|
243
|
+
- Support `IdentityCenter`
|
|
244
|
+
- _Bug Fix_
|
|
245
|
+
- None
|
|
246
|
+
- _Change_
|
|
247
|
+
- None
|
|
248
|
+
|
|
249
|
+
### HuaweiCloud SDK WorkspaceApp
|
|
250
|
+
|
|
251
|
+
- _Features_
|
|
252
|
+
- Support `WorkspaceApp`
|
|
253
|
+
- _Bug Fix_
|
|
254
|
+
- None
|
|
255
|
+
- _Change_
|
|
256
|
+
- None
|
|
257
|
+
|
|
258
|
+
### HuaweiCloud SDK Config
|
|
259
|
+
|
|
260
|
+
- _Features_
|
|
261
|
+
- Support `Config`
|
|
262
|
+
- _Bug Fix_
|
|
263
|
+
- None
|
|
264
|
+
- _Change_
|
|
265
|
+
- None
|
|
266
|
+
|
|
267
|
+
### HuaweiCloud SDK AOS
|
|
268
|
+
|
|
269
|
+
- _Features_
|
|
270
|
+
- Support the interface `ListTemplateVersions`
|
|
271
|
+
- _Bug Fix_
|
|
272
|
+
- None
|
|
273
|
+
- _Change_
|
|
274
|
+
- None
|
|
275
|
+
|
|
276
|
+
### HuaweiCloud SDK DCS
|
|
277
|
+
|
|
278
|
+
- _Features_
|
|
279
|
+
- Support the interfaces `ExecuteClusterSwitchover`, `ShowJobInfo`
|
|
280
|
+
- _Bug Fix_
|
|
281
|
+
- None
|
|
282
|
+
- _Change_
|
|
283
|
+
- **ListConfigTemplates**
|
|
284
|
+
- changes of response param
|
|
285
|
+
- `+ config_templates.created_at`
|
|
286
|
+
- **CreateInstance**
|
|
287
|
+
- changes of request param
|
|
288
|
+
- `+ template_id`
|
|
289
|
+
|
|
290
|
+
### HuaweiCloud SDK GA
|
|
291
|
+
|
|
292
|
+
- _Features_
|
|
293
|
+
- Support the following interfaces:
|
|
294
|
+
- `ListIpGroups`
|
|
295
|
+
- `CreateIpGroup`
|
|
296
|
+
- `ShowIpGroup`
|
|
297
|
+
- `UpdateIpGroup`
|
|
298
|
+
- `DeleteIpGroup`
|
|
299
|
+
- `AddIpGroupIp`
|
|
300
|
+
- `RemoveIpGroupIp`
|
|
301
|
+
- `AssociateListener`
|
|
302
|
+
- `DisassociateListener`
|
|
303
|
+
- _Bug Fix_
|
|
304
|
+
- None
|
|
305
|
+
- _Change_
|
|
306
|
+
- None
|
|
307
|
+
|
|
308
|
+
### HuaweiCloud SDK IoTDA
|
|
309
|
+
|
|
310
|
+
- _Features_
|
|
311
|
+
- None
|
|
312
|
+
- _Bug Fix_
|
|
313
|
+
- None
|
|
314
|
+
- _Change_
|
|
315
|
+
- **CreateCommand**
|
|
316
|
+
- changes of response param
|
|
317
|
+
- `+ error_msg`
|
|
318
|
+
- `+ error_code`
|
|
319
|
+
- **ListProperties**
|
|
320
|
+
- changes of response param
|
|
321
|
+
- `+ error_msg`
|
|
322
|
+
- `+ error_code`
|
|
323
|
+
- **UpdateProperties**
|
|
324
|
+
- changes of response param
|
|
325
|
+
- `+ error_msg`
|
|
326
|
+
- `+ error_code`
|
|
327
|
+
|
|
328
|
+
### HuaweiCloud SDK VPC
|
|
329
|
+
|
|
330
|
+
- _Features_
|
|
331
|
+
- None
|
|
332
|
+
- _Bug Fix_
|
|
333
|
+
- None
|
|
334
|
+
- _Change_
|
|
335
|
+
- **ShowAddressGroup**
|
|
336
|
+
- changes of response param
|
|
337
|
+
- `+ address_group.tags`
|
|
338
|
+
- **UpdateAddressGroup**
|
|
339
|
+
- changes of response param
|
|
340
|
+
- `+ address_group.tags`
|
|
341
|
+
- **ListAddressGroup**
|
|
342
|
+
- changes of response param
|
|
343
|
+
- `+ address_groups.tags`
|
|
344
|
+
- **CreateAddressGroup**
|
|
345
|
+
- changes of response param
|
|
346
|
+
- `+ address_group.tags`
|
|
347
|
+
|
|
348
|
+
### HuaweiCloud SDK VPCEP
|
|
349
|
+
|
|
350
|
+
- _Features_
|
|
351
|
+
- None
|
|
352
|
+
- _Bug Fix_
|
|
353
|
+
- None
|
|
354
|
+
- _Change_
|
|
355
|
+
- **AddOrRemoveServicePermissions**
|
|
356
|
+
- changes of request param
|
|
357
|
+
- `+ permission_type`
|
|
358
|
+
- changes of response param
|
|
359
|
+
- `+ permission_type`
|
|
360
|
+
- **UpdateEndpointService**
|
|
361
|
+
- changes of response param
|
|
362
|
+
- `- cidr_type`
|
|
363
|
+
- **ListServicePermissionsDetails**
|
|
364
|
+
- changes of response param
|
|
365
|
+
- `+ permissions.permission_type`
|
|
366
|
+
- **BatchAddEndpointServicePermissions**
|
|
367
|
+
- changes of request param
|
|
368
|
+
- `+ permission_type`
|
|
369
|
+
- changes of response param
|
|
370
|
+
- `+ permissions.permission_type`
|
|
371
|
+
- **BatchRemoveEndpointServicePermissions**
|
|
372
|
+
- changes of response param
|
|
373
|
+
- `+ permissions.permission_type`
|
|
374
|
+
- **UpdateEndpointServicePermissionDesc**
|
|
375
|
+
- changes of response param
|
|
376
|
+
- `+ permissions.permission_type`
|
|
377
|
+
- **CreateEndpointService**
|
|
378
|
+
- changes of response param
|
|
379
|
+
- `- cidr_type`
|
|
380
|
+
|
|
1
381
|
# 3.1.43 2023-06-21
|
|
2
382
|
|
|
3
383
|
### HuaweiCloud SDK CloudRTC
|
package/CHANGELOG_CN.md
CHANGED
|
@@ -1,3 +1,383 @@
|
|
|
1
|
+
# 3.1.45 2023-07-06
|
|
2
|
+
|
|
3
|
+
### HuaweiCloud SDK CCE
|
|
4
|
+
|
|
5
|
+
- _新增特性_
|
|
6
|
+
- 无
|
|
7
|
+
- _解决问题_
|
|
8
|
+
- 无
|
|
9
|
+
- _特性变更_
|
|
10
|
+
- **UpgradeCluster**
|
|
11
|
+
- 响应参数变更
|
|
12
|
+
- `+ metadata`
|
|
13
|
+
- `+ spec`
|
|
14
|
+
- `- uid`
|
|
15
|
+
|
|
16
|
+
### HuaweiCloud SDK CDN
|
|
17
|
+
|
|
18
|
+
- _新增特性_
|
|
19
|
+
- 无
|
|
20
|
+
- _解决问题_
|
|
21
|
+
- 无
|
|
22
|
+
- _特性变更_
|
|
23
|
+
- **ShowDomainDetailByName**
|
|
24
|
+
- 响应参数变更
|
|
25
|
+
- `+ domain.sources.weight`
|
|
26
|
+
- **ShowDomainFullConfig**
|
|
27
|
+
- 响应参数变更
|
|
28
|
+
- `+ configs.business_type`
|
|
29
|
+
- `+ configs.service_area`
|
|
30
|
+
- `+ configs.sources.weight`
|
|
31
|
+
- **UpdateDomainFullConfig**
|
|
32
|
+
- 请求参数变更
|
|
33
|
+
- `+ configs.business_type`
|
|
34
|
+
- `+ configs.service_area`
|
|
35
|
+
- `+ configs.sources.weight`
|
|
36
|
+
|
|
37
|
+
### HuaweiCloud SDK EVS
|
|
38
|
+
|
|
39
|
+
- _新增特性_
|
|
40
|
+
- 无
|
|
41
|
+
- _解决问题_
|
|
42
|
+
- 无
|
|
43
|
+
- _特性变更_
|
|
44
|
+
- **CreateVolume**
|
|
45
|
+
- 请求参数变更
|
|
46
|
+
- `+ volume.iops`
|
|
47
|
+
- `+ volume.throughput`
|
|
48
|
+
- `+ volume.volume_type: enum value [GPSSD2,ESSD2]`
|
|
49
|
+
|
|
50
|
+
### HuaweiCloud SDK LTS
|
|
51
|
+
|
|
52
|
+
- _新增特性_
|
|
53
|
+
- 无
|
|
54
|
+
- _解决问题_
|
|
55
|
+
- 无
|
|
56
|
+
- _特性变更_
|
|
57
|
+
- **UpdateSqlAlarmRule**
|
|
58
|
+
- 请求参数变更
|
|
59
|
+
- `+ notification_save_rule.template_name`
|
|
60
|
+
- **CreateSqlAlarmRule**
|
|
61
|
+
- 请求参数变更
|
|
62
|
+
- `+ notification_save_rule.template_name`
|
|
63
|
+
- **UpdateKeywordsAlarmRule**
|
|
64
|
+
- 请求参数变更
|
|
65
|
+
- `+ notification_save_rule.template_name`
|
|
66
|
+
- **CreateKeywordsAlarmRule**
|
|
67
|
+
- 请求参数变更
|
|
68
|
+
- `+ notification_save_rule.template_name`
|
|
69
|
+
- **ListAccessConfig**
|
|
70
|
+
- 响应参数变更
|
|
71
|
+
- `+ log_split`
|
|
72
|
+
- `+ binary_collect`
|
|
73
|
+
- `+ result.log_split`
|
|
74
|
+
- `+ result.binary_collect`
|
|
75
|
+
- `+ result.access_config_type: enum value [K8S_CCE]`
|
|
76
|
+
- `+ result.access_config_detail.stdout`
|
|
77
|
+
- `+ result.access_config_detail.stderr`
|
|
78
|
+
- `+ result.access_config_detail.pathType`
|
|
79
|
+
- `+ result.access_config_detail.namespaceRegex`
|
|
80
|
+
- `+ result.access_config_detail.podNameRegex`
|
|
81
|
+
- `+ result.access_config_detail.containerNameRegex`
|
|
82
|
+
- `+ result.access_config_detail.includeLabels`
|
|
83
|
+
- `+ result.access_config_detail.excludeLabels`
|
|
84
|
+
- `+ result.access_config_detail.includeEnvs`
|
|
85
|
+
- `+ result.access_config_detail.excludeEnvs`
|
|
86
|
+
- `+ result.access_config_detail.logLabels`
|
|
87
|
+
- `+ result.access_config_detail.logEnvs`
|
|
88
|
+
- `+ result.access_config_detail.includeK8sLabels`
|
|
89
|
+
- `+ result.access_config_detail.excludeK8sLabels`
|
|
90
|
+
- `+ result.access_config_detail.logK8s`
|
|
91
|
+
- `* result.access_config_detail.format.single: object<AccessConfigFormatSingle> -> object<AccessConfigFormatSingleCreate>`
|
|
92
|
+
- `* result.access_config_detail.format.multi: object<AccessConfigFormatMutil> -> object<AccessConfigFormatMutilCreate>`
|
|
93
|
+
- `* result.access_config_detail.format: object<AccessConfigFormat> -> object<AccessConfigFormatCreate>`
|
|
94
|
+
- `* result.access_config_detail.windows_log_info: object<AccessConfigWindowsLogInfo> -> object<AccessConfigWindowsLogInfoCreate>`
|
|
95
|
+
- `* result.access_config_detail: object<AccessConfigDeatil> -> object<AccessConfigDeatilCreate>`
|
|
96
|
+
- **UpdateAccessConfig**
|
|
97
|
+
- 请求参数变更
|
|
98
|
+
- `+ log_split`
|
|
99
|
+
- `+ binary_collect`
|
|
100
|
+
- `+ access_config_detail.stdout`
|
|
101
|
+
- `+ access_config_detail.stderr`
|
|
102
|
+
- `+ access_config_detail.pathType`
|
|
103
|
+
- `+ access_config_detail.namespaceRegex`
|
|
104
|
+
- `+ access_config_detail.podNameRegex`
|
|
105
|
+
- `+ access_config_detail.containerNameRegex`
|
|
106
|
+
- `+ access_config_detail.includeLabels`
|
|
107
|
+
- `+ access_config_detail.excludeLabels`
|
|
108
|
+
- `+ access_config_detail.includeEnvs`
|
|
109
|
+
- `+ access_config_detail.excludeEnvs`
|
|
110
|
+
- `+ access_config_detail.logLabels`
|
|
111
|
+
- `+ access_config_detail.logEnvs`
|
|
112
|
+
- `+ access_config_detail.includeK8sLabels`
|
|
113
|
+
- `+ access_config_detail.excludeK8sLabels`
|
|
114
|
+
- `+ access_config_detail.logK8s`
|
|
115
|
+
- `* access_config_detail.format.single: object<AccessConfigFormatSingle> -> object<AccessConfigFormatSingleCreate>`
|
|
116
|
+
- `* access_config_detail.format.multi: object<AccessConfigFormatMutil> -> object<AccessConfigFormatMutilCreate>`
|
|
117
|
+
- `* access_config_detail.format: object<AccessConfigFormat> -> object<AccessConfigFormatCreate>`
|
|
118
|
+
- `* access_config_detail.windows_log_info: object<AccessConfigWindowsLogInfo> -> object<AccessConfigWindowsLogInfoCreate>`
|
|
119
|
+
- `* access_config_detail: object<AccessConfigDeatil> -> object<AccessConfigDeatilCreate>`
|
|
120
|
+
- 响应参数变更
|
|
121
|
+
- `+ log_split`
|
|
122
|
+
- `+ binary_collect`
|
|
123
|
+
- `+ access_config_type: enum value [K8S_CCE]`
|
|
124
|
+
- `+ access_config_detail.stdout`
|
|
125
|
+
- `+ access_config_detail.stderr`
|
|
126
|
+
- `+ access_config_detail.pathType`
|
|
127
|
+
- `+ access_config_detail.namespaceRegex`
|
|
128
|
+
- `+ access_config_detail.podNameRegex`
|
|
129
|
+
- `+ access_config_detail.containerNameRegex`
|
|
130
|
+
- `+ access_config_detail.includeLabels`
|
|
131
|
+
- `+ access_config_detail.excludeLabels`
|
|
132
|
+
- `+ access_config_detail.includeEnvs`
|
|
133
|
+
- `+ access_config_detail.excludeEnvs`
|
|
134
|
+
- `+ access_config_detail.logLabels`
|
|
135
|
+
- `+ access_config_detail.logEnvs`
|
|
136
|
+
- `+ access_config_detail.includeK8sLabels`
|
|
137
|
+
- `+ access_config_detail.excludeK8sLabels`
|
|
138
|
+
- `+ access_config_detail.logK8s`
|
|
139
|
+
- `* access_config_detail.format.single: object<AccessConfigFormatSingle> -> object<AccessConfigFormatSingleCreate>`
|
|
140
|
+
- `* access_config_detail.format.multi: object<AccessConfigFormatMutil> -> object<AccessConfigFormatMutilCreate>`
|
|
141
|
+
- `* access_config_detail.format: object<AccessConfigFormat> -> object<AccessConfigFormatCreate>`
|
|
142
|
+
- `* access_config_detail.windows_log_info: object<AccessConfigWindowsLogInfo> -> object<AccessConfigWindowsLogInfoCreate>`
|
|
143
|
+
- `* access_config_detail: object<AccessConfigDeatil> -> object<AccessConfigDeatilCreate>`
|
|
144
|
+
- **CreateAccessConfig**
|
|
145
|
+
- 请求参数变更
|
|
146
|
+
- `+ binary_collect`
|
|
147
|
+
- `+ log_split`
|
|
148
|
+
- `+ access_config_type: enum value [K8S_CCE]`
|
|
149
|
+
- `+ access_config_detail.stdout`
|
|
150
|
+
- `+ access_config_detail.stderr`
|
|
151
|
+
- `+ access_config_detail.pathType`
|
|
152
|
+
- `+ access_config_detail.namespaceRegex`
|
|
153
|
+
- `+ access_config_detail.podNameRegex`
|
|
154
|
+
- `+ access_config_detail.containerNameRegex`
|
|
155
|
+
- `+ access_config_detail.includeLabels`
|
|
156
|
+
- `+ access_config_detail.excludeLabels`
|
|
157
|
+
- `+ access_config_detail.includeEnvs`
|
|
158
|
+
- `+ access_config_detail.excludeEnvs`
|
|
159
|
+
- `+ access_config_detail.logLabels`
|
|
160
|
+
- `+ access_config_detail.logEnvs`
|
|
161
|
+
- `+ access_config_detail.includeK8sLabels`
|
|
162
|
+
- `+ access_config_detail.excludeK8sLabels`
|
|
163
|
+
- `+ access_config_detail.logK8s`
|
|
164
|
+
- 响应参数变更
|
|
165
|
+
- `+ log_split`
|
|
166
|
+
- `+ binary_collect`
|
|
167
|
+
- `+ access_config_type: enum value [K8S_CCE]`
|
|
168
|
+
- `+ access_config_detail.stdout`
|
|
169
|
+
- `+ access_config_detail.stderr`
|
|
170
|
+
- `+ access_config_detail.pathType`
|
|
171
|
+
- `+ access_config_detail.namespaceRegex`
|
|
172
|
+
- `+ access_config_detail.podNameRegex`
|
|
173
|
+
- `+ access_config_detail.containerNameRegex`
|
|
174
|
+
- `+ access_config_detail.includeLabels`
|
|
175
|
+
- `+ access_config_detail.excludeLabels`
|
|
176
|
+
- `+ access_config_detail.includeEnvs`
|
|
177
|
+
- `+ access_config_detail.excludeEnvs`
|
|
178
|
+
- `+ access_config_detail.logLabels`
|
|
179
|
+
- `+ access_config_detail.logEnvs`
|
|
180
|
+
- `+ access_config_detail.includeK8sLabels`
|
|
181
|
+
- `+ access_config_detail.excludeK8sLabels`
|
|
182
|
+
- `+ access_config_detail.logK8s`
|
|
183
|
+
- `* access_config_detail.format.single: object<AccessConfigFormatSingle> -> object<AccessConfigFormatSingleCreate>`
|
|
184
|
+
- `* access_config_detail.format.multi: object<AccessConfigFormatMutil> -> object<AccessConfigFormatMutilCreate>`
|
|
185
|
+
- `* access_config_detail.format: object<AccessConfigFormat> -> object<AccessConfigFormatCreate>`
|
|
186
|
+
- `* access_config_detail.windows_log_info: object<AccessConfigWindowsLogInfo> -> object<AccessConfigWindowsLogInfoCreate>`
|
|
187
|
+
- `* access_config_detail: object<AccessConfigDeatil> -> object<AccessConfigDeatilCreate>`
|
|
188
|
+
- **DeleteAccessConfig**
|
|
189
|
+
- 响应参数变更
|
|
190
|
+
- `+ log_split`
|
|
191
|
+
- `+ binary_collect`
|
|
192
|
+
- `+ result.log_split`
|
|
193
|
+
- `+ result.binary_collect`
|
|
194
|
+
- `+ result.access_config_type: enum value [K8S_CCE]`
|
|
195
|
+
- `+ result.access_config_detail.stdout`
|
|
196
|
+
- `+ result.access_config_detail.stderr`
|
|
197
|
+
- `+ result.access_config_detail.pathType`
|
|
198
|
+
- `+ result.access_config_detail.namespaceRegex`
|
|
199
|
+
- `+ result.access_config_detail.podNameRegex`
|
|
200
|
+
- `+ result.access_config_detail.containerNameRegex`
|
|
201
|
+
- `+ result.access_config_detail.includeLabels`
|
|
202
|
+
- `+ result.access_config_detail.excludeLabels`
|
|
203
|
+
- `+ result.access_config_detail.includeEnvs`
|
|
204
|
+
- `+ result.access_config_detail.excludeEnvs`
|
|
205
|
+
- `+ result.access_config_detail.logLabels`
|
|
206
|
+
- `+ result.access_config_detail.logEnvs`
|
|
207
|
+
- `+ result.access_config_detail.includeK8sLabels`
|
|
208
|
+
- `+ result.access_config_detail.excludeK8sLabels`
|
|
209
|
+
- `+ result.access_config_detail.logK8s`
|
|
210
|
+
- `* result.access_config_detail.format.single: object<AccessConfigFormatSingle> -> object<AccessConfigFormatSingleCreate>`
|
|
211
|
+
- `* result.access_config_detail.format.multi: object<AccessConfigFormatMutil> -> object<AccessConfigFormatMutilCreate>`
|
|
212
|
+
- `* result.access_config_detail.format: object<AccessConfigFormat> -> object<AccessConfigFormatCreate>`
|
|
213
|
+
- `* result.access_config_detail.windows_log_info: object<AccessConfigWindowsLogInfo> -> object<AccessConfigWindowsLogInfoCreate>`
|
|
214
|
+
- `* result.access_config_detail: object<AccessConfigDeatil> -> object<AccessConfigDeatilCreate>`
|
|
215
|
+
|
|
216
|
+
### HuaweiCloud SDK Moderation
|
|
217
|
+
|
|
218
|
+
- _新增特性_
|
|
219
|
+
- 无
|
|
220
|
+
- _解决问题_
|
|
221
|
+
- 无
|
|
222
|
+
- _特性变更_
|
|
223
|
+
- **RunCreateVideoModerationJob**
|
|
224
|
+
- 请求参数变更
|
|
225
|
+
- `+ data.language`
|
|
226
|
+
|
|
227
|
+
### HuaweiCloud SDK VPC
|
|
228
|
+
|
|
229
|
+
- _新增特性_
|
|
230
|
+
- 无
|
|
231
|
+
- _解决问题_
|
|
232
|
+
- 无
|
|
233
|
+
- _特性变更_
|
|
234
|
+
- **ListSecurityGroupRules**
|
|
235
|
+
- 请求参数变更
|
|
236
|
+
- `+ remote_ip_prefix`
|
|
237
|
+
|
|
238
|
+
# 3.1.44 2023-06-29
|
|
239
|
+
|
|
240
|
+
### HuaweiCloud SDK IdentityCenter
|
|
241
|
+
|
|
242
|
+
- _新增特性_
|
|
243
|
+
- 支持IAM 身份中心服务
|
|
244
|
+
- _解决问题_
|
|
245
|
+
- 无
|
|
246
|
+
- _特性变更_
|
|
247
|
+
- 无
|
|
248
|
+
|
|
249
|
+
### HuaweiCloud SDK WorkspaceApp
|
|
250
|
+
|
|
251
|
+
- _新增特性_
|
|
252
|
+
- 支持云应用服务
|
|
253
|
+
- _解决问题_
|
|
254
|
+
- 无
|
|
255
|
+
- _特性变更_
|
|
256
|
+
- 无
|
|
257
|
+
|
|
258
|
+
### HuaweiCloud SDK Config
|
|
259
|
+
|
|
260
|
+
- _新增特性_
|
|
261
|
+
- 支持配置审计服务
|
|
262
|
+
- _解决问题_
|
|
263
|
+
- 无
|
|
264
|
+
- _特性变更_
|
|
265
|
+
- 无
|
|
266
|
+
|
|
267
|
+
### HuaweiCloud SDK AOS
|
|
268
|
+
|
|
269
|
+
- _新增特性_
|
|
270
|
+
- 支持接口`ListTemplateVersions`
|
|
271
|
+
- _解决问题_
|
|
272
|
+
- 无
|
|
273
|
+
- _特性变更_
|
|
274
|
+
- 无
|
|
275
|
+
|
|
276
|
+
### HuaweiCloud SDK DCS
|
|
277
|
+
|
|
278
|
+
- _新增特性_
|
|
279
|
+
- 支持接口`ExecuteClusterSwitchover`、`ShowJobInfo`
|
|
280
|
+
- _解决问题_
|
|
281
|
+
- 无
|
|
282
|
+
- _特性变更_
|
|
283
|
+
- **ListConfigTemplates**
|
|
284
|
+
- 响应参数变更
|
|
285
|
+
- `+ config_templates.created_at`
|
|
286
|
+
- **CreateInstance**
|
|
287
|
+
- 请求参数变更
|
|
288
|
+
- `+ template_id`
|
|
289
|
+
|
|
290
|
+
### HuaweiCloud SDK GA
|
|
291
|
+
|
|
292
|
+
- _新增特性_
|
|
293
|
+
- 支持以下接口:
|
|
294
|
+
- `ListIpGroups`
|
|
295
|
+
- `CreateIpGroup`
|
|
296
|
+
- `ShowIpGroup`
|
|
297
|
+
- `UpdateIpGroup`
|
|
298
|
+
- `DeleteIpGroup`
|
|
299
|
+
- `AddIpGroupIp`
|
|
300
|
+
- `RemoveIpGroupIp`
|
|
301
|
+
- `AssociateListener`
|
|
302
|
+
- `DisassociateListener`
|
|
303
|
+
- _解决问题_
|
|
304
|
+
- 无
|
|
305
|
+
- _特性变更_
|
|
306
|
+
- 无
|
|
307
|
+
|
|
308
|
+
### HuaweiCloud SDK IoTDA
|
|
309
|
+
|
|
310
|
+
- _新增特性_
|
|
311
|
+
- 无
|
|
312
|
+
- _解决问题_
|
|
313
|
+
- 无
|
|
314
|
+
- _特性变更_
|
|
315
|
+
- **CreateCommand**
|
|
316
|
+
- 响应参数变更
|
|
317
|
+
- `+ error_msg`
|
|
318
|
+
- `+ error_code`
|
|
319
|
+
- **ListProperties**
|
|
320
|
+
- 响应参数变更
|
|
321
|
+
- `+ error_msg`
|
|
322
|
+
- `+ error_code`
|
|
323
|
+
- **UpdateProperties**
|
|
324
|
+
- 响应参数变更
|
|
325
|
+
- `+ error_msg`
|
|
326
|
+
- `+ error_code`
|
|
327
|
+
|
|
328
|
+
### HuaweiCloud SDK VPC
|
|
329
|
+
|
|
330
|
+
- _新增特性_
|
|
331
|
+
- 无
|
|
332
|
+
- _解决问题_
|
|
333
|
+
- 无
|
|
334
|
+
- _特性变更_
|
|
335
|
+
- **ShowAddressGroup**
|
|
336
|
+
- 响应参数变更
|
|
337
|
+
- `+ address_group.tags`
|
|
338
|
+
- **UpdateAddressGroup**
|
|
339
|
+
- 响应参数变更
|
|
340
|
+
- `+ address_group.tags`
|
|
341
|
+
- **ListAddressGroup**
|
|
342
|
+
- 响应参数变更
|
|
343
|
+
- `+ address_groups.tags`
|
|
344
|
+
- **CreateAddressGroup**
|
|
345
|
+
- 响应参数变更
|
|
346
|
+
- `+ address_group.tags`
|
|
347
|
+
|
|
348
|
+
### HuaweiCloud SDK VPCEP
|
|
349
|
+
|
|
350
|
+
- _新增特性_
|
|
351
|
+
- 无
|
|
352
|
+
- _解决问题_
|
|
353
|
+
- 无
|
|
354
|
+
- _特性变更_
|
|
355
|
+
- **AddOrRemoveServicePermissions**
|
|
356
|
+
- 请求参数变更
|
|
357
|
+
- `+ permission_type`
|
|
358
|
+
- 响应参数变更
|
|
359
|
+
- `+ permission_type`
|
|
360
|
+
- **UpdateEndpointService**
|
|
361
|
+
- 响应参数变更
|
|
362
|
+
- `- cidr_type`
|
|
363
|
+
- **ListServicePermissionsDetails**
|
|
364
|
+
- 响应参数变更
|
|
365
|
+
- `+ permissions.permission_type`
|
|
366
|
+
- **BatchAddEndpointServicePermissions**
|
|
367
|
+
- 请求参数变更
|
|
368
|
+
- `+ permission_type`
|
|
369
|
+
- 响应参数变更
|
|
370
|
+
- `+ permissions.permission_type`
|
|
371
|
+
- **BatchRemoveEndpointServicePermissions**
|
|
372
|
+
- 响应参数变更
|
|
373
|
+
- `+ permissions.permission_type`
|
|
374
|
+
- **UpdateEndpointServicePermissionDesc**
|
|
375
|
+
- 响应参数变更
|
|
376
|
+
- `+ permissions.permission_type`
|
|
377
|
+
- **CreateEndpointService**
|
|
378
|
+
- 响应参数变更
|
|
379
|
+
- `- cidr_type`
|
|
380
|
+
|
|
1
381
|
# 3.1.43 2023-06-21
|
|
2
382
|
|
|
3
383
|
### HuaweiCloud SDK CloudRTC
|
package/HcClient.js
CHANGED
|
@@ -162,7 +162,9 @@ var HcClient = exports.HcClient = /** @class */ (function () {
|
|
|
162
162
|
.withData(options.data)
|
|
163
163
|
.withQueryParams(options.queryParams)
|
|
164
164
|
.build();
|
|
165
|
-
|
|
165
|
+
return [4 /*yield*/, this.credential.processAuthRequest(httpRequest)];
|
|
166
|
+
case 3:
|
|
167
|
+
httpRequest = _c.sent();
|
|
166
168
|
if (options['responseHeaders']) {
|
|
167
169
|
httpRequest['responseHeaders'] = options['responseHeaders'];
|
|
168
170
|
}
|
|
@@ -17,7 +17,7 @@ export declare class BasicCredentials implements ICredential {
|
|
|
17
17
|
getSk(): string | undefined;
|
|
18
18
|
setProjectId(value: string): void;
|
|
19
19
|
getPathParams(): {};
|
|
20
|
-
processAuthRequest(httpRequest: IHttpRequest): IHttpRequest
|
|
20
|
+
processAuthRequest(httpRequest: IHttpRequest): Promise<IHttpRequest>;
|
|
21
21
|
processAuthParams(hcClient: HcClient, region: string): Promise<ICredential>;
|
|
22
22
|
parsePath(path: string | undefined, params: any): string;
|
|
23
23
|
}
|
package/auth/BasicCredentials.js
CHANGED
|
@@ -107,35 +107,39 @@ var BasicCredentials = /** @class */ (function () {
|
|
|
107
107
|
return pathParams;
|
|
108
108
|
};
|
|
109
109
|
BasicCredentials.prototype.processAuthRequest = function (httpRequest) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
110
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
111
|
+
var builder, url, headers;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
if (!this.ak) {
|
|
114
|
+
throw new AKSKSigner_1.RequiredError('AK cannot be empty or undefined.');
|
|
115
|
+
}
|
|
116
|
+
if (!this.sk) {
|
|
117
|
+
throw new AKSKSigner_1.RequiredError('SK cannot be empty or undefined.');
|
|
118
|
+
}
|
|
119
|
+
builder = new IHttpRequestBuilder_1.HttpRequestBuilder();
|
|
120
|
+
builder.addPathParams(this.getPathParams());
|
|
121
|
+
url = httpRequest.url;
|
|
122
|
+
if (this.projectId) {
|
|
123
|
+
url = this.parsePath(url, this.getPathParams());
|
|
124
|
+
builder.withUrl(url);
|
|
125
|
+
}
|
|
126
|
+
builder.withEndpoint("".concat(httpRequest.endpoint).concat(url));
|
|
127
|
+
if (this.projectId) {
|
|
128
|
+
builder.addHeaders("X-Project-Id", this.projectId);
|
|
129
|
+
}
|
|
130
|
+
if (this.securityToken) {
|
|
131
|
+
builder.addHeaders("X-Security-Token", this.securityToken);
|
|
132
|
+
}
|
|
133
|
+
if (!(0, ICredential_1.isJsonContentType)(httpRequest.headers)) {
|
|
134
|
+
builder.addHeaders("X-Sdk-Content-Sha256", "UNSIGNED-PAYLOAD");
|
|
135
|
+
}
|
|
136
|
+
builder.addAllHeaders(httpRequest.headers);
|
|
137
|
+
Object.assign(httpRequest, builder.build());
|
|
138
|
+
headers = AKSKSigner_1.AKSKSigner.sign(httpRequest, this);
|
|
139
|
+
builder.addAllHeaders(headers);
|
|
140
|
+
return [2 /*return*/, Object.assign(httpRequest, builder.build())];
|
|
141
|
+
});
|
|
142
|
+
});
|
|
139
143
|
};
|
|
140
144
|
BasicCredentials.prototype.processAuthParams = function (hcClient, region) {
|
|
141
145
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -17,6 +17,6 @@ export declare class GlobalCredentials implements ICredential {
|
|
|
17
17
|
getSk(): string;
|
|
18
18
|
setDomainId(value: string): void;
|
|
19
19
|
getPathParams(): {};
|
|
20
|
-
processAuthRequest(httpRequest: IHttpRequest): IHttpRequest
|
|
20
|
+
processAuthRequest(httpRequest: IHttpRequest): Promise<IHttpRequest>;
|
|
21
21
|
processAuthParams(hcClient: HcClient): Promise<this>;
|
|
22
22
|
}
|
|
@@ -114,33 +114,37 @@ var GlobalCredentials = /** @class */ (function () {
|
|
|
114
114
|
return pathParams;
|
|
115
115
|
};
|
|
116
116
|
GlobalCredentials.prototype.processAuthRequest = function (httpRequest) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
117
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
+
var builder, url, headers;
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
if (!this.ak) {
|
|
121
|
+
throw new AKSKSigner_1.RequiredError('AK cannot be empty or undefined.');
|
|
122
|
+
}
|
|
123
|
+
if (!this.sk) {
|
|
124
|
+
throw new AKSKSigner_1.RequiredError('SK cannot be empty or undefined.');
|
|
125
|
+
}
|
|
126
|
+
builder = new IHttpRequestBuilder_1.HttpRequestBuilder()
|
|
127
|
+
.addPathParams(this.getPathParams());
|
|
128
|
+
url = httpRequest.url;
|
|
129
|
+
if (this.domainId) {
|
|
130
|
+
url = parsePath(url, this.getPathParams());
|
|
131
|
+
builder.withUrl(url)
|
|
132
|
+
.addHeaders("X-Domain-Id", this.domainId);
|
|
133
|
+
}
|
|
134
|
+
builder.withEndpoint("".concat(httpRequest.endpoint).concat(url));
|
|
135
|
+
if (this.securityToken) {
|
|
136
|
+
builder.addHeaders("X-Security-Token", this.securityToken);
|
|
137
|
+
}
|
|
138
|
+
if (!(0, ICredential_1.isJsonContentType)(httpRequest.headers)) {
|
|
139
|
+
builder.addHeaders("X-Sdk-Content-Sha256", "UNSIGNED-PAYLOAD");
|
|
140
|
+
}
|
|
141
|
+
builder.addAllHeaders(httpRequest.headers);
|
|
142
|
+
Object.assign(httpRequest, builder.build());
|
|
143
|
+
headers = AKSKSigner_1.AKSKSigner.sign(httpRequest, this);
|
|
144
|
+
builder.addAllHeaders(headers);
|
|
145
|
+
return [2 /*return*/, Object.assign(httpRequest, builder.build())];
|
|
146
|
+
});
|
|
147
|
+
});
|
|
144
148
|
};
|
|
145
149
|
GlobalCredentials.prototype.processAuthParams = function (hcClient) {
|
|
146
150
|
return __awaiter(this, void 0, void 0, function () {
|
package/auth/ICredential.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { IHttpRequest } from "../http/IHttpRequest";
|
|
|
3
3
|
export interface ICredential {
|
|
4
4
|
getAk: () => string | undefined;
|
|
5
5
|
getSk: () => string | undefined;
|
|
6
|
-
processAuthRequest: (httpRequest: IHttpRequest) => IHttpRequest
|
|
6
|
+
processAuthRequest: (httpRequest: IHttpRequest) => Promise<IHttpRequest>;
|
|
7
7
|
processAuthParams: (hcClient: HcClient, region: string) => Promise<ICredential>;
|
|
8
8
|
}
|
|
9
9
|
export declare function isJsonContentType(headers: any): boolean;
|