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,113 @@
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 RepositoryWsResult(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
+ 'repository_space_id': 'str'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'repository_space_id': 'repositorySpaceId'
36
+ }
37
+
38
+ def __init__(self, repository_space_id=None): # noqa: E501
39
+ """RepositoryWsResult - a model defined in Swagger""" # noqa: E501
40
+ self._repository_space_id = None
41
+ self.discriminator = None
42
+ self.repository_space_id = repository_space_id
43
+
44
+ @property
45
+ def repository_space_id(self):
46
+ """Gets the repository_space_id of this RepositoryWsResult. # noqa: E501
47
+
48
+ The Repository Space identifier # noqa: E501
49
+
50
+ :return: The repository_space_id of this RepositoryWsResult. # noqa: E501
51
+ :rtype: str
52
+ """
53
+ return self._repository_space_id
54
+
55
+ @repository_space_id.setter
56
+ def repository_space_id(self, repository_space_id):
57
+ """Sets the repository_space_id of this RepositoryWsResult.
58
+
59
+ The Repository Space identifier # noqa: E501
60
+
61
+ :param repository_space_id: The repository_space_id of this RepositoryWsResult. # noqa: E501
62
+ :type: str
63
+ """
64
+ if repository_space_id is None:
65
+ raise ValueError("Invalid value for `repository_space_id`, must not be `None`") # noqa: E501
66
+
67
+ self._repository_space_id = repository_space_id
68
+
69
+ def to_dict(self):
70
+ """Returns the model properties as a dict"""
71
+ result = {}
72
+
73
+ for attr, _ in six.iteritems(self.swagger_types):
74
+ value = getattr(self, attr)
75
+ if isinstance(value, list):
76
+ result[attr] = list(map(
77
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
78
+ value
79
+ ))
80
+ elif hasattr(value, "to_dict"):
81
+ result[attr] = value.to_dict()
82
+ elif isinstance(value, dict):
83
+ result[attr] = dict(map(
84
+ lambda item: (item[0], item[1].to_dict())
85
+ if hasattr(item[1], "to_dict") else item,
86
+ value.items()
87
+ ))
88
+ else:
89
+ result[attr] = value
90
+ if issubclass(RepositoryWsResult, dict):
91
+ for key, value in self.items():
92
+ result[key] = value
93
+
94
+ return result
95
+
96
+ def to_str(self):
97
+ """Returns the string representation of the model"""
98
+ return pprint.pformat(self.to_dict())
99
+
100
+ def __repr__(self):
101
+ """For `print` and `pprint`"""
102
+ return self.to_str()
103
+
104
+ def __eq__(self, other):
105
+ """Returns true if both objects are equal"""
106
+ if not isinstance(other, RepositoryWsResult):
107
+ return False
108
+
109
+ return self.__dict__ == other.__dict__
110
+
111
+ def __ne__(self, other):
112
+ """Returns true if both objects are not equal"""
113
+ return not self == other
@@ -0,0 +1,471 @@
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 TallyData(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
+ 'num_agree': 'int',
32
+ 'agree_link': 'LinkDesc',
33
+ 'num_disagree': 'int',
34
+ 'disagree_link': 'LinkDesc',
35
+ 'num_too_close': 'int',
36
+ 'too_close_link': 'LinkDesc',
37
+ 'num_no_quorum': 'int',
38
+ 'no_quorum_link': 'LinkDesc',
39
+ 'num_error': 'int',
40
+ 'error_link': 'LinkDesc',
41
+ 'wt_agreed': 'float',
42
+ 'wt_disagreed': 'float',
43
+ 'wt_too_close': 'float',
44
+ 'wt_no_quorum': 'float'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'num_agree': 'numAgree',
49
+ 'agree_link': 'agreeLink',
50
+ 'num_disagree': 'numDisagree',
51
+ 'disagree_link': 'disagreeLink',
52
+ 'num_too_close': 'numTooClose',
53
+ 'too_close_link': 'tooCloseLink',
54
+ 'num_no_quorum': 'numNoQuorum',
55
+ 'no_quorum_link': 'noQuorumLink',
56
+ 'num_error': 'numError',
57
+ 'error_link': 'errorLink',
58
+ 'wt_agreed': 'wtAgreed',
59
+ 'wt_disagreed': 'wtDisagreed',
60
+ 'wt_too_close': 'wtTooClose',
61
+ 'wt_no_quorum': 'wtNoQuorum'
62
+ }
63
+
64
+ def __init__(self, num_agree=None, agree_link=None, num_disagree=None, disagree_link=None, num_too_close=None, too_close_link=None, num_no_quorum=None, no_quorum_link=None, num_error=None, error_link=None, wt_agreed=0.0, wt_disagreed=0.0, wt_too_close=0.0, wt_no_quorum=0.0): # noqa: E501
65
+ """TallyData - a model defined in Swagger""" # noqa: E501
66
+ self._num_agree = None
67
+ self._agree_link = None
68
+ self._num_disagree = None
69
+ self._disagree_link = None
70
+ self._num_too_close = None
71
+ self._too_close_link = None
72
+ self._num_no_quorum = None
73
+ self._no_quorum_link = None
74
+ self._num_error = None
75
+ self._error_link = None
76
+ self._wt_agreed = None
77
+ self._wt_disagreed = None
78
+ self._wt_too_close = None
79
+ self._wt_no_quorum = None
80
+ self.discriminator = None
81
+ self.num_agree = num_agree
82
+ if agree_link is not None:
83
+ self.agree_link = agree_link
84
+ self.num_disagree = num_disagree
85
+ if disagree_link is not None:
86
+ self.disagree_link = disagree_link
87
+ self.num_too_close = num_too_close
88
+ if too_close_link is not None:
89
+ self.too_close_link = too_close_link
90
+ self.num_no_quorum = num_no_quorum
91
+ if no_quorum_link is not None:
92
+ self.no_quorum_link = no_quorum_link
93
+ self.num_error = num_error
94
+ if error_link is not None:
95
+ self.error_link = error_link
96
+ if wt_agreed is not None:
97
+ self.wt_agreed = wt_agreed
98
+ if wt_disagreed is not None:
99
+ self.wt_disagreed = wt_disagreed
100
+ if wt_too_close is not None:
101
+ self.wt_too_close = wt_too_close
102
+ if wt_no_quorum is not None:
103
+ self.wt_no_quorum = wt_no_quorum
104
+
105
+ @property
106
+ def num_agree(self):
107
+ """Gets the num_agree of this TallyData. # noqa: E501
108
+
109
+ The number of urls with agreement. # noqa: E501
110
+
111
+ :return: The num_agree of this TallyData. # noqa: E501
112
+ :rtype: int
113
+ """
114
+ return self._num_agree
115
+
116
+ @num_agree.setter
117
+ def num_agree(self, num_agree):
118
+ """Sets the num_agree of this TallyData.
119
+
120
+ The number of urls with agreement. # noqa: E501
121
+
122
+ :param num_agree: The num_agree of this TallyData. # noqa: E501
123
+ :type: int
124
+ """
125
+ if num_agree is None:
126
+ raise ValueError("Invalid value for `num_agree`, must not be `None`") # noqa: E501
127
+
128
+ self._num_agree = num_agree
129
+
130
+ @property
131
+ def agree_link(self):
132
+ """Gets the agree_link of this TallyData. # noqa: E501
133
+
134
+
135
+ :return: The agree_link of this TallyData. # noqa: E501
136
+ :rtype: LinkDesc
137
+ """
138
+ return self._agree_link
139
+
140
+ @agree_link.setter
141
+ def agree_link(self, agree_link):
142
+ """Sets the agree_link of this TallyData.
143
+
144
+
145
+ :param agree_link: The agree_link of this TallyData. # noqa: E501
146
+ :type: LinkDesc
147
+ """
148
+
149
+ self._agree_link = agree_link
150
+
151
+ @property
152
+ def num_disagree(self):
153
+ """Gets the num_disagree of this TallyData. # noqa: E501
154
+
155
+ The number of urls with disagreement. # noqa: E501
156
+
157
+ :return: The num_disagree of this TallyData. # noqa: E501
158
+ :rtype: int
159
+ """
160
+ return self._num_disagree
161
+
162
+ @num_disagree.setter
163
+ def num_disagree(self, num_disagree):
164
+ """Sets the num_disagree of this TallyData.
165
+
166
+ The number of urls with disagreement. # noqa: E501
167
+
168
+ :param num_disagree: The num_disagree of this TallyData. # noqa: E501
169
+ :type: int
170
+ """
171
+ if num_disagree is None:
172
+ raise ValueError("Invalid value for `num_disagree`, must not be `None`") # noqa: E501
173
+
174
+ self._num_disagree = num_disagree
175
+
176
+ @property
177
+ def disagree_link(self):
178
+ """Gets the disagree_link of this TallyData. # noqa: E501
179
+
180
+
181
+ :return: The disagree_link of this TallyData. # noqa: E501
182
+ :rtype: LinkDesc
183
+ """
184
+ return self._disagree_link
185
+
186
+ @disagree_link.setter
187
+ def disagree_link(self, disagree_link):
188
+ """Sets the disagree_link of this TallyData.
189
+
190
+
191
+ :param disagree_link: The disagree_link of this TallyData. # noqa: E501
192
+ :type: LinkDesc
193
+ """
194
+
195
+ self._disagree_link = disagree_link
196
+
197
+ @property
198
+ def num_too_close(self):
199
+ """Gets the num_too_close of this TallyData. # noqa: E501
200
+
201
+ The number of urls too close. # noqa: E501
202
+
203
+ :return: The num_too_close of this TallyData. # noqa: E501
204
+ :rtype: int
205
+ """
206
+ return self._num_too_close
207
+
208
+ @num_too_close.setter
209
+ def num_too_close(self, num_too_close):
210
+ """Sets the num_too_close of this TallyData.
211
+
212
+ The number of urls too close. # noqa: E501
213
+
214
+ :param num_too_close: The num_too_close of this TallyData. # noqa: E501
215
+ :type: int
216
+ """
217
+ if num_too_close is None:
218
+ raise ValueError("Invalid value for `num_too_close`, must not be `None`") # noqa: E501
219
+
220
+ self._num_too_close = num_too_close
221
+
222
+ @property
223
+ def too_close_link(self):
224
+ """Gets the too_close_link of this TallyData. # noqa: E501
225
+
226
+
227
+ :return: The too_close_link of this TallyData. # noqa: E501
228
+ :rtype: LinkDesc
229
+ """
230
+ return self._too_close_link
231
+
232
+ @too_close_link.setter
233
+ def too_close_link(self, too_close_link):
234
+ """Sets the too_close_link of this TallyData.
235
+
236
+
237
+ :param too_close_link: The too_close_link of this TallyData. # noqa: E501
238
+ :type: LinkDesc
239
+ """
240
+
241
+ self._too_close_link = too_close_link
242
+
243
+ @property
244
+ def num_no_quorum(self):
245
+ """Gets the num_no_quorum of this TallyData. # noqa: E501
246
+
247
+ The number of urls without enough voters. # noqa: E501
248
+
249
+ :return: The num_no_quorum of this TallyData. # noqa: E501
250
+ :rtype: int
251
+ """
252
+ return self._num_no_quorum
253
+
254
+ @num_no_quorum.setter
255
+ def num_no_quorum(self, num_no_quorum):
256
+ """Sets the num_no_quorum of this TallyData.
257
+
258
+ The number of urls without enough voters. # noqa: E501
259
+
260
+ :param num_no_quorum: The num_no_quorum of this TallyData. # noqa: E501
261
+ :type: int
262
+ """
263
+ if num_no_quorum is None:
264
+ raise ValueError("Invalid value for `num_no_quorum`, must not be `None`") # noqa: E501
265
+
266
+ self._num_no_quorum = num_no_quorum
267
+
268
+ @property
269
+ def no_quorum_link(self):
270
+ """Gets the no_quorum_link of this TallyData. # noqa: E501
271
+
272
+
273
+ :return: The no_quorum_link of this TallyData. # noqa: E501
274
+ :rtype: LinkDesc
275
+ """
276
+ return self._no_quorum_link
277
+
278
+ @no_quorum_link.setter
279
+ def no_quorum_link(self, no_quorum_link):
280
+ """Sets the no_quorum_link of this TallyData.
281
+
282
+
283
+ :param no_quorum_link: The no_quorum_link of this TallyData. # noqa: E501
284
+ :type: LinkDesc
285
+ """
286
+
287
+ self._no_quorum_link = no_quorum_link
288
+
289
+ @property
290
+ def num_error(self):
291
+ """Gets the num_error of this TallyData. # noqa: E501
292
+
293
+ The number of urls wit errors. # noqa: E501
294
+
295
+ :return: The num_error of this TallyData. # noqa: E501
296
+ :rtype: int
297
+ """
298
+ return self._num_error
299
+
300
+ @num_error.setter
301
+ def num_error(self, num_error):
302
+ """Sets the num_error of this TallyData.
303
+
304
+ The number of urls wit errors. # noqa: E501
305
+
306
+ :param num_error: The num_error of this TallyData. # noqa: E501
307
+ :type: int
308
+ """
309
+ if num_error is None:
310
+ raise ValueError("Invalid value for `num_error`, must not be `None`") # noqa: E501
311
+
312
+ self._num_error = num_error
313
+
314
+ @property
315
+ def error_link(self):
316
+ """Gets the error_link of this TallyData. # noqa: E501
317
+
318
+
319
+ :return: The error_link of this TallyData. # noqa: E501
320
+ :rtype: LinkDesc
321
+ """
322
+ return self._error_link
323
+
324
+ @error_link.setter
325
+ def error_link(self, error_link):
326
+ """Sets the error_link of this TallyData.
327
+
328
+
329
+ :param error_link: The error_link of this TallyData. # noqa: E501
330
+ :type: LinkDesc
331
+ """
332
+
333
+ self._error_link = error_link
334
+
335
+ @property
336
+ def wt_agreed(self):
337
+ """Gets the wt_agreed of this TallyData. # noqa: E501
338
+
339
+ The weighted sum agreed uris. # noqa: E501
340
+
341
+ :return: The wt_agreed of this TallyData. # noqa: E501
342
+ :rtype: float
343
+ """
344
+ return self._wt_agreed
345
+
346
+ @wt_agreed.setter
347
+ def wt_agreed(self, wt_agreed):
348
+ """Sets the wt_agreed of this TallyData.
349
+
350
+ The weighted sum agreed uris. # noqa: E501
351
+
352
+ :param wt_agreed: The wt_agreed of this TallyData. # noqa: E501
353
+ :type: float
354
+ """
355
+
356
+ self._wt_agreed = wt_agreed
357
+
358
+ @property
359
+ def wt_disagreed(self):
360
+ """Gets the wt_disagreed of this TallyData. # noqa: E501
361
+
362
+ The weighted sum of disagree uris. # noqa: E501
363
+
364
+ :return: The wt_disagreed of this TallyData. # noqa: E501
365
+ :rtype: float
366
+ """
367
+ return self._wt_disagreed
368
+
369
+ @wt_disagreed.setter
370
+ def wt_disagreed(self, wt_disagreed):
371
+ """Sets the wt_disagreed of this TallyData.
372
+
373
+ The weighted sum of disagree uris. # noqa: E501
374
+
375
+ :param wt_disagreed: The wt_disagreed of this TallyData. # noqa: E501
376
+ :type: float
377
+ """
378
+
379
+ self._wt_disagreed = wt_disagreed
380
+
381
+ @property
382
+ def wt_too_close(self):
383
+ """Gets the wt_too_close of this TallyData. # noqa: E501
384
+
385
+ The sum of the tooClose uris. # noqa: E501
386
+
387
+ :return: The wt_too_close of this TallyData. # noqa: E501
388
+ :rtype: float
389
+ """
390
+ return self._wt_too_close
391
+
392
+ @wt_too_close.setter
393
+ def wt_too_close(self, wt_too_close):
394
+ """Sets the wt_too_close of this TallyData.
395
+
396
+ The sum of the tooClose uris. # noqa: E501
397
+
398
+ :param wt_too_close: The wt_too_close of this TallyData. # noqa: E501
399
+ :type: float
400
+ """
401
+
402
+ self._wt_too_close = wt_too_close
403
+
404
+ @property
405
+ def wt_no_quorum(self):
406
+ """Gets the wt_no_quorum of this TallyData. # noqa: E501
407
+
408
+ The weighted sum of NoQuorum uris. # noqa: E501
409
+
410
+ :return: The wt_no_quorum of this TallyData. # noqa: E501
411
+ :rtype: float
412
+ """
413
+ return self._wt_no_quorum
414
+
415
+ @wt_no_quorum.setter
416
+ def wt_no_quorum(self, wt_no_quorum):
417
+ """Sets the wt_no_quorum of this TallyData.
418
+
419
+ The weighted sum of NoQuorum uris. # noqa: E501
420
+
421
+ :param wt_no_quorum: The wt_no_quorum of this TallyData. # noqa: E501
422
+ :type: float
423
+ """
424
+
425
+ self._wt_no_quorum = wt_no_quorum
426
+
427
+ def to_dict(self):
428
+ """Returns the model properties as a dict"""
429
+ result = {}
430
+
431
+ for attr, _ in six.iteritems(self.swagger_types):
432
+ value = getattr(self, attr)
433
+ if isinstance(value, list):
434
+ result[attr] = list(map(
435
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
436
+ value
437
+ ))
438
+ elif hasattr(value, "to_dict"):
439
+ result[attr] = value.to_dict()
440
+ elif isinstance(value, dict):
441
+ result[attr] = dict(map(
442
+ lambda item: (item[0], item[1].to_dict())
443
+ if hasattr(item[1], "to_dict") else item,
444
+ value.items()
445
+ ))
446
+ else:
447
+ result[attr] = value
448
+ if issubclass(TallyData, dict):
449
+ for key, value in self.items():
450
+ result[key] = value
451
+
452
+ return result
453
+
454
+ def to_str(self):
455
+ """Returns the string representation of the model"""
456
+ return pprint.pformat(self.to_dict())
457
+
458
+ def __repr__(self):
459
+ """For `print` and `pprint`"""
460
+ return self.to_str()
461
+
462
+ def __eq__(self, other):
463
+ """Returns true if both objects are equal"""
464
+ if not isinstance(other, TallyData):
465
+ return False
466
+
467
+ return self.__dict__ == other.__dict__
468
+
469
+ def __ne__(self, other):
470
+ """Returns true if both objects are not equal"""
471
+ return not self == other