huaweicloudsdkosm 3.1.164__py3-none-any.whl → 3.1.165__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (69) hide show
  1. huaweicloudsdkosm/v2/__init__.py +0 -60
  2. huaweicloudsdkosm/v2/model/__init__.py +0 -60
  3. huaweicloudsdkosm/v2/osm_async_client.py +45 -1130
  4. huaweicloudsdkosm/v2/osm_client.py +45 -1130
  5. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/METADATA +2 -2
  6. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/RECORD +9 -69
  7. huaweicloudsdkosm/v2/model/answer.py +0 -227
  8. huaweicloudsdkosm/v2/model/answer_detail.py +0 -194
  9. huaweicloudsdkosm/v2/model/answer_info.py +0 -231
  10. huaweicloudsdkosm/v2/model/answer_qa_pair.py +0 -318
  11. huaweicloudsdkosm/v2/model/article.py +0 -347
  12. huaweicloudsdkosm/v2/model/ask_question_req.py +0 -316
  13. huaweicloudsdkosm/v2/model/cbs_flow_entry.py +0 -144
  14. huaweicloudsdkosm/v2/model/create_ask_question_request.py +0 -197
  15. huaweicloudsdkosm/v2/model/create_ask_question_response.py +0 -232
  16. huaweicloudsdkosm/v2/model/create_evaluate_request.py +0 -253
  17. huaweicloudsdkosm/v2/model/create_evaluate_response.py +0 -174
  18. huaweicloudsdkosm/v2/model/create_qa_ask_request.py +0 -197
  19. huaweicloudsdkosm/v2/model/create_qa_ask_response.py +0 -282
  20. huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +0 -226
  21. huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +0 -174
  22. huaweicloudsdkosm/v2/model/create_question_in_session_request.py +0 -225
  23. huaweicloudsdkosm/v2/model/create_question_in_session_response.py +0 -232
  24. huaweicloudsdkosm/v2/model/create_session_request.py +0 -172
  25. huaweicloudsdkosm/v2/model/create_session_response.py +0 -174
  26. huaweicloudsdkosm/v2/model/evaluate_request_req.py +0 -115
  27. huaweicloudsdkosm/v2/model/extend_question.py +0 -144
  28. huaweicloudsdkosm/v2/model/feedback_option.py +0 -144
  29. huaweicloudsdkosm/v2/model/lang_result.py +0 -144
  30. huaweicloudsdkosm/v2/model/list_articles_request.py +0 -226
  31. huaweicloudsdkosm/v2/model/list_articles_response.py +0 -174
  32. huaweicloudsdkosm/v2/model/list_feedback_option_request.py +0 -230
  33. huaweicloudsdkosm/v2/model/list_feedback_option_response.py +0 -174
  34. huaweicloudsdkosm/v2/model/list_notices_request.py +0 -198
  35. huaweicloudsdkosm/v2/model/list_notices_response.py +0 -174
  36. huaweicloudsdkosm/v2/model/list_recommend_words_request.py +0 -260
  37. huaweicloudsdkosm/v2/model/list_recommend_words_response.py +0 -203
  38. huaweicloudsdkosm/v2/model/list_tools_request.py +0 -198
  39. huaweicloudsdkosm/v2/model/list_tools_response.py +0 -174
  40. huaweicloudsdkosm/v2/model/notice.py +0 -199
  41. huaweicloudsdkosm/v2/model/qa_ask_req.py +0 -346
  42. huaweicloudsdkosm/v2/model/qa_feedback_req.py +0 -345
  43. huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +0 -202
  44. huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +0 -198
  45. huaweicloudsdkosm/v2/model/qa_graph_answer.py +0 -202
  46. huaweicloudsdkosm/v2/model/qa_pair.py +0 -289
  47. huaweicloudsdkosm/v2/model/qabot_answer.py +0 -347
  48. huaweicloudsdkosm/v2/model/query_associated_question_req.py +0 -172
  49. huaweicloudsdkosm/v2/model/recommend_word.py +0 -285
  50. huaweicloudsdkosm/v2/model/relation_theme.py +0 -144
  51. huaweicloudsdkosm/v2/model/relevance_qapair.py +0 -173
  52. huaweicloudsdkosm/v2/model/search_articles_req.py +0 -201
  53. huaweicloudsdkosm/v2/model/search_notices_req.py +0 -143
  54. huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +0 -144
  55. huaweicloudsdkosm/v2/model/search_tools_req.py +0 -201
  56. huaweicloudsdkosm/v2/model/session_ask_question_req.py +0 -288
  57. huaweicloudsdkosm/v2/model/show_associated_questions_request.py +0 -197
  58. huaweicloudsdkosm/v2/model/show_associated_questions_response.py +0 -174
  59. huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +0 -200
  60. huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +0 -170
  61. huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +0 -225
  62. huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +0 -174
  63. huaweicloudsdkosm/v2/model/show_theme_request.py +0 -259
  64. huaweicloudsdkosm/v2/model/show_theme_response.py +0 -232
  65. huaweicloudsdkosm/v2/model/simple_qa_pair.py +0 -173
  66. huaweicloudsdkosm/v2/model/tool.py +0 -287
  67. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/LICENSE +0 -0
  68. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/WHEEL +0 -0
  69. {huaweicloudsdkosm-3.1.164.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/top_level.txt +0 -0
@@ -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 LangResult:
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
- 'language': 'str',
21
- 'is_en': 'bool'
22
- }
23
-
24
- attribute_map = {
25
- 'language': 'language',
26
- 'is_en': 'is_en'
27
- }
28
-
29
- def __init__(self, language=None, is_en=None):
30
- r"""LangResult
31
-
32
- The model defined in huaweicloud sdk
33
-
34
- :param language: 语言
35
- :type language: str
36
- :param is_en: 是否英语
37
- :type is_en: bool
38
- """
39
-
40
-
41
-
42
- self._language = None
43
- self._is_en = None
44
- self.discriminator = None
45
-
46
- if language is not None:
47
- self.language = language
48
- if is_en is not None:
49
- self.is_en = is_en
50
-
51
- @property
52
- def language(self):
53
- r"""Gets the language of this LangResult.
54
-
55
- 语言
56
-
57
- :return: The language of this LangResult.
58
- :rtype: str
59
- """
60
- return self._language
61
-
62
- @language.setter
63
- def language(self, language):
64
- r"""Sets the language of this LangResult.
65
-
66
- 语言
67
-
68
- :param language: The language of this LangResult.
69
- :type language: str
70
- """
71
- self._language = language
72
-
73
- @property
74
- def is_en(self):
75
- r"""Gets the is_en of this LangResult.
76
-
77
- 是否英语
78
-
79
- :return: The is_en of this LangResult.
80
- :rtype: bool
81
- """
82
- return self._is_en
83
-
84
- @is_en.setter
85
- def is_en(self, is_en):
86
- r"""Sets the is_en of this LangResult.
87
-
88
- 是否英语
89
-
90
- :param is_en: The is_en of this LangResult.
91
- :type is_en: bool
92
- """
93
- self._is_en = is_en
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, LangResult):
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
@@ -1,226 +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 ListArticlesRequest:
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
- 'search_type': 'str',
24
- 'body': 'SearchArticlesReq'
25
- }
26
-
27
- attribute_map = {
28
- 'x_service_key': 'x-service-key',
29
- 'x_site': 'x-site',
30
- 'x_language': 'x-language',
31
- 'search_type': 'search_type',
32
- 'body': 'body'
33
- }
34
-
35
- def __init__(self, x_service_key=None, x_site=None, x_language=None, search_type=None, body=None):
36
- r"""ListArticlesRequest
37
-
38
- The model defined in huaweicloud sdk
39
-
40
- :param x_service_key: 调用智能客服服务标志。
41
- :type x_service_key: str
42
- :param x_site: 站点标记,0-中国站 1-国际站
43
- :type x_site: str
44
- :param x_language: 区域语言简写,en-us zh-cn
45
- :type x_language: str
46
- :param search_type: 搜索类型:HOT-热点案例,RECOMMEND-推荐案例
47
- :type search_type: str
48
- :param body: Body of the ListArticlesRequest
49
- :type body: :class:`huaweicloudsdkosm.v2.SearchArticlesReq`
50
- """
51
-
52
-
53
-
54
- self._x_service_key = None
55
- self._x_site = None
56
- self._x_language = None
57
- self._search_type = None
58
- self._body = None
59
- self.discriminator = None
60
-
61
- if x_service_key is not None:
62
- self.x_service_key = x_service_key
63
- if x_site is not None:
64
- self.x_site = x_site
65
- if x_language is not None:
66
- self.x_language = x_language
67
- self.search_type = search_type
68
- if body is not None:
69
- self.body = body
70
-
71
- @property
72
- def x_service_key(self):
73
- r"""Gets the x_service_key of this ListArticlesRequest.
74
-
75
- 调用智能客服服务标志。
76
-
77
- :return: The x_service_key of this ListArticlesRequest.
78
- :rtype: str
79
- """
80
- return self._x_service_key
81
-
82
- @x_service_key.setter
83
- def x_service_key(self, x_service_key):
84
- r"""Sets the x_service_key of this ListArticlesRequest.
85
-
86
- 调用智能客服服务标志。
87
-
88
- :param x_service_key: The x_service_key of this ListArticlesRequest.
89
- :type x_service_key: str
90
- """
91
- self._x_service_key = x_service_key
92
-
93
- @property
94
- def x_site(self):
95
- r"""Gets the x_site of this ListArticlesRequest.
96
-
97
- 站点标记,0-中国站 1-国际站
98
-
99
- :return: The x_site of this ListArticlesRequest.
100
- :rtype: str
101
- """
102
- return self._x_site
103
-
104
- @x_site.setter
105
- def x_site(self, x_site):
106
- r"""Sets the x_site of this ListArticlesRequest.
107
-
108
- 站点标记,0-中国站 1-国际站
109
-
110
- :param x_site: The x_site of this ListArticlesRequest.
111
- :type x_site: str
112
- """
113
- self._x_site = x_site
114
-
115
- @property
116
- def x_language(self):
117
- r"""Gets the x_language of this ListArticlesRequest.
118
-
119
- 区域语言简写,en-us zh-cn
120
-
121
- :return: The x_language of this ListArticlesRequest.
122
- :rtype: str
123
- """
124
- return self._x_language
125
-
126
- @x_language.setter
127
- def x_language(self, x_language):
128
- r"""Sets the x_language of this ListArticlesRequest.
129
-
130
- 区域语言简写,en-us zh-cn
131
-
132
- :param x_language: The x_language of this ListArticlesRequest.
133
- :type x_language: str
134
- """
135
- self._x_language = x_language
136
-
137
- @property
138
- def search_type(self):
139
- r"""Gets the search_type of this ListArticlesRequest.
140
-
141
- 搜索类型:HOT-热点案例,RECOMMEND-推荐案例
142
-
143
- :return: The search_type of this ListArticlesRequest.
144
- :rtype: str
145
- """
146
- return self._search_type
147
-
148
- @search_type.setter
149
- def search_type(self, search_type):
150
- r"""Sets the search_type of this ListArticlesRequest.
151
-
152
- 搜索类型:HOT-热点案例,RECOMMEND-推荐案例
153
-
154
- :param search_type: The search_type of this ListArticlesRequest.
155
- :type search_type: str
156
- """
157
- self._search_type = search_type
158
-
159
- @property
160
- def body(self):
161
- r"""Gets the body of this ListArticlesRequest.
162
-
163
- :return: The body of this ListArticlesRequest.
164
- :rtype: :class:`huaweicloudsdkosm.v2.SearchArticlesReq`
165
- """
166
- return self._body
167
-
168
- @body.setter
169
- def body(self, body):
170
- r"""Sets the body of this ListArticlesRequest.
171
-
172
- :param body: The body of this ListArticlesRequest.
173
- :type body: :class:`huaweicloudsdkosm.v2.SearchArticlesReq`
174
- """
175
- self._body = body
176
-
177
- def to_dict(self):
178
- """Returns the model properties as a dict"""
179
- result = {}
180
-
181
- for attr, _ in six.iteritems(self.openapi_types):
182
- value = getattr(self, attr)
183
- if isinstance(value, list):
184
- result[attr] = list(map(
185
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
186
- value
187
- ))
188
- elif hasattr(value, "to_dict"):
189
- result[attr] = value.to_dict()
190
- elif isinstance(value, dict):
191
- result[attr] = dict(map(
192
- lambda item: (item[0], item[1].to_dict())
193
- if hasattr(item[1], "to_dict") else item,
194
- value.items()
195
- ))
196
- else:
197
- if attr in self.sensitive_list:
198
- result[attr] = "****"
199
- else:
200
- result[attr] = value
201
-
202
- return result
203
-
204
- def to_str(self):
205
- """Returns the string representation of the model"""
206
- import simplejson as json
207
- if six.PY2:
208
- import sys
209
- reload(sys)
210
- sys.setdefaultencoding("utf-8")
211
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
212
-
213
- def __repr__(self):
214
- """For `print`"""
215
- return self.to_str()
216
-
217
- def __eq__(self, other):
218
- """Returns true if both objects are equal"""
219
- if not isinstance(other, ListArticlesRequest):
220
- return False
221
-
222
- return self.__dict__ == other.__dict__
223
-
224
- def __ne__(self, other):
225
- """Returns true if both objects are not equal"""
226
- 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 ListArticlesResponse(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
- 'articles': 'list[Article]',
22
- 'error_code': 'str',
23
- 'error_msg': 'str'
24
- }
25
-
26
- attribute_map = {
27
- 'articles': 'articles',
28
- 'error_code': 'error_code',
29
- 'error_msg': 'error_msg'
30
- }
31
-
32
- def __init__(self, articles=None, error_code=None, error_msg=None):
33
- r"""ListArticlesResponse
34
-
35
- The model defined in huaweicloud sdk
36
-
37
- :param articles: 热点/推荐案例列表
38
- :type articles: list[:class:`huaweicloudsdkosm.v2.Article`]
39
- :param error_code: 错误码
40
- :type error_code: str
41
- :param error_msg: 错误描述
42
- :type error_msg: str
43
- """
44
-
45
- super(ListArticlesResponse, self).__init__()
46
-
47
- self._articles = None
48
- self._error_code = None
49
- self._error_msg = None
50
- self.discriminator = None
51
-
52
- if articles is not None:
53
- self.articles = articles
54
- if error_code is not None:
55
- self.error_code = error_code
56
- if error_msg is not None:
57
- self.error_msg = error_msg
58
-
59
- @property
60
- def articles(self):
61
- r"""Gets the articles of this ListArticlesResponse.
62
-
63
- 热点/推荐案例列表
64
-
65
- :return: The articles of this ListArticlesResponse.
66
- :rtype: list[:class:`huaweicloudsdkosm.v2.Article`]
67
- """
68
- return self._articles
69
-
70
- @articles.setter
71
- def articles(self, articles):
72
- r"""Sets the articles of this ListArticlesResponse.
73
-
74
- 热点/推荐案例列表
75
-
76
- :param articles: The articles of this ListArticlesResponse.
77
- :type articles: list[:class:`huaweicloudsdkosm.v2.Article`]
78
- """
79
- self._articles = articles
80
-
81
- @property
82
- def error_code(self):
83
- r"""Gets the error_code of this ListArticlesResponse.
84
-
85
- 错误码
86
-
87
- :return: The error_code of this ListArticlesResponse.
88
- :rtype: str
89
- """
90
- return self._error_code
91
-
92
- @error_code.setter
93
- def error_code(self, error_code):
94
- r"""Sets the error_code of this ListArticlesResponse.
95
-
96
- 错误码
97
-
98
- :param error_code: The error_code of this ListArticlesResponse.
99
- :type error_code: str
100
- """
101
- self._error_code = error_code
102
-
103
- @property
104
- def error_msg(self):
105
- r"""Gets the error_msg of this ListArticlesResponse.
106
-
107
- 错误描述
108
-
109
- :return: The error_msg of this ListArticlesResponse.
110
- :rtype: str
111
- """
112
- return self._error_msg
113
-
114
- @error_msg.setter
115
- def error_msg(self, error_msg):
116
- r"""Sets the error_msg of this ListArticlesResponse.
117
-
118
- 错误描述
119
-
120
- :param error_msg: The error_msg of this ListArticlesResponse.
121
- :type error_msg: str
122
- """
123
- self._error_msg = error_msg
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, ListArticlesResponse):
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