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,142 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Repository Service REST API
5
+
6
+ REST API of the LOCKSS Repository 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 ArchivesBody(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
+ 'auid': 'str',
32
+ 'archive': 'str'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'auid': 'auid',
37
+ 'archive': 'archive'
38
+ }
39
+
40
+ def __init__(self, auid=None, archive=None): # noqa: E501
41
+ """ArchivesBody - a model defined in Swagger""" # noqa: E501
42
+ self._auid = None
43
+ self._archive = None
44
+ self.discriminator = None
45
+ self.auid = auid
46
+ self.archive = archive
47
+
48
+ @property
49
+ def auid(self):
50
+ """Gets the auid of this ArchivesBody. # noqa: E501
51
+
52
+ Archival Unit ID (AUID) of new artifact # noqa: E501
53
+
54
+ :return: The auid of this ArchivesBody. # noqa: E501
55
+ :rtype: str
56
+ """
57
+ return self._auid
58
+
59
+ @auid.setter
60
+ def auid(self, auid):
61
+ """Sets the auid of this ArchivesBody.
62
+
63
+ Archival Unit ID (AUID) of new artifact # noqa: E501
64
+
65
+ :param auid: The auid of this ArchivesBody. # noqa: E501
66
+ :type: str
67
+ """
68
+ if auid is None:
69
+ raise ValueError("Invalid value for `auid`, must not be `None`") # noqa: E501
70
+
71
+ self._auid = auid
72
+
73
+ @property
74
+ def archive(self):
75
+ """Gets the archive of this ArchivesBody. # noqa: E501
76
+
77
+ Archive data containing artifacts # noqa: E501
78
+
79
+ :return: The archive of this ArchivesBody. # noqa: E501
80
+ :rtype: str
81
+ """
82
+ return self._archive
83
+
84
+ @archive.setter
85
+ def archive(self, archive):
86
+ """Sets the archive of this ArchivesBody.
87
+
88
+ Archive data containing artifacts # noqa: E501
89
+
90
+ :param archive: The archive of this ArchivesBody. # noqa: E501
91
+ :type: str
92
+ """
93
+ if archive is None:
94
+ raise ValueError("Invalid value for `archive`, must not be `None`") # noqa: E501
95
+
96
+ self._archive = archive
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(ArchivesBody, 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, ArchivesBody):
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,344 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Repository Service REST API
5
+
6
+ REST API of the LOCKSS Repository 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 Artifact(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
+ 'committed': 'bool',
32
+ 'storage_url': 'str',
33
+ 'namespace': 'str',
34
+ 'uuid': 'str',
35
+ 'auid': 'str',
36
+ 'uri': 'str',
37
+ 'version': 'int',
38
+ 'content_length': 'int',
39
+ 'content_digest': 'str',
40
+ 'collection_date': 'int'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'committed': 'committed',
45
+ 'storage_url': 'storageUrl',
46
+ 'namespace': 'namespace',
47
+ 'uuid': 'uuid',
48
+ 'auid': 'auid',
49
+ 'uri': 'uri',
50
+ 'version': 'version',
51
+ 'content_length': 'contentLength',
52
+ 'content_digest': 'contentDigest',
53
+ 'collection_date': 'collectionDate'
54
+ }
55
+
56
+ def __init__(self, committed=None, storage_url=None, namespace='lockss', uuid=None, auid=None, uri=None, version=None, content_length=None, content_digest=None, collection_date=None): # noqa: E501
57
+ """Artifact - a model defined in Swagger""" # noqa: E501
58
+ self._committed = None
59
+ self._storage_url = None
60
+ self._namespace = None
61
+ self._uuid = None
62
+ self._auid = None
63
+ self._uri = None
64
+ self._version = None
65
+ self._content_length = None
66
+ self._content_digest = None
67
+ self._collection_date = None
68
+ self.discriminator = None
69
+ if committed is not None:
70
+ self.committed = committed
71
+ if storage_url is not None:
72
+ self.storage_url = storage_url
73
+ if namespace is not None:
74
+ self.namespace = namespace
75
+ if uuid is not None:
76
+ self.uuid = uuid
77
+ if auid is not None:
78
+ self.auid = auid
79
+ if uri is not None:
80
+ self.uri = uri
81
+ if version is not None:
82
+ self.version = version
83
+ if content_length is not None:
84
+ self.content_length = content_length
85
+ if content_digest is not None:
86
+ self.content_digest = content_digest
87
+ if collection_date is not None:
88
+ self.collection_date = collection_date
89
+
90
+ @property
91
+ def committed(self):
92
+ """Gets the committed of this Artifact. # noqa: E501
93
+
94
+
95
+ :return: The committed of this Artifact. # noqa: E501
96
+ :rtype: bool
97
+ """
98
+ return self._committed
99
+
100
+ @committed.setter
101
+ def committed(self, committed):
102
+ """Sets the committed of this Artifact.
103
+
104
+
105
+ :param committed: The committed of this Artifact. # noqa: E501
106
+ :type: bool
107
+ """
108
+
109
+ self._committed = committed
110
+
111
+ @property
112
+ def storage_url(self):
113
+ """Gets the storage_url of this Artifact. # noqa: E501
114
+
115
+
116
+ :return: The storage_url of this Artifact. # noqa: E501
117
+ :rtype: str
118
+ """
119
+ return self._storage_url
120
+
121
+ @storage_url.setter
122
+ def storage_url(self, storage_url):
123
+ """Sets the storage_url of this Artifact.
124
+
125
+
126
+ :param storage_url: The storage_url of this Artifact. # noqa: E501
127
+ :type: str
128
+ """
129
+
130
+ self._storage_url = storage_url
131
+
132
+ @property
133
+ def namespace(self):
134
+ """Gets the namespace of this Artifact. # noqa: E501
135
+
136
+
137
+ :return: The namespace of this Artifact. # noqa: E501
138
+ :rtype: str
139
+ """
140
+ return self._namespace
141
+
142
+ @namespace.setter
143
+ def namespace(self, namespace):
144
+ """Sets the namespace of this Artifact.
145
+
146
+
147
+ :param namespace: The namespace of this Artifact. # noqa: E501
148
+ :type: str
149
+ """
150
+
151
+ self._namespace = namespace
152
+
153
+ @property
154
+ def uuid(self):
155
+ """Gets the uuid of this Artifact. # noqa: E501
156
+
157
+
158
+ :return: The uuid of this Artifact. # noqa: E501
159
+ :rtype: str
160
+ """
161
+ return self._uuid
162
+
163
+ @uuid.setter
164
+ def uuid(self, uuid):
165
+ """Sets the uuid of this Artifact.
166
+
167
+
168
+ :param uuid: The uuid of this Artifact. # noqa: E501
169
+ :type: str
170
+ """
171
+
172
+ self._uuid = uuid
173
+
174
+ @property
175
+ def auid(self):
176
+ """Gets the auid of this Artifact. # noqa: E501
177
+
178
+
179
+ :return: The auid of this Artifact. # noqa: E501
180
+ :rtype: str
181
+ """
182
+ return self._auid
183
+
184
+ @auid.setter
185
+ def auid(self, auid):
186
+ """Sets the auid of this Artifact.
187
+
188
+
189
+ :param auid: The auid of this Artifact. # noqa: E501
190
+ :type: str
191
+ """
192
+
193
+ self._auid = auid
194
+
195
+ @property
196
+ def uri(self):
197
+ """Gets the uri of this Artifact. # noqa: E501
198
+
199
+
200
+ :return: The uri of this Artifact. # noqa: E501
201
+ :rtype: str
202
+ """
203
+ return self._uri
204
+
205
+ @uri.setter
206
+ def uri(self, uri):
207
+ """Sets the uri of this Artifact.
208
+
209
+
210
+ :param uri: The uri of this Artifact. # noqa: E501
211
+ :type: str
212
+ """
213
+
214
+ self._uri = uri
215
+
216
+ @property
217
+ def version(self):
218
+ """Gets the version of this Artifact. # noqa: E501
219
+
220
+
221
+ :return: The version of this Artifact. # noqa: E501
222
+ :rtype: int
223
+ """
224
+ return self._version
225
+
226
+ @version.setter
227
+ def version(self, version):
228
+ """Sets the version of this Artifact.
229
+
230
+
231
+ :param version: The version of this Artifact. # noqa: E501
232
+ :type: int
233
+ """
234
+
235
+ self._version = version
236
+
237
+ @property
238
+ def content_length(self):
239
+ """Gets the content_length of this Artifact. # noqa: E501
240
+
241
+
242
+ :return: The content_length of this Artifact. # noqa: E501
243
+ :rtype: int
244
+ """
245
+ return self._content_length
246
+
247
+ @content_length.setter
248
+ def content_length(self, content_length):
249
+ """Sets the content_length of this Artifact.
250
+
251
+
252
+ :param content_length: The content_length of this Artifact. # noqa: E501
253
+ :type: int
254
+ """
255
+
256
+ self._content_length = content_length
257
+
258
+ @property
259
+ def content_digest(self):
260
+ """Gets the content_digest of this Artifact. # noqa: E501
261
+
262
+
263
+ :return: The content_digest of this Artifact. # noqa: E501
264
+ :rtype: str
265
+ """
266
+ return self._content_digest
267
+
268
+ @content_digest.setter
269
+ def content_digest(self, content_digest):
270
+ """Sets the content_digest of this Artifact.
271
+
272
+
273
+ :param content_digest: The content_digest of this Artifact. # noqa: E501
274
+ :type: str
275
+ """
276
+
277
+ self._content_digest = content_digest
278
+
279
+ @property
280
+ def collection_date(self):
281
+ """Gets the collection_date of this Artifact. # noqa: E501
282
+
283
+
284
+ :return: The collection_date of this Artifact. # noqa: E501
285
+ :rtype: int
286
+ """
287
+ return self._collection_date
288
+
289
+ @collection_date.setter
290
+ def collection_date(self, collection_date):
291
+ """Sets the collection_date of this Artifact.
292
+
293
+
294
+ :param collection_date: The collection_date of this Artifact. # noqa: E501
295
+ :type: int
296
+ """
297
+
298
+ self._collection_date = collection_date
299
+
300
+ def to_dict(self):
301
+ """Returns the model properties as a dict"""
302
+ result = {}
303
+
304
+ for attr, _ in six.iteritems(self.swagger_types):
305
+ value = getattr(self, attr)
306
+ if isinstance(value, list):
307
+ result[attr] = list(map(
308
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
309
+ value
310
+ ))
311
+ elif hasattr(value, "to_dict"):
312
+ result[attr] = value.to_dict()
313
+ elif isinstance(value, dict):
314
+ result[attr] = dict(map(
315
+ lambda item: (item[0], item[1].to_dict())
316
+ if hasattr(item[1], "to_dict") else item,
317
+ value.items()
318
+ ))
319
+ else:
320
+ result[attr] = value
321
+ if issubclass(Artifact, dict):
322
+ for key, value in self.items():
323
+ result[key] = value
324
+
325
+ return result
326
+
327
+ def to_str(self):
328
+ """Returns the string representation of the model"""
329
+ return pprint.pformat(self.to_dict())
330
+
331
+ def __repr__(self):
332
+ """For `print` and `pprint`"""
333
+ return self.to_str()
334
+
335
+ def __eq__(self, other):
336
+ """Returns true if both objects are equal"""
337
+ if not isinstance(other, Artifact):
338
+ return False
339
+
340
+ return self.__dict__ == other.__dict__
341
+
342
+ def __ne__(self, other):
343
+ """Returns true if both objects are not equal"""
344
+ return not self == other
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Repository Service REST API
5
+
6
+ REST API of the LOCKSS Repository 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 ArtifactPageInfo(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
+ 'artifacts': 'list[Artifact]',
32
+ 'page_info': 'PageInfo'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'artifacts': 'artifacts',
37
+ 'page_info': 'pageInfo'
38
+ }
39
+
40
+ def __init__(self, artifacts=None, page_info=None): # noqa: E501
41
+ """ArtifactPageInfo - a model defined in Swagger""" # noqa: E501
42
+ self._artifacts = None
43
+ self._page_info = None
44
+ self.discriminator = None
45
+ self.artifacts = artifacts
46
+ self.page_info = page_info
47
+
48
+ @property
49
+ def artifacts(self):
50
+ """Gets the artifacts of this ArtifactPageInfo. # noqa: E501
51
+
52
+ The artifacts included in the page # noqa: E501
53
+
54
+ :return: The artifacts of this ArtifactPageInfo. # noqa: E501
55
+ :rtype: list[Artifact]
56
+ """
57
+ return self._artifacts
58
+
59
+ @artifacts.setter
60
+ def artifacts(self, artifacts):
61
+ """Sets the artifacts of this ArtifactPageInfo.
62
+
63
+ The artifacts included in the page # noqa: E501
64
+
65
+ :param artifacts: The artifacts of this ArtifactPageInfo. # noqa: E501
66
+ :type: list[Artifact]
67
+ """
68
+ if artifacts is None:
69
+ raise ValueError("Invalid value for `artifacts`, must not be `None`") # noqa: E501
70
+
71
+ self._artifacts = artifacts
72
+
73
+ @property
74
+ def page_info(self):
75
+ """Gets the page_info of this ArtifactPageInfo. # noqa: E501
76
+
77
+
78
+ :return: The page_info of this ArtifactPageInfo. # noqa: E501
79
+ :rtype: PageInfo
80
+ """
81
+ return self._page_info
82
+
83
+ @page_info.setter
84
+ def page_info(self, page_info):
85
+ """Sets the page_info of this ArtifactPageInfo.
86
+
87
+
88
+ :param page_info: The page_info of this ArtifactPageInfo. # noqa: E501
89
+ :type: PageInfo
90
+ """
91
+ if page_info is None:
92
+ raise ValueError("Invalid value for `page_info`, must not be `None`") # noqa: E501
93
+
94
+ self._page_info = page_info
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.swagger_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ result[attr] = value
117
+ if issubclass(ArtifactPageInfo, dict):
118
+ for key, value in self.items():
119
+ result[key] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ return pprint.pformat(self.to_dict())
126
+
127
+ def __repr__(self):
128
+ """For `print` and `pprint`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, ArtifactPageInfo):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other