huaweicloudsdkeihealth 3.1.149__py2.py3-none-any.whl → 3.1.151__py2.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.
Files changed (55) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +46 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +1323 -48
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +1323 -48
  4. huaweicloudsdkeihealth/v1/model/__init__.py +46 -0
  5. huaweicloudsdkeihealth/v1/model/agency_dto.py +231 -0
  6. huaweicloudsdkeihealth/v1/model/app_dto.py +492 -0
  7. huaweicloudsdkeihealth/v1/model/cce_cluster_rsp.py +260 -0
  8. huaweicloudsdkeihealth/v1/model/computing_cluster_rsp.py +463 -0
  9. huaweicloudsdkeihealth/v1/model/create_computing_cluster_req.py +114 -0
  10. huaweicloudsdkeihealth/v1/model/create_computing_cluster_request.py +111 -0
  11. huaweicloudsdkeihealth/v1/model/create_computing_cluster_response.py +116 -0
  12. huaweicloudsdkeihealth/v1/model/delete_computing_cluster_request.py +114 -0
  13. huaweicloudsdkeihealth/v1/model/delete_computing_cluster_response.py +85 -0
  14. huaweicloudsdkeihealth/v1/model/iam_role_dto.py +231 -0
  15. huaweicloudsdkeihealth/v1/model/initialize_platform_request.py +84 -0
  16. huaweicloudsdkeihealth/v1/model/initialize_platform_response.py +85 -0
  17. huaweicloudsdkeihealth/v1/model/install_step.py +169 -0
  18. huaweicloudsdkeihealth/v1/model/list_cce_cluster_request.py +84 -0
  19. huaweicloudsdkeihealth/v1/model/list_cce_cluster_response.py +145 -0
  20. huaweicloudsdkeihealth/v1/model/list_cluster_install_step_request.py +114 -0
  21. huaweicloudsdkeihealth/v1/model/list_cluster_install_step_response.py +145 -0
  22. huaweicloudsdkeihealth/v1/model/list_computing_cluster_request.py +144 -0
  23. huaweicloudsdkeihealth/v1/model/list_computing_cluster_response.py +145 -0
  24. huaweicloudsdkeihealth/v1/model/list_project_statistics_request.py +84 -0
  25. huaweicloudsdkeihealth/v1/model/list_project_statistics_response.py +145 -0
  26. huaweicloudsdkeihealth/v1/model/list_sfs_turbos_request.py +144 -0
  27. huaweicloudsdkeihealth/v1/model/list_sfs_turbos_response.py +145 -0
  28. huaweicloudsdkeihealth/v1/model/list_user_app_request.py +492 -0
  29. huaweicloudsdkeihealth/v1/model/list_user_app_response.py +145 -0
  30. huaweicloudsdkeihealth/v1/model/list_user_drug_job_request.py +492 -0
  31. huaweicloudsdkeihealth/v1/model/list_user_drug_job_response.py +145 -0
  32. huaweicloudsdkeihealth/v1/model/list_user_image_request.py +521 -0
  33. huaweicloudsdkeihealth/v1/model/list_user_image_response.py +145 -0
  34. huaweicloudsdkeihealth/v1/model/list_user_job_request.py +492 -0
  35. huaweicloudsdkeihealth/v1/model/list_user_job_response.py +203 -0
  36. huaweicloudsdkeihealth/v1/model/list_user_notebook_request.py +492 -0
  37. huaweicloudsdkeihealth/v1/model/list_user_notebook_response.py +145 -0
  38. huaweicloudsdkeihealth/v1/model/list_user_workflow_request.py +492 -0
  39. huaweicloudsdkeihealth/v1/model/list_user_workflow_response.py +145 -0
  40. huaweicloudsdkeihealth/v1/model/project_statistic.py +347 -0
  41. huaweicloudsdkeihealth/v1/model/sfs_turbo_rsp.py +231 -0
  42. huaweicloudsdkeihealth/v1/model/show_agency_request.py +84 -0
  43. huaweicloudsdkeihealth/v1/model/show_agency_response.py +174 -0
  44. huaweicloudsdkeihealth/v1/model/statistic_dto.py +144 -0
  45. huaweicloudsdkeihealth/v1/model/step_status.py +89 -0
  46. huaweicloudsdkeihealth/v1/model/update_agency_request.py +84 -0
  47. huaweicloudsdkeihealth/v1/model/update_agency_response.py +85 -0
  48. huaweicloudsdkeihealth/v1/model/update_top_project_req.py +114 -0
  49. huaweicloudsdkeihealth/v1/model/update_top_project_request.py +139 -0
  50. huaweicloudsdkeihealth/v1/model/update_top_project_response.py +85 -0
  51. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/METADATA +2 -2
  52. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/RECORD +55 -9
  53. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/LICENSE +0 -0
  54. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/WHEEL +0 -0
  55. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,347 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ProjectStatistic:
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
+ 'role_type': 'str',
23
+ 'creator': 'str',
24
+ 'create_time': 'str',
25
+ 'update_time': 'str',
26
+ 'top_time': 'str',
27
+ 'user_statistics': 'list[StatisticDto]',
28
+ 'total_statistics': 'list[StatisticDto]'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'id': 'id',
33
+ 'name': 'name',
34
+ 'role_type': 'role_type',
35
+ 'creator': 'creator',
36
+ 'create_time': 'create_time',
37
+ 'update_time': 'update_time',
38
+ 'top_time': 'top_time',
39
+ 'user_statistics': 'user_statistics',
40
+ 'total_statistics': 'total_statistics'
41
+ }
42
+
43
+ def __init__(self, id=None, name=None, role_type=None, creator=None, create_time=None, update_time=None, top_time=None, user_statistics=None, total_statistics=None):
44
+ r"""ProjectStatistic
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param id: 空间ID。
49
+ :type id: str
50
+ :param name: 空间名称。
51
+ :type name: str
52
+ :param role_type: 用户所属空间的角色。
53
+ :type role_type: str
54
+ :param creator: 空间所有者。
55
+ :type creator: str
56
+ :param create_time: 空间创建时间。
57
+ :type create_time: str
58
+ :param update_time: 空间更新时间。
59
+ :type update_time: str
60
+ :param top_time: 空间置顶时间。
61
+ :type top_time: str
62
+ :param user_statistics: 用户资源统计详情
63
+ :type user_statistics: list[:class:`huaweicloudsdkeihealth.v1.StatisticDto`]
64
+ :param total_statistics: 总资源统计详情
65
+ :type total_statistics: list[:class:`huaweicloudsdkeihealth.v1.StatisticDto`]
66
+ """
67
+
68
+
69
+
70
+ self._id = None
71
+ self._name = None
72
+ self._role_type = None
73
+ self._creator = None
74
+ self._create_time = None
75
+ self._update_time = None
76
+ self._top_time = None
77
+ self._user_statistics = None
78
+ self._total_statistics = None
79
+ self.discriminator = None
80
+
81
+ if id is not None:
82
+ self.id = id
83
+ if name is not None:
84
+ self.name = name
85
+ if role_type is not None:
86
+ self.role_type = role_type
87
+ if creator is not None:
88
+ self.creator = creator
89
+ if create_time is not None:
90
+ self.create_time = create_time
91
+ if update_time is not None:
92
+ self.update_time = update_time
93
+ if top_time is not None:
94
+ self.top_time = top_time
95
+ if user_statistics is not None:
96
+ self.user_statistics = user_statistics
97
+ if total_statistics is not None:
98
+ self.total_statistics = total_statistics
99
+
100
+ @property
101
+ def id(self):
102
+ r"""Gets the id of this ProjectStatistic.
103
+
104
+ 空间ID。
105
+
106
+ :return: The id of this ProjectStatistic.
107
+ :rtype: str
108
+ """
109
+ return self._id
110
+
111
+ @id.setter
112
+ def id(self, id):
113
+ r"""Sets the id of this ProjectStatistic.
114
+
115
+ 空间ID。
116
+
117
+ :param id: The id of this ProjectStatistic.
118
+ :type id: str
119
+ """
120
+ self._id = id
121
+
122
+ @property
123
+ def name(self):
124
+ r"""Gets the name of this ProjectStatistic.
125
+
126
+ 空间名称。
127
+
128
+ :return: The name of this ProjectStatistic.
129
+ :rtype: str
130
+ """
131
+ return self._name
132
+
133
+ @name.setter
134
+ def name(self, name):
135
+ r"""Sets the name of this ProjectStatistic.
136
+
137
+ 空间名称。
138
+
139
+ :param name: The name of this ProjectStatistic.
140
+ :type name: str
141
+ """
142
+ self._name = name
143
+
144
+ @property
145
+ def role_type(self):
146
+ r"""Gets the role_type of this ProjectStatistic.
147
+
148
+ 用户所属空间的角色。
149
+
150
+ :return: The role_type of this ProjectStatistic.
151
+ :rtype: str
152
+ """
153
+ return self._role_type
154
+
155
+ @role_type.setter
156
+ def role_type(self, role_type):
157
+ r"""Sets the role_type of this ProjectStatistic.
158
+
159
+ 用户所属空间的角色。
160
+
161
+ :param role_type: The role_type of this ProjectStatistic.
162
+ :type role_type: str
163
+ """
164
+ self._role_type = role_type
165
+
166
+ @property
167
+ def creator(self):
168
+ r"""Gets the creator of this ProjectStatistic.
169
+
170
+ 空间所有者。
171
+
172
+ :return: The creator of this ProjectStatistic.
173
+ :rtype: str
174
+ """
175
+ return self._creator
176
+
177
+ @creator.setter
178
+ def creator(self, creator):
179
+ r"""Sets the creator of this ProjectStatistic.
180
+
181
+ 空间所有者。
182
+
183
+ :param creator: The creator of this ProjectStatistic.
184
+ :type creator: str
185
+ """
186
+ self._creator = creator
187
+
188
+ @property
189
+ def create_time(self):
190
+ r"""Gets the create_time of this ProjectStatistic.
191
+
192
+ 空间创建时间。
193
+
194
+ :return: The create_time of this ProjectStatistic.
195
+ :rtype: str
196
+ """
197
+ return self._create_time
198
+
199
+ @create_time.setter
200
+ def create_time(self, create_time):
201
+ r"""Sets the create_time of this ProjectStatistic.
202
+
203
+ 空间创建时间。
204
+
205
+ :param create_time: The create_time of this ProjectStatistic.
206
+ :type create_time: str
207
+ """
208
+ self._create_time = create_time
209
+
210
+ @property
211
+ def update_time(self):
212
+ r"""Gets the update_time of this ProjectStatistic.
213
+
214
+ 空间更新时间。
215
+
216
+ :return: The update_time of this ProjectStatistic.
217
+ :rtype: str
218
+ """
219
+ return self._update_time
220
+
221
+ @update_time.setter
222
+ def update_time(self, update_time):
223
+ r"""Sets the update_time of this ProjectStatistic.
224
+
225
+ 空间更新时间。
226
+
227
+ :param update_time: The update_time of this ProjectStatistic.
228
+ :type update_time: str
229
+ """
230
+ self._update_time = update_time
231
+
232
+ @property
233
+ def top_time(self):
234
+ r"""Gets the top_time of this ProjectStatistic.
235
+
236
+ 空间置顶时间。
237
+
238
+ :return: The top_time of this ProjectStatistic.
239
+ :rtype: str
240
+ """
241
+ return self._top_time
242
+
243
+ @top_time.setter
244
+ def top_time(self, top_time):
245
+ r"""Sets the top_time of this ProjectStatistic.
246
+
247
+ 空间置顶时间。
248
+
249
+ :param top_time: The top_time of this ProjectStatistic.
250
+ :type top_time: str
251
+ """
252
+ self._top_time = top_time
253
+
254
+ @property
255
+ def user_statistics(self):
256
+ r"""Gets the user_statistics of this ProjectStatistic.
257
+
258
+ 用户资源统计详情
259
+
260
+ :return: The user_statistics of this ProjectStatistic.
261
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.StatisticDto`]
262
+ """
263
+ return self._user_statistics
264
+
265
+ @user_statistics.setter
266
+ def user_statistics(self, user_statistics):
267
+ r"""Sets the user_statistics of this ProjectStatistic.
268
+
269
+ 用户资源统计详情
270
+
271
+ :param user_statistics: The user_statistics of this ProjectStatistic.
272
+ :type user_statistics: list[:class:`huaweicloudsdkeihealth.v1.StatisticDto`]
273
+ """
274
+ self._user_statistics = user_statistics
275
+
276
+ @property
277
+ def total_statistics(self):
278
+ r"""Gets the total_statistics of this ProjectStatistic.
279
+
280
+ 总资源统计详情
281
+
282
+ :return: The total_statistics of this ProjectStatistic.
283
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.StatisticDto`]
284
+ """
285
+ return self._total_statistics
286
+
287
+ @total_statistics.setter
288
+ def total_statistics(self, total_statistics):
289
+ r"""Sets the total_statistics of this ProjectStatistic.
290
+
291
+ 总资源统计详情
292
+
293
+ :param total_statistics: The total_statistics of this ProjectStatistic.
294
+ :type total_statistics: list[:class:`huaweicloudsdkeihealth.v1.StatisticDto`]
295
+ """
296
+ self._total_statistics = total_statistics
297
+
298
+ def to_dict(self):
299
+ """Returns the model properties as a dict"""
300
+ result = {}
301
+
302
+ for attr, _ in six.iteritems(self.openapi_types):
303
+ value = getattr(self, attr)
304
+ if isinstance(value, list):
305
+ result[attr] = list(map(
306
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
307
+ value
308
+ ))
309
+ elif hasattr(value, "to_dict"):
310
+ result[attr] = value.to_dict()
311
+ elif isinstance(value, dict):
312
+ result[attr] = dict(map(
313
+ lambda item: (item[0], item[1].to_dict())
314
+ if hasattr(item[1], "to_dict") else item,
315
+ value.items()
316
+ ))
317
+ else:
318
+ if attr in self.sensitive_list:
319
+ result[attr] = "****"
320
+ else:
321
+ result[attr] = value
322
+
323
+ return result
324
+
325
+ def to_str(self):
326
+ """Returns the string representation of the model"""
327
+ import simplejson as json
328
+ if six.PY2:
329
+ import sys
330
+ reload(sys)
331
+ sys.setdefaultencoding("utf-8")
332
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
333
+
334
+ def __repr__(self):
335
+ """For `print`"""
336
+ return self.to_str()
337
+
338
+ def __eq__(self, other):
339
+ """Returns true if both objects are equal"""
340
+ if not isinstance(other, ProjectStatistic):
341
+ return False
342
+
343
+ return self.__dict__ == other.__dict__
344
+
345
+ def __ne__(self, other):
346
+ """Returns true if both objects are not equal"""
347
+ return not self == other
@@ -0,0 +1,231 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SfsTurboRsp:
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
+ 'status': 'str',
23
+ 'type': 'str',
24
+ 'space': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'id': 'id',
29
+ 'name': 'name',
30
+ 'status': 'status',
31
+ 'type': 'type',
32
+ 'space': 'space'
33
+ }
34
+
35
+ def __init__(self, id=None, name=None, status=None, type=None, space=None):
36
+ r"""SfsTurboRsp
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param id: sfs-turbo资源ID。
41
+ :type id: str
42
+ :param name: sfs-turbo资源名称。
43
+ :type name: str
44
+ :param status: sfs-turbo资源状态。
45
+ :type status: str
46
+ :param type: sfs-turbo资源类型。
47
+ :type type: str
48
+ :param space: sfs-turbo资源容量,单位GB。
49
+ :type space: str
50
+ """
51
+
52
+
53
+
54
+ self._id = None
55
+ self._name = None
56
+ self._status = None
57
+ self._type = None
58
+ self._space = None
59
+ self.discriminator = None
60
+
61
+ if id is not None:
62
+ self.id = id
63
+ if name is not None:
64
+ self.name = name
65
+ if status is not None:
66
+ self.status = status
67
+ if type is not None:
68
+ self.type = type
69
+ if space is not None:
70
+ self.space = space
71
+
72
+ @property
73
+ def id(self):
74
+ r"""Gets the id of this SfsTurboRsp.
75
+
76
+ sfs-turbo资源ID。
77
+
78
+ :return: The id of this SfsTurboRsp.
79
+ :rtype: str
80
+ """
81
+ return self._id
82
+
83
+ @id.setter
84
+ def id(self, id):
85
+ r"""Sets the id of this SfsTurboRsp.
86
+
87
+ sfs-turbo资源ID。
88
+
89
+ :param id: The id of this SfsTurboRsp.
90
+ :type id: str
91
+ """
92
+ self._id = id
93
+
94
+ @property
95
+ def name(self):
96
+ r"""Gets the name of this SfsTurboRsp.
97
+
98
+ sfs-turbo资源名称。
99
+
100
+ :return: The name of this SfsTurboRsp.
101
+ :rtype: str
102
+ """
103
+ return self._name
104
+
105
+ @name.setter
106
+ def name(self, name):
107
+ r"""Sets the name of this SfsTurboRsp.
108
+
109
+ sfs-turbo资源名称。
110
+
111
+ :param name: The name of this SfsTurboRsp.
112
+ :type name: str
113
+ """
114
+ self._name = name
115
+
116
+ @property
117
+ def status(self):
118
+ r"""Gets the status of this SfsTurboRsp.
119
+
120
+ sfs-turbo资源状态。
121
+
122
+ :return: The status of this SfsTurboRsp.
123
+ :rtype: str
124
+ """
125
+ return self._status
126
+
127
+ @status.setter
128
+ def status(self, status):
129
+ r"""Sets the status of this SfsTurboRsp.
130
+
131
+ sfs-turbo资源状态。
132
+
133
+ :param status: The status of this SfsTurboRsp.
134
+ :type status: str
135
+ """
136
+ self._status = status
137
+
138
+ @property
139
+ def type(self):
140
+ r"""Gets the type of this SfsTurboRsp.
141
+
142
+ sfs-turbo资源类型。
143
+
144
+ :return: The type of this SfsTurboRsp.
145
+ :rtype: str
146
+ """
147
+ return self._type
148
+
149
+ @type.setter
150
+ def type(self, type):
151
+ r"""Sets the type of this SfsTurboRsp.
152
+
153
+ sfs-turbo资源类型。
154
+
155
+ :param type: The type of this SfsTurboRsp.
156
+ :type type: str
157
+ """
158
+ self._type = type
159
+
160
+ @property
161
+ def space(self):
162
+ r"""Gets the space of this SfsTurboRsp.
163
+
164
+ sfs-turbo资源容量,单位GB。
165
+
166
+ :return: The space of this SfsTurboRsp.
167
+ :rtype: str
168
+ """
169
+ return self._space
170
+
171
+ @space.setter
172
+ def space(self, space):
173
+ r"""Sets the space of this SfsTurboRsp.
174
+
175
+ sfs-turbo资源容量,单位GB。
176
+
177
+ :param space: The space of this SfsTurboRsp.
178
+ :type space: str
179
+ """
180
+ self._space = space
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.openapi_types):
187
+ value = getattr(self, attr)
188
+ if isinstance(value, list):
189
+ result[attr] = list(map(
190
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
+ value
192
+ ))
193
+ elif hasattr(value, "to_dict"):
194
+ result[attr] = value.to_dict()
195
+ elif isinstance(value, dict):
196
+ result[attr] = dict(map(
197
+ lambda item: (item[0], item[1].to_dict())
198
+ if hasattr(item[1], "to_dict") else item,
199
+ value.items()
200
+ ))
201
+ else:
202
+ if attr in self.sensitive_list:
203
+ result[attr] = "****"
204
+ else:
205
+ result[attr] = value
206
+
207
+ return result
208
+
209
+ def to_str(self):
210
+ """Returns the string representation of the model"""
211
+ import simplejson as json
212
+ if six.PY2:
213
+ import sys
214
+ reload(sys)
215
+ sys.setdefaultencoding("utf-8")
216
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
217
+
218
+ def __repr__(self):
219
+ """For `print`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, SfsTurboRsp):
225
+ return False
226
+
227
+ return self.__dict__ == other.__dict__
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ return not self == other
@@ -0,0 +1,84 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowAgencyRequest:
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
+ }
21
+
22
+ attribute_map = {
23
+ }
24
+
25
+ def __init__(self):
26
+ r"""ShowAgencyRequest
27
+
28
+ The model defined in huaweicloud sdk
29
+
30
+ """
31
+
32
+
33
+ self.discriminator = None
34
+
35
+ def to_dict(self):
36
+ """Returns the model properties as a dict"""
37
+ result = {}
38
+
39
+ for attr, _ in six.iteritems(self.openapi_types):
40
+ value = getattr(self, attr)
41
+ if isinstance(value, list):
42
+ result[attr] = list(map(
43
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
44
+ value
45
+ ))
46
+ elif hasattr(value, "to_dict"):
47
+ result[attr] = value.to_dict()
48
+ elif isinstance(value, dict):
49
+ result[attr] = dict(map(
50
+ lambda item: (item[0], item[1].to_dict())
51
+ if hasattr(item[1], "to_dict") else item,
52
+ value.items()
53
+ ))
54
+ else:
55
+ if attr in self.sensitive_list:
56
+ result[attr] = "****"
57
+ else:
58
+ result[attr] = value
59
+
60
+ return result
61
+
62
+ def to_str(self):
63
+ """Returns the string representation of the model"""
64
+ import simplejson as json
65
+ if six.PY2:
66
+ import sys
67
+ reload(sys)
68
+ sys.setdefaultencoding("utf-8")
69
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
70
+
71
+ def __repr__(self):
72
+ """For `print`"""
73
+ return self.to_str()
74
+
75
+ def __eq__(self, other):
76
+ """Returns true if both objects are equal"""
77
+ if not isinstance(other, ShowAgencyRequest):
78
+ return False
79
+
80
+ return self.__dict__ == other.__dict__
81
+
82
+ def __ne__(self, other):
83
+ """Returns true if both objects are not equal"""
84
+ return not self == other