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,142 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Configuration Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Configuration 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 AuConfiguration(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
|
+
'au_config': 'dict(str, str)'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'au_id': 'auId',
|
|
37
|
+
'au_config': 'auConfig'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
def __init__(self, au_id=None, au_config=None): # noqa: E501
|
|
41
|
+
"""AuConfiguration - a model defined in Swagger""" # noqa: E501
|
|
42
|
+
self._au_id = None
|
|
43
|
+
self._au_config = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
self.au_id = au_id
|
|
46
|
+
self.au_config = au_config
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def au_id(self):
|
|
50
|
+
"""Gets the au_id of this AuConfiguration. # noqa: E501
|
|
51
|
+
|
|
52
|
+
The identifier of the Archival Unit # noqa: E501
|
|
53
|
+
|
|
54
|
+
:return: The au_id of this AuConfiguration. # noqa: E501
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._au_id
|
|
58
|
+
|
|
59
|
+
@au_id.setter
|
|
60
|
+
def au_id(self, au_id):
|
|
61
|
+
"""Sets the au_id of this AuConfiguration.
|
|
62
|
+
|
|
63
|
+
The identifier of the Archival Unit # noqa: E501
|
|
64
|
+
|
|
65
|
+
:param au_id: The au_id of this AuConfiguration. # noqa: E501
|
|
66
|
+
:type: str
|
|
67
|
+
"""
|
|
68
|
+
if au_id is None:
|
|
69
|
+
raise ValueError("Invalid value for `au_id`, must not be `None`") # noqa: E501
|
|
70
|
+
|
|
71
|
+
self._au_id = au_id
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def au_config(self):
|
|
75
|
+
"""Gets the au_config of this AuConfiguration. # noqa: E501
|
|
76
|
+
|
|
77
|
+
The map of Archival Unit configuration items # noqa: E501
|
|
78
|
+
|
|
79
|
+
:return: The au_config of this AuConfiguration. # noqa: E501
|
|
80
|
+
:rtype: dict(str, str)
|
|
81
|
+
"""
|
|
82
|
+
return self._au_config
|
|
83
|
+
|
|
84
|
+
@au_config.setter
|
|
85
|
+
def au_config(self, au_config):
|
|
86
|
+
"""Sets the au_config of this AuConfiguration.
|
|
87
|
+
|
|
88
|
+
The map of Archival Unit configuration items # noqa: E501
|
|
89
|
+
|
|
90
|
+
:param au_config: The au_config of this AuConfiguration. # noqa: E501
|
|
91
|
+
:type: dict(str, str)
|
|
92
|
+
"""
|
|
93
|
+
if au_config is None:
|
|
94
|
+
raise ValueError("Invalid value for `au_config`, must not be `None`") # noqa: E501
|
|
95
|
+
|
|
96
|
+
self._au_config = au_config
|
|
97
|
+
|
|
98
|
+
def to_dict(self):
|
|
99
|
+
"""Returns the model properties as a dict"""
|
|
100
|
+
result = {}
|
|
101
|
+
|
|
102
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
103
|
+
value = getattr(self, attr)
|
|
104
|
+
if isinstance(value, list):
|
|
105
|
+
result[attr] = list(map(
|
|
106
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
107
|
+
value
|
|
108
|
+
))
|
|
109
|
+
elif hasattr(value, "to_dict"):
|
|
110
|
+
result[attr] = value.to_dict()
|
|
111
|
+
elif isinstance(value, dict):
|
|
112
|
+
result[attr] = dict(map(
|
|
113
|
+
lambda item: (item[0], item[1].to_dict())
|
|
114
|
+
if hasattr(item[1], "to_dict") else item,
|
|
115
|
+
value.items()
|
|
116
|
+
))
|
|
117
|
+
else:
|
|
118
|
+
result[attr] = value
|
|
119
|
+
if issubclass(AuConfiguration, dict):
|
|
120
|
+
for key, value in self.items():
|
|
121
|
+
result[key] = value
|
|
122
|
+
|
|
123
|
+
return result
|
|
124
|
+
|
|
125
|
+
def to_str(self):
|
|
126
|
+
"""Returns the string representation of the model"""
|
|
127
|
+
return pprint.pformat(self.to_dict())
|
|
128
|
+
|
|
129
|
+
def __repr__(self):
|
|
130
|
+
"""For `print` and `pprint`"""
|
|
131
|
+
return self.to_str()
|
|
132
|
+
|
|
133
|
+
def __eq__(self, other):
|
|
134
|
+
"""Returns true if both objects are equal"""
|
|
135
|
+
if not isinstance(other, AuConfiguration):
|
|
136
|
+
return False
|
|
137
|
+
|
|
138
|
+
return self.__dict__ == other.__dict__
|
|
139
|
+
|
|
140
|
+
def __ne__(self, other):
|
|
141
|
+
"""Returns true if both objects are not equal"""
|
|
142
|
+
return not self == other
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Configuration Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Configuration 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 AuStatus(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
|
+
'volume': 'str'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
attribute_map = {
|
|
35
|
+
'volume': 'volume'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, volume=None): # noqa: E501
|
|
39
|
+
"""AuStatus - a model defined in Swagger""" # noqa: E501
|
|
40
|
+
self._volume = None
|
|
41
|
+
self.discriminator = None
|
|
42
|
+
self.volume = volume
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def volume(self):
|
|
46
|
+
"""Gets the volume of this AuStatus. # noqa: E501
|
|
47
|
+
|
|
48
|
+
The volume of the archival unit # noqa: E501
|
|
49
|
+
|
|
50
|
+
:return: The volume of this AuStatus. # noqa: E501
|
|
51
|
+
:rtype: str
|
|
52
|
+
"""
|
|
53
|
+
return self._volume
|
|
54
|
+
|
|
55
|
+
@volume.setter
|
|
56
|
+
def volume(self, volume):
|
|
57
|
+
"""Sets the volume of this AuStatus.
|
|
58
|
+
|
|
59
|
+
The volume of the archival unit # noqa: E501
|
|
60
|
+
|
|
61
|
+
:param volume: The volume of this AuStatus. # noqa: E501
|
|
62
|
+
:type: str
|
|
63
|
+
"""
|
|
64
|
+
if volume is None:
|
|
65
|
+
raise ValueError("Invalid value for `volume`, must not be `None`") # noqa: E501
|
|
66
|
+
|
|
67
|
+
self._volume = volume
|
|
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(AuStatus, 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, AuStatus):
|
|
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,113 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Configuration Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Configuration 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 AuWsResult(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
|
+
}
|
|
33
|
+
|
|
34
|
+
attribute_map = {
|
|
35
|
+
'au_id': 'auId'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, au_id=None): # noqa: E501
|
|
39
|
+
"""AuWsResult - a model defined in Swagger""" # noqa: E501
|
|
40
|
+
self._au_id = None
|
|
41
|
+
self.discriminator = None
|
|
42
|
+
self.au_id = au_id
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def au_id(self):
|
|
46
|
+
"""Gets the au_id of this AuWsResult. # noqa: E501
|
|
47
|
+
|
|
48
|
+
The identifier of the archival unit # noqa: E501
|
|
49
|
+
|
|
50
|
+
:return: The au_id of this AuWsResult. # noqa: E501
|
|
51
|
+
:rtype: str
|
|
52
|
+
"""
|
|
53
|
+
return self._au_id
|
|
54
|
+
|
|
55
|
+
@au_id.setter
|
|
56
|
+
def au_id(self, au_id):
|
|
57
|
+
"""Sets the au_id of this AuWsResult.
|
|
58
|
+
|
|
59
|
+
The identifier of the archival unit # noqa: E501
|
|
60
|
+
|
|
61
|
+
:param au_id: The au_id of this AuWsResult. # noqa: E501
|
|
62
|
+
:type: str
|
|
63
|
+
"""
|
|
64
|
+
if au_id is None:
|
|
65
|
+
raise ValueError("Invalid value for `au_id`, must not be `None`") # noqa: E501
|
|
66
|
+
|
|
67
|
+
self._au_id = au_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(AuWsResult, 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, AuWsResult):
|
|
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,168 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
LOCKSS Configuration Service REST API
|
|
5
|
+
|
|
6
|
+
REST API of the LOCKSS Configuration 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 AuidsBody(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
|
+
'plugin_id': 'str',
|
|
32
|
+
'handle': 'str',
|
|
33
|
+
'au_config': 'object'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
attribute_map = {
|
|
37
|
+
'plugin_id': 'pluginId',
|
|
38
|
+
'handle': 'handle',
|
|
39
|
+
'au_config': 'auConfig'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self, plugin_id=None, handle=None, au_config=None): # noqa: E501
|
|
43
|
+
"""AuidsBody - a model defined in Swagger""" # noqa: E501
|
|
44
|
+
self._plugin_id = None
|
|
45
|
+
self._handle = None
|
|
46
|
+
self._au_config = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
if plugin_id is not None:
|
|
49
|
+
self.plugin_id = plugin_id
|
|
50
|
+
if handle is not None:
|
|
51
|
+
self.handle = handle
|
|
52
|
+
if au_config is not None:
|
|
53
|
+
self.au_config = au_config
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def plugin_id(self):
|
|
57
|
+
"""Gets the plugin_id of this AuidsBody. # noqa: E501
|
|
58
|
+
|
|
59
|
+
the plugin id # noqa: E501
|
|
60
|
+
|
|
61
|
+
:return: The plugin_id of this AuidsBody. # noqa: E501
|
|
62
|
+
:rtype: str
|
|
63
|
+
"""
|
|
64
|
+
return self._plugin_id
|
|
65
|
+
|
|
66
|
+
@plugin_id.setter
|
|
67
|
+
def plugin_id(self, plugin_id):
|
|
68
|
+
"""Sets the plugin_id of this AuidsBody.
|
|
69
|
+
|
|
70
|
+
the plugin id # noqa: E501
|
|
71
|
+
|
|
72
|
+
:param plugin_id: The plugin_id of this AuidsBody. # noqa: E501
|
|
73
|
+
:type: str
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
self._plugin_id = plugin_id
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def handle(self):
|
|
80
|
+
"""Gets the handle of this AuidsBody. # noqa: E501
|
|
81
|
+
|
|
82
|
+
the handle of a NamedArchivalUnit # noqa: E501
|
|
83
|
+
|
|
84
|
+
:return: The handle of this AuidsBody. # noqa: E501
|
|
85
|
+
:rtype: str
|
|
86
|
+
"""
|
|
87
|
+
return self._handle
|
|
88
|
+
|
|
89
|
+
@handle.setter
|
|
90
|
+
def handle(self, handle):
|
|
91
|
+
"""Sets the handle of this AuidsBody.
|
|
92
|
+
|
|
93
|
+
the handle of a NamedArchivalUnit # noqa: E501
|
|
94
|
+
|
|
95
|
+
:param handle: The handle of this AuidsBody. # noqa: E501
|
|
96
|
+
:type: str
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
self._handle = handle
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def au_config(self):
|
|
103
|
+
"""Gets the au_config of this AuidsBody. # noqa: E501
|
|
104
|
+
|
|
105
|
+
The configuration information for this au (as a json map). # noqa: E501
|
|
106
|
+
|
|
107
|
+
:return: The au_config of this AuidsBody. # noqa: E501
|
|
108
|
+
:rtype: object
|
|
109
|
+
"""
|
|
110
|
+
return self._au_config
|
|
111
|
+
|
|
112
|
+
@au_config.setter
|
|
113
|
+
def au_config(self, au_config):
|
|
114
|
+
"""Sets the au_config of this AuidsBody.
|
|
115
|
+
|
|
116
|
+
The configuration information for this au (as a json map). # noqa: E501
|
|
117
|
+
|
|
118
|
+
:param au_config: The au_config of this AuidsBody. # noqa: E501
|
|
119
|
+
:type: object
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
self._au_config = au_config
|
|
123
|
+
|
|
124
|
+
def to_dict(self):
|
|
125
|
+
"""Returns the model properties as a dict"""
|
|
126
|
+
result = {}
|
|
127
|
+
|
|
128
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
129
|
+
value = getattr(self, attr)
|
|
130
|
+
if isinstance(value, list):
|
|
131
|
+
result[attr] = list(map(
|
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
133
|
+
value
|
|
134
|
+
))
|
|
135
|
+
elif hasattr(value, "to_dict"):
|
|
136
|
+
result[attr] = value.to_dict()
|
|
137
|
+
elif isinstance(value, dict):
|
|
138
|
+
result[attr] = dict(map(
|
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
|
141
|
+
value.items()
|
|
142
|
+
))
|
|
143
|
+
else:
|
|
144
|
+
result[attr] = value
|
|
145
|
+
if issubclass(AuidsBody, dict):
|
|
146
|
+
for key, value in self.items():
|
|
147
|
+
result[key] = value
|
|
148
|
+
|
|
149
|
+
return result
|
|
150
|
+
|
|
151
|
+
def to_str(self):
|
|
152
|
+
"""Returns the string representation of the model"""
|
|
153
|
+
return pprint.pformat(self.to_dict())
|
|
154
|
+
|
|
155
|
+
def __repr__(self):
|
|
156
|
+
"""For `print` and `pprint`"""
|
|
157
|
+
return self.to_str()
|
|
158
|
+
|
|
159
|
+
def __eq__(self, other):
|
|
160
|
+
"""Returns true if both objects are equal"""
|
|
161
|
+
if not isinstance(other, AuidsBody):
|
|
162
|
+
return False
|
|
163
|
+
|
|
164
|
+
return self.__dict__ == other.__dict__
|
|
165
|
+
|
|
166
|
+
def __ne__(self, other):
|
|
167
|
+
"""Returns true if both objects are not equal"""
|
|
168
|
+
return not self == other
|