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,139 @@
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 PollerPager(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
+ 'page_desc': 'PageDesc',
32
+ 'polls': 'list[PollerSummary]'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'page_desc': 'pageDesc',
37
+ 'polls': 'polls'
38
+ }
39
+
40
+ def __init__(self, page_desc=None, polls=None): # noqa: E501
41
+ """PollerPager - a model defined in Swagger""" # noqa: E501
42
+ self._page_desc = None
43
+ self._polls = None
44
+ self.discriminator = None
45
+ self.page_desc = page_desc
46
+ if polls is not None:
47
+ self.polls = polls
48
+
49
+ @property
50
+ def page_desc(self):
51
+ """Gets the page_desc of this PollerPager. # noqa: E501
52
+
53
+
54
+ :return: The page_desc of this PollerPager. # noqa: E501
55
+ :rtype: PageDesc
56
+ """
57
+ return self._page_desc
58
+
59
+ @page_desc.setter
60
+ def page_desc(self, page_desc):
61
+ """Sets the page_desc of this PollerPager.
62
+
63
+
64
+ :param page_desc: The page_desc of this PollerPager. # noqa: E501
65
+ :type: PageDesc
66
+ """
67
+ if page_desc is None:
68
+ raise ValueError("Invalid value for `page_desc`, must not be `None`") # noqa: E501
69
+
70
+ self._page_desc = page_desc
71
+
72
+ @property
73
+ def polls(self):
74
+ """Gets the polls of this PollerPager. # noqa: E501
75
+
76
+ The list of polls for the current page or null # noqa: E501
77
+
78
+ :return: The polls of this PollerPager. # noqa: E501
79
+ :rtype: list[PollerSummary]
80
+ """
81
+ return self._polls
82
+
83
+ @polls.setter
84
+ def polls(self, polls):
85
+ """Sets the polls of this PollerPager.
86
+
87
+ The list of polls for the current page or null # noqa: E501
88
+
89
+ :param polls: The polls of this PollerPager. # noqa: E501
90
+ :type: list[PollerSummary]
91
+ """
92
+
93
+ self._polls = polls
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.swagger_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ result[attr] = value
116
+ if issubclass(PollerPager, dict):
117
+ for key, value in self.items():
118
+ result[key] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ return pprint.pformat(self.to_dict())
125
+
126
+ def __repr__(self):
127
+ """For `print` and `pprint`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, PollerPager):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,452 @@
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 PollerSummary(object):
19
+ """NOTE: This class is auto generated by the swagger code generator program.
20
+
21
+ Do not edit the class manually.
22
+ """
23
+ """
24
+ Attributes:
25
+ swagger_types (dict): The key is attribute name
26
+ and the value is attribute type.
27
+ attribute_map (dict): The key is attribute name
28
+ and the value is json key in definition.
29
+ """
30
+ swagger_types = {
31
+ 'au_id': 'str',
32
+ 'variant': 'str',
33
+ 'status': 'str',
34
+ 'participants': 'int',
35
+ 'num_tallied_urls': 'int',
36
+ 'num_hash_errors': 'int',
37
+ 'num_completed_repairs': 'int',
38
+ 'num_agree_urls': 'int',
39
+ 'start': 'int',
40
+ 'deadline': 'int',
41
+ 'poll_end': 'int',
42
+ 'poll_key': 'str',
43
+ 'detail_link': 'LinkDesc'
44
+ }
45
+
46
+ attribute_map = {
47
+ 'au_id': 'auId',
48
+ 'variant': 'variant',
49
+ 'status': 'status',
50
+ 'participants': 'participants',
51
+ 'num_tallied_urls': 'numTalliedUrls',
52
+ 'num_hash_errors': 'numHashErrors',
53
+ 'num_completed_repairs': 'numCompletedRepairs',
54
+ 'num_agree_urls': 'numAgreeUrls',
55
+ 'start': 'start',
56
+ 'deadline': 'deadline',
57
+ 'poll_end': 'pollEnd',
58
+ 'poll_key': 'pollKey',
59
+ 'detail_link': 'detailLink'
60
+ }
61
+
62
+ def __init__(self, au_id=None, variant=None, status=None, participants=None, num_tallied_urls=None, num_hash_errors=None, num_completed_repairs=None, num_agree_urls=None, start=None, deadline=None, poll_end=None, poll_key=None, detail_link=None): # noqa: E501
63
+ """PollerSummary - a model defined in Swagger""" # noqa: E501
64
+ self._au_id = None
65
+ self._variant = None
66
+ self._status = None
67
+ self._participants = None
68
+ self._num_tallied_urls = None
69
+ self._num_hash_errors = None
70
+ self._num_completed_repairs = None
71
+ self._num_agree_urls = None
72
+ self._start = None
73
+ self._deadline = None
74
+ self._poll_end = None
75
+ self._poll_key = None
76
+ self._detail_link = None
77
+ self.discriminator = None
78
+ self.au_id = au_id
79
+ self.variant = variant
80
+ self.status = status
81
+ if participants is not None:
82
+ self.participants = participants
83
+ if num_tallied_urls is not None:
84
+ self.num_tallied_urls = num_tallied_urls
85
+ if num_hash_errors is not None:
86
+ self.num_hash_errors = num_hash_errors
87
+ if num_completed_repairs is not None:
88
+ self.num_completed_repairs = num_completed_repairs
89
+ if num_agree_urls is not None:
90
+ self.num_agree_urls = num_agree_urls
91
+ self.start = start
92
+ self.deadline = deadline
93
+ if poll_end is not None:
94
+ self.poll_end = poll_end
95
+ self.poll_key = poll_key
96
+ if detail_link is not None:
97
+ self.detail_link = detail_link
98
+
99
+ @property
100
+ def au_id(self):
101
+ """Gets the au_id of this PollerSummary. # noqa: E501
102
+
103
+ The id for the au being polled. # noqa: E501
104
+
105
+ :return: The au_id of this PollerSummary. # noqa: E501
106
+ :rtype: str
107
+ """
108
+ return self._au_id
109
+
110
+ @au_id.setter
111
+ def au_id(self, au_id):
112
+ """Sets the au_id of this PollerSummary.
113
+
114
+ The id for the au being polled. # noqa: E501
115
+
116
+ :param au_id: The au_id of this PollerSummary. # noqa: E501
117
+ :type: str
118
+ """
119
+ if au_id is None:
120
+ raise ValueError("Invalid value for `au_id`, must not be `None`") # noqa: E501
121
+
122
+ self._au_id = au_id
123
+
124
+ @property
125
+ def variant(self):
126
+ """Gets the variant of this PollerSummary. # noqa: E501
127
+
128
+ The V3 Poll variant. # noqa: E501
129
+
130
+ :return: The variant of this PollerSummary. # noqa: E501
131
+ :rtype: str
132
+ """
133
+ return self._variant
134
+
135
+ @variant.setter
136
+ def variant(self, variant):
137
+ """Sets the variant of this PollerSummary.
138
+
139
+ The V3 Poll variant. # noqa: E501
140
+
141
+ :param variant: The variant of this PollerSummary. # noqa: E501
142
+ :type: str
143
+ """
144
+ if variant is None:
145
+ raise ValueError("Invalid value for `variant`, must not be `None`") # noqa: E501
146
+
147
+ self._variant = variant
148
+
149
+ @property
150
+ def status(self):
151
+ """Gets the status of this PollerSummary. # noqa: E501
152
+
153
+ The current status of the poll. # noqa: E501
154
+
155
+ :return: The status of this PollerSummary. # noqa: E501
156
+ :rtype: str
157
+ """
158
+ return self._status
159
+
160
+ @status.setter
161
+ def status(self, status):
162
+ """Sets the status of this PollerSummary.
163
+
164
+ The current status of the poll. # noqa: E501
165
+
166
+ :param status: The status of this PollerSummary. # noqa: E501
167
+ :type: str
168
+ """
169
+ if status is None:
170
+ raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
171
+
172
+ self._status = status
173
+
174
+ @property
175
+ def participants(self):
176
+ """Gets the participants of this PollerSummary. # noqa: E501
177
+
178
+ The number of participants voting. # noqa: E501
179
+
180
+ :return: The participants of this PollerSummary. # noqa: E501
181
+ :rtype: int
182
+ """
183
+ return self._participants
184
+
185
+ @participants.setter
186
+ def participants(self, participants):
187
+ """Sets the participants of this PollerSummary.
188
+
189
+ The number of participants voting. # noqa: E501
190
+
191
+ :param participants: The participants of this PollerSummary. # noqa: E501
192
+ :type: int
193
+ """
194
+
195
+ self._participants = participants
196
+
197
+ @property
198
+ def num_tallied_urls(self):
199
+ """Gets the num_tallied_urls of this PollerSummary. # noqa: E501
200
+
201
+ The number of tallied urls. # noqa: E501
202
+
203
+ :return: The num_tallied_urls of this PollerSummary. # noqa: E501
204
+ :rtype: int
205
+ """
206
+ return self._num_tallied_urls
207
+
208
+ @num_tallied_urls.setter
209
+ def num_tallied_urls(self, num_tallied_urls):
210
+ """Sets the num_tallied_urls of this PollerSummary.
211
+
212
+ The number of tallied urls. # noqa: E501
213
+
214
+ :param num_tallied_urls: The num_tallied_urls of this PollerSummary. # noqa: E501
215
+ :type: int
216
+ """
217
+
218
+ self._num_tallied_urls = num_tallied_urls
219
+
220
+ @property
221
+ def num_hash_errors(self):
222
+ """Gets the num_hash_errors of this PollerSummary. # noqa: E501
223
+
224
+ The number of hash errors. # noqa: E501
225
+
226
+ :return: The num_hash_errors of this PollerSummary. # noqa: E501
227
+ :rtype: int
228
+ """
229
+ return self._num_hash_errors
230
+
231
+ @num_hash_errors.setter
232
+ def num_hash_errors(self, num_hash_errors):
233
+ """Sets the num_hash_errors of this PollerSummary.
234
+
235
+ The number of hash errors. # noqa: E501
236
+
237
+ :param num_hash_errors: The num_hash_errors of this PollerSummary. # noqa: E501
238
+ :type: int
239
+ """
240
+
241
+ self._num_hash_errors = num_hash_errors
242
+
243
+ @property
244
+ def num_completed_repairs(self):
245
+ """Gets the num_completed_repairs of this PollerSummary. # noqa: E501
246
+
247
+ The number of completed repairs. # noqa: E501
248
+
249
+ :return: The num_completed_repairs of this PollerSummary. # noqa: E501
250
+ :rtype: int
251
+ """
252
+ return self._num_completed_repairs
253
+
254
+ @num_completed_repairs.setter
255
+ def num_completed_repairs(self, num_completed_repairs):
256
+ """Sets the num_completed_repairs of this PollerSummary.
257
+
258
+ The number of completed repairs. # noqa: E501
259
+
260
+ :param num_completed_repairs: The num_completed_repairs of this PollerSummary. # noqa: E501
261
+ :type: int
262
+ """
263
+
264
+ self._num_completed_repairs = num_completed_repairs
265
+
266
+ @property
267
+ def num_agree_urls(self):
268
+ """Gets the num_agree_urls of this PollerSummary. # noqa: E501
269
+
270
+ The number of urls with agreement. # noqa: E501
271
+
272
+ :return: The num_agree_urls of this PollerSummary. # noqa: E501
273
+ :rtype: int
274
+ """
275
+ return self._num_agree_urls
276
+
277
+ @num_agree_urls.setter
278
+ def num_agree_urls(self, num_agree_urls):
279
+ """Sets the num_agree_urls of this PollerSummary.
280
+
281
+ The number of urls with agreement. # noqa: E501
282
+
283
+ :param num_agree_urls: The num_agree_urls of this PollerSummary. # noqa: E501
284
+ :type: int
285
+ """
286
+
287
+ self._num_agree_urls = num_agree_urls
288
+
289
+ @property
290
+ def start(self):
291
+ """Gets the start of this PollerSummary. # noqa: E501
292
+
293
+ The timestamp for when the poll started. # noqa: E501
294
+
295
+ :return: The start of this PollerSummary. # noqa: E501
296
+ :rtype: int
297
+ """
298
+ return self._start
299
+
300
+ @start.setter
301
+ def start(self, start):
302
+ """Sets the start of this PollerSummary.
303
+
304
+ The timestamp for when the poll started. # noqa: E501
305
+
306
+ :param start: The start of this PollerSummary. # noqa: E501
307
+ :type: int
308
+ """
309
+ if start is None:
310
+ raise ValueError("Invalid value for `start`, must not be `None`") # noqa: E501
311
+
312
+ self._start = start
313
+
314
+ @property
315
+ def deadline(self):
316
+ """Gets the deadline of this PollerSummary. # noqa: E501
317
+
318
+ The deadline for voting in this poll. # noqa: E501
319
+
320
+ :return: The deadline of this PollerSummary. # noqa: E501
321
+ :rtype: int
322
+ """
323
+ return self._deadline
324
+
325
+ @deadline.setter
326
+ def deadline(self, deadline):
327
+ """Sets the deadline of this PollerSummary.
328
+
329
+ The deadline for voting in this poll. # noqa: E501
330
+
331
+ :param deadline: The deadline of this PollerSummary. # noqa: E501
332
+ :type: int
333
+ """
334
+ if deadline is None:
335
+ raise ValueError("Invalid value for `deadline`, must not be `None`") # noqa: E501
336
+
337
+ self._deadline = deadline
338
+
339
+ @property
340
+ def poll_end(self):
341
+ """Gets the poll_end of this PollerSummary. # noqa: E501
342
+
343
+ The time at which the poll ended. # noqa: E501
344
+
345
+ :return: The poll_end of this PollerSummary. # noqa: E501
346
+ :rtype: int
347
+ """
348
+ return self._poll_end
349
+
350
+ @poll_end.setter
351
+ def poll_end(self, poll_end):
352
+ """Sets the poll_end of this PollerSummary.
353
+
354
+ The time at which the poll ended. # noqa: E501
355
+
356
+ :param poll_end: The poll_end of this PollerSummary. # noqa: E501
357
+ :type: int
358
+ """
359
+
360
+ self._poll_end = poll_end
361
+
362
+ @property
363
+ def poll_key(self):
364
+ """Gets the poll_key of this PollerSummary. # noqa: E501
365
+
366
+ Key generated by poll manager when poll was created. # noqa: E501
367
+
368
+ :return: The poll_key of this PollerSummary. # noqa: E501
369
+ :rtype: str
370
+ """
371
+ return self._poll_key
372
+
373
+ @poll_key.setter
374
+ def poll_key(self, poll_key):
375
+ """Sets the poll_key of this PollerSummary.
376
+
377
+ Key generated by poll manager when poll was created. # noqa: E501
378
+
379
+ :param poll_key: The poll_key of this PollerSummary. # noqa: E501
380
+ :type: str
381
+ """
382
+ if poll_key is None:
383
+ raise ValueError("Invalid value for `poll_key`, must not be `None`") # noqa: E501
384
+
385
+ self._poll_key = poll_key
386
+
387
+ @property
388
+ def detail_link(self):
389
+ """Gets the detail_link of this PollerSummary. # noqa: E501
390
+
391
+
392
+ :return: The detail_link of this PollerSummary. # noqa: E501
393
+ :rtype: LinkDesc
394
+ """
395
+ return self._detail_link
396
+
397
+ @detail_link.setter
398
+ def detail_link(self, detail_link):
399
+ """Sets the detail_link of this PollerSummary.
400
+
401
+
402
+ :param detail_link: The detail_link of this PollerSummary. # noqa: E501
403
+ :type: LinkDesc
404
+ """
405
+
406
+ self._detail_link = detail_link
407
+
408
+ def to_dict(self):
409
+ """Returns the model properties as a dict"""
410
+ result = {}
411
+
412
+ for attr, _ in six.iteritems(self.swagger_types):
413
+ value = getattr(self, attr)
414
+ if isinstance(value, list):
415
+ result[attr] = list(map(
416
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
417
+ value
418
+ ))
419
+ elif hasattr(value, "to_dict"):
420
+ result[attr] = value.to_dict()
421
+ elif isinstance(value, dict):
422
+ result[attr] = dict(map(
423
+ lambda item: (item[0], item[1].to_dict())
424
+ if hasattr(item[1], "to_dict") else item,
425
+ value.items()
426
+ ))
427
+ else:
428
+ result[attr] = value
429
+ if issubclass(PollerSummary, dict):
430
+ for key, value in self.items():
431
+ result[key] = value
432
+
433
+ return result
434
+
435
+ def to_str(self):
436
+ """Returns the string representation of the model"""
437
+ return pprint.pformat(self.to_dict())
438
+
439
+ def __repr__(self):
440
+ """For `print` and `pprint`"""
441
+ return self.to_str()
442
+
443
+ def __eq__(self, other):
444
+ """Returns true if both objects are equal"""
445
+ if not isinstance(other, PollerSummary):
446
+ return False
447
+
448
+ return self.__dict__ == other.__dict__
449
+
450
+ def __ne__(self, other):
451
+ """Returns true if both objects are not equal"""
452
+ return not self == other