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
@@ -1,172 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class CreateSessionRequest:
9
-
10
- """
11
- Attributes:
12
- openapi_types (dict): The key is attribute name
13
- and the value is attribute type.
14
- attribute_map (dict): The key is attribute name
15
- and the value is json key in definition.
16
- """
17
- sensitive_list = []
18
-
19
- openapi_types = {
20
- 'x_service_key': 'str',
21
- 'x_site': 'str',
22
- 'x_language': 'str'
23
- }
24
-
25
- attribute_map = {
26
- 'x_service_key': 'x-service-key',
27
- 'x_site': 'x-site',
28
- 'x_language': 'x-language'
29
- }
30
-
31
- def __init__(self, x_service_key=None, x_site=None, x_language=None):
32
- r"""CreateSessionRequest
33
-
34
- The model defined in huaweicloud sdk
35
-
36
- :param x_service_key: 调用智能客服服务标志。
37
- :type x_service_key: str
38
- :param x_site: 站点标记,0-中国站 1-国际站
39
- :type x_site: str
40
- :param x_language: 区域语言简写,en-us zh-cn
41
- :type x_language: str
42
- """
43
-
44
-
45
-
46
- self._x_service_key = None
47
- self._x_site = None
48
- self._x_language = None
49
- self.discriminator = None
50
-
51
- self.x_service_key = x_service_key
52
- if x_site is not None:
53
- self.x_site = x_site
54
- if x_language is not None:
55
- self.x_language = x_language
56
-
57
- @property
58
- def x_service_key(self):
59
- r"""Gets the x_service_key of this CreateSessionRequest.
60
-
61
- 调用智能客服服务标志。
62
-
63
- :return: The x_service_key of this CreateSessionRequest.
64
- :rtype: str
65
- """
66
- return self._x_service_key
67
-
68
- @x_service_key.setter
69
- def x_service_key(self, x_service_key):
70
- r"""Sets the x_service_key of this CreateSessionRequest.
71
-
72
- 调用智能客服服务标志。
73
-
74
- :param x_service_key: The x_service_key of this CreateSessionRequest.
75
- :type x_service_key: str
76
- """
77
- self._x_service_key = x_service_key
78
-
79
- @property
80
- def x_site(self):
81
- r"""Gets the x_site of this CreateSessionRequest.
82
-
83
- 站点标记,0-中国站 1-国际站
84
-
85
- :return: The x_site of this CreateSessionRequest.
86
- :rtype: str
87
- """
88
- return self._x_site
89
-
90
- @x_site.setter
91
- def x_site(self, x_site):
92
- r"""Sets the x_site of this CreateSessionRequest.
93
-
94
- 站点标记,0-中国站 1-国际站
95
-
96
- :param x_site: The x_site of this CreateSessionRequest.
97
- :type x_site: str
98
- """
99
- self._x_site = x_site
100
-
101
- @property
102
- def x_language(self):
103
- r"""Gets the x_language of this CreateSessionRequest.
104
-
105
- 区域语言简写,en-us zh-cn
106
-
107
- :return: The x_language of this CreateSessionRequest.
108
- :rtype: str
109
- """
110
- return self._x_language
111
-
112
- @x_language.setter
113
- def x_language(self, x_language):
114
- r"""Sets the x_language of this CreateSessionRequest.
115
-
116
- 区域语言简写,en-us zh-cn
117
-
118
- :param x_language: The x_language of this CreateSessionRequest.
119
- :type x_language: str
120
- """
121
- self._x_language = x_language
122
-
123
- def to_dict(self):
124
- """Returns the model properties as a dict"""
125
- result = {}
126
-
127
- for attr, _ in six.iteritems(self.openapi_types):
128
- value = getattr(self, attr)
129
- if isinstance(value, list):
130
- result[attr] = list(map(
131
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
132
- value
133
- ))
134
- elif hasattr(value, "to_dict"):
135
- result[attr] = value.to_dict()
136
- elif isinstance(value, dict):
137
- result[attr] = dict(map(
138
- lambda item: (item[0], item[1].to_dict())
139
- if hasattr(item[1], "to_dict") else item,
140
- value.items()
141
- ))
142
- else:
143
- if attr in self.sensitive_list:
144
- result[attr] = "****"
145
- else:
146
- result[attr] = value
147
-
148
- return result
149
-
150
- def to_str(self):
151
- """Returns the string representation of the model"""
152
- import simplejson as json
153
- if six.PY2:
154
- import sys
155
- reload(sys)
156
- sys.setdefaultencoding("utf-8")
157
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
158
-
159
- def __repr__(self):
160
- """For `print`"""
161
- return self.to_str()
162
-
163
- def __eq__(self, other):
164
- """Returns true if both objects are equal"""
165
- if not isinstance(other, CreateSessionRequest):
166
- return False
167
-
168
- return self.__dict__ == other.__dict__
169
-
170
- def __ne__(self, other):
171
- """Returns true if both objects are not equal"""
172
- return not self == other
@@ -1,174 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.sdk_response import SdkResponse
6
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
-
8
-
9
- class CreateSessionResponse(SdkResponse):
10
-
11
- """
12
- Attributes:
13
- openapi_types (dict): The key is attribute name
14
- and the value is attribute type.
15
- attribute_map (dict): The key is attribute name
16
- and the value is json key in definition.
17
- """
18
- sensitive_list = []
19
-
20
- openapi_types = {
21
- 'error_code': 'str',
22
- 'error_msg': 'str',
23
- 'session_id': 'str'
24
- }
25
-
26
- attribute_map = {
27
- 'error_code': 'error_code',
28
- 'error_msg': 'error_msg',
29
- 'session_id': 'session_id'
30
- }
31
-
32
- def __init__(self, error_code=None, error_msg=None, session_id=None):
33
- r"""CreateSessionResponse
34
-
35
- The model defined in huaweicloud sdk
36
-
37
- :param error_code: 错误码
38
- :type error_code: str
39
- :param error_msg: 错误描述
40
- :type error_msg: str
41
- :param session_id: 会话Id
42
- :type session_id: str
43
- """
44
-
45
- super(CreateSessionResponse, self).__init__()
46
-
47
- self._error_code = None
48
- self._error_msg = None
49
- self._session_id = None
50
- self.discriminator = None
51
-
52
- if error_code is not None:
53
- self.error_code = error_code
54
- if error_msg is not None:
55
- self.error_msg = error_msg
56
- if session_id is not None:
57
- self.session_id = session_id
58
-
59
- @property
60
- def error_code(self):
61
- r"""Gets the error_code of this CreateSessionResponse.
62
-
63
- 错误码
64
-
65
- :return: The error_code of this CreateSessionResponse.
66
- :rtype: str
67
- """
68
- return self._error_code
69
-
70
- @error_code.setter
71
- def error_code(self, error_code):
72
- r"""Sets the error_code of this CreateSessionResponse.
73
-
74
- 错误码
75
-
76
- :param error_code: The error_code of this CreateSessionResponse.
77
- :type error_code: str
78
- """
79
- self._error_code = error_code
80
-
81
- @property
82
- def error_msg(self):
83
- r"""Gets the error_msg of this CreateSessionResponse.
84
-
85
- 错误描述
86
-
87
- :return: The error_msg of this CreateSessionResponse.
88
- :rtype: str
89
- """
90
- return self._error_msg
91
-
92
- @error_msg.setter
93
- def error_msg(self, error_msg):
94
- r"""Sets the error_msg of this CreateSessionResponse.
95
-
96
- 错误描述
97
-
98
- :param error_msg: The error_msg of this CreateSessionResponse.
99
- :type error_msg: str
100
- """
101
- self._error_msg = error_msg
102
-
103
- @property
104
- def session_id(self):
105
- r"""Gets the session_id of this CreateSessionResponse.
106
-
107
- 会话Id
108
-
109
- :return: The session_id of this CreateSessionResponse.
110
- :rtype: str
111
- """
112
- return self._session_id
113
-
114
- @session_id.setter
115
- def session_id(self, session_id):
116
- r"""Sets the session_id of this CreateSessionResponse.
117
-
118
- 会话Id
119
-
120
- :param session_id: The session_id of this CreateSessionResponse.
121
- :type session_id: str
122
- """
123
- self._session_id = session_id
124
-
125
- def to_dict(self):
126
- """Returns the model properties as a dict"""
127
- result = {}
128
-
129
- for attr, _ in six.iteritems(self.openapi_types):
130
- value = getattr(self, attr)
131
- if isinstance(value, list):
132
- result[attr] = list(map(
133
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
- value
135
- ))
136
- elif hasattr(value, "to_dict"):
137
- result[attr] = value.to_dict()
138
- elif isinstance(value, dict):
139
- result[attr] = dict(map(
140
- lambda item: (item[0], item[1].to_dict())
141
- if hasattr(item[1], "to_dict") else item,
142
- value.items()
143
- ))
144
- else:
145
- if attr in self.sensitive_list:
146
- result[attr] = "****"
147
- else:
148
- result[attr] = value
149
-
150
- return result
151
-
152
- def to_str(self):
153
- """Returns the string representation of the model"""
154
- import simplejson as json
155
- if six.PY2:
156
- import sys
157
- reload(sys)
158
- sys.setdefaultencoding("utf-8")
159
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
-
161
- def __repr__(self):
162
- """For `print`"""
163
- return self.to_str()
164
-
165
- def __eq__(self, other):
166
- """Returns true if both objects are equal"""
167
- if not isinstance(other, CreateSessionResponse):
168
- return False
169
-
170
- return self.__dict__ == other.__dict__
171
-
172
- def __ne__(self, other):
173
- """Returns true if both objects are not equal"""
174
- return not self == other
@@ -1,115 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class EvaluateRequestReq:
9
-
10
- """
11
- Attributes:
12
- openapi_types (dict): The key is attribute name
13
- and the value is attribute type.
14
- attribute_map (dict): The key is attribute name
15
- and the value is json key in definition.
16
- """
17
- sensitive_list = []
18
-
19
- openapi_types = {
20
- 'degree': 'int'
21
- }
22
-
23
- attribute_map = {
24
- 'degree': 'degree'
25
- }
26
-
27
- def __init__(self, degree=None):
28
- r"""EvaluateRequestReq
29
-
30
- The model defined in huaweicloud sdk
31
-
32
- :param degree: 评价结果
33
- :type degree: int
34
- """
35
-
36
-
37
-
38
- self._degree = None
39
- self.discriminator = None
40
-
41
- if degree is not None:
42
- self.degree = degree
43
-
44
- @property
45
- def degree(self):
46
- r"""Gets the degree of this EvaluateRequestReq.
47
-
48
- 评价结果
49
-
50
- :return: The degree of this EvaluateRequestReq.
51
- :rtype: int
52
- """
53
- return self._degree
54
-
55
- @degree.setter
56
- def degree(self, degree):
57
- r"""Sets the degree of this EvaluateRequestReq.
58
-
59
- 评价结果
60
-
61
- :param degree: The degree of this EvaluateRequestReq.
62
- :type degree: int
63
- """
64
- self._degree = degree
65
-
66
- def to_dict(self):
67
- """Returns the model properties as a dict"""
68
- result = {}
69
-
70
- for attr, _ in six.iteritems(self.openapi_types):
71
- value = getattr(self, attr)
72
- if isinstance(value, list):
73
- result[attr] = list(map(
74
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
- value
76
- ))
77
- elif hasattr(value, "to_dict"):
78
- result[attr] = value.to_dict()
79
- elif isinstance(value, dict):
80
- result[attr] = dict(map(
81
- lambda item: (item[0], item[1].to_dict())
82
- if hasattr(item[1], "to_dict") else item,
83
- value.items()
84
- ))
85
- else:
86
- if attr in self.sensitive_list:
87
- result[attr] = "****"
88
- else:
89
- result[attr] = value
90
-
91
- return result
92
-
93
- def to_str(self):
94
- """Returns the string representation of the model"""
95
- import simplejson as json
96
- if six.PY2:
97
- import sys
98
- reload(sys)
99
- sys.setdefaultencoding("utf-8")
100
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
-
102
- def __repr__(self):
103
- """For `print`"""
104
- return self.to_str()
105
-
106
- def __eq__(self, other):
107
- """Returns true if both objects are equal"""
108
- if not isinstance(other, EvaluateRequestReq):
109
- return False
110
-
111
- return self.__dict__ == other.__dict__
112
-
113
- def __ne__(self, other):
114
- """Returns true if both objects are not equal"""
115
- return not self == other
@@ -1,144 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class ExtendQuestion:
9
-
10
- """
11
- Attributes:
12
- openapi_types (dict): The key is attribute name
13
- and the value is attribute type.
14
- attribute_map (dict): The key is attribute name
15
- and the value is json key in definition.
16
- """
17
- sensitive_list = []
18
-
19
- openapi_types = {
20
- 'content': 'str',
21
- 'score': 'float'
22
- }
23
-
24
- attribute_map = {
25
- 'content': 'content',
26
- 'score': 'score'
27
- }
28
-
29
- def __init__(self, content=None, score=None):
30
- r"""ExtendQuestion
31
-
32
- The model defined in huaweicloud sdk
33
-
34
- :param content: 扩展问内容
35
- :type content: str
36
- :param score: 分值
37
- :type score: float
38
- """
39
-
40
-
41
-
42
- self._content = None
43
- self._score = None
44
- self.discriminator = None
45
-
46
- if content is not None:
47
- self.content = content
48
- if score is not None:
49
- self.score = score
50
-
51
- @property
52
- def content(self):
53
- r"""Gets the content of this ExtendQuestion.
54
-
55
- 扩展问内容
56
-
57
- :return: The content of this ExtendQuestion.
58
- :rtype: str
59
- """
60
- return self._content
61
-
62
- @content.setter
63
- def content(self, content):
64
- r"""Sets the content of this ExtendQuestion.
65
-
66
- 扩展问内容
67
-
68
- :param content: The content of this ExtendQuestion.
69
- :type content: str
70
- """
71
- self._content = content
72
-
73
- @property
74
- def score(self):
75
- r"""Gets the score of this ExtendQuestion.
76
-
77
- 分值
78
-
79
- :return: The score of this ExtendQuestion.
80
- :rtype: float
81
- """
82
- return self._score
83
-
84
- @score.setter
85
- def score(self, score):
86
- r"""Sets the score of this ExtendQuestion.
87
-
88
- 分值
89
-
90
- :param score: The score of this ExtendQuestion.
91
- :type score: float
92
- """
93
- self._score = score
94
-
95
- def to_dict(self):
96
- """Returns the model properties as a dict"""
97
- result = {}
98
-
99
- for attr, _ in six.iteritems(self.openapi_types):
100
- value = getattr(self, attr)
101
- if isinstance(value, list):
102
- result[attr] = list(map(
103
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
- value
105
- ))
106
- elif hasattr(value, "to_dict"):
107
- result[attr] = value.to_dict()
108
- elif isinstance(value, dict):
109
- result[attr] = dict(map(
110
- lambda item: (item[0], item[1].to_dict())
111
- if hasattr(item[1], "to_dict") else item,
112
- value.items()
113
- ))
114
- else:
115
- if attr in self.sensitive_list:
116
- result[attr] = "****"
117
- else:
118
- result[attr] = value
119
-
120
- return result
121
-
122
- def to_str(self):
123
- """Returns the string representation of the model"""
124
- import simplejson as json
125
- if six.PY2:
126
- import sys
127
- reload(sys)
128
- sys.setdefaultencoding("utf-8")
129
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
-
131
- def __repr__(self):
132
- """For `print`"""
133
- return self.to_str()
134
-
135
- def __eq__(self, other):
136
- """Returns true if both objects are equal"""
137
- if not isinstance(other, ExtendQuestion):
138
- return False
139
-
140
- return self.__dict__ == other.__dict__
141
-
142
- def __ne__(self, other):
143
- """Returns true if both objects are not equal"""
144
- return not self == other