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,638 @@
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 PeerData(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
+ 'peer_id': 'str',
32
+ 'status': 'str',
33
+ 'agreement': 'float',
34
+ 'num_agree': 'int',
35
+ 'agree_link': 'LinkDesc',
36
+ 'num_disagree': 'int',
37
+ 'disagree_link': 'LinkDesc',
38
+ 'num_poller_only': 'int',
39
+ 'poller_only_link': 'LinkDesc',
40
+ 'num_voter_only': 'int',
41
+ 'voter_only_link': 'LinkDesc',
42
+ 'bytes_hashed': 'int',
43
+ 'bytes_read': 'int',
44
+ 'wt_agreement': 'float',
45
+ 'wt_num_agree': 'float',
46
+ 'wt_num_disagree': 'float',
47
+ 'wt_num_poller_only': 'float',
48
+ 'wt_num_voter_only': 'float',
49
+ 'state': 'str',
50
+ 'last_state_change': 'int'
51
+ }
52
+
53
+ attribute_map = {
54
+ 'peer_id': 'peerId',
55
+ 'status': 'status',
56
+ 'agreement': 'agreement',
57
+ 'num_agree': 'numAgree',
58
+ 'agree_link': 'agreeLink',
59
+ 'num_disagree': 'numDisagree',
60
+ 'disagree_link': 'disagreeLink',
61
+ 'num_poller_only': 'numPollerOnly',
62
+ 'poller_only_link': 'pollerOnlyLink',
63
+ 'num_voter_only': 'numVoterOnly',
64
+ 'voter_only_link': 'voterOnlyLink',
65
+ 'bytes_hashed': 'bytesHashed',
66
+ 'bytes_read': 'bytesRead',
67
+ 'wt_agreement': 'wtAgreement',
68
+ 'wt_num_agree': 'wtNumAgree',
69
+ 'wt_num_disagree': 'wtNumDisagree',
70
+ 'wt_num_poller_only': 'wtNumPollerOnly',
71
+ 'wt_num_voter_only': 'wtNumVoterOnly',
72
+ 'state': 'state',
73
+ 'last_state_change': 'lastStateChange'
74
+ }
75
+
76
+ def __init__(self, peer_id=None, status=None, agreement=None, num_agree=None, agree_link=None, num_disagree=None, disagree_link=None, num_poller_only=None, poller_only_link=None, num_voter_only=None, voter_only_link=None, bytes_hashed=None, bytes_read=None, wt_agreement=None, wt_num_agree=None, wt_num_disagree=None, wt_num_poller_only=None, wt_num_voter_only=None, state=None, last_state_change=None): # noqa: E501
77
+ """PeerData - a model defined in Swagger""" # noqa: E501
78
+ self._peer_id = None
79
+ self._status = None
80
+ self._agreement = None
81
+ self._num_agree = None
82
+ self._agree_link = None
83
+ self._num_disagree = None
84
+ self._disagree_link = None
85
+ self._num_poller_only = None
86
+ self._poller_only_link = None
87
+ self._num_voter_only = None
88
+ self._voter_only_link = None
89
+ self._bytes_hashed = None
90
+ self._bytes_read = None
91
+ self._wt_agreement = None
92
+ self._wt_num_agree = None
93
+ self._wt_num_disagree = None
94
+ self._wt_num_poller_only = None
95
+ self._wt_num_voter_only = None
96
+ self._state = None
97
+ self._last_state_change = None
98
+ self.discriminator = None
99
+ self.peer_id = peer_id
100
+ self.status = status
101
+ if agreement is not None:
102
+ self.agreement = agreement
103
+ if num_agree is not None:
104
+ self.num_agree = num_agree
105
+ if agree_link is not None:
106
+ self.agree_link = agree_link
107
+ if num_disagree is not None:
108
+ self.num_disagree = num_disagree
109
+ if disagree_link is not None:
110
+ self.disagree_link = disagree_link
111
+ if num_poller_only is not None:
112
+ self.num_poller_only = num_poller_only
113
+ if poller_only_link is not None:
114
+ self.poller_only_link = poller_only_link
115
+ if num_voter_only is not None:
116
+ self.num_voter_only = num_voter_only
117
+ if voter_only_link is not None:
118
+ self.voter_only_link = voter_only_link
119
+ if bytes_hashed is not None:
120
+ self.bytes_hashed = bytes_hashed
121
+ if bytes_read is not None:
122
+ self.bytes_read = bytes_read
123
+ if wt_agreement is not None:
124
+ self.wt_agreement = wt_agreement
125
+ if wt_num_agree is not None:
126
+ self.wt_num_agree = wt_num_agree
127
+ if wt_num_disagree is not None:
128
+ self.wt_num_disagree = wt_num_disagree
129
+ if wt_num_poller_only is not None:
130
+ self.wt_num_poller_only = wt_num_poller_only
131
+ if wt_num_voter_only is not None:
132
+ self.wt_num_voter_only = wt_num_voter_only
133
+ if state is not None:
134
+ self.state = state
135
+ if last_state_change is not None:
136
+ self.last_state_change = last_state_change
137
+
138
+ @property
139
+ def peer_id(self):
140
+ """Gets the peer_id of this PeerData. # noqa: E501
141
+
142
+ the peer id for this participant # noqa: E501
143
+
144
+ :return: The peer_id of this PeerData. # noqa: E501
145
+ :rtype: str
146
+ """
147
+ return self._peer_id
148
+
149
+ @peer_id.setter
150
+ def peer_id(self, peer_id):
151
+ """Sets the peer_id of this PeerData.
152
+
153
+ the peer id for this participant # noqa: E501
154
+
155
+ :param peer_id: The peer_id of this PeerData. # noqa: E501
156
+ :type: str
157
+ """
158
+ if peer_id is None:
159
+ raise ValueError("Invalid value for `peer_id`, must not be `None`") # noqa: E501
160
+
161
+ self._peer_id = peer_id
162
+
163
+ @property
164
+ def status(self):
165
+ """Gets the status of this PeerData. # noqa: E501
166
+
167
+ the status of this peer # noqa: E501
168
+
169
+ :return: The status of this PeerData. # noqa: E501
170
+ :rtype: str
171
+ """
172
+ return self._status
173
+
174
+ @status.setter
175
+ def status(self, status):
176
+ """Sets the status of this PeerData.
177
+
178
+ the status of this peer # noqa: E501
179
+
180
+ :param status: The status of this PeerData. # noqa: E501
181
+ :type: str
182
+ """
183
+ if status is None:
184
+ raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
185
+
186
+ self._status = status
187
+
188
+ @property
189
+ def agreement(self):
190
+ """Gets the agreement of this PeerData. # noqa: E501
191
+
192
+ the percentage of vote agreement. # noqa: E501
193
+
194
+ :return: The agreement of this PeerData. # noqa: E501
195
+ :rtype: float
196
+ """
197
+ return self._agreement
198
+
199
+ @agreement.setter
200
+ def agreement(self, agreement):
201
+ """Sets the agreement of this PeerData.
202
+
203
+ the percentage of vote agreement. # noqa: E501
204
+
205
+ :param agreement: The agreement of this PeerData. # noqa: E501
206
+ :type: float
207
+ """
208
+
209
+ self._agreement = agreement
210
+
211
+ @property
212
+ def num_agree(self):
213
+ """Gets the num_agree of this PeerData. # noqa: E501
214
+
215
+ The number of urls for which there was agreement. # noqa: E501
216
+
217
+ :return: The num_agree of this PeerData. # noqa: E501
218
+ :rtype: int
219
+ """
220
+ return self._num_agree
221
+
222
+ @num_agree.setter
223
+ def num_agree(self, num_agree):
224
+ """Sets the num_agree of this PeerData.
225
+
226
+ The number of urls for which there was agreement. # noqa: E501
227
+
228
+ :param num_agree: The num_agree of this PeerData. # noqa: E501
229
+ :type: int
230
+ """
231
+
232
+ self._num_agree = num_agree
233
+
234
+ @property
235
+ def agree_link(self):
236
+ """Gets the agree_link of this PeerData. # noqa: E501
237
+
238
+
239
+ :return: The agree_link of this PeerData. # noqa: E501
240
+ :rtype: LinkDesc
241
+ """
242
+ return self._agree_link
243
+
244
+ @agree_link.setter
245
+ def agree_link(self, agree_link):
246
+ """Sets the agree_link of this PeerData.
247
+
248
+
249
+ :param agree_link: The agree_link of this PeerData. # noqa: E501
250
+ :type: LinkDesc
251
+ """
252
+
253
+ self._agree_link = agree_link
254
+
255
+ @property
256
+ def num_disagree(self):
257
+ """Gets the num_disagree of this PeerData. # noqa: E501
258
+
259
+ The number of urls for which there was disagreement. # noqa: E501
260
+
261
+ :return: The num_disagree of this PeerData. # noqa: E501
262
+ :rtype: int
263
+ """
264
+ return self._num_disagree
265
+
266
+ @num_disagree.setter
267
+ def num_disagree(self, num_disagree):
268
+ """Sets the num_disagree of this PeerData.
269
+
270
+ The number of urls for which there was disagreement. # noqa: E501
271
+
272
+ :param num_disagree: The num_disagree of this PeerData. # noqa: E501
273
+ :type: int
274
+ """
275
+
276
+ self._num_disagree = num_disagree
277
+
278
+ @property
279
+ def disagree_link(self):
280
+ """Gets the disagree_link of this PeerData. # noqa: E501
281
+
282
+
283
+ :return: The disagree_link of this PeerData. # noqa: E501
284
+ :rtype: LinkDesc
285
+ """
286
+ return self._disagree_link
287
+
288
+ @disagree_link.setter
289
+ def disagree_link(self, disagree_link):
290
+ """Sets the disagree_link of this PeerData.
291
+
292
+
293
+ :param disagree_link: The disagree_link of this PeerData. # noqa: E501
294
+ :type: LinkDesc
295
+ """
296
+
297
+ self._disagree_link = disagree_link
298
+
299
+ @property
300
+ def num_poller_only(self):
301
+ """Gets the num_poller_only of this PeerData. # noqa: E501
302
+
303
+ The number of urls which were poller only. # noqa: E501
304
+
305
+ :return: The num_poller_only of this PeerData. # noqa: E501
306
+ :rtype: int
307
+ """
308
+ return self._num_poller_only
309
+
310
+ @num_poller_only.setter
311
+ def num_poller_only(self, num_poller_only):
312
+ """Sets the num_poller_only of this PeerData.
313
+
314
+ The number of urls which were poller only. # noqa: E501
315
+
316
+ :param num_poller_only: The num_poller_only of this PeerData. # noqa: E501
317
+ :type: int
318
+ """
319
+
320
+ self._num_poller_only = num_poller_only
321
+
322
+ @property
323
+ def poller_only_link(self):
324
+ """Gets the poller_only_link of this PeerData. # noqa: E501
325
+
326
+
327
+ :return: The poller_only_link of this PeerData. # noqa: E501
328
+ :rtype: LinkDesc
329
+ """
330
+ return self._poller_only_link
331
+
332
+ @poller_only_link.setter
333
+ def poller_only_link(self, poller_only_link):
334
+ """Sets the poller_only_link of this PeerData.
335
+
336
+
337
+ :param poller_only_link: The poller_only_link of this PeerData. # noqa: E501
338
+ :type: LinkDesc
339
+ """
340
+
341
+ self._poller_only_link = poller_only_link
342
+
343
+ @property
344
+ def num_voter_only(self):
345
+ """Gets the num_voter_only of this PeerData. # noqa: E501
346
+
347
+ The number of urls for which were voter only. # noqa: E501
348
+
349
+ :return: The num_voter_only of this PeerData. # noqa: E501
350
+ :rtype: int
351
+ """
352
+ return self._num_voter_only
353
+
354
+ @num_voter_only.setter
355
+ def num_voter_only(self, num_voter_only):
356
+ """Sets the num_voter_only of this PeerData.
357
+
358
+ The number of urls for which were voter only. # noqa: E501
359
+
360
+ :param num_voter_only: The num_voter_only of this PeerData. # noqa: E501
361
+ :type: int
362
+ """
363
+
364
+ self._num_voter_only = num_voter_only
365
+
366
+ @property
367
+ def voter_only_link(self):
368
+ """Gets the voter_only_link of this PeerData. # noqa: E501
369
+
370
+
371
+ :return: The voter_only_link of this PeerData. # noqa: E501
372
+ :rtype: LinkDesc
373
+ """
374
+ return self._voter_only_link
375
+
376
+ @voter_only_link.setter
377
+ def voter_only_link(self, voter_only_link):
378
+ """Sets the voter_only_link of this PeerData.
379
+
380
+
381
+ :param voter_only_link: The voter_only_link of this PeerData. # noqa: E501
382
+ :type: LinkDesc
383
+ """
384
+
385
+ self._voter_only_link = voter_only_link
386
+
387
+ @property
388
+ def bytes_hashed(self):
389
+ """Gets the bytes_hashed of this PeerData. # noqa: E501
390
+
391
+ the number of bytes hashed. # noqa: E501
392
+
393
+ :return: The bytes_hashed of this PeerData. # noqa: E501
394
+ :rtype: int
395
+ """
396
+ return self._bytes_hashed
397
+
398
+ @bytes_hashed.setter
399
+ def bytes_hashed(self, bytes_hashed):
400
+ """Sets the bytes_hashed of this PeerData.
401
+
402
+ the number of bytes hashed. # noqa: E501
403
+
404
+ :param bytes_hashed: The bytes_hashed of this PeerData. # noqa: E501
405
+ :type: int
406
+ """
407
+
408
+ self._bytes_hashed = bytes_hashed
409
+
410
+ @property
411
+ def bytes_read(self):
412
+ """Gets the bytes_read of this PeerData. # noqa: E501
413
+
414
+ the number of bytes read. # noqa: E501
415
+
416
+ :return: The bytes_read of this PeerData. # noqa: E501
417
+ :rtype: int
418
+ """
419
+ return self._bytes_read
420
+
421
+ @bytes_read.setter
422
+ def bytes_read(self, bytes_read):
423
+ """Sets the bytes_read of this PeerData.
424
+
425
+ the number of bytes read. # noqa: E501
426
+
427
+ :param bytes_read: The bytes_read of this PeerData. # noqa: E501
428
+ :type: int
429
+ """
430
+
431
+ self._bytes_read = bytes_read
432
+
433
+ @property
434
+ def wt_agreement(self):
435
+ """Gets the wt_agreement of this PeerData. # noqa: E501
436
+
437
+ the weight of vote percentage agreement. # noqa: E501
438
+
439
+ :return: The wt_agreement of this PeerData. # noqa: E501
440
+ :rtype: float
441
+ """
442
+ return self._wt_agreement
443
+
444
+ @wt_agreement.setter
445
+ def wt_agreement(self, wt_agreement):
446
+ """Sets the wt_agreement of this PeerData.
447
+
448
+ the weight of vote percentage agreement. # noqa: E501
449
+
450
+ :param wt_agreement: The wt_agreement of this PeerData. # noqa: E501
451
+ :type: float
452
+ """
453
+
454
+ self._wt_agreement = wt_agreement
455
+
456
+ @property
457
+ def wt_num_agree(self):
458
+ """Gets the wt_num_agree of this PeerData. # noqa: E501
459
+
460
+ the weight of number agree votes. # noqa: E501
461
+
462
+ :return: The wt_num_agree of this PeerData. # noqa: E501
463
+ :rtype: float
464
+ """
465
+ return self._wt_num_agree
466
+
467
+ @wt_num_agree.setter
468
+ def wt_num_agree(self, wt_num_agree):
469
+ """Sets the wt_num_agree of this PeerData.
470
+
471
+ the weight of number agree votes. # noqa: E501
472
+
473
+ :param wt_num_agree: The wt_num_agree of this PeerData. # noqa: E501
474
+ :type: float
475
+ """
476
+
477
+ self._wt_num_agree = wt_num_agree
478
+
479
+ @property
480
+ def wt_num_disagree(self):
481
+ """Gets the wt_num_disagree of this PeerData. # noqa: E501
482
+
483
+ the weight of number of disagree votes. # noqa: E501
484
+
485
+ :return: The wt_num_disagree of this PeerData. # noqa: E501
486
+ :rtype: float
487
+ """
488
+ return self._wt_num_disagree
489
+
490
+ @wt_num_disagree.setter
491
+ def wt_num_disagree(self, wt_num_disagree):
492
+ """Sets the wt_num_disagree of this PeerData.
493
+
494
+ the weight of number of disagree votes. # noqa: E501
495
+
496
+ :param wt_num_disagree: The wt_num_disagree of this PeerData. # noqa: E501
497
+ :type: float
498
+ """
499
+
500
+ self._wt_num_disagree = wt_num_disagree
501
+
502
+ @property
503
+ def wt_num_poller_only(self):
504
+ """Gets the wt_num_poller_only of this PeerData. # noqa: E501
505
+
506
+ the weight of number of poller only votes. # noqa: E501
507
+
508
+ :return: The wt_num_poller_only of this PeerData. # noqa: E501
509
+ :rtype: float
510
+ """
511
+ return self._wt_num_poller_only
512
+
513
+ @wt_num_poller_only.setter
514
+ def wt_num_poller_only(self, wt_num_poller_only):
515
+ """Sets the wt_num_poller_only of this PeerData.
516
+
517
+ the weight of number of poller only votes. # noqa: E501
518
+
519
+ :param wt_num_poller_only: The wt_num_poller_only of this PeerData. # noqa: E501
520
+ :type: float
521
+ """
522
+
523
+ self._wt_num_poller_only = wt_num_poller_only
524
+
525
+ @property
526
+ def wt_num_voter_only(self):
527
+ """Gets the wt_num_voter_only of this PeerData. # noqa: E501
528
+
529
+ the weight of number of voter only votes. # noqa: E501
530
+
531
+ :return: The wt_num_voter_only of this PeerData. # noqa: E501
532
+ :rtype: float
533
+ """
534
+ return self._wt_num_voter_only
535
+
536
+ @wt_num_voter_only.setter
537
+ def wt_num_voter_only(self, wt_num_voter_only):
538
+ """Sets the wt_num_voter_only of this PeerData.
539
+
540
+ the weight of number of voter only votes. # noqa: E501
541
+
542
+ :param wt_num_voter_only: The wt_num_voter_only of this PeerData. # noqa: E501
543
+ :type: float
544
+ """
545
+
546
+ self._wt_num_voter_only = wt_num_voter_only
547
+
548
+ @property
549
+ def state(self):
550
+ """Gets the state of this PeerData. # noqa: E501
551
+
552
+ the state machine state. # noqa: E501
553
+
554
+ :return: The state of this PeerData. # noqa: E501
555
+ :rtype: str
556
+ """
557
+ return self._state
558
+
559
+ @state.setter
560
+ def state(self, state):
561
+ """Sets the state of this PeerData.
562
+
563
+ the state machine state. # noqa: E501
564
+
565
+ :param state: The state of this PeerData. # noqa: E501
566
+ :type: str
567
+ """
568
+
569
+ self._state = state
570
+
571
+ @property
572
+ def last_state_change(self):
573
+ """Gets the last_state_change of this PeerData. # noqa: E501
574
+
575
+ the time of last state change. # noqa: E501
576
+
577
+ :return: The last_state_change of this PeerData. # noqa: E501
578
+ :rtype: int
579
+ """
580
+ return self._last_state_change
581
+
582
+ @last_state_change.setter
583
+ def last_state_change(self, last_state_change):
584
+ """Sets the last_state_change of this PeerData.
585
+
586
+ the time of last state change. # noqa: E501
587
+
588
+ :param last_state_change: The last_state_change of this PeerData. # noqa: E501
589
+ :type: int
590
+ """
591
+
592
+ self._last_state_change = last_state_change
593
+
594
+ def to_dict(self):
595
+ """Returns the model properties as a dict"""
596
+ result = {}
597
+
598
+ for attr, _ in six.iteritems(self.swagger_types):
599
+ value = getattr(self, attr)
600
+ if isinstance(value, list):
601
+ result[attr] = list(map(
602
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
603
+ value
604
+ ))
605
+ elif hasattr(value, "to_dict"):
606
+ result[attr] = value.to_dict()
607
+ elif isinstance(value, dict):
608
+ result[attr] = dict(map(
609
+ lambda item: (item[0], item[1].to_dict())
610
+ if hasattr(item[1], "to_dict") else item,
611
+ value.items()
612
+ ))
613
+ else:
614
+ result[attr] = value
615
+ if issubclass(PeerData, dict):
616
+ for key, value in self.items():
617
+ result[key] = value
618
+
619
+ return result
620
+
621
+ def to_str(self):
622
+ """Returns the string representation of the model"""
623
+ return pprint.pformat(self.to_dict())
624
+
625
+ def __repr__(self):
626
+ """For `print` and `pprint`"""
627
+ return self.to_str()
628
+
629
+ def __eq__(self, other):
630
+ """Returns true if both objects are equal"""
631
+ if not isinstance(other, PeerData):
632
+ return False
633
+
634
+ return self.__dict__ == other.__dict__
635
+
636
+ def __ne__(self, other):
637
+ """Returns true if both objects are not equal"""
638
+ return not self == other