lockss-pyclient 0.1.0.dev2__py3-none-any.whl → 0.1.0.dev3__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 (93) hide show
  1. lockss/pyclient/__init__.py +8 -29
  2. lockss/pyclient/__main__.py +37 -0
  3. lockss/pyclient/_internal_common.py +395 -0
  4. lockss/pyclient/_internal_config.py +207 -0
  5. lockss/pyclient/_internal_crawler.py +251 -0
  6. lockss/pyclient/_internal_md.py +111 -0
  7. lockss/pyclient/_internal_poller.py +174 -0
  8. lockss/pyclient/_internal_rs.py +232 -0
  9. lockss/pyclient/cli.py +839 -0
  10. lockss/pyclient/config/__init__.py +15 -0
  11. lockss/pyclient/config/api/aus_api.py +14 -6
  12. lockss/pyclient/config/api/config_api.py +12 -12
  13. lockss/pyclient/config/api/utils_api.py +2 -2
  14. lockss/pyclient/config/configuration.py +1 -1
  15. lockss/pyclient/config/models/__init__.py +15 -0
  16. lockss/pyclient/config/models/access_type.py +90 -0
  17. lockss/pyclient/config/models/au_agreements.py +136 -0
  18. lockss/pyclient/config/models/au_config_page_info.py +140 -0
  19. lockss/pyclient/config/models/au_state_bean.py +942 -0
  20. lockss/pyclient/config/models/au_status.py +837 -8
  21. lockss/pyclient/config/models/au_suspect_url_versions.py +136 -0
  22. lockss/pyclient/config/models/check_substance_result.py +6 -22
  23. lockss/pyclient/config/models/dated_peer_id_set_impl.py +162 -0
  24. lockss/pyclient/config/models/hash_result.py +136 -0
  25. lockss/pyclient/config/models/page_info.py +226 -0
  26. lockss/pyclient/config/models/peer_agreement.py +188 -0
  27. lockss/pyclient/config/models/peer_agreements.py +136 -0
  28. lockss/pyclient/config/models/platform_configuration_ws_result.py +421 -8
  29. lockss/pyclient/config/models/platform_configuration_ws_result_daemon_version.py +188 -0
  30. lockss/pyclient/config/models/platform_configuration_ws_result_java_version.py +188 -0
  31. lockss/pyclient/config/models/platform_configuration_ws_result_platform.py +162 -0
  32. lockss/pyclient/config/models/substance_checker_state.py +91 -0
  33. lockss/pyclient/config/models/suspect_url_version.py +214 -0
  34. lockss/pyclient/config/swagger.yaml +2031 -0
  35. lockss/pyclient/crawler/__init__.py +1 -0
  36. lockss/pyclient/crawler/api/crawls_api.py +2 -2
  37. lockss/pyclient/crawler/configuration.py +1 -1
  38. lockss/pyclient/crawler/models/__init__.py +1 -0
  39. lockss/pyclient/crawler/models/crawl_desc.py +4 -12
  40. lockss/pyclient/crawler/models/crawl_kind_enum.py +90 -0
  41. lockss/pyclient/crawler/models/page_info.py +22 -24
  42. lockss/pyclient/crawler/swagger.yaml +1197 -0
  43. lockss/pyclient/md/configuration.py +1 -1
  44. lockss/pyclient/md/models/page_info.py +22 -24
  45. lockss/pyclient/md/swagger.yaml +583 -0
  46. lockss/pyclient/output.py +131 -0
  47. lockss/pyclient/poller/__init__.py +11 -5
  48. lockss/pyclient/poller/api/export_api.py +5 -5
  49. lockss/pyclient/poller/api/hash_api.py +3 -3
  50. lockss/pyclient/poller/api/poll_detail_api.py +42 -42
  51. lockss/pyclient/poller/api/poller_polls_api.py +18 -18
  52. lockss/pyclient/poller/api/service_api.py +2 -2
  53. lockss/pyclient/poller/api/voter_polls_api.py +18 -18
  54. lockss/pyclient/poller/configuration.py +1 -1
  55. lockss/pyclient/poller/models/__init__.py +11 -5
  56. lockss/pyclient/poller/models/export_file_type_enum.py +93 -0
  57. lockss/pyclient/poller/models/export_filename_translation_enum.py +91 -0
  58. lockss/pyclient/poller/models/page_info.py +226 -0
  59. lockss/pyclient/poller/models/poll_desc.py +3 -11
  60. lockss/pyclient/poller/models/poll_variant_enum.py +92 -0
  61. lockss/pyclient/poller/models/poller_page_info.py +140 -0
  62. lockss/pyclient/poller/models/repair_page_info.py +140 -0
  63. lockss/pyclient/poller/models/repair_type_enum.py +91 -0
  64. lockss/pyclient/poller/models/tally_type_enum.py +93 -0
  65. lockss/pyclient/poller/models/url_page_info.py +140 -0
  66. lockss/pyclient/poller/models/voter_page_info.py +140 -0
  67. lockss/pyclient/poller/models/voter_urls_enum.py +92 -0
  68. lockss/pyclient/poller/swagger.yaml +1658 -0
  69. lockss/pyclient/rs/__init__.py +6 -0
  70. lockss/pyclient/rs/api/artifacts_api.py +20 -20
  71. lockss/pyclient/rs/api/aus_api.py +5 -5
  72. lockss/pyclient/rs/api/repo_api.py +4 -4
  73. lockss/pyclient/rs/api/status_api.py +1 -1
  74. lockss/pyclient/rs/api/wayback_api.py +12 -12
  75. lockss/pyclient/rs/configuration.py +8 -1
  76. lockss/pyclient/rs/models/__init__.py +6 -0
  77. lockss/pyclient/rs/models/artifact.py +111 -81
  78. lockss/pyclient/rs/models/au_size.py +6 -0
  79. lockss/pyclient/rs/models/auid_page_info.py +2 -2
  80. lockss/pyclient/rs/models/bulk_au_op_enum.py +90 -0
  81. lockss/pyclient/rs/models/include_content_enum.py +91 -0
  82. lockss/pyclient/rs/models/page_info.py +26 -29
  83. lockss/pyclient/rs/models/pywb_match_enum.py +93 -0
  84. lockss/pyclient/rs/models/pywb_output_enum.py +90 -0
  85. lockss/pyclient/rs/models/pywb_sort_enum.py +91 -0
  86. lockss/pyclient/rs/models/storage_info.py +131 -80
  87. lockss/pyclient/rs/models/versions_enum.py +90 -0
  88. lockss/pyclient/rs/swagger.yaml +1306 -0
  89. {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/METADATA +10 -3
  90. {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/RECORD +93 -45
  91. {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/WHEEL +1 -1
  92. lockss_pyclient-0.1.0.dev3.dist-info/entry_points.txt +3 -0
  93. {lockss_pyclient-0.1.0.dev2.dist-info → lockss_pyclient-0.1.0.dev3.dist-info/licenses}/LICENSE +0 -0
@@ -26,17 +26,32 @@ from lockss.pyclient.config.api.utils_api import UtilsApi
26
26
  from lockss.pyclient.config.api_client import ApiClient
27
27
  from lockss.pyclient.config.configuration import Configuration
28
28
  # import models into sdk package
29
+ from lockss.pyclient.config.models.access_type import AccessType
29
30
  from lockss.pyclient.config.models.api_status import ApiStatus
31
+ from lockss.pyclient.config.models.au_agreements import AuAgreements
32
+ from lockss.pyclient.config.models.au_config_page_info import AuConfigPageInfo
30
33
  from lockss.pyclient.config.models.au_configuration import AuConfiguration
34
+ from lockss.pyclient.config.models.au_state_bean import AuStateBean
31
35
  from lockss.pyclient.config.models.au_status import AuStatus
36
+ from lockss.pyclient.config.models.au_suspect_url_versions import AuSuspectUrlVersions
32
37
  from lockss.pyclient.config.models.au_ws_result import AuWsResult
33
38
  from lockss.pyclient.config.models.auids_body import AuidsBody
34
39
  from lockss.pyclient.config.models.check_substance_result import CheckSubstanceResult
35
40
  from lockss.pyclient.config.models.content_configuration_result import ContentConfigurationResult
41
+ from lockss.pyclient.config.models.dated_peer_id_set_impl import DatedPeerIdSetImpl
36
42
  from lockss.pyclient.config.models.file_section_name_body import FileSectionNameBody
43
+ from lockss.pyclient.config.models.hash_result import HashResult
44
+ from lockss.pyclient.config.models.page_info import PageInfo
45
+ from lockss.pyclient.config.models.peer_agreement import PeerAgreement
46
+ from lockss.pyclient.config.models.peer_agreements import PeerAgreements
37
47
  from lockss.pyclient.config.models.platform_configuration_ws_result import PlatformConfigurationWsResult
48
+ from lockss.pyclient.config.models.platform_configuration_ws_result_daemon_version import PlatformConfigurationWsResultDaemonVersion
49
+ from lockss.pyclient.config.models.platform_configuration_ws_result_java_version import PlatformConfigurationWsResultJavaVersion
50
+ from lockss.pyclient.config.models.platform_configuration_ws_result_platform import PlatformConfigurationWsResultPlatform
38
51
  from lockss.pyclient.config.models.plugin_ws_result import PluginWsResult
39
52
  from lockss.pyclient.config.models.request_au_control_result import RequestAuControlResult
53
+ from lockss.pyclient.config.models.substance_checker_state import SubstanceCheckerState
54
+ from lockss.pyclient.config.models.suspect_url_version import SuspectUrlVersion
40
55
  from lockss.pyclient.config.models.tdb_au_ws_result import TdbAuWsResult
41
56
  from lockss.pyclient.config.models.tdb_publisher_ws_result import TdbPublisherWsResult
42
57
  from lockss.pyclient.config.models.tdb_title_ws_result import TdbTitleWsResult
@@ -339,7 +339,9 @@ class AusApi(object):
339
339
  >>> result = thread.get()
340
340
 
341
341
  :param async_req bool
342
- :return: list[AuConfiguration]
342
+ :param int limit: The requested maximum number of AU configurations per response
343
+ :param str continuation_token: The continuation token of the next page of AU configurations to be returned
344
+ :return: AuConfigPageInfo
343
345
  If the method is called asynchronously,
344
346
  returns the request thread.
345
347
  """
@@ -360,12 +362,14 @@ class AusApi(object):
360
362
  >>> result = thread.get()
361
363
 
362
364
  :param async_req bool
363
- :return: list[AuConfiguration]
365
+ :param int limit: The requested maximum number of AU configurations per response
366
+ :param str continuation_token: The continuation token of the next page of AU configurations to be returned
367
+ :return: AuConfigPageInfo
364
368
  If the method is called asynchronously,
365
369
  returns the request thread.
366
370
  """
367
371
 
368
- all_params = [] # noqa: E501
372
+ all_params = ['limit', 'continuation_token'] # noqa: E501
369
373
  all_params.append('async_req')
370
374
  all_params.append('_return_http_data_only')
371
375
  all_params.append('_preload_content')
@@ -386,6 +390,10 @@ class AusApi(object):
386
390
  path_params = {}
387
391
 
388
392
  query_params = []
393
+ if 'limit' in params:
394
+ query_params.append(('limit', params['limit'])) # noqa: E501
395
+ if 'continuation_token' in params:
396
+ query_params.append(('continuationToken', params['continuation_token'])) # noqa: E501
389
397
 
390
398
  header_params = {}
391
399
 
@@ -408,7 +416,7 @@ class AusApi(object):
408
416
  body=body_params,
409
417
  post_params=form_params,
410
418
  files=local_var_files,
411
- response_type='list[AuConfiguration]', # noqa: E501
419
+ response_type='AuConfigPageInfo', # noqa: E501
412
420
  auth_settings=auth_settings,
413
421
  async_req=params.get('async_req'),
414
422
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -521,7 +529,7 @@ class AusApi(object):
521
529
  >>> result = thread.get()
522
530
 
523
531
  :param async_req bool
524
- :param str auid: The identifier of the AU for which the configuration is\\ \\ requested (required)
532
+ :param str auid: The identifier of the AU for which the configuration is requested (required)
525
533
  :return: AuConfiguration
526
534
  If the method is called asynchronously,
527
535
  returns the request thread.
@@ -543,7 +551,7 @@ class AusApi(object):
543
551
  >>> result = thread.get()
544
552
 
545
553
  :param async_req bool
546
- :param str auid: The identifier of the AU for which the configuration is\\ \\ requested (required)
554
+ :param str auid: The identifier of the AU for which the configuration is requested (required)
547
555
  :return: AuConfiguration
548
556
  If the method is called asynchronously,
549
557
  returns the request thread.
@@ -305,9 +305,9 @@ class ConfigApi(object):
305
305
  :param async_req bool
306
306
  :param str section_name: The name of the section for which the configuration file is requested (required)
307
307
  :param str if_match: The If-Match header
308
- :param str if_modified_since: The If-Match header
309
- :param str if_none_match: The If-Match header
310
- :param str if_unmodified_since: The If-Match header
308
+ :param str if_modified_since: The If-Modified-Since header
309
+ :param str if_none_match: The If-None-Match header
310
+ :param str if_unmodified_since: The If-Unmodified-Since header
311
311
  :return: str
312
312
  If the method is called asynchronously,
313
313
  returns the request thread.
@@ -331,9 +331,9 @@ class ConfigApi(object):
331
331
  :param async_req bool
332
332
  :param str section_name: The name of the section for which the configuration file is requested (required)
333
333
  :param str if_match: The If-Match header
334
- :param str if_modified_since: The If-Match header
335
- :param str if_none_match: The If-Match header
336
- :param str if_unmodified_since: The If-Match header
334
+ :param str if_modified_since: The If-Modified-Since header
335
+ :param str if_none_match: The If-None-Match header
336
+ :param str if_unmodified_since: The If-Unmodified-Since header
337
337
  :return: str
338
338
  If the method is called asynchronously,
339
339
  returns the request thread.
@@ -416,9 +416,9 @@ class ConfigApi(object):
416
416
  :param async_req bool
417
417
  :param str url: The URL for which the configuration is requested (required)
418
418
  :param str if_match: The If-Match header
419
- :param str if_modified_since: The If-Match header
420
- :param str if_none_match: The If-Match header
421
- :param str if_unmodified_since: The If-Match header
419
+ :param str if_modified_since: The If-Modified-Since header
420
+ :param str if_none_match: The If-None-Match header
421
+ :param str if_unmodified_since: The If-Unmodified-Since header
422
422
  :return: str
423
423
  If the method is called asynchronously,
424
424
  returns the request thread.
@@ -442,9 +442,9 @@ class ConfigApi(object):
442
442
  :param async_req bool
443
443
  :param str url: The URL for which the configuration is requested (required)
444
444
  :param str if_match: The If-Match header
445
- :param str if_modified_since: The If-Match header
446
- :param str if_none_match: The If-Match header
447
- :param str if_unmodified_since: The If-Match header
445
+ :param str if_modified_since: The If-Modified-Since header
446
+ :param str if_none_match: The If-None-Match header
447
+ :param str if_unmodified_since: The If-Unmodified-Since header
448
448
  :return: str
449
449
  If the method is called asynchronously,
450
450
  returns the request thread.
@@ -106,13 +106,13 @@ class UtilsApi(object):
106
106
  body_params = None
107
107
  # HTTP header `Accept`
108
108
  header_params['Accept'] = self.api_client.select_header_accept(
109
- ['application/json', 'text/plain']) # noqa: E501
109
+ ['application/json;q=0.9', 'text/plain']) # noqa: E501
110
110
 
111
111
  # Authentication setting
112
112
  auth_settings = ['basicAuth'] # noqa: E501
113
113
 
114
114
  return self.api_client.call_api(
115
- '/utils/normalizeUrl', 'GET',
115
+ '/utils/normalizeurl', 'GET',
116
116
  path_params,
117
117
  query_params,
118
118
  header_params,
@@ -46,7 +46,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
46
46
  def __init__(self):
47
47
  """Constructor"""
48
48
  # Default Base url
49
- self.host = "https://laaws.lockss.org:443/"
49
+ self.host = "{proto}://{hostname}:{port}/"
50
50
  # Temp file folder for downloading files
51
51
  self.temp_folder_path = None
52
52
 
@@ -14,17 +14,32 @@
14
14
  from __future__ import absolute_import
15
15
 
16
16
  # import models into model package
17
+ from lockss.pyclient.config.models.access_type import AccessType
17
18
  from lockss.pyclient.config.models.api_status import ApiStatus
19
+ from lockss.pyclient.config.models.au_agreements import AuAgreements
20
+ from lockss.pyclient.config.models.au_config_page_info import AuConfigPageInfo
18
21
  from lockss.pyclient.config.models.au_configuration import AuConfiguration
22
+ from lockss.pyclient.config.models.au_state_bean import AuStateBean
19
23
  from lockss.pyclient.config.models.au_status import AuStatus
24
+ from lockss.pyclient.config.models.au_suspect_url_versions import AuSuspectUrlVersions
20
25
  from lockss.pyclient.config.models.au_ws_result import AuWsResult
21
26
  from lockss.pyclient.config.models.auids_body import AuidsBody
22
27
  from lockss.pyclient.config.models.check_substance_result import CheckSubstanceResult
23
28
  from lockss.pyclient.config.models.content_configuration_result import ContentConfigurationResult
29
+ from lockss.pyclient.config.models.dated_peer_id_set_impl import DatedPeerIdSetImpl
24
30
  from lockss.pyclient.config.models.file_section_name_body import FileSectionNameBody
31
+ from lockss.pyclient.config.models.hash_result import HashResult
32
+ from lockss.pyclient.config.models.page_info import PageInfo
33
+ from lockss.pyclient.config.models.peer_agreement import PeerAgreement
34
+ from lockss.pyclient.config.models.peer_agreements import PeerAgreements
25
35
  from lockss.pyclient.config.models.platform_configuration_ws_result import PlatformConfigurationWsResult
36
+ from lockss.pyclient.config.models.platform_configuration_ws_result_daemon_version import PlatformConfigurationWsResultDaemonVersion
37
+ from lockss.pyclient.config.models.platform_configuration_ws_result_java_version import PlatformConfigurationWsResultJavaVersion
38
+ from lockss.pyclient.config.models.platform_configuration_ws_result_platform import PlatformConfigurationWsResultPlatform
26
39
  from lockss.pyclient.config.models.plugin_ws_result import PluginWsResult
27
40
  from lockss.pyclient.config.models.request_au_control_result import RequestAuControlResult
41
+ from lockss.pyclient.config.models.substance_checker_state import SubstanceCheckerState
42
+ from lockss.pyclient.config.models.suspect_url_version import SuspectUrlVersion
28
43
  from lockss.pyclient.config.models.tdb_au_ws_result import TdbAuWsResult
29
44
  from lockss.pyclient.config.models.tdb_publisher_ws_result import TdbPublisherWsResult
30
45
  from lockss.pyclient.config.models.tdb_title_ws_result import TdbTitleWsResult
@@ -0,0 +1,90 @@
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 AccessType(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
+ """
25
+ allowed enum values
26
+ """
27
+ OPENACCESS = "OpenAccess"
28
+ SUBSCRIPTION = "Subscription"
29
+ """
30
+ Attributes:
31
+ swagger_types (dict): The key is attribute name
32
+ and the value is attribute type.
33
+ attribute_map (dict): The key is attribute name
34
+ and the value is json key in definition.
35
+ """
36
+ swagger_types = {
37
+ }
38
+
39
+ attribute_map = {
40
+ }
41
+
42
+ def __init__(self): # noqa: E501
43
+ """AccessType - a model defined in Swagger""" # noqa: E501
44
+ self.discriminator = None
45
+
46
+ def to_dict(self):
47
+ """Returns the model properties as a dict"""
48
+ result = {}
49
+
50
+ for attr, _ in six.iteritems(self.swagger_types):
51
+ value = getattr(self, attr)
52
+ if isinstance(value, list):
53
+ result[attr] = list(map(
54
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
55
+ value
56
+ ))
57
+ elif hasattr(value, "to_dict"):
58
+ result[attr] = value.to_dict()
59
+ elif isinstance(value, dict):
60
+ result[attr] = dict(map(
61
+ lambda item: (item[0], item[1].to_dict())
62
+ if hasattr(item[1], "to_dict") else item,
63
+ value.items()
64
+ ))
65
+ else:
66
+ result[attr] = value
67
+ if issubclass(AccessType, dict):
68
+ for key, value in self.items():
69
+ result[key] = value
70
+
71
+ return result
72
+
73
+ def to_str(self):
74
+ """Returns the string representation of the model"""
75
+ return pprint.pformat(self.to_dict())
76
+
77
+ def __repr__(self):
78
+ """For `print` and `pprint`"""
79
+ return self.to_str()
80
+
81
+ def __eq__(self, other):
82
+ """Returns true if both objects are equal"""
83
+ if not isinstance(other, AccessType):
84
+ return False
85
+
86
+ return self.__dict__ == other.__dict__
87
+
88
+ def __ne__(self, other):
89
+ """Returns true if both objects are not equal"""
90
+ return not self == other
@@ -0,0 +1,136 @@
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 AuAgreements(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
+ 'raw_map': 'dict(str, PeerAgreements)'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'auid': 'auid',
37
+ 'raw_map': 'rawMap'
38
+ }
39
+
40
+ def __init__(self, auid=None, raw_map=None): # noqa: E501
41
+ """AuAgreements - a model defined in Swagger""" # noqa: E501
42
+ self._auid = None
43
+ self._raw_map = None
44
+ self.discriminator = None
45
+ if auid is not None:
46
+ self.auid = auid
47
+ if raw_map is not None:
48
+ self.raw_map = raw_map
49
+
50
+ @property
51
+ def auid(self):
52
+ """Gets the auid of this AuAgreements. # noqa: E501
53
+
54
+
55
+ :return: The auid of this AuAgreements. # noqa: E501
56
+ :rtype: str
57
+ """
58
+ return self._auid
59
+
60
+ @auid.setter
61
+ def auid(self, auid):
62
+ """Sets the auid of this AuAgreements.
63
+
64
+
65
+ :param auid: The auid of this AuAgreements. # noqa: E501
66
+ :type: str
67
+ """
68
+
69
+ self._auid = auid
70
+
71
+ @property
72
+ def raw_map(self):
73
+ """Gets the raw_map of this AuAgreements. # noqa: E501
74
+
75
+
76
+ :return: The raw_map of this AuAgreements. # noqa: E501
77
+ :rtype: dict(str, PeerAgreements)
78
+ """
79
+ return self._raw_map
80
+
81
+ @raw_map.setter
82
+ def raw_map(self, raw_map):
83
+ """Sets the raw_map of this AuAgreements.
84
+
85
+
86
+ :param raw_map: The raw_map of this AuAgreements. # noqa: E501
87
+ :type: dict(str, PeerAgreements)
88
+ """
89
+
90
+ self._raw_map = raw_map
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.swagger_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ result[attr] = value
113
+ if issubclass(AuAgreements, dict):
114
+ for key, value in self.items():
115
+ result[key] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ return pprint.pformat(self.to_dict())
122
+
123
+ def __repr__(self):
124
+ """For `print` and `pprint`"""
125
+ return self.to_str()
126
+
127
+ def __eq__(self, other):
128
+ """Returns true if both objects are equal"""
129
+ if not isinstance(other, AuAgreements):
130
+ return False
131
+
132
+ return self.__dict__ == other.__dict__
133
+
134
+ def __ne__(self, other):
135
+ """Returns true if both objects are not equal"""
136
+ return not self == other
@@ -0,0 +1,140 @@
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 AuConfigPageInfo(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_configs': 'list[AuConfiguration]',
32
+ 'page_info': 'PageInfo'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'au_configs': 'auConfigs',
37
+ 'page_info': 'pageInfo'
38
+ }
39
+
40
+ def __init__(self, au_configs=None, page_info=None): # noqa: E501
41
+ """AuConfigPageInfo - a model defined in Swagger""" # noqa: E501
42
+ self._au_configs = None
43
+ self._page_info = None
44
+ self.discriminator = None
45
+ self.au_configs = au_configs
46
+ self.page_info = page_info
47
+
48
+ @property
49
+ def au_configs(self):
50
+ """Gets the au_configs of this AuConfigPageInfo. # noqa: E501
51
+
52
+ The AU configurations included in the page # noqa: E501
53
+
54
+ :return: The au_configs of this AuConfigPageInfo. # noqa: E501
55
+ :rtype: list[AuConfiguration]
56
+ """
57
+ return self._au_configs
58
+
59
+ @au_configs.setter
60
+ def au_configs(self, au_configs):
61
+ """Sets the au_configs of this AuConfigPageInfo.
62
+
63
+ The AU configurations included in the page # noqa: E501
64
+
65
+ :param au_configs: The au_configs of this AuConfigPageInfo. # noqa: E501
66
+ :type: list[AuConfiguration]
67
+ """
68
+ if au_configs is None:
69
+ raise ValueError("Invalid value for `au_configs`, must not be `None`") # noqa: E501
70
+
71
+ self._au_configs = au_configs
72
+
73
+ @property
74
+ def page_info(self):
75
+ """Gets the page_info of this AuConfigPageInfo. # noqa: E501
76
+
77
+
78
+ :return: The page_info of this AuConfigPageInfo. # 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 AuConfigPageInfo.
86
+
87
+
88
+ :param page_info: The page_info of this AuConfigPageInfo. # 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(AuConfigPageInfo, 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, AuConfigPageInfo):
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