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