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,212 @@
|
|
|
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 CheckSubstanceResult(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
|
+
'id': 'str',
|
|
32
|
+
'old_state': 'str',
|
|
33
|
+
'new_state': 'str',
|
|
34
|
+
'error_message': 'str'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
attribute_map = {
|
|
38
|
+
'id': 'id',
|
|
39
|
+
'old_state': 'oldState',
|
|
40
|
+
'new_state': 'newState',
|
|
41
|
+
'error_message': 'errorMessage'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
def __init__(self, id=None, old_state=None, new_state=None, error_message=None): # noqa: E501
|
|
45
|
+
"""CheckSubstanceResult - a model defined in Swagger""" # noqa: E501
|
|
46
|
+
self._id = None
|
|
47
|
+
self._old_state = None
|
|
48
|
+
self._new_state = None
|
|
49
|
+
self._error_message = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
self.id = id
|
|
52
|
+
self.old_state = old_state
|
|
53
|
+
self.new_state = new_state
|
|
54
|
+
self.error_message = error_message
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def id(self):
|
|
58
|
+
"""Gets the id of this CheckSubstanceResult. # noqa: E501
|
|
59
|
+
|
|
60
|
+
The identifier of the archival unit # noqa: E501
|
|
61
|
+
|
|
62
|
+
:return: The id of this CheckSubstanceResult. # noqa: E501
|
|
63
|
+
:rtype: str
|
|
64
|
+
"""
|
|
65
|
+
return self._id
|
|
66
|
+
|
|
67
|
+
@id.setter
|
|
68
|
+
def id(self, id):
|
|
69
|
+
"""Sets the id of this CheckSubstanceResult.
|
|
70
|
+
|
|
71
|
+
The identifier of the archival unit # noqa: E501
|
|
72
|
+
|
|
73
|
+
:param id: The id of this CheckSubstanceResult. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
if id is None:
|
|
77
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
78
|
+
|
|
79
|
+
self._id = id
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def old_state(self):
|
|
83
|
+
"""Gets the old_state of this CheckSubstanceResult. # noqa: E501
|
|
84
|
+
|
|
85
|
+
An indication of whether the result is successful # noqa: E501
|
|
86
|
+
|
|
87
|
+
:return: The old_state of this CheckSubstanceResult. # noqa: E501
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._old_state
|
|
91
|
+
|
|
92
|
+
@old_state.setter
|
|
93
|
+
def old_state(self, old_state):
|
|
94
|
+
"""Sets the old_state of this CheckSubstanceResult.
|
|
95
|
+
|
|
96
|
+
An indication of whether the result is successful # noqa: E501
|
|
97
|
+
|
|
98
|
+
:param old_state: The old_state of this CheckSubstanceResult. # noqa: E501
|
|
99
|
+
:type: str
|
|
100
|
+
"""
|
|
101
|
+
if old_state is None:
|
|
102
|
+
raise ValueError("Invalid value for `old_state`, must not be `None`") # noqa: E501
|
|
103
|
+
allowed_values = ["Unknown", "Yes", "No"] # noqa: E501
|
|
104
|
+
if old_state not in allowed_values:
|
|
105
|
+
raise ValueError(
|
|
106
|
+
"Invalid value for `old_state` ({0}), must be one of {1}" # noqa: E501
|
|
107
|
+
.format(old_state, allowed_values)
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
self._old_state = old_state
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def new_state(self):
|
|
114
|
+
"""Gets the new_state of this CheckSubstanceResult. # noqa: E501
|
|
115
|
+
|
|
116
|
+
An indication of whether the result is successful # noqa: E501
|
|
117
|
+
|
|
118
|
+
:return: The new_state of this CheckSubstanceResult. # noqa: E501
|
|
119
|
+
:rtype: str
|
|
120
|
+
"""
|
|
121
|
+
return self._new_state
|
|
122
|
+
|
|
123
|
+
@new_state.setter
|
|
124
|
+
def new_state(self, new_state):
|
|
125
|
+
"""Sets the new_state of this CheckSubstanceResult.
|
|
126
|
+
|
|
127
|
+
An indication of whether the result is successful # noqa: E501
|
|
128
|
+
|
|
129
|
+
:param new_state: The new_state of this CheckSubstanceResult. # noqa: E501
|
|
130
|
+
:type: str
|
|
131
|
+
"""
|
|
132
|
+
if new_state is None:
|
|
133
|
+
raise ValueError("Invalid value for `new_state`, must not be `None`") # noqa: E501
|
|
134
|
+
allowed_values = ["Unknown", "Yes", "No"] # noqa: E501
|
|
135
|
+
if new_state not in allowed_values:
|
|
136
|
+
raise ValueError(
|
|
137
|
+
"Invalid value for `new_state` ({0}), must be one of {1}" # noqa: E501
|
|
138
|
+
.format(new_state, allowed_values)
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
self._new_state = new_state
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def error_message(self):
|
|
145
|
+
"""Gets the error_message of this CheckSubstanceResult. # noqa: E501
|
|
146
|
+
|
|
147
|
+
The error message as a result of the operation # noqa: E501
|
|
148
|
+
|
|
149
|
+
:return: The error_message of this CheckSubstanceResult. # noqa: E501
|
|
150
|
+
:rtype: str
|
|
151
|
+
"""
|
|
152
|
+
return self._error_message
|
|
153
|
+
|
|
154
|
+
@error_message.setter
|
|
155
|
+
def error_message(self, error_message):
|
|
156
|
+
"""Sets the error_message of this CheckSubstanceResult.
|
|
157
|
+
|
|
158
|
+
The error message as a result of the operation # noqa: E501
|
|
159
|
+
|
|
160
|
+
:param error_message: The error_message of this CheckSubstanceResult. # noqa: E501
|
|
161
|
+
:type: str
|
|
162
|
+
"""
|
|
163
|
+
if error_message is None:
|
|
164
|
+
raise ValueError("Invalid value for `error_message`, must not be `None`") # noqa: E501
|
|
165
|
+
|
|
166
|
+
self._error_message = error_message
|
|
167
|
+
|
|
168
|
+
def to_dict(self):
|
|
169
|
+
"""Returns the model properties as a dict"""
|
|
170
|
+
result = {}
|
|
171
|
+
|
|
172
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
173
|
+
value = getattr(self, attr)
|
|
174
|
+
if isinstance(value, list):
|
|
175
|
+
result[attr] = list(map(
|
|
176
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
177
|
+
value
|
|
178
|
+
))
|
|
179
|
+
elif hasattr(value, "to_dict"):
|
|
180
|
+
result[attr] = value.to_dict()
|
|
181
|
+
elif isinstance(value, dict):
|
|
182
|
+
result[attr] = dict(map(
|
|
183
|
+
lambda item: (item[0], item[1].to_dict())
|
|
184
|
+
if hasattr(item[1], "to_dict") else item,
|
|
185
|
+
value.items()
|
|
186
|
+
))
|
|
187
|
+
else:
|
|
188
|
+
result[attr] = value
|
|
189
|
+
if issubclass(CheckSubstanceResult, dict):
|
|
190
|
+
for key, value in self.items():
|
|
191
|
+
result[key] = value
|
|
192
|
+
|
|
193
|
+
return result
|
|
194
|
+
|
|
195
|
+
def to_str(self):
|
|
196
|
+
"""Returns the string representation of the model"""
|
|
197
|
+
return pprint.pformat(self.to_dict())
|
|
198
|
+
|
|
199
|
+
def __repr__(self):
|
|
200
|
+
"""For `print` and `pprint`"""
|
|
201
|
+
return self.to_str()
|
|
202
|
+
|
|
203
|
+
def __eq__(self, other):
|
|
204
|
+
"""Returns true if both objects are equal"""
|
|
205
|
+
if not isinstance(other, CheckSubstanceResult):
|
|
206
|
+
return False
|
|
207
|
+
|
|
208
|
+
return self.__dict__ == other.__dict__
|
|
209
|
+
|
|
210
|
+
def __ne__(self, other):
|
|
211
|
+
"""Returns true if both objects are not equal"""
|
|
212
|
+
return not self == other
|
|
@@ -0,0 +1,200 @@
|
|
|
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 ContentConfigurationResult(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
|
+
'name': 'str',
|
|
33
|
+
'is_success': 'bool',
|
|
34
|
+
'message': 'str'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
attribute_map = {
|
|
38
|
+
'au_id': 'auId',
|
|
39
|
+
'name': 'name',
|
|
40
|
+
'is_success': 'isSuccess',
|
|
41
|
+
'message': 'message'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
def __init__(self, au_id=None, name=None, is_success=None, message=None): # noqa: E501
|
|
45
|
+
"""ContentConfigurationResult - a model defined in Swagger""" # noqa: E501
|
|
46
|
+
self._au_id = None
|
|
47
|
+
self._name = None
|
|
48
|
+
self._is_success = None
|
|
49
|
+
self._message = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
self.au_id = au_id
|
|
52
|
+
self.name = name
|
|
53
|
+
self.is_success = is_success
|
|
54
|
+
self.message = message
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def au_id(self):
|
|
58
|
+
"""Gets the au_id of this ContentConfigurationResult. # noqa: E501
|
|
59
|
+
|
|
60
|
+
The identifier of the Archival Unit # noqa: E501
|
|
61
|
+
|
|
62
|
+
:return: The au_id of this ContentConfigurationResult. # noqa: E501
|
|
63
|
+
:rtype: str
|
|
64
|
+
"""
|
|
65
|
+
return self._au_id
|
|
66
|
+
|
|
67
|
+
@au_id.setter
|
|
68
|
+
def au_id(self, au_id):
|
|
69
|
+
"""Sets the au_id of this ContentConfigurationResult.
|
|
70
|
+
|
|
71
|
+
The identifier of the Archival Unit # noqa: E501
|
|
72
|
+
|
|
73
|
+
:param au_id: The au_id of this ContentConfigurationResult. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
if au_id is None:
|
|
77
|
+
raise ValueError("Invalid value for `au_id`, must not be `None`") # noqa: E501
|
|
78
|
+
|
|
79
|
+
self._au_id = au_id
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def name(self):
|
|
83
|
+
"""Gets the name of this ContentConfigurationResult. # noqa: E501
|
|
84
|
+
|
|
85
|
+
The name of the Archival Unit # noqa: E501
|
|
86
|
+
|
|
87
|
+
:return: The name of this ContentConfigurationResult. # noqa: E501
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._name
|
|
91
|
+
|
|
92
|
+
@name.setter
|
|
93
|
+
def name(self, name):
|
|
94
|
+
"""Sets the name of this ContentConfigurationResult.
|
|
95
|
+
|
|
96
|
+
The name of the Archival Unit # noqa: E501
|
|
97
|
+
|
|
98
|
+
:param name: The name of this ContentConfigurationResult. # noqa: E501
|
|
99
|
+
:type: str
|
|
100
|
+
"""
|
|
101
|
+
if name is None:
|
|
102
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
103
|
+
|
|
104
|
+
self._name = name
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def is_success(self):
|
|
108
|
+
"""Gets the is_success of this ContentConfigurationResult. # noqa: E501
|
|
109
|
+
|
|
110
|
+
An indication of whether the AU was successfully added or not # noqa: E501
|
|
111
|
+
|
|
112
|
+
:return: The is_success of this ContentConfigurationResult. # noqa: E501
|
|
113
|
+
:rtype: bool
|
|
114
|
+
"""
|
|
115
|
+
return self._is_success
|
|
116
|
+
|
|
117
|
+
@is_success.setter
|
|
118
|
+
def is_success(self, is_success):
|
|
119
|
+
"""Sets the is_success of this ContentConfigurationResult.
|
|
120
|
+
|
|
121
|
+
An indication of whether the AU was successfully added or not # noqa: E501
|
|
122
|
+
|
|
123
|
+
:param is_success: The is_success of this ContentConfigurationResult. # noqa: E501
|
|
124
|
+
:type: bool
|
|
125
|
+
"""
|
|
126
|
+
if is_success is None:
|
|
127
|
+
raise ValueError("Invalid value for `is_success`, must not be `None`") # noqa: E501
|
|
128
|
+
|
|
129
|
+
self._is_success = is_success
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def message(self):
|
|
133
|
+
"""Gets the message of this ContentConfigurationResult. # noqa: E501
|
|
134
|
+
|
|
135
|
+
A descriptive message regarding the result of the operation # noqa: E501
|
|
136
|
+
|
|
137
|
+
:return: The message of this ContentConfigurationResult. # noqa: E501
|
|
138
|
+
:rtype: str
|
|
139
|
+
"""
|
|
140
|
+
return self._message
|
|
141
|
+
|
|
142
|
+
@message.setter
|
|
143
|
+
def message(self, message):
|
|
144
|
+
"""Sets the message of this ContentConfigurationResult.
|
|
145
|
+
|
|
146
|
+
A descriptive message regarding the result of the operation # noqa: E501
|
|
147
|
+
|
|
148
|
+
:param message: The message of this ContentConfigurationResult. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
if message is None:
|
|
152
|
+
raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
|
|
153
|
+
|
|
154
|
+
self._message = message
|
|
155
|
+
|
|
156
|
+
def to_dict(self):
|
|
157
|
+
"""Returns the model properties as a dict"""
|
|
158
|
+
result = {}
|
|
159
|
+
|
|
160
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
161
|
+
value = getattr(self, attr)
|
|
162
|
+
if isinstance(value, list):
|
|
163
|
+
result[attr] = list(map(
|
|
164
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
165
|
+
value
|
|
166
|
+
))
|
|
167
|
+
elif hasattr(value, "to_dict"):
|
|
168
|
+
result[attr] = value.to_dict()
|
|
169
|
+
elif isinstance(value, dict):
|
|
170
|
+
result[attr] = dict(map(
|
|
171
|
+
lambda item: (item[0], item[1].to_dict())
|
|
172
|
+
if hasattr(item[1], "to_dict") else item,
|
|
173
|
+
value.items()
|
|
174
|
+
))
|
|
175
|
+
else:
|
|
176
|
+
result[attr] = value
|
|
177
|
+
if issubclass(ContentConfigurationResult, dict):
|
|
178
|
+
for key, value in self.items():
|
|
179
|
+
result[key] = value
|
|
180
|
+
|
|
181
|
+
return result
|
|
182
|
+
|
|
183
|
+
def to_str(self):
|
|
184
|
+
"""Returns the string representation of the model"""
|
|
185
|
+
return pprint.pformat(self.to_dict())
|
|
186
|
+
|
|
187
|
+
def __repr__(self):
|
|
188
|
+
"""For `print` and `pprint`"""
|
|
189
|
+
return self.to_str()
|
|
190
|
+
|
|
191
|
+
def __eq__(self, other):
|
|
192
|
+
"""Returns true if both objects are equal"""
|
|
193
|
+
if not isinstance(other, ContentConfigurationResult):
|
|
194
|
+
return False
|
|
195
|
+
|
|
196
|
+
return self.__dict__ == other.__dict__
|
|
197
|
+
|
|
198
|
+
def __ne__(self, other):
|
|
199
|
+
"""Returns true if both objects are not equal"""
|
|
200
|
+
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 FileSectionNameBody(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
|
+
'config_file': 'str'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
attribute_map = {
|
|
35
|
+
'config_file': 'configFile'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, config_file=None): # noqa: E501
|
|
39
|
+
"""FileSectionNameBody - a model defined in Swagger""" # noqa: E501
|
|
40
|
+
self._config_file = None
|
|
41
|
+
self.discriminator = None
|
|
42
|
+
self.config_file = config_file
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def config_file(self):
|
|
46
|
+
"""Gets the config_file of this FileSectionNameBody. # noqa: E501
|
|
47
|
+
|
|
48
|
+
The configuration file to be stored # noqa: E501
|
|
49
|
+
|
|
50
|
+
:return: The config_file of this FileSectionNameBody. # noqa: E501
|
|
51
|
+
:rtype: str
|
|
52
|
+
"""
|
|
53
|
+
return self._config_file
|
|
54
|
+
|
|
55
|
+
@config_file.setter
|
|
56
|
+
def config_file(self, config_file):
|
|
57
|
+
"""Sets the config_file of this FileSectionNameBody.
|
|
58
|
+
|
|
59
|
+
The configuration file to be stored # noqa: E501
|
|
60
|
+
|
|
61
|
+
:param config_file: The config_file of this FileSectionNameBody. # noqa: E501
|
|
62
|
+
:type: str
|
|
63
|
+
"""
|
|
64
|
+
if config_file is None:
|
|
65
|
+
raise ValueError("Invalid value for `config_file`, must not be `None`") # noqa: E501
|
|
66
|
+
|
|
67
|
+
self._config_file = config_file
|
|
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(FileSectionNameBody, 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, FileSectionNameBody):
|
|
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 PlatformConfigurationWsResult(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
|
+
'host_name': 'str'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
attribute_map = {
|
|
35
|
+
'host_name': 'hostName'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, host_name=None): # noqa: E501
|
|
39
|
+
"""PlatformConfigurationWsResult - a model defined in Swagger""" # noqa: E501
|
|
40
|
+
self._host_name = None
|
|
41
|
+
self.discriminator = None
|
|
42
|
+
self.host_name = host_name
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def host_name(self):
|
|
46
|
+
"""Gets the host_name of this PlatformConfigurationWsResult. # noqa: E501
|
|
47
|
+
|
|
48
|
+
name of the host server # noqa: E501
|
|
49
|
+
|
|
50
|
+
:return: The host_name of this PlatformConfigurationWsResult. # noqa: E501
|
|
51
|
+
:rtype: str
|
|
52
|
+
"""
|
|
53
|
+
return self._host_name
|
|
54
|
+
|
|
55
|
+
@host_name.setter
|
|
56
|
+
def host_name(self, host_name):
|
|
57
|
+
"""Sets the host_name of this PlatformConfigurationWsResult.
|
|
58
|
+
|
|
59
|
+
name of the host server # noqa: E501
|
|
60
|
+
|
|
61
|
+
:param host_name: The host_name of this PlatformConfigurationWsResult. # noqa: E501
|
|
62
|
+
:type: str
|
|
63
|
+
"""
|
|
64
|
+
if host_name is None:
|
|
65
|
+
raise ValueError("Invalid value for `host_name`, must not be `None`") # noqa: E501
|
|
66
|
+
|
|
67
|
+
self._host_name = host_name
|
|
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(PlatformConfigurationWsResult, 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, PlatformConfigurationWsResult):
|
|
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
|