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,432 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Poller Service REST API
5
+
6
+ REST API of the LOCKSS Poller 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 HasherWsParams(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
+ 'url': 'str',
33
+ 'lower': 'str',
34
+ 'upper': 'str',
35
+ 'record_filtered_stream': 'bool',
36
+ 'exclude_suspect_versions': 'bool',
37
+ 'include_weight': 'bool',
38
+ 'algorithm': 'str',
39
+ 'hash_type': 'str',
40
+ 'result_encoding': 'str',
41
+ 'challenge': 'str',
42
+ 'verifier': 'str'
43
+ }
44
+
45
+ attribute_map = {
46
+ 'au_id': 'auId',
47
+ 'url': 'url',
48
+ 'lower': 'lower',
49
+ 'upper': 'upper',
50
+ 'record_filtered_stream': 'recordFilteredStream',
51
+ 'exclude_suspect_versions': 'excludeSuspectVersions',
52
+ 'include_weight': 'includeWeight',
53
+ 'algorithm': 'algorithm',
54
+ 'hash_type': 'hashType',
55
+ 'result_encoding': 'resultEncoding',
56
+ 'challenge': 'challenge',
57
+ 'verifier': 'verifier'
58
+ }
59
+
60
+ def __init__(self, au_id=None, url=None, lower=None, upper=None, record_filtered_stream=None, exclude_suspect_versions=None, include_weight=None, algorithm=None, hash_type=None, result_encoding=None, challenge=None, verifier=None): # noqa: E501
61
+ """HasherWsParams - a model defined in Swagger""" # noqa: E501
62
+ self._au_id = None
63
+ self._url = None
64
+ self._lower = None
65
+ self._upper = None
66
+ self._record_filtered_stream = None
67
+ self._exclude_suspect_versions = None
68
+ self._include_weight = None
69
+ self._algorithm = None
70
+ self._hash_type = None
71
+ self._result_encoding = None
72
+ self._challenge = None
73
+ self._verifier = None
74
+ self.discriminator = None
75
+ self.au_id = au_id
76
+ self.url = url
77
+ self.lower = lower
78
+ self.upper = upper
79
+ self.record_filtered_stream = record_filtered_stream
80
+ self.exclude_suspect_versions = exclude_suspect_versions
81
+ self.include_weight = include_weight
82
+ self.algorithm = algorithm
83
+ self.hash_type = hash_type
84
+ self.result_encoding = result_encoding
85
+ self.challenge = challenge
86
+ self.verifier = verifier
87
+
88
+ @property
89
+ def au_id(self):
90
+ """Gets the au_id of this HasherWsParams. # noqa: E501
91
+
92
+ The identifier of the Archival Unit content to be hashed # noqa: E501
93
+
94
+ :return: The au_id of this HasherWsParams. # noqa: E501
95
+ :rtype: str
96
+ """
97
+ return self._au_id
98
+
99
+ @au_id.setter
100
+ def au_id(self, au_id):
101
+ """Sets the au_id of this HasherWsParams.
102
+
103
+ The identifier of the Archival Unit content to be hashed # noqa: E501
104
+
105
+ :param au_id: The au_id of this HasherWsParams. # noqa: E501
106
+ :type: str
107
+ """
108
+ if au_id is None:
109
+ raise ValueError("Invalid value for `au_id`, must not be `None`") # noqa: E501
110
+
111
+ self._au_id = au_id
112
+
113
+ @property
114
+ def url(self):
115
+ """Gets the url of this HasherWsParams. # noqa: E501
116
+
117
+ The identifier of the URL content to be hashed # noqa: E501
118
+
119
+ :return: The url of this HasherWsParams. # noqa: E501
120
+ :rtype: str
121
+ """
122
+ return self._url
123
+
124
+ @url.setter
125
+ def url(self, url):
126
+ """Sets the url of this HasherWsParams.
127
+
128
+ The identifier of the URL content to be hashed # noqa: E501
129
+
130
+ :param url: The url of this HasherWsParams. # noqa: E501
131
+ :type: str
132
+ """
133
+ if url is None:
134
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
135
+
136
+ self._url = url
137
+
138
+ @property
139
+ def lower(self):
140
+ """Gets the lower of this HasherWsParams. # noqa: E501
141
+
142
+ The lower boundary URL # noqa: E501
143
+
144
+ :return: The lower of this HasherWsParams. # noqa: E501
145
+ :rtype: str
146
+ """
147
+ return self._lower
148
+
149
+ @lower.setter
150
+ def lower(self, lower):
151
+ """Sets the lower of this HasherWsParams.
152
+
153
+ The lower boundary URL # noqa: E501
154
+
155
+ :param lower: The lower of this HasherWsParams. # noqa: E501
156
+ :type: str
157
+ """
158
+ if lower is None:
159
+ raise ValueError("Invalid value for `lower`, must not be `None`") # noqa: E501
160
+
161
+ self._lower = lower
162
+
163
+ @property
164
+ def upper(self):
165
+ """Gets the upper of this HasherWsParams. # noqa: E501
166
+
167
+ The upper boundary URL # noqa: E501
168
+
169
+ :return: The upper of this HasherWsParams. # noqa: E501
170
+ :rtype: str
171
+ """
172
+ return self._upper
173
+
174
+ @upper.setter
175
+ def upper(self, upper):
176
+ """Sets the upper of this HasherWsParams.
177
+
178
+ The upper boundary URL # noqa: E501
179
+
180
+ :param upper: The upper of this HasherWsParams. # noqa: E501
181
+ :type: str
182
+ """
183
+ if upper is None:
184
+ raise ValueError("Invalid value for `upper`, must not be `None`") # noqa: E501
185
+
186
+ self._upper = upper
187
+
188
+ @property
189
+ def record_filtered_stream(self):
190
+ """Gets the record_filtered_stream of this HasherWsParams. # noqa: E501
191
+
192
+ An indication of whether the filtered stream should be recorded # noqa: E501
193
+
194
+ :return: The record_filtered_stream of this HasherWsParams. # noqa: E501
195
+ :rtype: bool
196
+ """
197
+ return self._record_filtered_stream
198
+
199
+ @record_filtered_stream.setter
200
+ def record_filtered_stream(self, record_filtered_stream):
201
+ """Sets the record_filtered_stream of this HasherWsParams.
202
+
203
+ An indication of whether the filtered stream should be recorded # noqa: E501
204
+
205
+ :param record_filtered_stream: The record_filtered_stream of this HasherWsParams. # noqa: E501
206
+ :type: bool
207
+ """
208
+ if record_filtered_stream is None:
209
+ raise ValueError("Invalid value for `record_filtered_stream`, must not be `None`") # noqa: E501
210
+
211
+ self._record_filtered_stream = record_filtered_stream
212
+
213
+ @property
214
+ def exclude_suspect_versions(self):
215
+ """Gets the exclude_suspect_versions of this HasherWsParams. # noqa: E501
216
+
217
+ An indication of whether to exclude suspect versions # noqa: E501
218
+
219
+ :return: The exclude_suspect_versions of this HasherWsParams. # noqa: E501
220
+ :rtype: bool
221
+ """
222
+ return self._exclude_suspect_versions
223
+
224
+ @exclude_suspect_versions.setter
225
+ def exclude_suspect_versions(self, exclude_suspect_versions):
226
+ """Sets the exclude_suspect_versions of this HasherWsParams.
227
+
228
+ An indication of whether to exclude suspect versions # noqa: E501
229
+
230
+ :param exclude_suspect_versions: The exclude_suspect_versions of this HasherWsParams. # noqa: E501
231
+ :type: bool
232
+ """
233
+ if exclude_suspect_versions is None:
234
+ raise ValueError("Invalid value for `exclude_suspect_versions`, must not be `None`") # noqa: E501
235
+
236
+ self._exclude_suspect_versions = exclude_suspect_versions
237
+
238
+ @property
239
+ def include_weight(self):
240
+ """Gets the include_weight of this HasherWsParams. # noqa: E501
241
+
242
+ An indication of whether to include hash weight # noqa: E501
243
+
244
+ :return: The include_weight of this HasherWsParams. # noqa: E501
245
+ :rtype: bool
246
+ """
247
+ return self._include_weight
248
+
249
+ @include_weight.setter
250
+ def include_weight(self, include_weight):
251
+ """Sets the include_weight of this HasherWsParams.
252
+
253
+ An indication of whether to include hash weight # noqa: E501
254
+
255
+ :param include_weight: The include_weight of this HasherWsParams. # noqa: E501
256
+ :type: bool
257
+ """
258
+ if include_weight is None:
259
+ raise ValueError("Invalid value for `include_weight`, must not be `None`") # noqa: E501
260
+
261
+ self._include_weight = include_weight
262
+
263
+ @property
264
+ def algorithm(self):
265
+ """Gets the algorithm of this HasherWsParams. # noqa: E501
266
+
267
+ The name of the hashing algorithm to be used [SHA-1 (or SHA1), MD5 or SHA-256] # noqa: E501
268
+
269
+ :return: The algorithm of this HasherWsParams. # noqa: E501
270
+ :rtype: str
271
+ """
272
+ return self._algorithm
273
+
274
+ @algorithm.setter
275
+ def algorithm(self, algorithm):
276
+ """Sets the algorithm of this HasherWsParams.
277
+
278
+ The name of the hashing algorithm to be used [SHA-1 (or SHA1), MD5 or SHA-256] # noqa: E501
279
+
280
+ :param algorithm: The algorithm of this HasherWsParams. # noqa: E501
281
+ :type: str
282
+ """
283
+ if algorithm is None:
284
+ raise ValueError("Invalid value for `algorithm`, must not be `None`") # noqa: E501
285
+
286
+ self._algorithm = algorithm
287
+
288
+ @property
289
+ def hash_type(self):
290
+ """Gets the hash_type of this HasherWsParams. # noqa: E501
291
+
292
+ The type of hashing to be performed [V1Content, V1Name, V1File, V3Tree or V3File] # noqa: E501
293
+
294
+ :return: The hash_type of this HasherWsParams. # noqa: E501
295
+ :rtype: str
296
+ """
297
+ return self._hash_type
298
+
299
+ @hash_type.setter
300
+ def hash_type(self, hash_type):
301
+ """Sets the hash_type of this HasherWsParams.
302
+
303
+ The type of hashing to be performed [V1Content, V1Name, V1File, V3Tree or V3File] # noqa: E501
304
+
305
+ :param hash_type: The hash_type of this HasherWsParams. # noqa: E501
306
+ :type: str
307
+ """
308
+ if hash_type is None:
309
+ raise ValueError("Invalid value for `hash_type`, must not be `None`") # noqa: E501
310
+
311
+ self._hash_type = hash_type
312
+
313
+ @property
314
+ def result_encoding(self):
315
+ """Gets the result_encoding of this HasherWsParams. # noqa: E501
316
+
317
+ The result encoding to be used [Base64 or Hex] # noqa: E501
318
+
319
+ :return: The result_encoding of this HasherWsParams. # noqa: E501
320
+ :rtype: str
321
+ """
322
+ return self._result_encoding
323
+
324
+ @result_encoding.setter
325
+ def result_encoding(self, result_encoding):
326
+ """Sets the result_encoding of this HasherWsParams.
327
+
328
+ The result encoding to be used [Base64 or Hex] # noqa: E501
329
+
330
+ :param result_encoding: The result_encoding of this HasherWsParams. # noqa: E501
331
+ :type: str
332
+ """
333
+ if result_encoding is None:
334
+ raise ValueError("Invalid value for `result_encoding`, must not be `None`") # noqa: E501
335
+
336
+ self._result_encoding = result_encoding
337
+
338
+ @property
339
+ def challenge(self):
340
+ """Gets the challenge of this HasherWsParams. # noqa: E501
341
+
342
+ The encoded challenge # noqa: E501
343
+
344
+ :return: The challenge of this HasherWsParams. # noqa: E501
345
+ :rtype: str
346
+ """
347
+ return self._challenge
348
+
349
+ @challenge.setter
350
+ def challenge(self, challenge):
351
+ """Sets the challenge of this HasherWsParams.
352
+
353
+ The encoded challenge # noqa: E501
354
+
355
+ :param challenge: The challenge of this HasherWsParams. # noqa: E501
356
+ :type: str
357
+ """
358
+ if challenge is None:
359
+ raise ValueError("Invalid value for `challenge`, must not be `None`") # noqa: E501
360
+
361
+ self._challenge = challenge
362
+
363
+ @property
364
+ def verifier(self):
365
+ """Gets the verifier of this HasherWsParams. # noqa: E501
366
+
367
+ The encoded verifier # noqa: E501
368
+
369
+ :return: The verifier of this HasherWsParams. # noqa: E501
370
+ :rtype: str
371
+ """
372
+ return self._verifier
373
+
374
+ @verifier.setter
375
+ def verifier(self, verifier):
376
+ """Sets the verifier of this HasherWsParams.
377
+
378
+ The encoded verifier # noqa: E501
379
+
380
+ :param verifier: The verifier of this HasherWsParams. # noqa: E501
381
+ :type: str
382
+ """
383
+ if verifier is None:
384
+ raise ValueError("Invalid value for `verifier`, must not be `None`") # noqa: E501
385
+
386
+ self._verifier = verifier
387
+
388
+ def to_dict(self):
389
+ """Returns the model properties as a dict"""
390
+ result = {}
391
+
392
+ for attr, _ in six.iteritems(self.swagger_types):
393
+ value = getattr(self, attr)
394
+ if isinstance(value, list):
395
+ result[attr] = list(map(
396
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
397
+ value
398
+ ))
399
+ elif hasattr(value, "to_dict"):
400
+ result[attr] = value.to_dict()
401
+ elif isinstance(value, dict):
402
+ result[attr] = dict(map(
403
+ lambda item: (item[0], item[1].to_dict())
404
+ if hasattr(item[1], "to_dict") else item,
405
+ value.items()
406
+ ))
407
+ else:
408
+ result[attr] = value
409
+ if issubclass(HasherWsParams, dict):
410
+ for key, value in self.items():
411
+ result[key] = value
412
+
413
+ return result
414
+
415
+ def to_str(self):
416
+ """Returns the string representation of the model"""
417
+ return pprint.pformat(self.to_dict())
418
+
419
+ def __repr__(self):
420
+ """For `print` and `pprint`"""
421
+ return self.to_str()
422
+
423
+ def __eq__(self, other):
424
+ """Returns true if both objects are equal"""
425
+ if not isinstance(other, HasherWsParams):
426
+ return False
427
+
428
+ return self.__dict__ == other.__dict__
429
+
430
+ def __ne__(self, other):
431
+ """Returns true if both objects are not equal"""
432
+ return not self == other
@@ -0,0 +1,141 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Poller Service REST API
5
+
6
+ REST API of the LOCKSS Poller 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 LinkDesc(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
+ 'link': 'str',
32
+ 'desc': 'str'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'link': 'link',
37
+ 'desc': 'desc'
38
+ }
39
+
40
+ def __init__(self, link=None, desc=None): # noqa: E501
41
+ """LinkDesc - a model defined in Swagger""" # noqa: E501
42
+ self._link = None
43
+ self._desc = None
44
+ self.discriminator = None
45
+ self.link = link
46
+ if desc is not None:
47
+ self.desc = desc
48
+
49
+ @property
50
+ def link(self):
51
+ """Gets the link of this LinkDesc. # noqa: E501
52
+
53
+ The actual link suitable for a standard GET request # noqa: E501
54
+
55
+ :return: The link of this LinkDesc. # noqa: E501
56
+ :rtype: str
57
+ """
58
+ return self._link
59
+
60
+ @link.setter
61
+ def link(self, link):
62
+ """Sets the link of this LinkDesc.
63
+
64
+ The actual link suitable for a standard GET request # noqa: E501
65
+
66
+ :param link: The link of this LinkDesc. # noqa: E501
67
+ :type: str
68
+ """
69
+ if link is None:
70
+ raise ValueError("Invalid value for `link`, must not be `None`") # noqa: E501
71
+
72
+ self._link = link
73
+
74
+ @property
75
+ def desc(self):
76
+ """Gets the desc of this LinkDesc. # noqa: E501
77
+
78
+ A description of this link # noqa: E501
79
+
80
+ :return: The desc of this LinkDesc. # noqa: E501
81
+ :rtype: str
82
+ """
83
+ return self._desc
84
+
85
+ @desc.setter
86
+ def desc(self, desc):
87
+ """Sets the desc of this LinkDesc.
88
+
89
+ A description of this link # noqa: E501
90
+
91
+ :param desc: The desc of this LinkDesc. # noqa: E501
92
+ :type: str
93
+ """
94
+
95
+ self._desc = desc
96
+
97
+ def to_dict(self):
98
+ """Returns the model properties as a dict"""
99
+ result = {}
100
+
101
+ for attr, _ in six.iteritems(self.swagger_types):
102
+ value = getattr(self, attr)
103
+ if isinstance(value, list):
104
+ result[attr] = list(map(
105
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
106
+ value
107
+ ))
108
+ elif hasattr(value, "to_dict"):
109
+ result[attr] = value.to_dict()
110
+ elif isinstance(value, dict):
111
+ result[attr] = dict(map(
112
+ lambda item: (item[0], item[1].to_dict())
113
+ if hasattr(item[1], "to_dict") else item,
114
+ value.items()
115
+ ))
116
+ else:
117
+ result[attr] = value
118
+ if issubclass(LinkDesc, dict):
119
+ for key, value in self.items():
120
+ result[key] = value
121
+
122
+ return result
123
+
124
+ def to_str(self):
125
+ """Returns the string representation of the model"""
126
+ return pprint.pformat(self.to_dict())
127
+
128
+ def __repr__(self):
129
+ """For `print` and `pprint`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, LinkDesc):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other