lockss-pyclient 0.1.0.dev1__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.dev1.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/METADATA +14 -7
  90. {lockss_pyclient-0.1.0.dev1.dist-info → lockss_pyclient-0.1.0.dev3.dist-info}/RECORD +93 -45
  91. {lockss_pyclient-0.1.0.dev1.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.dev1.dist-info → lockss_pyclient-0.1.0.dev3.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,188 @@
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 PlatformConfigurationWsResultJavaVersion(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
+ 'version': 'str',
32
+ 'specification_version': 'str',
33
+ 'runtime_version': 'str',
34
+ 'runtime_name': 'str'
35
+ }
36
+
37
+ attribute_map = {
38
+ 'version': 'version',
39
+ 'specification_version': 'specificationVersion',
40
+ 'runtime_version': 'runtimeVersion',
41
+ 'runtime_name': 'runtimeName'
42
+ }
43
+
44
+ def __init__(self, version=None, specification_version=None, runtime_version=None, runtime_name=None): # noqa: E501
45
+ """PlatformConfigurationWsResultJavaVersion - a model defined in Swagger""" # noqa: E501
46
+ self._version = None
47
+ self._specification_version = None
48
+ self._runtime_version = None
49
+ self._runtime_name = None
50
+ self.discriminator = None
51
+ if version is not None:
52
+ self.version = version
53
+ if specification_version is not None:
54
+ self.specification_version = specification_version
55
+ if runtime_version is not None:
56
+ self.runtime_version = runtime_version
57
+ if runtime_name is not None:
58
+ self.runtime_name = runtime_name
59
+
60
+ @property
61
+ def version(self):
62
+ """Gets the version of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
63
+
64
+
65
+ :return: The version of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
66
+ :rtype: str
67
+ """
68
+ return self._version
69
+
70
+ @version.setter
71
+ def version(self, version):
72
+ """Sets the version of this PlatformConfigurationWsResultJavaVersion.
73
+
74
+
75
+ :param version: The version of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
76
+ :type: str
77
+ """
78
+
79
+ self._version = version
80
+
81
+ @property
82
+ def specification_version(self):
83
+ """Gets the specification_version of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
84
+
85
+
86
+ :return: The specification_version of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
87
+ :rtype: str
88
+ """
89
+ return self._specification_version
90
+
91
+ @specification_version.setter
92
+ def specification_version(self, specification_version):
93
+ """Sets the specification_version of this PlatformConfigurationWsResultJavaVersion.
94
+
95
+
96
+ :param specification_version: The specification_version of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
97
+ :type: str
98
+ """
99
+
100
+ self._specification_version = specification_version
101
+
102
+ @property
103
+ def runtime_version(self):
104
+ """Gets the runtime_version of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
105
+
106
+
107
+ :return: The runtime_version of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
108
+ :rtype: str
109
+ """
110
+ return self._runtime_version
111
+
112
+ @runtime_version.setter
113
+ def runtime_version(self, runtime_version):
114
+ """Sets the runtime_version of this PlatformConfigurationWsResultJavaVersion.
115
+
116
+
117
+ :param runtime_version: The runtime_version of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
118
+ :type: str
119
+ """
120
+
121
+ self._runtime_version = runtime_version
122
+
123
+ @property
124
+ def runtime_name(self):
125
+ """Gets the runtime_name of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
126
+
127
+
128
+ :return: The runtime_name of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
129
+ :rtype: str
130
+ """
131
+ return self._runtime_name
132
+
133
+ @runtime_name.setter
134
+ def runtime_name(self, runtime_name):
135
+ """Sets the runtime_name of this PlatformConfigurationWsResultJavaVersion.
136
+
137
+
138
+ :param runtime_name: The runtime_name of this PlatformConfigurationWsResultJavaVersion. # noqa: E501
139
+ :type: str
140
+ """
141
+
142
+ self._runtime_name = runtime_name
143
+
144
+ def to_dict(self):
145
+ """Returns the model properties as a dict"""
146
+ result = {}
147
+
148
+ for attr, _ in six.iteritems(self.swagger_types):
149
+ value = getattr(self, attr)
150
+ if isinstance(value, list):
151
+ result[attr] = list(map(
152
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
153
+ value
154
+ ))
155
+ elif hasattr(value, "to_dict"):
156
+ result[attr] = value.to_dict()
157
+ elif isinstance(value, dict):
158
+ result[attr] = dict(map(
159
+ lambda item: (item[0], item[1].to_dict())
160
+ if hasattr(item[1], "to_dict") else item,
161
+ value.items()
162
+ ))
163
+ else:
164
+ result[attr] = value
165
+ if issubclass(PlatformConfigurationWsResultJavaVersion, dict):
166
+ for key, value in self.items():
167
+ result[key] = value
168
+
169
+ return result
170
+
171
+ def to_str(self):
172
+ """Returns the string representation of the model"""
173
+ return pprint.pformat(self.to_dict())
174
+
175
+ def __repr__(self):
176
+ """For `print` and `pprint`"""
177
+ return self.to_str()
178
+
179
+ def __eq__(self, other):
180
+ """Returns true if both objects are equal"""
181
+ if not isinstance(other, PlatformConfigurationWsResultJavaVersion):
182
+ return False
183
+
184
+ return self.__dict__ == other.__dict__
185
+
186
+ def __ne__(self, other):
187
+ """Returns true if both objects are not equal"""
188
+ return not self == other
@@ -0,0 +1,162 @@
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 PlatformConfigurationWsResultPlatform(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
+ 'name': 'str',
32
+ 'version': 'str',
33
+ 'suffix': 'str'
34
+ }
35
+
36
+ attribute_map = {
37
+ 'name': 'name',
38
+ 'version': 'version',
39
+ 'suffix': 'suffix'
40
+ }
41
+
42
+ def __init__(self, name=None, version=None, suffix=None): # noqa: E501
43
+ """PlatformConfigurationWsResultPlatform - a model defined in Swagger""" # noqa: E501
44
+ self._name = None
45
+ self._version = None
46
+ self._suffix = None
47
+ self.discriminator = None
48
+ if name is not None:
49
+ self.name = name
50
+ if version is not None:
51
+ self.version = version
52
+ if suffix is not None:
53
+ self.suffix = suffix
54
+
55
+ @property
56
+ def name(self):
57
+ """Gets the name of this PlatformConfigurationWsResultPlatform. # noqa: E501
58
+
59
+
60
+ :return: The name of this PlatformConfigurationWsResultPlatform. # noqa: E501
61
+ :rtype: str
62
+ """
63
+ return self._name
64
+
65
+ @name.setter
66
+ def name(self, name):
67
+ """Sets the name of this PlatformConfigurationWsResultPlatform.
68
+
69
+
70
+ :param name: The name of this PlatformConfigurationWsResultPlatform. # noqa: E501
71
+ :type: str
72
+ """
73
+
74
+ self._name = name
75
+
76
+ @property
77
+ def version(self):
78
+ """Gets the version of this PlatformConfigurationWsResultPlatform. # noqa: E501
79
+
80
+
81
+ :return: The version of this PlatformConfigurationWsResultPlatform. # noqa: E501
82
+ :rtype: str
83
+ """
84
+ return self._version
85
+
86
+ @version.setter
87
+ def version(self, version):
88
+ """Sets the version of this PlatformConfigurationWsResultPlatform.
89
+
90
+
91
+ :param version: The version of this PlatformConfigurationWsResultPlatform. # noqa: E501
92
+ :type: str
93
+ """
94
+
95
+ self._version = version
96
+
97
+ @property
98
+ def suffix(self):
99
+ """Gets the suffix of this PlatformConfigurationWsResultPlatform. # noqa: E501
100
+
101
+
102
+ :return: The suffix of this PlatformConfigurationWsResultPlatform. # noqa: E501
103
+ :rtype: str
104
+ """
105
+ return self._suffix
106
+
107
+ @suffix.setter
108
+ def suffix(self, suffix):
109
+ """Sets the suffix of this PlatformConfigurationWsResultPlatform.
110
+
111
+
112
+ :param suffix: The suffix of this PlatformConfigurationWsResultPlatform. # noqa: E501
113
+ :type: str
114
+ """
115
+
116
+ self._suffix = suffix
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.swagger_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ result[attr] = value
139
+ if issubclass(PlatformConfigurationWsResultPlatform, dict):
140
+ for key, value in self.items():
141
+ result[key] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ return pprint.pformat(self.to_dict())
148
+
149
+ def __repr__(self):
150
+ """For `print` and `pprint`"""
151
+ return self.to_str()
152
+
153
+ def __eq__(self, other):
154
+ """Returns true if both objects are equal"""
155
+ if not isinstance(other, PlatformConfigurationWsResultPlatform):
156
+ return False
157
+
158
+ return self.__dict__ == other.__dict__
159
+
160
+ def __ne__(self, other):
161
+ """Returns true if both objects are not equal"""
162
+ return not self == other
@@ -0,0 +1,91 @@
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 SubstanceCheckerState(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
+ UNKNOWN = "Unknown"
28
+ TRUE = "true"
29
+ FALSE = "false"
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
+ """SubstanceCheckerState - 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(SubstanceCheckerState, 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, SubstanceCheckerState):
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,214 @@
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 SuspectUrlVersion(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
+ 'url': 'str',
32
+ 'version': 'int',
33
+ 'created': 'int',
34
+ 'computed_hash': 'HashResult',
35
+ 'stored_hash': 'HashResult'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'url': 'url',
40
+ 'version': 'version',
41
+ 'created': 'created',
42
+ 'computed_hash': 'computedHash',
43
+ 'stored_hash': 'storedHash'
44
+ }
45
+
46
+ def __init__(self, url=None, version=None, created=None, computed_hash=None, stored_hash=None): # noqa: E501
47
+ """SuspectUrlVersion - a model defined in Swagger""" # noqa: E501
48
+ self._url = None
49
+ self._version = None
50
+ self._created = None
51
+ self._computed_hash = None
52
+ self._stored_hash = None
53
+ self.discriminator = None
54
+ if url is not None:
55
+ self.url = url
56
+ if version is not None:
57
+ self.version = version
58
+ if created is not None:
59
+ self.created = created
60
+ if computed_hash is not None:
61
+ self.computed_hash = computed_hash
62
+ if stored_hash is not None:
63
+ self.stored_hash = stored_hash
64
+
65
+ @property
66
+ def url(self):
67
+ """Gets the url of this SuspectUrlVersion. # noqa: E501
68
+
69
+
70
+ :return: The url of this SuspectUrlVersion. # noqa: E501
71
+ :rtype: str
72
+ """
73
+ return self._url
74
+
75
+ @url.setter
76
+ def url(self, url):
77
+ """Sets the url of this SuspectUrlVersion.
78
+
79
+
80
+ :param url: The url of this SuspectUrlVersion. # noqa: E501
81
+ :type: str
82
+ """
83
+
84
+ self._url = url
85
+
86
+ @property
87
+ def version(self):
88
+ """Gets the version of this SuspectUrlVersion. # noqa: E501
89
+
90
+
91
+ :return: The version of this SuspectUrlVersion. # noqa: E501
92
+ :rtype: int
93
+ """
94
+ return self._version
95
+
96
+ @version.setter
97
+ def version(self, version):
98
+ """Sets the version of this SuspectUrlVersion.
99
+
100
+
101
+ :param version: The version of this SuspectUrlVersion. # noqa: E501
102
+ :type: int
103
+ """
104
+
105
+ self._version = version
106
+
107
+ @property
108
+ def created(self):
109
+ """Gets the created of this SuspectUrlVersion. # noqa: E501
110
+
111
+
112
+ :return: The created of this SuspectUrlVersion. # noqa: E501
113
+ :rtype: int
114
+ """
115
+ return self._created
116
+
117
+ @created.setter
118
+ def created(self, created):
119
+ """Sets the created of this SuspectUrlVersion.
120
+
121
+
122
+ :param created: The created of this SuspectUrlVersion. # noqa: E501
123
+ :type: int
124
+ """
125
+
126
+ self._created = created
127
+
128
+ @property
129
+ def computed_hash(self):
130
+ """Gets the computed_hash of this SuspectUrlVersion. # noqa: E501
131
+
132
+
133
+ :return: The computed_hash of this SuspectUrlVersion. # noqa: E501
134
+ :rtype: HashResult
135
+ """
136
+ return self._computed_hash
137
+
138
+ @computed_hash.setter
139
+ def computed_hash(self, computed_hash):
140
+ """Sets the computed_hash of this SuspectUrlVersion.
141
+
142
+
143
+ :param computed_hash: The computed_hash of this SuspectUrlVersion. # noqa: E501
144
+ :type: HashResult
145
+ """
146
+
147
+ self._computed_hash = computed_hash
148
+
149
+ @property
150
+ def stored_hash(self):
151
+ """Gets the stored_hash of this SuspectUrlVersion. # noqa: E501
152
+
153
+
154
+ :return: The stored_hash of this SuspectUrlVersion. # noqa: E501
155
+ :rtype: HashResult
156
+ """
157
+ return self._stored_hash
158
+
159
+ @stored_hash.setter
160
+ def stored_hash(self, stored_hash):
161
+ """Sets the stored_hash of this SuspectUrlVersion.
162
+
163
+
164
+ :param stored_hash: The stored_hash of this SuspectUrlVersion. # noqa: E501
165
+ :type: HashResult
166
+ """
167
+
168
+ self._stored_hash = stored_hash
169
+
170
+ def to_dict(self):
171
+ """Returns the model properties as a dict"""
172
+ result = {}
173
+
174
+ for attr, _ in six.iteritems(self.swagger_types):
175
+ value = getattr(self, attr)
176
+ if isinstance(value, list):
177
+ result[attr] = list(map(
178
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
179
+ value
180
+ ))
181
+ elif hasattr(value, "to_dict"):
182
+ result[attr] = value.to_dict()
183
+ elif isinstance(value, dict):
184
+ result[attr] = dict(map(
185
+ lambda item: (item[0], item[1].to_dict())
186
+ if hasattr(item[1], "to_dict") else item,
187
+ value.items()
188
+ ))
189
+ else:
190
+ result[attr] = value
191
+ if issubclass(SuspectUrlVersion, dict):
192
+ for key, value in self.items():
193
+ result[key] = value
194
+
195
+ return result
196
+
197
+ def to_str(self):
198
+ """Returns the string representation of the model"""
199
+ return pprint.pformat(self.to_dict())
200
+
201
+ def __repr__(self):
202
+ """For `print` and `pprint`"""
203
+ return self.to_str()
204
+
205
+ def __eq__(self, other):
206
+ """Returns true if both objects are equal"""
207
+ if not isinstance(other, SuspectUrlVersion):
208
+ return False
209
+
210
+ return self.__dict__ == other.__dict__
211
+
212
+ def __ne__(self, other):
213
+ """Returns true if both objects are not equal"""
214
+ return not self == other