lockss-pyclient 0.1.0.dev1__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 (148) hide show
  1. lockss/pyclient/__init__.py +67 -0
  2. lockss/pyclient/config/__init__.py +42 -0
  3. lockss/pyclient/config/api/__init__.py +12 -0
  4. lockss/pyclient/config/api/aus_api.py +2195 -0
  5. lockss/pyclient/config/api/config_api.py +718 -0
  6. lockss/pyclient/config/api/plugins_api.py +128 -0
  7. lockss/pyclient/config/api/status_api.py +120 -0
  8. lockss/pyclient/config/api/tdb_api.py +318 -0
  9. lockss/pyclient/config/api/users_api.py +516 -0
  10. lockss/pyclient/config/api/utils_api.py +128 -0
  11. lockss/pyclient/config/api_client.py +632 -0
  12. lockss/pyclient/config/configuration.py +254 -0
  13. lockss/pyclient/config/models/__init__.py +30 -0
  14. lockss/pyclient/config/models/api_status.py +344 -0
  15. lockss/pyclient/config/models/au_configuration.py +142 -0
  16. lockss/pyclient/config/models/au_status.py +113 -0
  17. lockss/pyclient/config/models/au_ws_result.py +113 -0
  18. lockss/pyclient/config/models/auids_body.py +168 -0
  19. lockss/pyclient/config/models/check_substance_result.py +212 -0
  20. lockss/pyclient/config/models/content_configuration_result.py +200 -0
  21. lockss/pyclient/config/models/file_section_name_body.py +113 -0
  22. lockss/pyclient/config/models/platform_configuration_ws_result.py +113 -0
  23. lockss/pyclient/config/models/plugin_ws_result.py +345 -0
  24. lockss/pyclient/config/models/request_au_control_result.py +171 -0
  25. lockss/pyclient/config/models/tdb_au_ws_result.py +360 -0
  26. lockss/pyclient/config/models/tdb_publisher_ws_result.py +113 -0
  27. lockss/pyclient/config/models/tdb_title_ws_result.py +390 -0
  28. lockss/pyclient/config/rest.py +317 -0
  29. lockss/pyclient/crawler/__init__.py +45 -0
  30. lockss/pyclient/crawler/api/__init__.py +10 -0
  31. lockss/pyclient/crawler/api/crawlers_api.py +215 -0
  32. lockss/pyclient/crawler/api/crawls_api.py +952 -0
  33. lockss/pyclient/crawler/api/jobs_api.py +504 -0
  34. lockss/pyclient/crawler/api/status_api.py +120 -0
  35. lockss/pyclient/crawler/api/ws_api.py +128 -0
  36. lockss/pyclient/crawler/api_client.py +632 -0
  37. lockss/pyclient/crawler/configuration.py +254 -0
  38. lockss/pyclient/crawler/models/__init__.py +35 -0
  39. lockss/pyclient/crawler/models/api_status.py +344 -0
  40. lockss/pyclient/crawler/models/counter.py +142 -0
  41. lockss/pyclient/crawler/models/crawl_desc.py +344 -0
  42. lockss/pyclient/crawler/models/crawl_job.py +280 -0
  43. lockss/pyclient/crawler/models/crawl_pager.py +140 -0
  44. lockss/pyclient/crawler/models/crawl_status.py +780 -0
  45. lockss/pyclient/crawler/models/crawl_ws_result.py +814 -0
  46. lockss/pyclient/crawler/models/crawl_ws_result_pages_with_errors.py +162 -0
  47. lockss/pyclient/crawler/models/crawler_config.py +142 -0
  48. lockss/pyclient/crawler/models/crawler_status.py +279 -0
  49. lockss/pyclient/crawler/models/crawler_statuses.py +112 -0
  50. lockss/pyclient/crawler/models/error_result.py +164 -0
  51. lockss/pyclient/crawler/models/job_pager.py +140 -0
  52. lockss/pyclient/crawler/models/job_status.py +147 -0
  53. lockss/pyclient/crawler/models/mime_counter.py +169 -0
  54. lockss/pyclient/crawler/models/page_info.py +228 -0
  55. lockss/pyclient/crawler/models/url_error.py +148 -0
  56. lockss/pyclient/crawler/models/url_info.py +167 -0
  57. lockss/pyclient/crawler/models/url_pager.py +140 -0
  58. lockss/pyclient/crawler/rest.py +317 -0
  59. lockss/pyclient/md/__init__.py +36 -0
  60. lockss/pyclient/md/api/__init__.py +9 -0
  61. lockss/pyclient/md/api/mdupdates_api.py +508 -0
  62. lockss/pyclient/md/api/metadata_api.py +136 -0
  63. lockss/pyclient/md/api/status_api.py +120 -0
  64. lockss/pyclient/md/api/urls_api.py +224 -0
  65. lockss/pyclient/md/api_client.py +632 -0
  66. lockss/pyclient/md/configuration.py +254 -0
  67. lockss/pyclient/md/models/__init__.py +27 -0
  68. lockss/pyclient/md/models/api_status.py +344 -0
  69. lockss/pyclient/md/models/au.py +169 -0
  70. lockss/pyclient/md/models/au_metadata_page_info.py +140 -0
  71. lockss/pyclient/md/models/error_result.py +164 -0
  72. lockss/pyclient/md/models/item_metadata.py +196 -0
  73. lockss/pyclient/md/models/job.py +280 -0
  74. lockss/pyclient/md/models/job_page_info.py +140 -0
  75. lockss/pyclient/md/models/metadata_update_spec.py +142 -0
  76. lockss/pyclient/md/models/page_info.py +228 -0
  77. lockss/pyclient/md/models/status.py +142 -0
  78. lockss/pyclient/md/models/url_info.py +142 -0
  79. lockss/pyclient/md/rest.py +317 -0
  80. lockss/pyclient/poller/__init__.py +54 -0
  81. lockss/pyclient/poller/api/__init__.py +13 -0
  82. lockss/pyclient/poller/api/export_api.py +156 -0
  83. lockss/pyclient/poller/api/hash_api.py +413 -0
  84. lockss/pyclient/poller/api/import_api.py +157 -0
  85. lockss/pyclient/poller/api/poll_detail_api.py +374 -0
  86. lockss/pyclient/poller/api/poller_polls_api.py +223 -0
  87. lockss/pyclient/poller/api/repo_api.py +223 -0
  88. lockss/pyclient/poller/api/service_api.py +694 -0
  89. lockss/pyclient/poller/api/voter_polls_api.py +223 -0
  90. lockss/pyclient/poller/api_client.py +632 -0
  91. lockss/pyclient/poller/configuration.py +254 -0
  92. lockss/pyclient/poller/models/__init__.py +41 -0
  93. lockss/pyclient/poller/models/api_status.py +344 -0
  94. lockss/pyclient/poller/models/aus_import_body.py +199 -0
  95. lockss/pyclient/poller/models/cached_uri_set_spec.py +169 -0
  96. lockss/pyclient/poller/models/error_result.py +164 -0
  97. lockss/pyclient/poller/models/hasher_ws_params.py +432 -0
  98. lockss/pyclient/poller/models/link_desc.py +141 -0
  99. lockss/pyclient/poller/models/page_desc.py +227 -0
  100. lockss/pyclient/poller/models/peer_data.py +638 -0
  101. lockss/pyclient/poller/models/peer_ws_result.py +113 -0
  102. lockss/pyclient/poller/models/poll_desc.py +285 -0
  103. lockss/pyclient/poller/models/poll_ws_result.py +142 -0
  104. lockss/pyclient/poller/models/poller_detail.py +613 -0
  105. lockss/pyclient/poller/models/poller_pager.py +139 -0
  106. lockss/pyclient/poller/models/poller_summary.py +452 -0
  107. lockss/pyclient/poller/models/repair_data.py +176 -0
  108. lockss/pyclient/poller/models/repair_pager.py +139 -0
  109. lockss/pyclient/poller/models/repair_queue.py +249 -0
  110. lockss/pyclient/poller/models/repository_space_ws_result.py +113 -0
  111. lockss/pyclient/poller/models/repository_ws_result.py +113 -0
  112. lockss/pyclient/poller/models/tally_data.py +471 -0
  113. lockss/pyclient/poller/models/url_pager.py +139 -0
  114. lockss/pyclient/poller/models/vote_ws_result.py +142 -0
  115. lockss/pyclient/poller/models/voter_detail.py +701 -0
  116. lockss/pyclient/poller/models/voter_pager.py +139 -0
  117. lockss/pyclient/poller/models/voter_summary.py +284 -0
  118. lockss/pyclient/poller/rest.py +317 -0
  119. lockss/pyclient/rs/__init__.py +41 -0
  120. lockss/pyclient/rs/api/__init__.py +10 -0
  121. lockss/pyclient/rs/api/artifacts_api.py +988 -0
  122. lockss/pyclient/rs/api/aus_api.py +334 -0
  123. lockss/pyclient/rs/api/repo_api.py +379 -0
  124. lockss/pyclient/rs/api/status_api.py +120 -0
  125. lockss/pyclient/rs/api/wayback_api.py +386 -0
  126. lockss/pyclient/rs/api_client.py +632 -0
  127. lockss/pyclient/rs/configuration.py +247 -0
  128. lockss/pyclient/rs/models/__init__.py +31 -0
  129. lockss/pyclient/rs/models/api_status.py +344 -0
  130. lockss/pyclient/rs/models/archives_body.py +142 -0
  131. lockss/pyclient/rs/models/artifact.py +344 -0
  132. lockss/pyclient/rs/models/artifact_page_info.py +140 -0
  133. lockss/pyclient/rs/models/artifact_properties.py +344 -0
  134. lockss/pyclient/rs/models/artifacts_body.py +170 -0
  135. lockss/pyclient/rs/models/au_size.py +162 -0
  136. lockss/pyclient/rs/models/auid_page_info.py +140 -0
  137. lockss/pyclient/rs/models/error_result.py +164 -0
  138. lockss/pyclient/rs/models/import_status.py +298 -0
  139. lockss/pyclient/rs/models/page_info.py +229 -0
  140. lockss/pyclient/rs/models/repository_info.py +164 -0
  141. lockss/pyclient/rs/models/repository_statistics.py +112 -0
  142. lockss/pyclient/rs/models/storage_info.py +287 -0
  143. lockss/pyclient/rs/models/streaming_response_body.py +84 -0
  144. lockss/pyclient/rs/rest.py +317 -0
  145. lockss_pyclient-0.1.0.dev1.dist-info/LICENSE +27 -0
  146. lockss_pyclient-0.1.0.dev1.dist-info/METADATA +29 -0
  147. lockss_pyclient-0.1.0.dev1.dist-info/RECORD +148 -0
  148. lockss_pyclient-0.1.0.dev1.dist-info/WHEEL +4 -0
@@ -0,0 +1,360 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Configuration Service REST API
5
+
6
+ REST API of the LOCKSS Configuration Service # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+ Contact: lockss-support@lockss.org
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class TdbAuWsResult(object):
19
+ """NOTE: This class is auto generated by the swagger code generator program.
20
+
21
+ Do not edit the class manually.
22
+ """
23
+ """
24
+ Attributes:
25
+ swagger_types (dict): The key is attribute name
26
+ and the value is attribute type.
27
+ attribute_map (dict): The key is attribute name
28
+ and the value is json key in definition.
29
+ """
30
+ swagger_types = {
31
+ 'au_id': 'str',
32
+ 'name': 'str',
33
+ 'plugin_name': 'str',
34
+ 'tdb_title': 'TdbTitleWsResult',
35
+ 'tdb_publisher': 'TdbPublisherWsResult',
36
+ 'down': 'bool',
37
+ 'active': 'bool',
38
+ 'params': 'dict(str, str)',
39
+ 'attrs': 'dict(str, str)',
40
+ 'props': 'dict(str, str)'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'au_id': 'auId',
45
+ 'name': 'name',
46
+ 'plugin_name': 'pluginName',
47
+ 'tdb_title': 'tdbTitle',
48
+ 'tdb_publisher': 'tdbPublisher',
49
+ 'down': 'down',
50
+ 'active': 'active',
51
+ 'params': 'params',
52
+ 'attrs': 'attrs',
53
+ 'props': 'props'
54
+ }
55
+
56
+ def __init__(self, au_id=None, name=None, plugin_name=None, tdb_title=None, tdb_publisher=None, down=None, active=None, params=None, attrs=None, props=None): # noqa: E501
57
+ """TdbAuWsResult - a model defined in Swagger""" # noqa: E501
58
+ self._au_id = None
59
+ self._name = None
60
+ self._plugin_name = None
61
+ self._tdb_title = None
62
+ self._tdb_publisher = None
63
+ self._down = None
64
+ self._active = None
65
+ self._params = None
66
+ self._attrs = None
67
+ self._props = None
68
+ self.discriminator = None
69
+ if au_id is not None:
70
+ self.au_id = au_id
71
+ if name is not None:
72
+ self.name = name
73
+ if plugin_name is not None:
74
+ self.plugin_name = plugin_name
75
+ if tdb_title is not None:
76
+ self.tdb_title = tdb_title
77
+ if tdb_publisher is not None:
78
+ self.tdb_publisher = tdb_publisher
79
+ if down is not None:
80
+ self.down = down
81
+ if active is not None:
82
+ self.active = active
83
+ if params is not None:
84
+ self.params = params
85
+ if attrs is not None:
86
+ self.attrs = attrs
87
+ if props is not None:
88
+ self.props = props
89
+
90
+ @property
91
+ def au_id(self):
92
+ """Gets the au_id of this TdbAuWsResult. # noqa: E501
93
+
94
+ The identifier of the Archival Unit # noqa: E501
95
+
96
+ :return: The au_id of this TdbAuWsResult. # noqa: E501
97
+ :rtype: str
98
+ """
99
+ return self._au_id
100
+
101
+ @au_id.setter
102
+ def au_id(self, au_id):
103
+ """Sets the au_id of this TdbAuWsResult.
104
+
105
+ The identifier of the Archival Unit # noqa: E501
106
+
107
+ :param au_id: The au_id of this TdbAuWsResult. # noqa: E501
108
+ :type: str
109
+ """
110
+
111
+ self._au_id = au_id
112
+
113
+ @property
114
+ def name(self):
115
+ """Gets the name of this TdbAuWsResult. # noqa: E501
116
+
117
+ The name of the Archival Unit # noqa: E501
118
+
119
+ :return: The name of this TdbAuWsResult. # noqa: E501
120
+ :rtype: str
121
+ """
122
+ return self._name
123
+
124
+ @name.setter
125
+ def name(self, name):
126
+ """Sets the name of this TdbAuWsResult.
127
+
128
+ The name of the Archival Unit # noqa: E501
129
+
130
+ :param name: The name of this TdbAuWsResult. # noqa: E501
131
+ :type: str
132
+ """
133
+
134
+ self._name = name
135
+
136
+ @property
137
+ def plugin_name(self):
138
+ """Gets the plugin_name of this TdbAuWsResult. # noqa: E501
139
+
140
+ The name of the Archival Unit plugin # noqa: E501
141
+
142
+ :return: The plugin_name of this TdbAuWsResult. # noqa: E501
143
+ :rtype: str
144
+ """
145
+ return self._plugin_name
146
+
147
+ @plugin_name.setter
148
+ def plugin_name(self, plugin_name):
149
+ """Sets the plugin_name of this TdbAuWsResult.
150
+
151
+ The name of the Archival Unit plugin # noqa: E501
152
+
153
+ :param plugin_name: The plugin_name of this TdbAuWsResult. # noqa: E501
154
+ :type: str
155
+ """
156
+
157
+ self._plugin_name = plugin_name
158
+
159
+ @property
160
+ def tdb_title(self):
161
+ """Gets the tdb_title of this TdbAuWsResult. # noqa: E501
162
+
163
+
164
+ :return: The tdb_title of this TdbAuWsResult. # noqa: E501
165
+ :rtype: TdbTitleWsResult
166
+ """
167
+ return self._tdb_title
168
+
169
+ @tdb_title.setter
170
+ def tdb_title(self, tdb_title):
171
+ """Sets the tdb_title of this TdbAuWsResult.
172
+
173
+
174
+ :param tdb_title: The tdb_title of this TdbAuWsResult. # noqa: E501
175
+ :type: TdbTitleWsResult
176
+ """
177
+
178
+ self._tdb_title = tdb_title
179
+
180
+ @property
181
+ def tdb_publisher(self):
182
+ """Gets the tdb_publisher of this TdbAuWsResult. # noqa: E501
183
+
184
+
185
+ :return: The tdb_publisher of this TdbAuWsResult. # noqa: E501
186
+ :rtype: TdbPublisherWsResult
187
+ """
188
+ return self._tdb_publisher
189
+
190
+ @tdb_publisher.setter
191
+ def tdb_publisher(self, tdb_publisher):
192
+ """Sets the tdb_publisher of this TdbAuWsResult.
193
+
194
+
195
+ :param tdb_publisher: The tdb_publisher of this TdbAuWsResult. # noqa: E501
196
+ :type: TdbPublisherWsResult
197
+ """
198
+
199
+ self._tdb_publisher = tdb_publisher
200
+
201
+ @property
202
+ def down(self):
203
+ """Gets the down of this TdbAuWsResult. # noqa: E501
204
+
205
+ An indication of whether the AU is marked as down or not # noqa: E501
206
+
207
+ :return: The down of this TdbAuWsResult. # noqa: E501
208
+ :rtype: bool
209
+ """
210
+ return self._down
211
+
212
+ @down.setter
213
+ def down(self, down):
214
+ """Sets the down of this TdbAuWsResult.
215
+
216
+ An indication of whether the AU is marked as down or not # noqa: E501
217
+
218
+ :param down: The down of this TdbAuWsResult. # noqa: E501
219
+ :type: bool
220
+ """
221
+
222
+ self._down = down
223
+
224
+ @property
225
+ def active(self):
226
+ """Gets the active of this TdbAuWsResult. # noqa: E501
227
+
228
+ An indication of whether the AU is active or not # noqa: E501
229
+
230
+ :return: The active of this TdbAuWsResult. # noqa: E501
231
+ :rtype: bool
232
+ """
233
+ return self._active
234
+
235
+ @active.setter
236
+ def active(self, active):
237
+ """Sets the active of this TdbAuWsResult.
238
+
239
+ An indication of whether the AU is active or not # noqa: E501
240
+
241
+ :param active: The active of this TdbAuWsResult. # noqa: E501
242
+ :type: bool
243
+ """
244
+
245
+ self._active = active
246
+
247
+ @property
248
+ def params(self):
249
+ """Gets the params of this TdbAuWsResult. # noqa: E501
250
+
251
+ The map of Archival Unit parameters # noqa: E501
252
+
253
+ :return: The params of this TdbAuWsResult. # noqa: E501
254
+ :rtype: dict(str, str)
255
+ """
256
+ return self._params
257
+
258
+ @params.setter
259
+ def params(self, params):
260
+ """Sets the params of this TdbAuWsResult.
261
+
262
+ The map of Archival Unit parameters # noqa: E501
263
+
264
+ :param params: The params of this TdbAuWsResult. # noqa: E501
265
+ :type: dict(str, str)
266
+ """
267
+
268
+ self._params = params
269
+
270
+ @property
271
+ def attrs(self):
272
+ """Gets the attrs of this TdbAuWsResult. # noqa: E501
273
+
274
+ The map of Archival Unit attributes # noqa: E501
275
+
276
+ :return: The attrs of this TdbAuWsResult. # noqa: E501
277
+ :rtype: dict(str, str)
278
+ """
279
+ return self._attrs
280
+
281
+ @attrs.setter
282
+ def attrs(self, attrs):
283
+ """Sets the attrs of this TdbAuWsResult.
284
+
285
+ The map of Archival Unit attributes # noqa: E501
286
+
287
+ :param attrs: The attrs of this TdbAuWsResult. # noqa: E501
288
+ :type: dict(str, str)
289
+ """
290
+
291
+ self._attrs = attrs
292
+
293
+ @property
294
+ def props(self):
295
+ """Gets the props of this TdbAuWsResult. # noqa: E501
296
+
297
+ The map of Archival Unit properties # noqa: E501
298
+
299
+ :return: The props of this TdbAuWsResult. # noqa: E501
300
+ :rtype: dict(str, str)
301
+ """
302
+ return self._props
303
+
304
+ @props.setter
305
+ def props(self, props):
306
+ """Sets the props of this TdbAuWsResult.
307
+
308
+ The map of Archival Unit properties # noqa: E501
309
+
310
+ :param props: The props of this TdbAuWsResult. # noqa: E501
311
+ :type: dict(str, str)
312
+ """
313
+
314
+ self._props = props
315
+
316
+ def to_dict(self):
317
+ """Returns the model properties as a dict"""
318
+ result = {}
319
+
320
+ for attr, _ in six.iteritems(self.swagger_types):
321
+ value = getattr(self, attr)
322
+ if isinstance(value, list):
323
+ result[attr] = list(map(
324
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
325
+ value
326
+ ))
327
+ elif hasattr(value, "to_dict"):
328
+ result[attr] = value.to_dict()
329
+ elif isinstance(value, dict):
330
+ result[attr] = dict(map(
331
+ lambda item: (item[0], item[1].to_dict())
332
+ if hasattr(item[1], "to_dict") else item,
333
+ value.items()
334
+ ))
335
+ else:
336
+ result[attr] = value
337
+ if issubclass(TdbAuWsResult, dict):
338
+ for key, value in self.items():
339
+ result[key] = value
340
+
341
+ return result
342
+
343
+ def to_str(self):
344
+ """Returns the string representation of the model"""
345
+ return pprint.pformat(self.to_dict())
346
+
347
+ def __repr__(self):
348
+ """For `print` and `pprint`"""
349
+ return self.to_str()
350
+
351
+ def __eq__(self, other):
352
+ """Returns true if both objects are equal"""
353
+ if not isinstance(other, TdbAuWsResult):
354
+ return False
355
+
356
+ return self.__dict__ == other.__dict__
357
+
358
+ def __ne__(self, other):
359
+ """Returns true if both objects are not equal"""
360
+ return not self == other
@@ -0,0 +1,113 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Configuration Service REST API
5
+
6
+ REST API of the LOCKSS Configuration Service # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+ Contact: lockss-support@lockss.org
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class TdbPublisherWsResult(object):
19
+ """NOTE: This class is auto generated by the swagger code generator program.
20
+
21
+ Do not edit the class manually.
22
+ """
23
+ """
24
+ Attributes:
25
+ swagger_types (dict): The key is attribute name
26
+ and the value is attribute type.
27
+ attribute_map (dict): The key is attribute name
28
+ and the value is json key in definition.
29
+ """
30
+ swagger_types = {
31
+ 'name': 'str'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'name': 'name'
36
+ }
37
+
38
+ def __init__(self, name=None): # noqa: E501
39
+ """TdbPublisherWsResult - a model defined in Swagger""" # noqa: E501
40
+ self._name = None
41
+ self.discriminator = None
42
+ self.name = name
43
+
44
+ @property
45
+ def name(self):
46
+ """Gets the name of this TdbPublisherWsResult. # noqa: E501
47
+
48
+ The name of the TDB Publisher # noqa: E501
49
+
50
+ :return: The name of this TdbPublisherWsResult. # noqa: E501
51
+ :rtype: str
52
+ """
53
+ return self._name
54
+
55
+ @name.setter
56
+ def name(self, name):
57
+ """Sets the name of this TdbPublisherWsResult.
58
+
59
+ The name of the TDB Publisher # noqa: E501
60
+
61
+ :param name: The name of this TdbPublisherWsResult. # noqa: E501
62
+ :type: str
63
+ """
64
+ if name is None:
65
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
66
+
67
+ self._name = name
68
+
69
+ def to_dict(self):
70
+ """Returns the model properties as a dict"""
71
+ result = {}
72
+
73
+ for attr, _ in six.iteritems(self.swagger_types):
74
+ value = getattr(self, attr)
75
+ if isinstance(value, list):
76
+ result[attr] = list(map(
77
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
78
+ value
79
+ ))
80
+ elif hasattr(value, "to_dict"):
81
+ result[attr] = value.to_dict()
82
+ elif isinstance(value, dict):
83
+ result[attr] = dict(map(
84
+ lambda item: (item[0], item[1].to_dict())
85
+ if hasattr(item[1], "to_dict") else item,
86
+ value.items()
87
+ ))
88
+ else:
89
+ result[attr] = value
90
+ if issubclass(TdbPublisherWsResult, dict):
91
+ for key, value in self.items():
92
+ result[key] = value
93
+
94
+ return result
95
+
96
+ def to_str(self):
97
+ """Returns the string representation of the model"""
98
+ return pprint.pformat(self.to_dict())
99
+
100
+ def __repr__(self):
101
+ """For `print` and `pprint`"""
102
+ return self.to_str()
103
+
104
+ def __eq__(self, other):
105
+ """Returns true if both objects are equal"""
106
+ if not isinstance(other, TdbPublisherWsResult):
107
+ return False
108
+
109
+ return self.__dict__ == other.__dict__
110
+
111
+ def __ne__(self, other):
112
+ """Returns true if both objects are not equal"""
113
+ return not self == other