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,202 +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 QaFlowHitNodeVo:
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
- 'id': 'str',
21
- 'name': 'str',
22
- 'content': 'str',
23
- 'answer_type': 'str'
24
- }
25
-
26
- attribute_map = {
27
- 'id': 'id',
28
- 'name': 'name',
29
- 'content': 'content',
30
- 'answer_type': 'answer_type'
31
- }
32
-
33
- def __init__(self, id=None, name=None, content=None, answer_type=None):
34
- r"""QaFlowHitNodeVo
35
-
36
- The model defined in huaweicloud sdk
37
-
38
- :param id: ID
39
- :type id: str
40
- :param name: 名称
41
- :type name: str
42
- :param content: 内容
43
- :type content: str
44
- :param answer_type: - TEXT: - RICH_TEXT: - FLOW: - QA_PAIR:
45
- :type answer_type: str
46
- """
47
-
48
-
49
-
50
- self._id = None
51
- self._name = None
52
- self._content = None
53
- self._answer_type = None
54
- self.discriminator = None
55
-
56
- if id is not None:
57
- self.id = id
58
- if name is not None:
59
- self.name = name
60
- if content is not None:
61
- self.content = content
62
- if answer_type is not None:
63
- self.answer_type = answer_type
64
-
65
- @property
66
- def id(self):
67
- r"""Gets the id of this QaFlowHitNodeVo.
68
-
69
- ID
70
-
71
- :return: The id of this QaFlowHitNodeVo.
72
- :rtype: str
73
- """
74
- return self._id
75
-
76
- @id.setter
77
- def id(self, id):
78
- r"""Sets the id of this QaFlowHitNodeVo.
79
-
80
- ID
81
-
82
- :param id: The id of this QaFlowHitNodeVo.
83
- :type id: str
84
- """
85
- self._id = id
86
-
87
- @property
88
- def name(self):
89
- r"""Gets the name of this QaFlowHitNodeVo.
90
-
91
- 名称
92
-
93
- :return: The name of this QaFlowHitNodeVo.
94
- :rtype: str
95
- """
96
- return self._name
97
-
98
- @name.setter
99
- def name(self, name):
100
- r"""Sets the name of this QaFlowHitNodeVo.
101
-
102
- 名称
103
-
104
- :param name: The name of this QaFlowHitNodeVo.
105
- :type name: str
106
- """
107
- self._name = name
108
-
109
- @property
110
- def content(self):
111
- r"""Gets the content of this QaFlowHitNodeVo.
112
-
113
- 内容
114
-
115
- :return: The content of this QaFlowHitNodeVo.
116
- :rtype: str
117
- """
118
- return self._content
119
-
120
- @content.setter
121
- def content(self, content):
122
- r"""Sets the content of this QaFlowHitNodeVo.
123
-
124
- 内容
125
-
126
- :param content: The content of this QaFlowHitNodeVo.
127
- :type content: str
128
- """
129
- self._content = content
130
-
131
- @property
132
- def answer_type(self):
133
- r"""Gets the answer_type of this QaFlowHitNodeVo.
134
-
135
- - TEXT: - RICH_TEXT: - FLOW: - QA_PAIR:
136
-
137
- :return: The answer_type of this QaFlowHitNodeVo.
138
- :rtype: str
139
- """
140
- return self._answer_type
141
-
142
- @answer_type.setter
143
- def answer_type(self, answer_type):
144
- r"""Sets the answer_type of this QaFlowHitNodeVo.
145
-
146
- - TEXT: - RICH_TEXT: - FLOW: - QA_PAIR:
147
-
148
- :param answer_type: The answer_type of this QaFlowHitNodeVo.
149
- :type answer_type: str
150
- """
151
- self._answer_type = answer_type
152
-
153
- def to_dict(self):
154
- """Returns the model properties as a dict"""
155
- result = {}
156
-
157
- for attr, _ in six.iteritems(self.openapi_types):
158
- value = getattr(self, attr)
159
- if isinstance(value, list):
160
- result[attr] = list(map(
161
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
- value
163
- ))
164
- elif hasattr(value, "to_dict"):
165
- result[attr] = value.to_dict()
166
- elif isinstance(value, dict):
167
- result[attr] = dict(map(
168
- lambda item: (item[0], item[1].to_dict())
169
- if hasattr(item[1], "to_dict") else item,
170
- value.items()
171
- ))
172
- else:
173
- if attr in self.sensitive_list:
174
- result[attr] = "****"
175
- else:
176
- result[attr] = value
177
-
178
- return result
179
-
180
- def to_str(self):
181
- """Returns the string representation of the model"""
182
- import simplejson as json
183
- if six.PY2:
184
- import sys
185
- reload(sys)
186
- sys.setdefaultencoding("utf-8")
187
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
-
189
- def __repr__(self):
190
- """For `print`"""
191
- return self.to_str()
192
-
193
- def __eq__(self, other):
194
- """Returns true if both objects are equal"""
195
- if not isinstance(other, QaFlowHitNodeVo):
196
- return False
197
-
198
- return self.__dict__ == other.__dict__
199
-
200
- def __ne__(self, other):
201
- """Returns true if both objects are not equal"""
202
- return not self == other
@@ -1,198 +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 QaFlowHitResult:
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
- 'session_id': 'str',
21
- 'current_node': 'QaFlowHitNodeVo',
22
- 'candidate_nodes': 'list[QaFlowHitNodeVo]',
23
- 'is_completed': 'bool'
24
- }
25
-
26
- attribute_map = {
27
- 'session_id': 'session_id',
28
- 'current_node': 'current_node',
29
- 'candidate_nodes': 'candidate_nodes',
30
- 'is_completed': 'is_completed'
31
- }
32
-
33
- def __init__(self, session_id=None, current_node=None, candidate_nodes=None, is_completed=None):
34
- r"""QaFlowHitResult
35
-
36
- The model defined in huaweicloud sdk
37
-
38
- :param session_id: seesionID
39
- :type session_id: str
40
- :param current_node:
41
- :type current_node: :class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo`
42
- :param candidate_nodes: 备用节点
43
- :type candidate_nodes: list[:class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo`]
44
- :param is_completed: 是否完整
45
- :type is_completed: bool
46
- """
47
-
48
-
49
-
50
- self._session_id = None
51
- self._current_node = None
52
- self._candidate_nodes = None
53
- self._is_completed = None
54
- self.discriminator = None
55
-
56
- if session_id is not None:
57
- self.session_id = session_id
58
- if current_node is not None:
59
- self.current_node = current_node
60
- if candidate_nodes is not None:
61
- self.candidate_nodes = candidate_nodes
62
- if is_completed is not None:
63
- self.is_completed = is_completed
64
-
65
- @property
66
- def session_id(self):
67
- r"""Gets the session_id of this QaFlowHitResult.
68
-
69
- seesionID
70
-
71
- :return: The session_id of this QaFlowHitResult.
72
- :rtype: str
73
- """
74
- return self._session_id
75
-
76
- @session_id.setter
77
- def session_id(self, session_id):
78
- r"""Sets the session_id of this QaFlowHitResult.
79
-
80
- seesionID
81
-
82
- :param session_id: The session_id of this QaFlowHitResult.
83
- :type session_id: str
84
- """
85
- self._session_id = session_id
86
-
87
- @property
88
- def current_node(self):
89
- r"""Gets the current_node of this QaFlowHitResult.
90
-
91
- :return: The current_node of this QaFlowHitResult.
92
- :rtype: :class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo`
93
- """
94
- return self._current_node
95
-
96
- @current_node.setter
97
- def current_node(self, current_node):
98
- r"""Sets the current_node of this QaFlowHitResult.
99
-
100
- :param current_node: The current_node of this QaFlowHitResult.
101
- :type current_node: :class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo`
102
- """
103
- self._current_node = current_node
104
-
105
- @property
106
- def candidate_nodes(self):
107
- r"""Gets the candidate_nodes of this QaFlowHitResult.
108
-
109
- 备用节点
110
-
111
- :return: The candidate_nodes of this QaFlowHitResult.
112
- :rtype: list[:class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo`]
113
- """
114
- return self._candidate_nodes
115
-
116
- @candidate_nodes.setter
117
- def candidate_nodes(self, candidate_nodes):
118
- r"""Sets the candidate_nodes of this QaFlowHitResult.
119
-
120
- 备用节点
121
-
122
- :param candidate_nodes: The candidate_nodes of this QaFlowHitResult.
123
- :type candidate_nodes: list[:class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo`]
124
- """
125
- self._candidate_nodes = candidate_nodes
126
-
127
- @property
128
- def is_completed(self):
129
- r"""Gets the is_completed of this QaFlowHitResult.
130
-
131
- 是否完整
132
-
133
- :return: The is_completed of this QaFlowHitResult.
134
- :rtype: bool
135
- """
136
- return self._is_completed
137
-
138
- @is_completed.setter
139
- def is_completed(self, is_completed):
140
- r"""Sets the is_completed of this QaFlowHitResult.
141
-
142
- 是否完整
143
-
144
- :param is_completed: The is_completed of this QaFlowHitResult.
145
- :type is_completed: bool
146
- """
147
- self._is_completed = is_completed
148
-
149
- def to_dict(self):
150
- """Returns the model properties as a dict"""
151
- result = {}
152
-
153
- for attr, _ in six.iteritems(self.openapi_types):
154
- value = getattr(self, attr)
155
- if isinstance(value, list):
156
- result[attr] = list(map(
157
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
158
- value
159
- ))
160
- elif hasattr(value, "to_dict"):
161
- result[attr] = value.to_dict()
162
- elif isinstance(value, dict):
163
- result[attr] = dict(map(
164
- lambda item: (item[0], item[1].to_dict())
165
- if hasattr(item[1], "to_dict") else item,
166
- value.items()
167
- ))
168
- else:
169
- if attr in self.sensitive_list:
170
- result[attr] = "****"
171
- else:
172
- result[attr] = value
173
-
174
- return result
175
-
176
- def to_str(self):
177
- """Returns the string representation of the model"""
178
- import simplejson as json
179
- if six.PY2:
180
- import sys
181
- reload(sys)
182
- sys.setdefaultencoding("utf-8")
183
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
184
-
185
- def __repr__(self):
186
- """For `print`"""
187
- return self.to_str()
188
-
189
- def __eq__(self, other):
190
- """Returns true if both objects are equal"""
191
- if not isinstance(other, QaFlowHitResult):
192
- return False
193
-
194
- return self.__dict__ == other.__dict__
195
-
196
- def __ne__(self, other):
197
- """Returns true if both objects are not equal"""
198
- return not self == other
@@ -1,202 +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 QaGraphAnswer:
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
- 'answer': 'str',
21
- 'score': 'float',
22
- 'type': 'int',
23
- 'options': 'list[str]'
24
- }
25
-
26
- attribute_map = {
27
- 'answer': 'answer',
28
- 'score': 'score',
29
- 'type': 'type',
30
- 'options': 'options'
31
- }
32
-
33
- def __init__(self, answer=None, score=None, type=None, options=None):
34
- r"""QaGraphAnswer
35
-
36
- The model defined in huaweicloud sdk
37
-
38
- :param answer: 答案
39
- :type answer: str
40
- :param score: 评分
41
- :type score: float
42
- :param type: 类型
43
- :type type: int
44
- :param options: 列表
45
- :type options: list[str]
46
- """
47
-
48
-
49
-
50
- self._answer = None
51
- self._score = None
52
- self._type = None
53
- self._options = None
54
- self.discriminator = None
55
-
56
- if answer is not None:
57
- self.answer = answer
58
- if score is not None:
59
- self.score = score
60
- if type is not None:
61
- self.type = type
62
- if options is not None:
63
- self.options = options
64
-
65
- @property
66
- def answer(self):
67
- r"""Gets the answer of this QaGraphAnswer.
68
-
69
- 答案
70
-
71
- :return: The answer of this QaGraphAnswer.
72
- :rtype: str
73
- """
74
- return self._answer
75
-
76
- @answer.setter
77
- def answer(self, answer):
78
- r"""Sets the answer of this QaGraphAnswer.
79
-
80
- 答案
81
-
82
- :param answer: The answer of this QaGraphAnswer.
83
- :type answer: str
84
- """
85
- self._answer = answer
86
-
87
- @property
88
- def score(self):
89
- r"""Gets the score of this QaGraphAnswer.
90
-
91
- 评分
92
-
93
- :return: The score of this QaGraphAnswer.
94
- :rtype: float
95
- """
96
- return self._score
97
-
98
- @score.setter
99
- def score(self, score):
100
- r"""Sets the score of this QaGraphAnswer.
101
-
102
- 评分
103
-
104
- :param score: The score of this QaGraphAnswer.
105
- :type score: float
106
- """
107
- self._score = score
108
-
109
- @property
110
- def type(self):
111
- r"""Gets the type of this QaGraphAnswer.
112
-
113
- 类型
114
-
115
- :return: The type of this QaGraphAnswer.
116
- :rtype: int
117
- """
118
- return self._type
119
-
120
- @type.setter
121
- def type(self, type):
122
- r"""Sets the type of this QaGraphAnswer.
123
-
124
- 类型
125
-
126
- :param type: The type of this QaGraphAnswer.
127
- :type type: int
128
- """
129
- self._type = type
130
-
131
- @property
132
- def options(self):
133
- r"""Gets the options of this QaGraphAnswer.
134
-
135
- 列表
136
-
137
- :return: The options of this QaGraphAnswer.
138
- :rtype: list[str]
139
- """
140
- return self._options
141
-
142
- @options.setter
143
- def options(self, options):
144
- r"""Sets the options of this QaGraphAnswer.
145
-
146
- 列表
147
-
148
- :param options: The options of this QaGraphAnswer.
149
- :type options: list[str]
150
- """
151
- self._options = options
152
-
153
- def to_dict(self):
154
- """Returns the model properties as a dict"""
155
- result = {}
156
-
157
- for attr, _ in six.iteritems(self.openapi_types):
158
- value = getattr(self, attr)
159
- if isinstance(value, list):
160
- result[attr] = list(map(
161
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
- value
163
- ))
164
- elif hasattr(value, "to_dict"):
165
- result[attr] = value.to_dict()
166
- elif isinstance(value, dict):
167
- result[attr] = dict(map(
168
- lambda item: (item[0], item[1].to_dict())
169
- if hasattr(item[1], "to_dict") else item,
170
- value.items()
171
- ))
172
- else:
173
- if attr in self.sensitive_list:
174
- result[attr] = "****"
175
- else:
176
- result[attr] = value
177
-
178
- return result
179
-
180
- def to_str(self):
181
- """Returns the string representation of the model"""
182
- import simplejson as json
183
- if six.PY2:
184
- import sys
185
- reload(sys)
186
- sys.setdefaultencoding("utf-8")
187
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
-
189
- def __repr__(self):
190
- """For `print`"""
191
- return self.to_str()
192
-
193
- def __eq__(self, other):
194
- """Returns true if both objects are equal"""
195
- if not isinstance(other, QaGraphAnswer):
196
- return False
197
-
198
- return self.__dict__ == other.__dict__
199
-
200
- def __ne__(self, other):
201
- """Returns true if both objects are not equal"""
202
- return not self == other