egain-api-python 0.2.1__py3-none-any.whl → 0.3.0__py3-none-any.whl
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.
- egain_api_python/_version.py +2 -2
- egain_api_python/aiservices_prompt.py +2 -2
- egain_api_python/export.py +26 -10
- egain_api_python/guidedhelp.py +10 -6
- egain_api_python/import_.py +1322 -110
- egain_api_python/models/__init__.py +127 -9
- egain_api_python/models/addsuggestioncommentop.py +52 -0
- egain_api_python/models/answersresponse.py +5 -5
- egain_api_python/models/articleactivitylink.py +33 -8
- egain_api_python/models/articletype.py +7 -19
- egain_api_python/models/articletypeinfo.py +64 -0
- egain_api_python/models/attachmentforcreatesuggestion.py +2 -2
- egain_api_python/models/bookmarkstatus.py +42 -3
- egain_api_python/models/createcomment.py +20 -0
- egain_api_python/models/createsuggestion.py +24 -11
- egain_api_python/models/createvalidationhookop.py +9 -0
- egain_api_python/models/createvalidationhookversionop.py +34 -0
- egain_api_python/models/datasourcecredentials.py +6 -4
- egain_api_python/models/exportstatusop.py +11 -1
- egain_api_python/models/fileobject.py +74 -0
- egain_api_python/models/getallarticletypesop.py +31 -0
- egain_api_python/models/getvalidationhooksop.py +27 -0
- egain_api_python/models/getvalidationhookversionop.py +36 -0
- egain_api_python/models/getvalidationhookversionsop.py +27 -0
- egain_api_python/models/ghsearchrequest.py +2 -8
- egain_api_python/models/hook.py +35 -0
- egain_api_python/models/hooks.py +15 -0
- egain_api_python/models/hooktypeparam.py +10 -0
- egain_api_python/models/importcontent.py +7 -0
- egain_api_python/models/importstatus.py +9 -2
- egain_api_python/models/knowledgeexport.py +86 -91
- egain_api_python/models/languagecode_parameter.py +0 -1
- egain_api_python/models/languagequeryparameter.py +0 -1
- egain_api_python/models/mandatorylanguagequeryparameter.py +0 -1
- egain_api_python/models/s3config.py +22 -0
- egain_api_python/models/sftpconfig.py +27 -0
- egain_api_python/models/suggestion.py +0 -1
- egain_api_python/models/topicbreadcrumbslist.py +24 -0
- egain_api_python/portal_article.py +210 -4
- egain_api_python/portal_suggestion.py +236 -0
- egain_api_python/portal_topic.py +4 -4
- {egain_api_python-0.2.1.dist-info → egain_api_python-0.3.0.dist-info}/METADATA +10 -3
- {egain_api_python-0.2.1.dist-info → egain_api_python-0.3.0.dist-info}/RECORD +46 -30
- {egain_api_python-0.2.1.dist-info → egain_api_python-0.3.0.dist-info}/WHEEL +1 -1
- {egain_api_python-0.2.1.dist-info → egain_api_python-0.3.0.dist-info}/licenses/LICENSE +0 -0
- {egain_api_python-0.2.1.dist-info → egain_api_python-0.3.0.dist-info}/top_level.txt +0 -0
egain_api_python/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "egain-api-python"
|
|
6
|
-
__version__: str = "0.
|
|
6
|
+
__version__: str = "0.3.0"
|
|
7
7
|
__openapi_doc_version__: str = "4.0.0"
|
|
8
8
|
__gen_version__: str = "2.723.11"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.3.0 2.723.11 4.0.0 egain-api-python"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -69,7 +69,7 @@ class AiservicesPrompt(BaseSDK):
|
|
|
69
69
|
|
|
70
70
|
req = self._build_request(
|
|
71
71
|
method="POST",
|
|
72
|
-
path="/
|
|
72
|
+
path="/prompt/{promptId}/execute",
|
|
73
73
|
base_url=base_url,
|
|
74
74
|
url_variables=url_variables,
|
|
75
75
|
request=request,
|
|
@@ -203,7 +203,7 @@ class AiservicesPrompt(BaseSDK):
|
|
|
203
203
|
|
|
204
204
|
req = self._build_request_async(
|
|
205
205
|
method="POST",
|
|
206
|
-
path="/
|
|
206
|
+
path="/prompt/{promptId}/execute",
|
|
207
207
|
base_url=base_url,
|
|
208
208
|
url_variables=url_variables,
|
|
209
209
|
request=request,
|
egain_api_python/export.py
CHANGED
|
@@ -23,6 +23,7 @@ class Export(BaseSDK):
|
|
|
23
23
|
models.DataDestination, models.DataDestinationTypedDict
|
|
24
24
|
],
|
|
25
25
|
article_categories: Optional[models.ArticleCategories] = "searchable",
|
|
26
|
+
export_unpublished_only: Optional[bool] = False,
|
|
26
27
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
27
28
|
server_url: Optional[str] = None,
|
|
28
29
|
timeout_ms: Optional[int] = None,
|
|
@@ -31,7 +32,7 @@ class Export(BaseSDK):
|
|
|
31
32
|
r"""Export Knowledge
|
|
32
33
|
|
|
33
34
|
## Overview
|
|
34
|
-
The Content Export API initiates a bulk export of the Knowledge Hub to a client-provided Amazon S3 bucket.
|
|
35
|
+
The Content Export API initiates a bulk export of the Knowledge Hub to a client-provided Amazon S3 bucket or SFTP server path.
|
|
35
36
|
It returns a URL with a Job ID to enable tracking the status of this asynchronous operation.
|
|
36
37
|
Each export job can send multiple JSON files, depending on the total number of items to process.
|
|
37
38
|
More than one bulk export can take place, as needed, one per portal.
|
|
@@ -46,9 +47,10 @@ class Export(BaseSDK):
|
|
|
46
47
|
:param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
|
|
47
48
|
:param portal_id: The ID of the portal being accessed.<br><br>A portal ID is composed of a 2-4 letter prefix, followed by a dash and 4-15 digits.
|
|
48
49
|
:param language: The Knowledge Base language in which the content is created.
|
|
49
|
-
:param resource_types: Types of Knowledge Hub resources to export.
|
|
50
|
+
:param resource_types: Types of Knowledge Hub resources to export. Use 'all' to specify all resource types at once. Below are the attributes that are returned for each resource type specified. ##### Portal Resource Type Attributes Portal Attribute Name | Description ------------------------------- | ----------- | id | The ID of the Portal in Readable format. | alternateId | The system-generated ID of the Portal in long format. | name | The name of the Portal. | description | The Portal's description. | departmentId | ID of the department this Portal belongs to. | defaultContentLanguageId | The default ID of the language for the portal content. ##### Topic Resource Type Attributes | Topic Attribute Name | Description | ------------------------------ | ----------- | id | The ID of the Topic in Readable form. | alternateId | The system-generated ID of the Topic in long form. | name | The name of the Topic. | departmentId | ID of the department this Topic belongs to. | modifiedDate | The date when the Topic was last modified on. | topicHomeArticleId | The ID of the Article used as the home page of this Topic. | childCount | Total number of children sub-topis below the current Topic. | subTopicIds | Array with the list of sub-topics (all levels of the topic hierarchy). | parentTopicId | ID of the parent Topic. -1 if it is the root Topic. | imageURL | URL of the inline Topic image. | customAttributes | One or more comma-separated names for Topic custom attributes defined by the user to be returned. ##### Article Resource Type Attributes Export article's attributes returned are aligned with the response of the [Get Article By ID with Editions](../article/getarticlebyidwitheditions) API.
|
|
50
51
|
:param data_destination:
|
|
51
|
-
:param article_categories: Category of articles to return.
|
|
52
|
+
:param article_categories: Category of articles to return. If all is selected, it includes both browsable and searchable articles.
|
|
53
|
+
:param export_unpublished_only: Determines which article version to export. If true, the latest unpublished version will be exported for each article where available, and articles that do not have an unpublished version will be omitted from the export. If this property is false or omitted, the latest published version will be exported for each article where available. Each request exports either all published or all unpublished article versions in a portal; never both.
|
|
52
54
|
:param retries: Override the default retry configuration for this method
|
|
53
55
|
:param server_url: Override the default server URL for this method
|
|
54
56
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -72,6 +74,7 @@ class Export(BaseSDK):
|
|
|
72
74
|
language=utils.get_pydantic_model(
|
|
73
75
|
language, models.KnowledgeExportLanguage
|
|
74
76
|
),
|
|
77
|
+
export_unpublished_only=export_unpublished_only,
|
|
75
78
|
resource_types=resource_types,
|
|
76
79
|
data_destination=utils.get_pydantic_model(
|
|
77
80
|
data_destination, models.DataDestination
|
|
@@ -117,7 +120,7 @@ class Export(BaseSDK):
|
|
|
117
120
|
),
|
|
118
121
|
),
|
|
119
122
|
request=req,
|
|
120
|
-
error_status_codes=["400", "401", "4XX", "500", "5XX"],
|
|
123
|
+
error_status_codes=["400", "401", "403", "404", "406", "4XX", "500", "5XX"],
|
|
121
124
|
retry_config=retry_config,
|
|
122
125
|
)
|
|
123
126
|
|
|
@@ -126,7 +129,9 @@ class Export(BaseSDK):
|
|
|
126
129
|
return models.ExportContentResponse(
|
|
127
130
|
headers=utils.get_response_headers(http_res.headers)
|
|
128
131
|
)
|
|
129
|
-
if utils.match_response(
|
|
132
|
+
if utils.match_response(
|
|
133
|
+
http_res, ["400", "401", "403", "404", "406"], "application/json"
|
|
134
|
+
):
|
|
130
135
|
response_data = unmarshal_json_response(errors.WSErrorCommonData, http_res)
|
|
131
136
|
raise errors.WSErrorCommon(response_data, http_res)
|
|
132
137
|
if utils.match_response(http_res, "500", "application/json"):
|
|
@@ -158,6 +163,7 @@ class Export(BaseSDK):
|
|
|
158
163
|
models.DataDestination, models.DataDestinationTypedDict
|
|
159
164
|
],
|
|
160
165
|
article_categories: Optional[models.ArticleCategories] = "searchable",
|
|
166
|
+
export_unpublished_only: Optional[bool] = False,
|
|
161
167
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
162
168
|
server_url: Optional[str] = None,
|
|
163
169
|
timeout_ms: Optional[int] = None,
|
|
@@ -166,7 +172,7 @@ class Export(BaseSDK):
|
|
|
166
172
|
r"""Export Knowledge
|
|
167
173
|
|
|
168
174
|
## Overview
|
|
169
|
-
The Content Export API initiates a bulk export of the Knowledge Hub to a client-provided Amazon S3 bucket.
|
|
175
|
+
The Content Export API initiates a bulk export of the Knowledge Hub to a client-provided Amazon S3 bucket or SFTP server path.
|
|
170
176
|
It returns a URL with a Job ID to enable tracking the status of this asynchronous operation.
|
|
171
177
|
Each export job can send multiple JSON files, depending on the total number of items to process.
|
|
172
178
|
More than one bulk export can take place, as needed, one per portal.
|
|
@@ -181,9 +187,10 @@ class Export(BaseSDK):
|
|
|
181
187
|
:param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
|
|
182
188
|
:param portal_id: The ID of the portal being accessed.<br><br>A portal ID is composed of a 2-4 letter prefix, followed by a dash and 4-15 digits.
|
|
183
189
|
:param language: The Knowledge Base language in which the content is created.
|
|
184
|
-
:param resource_types: Types of Knowledge Hub resources to export.
|
|
190
|
+
:param resource_types: Types of Knowledge Hub resources to export. Use 'all' to specify all resource types at once. Below are the attributes that are returned for each resource type specified. ##### Portal Resource Type Attributes Portal Attribute Name | Description ------------------------------- | ----------- | id | The ID of the Portal in Readable format. | alternateId | The system-generated ID of the Portal in long format. | name | The name of the Portal. | description | The Portal's description. | departmentId | ID of the department this Portal belongs to. | defaultContentLanguageId | The default ID of the language for the portal content. ##### Topic Resource Type Attributes | Topic Attribute Name | Description | ------------------------------ | ----------- | id | The ID of the Topic in Readable form. | alternateId | The system-generated ID of the Topic in long form. | name | The name of the Topic. | departmentId | ID of the department this Topic belongs to. | modifiedDate | The date when the Topic was last modified on. | topicHomeArticleId | The ID of the Article used as the home page of this Topic. | childCount | Total number of children sub-topis below the current Topic. | subTopicIds | Array with the list of sub-topics (all levels of the topic hierarchy). | parentTopicId | ID of the parent Topic. -1 if it is the root Topic. | imageURL | URL of the inline Topic image. | customAttributes | One or more comma-separated names for Topic custom attributes defined by the user to be returned. ##### Article Resource Type Attributes Export article's attributes returned are aligned with the response of the [Get Article By ID with Editions](../article/getarticlebyidwitheditions) API.
|
|
185
191
|
:param data_destination:
|
|
186
|
-
:param article_categories: Category of articles to return.
|
|
192
|
+
:param article_categories: Category of articles to return. If all is selected, it includes both browsable and searchable articles.
|
|
193
|
+
:param export_unpublished_only: Determines which article version to export. If true, the latest unpublished version will be exported for each article where available, and articles that do not have an unpublished version will be omitted from the export. If this property is false or omitted, the latest published version will be exported for each article where available. Each request exports either all published or all unpublished article versions in a portal; never both.
|
|
187
194
|
:param retries: Override the default retry configuration for this method
|
|
188
195
|
:param server_url: Override the default server URL for this method
|
|
189
196
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -207,6 +214,7 @@ class Export(BaseSDK):
|
|
|
207
214
|
language=utils.get_pydantic_model(
|
|
208
215
|
language, models.KnowledgeExportLanguage
|
|
209
216
|
),
|
|
217
|
+
export_unpublished_only=export_unpublished_only,
|
|
210
218
|
resource_types=resource_types,
|
|
211
219
|
data_destination=utils.get_pydantic_model(
|
|
212
220
|
data_destination, models.DataDestination
|
|
@@ -252,7 +260,7 @@ class Export(BaseSDK):
|
|
|
252
260
|
),
|
|
253
261
|
),
|
|
254
262
|
request=req,
|
|
255
|
-
error_status_codes=["400", "401", "4XX", "500", "5XX"],
|
|
263
|
+
error_status_codes=["400", "401", "403", "404", "406", "4XX", "500", "5XX"],
|
|
256
264
|
retry_config=retry_config,
|
|
257
265
|
)
|
|
258
266
|
|
|
@@ -261,7 +269,9 @@ class Export(BaseSDK):
|
|
|
261
269
|
return models.ExportContentResponse(
|
|
262
270
|
headers=utils.get_response_headers(http_res.headers)
|
|
263
271
|
)
|
|
264
|
-
if utils.match_response(
|
|
272
|
+
if utils.match_response(
|
|
273
|
+
http_res, ["400", "401", "403", "404", "406"], "application/json"
|
|
274
|
+
):
|
|
265
275
|
response_data = unmarshal_json_response(errors.WSErrorCommonData, http_res)
|
|
266
276
|
raise errors.WSErrorCommon(response_data, http_res)
|
|
267
277
|
if utils.match_response(http_res, "500", "application/json"):
|
|
@@ -283,6 +293,7 @@ class Export(BaseSDK):
|
|
|
283
293
|
def export_status(
|
|
284
294
|
self,
|
|
285
295
|
*,
|
|
296
|
+
accept_language: models.AcceptLanguage,
|
|
286
297
|
job_id: str,
|
|
287
298
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
288
299
|
server_url: Optional[str] = None,
|
|
@@ -313,6 +324,7 @@ class Export(BaseSDK):
|
|
|
313
324
|
* This API requires a site license (SKU: EG-CL-RTKA-PT).
|
|
314
325
|
|
|
315
326
|
|
|
327
|
+
:param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
|
|
316
328
|
:param job_id: **Example Usage:** ```bash GET /content/export/7A84B875-6F75-4C7B-B137-0632B62DB0BD/status ```
|
|
317
329
|
:param retries: Override the default retry configuration for this method
|
|
318
330
|
:param server_url: Override the default server URL for this method
|
|
@@ -330,6 +342,7 @@ class Export(BaseSDK):
|
|
|
330
342
|
base_url = self._get_url(base_url, url_variables)
|
|
331
343
|
|
|
332
344
|
request = models.ExportStatusRequest(
|
|
345
|
+
accept_language=accept_language,
|
|
333
346
|
job_id=job_id,
|
|
334
347
|
)
|
|
335
348
|
|
|
@@ -399,6 +412,7 @@ class Export(BaseSDK):
|
|
|
399
412
|
async def export_status_async(
|
|
400
413
|
self,
|
|
401
414
|
*,
|
|
415
|
+
accept_language: models.AcceptLanguage,
|
|
402
416
|
job_id: str,
|
|
403
417
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
404
418
|
server_url: Optional[str] = None,
|
|
@@ -429,6 +443,7 @@ class Export(BaseSDK):
|
|
|
429
443
|
* This API requires a site license (SKU: EG-CL-RTKA-PT).
|
|
430
444
|
|
|
431
445
|
|
|
446
|
+
:param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
|
|
432
447
|
:param job_id: **Example Usage:** ```bash GET /content/export/7A84B875-6F75-4C7B-B137-0632B62DB0BD/status ```
|
|
433
448
|
:param retries: Override the default retry configuration for this method
|
|
434
449
|
:param server_url: Override the default server URL for this method
|
|
@@ -446,6 +461,7 @@ class Export(BaseSDK):
|
|
|
446
461
|
base_url = self._get_url(base_url, url_variables)
|
|
447
462
|
|
|
448
463
|
request = models.ExportStatusRequest(
|
|
464
|
+
accept_language=accept_language,
|
|
449
465
|
job_id=job_id,
|
|
450
466
|
)
|
|
451
467
|
|
egain_api_python/guidedhelp.py
CHANGED
|
@@ -966,7 +966,7 @@ class Guidedhelp(BaseSDK):
|
|
|
966
966
|
:param language: The language that describes the details of a resource. Resources available in different languages may differ from each other.<li>If <code>lang</code> is not passed, then the portal's default language is used.</li>
|
|
967
967
|
:param gh_custom_additional_attributes:
|
|
968
968
|
:param questions: Pre-answered Questions in Guided Help search
|
|
969
|
-
:param profile_id: The ID of the guided help profile
|
|
969
|
+
:param profile_id: The ID of the guided help profile. 1 will always be the **system profile**.
|
|
970
970
|
:param session_variable: Session variables used to give Guided Help additional context.
|
|
971
971
|
:param start_over: Restart the current Guided Help search with the existing context along with session variable context.
|
|
972
972
|
:param use_live_release: Use current live release snapshot of the Casebase otherwise use the authoring release.
|
|
@@ -1143,7 +1143,7 @@ class Guidedhelp(BaseSDK):
|
|
|
1143
1143
|
:param language: The language that describes the details of a resource. Resources available in different languages may differ from each other.<li>If <code>lang</code> is not passed, then the portal's default language is used.</li>
|
|
1144
1144
|
:param gh_custom_additional_attributes:
|
|
1145
1145
|
:param questions: Pre-answered Questions in Guided Help search
|
|
1146
|
-
:param profile_id: The ID of the guided help profile
|
|
1146
|
+
:param profile_id: The ID of the guided help profile. 1 will always be the **system profile**.
|
|
1147
1147
|
:param session_variable: Session variables used to give Guided Help additional context.
|
|
1148
1148
|
:param start_over: Restart the current Guided Help search with the existing context along with session variable context.
|
|
1149
1149
|
:param use_live_release: Use current live release snapshot of the Casebase otherwise use the authoring release.
|
|
@@ -2169,6 +2169,7 @@ class Guidedhelp(BaseSDK):
|
|
|
2169
2169
|
"403",
|
|
2170
2170
|
"404",
|
|
2171
2171
|
"406",
|
|
2172
|
+
"412",
|
|
2172
2173
|
"415",
|
|
2173
2174
|
"4XX",
|
|
2174
2175
|
"500",
|
|
@@ -2181,7 +2182,7 @@ class Guidedhelp(BaseSDK):
|
|
|
2181
2182
|
if utils.match_response(http_res, "201", "*"):
|
|
2182
2183
|
return
|
|
2183
2184
|
if utils.match_response(
|
|
2184
|
-
http_res, ["400", "401", "403", "404", "406"], "application/json"
|
|
2185
|
+
http_res, ["400", "401", "403", "404", "406", "412"], "application/json"
|
|
2185
2186
|
):
|
|
2186
2187
|
response_data = unmarshal_json_response(errors.WSErrorCommonData, http_res)
|
|
2187
2188
|
raise errors.WSErrorCommon(response_data, http_res)
|
|
@@ -2300,6 +2301,7 @@ class Guidedhelp(BaseSDK):
|
|
|
2300
2301
|
"403",
|
|
2301
2302
|
"404",
|
|
2302
2303
|
"406",
|
|
2304
|
+
"412",
|
|
2303
2305
|
"415",
|
|
2304
2306
|
"4XX",
|
|
2305
2307
|
"500",
|
|
@@ -2312,7 +2314,7 @@ class Guidedhelp(BaseSDK):
|
|
|
2312
2314
|
if utils.match_response(http_res, "201", "*"):
|
|
2313
2315
|
return
|
|
2314
2316
|
if utils.match_response(
|
|
2315
|
-
http_res, ["400", "401", "403", "404", "406"], "application/json"
|
|
2317
|
+
http_res, ["400", "401", "403", "404", "406", "412"], "application/json"
|
|
2316
2318
|
):
|
|
2317
2319
|
response_data = unmarshal_json_response(errors.WSErrorCommonData, http_res)
|
|
2318
2320
|
raise errors.WSErrorCommon(response_data, http_res)
|
|
@@ -2431,6 +2433,7 @@ class Guidedhelp(BaseSDK):
|
|
|
2431
2433
|
"403",
|
|
2432
2434
|
"404",
|
|
2433
2435
|
"406",
|
|
2436
|
+
"412",
|
|
2434
2437
|
"415",
|
|
2435
2438
|
"4XX",
|
|
2436
2439
|
"500",
|
|
@@ -2443,7 +2446,7 @@ class Guidedhelp(BaseSDK):
|
|
|
2443
2446
|
if utils.match_response(http_res, "201", "*"):
|
|
2444
2447
|
return
|
|
2445
2448
|
if utils.match_response(
|
|
2446
|
-
http_res, ["400", "401", "403", "404", "406"], "application/json"
|
|
2449
|
+
http_res, ["400", "401", "403", "404", "406", "412"], "application/json"
|
|
2447
2450
|
):
|
|
2448
2451
|
response_data = unmarshal_json_response(errors.WSErrorCommonData, http_res)
|
|
2449
2452
|
raise errors.WSErrorCommon(response_data, http_res)
|
|
@@ -2562,6 +2565,7 @@ class Guidedhelp(BaseSDK):
|
|
|
2562
2565
|
"403",
|
|
2563
2566
|
"404",
|
|
2564
2567
|
"406",
|
|
2568
|
+
"412",
|
|
2565
2569
|
"415",
|
|
2566
2570
|
"4XX",
|
|
2567
2571
|
"500",
|
|
@@ -2574,7 +2578,7 @@ class Guidedhelp(BaseSDK):
|
|
|
2574
2578
|
if utils.match_response(http_res, "201", "*"):
|
|
2575
2579
|
return
|
|
2576
2580
|
if utils.match_response(
|
|
2577
|
-
http_res, ["400", "401", "403", "404", "406"], "application/json"
|
|
2581
|
+
http_res, ["400", "401", "403", "404", "406", "412"], "application/json"
|
|
2578
2582
|
):
|
|
2579
2583
|
response_data = unmarshal_json_response(errors.WSErrorCommonData, http_res)
|
|
2580
2584
|
raise errors.WSErrorCommon(response_data, http_res)
|