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,613 @@
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 PollerDetail(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
+ 'poll_desc': 'PollDesc',
32
+ 'poller_id': 'str',
33
+ 'status': 'str',
34
+ 'poll_key': 'str',
35
+ 'create_time': 'int',
36
+ 'duration': 'int',
37
+ 'deadline': 'int',
38
+ 'outer_circle_target': 'int',
39
+ 'hash_algorithm': 'str',
40
+ 'vote_margin': 'int',
41
+ 'vote_deadline': 'int',
42
+ 'vote_duration': 'int',
43
+ 'poll_end': 'int',
44
+ 'quorum': 'int',
45
+ 'error_details': 'str',
46
+ 'voted_peers': 'list[PeerData]',
47
+ 'no_au_peers': 'list[str]',
48
+ 'tally': 'TallyData',
49
+ 'repair_queue': 'RepairQueue'
50
+ }
51
+
52
+ attribute_map = {
53
+ 'poll_desc': 'pollDesc',
54
+ 'poller_id': 'pollerId',
55
+ 'status': 'status',
56
+ 'poll_key': 'pollKey',
57
+ 'create_time': 'createTime',
58
+ 'duration': 'duration',
59
+ 'deadline': 'deadline',
60
+ 'outer_circle_target': 'outerCircleTarget',
61
+ 'hash_algorithm': 'hashAlgorithm',
62
+ 'vote_margin': 'voteMargin',
63
+ 'vote_deadline': 'voteDeadline',
64
+ 'vote_duration': 'voteDuration',
65
+ 'poll_end': 'pollEnd',
66
+ 'quorum': 'quorum',
67
+ 'error_details': 'errorDetails',
68
+ 'voted_peers': 'votedPeers',
69
+ 'no_au_peers': 'noAuPeers',
70
+ 'tally': 'tally',
71
+ 'repair_queue': 'repairQueue'
72
+ }
73
+
74
+ def __init__(self, poll_desc=None, poller_id=None, status=None, poll_key=None, create_time=None, duration=None, deadline=None, outer_circle_target=None, hash_algorithm=None, vote_margin=None, vote_deadline=None, vote_duration=None, poll_end=None, quorum=None, error_details=None, voted_peers=None, no_au_peers=None, tally=None, repair_queue=None): # noqa: E501
75
+ """PollerDetail - a model defined in Swagger""" # noqa: E501
76
+ self._poll_desc = None
77
+ self._poller_id = None
78
+ self._status = None
79
+ self._poll_key = None
80
+ self._create_time = None
81
+ self._duration = None
82
+ self._deadline = None
83
+ self._outer_circle_target = None
84
+ self._hash_algorithm = None
85
+ self._vote_margin = None
86
+ self._vote_deadline = None
87
+ self._vote_duration = None
88
+ self._poll_end = None
89
+ self._quorum = None
90
+ self._error_details = None
91
+ self._voted_peers = None
92
+ self._no_au_peers = None
93
+ self._tally = None
94
+ self._repair_queue = None
95
+ self.discriminator = None
96
+ self.poll_desc = poll_desc
97
+ self.poller_id = poller_id
98
+ self.status = status
99
+ if poll_key is not None:
100
+ self.poll_key = poll_key
101
+ if create_time is not None:
102
+ self.create_time = create_time
103
+ if duration is not None:
104
+ self.duration = duration
105
+ if deadline is not None:
106
+ self.deadline = deadline
107
+ if outer_circle_target is not None:
108
+ self.outer_circle_target = outer_circle_target
109
+ if hash_algorithm is not None:
110
+ self.hash_algorithm = hash_algorithm
111
+ if vote_margin is not None:
112
+ self.vote_margin = vote_margin
113
+ if vote_deadline is not None:
114
+ self.vote_deadline = vote_deadline
115
+ if vote_duration is not None:
116
+ self.vote_duration = vote_duration
117
+ if poll_end is not None:
118
+ self.poll_end = poll_end
119
+ if quorum is not None:
120
+ self.quorum = quorum
121
+ if error_details is not None:
122
+ self.error_details = error_details
123
+ if voted_peers is not None:
124
+ self.voted_peers = voted_peers
125
+ if no_au_peers is not None:
126
+ self.no_au_peers = no_au_peers
127
+ if tally is not None:
128
+ self.tally = tally
129
+ if repair_queue is not None:
130
+ self.repair_queue = repair_queue
131
+
132
+ @property
133
+ def poll_desc(self):
134
+ """Gets the poll_desc of this PollerDetail. # noqa: E501
135
+
136
+
137
+ :return: The poll_desc of this PollerDetail. # noqa: E501
138
+ :rtype: PollDesc
139
+ """
140
+ return self._poll_desc
141
+
142
+ @poll_desc.setter
143
+ def poll_desc(self, poll_desc):
144
+ """Sets the poll_desc of this PollerDetail.
145
+
146
+
147
+ :param poll_desc: The poll_desc of this PollerDetail. # noqa: E501
148
+ :type: PollDesc
149
+ """
150
+ if poll_desc is None:
151
+ raise ValueError("Invalid value for `poll_desc`, must not be `None`") # noqa: E501
152
+
153
+ self._poll_desc = poll_desc
154
+
155
+ @property
156
+ def poller_id(self):
157
+ """Gets the poller_id of this PollerDetail. # noqa: E501
158
+
159
+ The id of the poller who called the poll # noqa: E501
160
+
161
+ :return: The poller_id of this PollerDetail. # noqa: E501
162
+ :rtype: str
163
+ """
164
+ return self._poller_id
165
+
166
+ @poller_id.setter
167
+ def poller_id(self, poller_id):
168
+ """Sets the poller_id of this PollerDetail.
169
+
170
+ The id of the poller who called the poll # noqa: E501
171
+
172
+ :param poller_id: The poller_id of this PollerDetail. # noqa: E501
173
+ :type: str
174
+ """
175
+ if poller_id is None:
176
+ raise ValueError("Invalid value for `poller_id`, must not be `None`") # noqa: E501
177
+
178
+ self._poller_id = poller_id
179
+
180
+ @property
181
+ def status(self):
182
+ """Gets the status of this PollerDetail. # noqa: E501
183
+
184
+ The current status of the poll. # noqa: E501
185
+
186
+ :return: The status of this PollerDetail. # noqa: E501
187
+ :rtype: str
188
+ """
189
+ return self._status
190
+
191
+ @status.setter
192
+ def status(self, status):
193
+ """Sets the status of this PollerDetail.
194
+
195
+ The current status of the poll. # noqa: E501
196
+
197
+ :param status: The status of this PollerDetail. # noqa: E501
198
+ :type: str
199
+ """
200
+ if status is None:
201
+ raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
202
+
203
+ self._status = status
204
+
205
+ @property
206
+ def poll_key(self):
207
+ """Gets the poll_key of this PollerDetail. # noqa: E501
208
+
209
+ Key generated by poll manager when poll is created. # noqa: E501
210
+
211
+ :return: The poll_key of this PollerDetail. # noqa: E501
212
+ :rtype: str
213
+ """
214
+ return self._poll_key
215
+
216
+ @poll_key.setter
217
+ def poll_key(self, poll_key):
218
+ """Sets the poll_key of this PollerDetail.
219
+
220
+ Key generated by poll manager when poll is created. # noqa: E501
221
+
222
+ :param poll_key: The poll_key of this PollerDetail. # noqa: E501
223
+ :type: str
224
+ """
225
+
226
+ self._poll_key = poll_key
227
+
228
+ @property
229
+ def create_time(self):
230
+ """Gets the create_time of this PollerDetail. # noqa: E501
231
+
232
+ The timestamp at which the poll was created. # noqa: E501
233
+
234
+ :return: The create_time of this PollerDetail. # noqa: E501
235
+ :rtype: int
236
+ """
237
+ return self._create_time
238
+
239
+ @create_time.setter
240
+ def create_time(self, create_time):
241
+ """Sets the create_time of this PollerDetail.
242
+
243
+ The timestamp at which the poll was created. # noqa: E501
244
+
245
+ :param create_time: The create_time of this PollerDetail. # noqa: E501
246
+ :type: int
247
+ """
248
+
249
+ self._create_time = create_time
250
+
251
+ @property
252
+ def duration(self):
253
+ """Gets the duration of this PollerDetail. # noqa: E501
254
+
255
+ The estimated duration for the poll. # noqa: E501
256
+
257
+ :return: The duration of this PollerDetail. # noqa: E501
258
+ :rtype: int
259
+ """
260
+ return self._duration
261
+
262
+ @duration.setter
263
+ def duration(self, duration):
264
+ """Sets the duration of this PollerDetail.
265
+
266
+ The estimated duration for the poll. # noqa: E501
267
+
268
+ :param duration: The duration of this PollerDetail. # noqa: E501
269
+ :type: int
270
+ """
271
+
272
+ self._duration = duration
273
+
274
+ @property
275
+ def deadline(self):
276
+ """Gets the deadline of this PollerDetail. # noqa: E501
277
+
278
+ The time by which the poll must have completed # noqa: E501
279
+
280
+ :return: The deadline of this PollerDetail. # noqa: E501
281
+ :rtype: int
282
+ """
283
+ return self._deadline
284
+
285
+ @deadline.setter
286
+ def deadline(self, deadline):
287
+ """Sets the deadline of this PollerDetail.
288
+
289
+ The time by which the poll must have completed # noqa: E501
290
+
291
+ :param deadline: The deadline of this PollerDetail. # noqa: E501
292
+ :type: int
293
+ """
294
+
295
+ self._deadline = deadline
296
+
297
+ @property
298
+ def outer_circle_target(self):
299
+ """Gets the outer_circle_target of this PollerDetail. # noqa: E501
300
+
301
+ The number of peers from the poller outer circle to taget. # noqa: E501
302
+
303
+ :return: The outer_circle_target of this PollerDetail. # noqa: E501
304
+ :rtype: int
305
+ """
306
+ return self._outer_circle_target
307
+
308
+ @outer_circle_target.setter
309
+ def outer_circle_target(self, outer_circle_target):
310
+ """Sets the outer_circle_target of this PollerDetail.
311
+
312
+ The number of peers from the poller outer circle to taget. # noqa: E501
313
+
314
+ :param outer_circle_target: The outer_circle_target of this PollerDetail. # noqa: E501
315
+ :type: int
316
+ """
317
+
318
+ self._outer_circle_target = outer_circle_target
319
+
320
+ @property
321
+ def hash_algorithm(self):
322
+ """Gets the hash_algorithm of this PollerDetail. # noqa: E501
323
+
324
+ The algorithm used by the hasher for this poll. # noqa: E501
325
+
326
+ :return: The hash_algorithm of this PollerDetail. # noqa: E501
327
+ :rtype: str
328
+ """
329
+ return self._hash_algorithm
330
+
331
+ @hash_algorithm.setter
332
+ def hash_algorithm(self, hash_algorithm):
333
+ """Sets the hash_algorithm of this PollerDetail.
334
+
335
+ The algorithm used by the hasher for this poll. # noqa: E501
336
+
337
+ :param hash_algorithm: The hash_algorithm of this PollerDetail. # noqa: E501
338
+ :type: str
339
+ """
340
+
341
+ self._hash_algorithm = hash_algorithm
342
+
343
+ @property
344
+ def vote_margin(self):
345
+ """Gets the vote_margin of this PollerDetail. # noqa: E501
346
+
347
+ The required agreement need to decide landslide agreement or disagreement. # noqa: E501
348
+
349
+ :return: The vote_margin of this PollerDetail. # noqa: E501
350
+ :rtype: int
351
+ """
352
+ return self._vote_margin
353
+
354
+ @vote_margin.setter
355
+ def vote_margin(self, vote_margin):
356
+ """Sets the vote_margin of this PollerDetail.
357
+
358
+ The required agreement need to decide landslide agreement or disagreement. # noqa: E501
359
+
360
+ :param vote_margin: The vote_margin of this PollerDetail. # noqa: E501
361
+ :type: int
362
+ """
363
+
364
+ self._vote_margin = vote_margin
365
+
366
+ @property
367
+ def vote_deadline(self):
368
+ """Gets the vote_deadline of this PollerDetail. # noqa: E501
369
+
370
+ The time by which all voters must have voted. # noqa: E501
371
+
372
+ :return: The vote_deadline of this PollerDetail. # noqa: E501
373
+ :rtype: int
374
+ """
375
+ return self._vote_deadline
376
+
377
+ @vote_deadline.setter
378
+ def vote_deadline(self, vote_deadline):
379
+ """Sets the vote_deadline of this PollerDetail.
380
+
381
+ The time by which all voters must have voted. # noqa: E501
382
+
383
+ :param vote_deadline: The vote_deadline of this PollerDetail. # noqa: E501
384
+ :type: int
385
+ """
386
+
387
+ self._vote_deadline = vote_deadline
388
+
389
+ @property
390
+ def vote_duration(self):
391
+ """Gets the vote_duration of this PollerDetail. # noqa: E501
392
+
393
+ The estimated duration for voters. # noqa: E501
394
+
395
+ :return: The vote_duration of this PollerDetail. # noqa: E501
396
+ :rtype: int
397
+ """
398
+ return self._vote_duration
399
+
400
+ @vote_duration.setter
401
+ def vote_duration(self, vote_duration):
402
+ """Sets the vote_duration of this PollerDetail.
403
+
404
+ The estimated duration for voters. # noqa: E501
405
+
406
+ :param vote_duration: The vote_duration of this PollerDetail. # noqa: E501
407
+ :type: int
408
+ """
409
+
410
+ self._vote_duration = vote_duration
411
+
412
+ @property
413
+ def poll_end(self):
414
+ """Gets the poll_end of this PollerDetail. # noqa: E501
415
+
416
+ the time at which the poll ended or -1 if still running. # noqa: E501
417
+
418
+ :return: The poll_end of this PollerDetail. # noqa: E501
419
+ :rtype: int
420
+ """
421
+ return self._poll_end
422
+
423
+ @poll_end.setter
424
+ def poll_end(self, poll_end):
425
+ """Sets the poll_end of this PollerDetail.
426
+
427
+ the time at which the poll ended or -1 if still running. # noqa: E501
428
+
429
+ :param poll_end: The poll_end of this PollerDetail. # noqa: E501
430
+ :type: int
431
+ """
432
+
433
+ self._poll_end = poll_end
434
+
435
+ @property
436
+ def quorum(self):
437
+ """Gets the quorum of this PollerDetail. # noqa: E501
438
+
439
+ The minimum required for a quroum # noqa: E501
440
+
441
+ :return: The quorum of this PollerDetail. # noqa: E501
442
+ :rtype: int
443
+ """
444
+ return self._quorum
445
+
446
+ @quorum.setter
447
+ def quorum(self, quorum):
448
+ """Sets the quorum of this PollerDetail.
449
+
450
+ The minimum required for a quroum # noqa: E501
451
+
452
+ :param quorum: The quorum of this PollerDetail. # noqa: E501
453
+ :type: int
454
+ """
455
+
456
+ self._quorum = quorum
457
+
458
+ @property
459
+ def error_details(self):
460
+ """Gets the error_details of this PollerDetail. # noqa: E501
461
+
462
+ The error which caused the poll to fail. # noqa: E501
463
+
464
+ :return: The error_details of this PollerDetail. # noqa: E501
465
+ :rtype: str
466
+ """
467
+ return self._error_details
468
+
469
+ @error_details.setter
470
+ def error_details(self, error_details):
471
+ """Sets the error_details of this PollerDetail.
472
+
473
+ The error which caused the poll to fail. # noqa: E501
474
+
475
+ :param error_details: The error_details of this PollerDetail. # noqa: E501
476
+ :type: str
477
+ """
478
+
479
+ self._error_details = error_details
480
+
481
+ @property
482
+ def voted_peers(self):
483
+ """Gets the voted_peers of this PollerDetail. # noqa: E501
484
+
485
+ The data from peers whom voted. # noqa: E501
486
+
487
+ :return: The voted_peers of this PollerDetail. # noqa: E501
488
+ :rtype: list[PeerData]
489
+ """
490
+ return self._voted_peers
491
+
492
+ @voted_peers.setter
493
+ def voted_peers(self, voted_peers):
494
+ """Sets the voted_peers of this PollerDetail.
495
+
496
+ The data from peers whom voted. # noqa: E501
497
+
498
+ :param voted_peers: The voted_peers of this PollerDetail. # noqa: E501
499
+ :type: list[PeerData]
500
+ """
501
+
502
+ self._voted_peers = voted_peers
503
+
504
+ @property
505
+ def no_au_peers(self):
506
+ """Gets the no_au_peers of this PollerDetail. # noqa: E501
507
+
508
+ The peers who do not have the au. # noqa: E501
509
+
510
+ :return: The no_au_peers of this PollerDetail. # noqa: E501
511
+ :rtype: list[str]
512
+ """
513
+ return self._no_au_peers
514
+
515
+ @no_au_peers.setter
516
+ def no_au_peers(self, no_au_peers):
517
+ """Sets the no_au_peers of this PollerDetail.
518
+
519
+ The peers who do not have the au. # noqa: E501
520
+
521
+ :param no_au_peers: The no_au_peers of this PollerDetail. # noqa: E501
522
+ :type: list[str]
523
+ """
524
+
525
+ self._no_au_peers = no_au_peers
526
+
527
+ @property
528
+ def tally(self):
529
+ """Gets the tally of this PollerDetail. # noqa: E501
530
+
531
+
532
+ :return: The tally of this PollerDetail. # noqa: E501
533
+ :rtype: TallyData
534
+ """
535
+ return self._tally
536
+
537
+ @tally.setter
538
+ def tally(self, tally):
539
+ """Sets the tally of this PollerDetail.
540
+
541
+
542
+ :param tally: The tally of this PollerDetail. # noqa: E501
543
+ :type: TallyData
544
+ """
545
+
546
+ self._tally = tally
547
+
548
+ @property
549
+ def repair_queue(self):
550
+ """Gets the repair_queue of this PollerDetail. # noqa: E501
551
+
552
+
553
+ :return: The repair_queue of this PollerDetail. # noqa: E501
554
+ :rtype: RepairQueue
555
+ """
556
+ return self._repair_queue
557
+
558
+ @repair_queue.setter
559
+ def repair_queue(self, repair_queue):
560
+ """Sets the repair_queue of this PollerDetail.
561
+
562
+
563
+ :param repair_queue: The repair_queue of this PollerDetail. # noqa: E501
564
+ :type: RepairQueue
565
+ """
566
+
567
+ self._repair_queue = repair_queue
568
+
569
+ def to_dict(self):
570
+ """Returns the model properties as a dict"""
571
+ result = {}
572
+
573
+ for attr, _ in six.iteritems(self.swagger_types):
574
+ value = getattr(self, attr)
575
+ if isinstance(value, list):
576
+ result[attr] = list(map(
577
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
578
+ value
579
+ ))
580
+ elif hasattr(value, "to_dict"):
581
+ result[attr] = value.to_dict()
582
+ elif isinstance(value, dict):
583
+ result[attr] = dict(map(
584
+ lambda item: (item[0], item[1].to_dict())
585
+ if hasattr(item[1], "to_dict") else item,
586
+ value.items()
587
+ ))
588
+ else:
589
+ result[attr] = value
590
+ if issubclass(PollerDetail, dict):
591
+ for key, value in self.items():
592
+ result[key] = value
593
+
594
+ return result
595
+
596
+ def to_str(self):
597
+ """Returns the string representation of the model"""
598
+ return pprint.pformat(self.to_dict())
599
+
600
+ def __repr__(self):
601
+ """For `print` and `pprint`"""
602
+ return self.to_str()
603
+
604
+ def __eq__(self, other):
605
+ """Returns true if both objects are equal"""
606
+ if not isinstance(other, PollerDetail):
607
+ return False
608
+
609
+ return self.__dict__ == other.__dict__
610
+
611
+ def __ne__(self, other):
612
+ """Returns true if both objects are not equal"""
613
+ return not self == other