@huaweicloud/huaweicloud-sdk-core 3.1.30 → 3.1.32
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 +250 -0
- package/CHANGELOG_CN.md +250 -0
- package/HcClient.js +1 -2
- package/auth/AKSKSigner.js +1 -2
- package/auth/BasicCredentials.js +1 -1
- package/exception/ClientRequestException.d.ts +1 -1
- package/exception/ClientRequestException.js +4 -4
- package/exception/ExceptionResponse.d.ts +14 -5
- package/exception/ExceptionResponse.js +0 -20
- package/exception/ExceptionUtil.js +8 -7
- package/exception/ServerResponseException.d.ts +1 -1
- package/exception/ServerResponseException.js +4 -4
- package/exception/ServiceResponseException.d.ts +2 -1
- package/exception/ServiceResponseException.js +4 -3
- package/http/DefaultHttpClient.js +3 -0
- package/internal/services/iam.service.d.ts +1 -1
- package/internal/services/iam.service.js +1 -1
- package/logger/index.js +1 -2
- package/package.json +1 -1
- package/LICENSE +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,253 @@
|
|
|
1
|
+
# 3.1.32 2023-03-30
|
|
2
|
+
|
|
3
|
+
### HuaweiCloud SDK IoTDA
|
|
4
|
+
|
|
5
|
+
- _Features_
|
|
6
|
+
- None
|
|
7
|
+
- _Bug Fix_
|
|
8
|
+
- None
|
|
9
|
+
- _Change_
|
|
10
|
+
- **ListOtaPackageInfo**
|
|
11
|
+
- changes of request param
|
|
12
|
+
- `- Sp-Auth-Token`
|
|
13
|
+
- **CreateOtaPackage**
|
|
14
|
+
- changes of request param
|
|
15
|
+
- `- Sp-Auth-Token`
|
|
16
|
+
- **DeleteOtaPackage**
|
|
17
|
+
- changes of request param
|
|
18
|
+
- `- Sp-Auth-Token`
|
|
19
|
+
- **ShowOtaPackage**
|
|
20
|
+
- changes of request param
|
|
21
|
+
- `- Sp-Auth-Token`
|
|
22
|
+
- **ShowRuleAction**
|
|
23
|
+
- changes of response param
|
|
24
|
+
- `+ channel_detail.http_forwarding.signature_enable`
|
|
25
|
+
- `+ channel_detail.http_forwarding.token`
|
|
26
|
+
- **UpdateRuleAction**
|
|
27
|
+
- changes of request param
|
|
28
|
+
- `+ channel_detail.http_forwarding.signature_enable`
|
|
29
|
+
- `+ channel_detail.http_forwarding.token`
|
|
30
|
+
- changes of response param
|
|
31
|
+
- `+ channel_detail.http_forwarding.signature_enable`
|
|
32
|
+
- `+ channel_detail.http_forwarding.token`
|
|
33
|
+
- **CreateRuleAction**
|
|
34
|
+
- changes of request param
|
|
35
|
+
- `+ channel_detail.http_forwarding.signature_enable`
|
|
36
|
+
- `+ channel_detail.http_forwarding.token`
|
|
37
|
+
- changes of response param
|
|
38
|
+
- `+ channel_detail.http_forwarding.signature_enable`
|
|
39
|
+
- `+ channel_detail.http_forwarding.token`
|
|
40
|
+
- **ListRuleActions**
|
|
41
|
+
- changes of response param
|
|
42
|
+
- `+ actions.channel_detail.http_forwarding.signature_enable`
|
|
43
|
+
- `+ actions.channel_detail.http_forwarding.token`
|
|
44
|
+
- **ShowRule**
|
|
45
|
+
- changes of response param
|
|
46
|
+
- `+ actions.device_alarm.dimension`
|
|
47
|
+
- `+ condition_group.conditions.device_linkage_status_condition`
|
|
48
|
+
- `+ condition_group.conditions.device_property_condition.filters.in_values`
|
|
49
|
+
- **UpdateRule**
|
|
50
|
+
- changes of request param
|
|
51
|
+
- `+ actions.device_alarm.dimension`
|
|
52
|
+
- `+ condition_group.conditions.device_linkage_status_condition`
|
|
53
|
+
- `+ condition_group.conditions.device_property_condition.filters.in_values`
|
|
54
|
+
- changes of response param
|
|
55
|
+
- `+ actions.device_alarm.dimension`
|
|
56
|
+
- `+ condition_group.conditions.device_linkage_status_condition`
|
|
57
|
+
- `+ condition_group.conditions.device_property_condition.filters.in_values`
|
|
58
|
+
- **CreateRule**
|
|
59
|
+
- changes of request param
|
|
60
|
+
- `+ actions.device_alarm.dimension`
|
|
61
|
+
- `+ condition_group.conditions.device_linkage_status_condition`
|
|
62
|
+
- `+ condition_group.conditions.device_property_condition.filters.in_values`
|
|
63
|
+
- changes of response param
|
|
64
|
+
- `+ actions.device_alarm.dimension`
|
|
65
|
+
- `+ condition_group.conditions.device_linkage_status_condition`
|
|
66
|
+
- `+ condition_group.conditions.device_property_condition.filters.in_values`
|
|
67
|
+
- **ListRules**
|
|
68
|
+
- changes of response param
|
|
69
|
+
- `+ rules.actions.device_alarm.dimension`
|
|
70
|
+
- `+ rules.condition_group.conditions.device_linkage_status_condition`
|
|
71
|
+
- `+ rules.condition_group.conditions.device_property_condition.filters.in_values`
|
|
72
|
+
|
|
73
|
+
### HuaweiCloud SDK VOD
|
|
74
|
+
|
|
75
|
+
- _Features_
|
|
76
|
+
- None
|
|
77
|
+
- _Bug Fix_
|
|
78
|
+
- None
|
|
79
|
+
- _Change_
|
|
80
|
+
- **PublishAssetFromObs**
|
|
81
|
+
- changes of request param
|
|
82
|
+
- `+ video_type: enum value [RMVB,WEBM]`
|
|
83
|
+
|
|
84
|
+
### HuaweiCloud SDK WAF
|
|
85
|
+
|
|
86
|
+
- _Features_
|
|
87
|
+
- Support the interfaces `ShowValueList`, `ShowPrivacyRule`, `ShowAntitamperRule`, `ShowWhiteBlackIpRule`
|
|
88
|
+
- _Bug Fix_
|
|
89
|
+
- None
|
|
90
|
+
- _Change_
|
|
91
|
+
- **ShowCcRule**
|
|
92
|
+
- changes of response param
|
|
93
|
+
- `+ name`
|
|
94
|
+
- `* mode: number -> int32`
|
|
95
|
+
- **UpdateCcRule**
|
|
96
|
+
- changes of request param
|
|
97
|
+
- `+ name`
|
|
98
|
+
- changes of response param
|
|
99
|
+
- `+ name`
|
|
100
|
+
- `* mode: number -> int32`
|
|
101
|
+
- **DeleteCcRule**
|
|
102
|
+
- changes of response param
|
|
103
|
+
- `+ name`
|
|
104
|
+
- `* mode: number -> int32`
|
|
105
|
+
- **ShowCustomRule**
|
|
106
|
+
- changes of response param
|
|
107
|
+
- `+ time`
|
|
108
|
+
- **UpdateCustomRule**
|
|
109
|
+
- changes of response param
|
|
110
|
+
- `+ time`
|
|
111
|
+
- **DeleteCustomRule**
|
|
112
|
+
- changes of response param
|
|
113
|
+
- `+ time`
|
|
114
|
+
- **ListAntileakageRules**
|
|
115
|
+
- changes of response param
|
|
116
|
+
- `+ items.description`
|
|
117
|
+
- **CreateCcRule**
|
|
118
|
+
- changes of request param
|
|
119
|
+
- `+ name`
|
|
120
|
+
- changes of response param
|
|
121
|
+
- `+ name`
|
|
122
|
+
- `* mode: number -> int32`
|
|
123
|
+
- **ListCcRules**
|
|
124
|
+
- changes of response param
|
|
125
|
+
- `+ items.name`
|
|
126
|
+
- **CreateCustomRule**
|
|
127
|
+
- changes of response param
|
|
128
|
+
- `+ time`
|
|
129
|
+
- **ListCustomRules**
|
|
130
|
+
- changes of response param
|
|
131
|
+
- `+ items.time`
|
|
132
|
+
|
|
133
|
+
# 3.1.31 2023-03-23
|
|
134
|
+
|
|
135
|
+
### HuaweiCloud SDK CCE
|
|
136
|
+
|
|
137
|
+
- _Features_
|
|
138
|
+
- None
|
|
139
|
+
- _Bug Fix_
|
|
140
|
+
- None
|
|
141
|
+
- _Change_
|
|
142
|
+
- **ShowNode**
|
|
143
|
+
- changes of response param
|
|
144
|
+
- `+ spec.extendParam.agency_name`
|
|
145
|
+
- **UpdateNode**
|
|
146
|
+
- changes of response param
|
|
147
|
+
- `+ spec.extendParam.agency_name`
|
|
148
|
+
- **DeleteNode**
|
|
149
|
+
- changes of response param
|
|
150
|
+
- `+ spec.extendParam.agency_name`
|
|
151
|
+
- **CreateNode**
|
|
152
|
+
- changes of request param
|
|
153
|
+
- `+ spec.extendParam.agency_name`
|
|
154
|
+
- changes of response param
|
|
155
|
+
- `+ spec.extendParam.agency_name`
|
|
156
|
+
- **ListNodes**
|
|
157
|
+
- changes of response param
|
|
158
|
+
- `+ items.spec.extendParam.agency_name`
|
|
159
|
+
- **ShowNodePool**
|
|
160
|
+
- changes of response param
|
|
161
|
+
- `+ spec.nodeTemplate.extendParam.agency_name`
|
|
162
|
+
- **UpdateNodePool**
|
|
163
|
+
- changes of response param
|
|
164
|
+
- `+ spec.nodeTemplate.extendParam.agency_name`
|
|
165
|
+
- **DeleteNodePool**
|
|
166
|
+
- changes of response param
|
|
167
|
+
- `+ spec.nodeTemplate.extendParam.agency_name`
|
|
168
|
+
- **CreateNodePool**
|
|
169
|
+
- changes of request param
|
|
170
|
+
- `+ spec.nodeTemplate.extendParam.agency_name`
|
|
171
|
+
- changes of response param
|
|
172
|
+
- `+ spec.nodeTemplate.extendParam.agency_name`
|
|
173
|
+
- **ListNodePools**
|
|
174
|
+
- changes of response param
|
|
175
|
+
- `+ items.spec.nodeTemplate.extendParam.agency_name`
|
|
176
|
+
|
|
177
|
+
### HuaweiCloud SDK CDN
|
|
178
|
+
|
|
179
|
+
- _Features_
|
|
180
|
+
- None
|
|
181
|
+
- _Bug Fix_
|
|
182
|
+
- None
|
|
183
|
+
- _Change_
|
|
184
|
+
- **ShowDomainDetailByName**
|
|
185
|
+
- changes of response param
|
|
186
|
+
- `- domain.banned_reason`
|
|
187
|
+
- `- domain.locked_reason`
|
|
188
|
+
- `- domain.enterprise_project_id`
|
|
189
|
+
|
|
190
|
+
### HuaweiCloud SDK DCS
|
|
191
|
+
|
|
192
|
+
- _Features_
|
|
193
|
+
- None
|
|
194
|
+
- _Bug Fix_
|
|
195
|
+
- None
|
|
196
|
+
- _Change_
|
|
197
|
+
- **CreateMigrationTask**
|
|
198
|
+
- changes of request param
|
|
199
|
+
- `+ backup_files.file_source: enum value [backup_record]`
|
|
200
|
+
- **ShowMigrationTask**
|
|
201
|
+
- changes of response param
|
|
202
|
+
- `+ backup_files.file_source: enum value [backup_record]`
|
|
203
|
+
- **StopMigrationTask**
|
|
204
|
+
- changes of response param
|
|
205
|
+
- `+ backup_files.file_source: enum value [backup_record]`
|
|
206
|
+
|
|
207
|
+
### HuaweiCloud SDK WAF
|
|
208
|
+
|
|
209
|
+
- _Features_
|
|
210
|
+
- Support the following interfaces:
|
|
211
|
+
- `ListCcRules`
|
|
212
|
+
- `CreateCcRule`
|
|
213
|
+
- `ShowCcRule`
|
|
214
|
+
- `UpdateCcRule`
|
|
215
|
+
- `DeleteCcRule`
|
|
216
|
+
- `ListCustomRules`
|
|
217
|
+
- `CreateCustomRule`
|
|
218
|
+
- `ShowCustomRule`
|
|
219
|
+
- `UpdateCustomRule`
|
|
220
|
+
- `DeleteCustomRule`
|
|
221
|
+
- `ListAnticrawlerRules`
|
|
222
|
+
- `UpdateAnticrawlerRuleType`
|
|
223
|
+
- `CreateAnticrawlerRule`
|
|
224
|
+
- `ShowAnticrawlerRule`
|
|
225
|
+
- `UpdateAnticrawlerRule`
|
|
226
|
+
- `DeleteAnticrawlerRule`
|
|
227
|
+
- `ListPunishmentRules`
|
|
228
|
+
- `CreatePunishmentRule`
|
|
229
|
+
- `ShowPunishmentRule`
|
|
230
|
+
- `UpdatePunishmentRule`
|
|
231
|
+
- `DeletePunishmentRule`
|
|
232
|
+
- `ListAntileakageRules`
|
|
233
|
+
- `CreateAntileakageRule`
|
|
234
|
+
- `ShowAntileakageRule`
|
|
235
|
+
- `UpdateAntileakageRule`
|
|
236
|
+
- `DeleteAntileakageRule`
|
|
237
|
+
- `UpdateAntiTamperRuleRefresh`
|
|
238
|
+
- `ShowGeoipRule`
|
|
239
|
+
- `ShowIgnoreRule`
|
|
240
|
+
- `UpdateIgnoreRule`
|
|
241
|
+
- _Bug Fix_
|
|
242
|
+
- None
|
|
243
|
+
- _Change_
|
|
244
|
+
- **ListHost**
|
|
245
|
+
- changes of response param
|
|
246
|
+
- `- items.paid_type: enum value [prePaid]`
|
|
247
|
+
- **DeleteHost**
|
|
248
|
+
- changes of response param
|
|
249
|
+
- `- paid_type: enum value [prePaid]`
|
|
250
|
+
|
|
1
251
|
# 3.1.30 2023-03-16
|
|
2
252
|
|
|
3
253
|
### HuaweiCloud SDK CDN
|
package/CHANGELOG_CN.md
CHANGED
|
@@ -1,3 +1,253 @@
|
|
|
1
|
+
# 3.1.32 2023-03-30
|
|
2
|
+
|
|
3
|
+
### HuaweiCloud SDK IoTDA
|
|
4
|
+
|
|
5
|
+
- _新增特性_
|
|
6
|
+
- 无
|
|
7
|
+
- _解决问题_
|
|
8
|
+
- 无
|
|
9
|
+
- _特性变更_
|
|
10
|
+
- **ListOtaPackageInfo**
|
|
11
|
+
- 请求参数变更
|
|
12
|
+
- `- Sp-Auth-Token`
|
|
13
|
+
- **CreateOtaPackage**
|
|
14
|
+
- 请求参数变更
|
|
15
|
+
- `- Sp-Auth-Token`
|
|
16
|
+
- **DeleteOtaPackage**
|
|
17
|
+
- 请求参数变更
|
|
18
|
+
- `- Sp-Auth-Token`
|
|
19
|
+
- **ShowOtaPackage**
|
|
20
|
+
- 请求参数变更
|
|
21
|
+
- `- Sp-Auth-Token`
|
|
22
|
+
- **ShowRuleAction**
|
|
23
|
+
- 响应参数变更
|
|
24
|
+
- `+ channel_detail.http_forwarding.signature_enable`
|
|
25
|
+
- `+ channel_detail.http_forwarding.token`
|
|
26
|
+
- **UpdateRuleAction**
|
|
27
|
+
- 请求参数变更
|
|
28
|
+
- `+ channel_detail.http_forwarding.signature_enable`
|
|
29
|
+
- `+ channel_detail.http_forwarding.token`
|
|
30
|
+
- 响应参数变更
|
|
31
|
+
- `+ channel_detail.http_forwarding.signature_enable`
|
|
32
|
+
- `+ channel_detail.http_forwarding.token`
|
|
33
|
+
- **CreateRuleAction**
|
|
34
|
+
- 请求参数变更
|
|
35
|
+
- `+ channel_detail.http_forwarding.signature_enable`
|
|
36
|
+
- `+ channel_detail.http_forwarding.token`
|
|
37
|
+
- 响应参数变更
|
|
38
|
+
- `+ channel_detail.http_forwarding.signature_enable`
|
|
39
|
+
- `+ channel_detail.http_forwarding.token`
|
|
40
|
+
- **ListRuleActions**
|
|
41
|
+
- 响应参数变更
|
|
42
|
+
- `+ actions.channel_detail.http_forwarding.signature_enable`
|
|
43
|
+
- `+ actions.channel_detail.http_forwarding.token`
|
|
44
|
+
- **ShowRule**
|
|
45
|
+
- 响应参数变更
|
|
46
|
+
- `+ actions.device_alarm.dimension`
|
|
47
|
+
- `+ condition_group.conditions.device_linkage_status_condition`
|
|
48
|
+
- `+ condition_group.conditions.device_property_condition.filters.in_values`
|
|
49
|
+
- **UpdateRule**
|
|
50
|
+
- 请求参数变更
|
|
51
|
+
- `+ actions.device_alarm.dimension`
|
|
52
|
+
- `+ condition_group.conditions.device_linkage_status_condition`
|
|
53
|
+
- `+ condition_group.conditions.device_property_condition.filters.in_values`
|
|
54
|
+
- 响应参数变更
|
|
55
|
+
- `+ actions.device_alarm.dimension`
|
|
56
|
+
- `+ condition_group.conditions.device_linkage_status_condition`
|
|
57
|
+
- `+ condition_group.conditions.device_property_condition.filters.in_values`
|
|
58
|
+
- **CreateRule**
|
|
59
|
+
- 请求参数变更
|
|
60
|
+
- `+ actions.device_alarm.dimension`
|
|
61
|
+
- `+ condition_group.conditions.device_linkage_status_condition`
|
|
62
|
+
- `+ condition_group.conditions.device_property_condition.filters.in_values`
|
|
63
|
+
- 响应参数变更
|
|
64
|
+
- `+ actions.device_alarm.dimension`
|
|
65
|
+
- `+ condition_group.conditions.device_linkage_status_condition`
|
|
66
|
+
- `+ condition_group.conditions.device_property_condition.filters.in_values`
|
|
67
|
+
- **ListRules**
|
|
68
|
+
- 响应参数变更
|
|
69
|
+
- `+ rules.actions.device_alarm.dimension`
|
|
70
|
+
- `+ rules.condition_group.conditions.device_linkage_status_condition`
|
|
71
|
+
- `+ rules.condition_group.conditions.device_property_condition.filters.in_values`
|
|
72
|
+
|
|
73
|
+
### HuaweiCloud SDK VOD
|
|
74
|
+
|
|
75
|
+
- _新增特性_
|
|
76
|
+
- 无
|
|
77
|
+
- _解决问题_
|
|
78
|
+
- 无
|
|
79
|
+
- _特性变更_
|
|
80
|
+
- **PublishAssetFromObs**
|
|
81
|
+
- 请求参数变更
|
|
82
|
+
- `+ video_type: enum value [RMVB,WEBM]`
|
|
83
|
+
|
|
84
|
+
### HuaweiCloud SDK WAF
|
|
85
|
+
|
|
86
|
+
- _新增特性_
|
|
87
|
+
- 支持接口`ShowValueList`、`ShowPrivacyRule`、`ShowAntitamperRule`、`ShowWhiteBlackIpRule`
|
|
88
|
+
- _解决问题_
|
|
89
|
+
- 无
|
|
90
|
+
- _特性变更_
|
|
91
|
+
- **ShowCcRule**
|
|
92
|
+
- 响应参数变更
|
|
93
|
+
- `+ name`
|
|
94
|
+
- `* mode: number -> int32`
|
|
95
|
+
- **UpdateCcRule**
|
|
96
|
+
- 请求参数变更
|
|
97
|
+
- `+ name`
|
|
98
|
+
- 响应参数变更
|
|
99
|
+
- `+ name`
|
|
100
|
+
- `* mode: number -> int32`
|
|
101
|
+
- **DeleteCcRule**
|
|
102
|
+
- 响应参数变更
|
|
103
|
+
- `+ name`
|
|
104
|
+
- `* mode: number -> int32`
|
|
105
|
+
- **ShowCustomRule**
|
|
106
|
+
- 响应参数变更
|
|
107
|
+
- `+ time`
|
|
108
|
+
- **UpdateCustomRule**
|
|
109
|
+
- 响应参数变更
|
|
110
|
+
- `+ time`
|
|
111
|
+
- **DeleteCustomRule**
|
|
112
|
+
- 响应参数变更
|
|
113
|
+
- `+ time`
|
|
114
|
+
- **ListAntileakageRules**
|
|
115
|
+
- 响应参数变更
|
|
116
|
+
- `+ items.description`
|
|
117
|
+
- **CreateCcRule**
|
|
118
|
+
- 请求参数变更
|
|
119
|
+
- `+ name`
|
|
120
|
+
- 响应参数变更
|
|
121
|
+
- `+ name`
|
|
122
|
+
- `* mode: number -> int32`
|
|
123
|
+
- **ListCcRules**
|
|
124
|
+
- 响应参数变更
|
|
125
|
+
- `+ items.name`
|
|
126
|
+
- **CreateCustomRule**
|
|
127
|
+
- 响应参数变更
|
|
128
|
+
- `+ time`
|
|
129
|
+
- **ListCustomRules**
|
|
130
|
+
- 响应参数变更
|
|
131
|
+
- `+ items.time`
|
|
132
|
+
|
|
133
|
+
# 3.1.31 2023-03-23
|
|
134
|
+
|
|
135
|
+
### HuaweiCloud SDK CCE
|
|
136
|
+
|
|
137
|
+
- _新增特性_
|
|
138
|
+
- 无
|
|
139
|
+
- _解决问题_
|
|
140
|
+
- 无
|
|
141
|
+
- _特性变更_
|
|
142
|
+
- **ShowNode**
|
|
143
|
+
- 响应参数变更
|
|
144
|
+
- `+ spec.extendParam.agency_name`
|
|
145
|
+
- **UpdateNode**
|
|
146
|
+
- 响应参数变更
|
|
147
|
+
- `+ spec.extendParam.agency_name`
|
|
148
|
+
- **DeleteNode**
|
|
149
|
+
- 响应参数变更
|
|
150
|
+
- `+ spec.extendParam.agency_name`
|
|
151
|
+
- **CreateNode**
|
|
152
|
+
- 请求参数变更
|
|
153
|
+
- `+ spec.extendParam.agency_name`
|
|
154
|
+
- 响应参数变更
|
|
155
|
+
- `+ spec.extendParam.agency_name`
|
|
156
|
+
- **ListNodes**
|
|
157
|
+
- 响应参数变更
|
|
158
|
+
- `+ items.spec.extendParam.agency_name`
|
|
159
|
+
- **ShowNodePool**
|
|
160
|
+
- 响应参数变更
|
|
161
|
+
- `+ spec.nodeTemplate.extendParam.agency_name`
|
|
162
|
+
- **UpdateNodePool**
|
|
163
|
+
- 响应参数变更
|
|
164
|
+
- `+ spec.nodeTemplate.extendParam.agency_name`
|
|
165
|
+
- **DeleteNodePool**
|
|
166
|
+
- 响应参数变更
|
|
167
|
+
- `+ spec.nodeTemplate.extendParam.agency_name`
|
|
168
|
+
- **CreateNodePool**
|
|
169
|
+
- 请求参数变更
|
|
170
|
+
- `+ spec.nodeTemplate.extendParam.agency_name`
|
|
171
|
+
- 响应参数变更
|
|
172
|
+
- `+ spec.nodeTemplate.extendParam.agency_name`
|
|
173
|
+
- **ListNodePools**
|
|
174
|
+
- 响应参数变更
|
|
175
|
+
- `+ items.spec.nodeTemplate.extendParam.agency_name`
|
|
176
|
+
|
|
177
|
+
### HuaweiCloud SDK CDN
|
|
178
|
+
|
|
179
|
+
- _新增特性_
|
|
180
|
+
- 无
|
|
181
|
+
- _解决问题_
|
|
182
|
+
- 无
|
|
183
|
+
- _特性变更_
|
|
184
|
+
- **ShowDomainDetailByName**
|
|
185
|
+
- 响应参数变更
|
|
186
|
+
- `- domain.banned_reason`
|
|
187
|
+
- `- domain.locked_reason`
|
|
188
|
+
- `- domain.enterprise_project_id`
|
|
189
|
+
|
|
190
|
+
### HuaweiCloud SDK DCS
|
|
191
|
+
|
|
192
|
+
- _新增特性_
|
|
193
|
+
- 无
|
|
194
|
+
- _解决问题_
|
|
195
|
+
- 无
|
|
196
|
+
- _特性变更_
|
|
197
|
+
- **CreateMigrationTask**
|
|
198
|
+
- 请求参数变更
|
|
199
|
+
- `+ backup_files.file_source: enum value [backup_record]`
|
|
200
|
+
- **ShowMigrationTask**
|
|
201
|
+
- 响应参数变更
|
|
202
|
+
- `+ backup_files.file_source: enum value [backup_record]`
|
|
203
|
+
- **StopMigrationTask**
|
|
204
|
+
- 响应参数变更
|
|
205
|
+
- `+ backup_files.file_source: enum value [backup_record]`
|
|
206
|
+
|
|
207
|
+
### HuaweiCloud SDK WAF
|
|
208
|
+
|
|
209
|
+
- _新增特性_
|
|
210
|
+
- 支持以下接口:
|
|
211
|
+
- `ListCcRules`
|
|
212
|
+
- `CreateCcRule`
|
|
213
|
+
- `ShowCcRule`
|
|
214
|
+
- `UpdateCcRule`
|
|
215
|
+
- `DeleteCcRule`
|
|
216
|
+
- `ListCustomRules`
|
|
217
|
+
- `CreateCustomRule`
|
|
218
|
+
- `ShowCustomRule`
|
|
219
|
+
- `UpdateCustomRule`
|
|
220
|
+
- `DeleteCustomRule`
|
|
221
|
+
- `ListAnticrawlerRules`
|
|
222
|
+
- `UpdateAnticrawlerRuleType`
|
|
223
|
+
- `CreateAnticrawlerRule`
|
|
224
|
+
- `ShowAnticrawlerRule`
|
|
225
|
+
- `UpdateAnticrawlerRule`
|
|
226
|
+
- `DeleteAnticrawlerRule`
|
|
227
|
+
- `ListPunishmentRules`
|
|
228
|
+
- `CreatePunishmentRule`
|
|
229
|
+
- `ShowPunishmentRule`
|
|
230
|
+
- `UpdatePunishmentRule`
|
|
231
|
+
- `DeletePunishmentRule`
|
|
232
|
+
- `ListAntileakageRules`
|
|
233
|
+
- `CreateAntileakageRule`
|
|
234
|
+
- `ShowAntileakageRule`
|
|
235
|
+
- `UpdateAntileakageRule`
|
|
236
|
+
- `DeleteAntileakageRule`
|
|
237
|
+
- `UpdateAntiTamperRuleRefresh`
|
|
238
|
+
- `ShowGeoipRule`
|
|
239
|
+
- `ShowIgnoreRule`
|
|
240
|
+
- `UpdateIgnoreRule`
|
|
241
|
+
- _解决问题_
|
|
242
|
+
- 无
|
|
243
|
+
- _特性变更_
|
|
244
|
+
- **ListHost**
|
|
245
|
+
- 响应参数变更
|
|
246
|
+
- `- items.paid_type: enum value [prePaid]`
|
|
247
|
+
- **DeleteHost**
|
|
248
|
+
- 响应参数变更
|
|
249
|
+
- `- paid_type: enum value [prePaid]`
|
|
250
|
+
|
|
1
251
|
# 3.1.30 2023-03-16
|
|
2
252
|
|
|
3
253
|
### HuaweiCloud SDK CDN
|
package/HcClient.js
CHANGED
|
@@ -62,7 +62,7 @@ var ExceptionUtil_1 = require("./exception/ExceptionUtil");
|
|
|
62
62
|
var logger_1 = require("./logger");
|
|
63
63
|
var SdkStreamResponse_1 = require("./SdkStreamResponse");
|
|
64
64
|
var DefaultHttpClient_1 = require("./http/DefaultHttpClient");
|
|
65
|
-
var HcClient = /** @class */ (function () {
|
|
65
|
+
var HcClient = exports.HcClient = /** @class */ (function () {
|
|
66
66
|
function HcClient(client, clientOptions) {
|
|
67
67
|
this.proxyAgent = '';
|
|
68
68
|
this.httpClient = client;
|
|
@@ -192,4 +192,3 @@ var HcClient = /** @class */ (function () {
|
|
|
192
192
|
HcClient.loggerName = 'HcClient';
|
|
193
193
|
return HcClient;
|
|
194
194
|
}());
|
|
195
|
-
exports.HcClient = HcClient;
|
package/auth/AKSKSigner.js
CHANGED
|
@@ -66,7 +66,7 @@ var crypto = __importStar(require("crypto"));
|
|
|
66
66
|
var moment_1 = __importDefault(require("moment"));
|
|
67
67
|
var url_1 = __importDefault(require("url"));
|
|
68
68
|
var _ = __importStar(require("lodash"));
|
|
69
|
-
var AKSKSigner = /** @class */ (function () {
|
|
69
|
+
var AKSKSigner = exports.AKSKSigner = /** @class */ (function () {
|
|
70
70
|
function AKSKSigner() {
|
|
71
71
|
}
|
|
72
72
|
AKSKSigner.hexTable = function () {
|
|
@@ -272,7 +272,6 @@ var AKSKSigner = /** @class */ (function () {
|
|
|
272
272
|
};
|
|
273
273
|
return AKSKSigner;
|
|
274
274
|
}());
|
|
275
|
-
exports.AKSKSigner = AKSKSigner;
|
|
276
275
|
/**
|
|
277
276
|
*
|
|
278
277
|
* @export
|
package/auth/BasicCredentials.js
CHANGED
|
@@ -153,7 +153,7 @@ var BasicCredentials = /** @class */ (function () {
|
|
|
153
153
|
this.projectId = cachedProjectId;
|
|
154
154
|
return [2 /*return*/, this];
|
|
155
155
|
}
|
|
156
|
-
return [4 /*yield*/, new iam_service_1.IamService(hcClient, this.iamEndpoint).
|
|
156
|
+
return [4 /*yield*/, new iam_service_1.IamService(hcClient, this.iamEndpoint).getProjectId(region)];
|
|
157
157
|
case 1:
|
|
158
158
|
projectId = _a.sent();
|
|
159
159
|
authCacheInstance.putCache(akWithName, projectId);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ServiceResponseException } from "./ServiceResponseException";
|
|
2
2
|
export declare class ClientRequestException extends ServiceResponseException {
|
|
3
|
-
constructor(httpStatusCode: string | number, errorMsg
|
|
3
|
+
constructor(httpStatusCode: string | number, errorMsg?: string, errorCode?: string, requestId?: string, encodedAuthorizationMessage?: string);
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2023 Huawei Technologies Co.,Ltd.
|
|
4
4
|
*
|
|
5
5
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
6
6
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -39,9 +39,9 @@ exports.ClientRequestException = void 0;
|
|
|
39
39
|
var ServiceResponseException_1 = require("./ServiceResponseException");
|
|
40
40
|
var ClientRequestException = /** @class */ (function (_super) {
|
|
41
41
|
__extends(ClientRequestException, _super);
|
|
42
|
-
function ClientRequestException(httpStatusCode, errorMsg, errorCode, requestId) {
|
|
43
|
-
var _this = _super.call(this, httpStatusCode, errorMsg, errorCode, requestId) || this;
|
|
44
|
-
_this.name =
|
|
42
|
+
function ClientRequestException(httpStatusCode, errorMsg, errorCode, requestId, encodedAuthorizationMessage) {
|
|
43
|
+
var _this = _super.call(this, httpStatusCode, errorMsg, errorCode, requestId, encodedAuthorizationMessage) || this;
|
|
44
|
+
_this.name = "ClientRequestException";
|
|
45
45
|
return _this;
|
|
46
46
|
}
|
|
47
47
|
return ClientRequestException;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
data?:
|
|
1
|
+
export type ExceptionResponse = {
|
|
2
|
+
data?: {
|
|
3
|
+
error?: {
|
|
4
|
+
code: string;
|
|
5
|
+
message: string;
|
|
6
|
+
encoded_authorization_message?: string;
|
|
7
|
+
};
|
|
8
|
+
error_code?: string;
|
|
9
|
+
error_msg?: string;
|
|
10
|
+
encoded_authorization_message?: string;
|
|
11
|
+
};
|
|
3
12
|
status?: number;
|
|
13
|
+
message?: string;
|
|
14
|
+
requestId?: string;
|
|
4
15
|
headers?: any;
|
|
5
16
|
request?: any;
|
|
6
|
-
message?: string;
|
|
7
17
|
config?: any;
|
|
8
18
|
originalError?: any;
|
|
9
|
-
|
|
10
|
-
}
|
|
19
|
+
};
|
|
@@ -1,22 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2020 Huawei Technologies Co.,Ltd.
|
|
4
|
-
*
|
|
5
|
-
* Licensed to the Apache Software Foundation (ASF) under one
|
|
6
|
-
* or more contributor license agreements. See the NOTICE file
|
|
7
|
-
* distributed with this work for additional information
|
|
8
|
-
* regarding copyright ownership. The ASF licenses this file
|
|
9
|
-
* to you under the Apache License, Version 2.0 (the
|
|
10
|
-
* "License"); you may not use this file except in compliance
|
|
11
|
-
* with the License. You may obtain a copy of the License at
|
|
12
|
-
*
|
|
13
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
-
*
|
|
15
|
-
* Unless required by applicable law or agreed to in writing,
|
|
16
|
-
* software distributed under the License is distributed on an
|
|
17
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
18
|
-
* KIND, either express or implied. See the License for the
|
|
19
|
-
* specific language governing permissions and limitations
|
|
20
|
-
* under the License.
|
|
21
|
-
*/
|
|
22
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2023 Huawei Technologies Co.,Ltd.
|
|
4
4
|
*
|
|
5
5
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
6
6
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -30,19 +30,20 @@ var ExceptionUtil = /** @class */ (function () {
|
|
|
30
30
|
ExceptionUtil.generalException = function (exception) {
|
|
31
31
|
var _a, _b, _c, _d;
|
|
32
32
|
var _e = exception.data, data = _e === void 0 ? {} : _e, status = exception.status, message = exception.message, requestId = exception.requestId;
|
|
33
|
-
var error = data.error, error_code = data.error_code, error_msg = data.error_msg;
|
|
34
|
-
var errorCode = (
|
|
35
|
-
var errorMsg = (
|
|
33
|
+
var error = data.error, error_code = data.error_code, error_msg = data.error_msg, encoded_authorization_message = data.encoded_authorization_message;
|
|
34
|
+
var errorCode = (_a = error === null || error === void 0 ? void 0 : error.code) !== null && _a !== void 0 ? _a : error_code;
|
|
35
|
+
var errorMsg = (_c = (_b = error === null || error === void 0 ? void 0 : error.message) !== null && _b !== void 0 ? _b : error_msg) !== null && _c !== void 0 ? _c : message;
|
|
36
|
+
var encodedAuthorizationMessage = (_d = error === null || error === void 0 ? void 0 : error.encoded_authorization_message) !== null && _d !== void 0 ? _d : encoded_authorization_message;
|
|
36
37
|
var httpStatusCode = status;
|
|
37
38
|
if (httpStatusCode) {
|
|
38
39
|
if (isClientError(httpStatusCode)) {
|
|
39
|
-
return new ClientRequestException_1.ClientRequestException(httpStatusCode, errorMsg, errorCode, requestId);
|
|
40
|
+
return new ClientRequestException_1.ClientRequestException(httpStatusCode, errorMsg, errorCode, requestId, encodedAuthorizationMessage);
|
|
40
41
|
}
|
|
41
42
|
else if (isServerError(httpStatusCode)) {
|
|
42
|
-
return new ServerResponseException_1.ServerResponseException(httpStatusCode, errorMsg, errorCode, requestId);
|
|
43
|
+
return new ServerResponseException_1.ServerResponseException(httpStatusCode, errorMsg, errorCode, requestId, encodedAuthorizationMessage);
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
|
-
return new ServiceResponseException_1.ServiceResponseException(httpStatusCode, errorMsg, errorCode, requestId);
|
|
46
|
+
return new ServiceResponseException_1.ServiceResponseException(httpStatusCode, errorMsg, errorCode, requestId, encodedAuthorizationMessage);
|
|
46
47
|
};
|
|
47
48
|
return ExceptionUtil;
|
|
48
49
|
}());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ServiceResponseException } from "./ServiceResponseException";
|
|
2
2
|
export declare class ServerResponseException extends ServiceResponseException {
|
|
3
|
-
constructor(httpStatusCode: string | number, errorMsg
|
|
3
|
+
constructor(httpStatusCode: string | number, errorMsg?: string, errorCode?: string, requestId?: string, encodedAuthorizationMessage?: string);
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2023 Huawei Technologies Co.,Ltd.
|
|
4
4
|
*
|
|
5
5
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
6
6
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -39,9 +39,9 @@ exports.ServerResponseException = void 0;
|
|
|
39
39
|
var ServiceResponseException_1 = require("./ServiceResponseException");
|
|
40
40
|
var ServerResponseException = /** @class */ (function (_super) {
|
|
41
41
|
__extends(ServerResponseException, _super);
|
|
42
|
-
function ServerResponseException(httpStatusCode, errorMsg, errorCode, requestId) {
|
|
43
|
-
var _this = _super.call(this, httpStatusCode, errorMsg, errorCode, requestId) || this;
|
|
44
|
-
_this.name =
|
|
42
|
+
function ServerResponseException(httpStatusCode, errorMsg, errorCode, requestId, encodedAuthorizationMessage) {
|
|
43
|
+
var _this = _super.call(this, httpStatusCode, errorMsg, errorCode, requestId, encodedAuthorizationMessage) || this;
|
|
44
|
+
_this.name = "ServerResponseException";
|
|
45
45
|
return _this;
|
|
46
46
|
}
|
|
47
47
|
return ServerResponseException;
|
|
@@ -4,5 +4,6 @@ export declare class ServiceResponseException extends SdkException {
|
|
|
4
4
|
errorMsg?: string;
|
|
5
5
|
errorCode?: string;
|
|
6
6
|
requestId?: string;
|
|
7
|
-
|
|
7
|
+
encodedAuthorizationMessage?: string;
|
|
8
|
+
constructor(httpStatusCode?: string | number, errorMsg?: string, errorCode?: string, requestId?: string, encodedAuthorizationMessage?: string);
|
|
8
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2023 Huawei Technologies Co.,Ltd.
|
|
4
4
|
*
|
|
5
5
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
6
6
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -39,13 +39,14 @@ exports.ServiceResponseException = void 0;
|
|
|
39
39
|
var SdkException_1 = require("./SdkException");
|
|
40
40
|
var ServiceResponseException = /** @class */ (function (_super) {
|
|
41
41
|
__extends(ServiceResponseException, _super);
|
|
42
|
-
function ServiceResponseException(httpStatusCode, errorMsg, errorCode, requestId) {
|
|
42
|
+
function ServiceResponseException(httpStatusCode, errorMsg, errorCode, requestId, encodedAuthorizationMessage) {
|
|
43
43
|
var _this = _super.call(this, errorMsg) || this;
|
|
44
|
-
_this.name =
|
|
44
|
+
_this.name = "ServiceResponseException";
|
|
45
45
|
_this.httpStatusCode = httpStatusCode;
|
|
46
46
|
_this.errorMsg = errorMsg;
|
|
47
47
|
_this.errorCode = errorCode;
|
|
48
48
|
_this.requestId = requestId;
|
|
49
|
+
_this.encodedAuthorizationMessage = encodedAuthorizationMessage;
|
|
49
50
|
return _this;
|
|
50
51
|
}
|
|
51
52
|
return ServiceResponseException;
|
|
@@ -258,6 +258,9 @@ var DefaultHttpClient = /** @class */ (function () {
|
|
|
258
258
|
message: error.message || error.code,
|
|
259
259
|
requestId: (_a = error.response) === null || _a === void 0 ? void 0 : _a.headers['x-request-id'],
|
|
260
260
|
};
|
|
261
|
+
if (error.isAxiosError) {
|
|
262
|
+
transformedResponse.config = error.config;
|
|
263
|
+
}
|
|
261
264
|
return transformedResponse;
|
|
262
265
|
};
|
|
263
266
|
return DefaultHttpClient;
|
|
@@ -5,7 +5,7 @@ import { KeystoneListRegionsResponse } from "../model/KeystoneListRegionsRespons
|
|
|
5
5
|
export declare class IamService {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(hclient: HcClient, iamEndpoint?: string);
|
|
8
|
-
|
|
8
|
+
getProjectId(regionId: string): Promise<string>;
|
|
9
9
|
getDomainId(): Promise<string>;
|
|
10
10
|
private getCreateProjectId;
|
|
11
11
|
private getSupportedRegions;
|
|
@@ -66,7 +66,7 @@ var IamService = /** @class */ (function () {
|
|
|
66
66
|
function IamService(hclient, iamEndpoint) {
|
|
67
67
|
this.client = hclient.overrideEndpoints(iamEndpoint ? [iamEndpoint] : [constant_1.Constants.DEFAULT_IAM_ENDPOINT]);
|
|
68
68
|
}
|
|
69
|
-
IamService.prototype.
|
|
69
|
+
IamService.prototype.getProjectId = function (regionId) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function () {
|
|
71
71
|
var request, projectRes;
|
|
72
72
|
return __generator(this, function (_a) {
|
package/logger/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var LogLevel;
|
|
|
39
39
|
LogLevel["INFO"] = "info";
|
|
40
40
|
LogLevel["WARN"] = "warn";
|
|
41
41
|
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
|
|
42
|
-
var LoggerUtils = /** @class */ (function () {
|
|
42
|
+
var LoggerUtils = exports.LoggerUtils = /** @class */ (function () {
|
|
43
43
|
function LoggerUtils() {
|
|
44
44
|
}
|
|
45
45
|
LoggerUtils.isMoreOrEqualSevere = function (a, b) {
|
|
@@ -54,7 +54,6 @@ var LoggerUtils = /** @class */ (function () {
|
|
|
54
54
|
_a);
|
|
55
55
|
return LoggerUtils;
|
|
56
56
|
}());
|
|
57
|
-
exports.LoggerUtils = LoggerUtils;
|
|
58
57
|
var LocalLogger = /** @class */ (function () {
|
|
59
58
|
function LocalLogger() {
|
|
60
59
|
this.level = LogLevel.INFO;
|
package/package.json
CHANGED
package/LICENSE
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved.
|
|
2
|
-
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
See the License for the specific language governing permissions and
|
|
13
|
-
limitations under the License.
|