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
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Poller Service REST API
5
+
6
+ REST API of the LOCKSS Poller Service # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+ Contact: lockss-support@lockss.org
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class PollerPageInfo(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
+ 'polls': 'list[PollerSummary]',
32
+ 'page_info': 'PageInfo'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'polls': 'polls',
37
+ 'page_info': 'pageInfo'
38
+ }
39
+
40
+ def __init__(self, polls=None, page_info=None): # noqa: E501
41
+ """PollerPageInfo - a model defined in Swagger""" # noqa: E501
42
+ self._polls = None
43
+ self._page_info = None
44
+ self.discriminator = None
45
+ self.polls = polls
46
+ self.page_info = page_info
47
+
48
+ @property
49
+ def polls(self):
50
+ """Gets the polls of this PollerPageInfo. # noqa: E501
51
+
52
+ The poll summaries included in the page # noqa: E501
53
+
54
+ :return: The polls of this PollerPageInfo. # noqa: E501
55
+ :rtype: list[PollerSummary]
56
+ """
57
+ return self._polls
58
+
59
+ @polls.setter
60
+ def polls(self, polls):
61
+ """Sets the polls of this PollerPageInfo.
62
+
63
+ The poll summaries included in the page # noqa: E501
64
+
65
+ :param polls: The polls of this PollerPageInfo. # noqa: E501
66
+ :type: list[PollerSummary]
67
+ """
68
+ if polls is None:
69
+ raise ValueError("Invalid value for `polls`, must not be `None`") # noqa: E501
70
+
71
+ self._polls = polls
72
+
73
+ @property
74
+ def page_info(self):
75
+ """Gets the page_info of this PollerPageInfo. # noqa: E501
76
+
77
+
78
+ :return: The page_info of this PollerPageInfo. # 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 PollerPageInfo.
86
+
87
+
88
+ :param page_info: The page_info of this PollerPageInfo. # 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(PollerPageInfo, 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, PollerPageInfo):
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
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Poller Service REST API
5
+
6
+ REST API of the LOCKSS Poller Service # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+ Contact: lockss-support@lockss.org
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class RepairPageInfo(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
+ 'repairs': 'list[RepairData]',
32
+ 'page_info': 'PageInfo'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'repairs': 'repairs',
37
+ 'page_info': 'pageInfo'
38
+ }
39
+
40
+ def __init__(self, repairs=None, page_info=None): # noqa: E501
41
+ """RepairPageInfo - a model defined in Swagger""" # noqa: E501
42
+ self._repairs = None
43
+ self._page_info = None
44
+ self.discriminator = None
45
+ self.repairs = repairs
46
+ self.page_info = page_info
47
+
48
+ @property
49
+ def repairs(self):
50
+ """Gets the repairs of this RepairPageInfo. # noqa: E501
51
+
52
+ The repair items included in the page # noqa: E501
53
+
54
+ :return: The repairs of this RepairPageInfo. # noqa: E501
55
+ :rtype: list[RepairData]
56
+ """
57
+ return self._repairs
58
+
59
+ @repairs.setter
60
+ def repairs(self, repairs):
61
+ """Sets the repairs of this RepairPageInfo.
62
+
63
+ The repair items included in the page # noqa: E501
64
+
65
+ :param repairs: The repairs of this RepairPageInfo. # noqa: E501
66
+ :type: list[RepairData]
67
+ """
68
+ if repairs is None:
69
+ raise ValueError("Invalid value for `repairs`, must not be `None`") # noqa: E501
70
+
71
+ self._repairs = repairs
72
+
73
+ @property
74
+ def page_info(self):
75
+ """Gets the page_info of this RepairPageInfo. # noqa: E501
76
+
77
+
78
+ :return: The page_info of this RepairPageInfo. # 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 RepairPageInfo.
86
+
87
+
88
+ :param page_info: The page_info of this RepairPageInfo. # 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(RepairPageInfo, 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, RepairPageInfo):
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
@@ -0,0 +1,91 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Poller Service REST API
5
+
6
+ REST API of the LOCKSS Poller Service # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+ Contact: lockss-support@lockss.org
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class RepairTypeEnum(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
+ PENDING = "pending"
28
+ ACTIVE = "active"
29
+ COMPLETED = "completed"
30
+ """
31
+ Attributes:
32
+ swagger_types (dict): The key is attribute name
33
+ and the value is attribute type.
34
+ attribute_map (dict): The key is attribute name
35
+ and the value is json key in definition.
36
+ """
37
+ swagger_types = {
38
+ }
39
+
40
+ attribute_map = {
41
+ }
42
+
43
+ def __init__(self): # noqa: E501
44
+ """RepairTypeEnum - a model defined in Swagger""" # noqa: E501
45
+ self.discriminator = None
46
+
47
+ def to_dict(self):
48
+ """Returns the model properties as a dict"""
49
+ result = {}
50
+
51
+ for attr, _ in six.iteritems(self.swagger_types):
52
+ value = getattr(self, attr)
53
+ if isinstance(value, list):
54
+ result[attr] = list(map(
55
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
56
+ value
57
+ ))
58
+ elif hasattr(value, "to_dict"):
59
+ result[attr] = value.to_dict()
60
+ elif isinstance(value, dict):
61
+ result[attr] = dict(map(
62
+ lambda item: (item[0], item[1].to_dict())
63
+ if hasattr(item[1], "to_dict") else item,
64
+ value.items()
65
+ ))
66
+ else:
67
+ result[attr] = value
68
+ if issubclass(RepairTypeEnum, dict):
69
+ for key, value in self.items():
70
+ result[key] = value
71
+
72
+ return result
73
+
74
+ def to_str(self):
75
+ """Returns the string representation of the model"""
76
+ return pprint.pformat(self.to_dict())
77
+
78
+ def __repr__(self):
79
+ """For `print` and `pprint`"""
80
+ return self.to_str()
81
+
82
+ def __eq__(self, other):
83
+ """Returns true if both objects are equal"""
84
+ if not isinstance(other, RepairTypeEnum):
85
+ return False
86
+
87
+ return self.__dict__ == other.__dict__
88
+
89
+ def __ne__(self, other):
90
+ """Returns true if both objects are not equal"""
91
+ return not self == other
@@ -0,0 +1,93 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Poller Service REST API
5
+
6
+ REST API of the LOCKSS Poller Service # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+ Contact: lockss-support@lockss.org
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class TallyTypeEnum(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
+ AGREE = "agree"
28
+ DISAGREE = "disagree"
29
+ ERROR = "error"
30
+ NOQUORUM = "noQuorum"
31
+ TOOCLOSE = "tooClose"
32
+ """
33
+ Attributes:
34
+ swagger_types (dict): The key is attribute name
35
+ and the value is attribute type.
36
+ attribute_map (dict): The key is attribute name
37
+ and the value is json key in definition.
38
+ """
39
+ swagger_types = {
40
+ }
41
+
42
+ attribute_map = {
43
+ }
44
+
45
+ def __init__(self): # noqa: E501
46
+ """TallyTypeEnum - a model defined in Swagger""" # noqa: E501
47
+ self.discriminator = None
48
+
49
+ def to_dict(self):
50
+ """Returns the model properties as a dict"""
51
+ result = {}
52
+
53
+ for attr, _ in six.iteritems(self.swagger_types):
54
+ value = getattr(self, attr)
55
+ if isinstance(value, list):
56
+ result[attr] = list(map(
57
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
58
+ value
59
+ ))
60
+ elif hasattr(value, "to_dict"):
61
+ result[attr] = value.to_dict()
62
+ elif isinstance(value, dict):
63
+ result[attr] = dict(map(
64
+ lambda item: (item[0], item[1].to_dict())
65
+ if hasattr(item[1], "to_dict") else item,
66
+ value.items()
67
+ ))
68
+ else:
69
+ result[attr] = value
70
+ if issubclass(TallyTypeEnum, dict):
71
+ for key, value in self.items():
72
+ result[key] = value
73
+
74
+ return result
75
+
76
+ def to_str(self):
77
+ """Returns the string representation of the model"""
78
+ return pprint.pformat(self.to_dict())
79
+
80
+ def __repr__(self):
81
+ """For `print` and `pprint`"""
82
+ return self.to_str()
83
+
84
+ def __eq__(self, other):
85
+ """Returns true if both objects are equal"""
86
+ if not isinstance(other, TallyTypeEnum):
87
+ return False
88
+
89
+ return self.__dict__ == other.__dict__
90
+
91
+ def __ne__(self, other):
92
+ """Returns true if both objects are not equal"""
93
+ return not self == other
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Poller Service REST API
5
+
6
+ REST API of the LOCKSS Poller Service # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+ Contact: lockss-support@lockss.org
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class UrlPageInfo(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
+ 'urls': 'list[str]',
32
+ 'page_info': 'PageInfo'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'urls': 'urls',
37
+ 'page_info': 'pageInfo'
38
+ }
39
+
40
+ def __init__(self, urls=None, page_info=None): # noqa: E501
41
+ """UrlPageInfo - a model defined in Swagger""" # noqa: E501
42
+ self._urls = None
43
+ self._page_info = None
44
+ self.discriminator = None
45
+ self.urls = urls
46
+ self.page_info = page_info
47
+
48
+ @property
49
+ def urls(self):
50
+ """Gets the urls of this UrlPageInfo. # noqa: E501
51
+
52
+ The URLs included in the page # noqa: E501
53
+
54
+ :return: The urls of this UrlPageInfo. # noqa: E501
55
+ :rtype: list[str]
56
+ """
57
+ return self._urls
58
+
59
+ @urls.setter
60
+ def urls(self, urls):
61
+ """Sets the urls of this UrlPageInfo.
62
+
63
+ The URLs included in the page # noqa: E501
64
+
65
+ :param urls: The urls of this UrlPageInfo. # noqa: E501
66
+ :type: list[str]
67
+ """
68
+ if urls is None:
69
+ raise ValueError("Invalid value for `urls`, must not be `None`") # noqa: E501
70
+
71
+ self._urls = urls
72
+
73
+ @property
74
+ def page_info(self):
75
+ """Gets the page_info of this UrlPageInfo. # noqa: E501
76
+
77
+
78
+ :return: The page_info of this UrlPageInfo. # 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 UrlPageInfo.
86
+
87
+
88
+ :param page_info: The page_info of this UrlPageInfo. # 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(UrlPageInfo, 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, UrlPageInfo):
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