huaweicloudsdkosm 3.1.164__py3-none-any.whl → 3.1.166__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.166.dist-info}/METADATA +9 -10
  6. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info}/RECORD +8 -69
  7. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info}/WHEEL +1 -2
  8. huaweicloudsdkosm/v2/model/answer.py +0 -227
  9. huaweicloudsdkosm/v2/model/answer_detail.py +0 -194
  10. huaweicloudsdkosm/v2/model/answer_info.py +0 -231
  11. huaweicloudsdkosm/v2/model/answer_qa_pair.py +0 -318
  12. huaweicloudsdkosm/v2/model/article.py +0 -347
  13. huaweicloudsdkosm/v2/model/ask_question_req.py +0 -316
  14. huaweicloudsdkosm/v2/model/cbs_flow_entry.py +0 -144
  15. huaweicloudsdkosm/v2/model/create_ask_question_request.py +0 -197
  16. huaweicloudsdkosm/v2/model/create_ask_question_response.py +0 -232
  17. huaweicloudsdkosm/v2/model/create_evaluate_request.py +0 -253
  18. huaweicloudsdkosm/v2/model/create_evaluate_response.py +0 -174
  19. huaweicloudsdkosm/v2/model/create_qa_ask_request.py +0 -197
  20. huaweicloudsdkosm/v2/model/create_qa_ask_response.py +0 -282
  21. huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +0 -226
  22. huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +0 -174
  23. huaweicloudsdkosm/v2/model/create_question_in_session_request.py +0 -225
  24. huaweicloudsdkosm/v2/model/create_question_in_session_response.py +0 -232
  25. huaweicloudsdkosm/v2/model/create_session_request.py +0 -172
  26. huaweicloudsdkosm/v2/model/create_session_response.py +0 -174
  27. huaweicloudsdkosm/v2/model/evaluate_request_req.py +0 -115
  28. huaweicloudsdkosm/v2/model/extend_question.py +0 -144
  29. huaweicloudsdkosm/v2/model/feedback_option.py +0 -144
  30. huaweicloudsdkosm/v2/model/lang_result.py +0 -144
  31. huaweicloudsdkosm/v2/model/list_articles_request.py +0 -226
  32. huaweicloudsdkosm/v2/model/list_articles_response.py +0 -174
  33. huaweicloudsdkosm/v2/model/list_feedback_option_request.py +0 -230
  34. huaweicloudsdkosm/v2/model/list_feedback_option_response.py +0 -174
  35. huaweicloudsdkosm/v2/model/list_notices_request.py +0 -198
  36. huaweicloudsdkosm/v2/model/list_notices_response.py +0 -174
  37. huaweicloudsdkosm/v2/model/list_recommend_words_request.py +0 -260
  38. huaweicloudsdkosm/v2/model/list_recommend_words_response.py +0 -203
  39. huaweicloudsdkosm/v2/model/list_tools_request.py +0 -198
  40. huaweicloudsdkosm/v2/model/list_tools_response.py +0 -174
  41. huaweicloudsdkosm/v2/model/notice.py +0 -199
  42. huaweicloudsdkosm/v2/model/qa_ask_req.py +0 -346
  43. huaweicloudsdkosm/v2/model/qa_feedback_req.py +0 -345
  44. huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +0 -202
  45. huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +0 -198
  46. huaweicloudsdkosm/v2/model/qa_graph_answer.py +0 -202
  47. huaweicloudsdkosm/v2/model/qa_pair.py +0 -289
  48. huaweicloudsdkosm/v2/model/qabot_answer.py +0 -347
  49. huaweicloudsdkosm/v2/model/query_associated_question_req.py +0 -172
  50. huaweicloudsdkosm/v2/model/recommend_word.py +0 -285
  51. huaweicloudsdkosm/v2/model/relation_theme.py +0 -144
  52. huaweicloudsdkosm/v2/model/relevance_qapair.py +0 -173
  53. huaweicloudsdkosm/v2/model/search_articles_req.py +0 -201
  54. huaweicloudsdkosm/v2/model/search_notices_req.py +0 -143
  55. huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +0 -144
  56. huaweicloudsdkosm/v2/model/search_tools_req.py +0 -201
  57. huaweicloudsdkosm/v2/model/session_ask_question_req.py +0 -288
  58. huaweicloudsdkosm/v2/model/show_associated_questions_request.py +0 -197
  59. huaweicloudsdkosm/v2/model/show_associated_questions_response.py +0 -174
  60. huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +0 -200
  61. huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +0 -170
  62. huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +0 -225
  63. huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +0 -174
  64. huaweicloudsdkosm/v2/model/show_theme_request.py +0 -259
  65. huaweicloudsdkosm/v2/model/show_theme_response.py +0 -232
  66. huaweicloudsdkosm/v2/model/simple_qa_pair.py +0 -173
  67. huaweicloudsdkosm/v2/model/tool.py +0 -287
  68. huaweicloudsdkosm-3.1.164.dist-info/top_level.txt +0 -1
  69. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -325,77 +325,6 @@ class OsmClient(Client):
325
325
 
326
326
  return http_info
327
327
 
328
- def create_ask_question(self, request):
329
- r"""语料提问
330
-
331
- 基于语料的一次问答
332
-
333
- Please refer to HUAWEI cloud API Explorer for details.
334
-
335
- :param request: Request instance for CreateAskQuestion
336
- :type request: :class:`huaweicloudsdkosm.v2.CreateAskQuestionRequest`
337
- :rtype: :class:`huaweicloudsdkosm.v2.CreateAskQuestionResponse`
338
- """
339
- http_info = self._create_ask_question_http_info(request)
340
- return self._call_api(**http_info)
341
-
342
- def create_ask_question_invoker(self, request):
343
- http_info = self._create_ask_question_http_info(request)
344
- return SyncInvoker(self, http_info)
345
-
346
- @classmethod
347
- def _create_ask_question_http_info(cls, 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(self, request):
400
329
  r"""提交工单扩展参数
401
330
 
@@ -748,81 +677,6 @@ class OsmClient(Client):
748
677
 
749
678
  return http_info
750
679
 
751
- def create_evaluate(self, request):
752
- r"""问答满意度评价
753
-
754
- 一次问答完毕后, 针对这一次问答提交满意度评价
755
-
756
- Please refer to HUAWEI cloud API Explorer for details.
757
-
758
- :param request: Request instance for CreateEvaluate
759
- :type request: :class:`huaweicloudsdkosm.v2.CreateEvaluateRequest`
760
- :rtype: :class:`huaweicloudsdkosm.v2.CreateEvaluateResponse`
761
- """
762
- http_info = self._create_evaluate_http_info(request)
763
- return self._call_api(**http_info)
764
-
765
- def create_evaluate_invoker(self, request):
766
- http_info = self._create_evaluate_http_info(request)
767
- return SyncInvoker(self, http_info)
768
-
769
- @classmethod
770
- def _create_evaluate_http_info(cls, 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(self, request):
827
681
  r"""创建举报反馈
828
682
 
@@ -1103,223 +957,6 @@ class OsmClient(Client):
1103
957
 
1104
958
  return http_info
1105
959
 
1106
- def create_qa_ask(self, request):
1107
- r"""新问答接口
1108
-
1109
- 支持多轮流程问答接口
1110
-
1111
- Please refer to HUAWEI cloud API Explorer for details.
1112
-
1113
- :param request: Request instance for CreateQaAsk
1114
- :type request: :class:`huaweicloudsdkosm.v2.CreateQaAskRequest`
1115
- :rtype: :class:`huaweicloudsdkosm.v2.CreateQaAskResponse`
1116
- """
1117
- http_info = self._create_qa_ask_http_info(request)
1118
- return self._call_api(**http_info)
1119
-
1120
- def create_qa_ask_invoker(self, request):
1121
- http_info = self._create_qa_ask_http_info(request)
1122
- return SyncInvoker(self, http_info)
1123
-
1124
- @classmethod
1125
- def _create_qa_ask_http_info(cls, 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(self, request):
1178
- r"""反馈评价
1179
-
1180
- 提交/取消反馈评价
1181
-
1182
- Please refer to HUAWEI cloud API Explorer for details.
1183
-
1184
- :param request: Request instance for CreateQaFeedbacks
1185
- :type request: :class:`huaweicloudsdkosm.v2.CreateQaFeedbacksRequest`
1186
- :rtype: :class:`huaweicloudsdkosm.v2.CreateQaFeedbacksResponse`
1187
- """
1188
- http_info = self._create_qa_feedbacks_http_info(request)
1189
- return self._call_api(**http_info)
1190
-
1191
- def create_qa_feedbacks_invoker(self, request):
1192
- http_info = self._create_qa_feedbacks_http_info(request)
1193
- return SyncInvoker(self, http_info)
1194
-
1195
- @classmethod
1196
- def _create_qa_feedbacks_http_info(cls, 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(self, request):
1251
- r"""提问(在制定的会话中)
1252
-
1253
- 提问(在制定的会话中)
1254
-
1255
- Please refer to HUAWEI cloud API Explorer for details.
1256
-
1257
- :param request: Request instance for CreateQuestionInSession
1258
- :type request: :class:`huaweicloudsdkosm.v2.CreateQuestionInSessionRequest`
1259
- :rtype: :class:`huaweicloudsdkosm.v2.CreateQuestionInSessionResponse`
1260
- """
1261
- http_info = self._create_question_in_session_http_info(request)
1262
- return self._call_api(**http_info)
1263
-
1264
- def create_question_in_session_invoker(self, request):
1265
- http_info = self._create_question_in_session_http_info(request)
1266
- return SyncInvoker(self, http_info)
1267
-
1268
- @classmethod
1269
- def _create_question_in_session_http_info(cls, 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(self, request):
1324
961
  r"""创建关联
1325
962
 
@@ -1466,75 +1103,6 @@ class OsmClient(Client):
1466
1103
 
1467
1104
  return http_info
1468
1105
 
1469
- def create_session(self, request):
1470
- r"""创建问答会话
1471
-
1472
- 用于创建问答会话, 创建会话后可开始问答
1473
-
1474
- Please refer to HUAWEI cloud API Explorer for details.
1475
-
1476
- :param request: Request instance for CreateSession
1477
- :type request: :class:`huaweicloudsdkosm.v2.CreateSessionRequest`
1478
- :rtype: :class:`huaweicloudsdkosm.v2.CreateSessionResponse`
1479
- """
1480
- http_info = self._create_session_http_info(request)
1481
- return self._call_api(**http_info)
1482
-
1483
- def create_session_invoker(self, request):
1484
- http_info = self._create_session_http_info(request)
1485
- return SyncInvoker(self, http_info)
1486
-
1487
- @classmethod
1488
- def _create_session_http_info(cls, 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(self, request):
1539
1107
  r"""删除附件
1540
1108
 
@@ -2212,97 +1780,28 @@ class OsmClient(Client):
2212
1780
  def list_area_codes(self, request):
2213
1781
  r"""查询国家码
2214
1782
 
2215
- 查询国家码,用于提交工单页面填写联系方式使用
2216
-
2217
- Please refer to HUAWEI cloud API Explorer for details.
2218
-
2219
- :param request: Request instance for ListAreaCodes
2220
- :type request: :class:`huaweicloudsdkosm.v2.ListAreaCodesRequest`
2221
- :rtype: :class:`huaweicloudsdkosm.v2.ListAreaCodesResponse`
2222
- """
2223
- http_info = self._list_area_codes_http_info(request)
2224
- return self._call_api(**http_info)
2225
-
2226
- def list_area_codes_invoker(self, request):
2227
- http_info = self._list_area_codes_http_info(request)
2228
- return SyncInvoker(self, http_info)
2229
-
2230
- @classmethod
2231
- def _list_area_codes_http_info(cls, 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(self, request):
2282
- r"""查询案例
2283
-
2284
- 查询满足指定条件的案例列表
1783
+ 查询国家码,用于提交工单页面填写联系方式使用
2285
1784
 
2286
1785
  Please refer to HUAWEI cloud API Explorer for details.
2287
1786
 
2288
- :param request: Request instance for ListArticles
2289
- :type request: :class:`huaweicloudsdkosm.v2.ListArticlesRequest`
2290
- :rtype: :class:`huaweicloudsdkosm.v2.ListArticlesResponse`
1787
+ :param request: Request instance for ListAreaCodes
1788
+ :type request: :class:`huaweicloudsdkosm.v2.ListAreaCodesRequest`
1789
+ :rtype: :class:`huaweicloudsdkosm.v2.ListAreaCodesResponse`
2291
1790
  """
2292
- http_info = self._list_articles_http_info(request)
1791
+ http_info = self._list_area_codes_http_info(request)
2293
1792
  return self._call_api(**http_info)
2294
1793
 
2295
- def list_articles_invoker(self, request):
2296
- http_info = self._list_articles_http_info(request)
1794
+ def list_area_codes_invoker(self, request):
1795
+ http_info = self._list_area_codes_http_info(request)
2297
1796
  return SyncInvoker(self, http_info)
2298
1797
 
2299
1798
  @classmethod
2300
- def _list_articles_http_info(cls, request):
1799
+ def _list_area_codes_http_info(cls, 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 OsmClient(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 OsmClient(Client):
3509
3004
 
3510
3005
  return http_info
3511
3006
 
3512
- def list_feedback_option(self, request):
3513
- r"""查询反馈选项
3514
-
3515
- 查询符合条件的反馈选项
3516
-
3517
- Please refer to HUAWEI cloud API Explorer for details.
3518
-
3519
- :param request: Request instance for ListFeedbackOption
3520
- :type request: :class:`huaweicloudsdkosm.v2.ListFeedbackOptionRequest`
3521
- :rtype: :class:`huaweicloudsdkosm.v2.ListFeedbackOptionResponse`
3522
- """
3523
- http_info = self._list_feedback_option_http_info(request)
3524
- return self._call_api(**http_info)
3525
-
3526
- def list_feedback_option_invoker(self, request):
3527
- http_info = self._list_feedback_option_http_info(request)
3528
- return SyncInvoker(self, http_info)
3529
-
3530
- @classmethod
3531
- def _list_feedback_option_http_info(cls, 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(self, request):
3586
3008
  r"""查询已验证的列表
3587
3009
 
@@ -4140,77 +3562,6 @@ class OsmClient(Client):
4140
3562
 
4141
3563
  return http_info
4142
3564
 
4143
- def list_notices(self, request):
4144
- r"""查询公告
4145
-
4146
- 查询满足指定条件的公告列表
4147
-
4148
- Please refer to HUAWEI cloud API Explorer for details.
4149
-
4150
- :param request: Request instance for ListNotices
4151
- :type request: :class:`huaweicloudsdkosm.v2.ListNoticesRequest`
4152
- :rtype: :class:`huaweicloudsdkosm.v2.ListNoticesResponse`
4153
- """
4154
- http_info = self._list_notices_http_info(request)
4155
- return self._call_api(**http_info)
4156
-
4157
- def list_notices_invoker(self, request):
4158
- http_info = self._list_notices_http_info(request)
4159
- return SyncInvoker(self, http_info)
4160
-
4161
- @classmethod
4162
- def _list_notices_http_info(cls, 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(self, request):
4215
3566
  r"""工单列表
4216
3567
 
@@ -4521,81 +3872,6 @@ class OsmClient(Client):
4521
3872
 
4522
3873
  return http_info
4523
3874
 
4524
- def list_recommend_words(self, request):
4525
- r"""查询推荐热词
4526
-
4527
- 查询指定条件的推荐热词
4528
-
4529
- Please refer to HUAWEI cloud API Explorer for details.
4530
-
4531
- :param request: Request instance for ListRecommendWords
4532
- :type request: :class:`huaweicloudsdkosm.v2.ListRecommendWordsRequest`
4533
- :rtype: :class:`huaweicloudsdkosm.v2.ListRecommendWordsResponse`
4534
- """
4535
- http_info = self._list_recommend_words_http_info(request)
4536
- return self._call_api(**http_info)
4537
-
4538
- def list_recommend_words_invoker(self, request):
4539
- http_info = self._list_recommend_words_http_info(request)
4540
- return SyncInvoker(self, http_info)
4541
-
4542
- @classmethod
4543
- def _list_recommend_words_http_info(cls, 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(self, request):
4600
3876
  r"""查询区域列表
4601
3877
 
@@ -4819,90 +4095,17 @@ class OsmClient(Client):
4819
4095
  http_info = self._list_severities_http_info(request)
4820
4096
  return self._call_api(**http_info)
4821
4097
 
4822
- def list_severities_invoker(self, request):
4823
- http_info = self._list_severities_http_info(request)
4824
- return SyncInvoker(self, http_info)
4825
-
4826
- @classmethod
4827
- def _list_severities_http_info(cls, 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(self, request):
4882
- r"""查询子用户信息
4883
-
4884
- 查询子用户信息
4885
-
4886
- Please refer to HUAWEI cloud API Explorer for details.
4887
-
4888
- :param request: Request instance for ListSubCustomers
4889
- :type request: :class:`huaweicloudsdkosm.v2.ListSubCustomersRequest`
4890
- :rtype: :class:`huaweicloudsdkosm.v2.ListSubCustomersResponse`
4891
- """
4892
- http_info = self._list_sub_customers_http_info(request)
4893
- return self._call_api(**http_info)
4894
-
4895
- def list_sub_customers_invoker(self, request):
4896
- http_info = self._list_sub_customers_http_info(request)
4098
+ def list_severities_invoker(self, request):
4099
+ http_info = self._list_severities_http_info(request)
4897
4100
  return SyncInvoker(self, http_info)
4898
4101
 
4899
4102
  @classmethod
4900
- def _list_sub_customers_http_info(cls, request):
4103
+ def _list_severities_http_info(cls, 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 OsmClient(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 OsmClient(Client):
4951
4154
 
4952
4155
  return http_info
4953
4156
 
4954
- def list_tools(self, request):
4955
- r"""查询工具
4157
+ def list_sub_customers(self, request):
4158
+ r"""查询子用户信息
4956
4159
 
4957
- 查询满足指定条件的工具列表
4160
+ 查询子用户信息
4958
4161
 
4959
4162
  Please refer to HUAWEI cloud API Explorer for details.
4960
4163
 
4961
- :param request: Request instance for ListTools
4962
- :type request: :class:`huaweicloudsdkosm.v2.ListToolsRequest`
4963
- :rtype: :class:`huaweicloudsdkosm.v2.ListToolsResponse`
4164
+ :param request: Request instance for ListSubCustomers
4165
+ :type request: :class:`huaweicloudsdkosm.v2.ListSubCustomersRequest`
4166
+ :rtype: :class:`huaweicloudsdkosm.v2.ListSubCustomersResponse`
4964
4167
  """
4965
- http_info = self._list_tools_http_info(request)
4168
+ http_info = self._list_sub_customers_http_info(request)
4966
4169
  return self._call_api(**http_info)
4967
4170
 
4968
- def list_tools_invoker(self, request):
4969
- http_info = self._list_tools_http_info(request)
4171
+ def list_sub_customers_invoker(self, request):
4172
+ http_info = self._list_sub_customers_http_info(request)
4970
4173
  return SyncInvoker(self, http_info)
4971
4174
 
4972
4175
  @classmethod
4973
- def _list_tools_http_info(cls, request):
4176
+ def _list_sub_customers_http_info(cls, 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 OsmClient(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 OsmClient(Client):
5392
4597
 
5393
4598
  return http_info
5394
4599
 
5395
- def show_associated_questions(self, request):
5396
- r"""查询联想问题
5397
-
5398
- 根据当前输入, 联想相关的问题
5399
-
5400
- Please refer to HUAWEI cloud API Explorer for details.
5401
-
5402
- :param request: Request instance for ShowAssociatedQuestions
5403
- :type request: :class:`huaweicloudsdkosm.v2.ShowAssociatedQuestionsRequest`
5404
- :rtype: :class:`huaweicloudsdkosm.v2.ShowAssociatedQuestionsResponse`
5405
- """
5406
- http_info = self._show_associated_questions_http_info(request)
5407
- return self._call_api(**http_info)
5408
-
5409
- def show_associated_questions_invoker(self, request):
5410
- http_info = self._show_associated_questions_http_info(request)
5411
- return SyncInvoker(self, http_info)
5412
-
5413
- @classmethod
5414
- def _show_associated_questions_http_info(cls, 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(self, request):
5467
4601
  r"""查询授权详情
5468
4602
 
@@ -6238,150 +5372,6 @@ class OsmClient(Client):
6238
5372
 
6239
5373
  return http_info
6240
5374
 
6241
- def show_qa_pair_detail(self, request):
6242
- r"""查询语料详情
6243
-
6244
- 查询指定语料的详情
6245
-
6246
- Please refer to HUAWEI cloud API Explorer for details.
6247
-
6248
- :param request: Request instance for ShowQaPairDetail
6249
- :type request: :class:`huaweicloudsdkosm.v2.ShowQaPairDetailRequest`
6250
- :rtype: :class:`huaweicloudsdkosm.v2.ShowQaPairDetailResponse`
6251
- """
6252
- http_info = self._show_qa_pair_detail_http_info(request)
6253
- return self._call_api(**http_info)
6254
-
6255
- def show_qa_pair_detail_invoker(self, request):
6256
- http_info = self._show_qa_pair_detail_http_info(request)
6257
- return SyncInvoker(self, http_info)
6258
-
6259
- @classmethod
6260
- def _show_qa_pair_detail_http_info(cls, 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(self, request):
6313
- r"""查询语料
6314
-
6315
- 查询满足指定条件的语料列表
6316
-
6317
- Please refer to HUAWEI cloud API Explorer for details.
6318
-
6319
- :param request: Request instance for ShowQaPairs
6320
- :type request: :class:`huaweicloudsdkosm.v2.ShowQaPairsRequest`
6321
- :rtype: :class:`huaweicloudsdkosm.v2.ShowQaPairsResponse`
6322
- """
6323
- http_info = self._show_qa_pairs_http_info(request)
6324
- return self._call_api(**http_info)
6325
-
6326
- def show_qa_pairs_invoker(self, request):
6327
- http_info = self._show_qa_pairs_http_info(request)
6328
- return SyncInvoker(self, http_info)
6329
-
6330
- @classmethod
6331
- def _show_qa_pairs_http_info(cls, 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(self, request):
6386
5376
  r"""查询用户是否签署最新协议
6387
5377
 
@@ -6453,81 +5443,6 @@ class OsmClient(Client):
6453
5443
 
6454
5444
  return http_info
6455
5445
 
6456
- def show_theme(self, request):
6457
- r"""产品类型转为主题
6458
-
6459
- 产品类型转为主题
6460
-
6461
- Please refer to HUAWEI cloud API Explorer for details.
6462
-
6463
- :param request: Request instance for ShowTheme
6464
- :type request: :class:`huaweicloudsdkosm.v2.ShowThemeRequest`
6465
- :rtype: :class:`huaweicloudsdkosm.v2.ShowThemeResponse`
6466
- """
6467
- http_info = self._show_theme_http_info(request)
6468
- return self._call_api(**http_info)
6469
-
6470
- def show_theme_invoker(self, request):
6471
- http_info = self._show_theme_http_info(request)
6472
- return SyncInvoker(self, http_info)
6473
-
6474
- @classmethod
6475
- def _show_theme_http_info(cls, 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(self, request):
6532
5447
  r"""签署协议
6533
5448