huaweicloudsdkosm 3.1.164__py3-none-any.whl → 3.1.165__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.

Potentially problematic release.


This version of huaweicloudsdkosm might be problematic. Click here for more details.

Files changed (69) hide show
  1. huaweicloudsdkosm/v2/__init__.py +0 -60
  2. huaweicloudsdkosm/v2/model/__init__.py +0 -60
  3. huaweicloudsdkosm/v2/osm_async_client.py +45 -1130
  4. huaweicloudsdkosm/v2/osm_client.py +45 -1130
  5. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/METADATA +2 -2
  6. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/RECORD +9 -69
  7. huaweicloudsdkosm/v2/model/answer.py +0 -227
  8. huaweicloudsdkosm/v2/model/answer_detail.py +0 -194
  9. huaweicloudsdkosm/v2/model/answer_info.py +0 -231
  10. huaweicloudsdkosm/v2/model/answer_qa_pair.py +0 -318
  11. huaweicloudsdkosm/v2/model/article.py +0 -347
  12. huaweicloudsdkosm/v2/model/ask_question_req.py +0 -316
  13. huaweicloudsdkosm/v2/model/cbs_flow_entry.py +0 -144
  14. huaweicloudsdkosm/v2/model/create_ask_question_request.py +0 -197
  15. huaweicloudsdkosm/v2/model/create_ask_question_response.py +0 -232
  16. huaweicloudsdkosm/v2/model/create_evaluate_request.py +0 -253
  17. huaweicloudsdkosm/v2/model/create_evaluate_response.py +0 -174
  18. huaweicloudsdkosm/v2/model/create_qa_ask_request.py +0 -197
  19. huaweicloudsdkosm/v2/model/create_qa_ask_response.py +0 -282
  20. huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +0 -226
  21. huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +0 -174
  22. huaweicloudsdkosm/v2/model/create_question_in_session_request.py +0 -225
  23. huaweicloudsdkosm/v2/model/create_question_in_session_response.py +0 -232
  24. huaweicloudsdkosm/v2/model/create_session_request.py +0 -172
  25. huaweicloudsdkosm/v2/model/create_session_response.py +0 -174
  26. huaweicloudsdkosm/v2/model/evaluate_request_req.py +0 -115
  27. huaweicloudsdkosm/v2/model/extend_question.py +0 -144
  28. huaweicloudsdkosm/v2/model/feedback_option.py +0 -144
  29. huaweicloudsdkosm/v2/model/lang_result.py +0 -144
  30. huaweicloudsdkosm/v2/model/list_articles_request.py +0 -226
  31. huaweicloudsdkosm/v2/model/list_articles_response.py +0 -174
  32. huaweicloudsdkosm/v2/model/list_feedback_option_request.py +0 -230
  33. huaweicloudsdkosm/v2/model/list_feedback_option_response.py +0 -174
  34. huaweicloudsdkosm/v2/model/list_notices_request.py +0 -198
  35. huaweicloudsdkosm/v2/model/list_notices_response.py +0 -174
  36. huaweicloudsdkosm/v2/model/list_recommend_words_request.py +0 -260
  37. huaweicloudsdkosm/v2/model/list_recommend_words_response.py +0 -203
  38. huaweicloudsdkosm/v2/model/list_tools_request.py +0 -198
  39. huaweicloudsdkosm/v2/model/list_tools_response.py +0 -174
  40. huaweicloudsdkosm/v2/model/notice.py +0 -199
  41. huaweicloudsdkosm/v2/model/qa_ask_req.py +0 -346
  42. huaweicloudsdkosm/v2/model/qa_feedback_req.py +0 -345
  43. huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +0 -202
  44. huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +0 -198
  45. huaweicloudsdkosm/v2/model/qa_graph_answer.py +0 -202
  46. huaweicloudsdkosm/v2/model/qa_pair.py +0 -289
  47. huaweicloudsdkosm/v2/model/qabot_answer.py +0 -347
  48. huaweicloudsdkosm/v2/model/query_associated_question_req.py +0 -172
  49. huaweicloudsdkosm/v2/model/recommend_word.py +0 -285
  50. huaweicloudsdkosm/v2/model/relation_theme.py +0 -144
  51. huaweicloudsdkosm/v2/model/relevance_qapair.py +0 -173
  52. huaweicloudsdkosm/v2/model/search_articles_req.py +0 -201
  53. huaweicloudsdkosm/v2/model/search_notices_req.py +0 -143
  54. huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +0 -144
  55. huaweicloudsdkosm/v2/model/search_tools_req.py +0 -201
  56. huaweicloudsdkosm/v2/model/session_ask_question_req.py +0 -288
  57. huaweicloudsdkosm/v2/model/show_associated_questions_request.py +0 -197
  58. huaweicloudsdkosm/v2/model/show_associated_questions_response.py +0 -174
  59. huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +0 -200
  60. huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +0 -170
  61. huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +0 -225
  62. huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +0 -174
  63. huaweicloudsdkosm/v2/model/show_theme_request.py +0 -259
  64. huaweicloudsdkosm/v2/model/show_theme_response.py +0 -232
  65. huaweicloudsdkosm/v2/model/simple_qa_pair.py +0 -173
  66. huaweicloudsdkosm/v2/model/tool.py +0 -287
  67. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/LICENSE +0 -0
  68. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/WHEEL +0 -0
  69. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/top_level.txt +0 -0
@@ -325,77 +325,6 @@ class OsmAsyncClient(Client):
325
325
 
326
326
  return http_info
327
327
 
328
- def create_ask_question_async(self, request):
329
- r"""语料提问
330
-
331
- 基于语料的一次问答
332
-
333
- Please refer to HUAWEI cloud API Explorer for details.
334
-
335
-
336
- :param request: Request instance for CreateAskQuestion
337
- :type request: :class:`huaweicloudsdkosm.v2.CreateAskQuestionRequest`
338
- :rtype: :class:`huaweicloudsdkosm.v2.CreateAskQuestionResponse`
339
- """
340
- http_info = self._create_ask_question_http_info(request)
341
- return self._call_api(**http_info)
342
-
343
- def create_ask_question_async_invoker(self, request):
344
- http_info = self._create_ask_question_http_info(request)
345
- return AsyncInvoker(self, http_info)
346
-
347
- def _create_ask_question_http_info(self, request):
348
- http_info = {
349
- "method": "POST",
350
- "resource_path": "/v2/irobot/qapairs/ask",
351
- "request_type": request.__class__.__name__,
352
- "response_type": "CreateAskQuestionResponse"
353
- }
354
-
355
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
356
-
357
- cname = None
358
-
359
- collection_formats = {}
360
-
361
- path_params = {}
362
-
363
- query_params = []
364
-
365
- header_params = {}
366
- if 'x_service_key' in local_var_params:
367
- header_params['x-service-key'] = local_var_params['x_service_key']
368
- if 'x_site' in local_var_params:
369
- header_params['x-site'] = local_var_params['x_site']
370
- if 'x_language' in local_var_params:
371
- header_params['x-language'] = local_var_params['x_language']
372
-
373
- form_params = {}
374
-
375
- body = None
376
- if 'body' in local_var_params:
377
- body = local_var_params['body']
378
- if isinstance(request, SdkStreamRequest):
379
- body = request.get_file_stream()
380
-
381
- response_headers = []
382
-
383
- header_params['Content-Type'] = http_utils.select_header_content_type(
384
- ['application/json'])
385
-
386
- auth_settings = []
387
-
388
- http_info["cname"] = cname
389
- http_info["collection_formats"] = collection_formats
390
- http_info["path_params"] = path_params
391
- http_info["query_params"] = query_params
392
- http_info["header_params"] = header_params
393
- http_info["post_params"] = form_params
394
- http_info["body"] = body
395
- http_info["response_headers"] = response_headers
396
-
397
- return http_info
398
-
399
328
  def create_case_extends_param_async(self, request):
400
329
  r"""提交工单扩展参数
401
330
 
@@ -748,81 +677,6 @@ class OsmAsyncClient(Client):
748
677
 
749
678
  return http_info
750
679
 
751
- def create_evaluate_async(self, request):
752
- r"""问答满意度评价
753
-
754
- 一次问答完毕后, 针对这一次问答提交满意度评价
755
-
756
- Please refer to HUAWEI cloud API Explorer for details.
757
-
758
-
759
- :param request: Request instance for CreateEvaluate
760
- :type request: :class:`huaweicloudsdkosm.v2.CreateEvaluateRequest`
761
- :rtype: :class:`huaweicloudsdkosm.v2.CreateEvaluateResponse`
762
- """
763
- http_info = self._create_evaluate_http_info(request)
764
- return self._call_api(**http_info)
765
-
766
- def create_evaluate_async_invoker(self, request):
767
- http_info = self._create_evaluate_http_info(request)
768
- return AsyncInvoker(self, http_info)
769
-
770
- def _create_evaluate_http_info(self, request):
771
- http_info = {
772
- "method": "POST",
773
- "resource_path": "/v2/irobot/sessions/{session_id}/{request_id}/evaluate",
774
- "request_type": request.__class__.__name__,
775
- "response_type": "CreateEvaluateResponse"
776
- }
777
-
778
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
779
-
780
- cname = None
781
-
782
- collection_formats = {}
783
-
784
- path_params = {}
785
- if 'session_id' in local_var_params:
786
- path_params['session_id'] = local_var_params['session_id']
787
- if 'request_id' in local_var_params:
788
- path_params['request_id'] = local_var_params['request_id']
789
-
790
- query_params = []
791
-
792
- header_params = {}
793
- if 'x_service_key' in local_var_params:
794
- header_params['x-service-key'] = local_var_params['x_service_key']
795
- if 'x_site' in local_var_params:
796
- header_params['x-site'] = local_var_params['x_site']
797
- if 'x_language' in local_var_params:
798
- header_params['x-language'] = local_var_params['x_language']
799
-
800
- form_params = {}
801
-
802
- body = None
803
- if 'body' in local_var_params:
804
- body = local_var_params['body']
805
- if isinstance(request, SdkStreamRequest):
806
- body = request.get_file_stream()
807
-
808
- response_headers = []
809
-
810
- header_params['Content-Type'] = http_utils.select_header_content_type(
811
- ['application/json'])
812
-
813
- auth_settings = []
814
-
815
- http_info["cname"] = cname
816
- http_info["collection_formats"] = collection_formats
817
- http_info["path_params"] = path_params
818
- http_info["query_params"] = query_params
819
- http_info["header_params"] = header_params
820
- http_info["post_params"] = form_params
821
- http_info["body"] = body
822
- http_info["response_headers"] = response_headers
823
-
824
- return http_info
825
-
826
680
  def create_feedback_async(self, request):
827
681
  r"""创建举报反馈
828
682
 
@@ -1103,223 +957,6 @@ class OsmAsyncClient(Client):
1103
957
 
1104
958
  return http_info
1105
959
 
1106
- def create_qa_ask_async(self, request):
1107
- r"""新问答接口
1108
-
1109
- 支持多轮流程问答接口
1110
-
1111
- Please refer to HUAWEI cloud API Explorer for details.
1112
-
1113
-
1114
- :param request: Request instance for CreateQaAsk
1115
- :type request: :class:`huaweicloudsdkosm.v2.CreateQaAskRequest`
1116
- :rtype: :class:`huaweicloudsdkosm.v2.CreateQaAskResponse`
1117
- """
1118
- http_info = self._create_qa_ask_http_info(request)
1119
- return self._call_api(**http_info)
1120
-
1121
- def create_qa_ask_async_invoker(self, request):
1122
- http_info = self._create_qa_ask_http_info(request)
1123
- return AsyncInvoker(self, http_info)
1124
-
1125
- def _create_qa_ask_http_info(self, request):
1126
- http_info = {
1127
- "method": "POST",
1128
- "resource_path": "/v2/irobot/ask",
1129
- "request_type": request.__class__.__name__,
1130
- "response_type": "CreateQaAskResponse"
1131
- }
1132
-
1133
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1134
-
1135
- cname = None
1136
-
1137
- collection_formats = {}
1138
-
1139
- path_params = {}
1140
-
1141
- query_params = []
1142
-
1143
- header_params = {}
1144
- if 'x_service_key' in local_var_params:
1145
- header_params['x-service-key'] = local_var_params['x_service_key']
1146
- if 'x_site' in local_var_params:
1147
- header_params['x-site'] = local_var_params['x_site']
1148
- if 'x_language' in local_var_params:
1149
- header_params['x-language'] = local_var_params['x_language']
1150
-
1151
- form_params = {}
1152
-
1153
- body = None
1154
- if 'body' in local_var_params:
1155
- body = local_var_params['body']
1156
- if isinstance(request, SdkStreamRequest):
1157
- body = request.get_file_stream()
1158
-
1159
- response_headers = []
1160
-
1161
- header_params['Content-Type'] = http_utils.select_header_content_type(
1162
- ['application/json'])
1163
-
1164
- auth_settings = []
1165
-
1166
- http_info["cname"] = cname
1167
- http_info["collection_formats"] = collection_formats
1168
- http_info["path_params"] = path_params
1169
- http_info["query_params"] = query_params
1170
- http_info["header_params"] = header_params
1171
- http_info["post_params"] = form_params
1172
- http_info["body"] = body
1173
- http_info["response_headers"] = response_headers
1174
-
1175
- return http_info
1176
-
1177
- def create_qa_feedbacks_async(self, request):
1178
- r"""反馈评价
1179
-
1180
- 提交/取消反馈评价
1181
-
1182
- Please refer to HUAWEI cloud API Explorer for details.
1183
-
1184
-
1185
- :param request: Request instance for CreateQaFeedbacks
1186
- :type request: :class:`huaweicloudsdkosm.v2.CreateQaFeedbacksRequest`
1187
- :rtype: :class:`huaweicloudsdkosm.v2.CreateQaFeedbacksResponse`
1188
- """
1189
- http_info = self._create_qa_feedbacks_http_info(request)
1190
- return self._call_api(**http_info)
1191
-
1192
- def create_qa_feedbacks_async_invoker(self, request):
1193
- http_info = self._create_qa_feedbacks_http_info(request)
1194
- return AsyncInvoker(self, http_info)
1195
-
1196
- def _create_qa_feedbacks_http_info(self, request):
1197
- http_info = {
1198
- "method": "POST",
1199
- "resource_path": "/v2/irobot/feedbacks",
1200
- "request_type": request.__class__.__name__,
1201
- "response_type": "CreateQaFeedbacksResponse"
1202
- }
1203
-
1204
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1205
-
1206
- cname = None
1207
-
1208
- collection_formats = {}
1209
-
1210
- path_params = {}
1211
-
1212
- query_params = []
1213
- if 'feedback_type' in local_var_params:
1214
- query_params.append(('feedback_type', local_var_params['feedback_type']))
1215
-
1216
- header_params = {}
1217
- if 'x_service_key' in local_var_params:
1218
- header_params['x-service-key'] = local_var_params['x_service_key']
1219
- if 'x_site' in local_var_params:
1220
- header_params['x-site'] = local_var_params['x_site']
1221
- if 'x_language' in local_var_params:
1222
- header_params['x-language'] = local_var_params['x_language']
1223
-
1224
- form_params = {}
1225
-
1226
- body = None
1227
- if 'body' in local_var_params:
1228
- body = local_var_params['body']
1229
- if isinstance(request, SdkStreamRequest):
1230
- body = request.get_file_stream()
1231
-
1232
- response_headers = []
1233
-
1234
- header_params['Content-Type'] = http_utils.select_header_content_type(
1235
- ['application/json'])
1236
-
1237
- auth_settings = []
1238
-
1239
- http_info["cname"] = cname
1240
- http_info["collection_formats"] = collection_formats
1241
- http_info["path_params"] = path_params
1242
- http_info["query_params"] = query_params
1243
- http_info["header_params"] = header_params
1244
- http_info["post_params"] = form_params
1245
- http_info["body"] = body
1246
- http_info["response_headers"] = response_headers
1247
-
1248
- return http_info
1249
-
1250
- def create_question_in_session_async(self, request):
1251
- r"""提问(在制定的会话中)
1252
-
1253
- 提问(在制定的会话中)
1254
-
1255
- Please refer to HUAWEI cloud API Explorer for details.
1256
-
1257
-
1258
- :param request: Request instance for CreateQuestionInSession
1259
- :type request: :class:`huaweicloudsdkosm.v2.CreateQuestionInSessionRequest`
1260
- :rtype: :class:`huaweicloudsdkosm.v2.CreateQuestionInSessionResponse`
1261
- """
1262
- http_info = self._create_question_in_session_http_info(request)
1263
- return self._call_api(**http_info)
1264
-
1265
- def create_question_in_session_async_invoker(self, request):
1266
- http_info = self._create_question_in_session_http_info(request)
1267
- return AsyncInvoker(self, http_info)
1268
-
1269
- def _create_question_in_session_http_info(self, request):
1270
- http_info = {
1271
- "method": "POST",
1272
- "resource_path": "/v2/irobot/sessions/{session_id}/ask",
1273
- "request_type": request.__class__.__name__,
1274
- "response_type": "CreateQuestionInSessionResponse"
1275
- }
1276
-
1277
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1278
-
1279
- cname = None
1280
-
1281
- collection_formats = {}
1282
-
1283
- path_params = {}
1284
- if 'session_id' in local_var_params:
1285
- path_params['session_id'] = local_var_params['session_id']
1286
-
1287
- query_params = []
1288
-
1289
- header_params = {}
1290
- if 'x_service_key' in local_var_params:
1291
- header_params['x-service-key'] = local_var_params['x_service_key']
1292
- if 'x_site' in local_var_params:
1293
- header_params['x-site'] = local_var_params['x_site']
1294
- if 'x_language' in local_var_params:
1295
- header_params['x-language'] = local_var_params['x_language']
1296
-
1297
- form_params = {}
1298
-
1299
- body = None
1300
- if 'body' in local_var_params:
1301
- body = local_var_params['body']
1302
- if isinstance(request, SdkStreamRequest):
1303
- body = request.get_file_stream()
1304
-
1305
- response_headers = []
1306
-
1307
- header_params['Content-Type'] = http_utils.select_header_content_type(
1308
- ['application/json'])
1309
-
1310
- auth_settings = []
1311
-
1312
- http_info["cname"] = cname
1313
- http_info["collection_formats"] = collection_formats
1314
- http_info["path_params"] = path_params
1315
- http_info["query_params"] = query_params
1316
- http_info["header_params"] = header_params
1317
- http_info["post_params"] = form_params
1318
- http_info["body"] = body
1319
- http_info["response_headers"] = response_headers
1320
-
1321
- return http_info
1322
-
1323
960
  def create_relations_async(self, request):
1324
961
  r"""创建关联
1325
962
 
@@ -1466,75 +1103,6 @@ class OsmAsyncClient(Client):
1466
1103
 
1467
1104
  return http_info
1468
1105
 
1469
- def create_session_async(self, request):
1470
- r"""创建问答会话
1471
-
1472
- 用于创建问答会话, 创建会话后可开始问答
1473
-
1474
- Please refer to HUAWEI cloud API Explorer for details.
1475
-
1476
-
1477
- :param request: Request instance for CreateSession
1478
- :type request: :class:`huaweicloudsdkosm.v2.CreateSessionRequest`
1479
- :rtype: :class:`huaweicloudsdkosm.v2.CreateSessionResponse`
1480
- """
1481
- http_info = self._create_session_http_info(request)
1482
- return self._call_api(**http_info)
1483
-
1484
- def create_session_async_invoker(self, request):
1485
- http_info = self._create_session_http_info(request)
1486
- return AsyncInvoker(self, http_info)
1487
-
1488
- def _create_session_http_info(self, request):
1489
- http_info = {
1490
- "method": "POST",
1491
- "resource_path": "/v2/irobot/sessions",
1492
- "request_type": request.__class__.__name__,
1493
- "response_type": "CreateSessionResponse"
1494
- }
1495
-
1496
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1497
-
1498
- cname = None
1499
-
1500
- collection_formats = {}
1501
-
1502
- path_params = {}
1503
-
1504
- query_params = []
1505
-
1506
- header_params = {}
1507
- if 'x_service_key' in local_var_params:
1508
- header_params['x-service-key'] = local_var_params['x_service_key']
1509
- if 'x_site' in local_var_params:
1510
- header_params['x-site'] = local_var_params['x_site']
1511
- if 'x_language' in local_var_params:
1512
- header_params['x-language'] = local_var_params['x_language']
1513
-
1514
- form_params = {}
1515
-
1516
- body = None
1517
- if isinstance(request, SdkStreamRequest):
1518
- body = request.get_file_stream()
1519
-
1520
- response_headers = []
1521
-
1522
- header_params['Content-Type'] = http_utils.select_header_content_type(
1523
- ['application/json'])
1524
-
1525
- auth_settings = []
1526
-
1527
- http_info["cname"] = cname
1528
- http_info["collection_formats"] = collection_formats
1529
- http_info["path_params"] = path_params
1530
- http_info["query_params"] = query_params
1531
- http_info["header_params"] = header_params
1532
- http_info["post_params"] = form_params
1533
- http_info["body"] = body
1534
- http_info["response_headers"] = response_headers
1535
-
1536
- return http_info
1537
-
1538
1106
  def delete_accessories_async(self, request):
1539
1107
  r"""删除附件
1540
1108
 
@@ -2212,97 +1780,28 @@ class OsmAsyncClient(Client):
2212
1780
  def list_area_codes_async(self, request):
2213
1781
  r"""查询国家码
2214
1782
 
2215
- 查询国家码,用于提交工单页面填写联系方式使用
2216
-
2217
- Please refer to HUAWEI cloud API Explorer for details.
2218
-
2219
-
2220
- :param request: Request instance for ListAreaCodes
2221
- :type request: :class:`huaweicloudsdkosm.v2.ListAreaCodesRequest`
2222
- :rtype: :class:`huaweicloudsdkosm.v2.ListAreaCodesResponse`
2223
- """
2224
- http_info = self._list_area_codes_http_info(request)
2225
- return self._call_api(**http_info)
2226
-
2227
- def list_area_codes_async_invoker(self, request):
2228
- http_info = self._list_area_codes_http_info(request)
2229
- return AsyncInvoker(self, http_info)
2230
-
2231
- def _list_area_codes_http_info(self, request):
2232
- http_info = {
2233
- "method": "GET",
2234
- "resource_path": "/v2/servicerequest/config/area-codes",
2235
- "request_type": request.__class__.__name__,
2236
- "response_type": "ListAreaCodesResponse"
2237
- }
2238
-
2239
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2240
-
2241
- cname = None
2242
-
2243
- collection_formats = {}
2244
-
2245
- path_params = {}
2246
-
2247
- query_params = []
2248
-
2249
- header_params = {}
2250
- if 'x_site' in local_var_params:
2251
- header_params['X-Site'] = local_var_params['x_site']
2252
- if 'x_language' in local_var_params:
2253
- header_params['X-Language'] = local_var_params['x_language']
2254
- if 'x_time_zone' in local_var_params:
2255
- header_params['X-Time-Zone'] = local_var_params['x_time_zone']
2256
-
2257
- form_params = {}
2258
-
2259
- body = None
2260
- if isinstance(request, SdkStreamRequest):
2261
- body = request.get_file_stream()
2262
-
2263
- response_headers = []
2264
-
2265
- header_params['Content-Type'] = http_utils.select_header_content_type(
2266
- ['application/json'])
2267
-
2268
- auth_settings = []
2269
-
2270
- http_info["cname"] = cname
2271
- http_info["collection_formats"] = collection_formats
2272
- http_info["path_params"] = path_params
2273
- http_info["query_params"] = query_params
2274
- http_info["header_params"] = header_params
2275
- http_info["post_params"] = form_params
2276
- http_info["body"] = body
2277
- http_info["response_headers"] = response_headers
2278
-
2279
- return http_info
2280
-
2281
- def list_articles_async(self, request):
2282
- r"""查询案例
2283
-
2284
- 查询满足指定条件的案例列表
1783
+ 查询国家码,用于提交工单页面填写联系方式使用
2285
1784
 
2286
1785
  Please refer to HUAWEI cloud API Explorer for details.
2287
1786
 
2288
1787
 
2289
- :param request: Request instance for ListArticles
2290
- :type request: :class:`huaweicloudsdkosm.v2.ListArticlesRequest`
2291
- :rtype: :class:`huaweicloudsdkosm.v2.ListArticlesResponse`
1788
+ :param request: Request instance for ListAreaCodes
1789
+ :type request: :class:`huaweicloudsdkosm.v2.ListAreaCodesRequest`
1790
+ :rtype: :class:`huaweicloudsdkosm.v2.ListAreaCodesResponse`
2292
1791
  """
2293
- http_info = self._list_articles_http_info(request)
1792
+ http_info = self._list_area_codes_http_info(request)
2294
1793
  return self._call_api(**http_info)
2295
1794
 
2296
- def list_articles_async_invoker(self, request):
2297
- http_info = self._list_articles_http_info(request)
1795
+ def list_area_codes_async_invoker(self, request):
1796
+ http_info = self._list_area_codes_http_info(request)
2298
1797
  return AsyncInvoker(self, http_info)
2299
1798
 
2300
- def _list_articles_http_info(self, request):
1799
+ def _list_area_codes_http_info(self, request):
2301
1800
  http_info = {
2302
- "method": "POST",
2303
- "resource_path": "/v2/irobot/articles/search",
1801
+ "method": "GET",
1802
+ "resource_path": "/v2/servicerequest/config/area-codes",
2304
1803
  "request_type": request.__class__.__name__,
2305
- "response_type": "ListArticlesResponse"
1804
+ "response_type": "ListAreaCodesResponse"
2306
1805
  }
2307
1806
 
2308
1807
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2314,22 +1813,18 @@ class OsmAsyncClient(Client):
2314
1813
  path_params = {}
2315
1814
 
2316
1815
  query_params = []
2317
- if 'search_type' in local_var_params:
2318
- query_params.append(('search_type', local_var_params['search_type']))
2319
1816
 
2320
1817
  header_params = {}
2321
- if 'x_service_key' in local_var_params:
2322
- header_params['x-service-key'] = local_var_params['x_service_key']
2323
1818
  if 'x_site' in local_var_params:
2324
- header_params['x-site'] = local_var_params['x_site']
1819
+ header_params['X-Site'] = local_var_params['x_site']
2325
1820
  if 'x_language' in local_var_params:
2326
- header_params['x-language'] = local_var_params['x_language']
1821
+ header_params['X-Language'] = local_var_params['x_language']
1822
+ if 'x_time_zone' in local_var_params:
1823
+ header_params['X-Time-Zone'] = local_var_params['x_time_zone']
2327
1824
 
2328
1825
  form_params = {}
2329
1826
 
2330
1827
  body = None
2331
- if 'body' in local_var_params:
2332
- body = local_var_params['body']
2333
1828
  if isinstance(request, SdkStreamRequest):
2334
1829
  body = request.get_file_stream()
2335
1830
 
@@ -3509,79 +3004,6 @@ class OsmAsyncClient(Client):
3509
3004
 
3510
3005
  return http_info
3511
3006
 
3512
- def list_feedback_option_async(self, request):
3513
- r"""查询反馈选项
3514
-
3515
- 查询符合条件的反馈选项
3516
-
3517
- Please refer to HUAWEI cloud API Explorer for details.
3518
-
3519
-
3520
- :param request: Request instance for ListFeedbackOption
3521
- :type request: :class:`huaweicloudsdkosm.v2.ListFeedbackOptionRequest`
3522
- :rtype: :class:`huaweicloudsdkosm.v2.ListFeedbackOptionResponse`
3523
- """
3524
- http_info = self._list_feedback_option_http_info(request)
3525
- return self._call_api(**http_info)
3526
-
3527
- def list_feedback_option_async_invoker(self, request):
3528
- http_info = self._list_feedback_option_http_info(request)
3529
- return AsyncInvoker(self, http_info)
3530
-
3531
- def _list_feedback_option_http_info(self, request):
3532
- http_info = {
3533
- "method": "GET",
3534
- "resource_path": "/v2/irobot/feedbacks/options",
3535
- "request_type": request.__class__.__name__,
3536
- "response_type": "ListFeedbackOptionResponse"
3537
- }
3538
-
3539
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3540
-
3541
- cname = None
3542
-
3543
- collection_formats = {}
3544
-
3545
- path_params = {}
3546
-
3547
- query_params = []
3548
- if 'status' in local_var_params:
3549
- query_params.append(('status', local_var_params['status']))
3550
- if 'feedback_source' in local_var_params:
3551
- query_params.append(('feedback_source', local_var_params['feedback_source']))
3552
-
3553
- header_params = {}
3554
- if 'x_service_key' in local_var_params:
3555
- header_params['x-service-key'] = local_var_params['x_service_key']
3556
- if 'x_site' in local_var_params:
3557
- header_params['x-site'] = local_var_params['x_site']
3558
- if 'x_language' in local_var_params:
3559
- header_params['x-language'] = local_var_params['x_language']
3560
-
3561
- form_params = {}
3562
-
3563
- body = None
3564
- if isinstance(request, SdkStreamRequest):
3565
- body = request.get_file_stream()
3566
-
3567
- response_headers = []
3568
-
3569
- header_params['Content-Type'] = http_utils.select_header_content_type(
3570
- ['application/json'])
3571
-
3572
- auth_settings = []
3573
-
3574
- http_info["cname"] = cname
3575
- http_info["collection_formats"] = collection_formats
3576
- http_info["path_params"] = path_params
3577
- http_info["query_params"] = query_params
3578
- http_info["header_params"] = header_params
3579
- http_info["post_params"] = form_params
3580
- http_info["body"] = body
3581
- http_info["response_headers"] = response_headers
3582
-
3583
- return http_info
3584
-
3585
3007
  def list_has_verified_contacts_async(self, request):
3586
3008
  r"""查询已验证的列表
3587
3009
 
@@ -4140,77 +3562,6 @@ class OsmAsyncClient(Client):
4140
3562
 
4141
3563
  return http_info
4142
3564
 
4143
- def list_notices_async(self, request):
4144
- r"""查询公告
4145
-
4146
- 查询满足指定条件的公告列表
4147
-
4148
- Please refer to HUAWEI cloud API Explorer for details.
4149
-
4150
-
4151
- :param request: Request instance for ListNotices
4152
- :type request: :class:`huaweicloudsdkosm.v2.ListNoticesRequest`
4153
- :rtype: :class:`huaweicloudsdkosm.v2.ListNoticesResponse`
4154
- """
4155
- http_info = self._list_notices_http_info(request)
4156
- return self._call_api(**http_info)
4157
-
4158
- def list_notices_async_invoker(self, request):
4159
- http_info = self._list_notices_http_info(request)
4160
- return AsyncInvoker(self, http_info)
4161
-
4162
- def _list_notices_http_info(self, request):
4163
- http_info = {
4164
- "method": "POST",
4165
- "resource_path": "/v2/irobot/notices/search",
4166
- "request_type": request.__class__.__name__,
4167
- "response_type": "ListNoticesResponse"
4168
- }
4169
-
4170
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4171
-
4172
- cname = None
4173
-
4174
- collection_formats = {}
4175
-
4176
- path_params = {}
4177
-
4178
- query_params = []
4179
-
4180
- header_params = {}
4181
- if 'x_service_key' in local_var_params:
4182
- header_params['x-service-key'] = local_var_params['x_service_key']
4183
- if 'x_site' in local_var_params:
4184
- header_params['x-site'] = local_var_params['x_site']
4185
- if 'x_language' in local_var_params:
4186
- header_params['x-language'] = local_var_params['x_language']
4187
-
4188
- form_params = {}
4189
-
4190
- body = None
4191
- if 'body' in local_var_params:
4192
- body = local_var_params['body']
4193
- if isinstance(request, SdkStreamRequest):
4194
- body = request.get_file_stream()
4195
-
4196
- response_headers = []
4197
-
4198
- header_params['Content-Type'] = http_utils.select_header_content_type(
4199
- ['application/json'])
4200
-
4201
- auth_settings = []
4202
-
4203
- http_info["cname"] = cname
4204
- http_info["collection_formats"] = collection_formats
4205
- http_info["path_params"] = path_params
4206
- http_info["query_params"] = query_params
4207
- http_info["header_params"] = header_params
4208
- http_info["post_params"] = form_params
4209
- http_info["body"] = body
4210
- http_info["response_headers"] = response_headers
4211
-
4212
- return http_info
4213
-
4214
3565
  def list_order_incident_async(self, request):
4215
3566
  r"""工单列表
4216
3567
 
@@ -4521,81 +3872,6 @@ class OsmAsyncClient(Client):
4521
3872
 
4522
3873
  return http_info
4523
3874
 
4524
- def list_recommend_words_async(self, request):
4525
- r"""查询推荐热词
4526
-
4527
- 查询指定条件的推荐热词
4528
-
4529
- Please refer to HUAWEI cloud API Explorer for details.
4530
-
4531
-
4532
- :param request: Request instance for ListRecommendWords
4533
- :type request: :class:`huaweicloudsdkosm.v2.ListRecommendWordsRequest`
4534
- :rtype: :class:`huaweicloudsdkosm.v2.ListRecommendWordsResponse`
4535
- """
4536
- http_info = self._list_recommend_words_http_info(request)
4537
- return self._call_api(**http_info)
4538
-
4539
- def list_recommend_words_async_invoker(self, request):
4540
- http_info = self._list_recommend_words_http_info(request)
4541
- return AsyncInvoker(self, http_info)
4542
-
4543
- def _list_recommend_words_http_info(self, request):
4544
- http_info = {
4545
- "method": "GET",
4546
- "resource_path": "/v2/irobot/recommend-words",
4547
- "request_type": request.__class__.__name__,
4548
- "response_type": "ListRecommendWordsResponse"
4549
- }
4550
-
4551
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4552
-
4553
- cname = None
4554
-
4555
- collection_formats = {}
4556
-
4557
- path_params = {}
4558
-
4559
- query_params = []
4560
- if 'recommend_word_id' in local_var_params:
4561
- query_params.append(('recommend_word_id', local_var_params['recommend_word_id']))
4562
- if 'level_value' in local_var_params:
4563
- query_params.append(('level_value', local_var_params['level_value']))
4564
- if 'theme_name' in local_var_params:
4565
- query_params.append(('theme_name', local_var_params['theme_name']))
4566
-
4567
- header_params = {}
4568
- if 'x_service_key' in local_var_params:
4569
- header_params['x-service-key'] = local_var_params['x_service_key']
4570
- if 'x_site' in local_var_params:
4571
- header_params['x-site'] = local_var_params['x_site']
4572
- if 'x_language' in local_var_params:
4573
- header_params['x-language'] = local_var_params['x_language']
4574
-
4575
- form_params = {}
4576
-
4577
- body = None
4578
- if isinstance(request, SdkStreamRequest):
4579
- body = request.get_file_stream()
4580
-
4581
- response_headers = []
4582
-
4583
- header_params['Content-Type'] = http_utils.select_header_content_type(
4584
- ['application/json'])
4585
-
4586
- auth_settings = []
4587
-
4588
- http_info["cname"] = cname
4589
- http_info["collection_formats"] = collection_formats
4590
- http_info["path_params"] = path_params
4591
- http_info["query_params"] = query_params
4592
- http_info["header_params"] = header_params
4593
- http_info["post_params"] = form_params
4594
- http_info["body"] = body
4595
- http_info["response_headers"] = response_headers
4596
-
4597
- return http_info
4598
-
4599
3875
  def list_regions_async(self, request):
4600
3876
  r"""查询区域列表
4601
3877
 
@@ -4820,89 +4096,16 @@ class OsmAsyncClient(Client):
4820
4096
  http_info = self._list_severities_http_info(request)
4821
4097
  return self._call_api(**http_info)
4822
4098
 
4823
- def list_severities_async_invoker(self, request):
4824
- http_info = self._list_severities_http_info(request)
4825
- return AsyncInvoker(self, http_info)
4826
-
4827
- def _list_severities_http_info(self, request):
4828
- http_info = {
4829
- "method": "GET",
4830
- "resource_path": "/v2/servicerequest/config/severities",
4831
- "request_type": request.__class__.__name__,
4832
- "response_type": "ListSeveritiesResponse"
4833
- }
4834
-
4835
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4836
-
4837
- cname = None
4838
-
4839
- collection_formats = {}
4840
-
4841
- path_params = {}
4842
-
4843
- query_params = []
4844
- if 'product_category_id' in local_var_params:
4845
- query_params.append(('product_category_id', local_var_params['product_category_id']))
4846
- if 'business_type_id' in local_var_params:
4847
- query_params.append(('business_type_id', local_var_params['business_type_id']))
4848
-
4849
- header_params = {}
4850
- if 'x_site' in local_var_params:
4851
- header_params['X-Site'] = local_var_params['x_site']
4852
- if 'x_language' in local_var_params:
4853
- header_params['X-Language'] = local_var_params['x_language']
4854
- if 'x_time_zone' in local_var_params:
4855
- header_params['X-Time-Zone'] = local_var_params['x_time_zone']
4856
-
4857
- form_params = {}
4858
-
4859
- body = None
4860
- if isinstance(request, SdkStreamRequest):
4861
- body = request.get_file_stream()
4862
-
4863
- response_headers = []
4864
-
4865
- header_params['Content-Type'] = http_utils.select_header_content_type(
4866
- ['application/json'])
4867
-
4868
- auth_settings = []
4869
-
4870
- http_info["cname"] = cname
4871
- http_info["collection_formats"] = collection_formats
4872
- http_info["path_params"] = path_params
4873
- http_info["query_params"] = query_params
4874
- http_info["header_params"] = header_params
4875
- http_info["post_params"] = form_params
4876
- http_info["body"] = body
4877
- http_info["response_headers"] = response_headers
4878
-
4879
- return http_info
4880
-
4881
- def list_sub_customers_async(self, request):
4882
- r"""查询子用户信息
4883
-
4884
- 查询子用户信息
4885
-
4886
- Please refer to HUAWEI cloud API Explorer for details.
4887
-
4888
-
4889
- :param request: Request instance for ListSubCustomers
4890
- :type request: :class:`huaweicloudsdkosm.v2.ListSubCustomersRequest`
4891
- :rtype: :class:`huaweicloudsdkosm.v2.ListSubCustomersResponse`
4892
- """
4893
- http_info = self._list_sub_customers_http_info(request)
4894
- return self._call_api(**http_info)
4895
-
4896
- def list_sub_customers_async_invoker(self, request):
4897
- http_info = self._list_sub_customers_http_info(request)
4099
+ def list_severities_async_invoker(self, request):
4100
+ http_info = self._list_severities_http_info(request)
4898
4101
  return AsyncInvoker(self, http_info)
4899
4102
 
4900
- def _list_sub_customers_http_info(self, request):
4103
+ def _list_severities_http_info(self, request):
4901
4104
  http_info = {
4902
4105
  "method": "GET",
4903
- "resource_path": "/v2/servicerequest/customers/sub-customers",
4106
+ "resource_path": "/v2/servicerequest/config/severities",
4904
4107
  "request_type": request.__class__.__name__,
4905
- "response_type": "ListSubCustomersResponse"
4108
+ "response_type": "ListSeveritiesResponse"
4906
4109
  }
4907
4110
 
4908
4111
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4914,10 +4117,10 @@ class OsmAsyncClient(Client):
4914
4117
  path_params = {}
4915
4118
 
4916
4119
  query_params = []
4917
- if 'sub_customer_name' in local_var_params:
4918
- query_params.append(('sub_customer_name', local_var_params['sub_customer_name']))
4919
- if 'sub_customer_id' in local_var_params:
4920
- query_params.append(('sub_customer_id', local_var_params['sub_customer_id']))
4120
+ if 'product_category_id' in local_var_params:
4121
+ query_params.append(('product_category_id', local_var_params['product_category_id']))
4122
+ if 'business_type_id' in local_var_params:
4123
+ query_params.append(('business_type_id', local_var_params['business_type_id']))
4921
4124
 
4922
4125
  header_params = {}
4923
4126
  if 'x_site' in local_var_params:
@@ -4951,31 +4154,31 @@ class OsmAsyncClient(Client):
4951
4154
 
4952
4155
  return http_info
4953
4156
 
4954
- def list_tools_async(self, request):
4955
- r"""查询工具
4157
+ def list_sub_customers_async(self, request):
4158
+ r"""查询子用户信息
4956
4159
 
4957
- 查询满足指定条件的工具列表
4160
+ 查询子用户信息
4958
4161
 
4959
4162
  Please refer to HUAWEI cloud API Explorer for details.
4960
4163
 
4961
4164
 
4962
- :param request: Request instance for ListTools
4963
- :type request: :class:`huaweicloudsdkosm.v2.ListToolsRequest`
4964
- :rtype: :class:`huaweicloudsdkosm.v2.ListToolsResponse`
4165
+ :param request: Request instance for ListSubCustomers
4166
+ :type request: :class:`huaweicloudsdkosm.v2.ListSubCustomersRequest`
4167
+ :rtype: :class:`huaweicloudsdkosm.v2.ListSubCustomersResponse`
4965
4168
  """
4966
- http_info = self._list_tools_http_info(request)
4169
+ http_info = self._list_sub_customers_http_info(request)
4967
4170
  return self._call_api(**http_info)
4968
4171
 
4969
- def list_tools_async_invoker(self, request):
4970
- http_info = self._list_tools_http_info(request)
4172
+ def list_sub_customers_async_invoker(self, request):
4173
+ http_info = self._list_sub_customers_http_info(request)
4971
4174
  return AsyncInvoker(self, http_info)
4972
4175
 
4973
- def _list_tools_http_info(self, request):
4176
+ def _list_sub_customers_http_info(self, request):
4974
4177
  http_info = {
4975
- "method": "POST",
4976
- "resource_path": "/v2/irobot/tools/search",
4178
+ "method": "GET",
4179
+ "resource_path": "/v2/servicerequest/customers/sub-customers",
4977
4180
  "request_type": request.__class__.__name__,
4978
- "response_type": "ListToolsResponse"
4181
+ "response_type": "ListSubCustomersResponse"
4979
4182
  }
4980
4183
 
4981
4184
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4987,20 +4190,22 @@ class OsmAsyncClient(Client):
4987
4190
  path_params = {}
4988
4191
 
4989
4192
  query_params = []
4193
+ if 'sub_customer_name' in local_var_params:
4194
+ query_params.append(('sub_customer_name', local_var_params['sub_customer_name']))
4195
+ if 'sub_customer_id' in local_var_params:
4196
+ query_params.append(('sub_customer_id', local_var_params['sub_customer_id']))
4990
4197
 
4991
4198
  header_params = {}
4992
- if 'x_service_key' in local_var_params:
4993
- header_params['x-service-key'] = local_var_params['x_service_key']
4994
4199
  if 'x_site' in local_var_params:
4995
- header_params['x-site'] = local_var_params['x_site']
4200
+ header_params['X-Site'] = local_var_params['x_site']
4996
4201
  if 'x_language' in local_var_params:
4997
- header_params['x-language'] = local_var_params['x_language']
4202
+ header_params['X-Language'] = local_var_params['x_language']
4203
+ if 'x_time_zone' in local_var_params:
4204
+ header_params['X-Time-Zone'] = local_var_params['x_time_zone']
4998
4205
 
4999
4206
  form_params = {}
5000
4207
 
5001
4208
  body = None
5002
- if 'body' in local_var_params:
5003
- body = local_var_params['body']
5004
4209
  if isinstance(request, SdkStreamRequest):
5005
4210
  body = request.get_file_stream()
5006
4211
 
@@ -5392,77 +4597,6 @@ class OsmAsyncClient(Client):
5392
4597
 
5393
4598
  return http_info
5394
4599
 
5395
- def show_associated_questions_async(self, request):
5396
- r"""查询联想问题
5397
-
5398
- 根据当前输入, 联想相关的问题
5399
-
5400
- Please refer to HUAWEI cloud API Explorer for details.
5401
-
5402
-
5403
- :param request: Request instance for ShowAssociatedQuestions
5404
- :type request: :class:`huaweicloudsdkosm.v2.ShowAssociatedQuestionsRequest`
5405
- :rtype: :class:`huaweicloudsdkosm.v2.ShowAssociatedQuestionsResponse`
5406
- """
5407
- http_info = self._show_associated_questions_http_info(request)
5408
- return self._call_api(**http_info)
5409
-
5410
- def show_associated_questions_async_invoker(self, request):
5411
- http_info = self._show_associated_questions_http_info(request)
5412
- return AsyncInvoker(self, http_info)
5413
-
5414
- def _show_associated_questions_http_info(self, request):
5415
- http_info = {
5416
- "method": "POST",
5417
- "resource_path": "/v2/irobot/qapairs/associate",
5418
- "request_type": request.__class__.__name__,
5419
- "response_type": "ShowAssociatedQuestionsResponse"
5420
- }
5421
-
5422
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5423
-
5424
- cname = None
5425
-
5426
- collection_formats = {}
5427
-
5428
- path_params = {}
5429
-
5430
- query_params = []
5431
-
5432
- header_params = {}
5433
- if 'x_service_key' in local_var_params:
5434
- header_params['x-service-key'] = local_var_params['x_service_key']
5435
- if 'x_site' in local_var_params:
5436
- header_params['x-site'] = local_var_params['x_site']
5437
- if 'x_language' in local_var_params:
5438
- header_params['x-language'] = local_var_params['x_language']
5439
-
5440
- form_params = {}
5441
-
5442
- body = None
5443
- if 'body' in local_var_params:
5444
- body = local_var_params['body']
5445
- if isinstance(request, SdkStreamRequest):
5446
- body = request.get_file_stream()
5447
-
5448
- response_headers = []
5449
-
5450
- header_params['Content-Type'] = http_utils.select_header_content_type(
5451
- ['application/json'])
5452
-
5453
- auth_settings = []
5454
-
5455
- http_info["cname"] = cname
5456
- http_info["collection_formats"] = collection_formats
5457
- http_info["path_params"] = path_params
5458
- http_info["query_params"] = query_params
5459
- http_info["header_params"] = header_params
5460
- http_info["post_params"] = form_params
5461
- http_info["body"] = body
5462
- http_info["response_headers"] = response_headers
5463
-
5464
- return http_info
5465
-
5466
4600
  def show_authorization_detail_async(self, request):
5467
4601
  r"""查询授权详情
5468
4602
 
@@ -6238,150 +5372,6 @@ class OsmAsyncClient(Client):
6238
5372
 
6239
5373
  return http_info
6240
5374
 
6241
- def show_qa_pair_detail_async(self, request):
6242
- r"""查询语料详情
6243
-
6244
- 查询指定语料的详情
6245
-
6246
- Please refer to HUAWEI cloud API Explorer for details.
6247
-
6248
-
6249
- :param request: Request instance for ShowQaPairDetail
6250
- :type request: :class:`huaweicloudsdkosm.v2.ShowQaPairDetailRequest`
6251
- :rtype: :class:`huaweicloudsdkosm.v2.ShowQaPairDetailResponse`
6252
- """
6253
- http_info = self._show_qa_pair_detail_http_info(request)
6254
- return self._call_api(**http_info)
6255
-
6256
- def show_qa_pair_detail_async_invoker(self, request):
6257
- http_info = self._show_qa_pair_detail_http_info(request)
6258
- return AsyncInvoker(self, http_info)
6259
-
6260
- def _show_qa_pair_detail_http_info(self, request):
6261
- http_info = {
6262
- "method": "GET",
6263
- "resource_path": "/v2/irobot/qapairs/{qa_pair_id}",
6264
- "request_type": request.__class__.__name__,
6265
- "response_type": "ShowQaPairDetailResponse"
6266
- }
6267
-
6268
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6269
-
6270
- cname = None
6271
-
6272
- collection_formats = {}
6273
-
6274
- path_params = {}
6275
- if 'qa_pair_id' in local_var_params:
6276
- path_params['qa_pair_id'] = local_var_params['qa_pair_id']
6277
-
6278
- query_params = []
6279
-
6280
- header_params = {}
6281
- if 'x_service_key' in local_var_params:
6282
- header_params['x-service-key'] = local_var_params['x_service_key']
6283
- if 'x_site' in local_var_params:
6284
- header_params['x-site'] = local_var_params['x_site']
6285
- if 'x_language' in local_var_params:
6286
- header_params['x-language'] = local_var_params['x_language']
6287
-
6288
- form_params = {}
6289
-
6290
- body = None
6291
- if isinstance(request, SdkStreamRequest):
6292
- body = request.get_file_stream()
6293
-
6294
- response_headers = []
6295
-
6296
- header_params['Content-Type'] = http_utils.select_header_content_type(
6297
- ['application/json'])
6298
-
6299
- auth_settings = []
6300
-
6301
- http_info["cname"] = cname
6302
- http_info["collection_formats"] = collection_formats
6303
- http_info["path_params"] = path_params
6304
- http_info["query_params"] = query_params
6305
- http_info["header_params"] = header_params
6306
- http_info["post_params"] = form_params
6307
- http_info["body"] = body
6308
- http_info["response_headers"] = response_headers
6309
-
6310
- return http_info
6311
-
6312
- def show_qa_pairs_async(self, request):
6313
- r"""查询语料
6314
-
6315
- 查询满足指定条件的语料列表
6316
-
6317
- Please refer to HUAWEI cloud API Explorer for details.
6318
-
6319
-
6320
- :param request: Request instance for ShowQaPairs
6321
- :type request: :class:`huaweicloudsdkosm.v2.ShowQaPairsRequest`
6322
- :rtype: :class:`huaweicloudsdkosm.v2.ShowQaPairsResponse`
6323
- """
6324
- http_info = self._show_qa_pairs_http_info(request)
6325
- return self._call_api(**http_info)
6326
-
6327
- def show_qa_pairs_async_invoker(self, request):
6328
- http_info = self._show_qa_pairs_http_info(request)
6329
- return AsyncInvoker(self, http_info)
6330
-
6331
- def _show_qa_pairs_http_info(self, request):
6332
- http_info = {
6333
- "method": "POST",
6334
- "resource_path": "/v2/irobot/qapairs/search",
6335
- "request_type": request.__class__.__name__,
6336
- "response_type": "ShowQaPairsResponse"
6337
- }
6338
-
6339
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6340
-
6341
- cname = None
6342
-
6343
- collection_formats = {}
6344
-
6345
- path_params = {}
6346
-
6347
- query_params = []
6348
- if 'search_type' in local_var_params:
6349
- query_params.append(('search_type', local_var_params['search_type']))
6350
-
6351
- header_params = {}
6352
- if 'x_service_key' in local_var_params:
6353
- header_params['x-service-key'] = local_var_params['x_service_key']
6354
- if 'x_site' in local_var_params:
6355
- header_params['x-site'] = local_var_params['x_site']
6356
- if 'x_language' in local_var_params:
6357
- header_params['x-language'] = local_var_params['x_language']
6358
-
6359
- form_params = {}
6360
-
6361
- body = None
6362
- if 'body' in local_var_params:
6363
- body = local_var_params['body']
6364
- if isinstance(request, SdkStreamRequest):
6365
- body = request.get_file_stream()
6366
-
6367
- response_headers = []
6368
-
6369
- header_params['Content-Type'] = http_utils.select_header_content_type(
6370
- ['application/json'])
6371
-
6372
- auth_settings = []
6373
-
6374
- http_info["cname"] = cname
6375
- http_info["collection_formats"] = collection_formats
6376
- http_info["path_params"] = path_params
6377
- http_info["query_params"] = query_params
6378
- http_info["header_params"] = header_params
6379
- http_info["post_params"] = form_params
6380
- http_info["body"] = body
6381
- http_info["response_headers"] = response_headers
6382
-
6383
- return http_info
6384
-
6385
5375
  def show_signed_latest_published_agreement_async(self, request):
6386
5376
  r"""查询用户是否签署最新协议
6387
5377
 
@@ -6453,81 +5443,6 @@ class OsmAsyncClient(Client):
6453
5443
 
6454
5444
  return http_info
6455
5445
 
6456
- def show_theme_async(self, request):
6457
- r"""产品类型转为主题
6458
-
6459
- 产品类型转为主题
6460
-
6461
- Please refer to HUAWEI cloud API Explorer for details.
6462
-
6463
-
6464
- :param request: Request instance for ShowTheme
6465
- :type request: :class:`huaweicloudsdkosm.v2.ShowThemeRequest`
6466
- :rtype: :class:`huaweicloudsdkosm.v2.ShowThemeResponse`
6467
- """
6468
- http_info = self._show_theme_http_info(request)
6469
- return self._call_api(**http_info)
6470
-
6471
- def show_theme_async_invoker(self, request):
6472
- http_info = self._show_theme_http_info(request)
6473
- return AsyncInvoker(self, http_info)
6474
-
6475
- def _show_theme_http_info(self, request):
6476
- http_info = {
6477
- "method": "GET",
6478
- "resource_path": "/v2/irobot/themes/convert",
6479
- "request_type": request.__class__.__name__,
6480
- "response_type": "ShowThemeResponse"
6481
- }
6482
-
6483
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6484
-
6485
- cname = None
6486
-
6487
- collection_formats = {}
6488
-
6489
- path_params = {}
6490
-
6491
- query_params = []
6492
- if 'product_type_id' in local_var_params:
6493
- query_params.append(('product_type_id', local_var_params['product_type_id']))
6494
- if 'product_type_name' in local_var_params:
6495
- query_params.append(('product_type_name', local_var_params['product_type_name']))
6496
- if 'product_type_short_name' in local_var_params:
6497
- query_params.append(('product_type_short_name', local_var_params['product_type_short_name']))
6498
-
6499
- header_params = {}
6500
- if 'x_service_key' in local_var_params:
6501
- header_params['x-service-key'] = local_var_params['x_service_key']
6502
- if 'x_site' in local_var_params:
6503
- header_params['x-site'] = local_var_params['x_site']
6504
- if 'x_language' in local_var_params:
6505
- header_params['x-language'] = local_var_params['x_language']
6506
-
6507
- form_params = {}
6508
-
6509
- body = None
6510
- if isinstance(request, SdkStreamRequest):
6511
- body = request.get_file_stream()
6512
-
6513
- response_headers = []
6514
-
6515
- header_params['Content-Type'] = http_utils.select_header_content_type(
6516
- ['application/json'])
6517
-
6518
- auth_settings = []
6519
-
6520
- http_info["cname"] = cname
6521
- http_info["collection_formats"] = collection_formats
6522
- http_info["path_params"] = path_params
6523
- http_info["query_params"] = query_params
6524
- http_info["header_params"] = header_params
6525
- http_info["post_params"] = form_params
6526
- http_info["body"] = body
6527
- http_info["response_headers"] = response_headers
6528
-
6529
- return http_info
6530
-
6531
5446
  def sign_published_agreement_async(self, request):
6532
5447
  r"""签署协议
6533
5448