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,225 +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 CreateQuestionInSessionRequest:
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
- 'session_id': 'str',
24
- 'body': 'SessionAskQuestionReq'
25
- }
26
-
27
- attribute_map = {
28
- 'x_service_key': 'x-service-key',
29
- 'x_site': 'x-site',
30
- 'x_language': 'x-language',
31
- 'session_id': 'session_id',
32
- 'body': 'body'
33
- }
34
-
35
- def __init__(self, x_service_key=None, x_site=None, x_language=None, session_id=None, body=None):
36
- r"""CreateQuestionInSessionRequest
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 session_id: 会话Id
47
- :type session_id: str
48
- :param body: Body of the CreateQuestionInSessionRequest
49
- :type body: :class:`huaweicloudsdkosm.v2.SessionAskQuestionReq`
50
- """
51
-
52
-
53
-
54
- self._x_service_key = None
55
- self._x_site = None
56
- self._x_language = None
57
- self._session_id = None
58
- self._body = None
59
- self.discriminator = None
60
-
61
- self.x_service_key = x_service_key
62
- if x_site is not None:
63
- self.x_site = x_site
64
- if x_language is not None:
65
- self.x_language = x_language
66
- self.session_id = session_id
67
- if body is not None:
68
- self.body = body
69
-
70
- @property
71
- def x_service_key(self):
72
- r"""Gets the x_service_key of this CreateQuestionInSessionRequest.
73
-
74
- 调用智能客服服务标志。
75
-
76
- :return: The x_service_key of this CreateQuestionInSessionRequest.
77
- :rtype: str
78
- """
79
- return self._x_service_key
80
-
81
- @x_service_key.setter
82
- def x_service_key(self, x_service_key):
83
- r"""Sets the x_service_key of this CreateQuestionInSessionRequest.
84
-
85
- 调用智能客服服务标志。
86
-
87
- :param x_service_key: The x_service_key of this CreateQuestionInSessionRequest.
88
- :type x_service_key: str
89
- """
90
- self._x_service_key = x_service_key
91
-
92
- @property
93
- def x_site(self):
94
- r"""Gets the x_site of this CreateQuestionInSessionRequest.
95
-
96
- 站点标记,0-中国站 1-国际站
97
-
98
- :return: The x_site of this CreateQuestionInSessionRequest.
99
- :rtype: str
100
- """
101
- return self._x_site
102
-
103
- @x_site.setter
104
- def x_site(self, x_site):
105
- r"""Sets the x_site of this CreateQuestionInSessionRequest.
106
-
107
- 站点标记,0-中国站 1-国际站
108
-
109
- :param x_site: The x_site of this CreateQuestionInSessionRequest.
110
- :type x_site: str
111
- """
112
- self._x_site = x_site
113
-
114
- @property
115
- def x_language(self):
116
- r"""Gets the x_language of this CreateQuestionInSessionRequest.
117
-
118
- 区域语言简写,en-us zh-cn
119
-
120
- :return: The x_language of this CreateQuestionInSessionRequest.
121
- :rtype: str
122
- """
123
- return self._x_language
124
-
125
- @x_language.setter
126
- def x_language(self, x_language):
127
- r"""Sets the x_language of this CreateQuestionInSessionRequest.
128
-
129
- 区域语言简写,en-us zh-cn
130
-
131
- :param x_language: The x_language of this CreateQuestionInSessionRequest.
132
- :type x_language: str
133
- """
134
- self._x_language = x_language
135
-
136
- @property
137
- def session_id(self):
138
- r"""Gets the session_id of this CreateQuestionInSessionRequest.
139
-
140
- 会话Id
141
-
142
- :return: The session_id of this CreateQuestionInSessionRequest.
143
- :rtype: str
144
- """
145
- return self._session_id
146
-
147
- @session_id.setter
148
- def session_id(self, session_id):
149
- r"""Sets the session_id of this CreateQuestionInSessionRequest.
150
-
151
- 会话Id
152
-
153
- :param session_id: The session_id of this CreateQuestionInSessionRequest.
154
- :type session_id: str
155
- """
156
- self._session_id = session_id
157
-
158
- @property
159
- def body(self):
160
- r"""Gets the body of this CreateQuestionInSessionRequest.
161
-
162
- :return: The body of this CreateQuestionInSessionRequest.
163
- :rtype: :class:`huaweicloudsdkosm.v2.SessionAskQuestionReq`
164
- """
165
- return self._body
166
-
167
- @body.setter
168
- def body(self, body):
169
- r"""Sets the body of this CreateQuestionInSessionRequest.
170
-
171
- :param body: The body of this CreateQuestionInSessionRequest.
172
- :type body: :class:`huaweicloudsdkosm.v2.SessionAskQuestionReq`
173
- """
174
- self._body = body
175
-
176
- def to_dict(self):
177
- """Returns the model properties as a dict"""
178
- result = {}
179
-
180
- for attr, _ in six.iteritems(self.openapi_types):
181
- value = getattr(self, attr)
182
- if isinstance(value, list):
183
- result[attr] = list(map(
184
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
185
- value
186
- ))
187
- elif hasattr(value, "to_dict"):
188
- result[attr] = value.to_dict()
189
- elif isinstance(value, dict):
190
- result[attr] = dict(map(
191
- lambda item: (item[0], item[1].to_dict())
192
- if hasattr(item[1], "to_dict") else item,
193
- value.items()
194
- ))
195
- else:
196
- if attr in self.sensitive_list:
197
- result[attr] = "****"
198
- else:
199
- result[attr] = value
200
-
201
- return result
202
-
203
- def to_str(self):
204
- """Returns the string representation of the model"""
205
- import simplejson as json
206
- if six.PY2:
207
- import sys
208
- reload(sys)
209
- sys.setdefaultencoding("utf-8")
210
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
211
-
212
- def __repr__(self):
213
- """For `print`"""
214
- return self.to_str()
215
-
216
- def __eq__(self, other):
217
- """Returns true if both objects are equal"""
218
- if not isinstance(other, CreateQuestionInSessionRequest):
219
- return False
220
-
221
- return self.__dict__ == other.__dict__
222
-
223
- def __ne__(self, other):
224
- """Returns true if both objects are not equal"""
225
- return not self == other
@@ -1,232 +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 CreateQuestionInSessionResponse(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
- 'answers': 'list[AnswerQaPair]',
22
- 'error_code': 'str',
23
- 'error_msg': 'str',
24
- 'answer_type': 'int',
25
- 'request_id': 'str'
26
- }
27
-
28
- attribute_map = {
29
- 'answers': 'answers',
30
- 'error_code': 'error_code',
31
- 'error_msg': 'error_msg',
32
- 'answer_type': 'answer_type',
33
- 'request_id': 'request_id'
34
- }
35
-
36
- def __init__(self, answers=None, error_code=None, error_msg=None, answer_type=None, request_id=None):
37
- r"""CreateQuestionInSessionResponse
38
-
39
- The model defined in huaweicloud sdk
40
-
41
- :param answers: 答案列表
42
- :type answers: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`]
43
- :param error_code: 错误码
44
- :type error_code: str
45
- :param error_msg: 错误描述
46
- :type error_msg: str
47
- :param answer_type: 答案类型:0 知识库回复,1 技能回复,2 闲聊回复,3 华为云答案。
48
- :type answer_type: int
49
- :param request_id: 请求Id
50
- :type request_id: str
51
- """
52
-
53
- super(CreateQuestionInSessionResponse, self).__init__()
54
-
55
- self._answers = None
56
- self._error_code = None
57
- self._error_msg = None
58
- self._answer_type = None
59
- self._request_id = None
60
- self.discriminator = None
61
-
62
- if answers is not None:
63
- self.answers = answers
64
- if error_code is not None:
65
- self.error_code = error_code
66
- if error_msg is not None:
67
- self.error_msg = error_msg
68
- if answer_type is not None:
69
- self.answer_type = answer_type
70
- if request_id is not None:
71
- self.request_id = request_id
72
-
73
- @property
74
- def answers(self):
75
- r"""Gets the answers of this CreateQuestionInSessionResponse.
76
-
77
- 答案列表
78
-
79
- :return: The answers of this CreateQuestionInSessionResponse.
80
- :rtype: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`]
81
- """
82
- return self._answers
83
-
84
- @answers.setter
85
- def answers(self, answers):
86
- r"""Sets the answers of this CreateQuestionInSessionResponse.
87
-
88
- 答案列表
89
-
90
- :param answers: The answers of this CreateQuestionInSessionResponse.
91
- :type answers: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`]
92
- """
93
- self._answers = answers
94
-
95
- @property
96
- def error_code(self):
97
- r"""Gets the error_code of this CreateQuestionInSessionResponse.
98
-
99
- 错误码
100
-
101
- :return: The error_code of this CreateQuestionInSessionResponse.
102
- :rtype: str
103
- """
104
- return self._error_code
105
-
106
- @error_code.setter
107
- def error_code(self, error_code):
108
- r"""Sets the error_code of this CreateQuestionInSessionResponse.
109
-
110
- 错误码
111
-
112
- :param error_code: The error_code of this CreateQuestionInSessionResponse.
113
- :type error_code: str
114
- """
115
- self._error_code = error_code
116
-
117
- @property
118
- def error_msg(self):
119
- r"""Gets the error_msg of this CreateQuestionInSessionResponse.
120
-
121
- 错误描述
122
-
123
- :return: The error_msg of this CreateQuestionInSessionResponse.
124
- :rtype: str
125
- """
126
- return self._error_msg
127
-
128
- @error_msg.setter
129
- def error_msg(self, error_msg):
130
- r"""Sets the error_msg of this CreateQuestionInSessionResponse.
131
-
132
- 错误描述
133
-
134
- :param error_msg: The error_msg of this CreateQuestionInSessionResponse.
135
- :type error_msg: str
136
- """
137
- self._error_msg = error_msg
138
-
139
- @property
140
- def answer_type(self):
141
- r"""Gets the answer_type of this CreateQuestionInSessionResponse.
142
-
143
- 答案类型:0 知识库回复,1 技能回复,2 闲聊回复,3 华为云答案。
144
-
145
- :return: The answer_type of this CreateQuestionInSessionResponse.
146
- :rtype: int
147
- """
148
- return self._answer_type
149
-
150
- @answer_type.setter
151
- def answer_type(self, answer_type):
152
- r"""Sets the answer_type of this CreateQuestionInSessionResponse.
153
-
154
- 答案类型:0 知识库回复,1 技能回复,2 闲聊回复,3 华为云答案。
155
-
156
- :param answer_type: The answer_type of this CreateQuestionInSessionResponse.
157
- :type answer_type: int
158
- """
159
- self._answer_type = answer_type
160
-
161
- @property
162
- def request_id(self):
163
- r"""Gets the request_id of this CreateQuestionInSessionResponse.
164
-
165
- 请求Id
166
-
167
- :return: The request_id of this CreateQuestionInSessionResponse.
168
- :rtype: str
169
- """
170
- return self._request_id
171
-
172
- @request_id.setter
173
- def request_id(self, request_id):
174
- r"""Sets the request_id of this CreateQuestionInSessionResponse.
175
-
176
- 请求Id
177
-
178
- :param request_id: The request_id of this CreateQuestionInSessionResponse.
179
- :type request_id: str
180
- """
181
- self._request_id = request_id
182
-
183
- def to_dict(self):
184
- """Returns the model properties as a dict"""
185
- result = {}
186
-
187
- for attr, _ in six.iteritems(self.openapi_types):
188
- value = getattr(self, attr)
189
- if isinstance(value, list):
190
- result[attr] = list(map(
191
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
- value
193
- ))
194
- elif hasattr(value, "to_dict"):
195
- result[attr] = value.to_dict()
196
- elif isinstance(value, dict):
197
- result[attr] = dict(map(
198
- lambda item: (item[0], item[1].to_dict())
199
- if hasattr(item[1], "to_dict") else item,
200
- value.items()
201
- ))
202
- else:
203
- if attr in self.sensitive_list:
204
- result[attr] = "****"
205
- else:
206
- result[attr] = value
207
-
208
- return result
209
-
210
- def to_str(self):
211
- """Returns the string representation of the model"""
212
- import simplejson as json
213
- if six.PY2:
214
- import sys
215
- reload(sys)
216
- sys.setdefaultencoding("utf-8")
217
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
218
-
219
- def __repr__(self):
220
- """For `print`"""
221
- return self.to_str()
222
-
223
- def __eq__(self, other):
224
- """Returns true if both objects are equal"""
225
- if not isinstance(other, CreateQuestionInSessionResponse):
226
- return False
227
-
228
- return self.__dict__ == other.__dict__
229
-
230
- def __ne__(self, other):
231
- """Returns true if both objects are not equal"""
232
- return not self == other
@@ -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