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.
- lockss/pyclient/__init__.py +67 -0
- lockss/pyclient/config/__init__.py +42 -0
- lockss/pyclient/config/api/__init__.py +12 -0
- lockss/pyclient/config/api/aus_api.py +2195 -0
- lockss/pyclient/config/api/config_api.py +718 -0
- lockss/pyclient/config/api/plugins_api.py +128 -0
- lockss/pyclient/config/api/status_api.py +120 -0
- lockss/pyclient/config/api/tdb_api.py +318 -0
- lockss/pyclient/config/api/users_api.py +516 -0
- lockss/pyclient/config/api/utils_api.py +128 -0
- lockss/pyclient/config/api_client.py +632 -0
- lockss/pyclient/config/configuration.py +254 -0
- lockss/pyclient/config/models/__init__.py +30 -0
- lockss/pyclient/config/models/api_status.py +344 -0
- lockss/pyclient/config/models/au_configuration.py +142 -0
- lockss/pyclient/config/models/au_status.py +113 -0
- lockss/pyclient/config/models/au_ws_result.py +113 -0
- lockss/pyclient/config/models/auids_body.py +168 -0
- lockss/pyclient/config/models/check_substance_result.py +212 -0
- lockss/pyclient/config/models/content_configuration_result.py +200 -0
- lockss/pyclient/config/models/file_section_name_body.py +113 -0
- lockss/pyclient/config/models/platform_configuration_ws_result.py +113 -0
- lockss/pyclient/config/models/plugin_ws_result.py +345 -0
- lockss/pyclient/config/models/request_au_control_result.py +171 -0
- lockss/pyclient/config/models/tdb_au_ws_result.py +360 -0
- lockss/pyclient/config/models/tdb_publisher_ws_result.py +113 -0
- lockss/pyclient/config/models/tdb_title_ws_result.py +390 -0
- lockss/pyclient/config/rest.py +317 -0
- lockss/pyclient/crawler/__init__.py +45 -0
- lockss/pyclient/crawler/api/__init__.py +10 -0
- lockss/pyclient/crawler/api/crawlers_api.py +215 -0
- lockss/pyclient/crawler/api/crawls_api.py +952 -0
- lockss/pyclient/crawler/api/jobs_api.py +504 -0
- lockss/pyclient/crawler/api/status_api.py +120 -0
- lockss/pyclient/crawler/api/ws_api.py +128 -0
- lockss/pyclient/crawler/api_client.py +632 -0
- lockss/pyclient/crawler/configuration.py +254 -0
- lockss/pyclient/crawler/models/__init__.py +35 -0
- lockss/pyclient/crawler/models/api_status.py +344 -0
- lockss/pyclient/crawler/models/counter.py +142 -0
- lockss/pyclient/crawler/models/crawl_desc.py +344 -0
- lockss/pyclient/crawler/models/crawl_job.py +280 -0
- lockss/pyclient/crawler/models/crawl_pager.py +140 -0
- lockss/pyclient/crawler/models/crawl_status.py +780 -0
- lockss/pyclient/crawler/models/crawl_ws_result.py +814 -0
- lockss/pyclient/crawler/models/crawl_ws_result_pages_with_errors.py +162 -0
- lockss/pyclient/crawler/models/crawler_config.py +142 -0
- lockss/pyclient/crawler/models/crawler_status.py +279 -0
- lockss/pyclient/crawler/models/crawler_statuses.py +112 -0
- lockss/pyclient/crawler/models/error_result.py +164 -0
- lockss/pyclient/crawler/models/job_pager.py +140 -0
- lockss/pyclient/crawler/models/job_status.py +147 -0
- lockss/pyclient/crawler/models/mime_counter.py +169 -0
- lockss/pyclient/crawler/models/page_info.py +228 -0
- lockss/pyclient/crawler/models/url_error.py +148 -0
- lockss/pyclient/crawler/models/url_info.py +167 -0
- lockss/pyclient/crawler/models/url_pager.py +140 -0
- lockss/pyclient/crawler/rest.py +317 -0
- lockss/pyclient/md/__init__.py +36 -0
- lockss/pyclient/md/api/__init__.py +9 -0
- lockss/pyclient/md/api/mdupdates_api.py +508 -0
- lockss/pyclient/md/api/metadata_api.py +136 -0
- lockss/pyclient/md/api/status_api.py +120 -0
- lockss/pyclient/md/api/urls_api.py +224 -0
- lockss/pyclient/md/api_client.py +632 -0
- lockss/pyclient/md/configuration.py +254 -0
- lockss/pyclient/md/models/__init__.py +27 -0
- lockss/pyclient/md/models/api_status.py +344 -0
- lockss/pyclient/md/models/au.py +169 -0
- lockss/pyclient/md/models/au_metadata_page_info.py +140 -0
- lockss/pyclient/md/models/error_result.py +164 -0
- lockss/pyclient/md/models/item_metadata.py +196 -0
- lockss/pyclient/md/models/job.py +280 -0
- lockss/pyclient/md/models/job_page_info.py +140 -0
- lockss/pyclient/md/models/metadata_update_spec.py +142 -0
- lockss/pyclient/md/models/page_info.py +228 -0
- lockss/pyclient/md/models/status.py +142 -0
- lockss/pyclient/md/models/url_info.py +142 -0
- lockss/pyclient/md/rest.py +317 -0
- lockss/pyclient/poller/__init__.py +54 -0
- lockss/pyclient/poller/api/__init__.py +13 -0
- lockss/pyclient/poller/api/export_api.py +156 -0
- lockss/pyclient/poller/api/hash_api.py +413 -0
- lockss/pyclient/poller/api/import_api.py +157 -0
- lockss/pyclient/poller/api/poll_detail_api.py +374 -0
- lockss/pyclient/poller/api/poller_polls_api.py +223 -0
- lockss/pyclient/poller/api/repo_api.py +223 -0
- lockss/pyclient/poller/api/service_api.py +694 -0
- lockss/pyclient/poller/api/voter_polls_api.py +223 -0
- lockss/pyclient/poller/api_client.py +632 -0
- lockss/pyclient/poller/configuration.py +254 -0
- lockss/pyclient/poller/models/__init__.py +41 -0
- lockss/pyclient/poller/models/api_status.py +344 -0
- lockss/pyclient/poller/models/aus_import_body.py +199 -0
- lockss/pyclient/poller/models/cached_uri_set_spec.py +169 -0
- lockss/pyclient/poller/models/error_result.py +164 -0
- lockss/pyclient/poller/models/hasher_ws_params.py +432 -0
- lockss/pyclient/poller/models/link_desc.py +141 -0
- lockss/pyclient/poller/models/page_desc.py +227 -0
- lockss/pyclient/poller/models/peer_data.py +638 -0
- lockss/pyclient/poller/models/peer_ws_result.py +113 -0
- lockss/pyclient/poller/models/poll_desc.py +285 -0
- lockss/pyclient/poller/models/poll_ws_result.py +142 -0
- lockss/pyclient/poller/models/poller_detail.py +613 -0
- lockss/pyclient/poller/models/poller_pager.py +139 -0
- lockss/pyclient/poller/models/poller_summary.py +452 -0
- lockss/pyclient/poller/models/repair_data.py +176 -0
- lockss/pyclient/poller/models/repair_pager.py +139 -0
- lockss/pyclient/poller/models/repair_queue.py +249 -0
- lockss/pyclient/poller/models/repository_space_ws_result.py +113 -0
- lockss/pyclient/poller/models/repository_ws_result.py +113 -0
- lockss/pyclient/poller/models/tally_data.py +471 -0
- lockss/pyclient/poller/models/url_pager.py +139 -0
- lockss/pyclient/poller/models/vote_ws_result.py +142 -0
- lockss/pyclient/poller/models/voter_detail.py +701 -0
- lockss/pyclient/poller/models/voter_pager.py +139 -0
- lockss/pyclient/poller/models/voter_summary.py +284 -0
- lockss/pyclient/poller/rest.py +317 -0
- lockss/pyclient/rs/__init__.py +41 -0
- lockss/pyclient/rs/api/__init__.py +10 -0
- lockss/pyclient/rs/api/artifacts_api.py +988 -0
- lockss/pyclient/rs/api/aus_api.py +334 -0
- lockss/pyclient/rs/api/repo_api.py +379 -0
- lockss/pyclient/rs/api/status_api.py +120 -0
- lockss/pyclient/rs/api/wayback_api.py +386 -0
- lockss/pyclient/rs/api_client.py +632 -0
- lockss/pyclient/rs/configuration.py +247 -0
- lockss/pyclient/rs/models/__init__.py +31 -0
- lockss/pyclient/rs/models/api_status.py +344 -0
- lockss/pyclient/rs/models/archives_body.py +142 -0
- lockss/pyclient/rs/models/artifact.py +344 -0
- lockss/pyclient/rs/models/artifact_page_info.py +140 -0
- lockss/pyclient/rs/models/artifact_properties.py +344 -0
- lockss/pyclient/rs/models/artifacts_body.py +170 -0
- lockss/pyclient/rs/models/au_size.py +162 -0
- lockss/pyclient/rs/models/auid_page_info.py +140 -0
- lockss/pyclient/rs/models/error_result.py +164 -0
- lockss/pyclient/rs/models/import_status.py +298 -0
- lockss/pyclient/rs/models/page_info.py +229 -0
- lockss/pyclient/rs/models/repository_info.py +164 -0
- lockss/pyclient/rs/models/repository_statistics.py +112 -0
- lockss/pyclient/rs/models/storage_info.py +287 -0
- lockss/pyclient/rs/models/streaming_response_body.py +84 -0
- lockss/pyclient/rs/rest.py +317 -0
- lockss_pyclient-0.1.0.dev1.dist-info/LICENSE +27 -0
- lockss_pyclient-0.1.0.dev1.dist-info/METADATA +29 -0
- lockss_pyclient-0.1.0.dev1.dist-info/RECORD +148 -0
- 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 VoterPager(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[VoterSummary]'
|
|
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
|
+
"""VoterPager - 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 VoterPager. # noqa: E501
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
:return: The page_desc of this VoterPager. # 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 VoterPager.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:param page_desc: The page_desc of this VoterPager. # 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 VoterPager. # noqa: E501
|
|
75
|
+
|
|
76
|
+
The list of polls for the current page or null # noqa: E501
|
|
77
|
+
|
|
78
|
+
:return: The polls of this VoterPager. # noqa: E501
|
|
79
|
+
:rtype: list[VoterSummary]
|
|
80
|
+
"""
|
|
81
|
+
return self._polls
|
|
82
|
+
|
|
83
|
+
@polls.setter
|
|
84
|
+
def polls(self, polls):
|
|
85
|
+
"""Sets the polls of this VoterPager.
|
|
86
|
+
|
|
87
|
+
The list of polls for the current page or null # noqa: E501
|
|
88
|
+
|
|
89
|
+
:param polls: The polls of this VoterPager. # noqa: E501
|
|
90
|
+
:type: list[VoterSummary]
|
|
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(VoterPager, 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, VoterPager):
|
|
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,284 @@
|
|
|
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 VoterSummary(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
|
+
'caller': 'str',
|
|
33
|
+
'start': 'int',
|
|
34
|
+
'status': 'str',
|
|
35
|
+
'deadline': 'int',
|
|
36
|
+
'poll_key': 'str',
|
|
37
|
+
'detail_link': 'LinkDesc'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'au_id': 'auId',
|
|
42
|
+
'caller': 'caller',
|
|
43
|
+
'start': 'start',
|
|
44
|
+
'status': 'status',
|
|
45
|
+
'deadline': 'deadline',
|
|
46
|
+
'poll_key': 'pollKey',
|
|
47
|
+
'detail_link': 'detailLink'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
def __init__(self, au_id=None, caller=None, start=None, status=None, deadline=None, poll_key=None, detail_link=None): # noqa: E501
|
|
51
|
+
"""VoterSummary - a model defined in Swagger""" # noqa: E501
|
|
52
|
+
self._au_id = None
|
|
53
|
+
self._caller = None
|
|
54
|
+
self._start = None
|
|
55
|
+
self._status = None
|
|
56
|
+
self._deadline = None
|
|
57
|
+
self._poll_key = None
|
|
58
|
+
self._detail_link = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
self.au_id = au_id
|
|
61
|
+
self.caller = caller
|
|
62
|
+
self.start = start
|
|
63
|
+
self.status = status
|
|
64
|
+
self.deadline = deadline
|
|
65
|
+
self.poll_key = poll_key
|
|
66
|
+
if detail_link is not None:
|
|
67
|
+
self.detail_link = detail_link
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def au_id(self):
|
|
71
|
+
"""Gets the au_id of this VoterSummary. # noqa: E501
|
|
72
|
+
|
|
73
|
+
The id for the au being polled. # noqa: E501
|
|
74
|
+
|
|
75
|
+
:return: The au_id of this VoterSummary. # noqa: E501
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._au_id
|
|
79
|
+
|
|
80
|
+
@au_id.setter
|
|
81
|
+
def au_id(self, au_id):
|
|
82
|
+
"""Sets the au_id of this VoterSummary.
|
|
83
|
+
|
|
84
|
+
The id for the au being polled. # noqa: E501
|
|
85
|
+
|
|
86
|
+
:param au_id: The au_id of this VoterSummary. # noqa: E501
|
|
87
|
+
:type: str
|
|
88
|
+
"""
|
|
89
|
+
if au_id is None:
|
|
90
|
+
raise ValueError("Invalid value for `au_id`, must not be `None`") # noqa: E501
|
|
91
|
+
|
|
92
|
+
self._au_id = au_id
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def caller(self):
|
|
96
|
+
"""Gets the caller of this VoterSummary. # noqa: E501
|
|
97
|
+
|
|
98
|
+
The id of who called the poll. # noqa: E501
|
|
99
|
+
|
|
100
|
+
:return: The caller of this VoterSummary. # noqa: E501
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._caller
|
|
104
|
+
|
|
105
|
+
@caller.setter
|
|
106
|
+
def caller(self, caller):
|
|
107
|
+
"""Sets the caller of this VoterSummary.
|
|
108
|
+
|
|
109
|
+
The id of who called the poll. # noqa: E501
|
|
110
|
+
|
|
111
|
+
:param caller: The caller of this VoterSummary. # noqa: E501
|
|
112
|
+
:type: str
|
|
113
|
+
"""
|
|
114
|
+
if caller is None:
|
|
115
|
+
raise ValueError("Invalid value for `caller`, must not be `None`") # noqa: E501
|
|
116
|
+
|
|
117
|
+
self._caller = caller
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def start(self):
|
|
121
|
+
"""Gets the start of this VoterSummary. # noqa: E501
|
|
122
|
+
|
|
123
|
+
The timestamp for when the poll started. # noqa: E501
|
|
124
|
+
|
|
125
|
+
:return: The start of this VoterSummary. # noqa: E501
|
|
126
|
+
:rtype: int
|
|
127
|
+
"""
|
|
128
|
+
return self._start
|
|
129
|
+
|
|
130
|
+
@start.setter
|
|
131
|
+
def start(self, start):
|
|
132
|
+
"""Sets the start of this VoterSummary.
|
|
133
|
+
|
|
134
|
+
The timestamp for when the poll started. # noqa: E501
|
|
135
|
+
|
|
136
|
+
:param start: The start of this VoterSummary. # noqa: E501
|
|
137
|
+
:type: int
|
|
138
|
+
"""
|
|
139
|
+
if start is None:
|
|
140
|
+
raise ValueError("Invalid value for `start`, must not be `None`") # noqa: E501
|
|
141
|
+
|
|
142
|
+
self._start = start
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
def status(self):
|
|
146
|
+
"""Gets the status of this VoterSummary. # noqa: E501
|
|
147
|
+
|
|
148
|
+
The current status of the poll. # noqa: E501
|
|
149
|
+
|
|
150
|
+
:return: The status of this VoterSummary. # noqa: E501
|
|
151
|
+
:rtype: str
|
|
152
|
+
"""
|
|
153
|
+
return self._status
|
|
154
|
+
|
|
155
|
+
@status.setter
|
|
156
|
+
def status(self, status):
|
|
157
|
+
"""Sets the status of this VoterSummary.
|
|
158
|
+
|
|
159
|
+
The current status of the poll. # noqa: E501
|
|
160
|
+
|
|
161
|
+
:param status: The status of this VoterSummary. # noqa: E501
|
|
162
|
+
:type: str
|
|
163
|
+
"""
|
|
164
|
+
if status is None:
|
|
165
|
+
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
|
166
|
+
|
|
167
|
+
self._status = status
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
def deadline(self):
|
|
171
|
+
"""Gets the deadline of this VoterSummary. # noqa: E501
|
|
172
|
+
|
|
173
|
+
The deadline for voting in this poll. # noqa: E501
|
|
174
|
+
|
|
175
|
+
:return: The deadline of this VoterSummary. # noqa: E501
|
|
176
|
+
:rtype: int
|
|
177
|
+
"""
|
|
178
|
+
return self._deadline
|
|
179
|
+
|
|
180
|
+
@deadline.setter
|
|
181
|
+
def deadline(self, deadline):
|
|
182
|
+
"""Sets the deadline of this VoterSummary.
|
|
183
|
+
|
|
184
|
+
The deadline for voting in this poll. # noqa: E501
|
|
185
|
+
|
|
186
|
+
:param deadline: The deadline of this VoterSummary. # noqa: E501
|
|
187
|
+
:type: int
|
|
188
|
+
"""
|
|
189
|
+
if deadline is None:
|
|
190
|
+
raise ValueError("Invalid value for `deadline`, must not be `None`") # noqa: E501
|
|
191
|
+
|
|
192
|
+
self._deadline = deadline
|
|
193
|
+
|
|
194
|
+
@property
|
|
195
|
+
def poll_key(self):
|
|
196
|
+
"""Gets the poll_key of this VoterSummary. # noqa: E501
|
|
197
|
+
|
|
198
|
+
Key generated by poll manager when poll was created. # noqa: E501
|
|
199
|
+
|
|
200
|
+
:return: The poll_key of this VoterSummary. # noqa: E501
|
|
201
|
+
:rtype: str
|
|
202
|
+
"""
|
|
203
|
+
return self._poll_key
|
|
204
|
+
|
|
205
|
+
@poll_key.setter
|
|
206
|
+
def poll_key(self, poll_key):
|
|
207
|
+
"""Sets the poll_key of this VoterSummary.
|
|
208
|
+
|
|
209
|
+
Key generated by poll manager when poll was created. # noqa: E501
|
|
210
|
+
|
|
211
|
+
:param poll_key: The poll_key of this VoterSummary. # noqa: E501
|
|
212
|
+
:type: str
|
|
213
|
+
"""
|
|
214
|
+
if poll_key is None:
|
|
215
|
+
raise ValueError("Invalid value for `poll_key`, must not be `None`") # noqa: E501
|
|
216
|
+
|
|
217
|
+
self._poll_key = poll_key
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def detail_link(self):
|
|
221
|
+
"""Gets the detail_link of this VoterSummary. # noqa: E501
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
:return: The detail_link of this VoterSummary. # noqa: E501
|
|
225
|
+
:rtype: LinkDesc
|
|
226
|
+
"""
|
|
227
|
+
return self._detail_link
|
|
228
|
+
|
|
229
|
+
@detail_link.setter
|
|
230
|
+
def detail_link(self, detail_link):
|
|
231
|
+
"""Sets the detail_link of this VoterSummary.
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:param detail_link: The detail_link of this VoterSummary. # noqa: E501
|
|
235
|
+
:type: LinkDesc
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
self._detail_link = detail_link
|
|
239
|
+
|
|
240
|
+
def to_dict(self):
|
|
241
|
+
"""Returns the model properties as a dict"""
|
|
242
|
+
result = {}
|
|
243
|
+
|
|
244
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
245
|
+
value = getattr(self, attr)
|
|
246
|
+
if isinstance(value, list):
|
|
247
|
+
result[attr] = list(map(
|
|
248
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
249
|
+
value
|
|
250
|
+
))
|
|
251
|
+
elif hasattr(value, "to_dict"):
|
|
252
|
+
result[attr] = value.to_dict()
|
|
253
|
+
elif isinstance(value, dict):
|
|
254
|
+
result[attr] = dict(map(
|
|
255
|
+
lambda item: (item[0], item[1].to_dict())
|
|
256
|
+
if hasattr(item[1], "to_dict") else item,
|
|
257
|
+
value.items()
|
|
258
|
+
))
|
|
259
|
+
else:
|
|
260
|
+
result[attr] = value
|
|
261
|
+
if issubclass(VoterSummary, dict):
|
|
262
|
+
for key, value in self.items():
|
|
263
|
+
result[key] = value
|
|
264
|
+
|
|
265
|
+
return result
|
|
266
|
+
|
|
267
|
+
def to_str(self):
|
|
268
|
+
"""Returns the string representation of the model"""
|
|
269
|
+
return pprint.pformat(self.to_dict())
|
|
270
|
+
|
|
271
|
+
def __repr__(self):
|
|
272
|
+
"""For `print` and `pprint`"""
|
|
273
|
+
return self.to_str()
|
|
274
|
+
|
|
275
|
+
def __eq__(self, other):
|
|
276
|
+
"""Returns true if both objects are equal"""
|
|
277
|
+
if not isinstance(other, VoterSummary):
|
|
278
|
+
return False
|
|
279
|
+
|
|
280
|
+
return self.__dict__ == other.__dict__
|
|
281
|
+
|
|
282
|
+
def __ne__(self, other):
|
|
283
|
+
"""Returns true if both objects are not equal"""
|
|
284
|
+
return not self == other
|