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,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 AuidPageInfo(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
+ 'auids': 'list[str]',
32
+ 'page_info': 'PageInfo'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'auids': 'auids',
37
+ 'page_info': 'pageInfo'
38
+ }
39
+
40
+ def __init__(self, auids=None, page_info=None): # noqa: E501
41
+ """AuidPageInfo - a model defined in Swagger""" # noqa: E501
42
+ self._auids = None
43
+ self._page_info = None
44
+ self.discriminator = None
45
+ self.auids = auids
46
+ self.page_info = page_info
47
+
48
+ @property
49
+ def auids(self):
50
+ """Gets the auids of this AuidPageInfo. # noqa: E501
51
+
52
+ The Archival Unit identifiers included in the page # noqa: E501
53
+
54
+ :return: The auids of this AuidPageInfo. # noqa: E501
55
+ :rtype: list[str]
56
+ """
57
+ return self._auids
58
+
59
+ @auids.setter
60
+ def auids(self, auids):
61
+ """Sets the auids of this AuidPageInfo.
62
+
63
+ The Archival Unit identifiers included in the page # noqa: E501
64
+
65
+ :param auids: The auids of this AuidPageInfo. # noqa: E501
66
+ :type: list[str]
67
+ """
68
+ if auids is None:
69
+ raise ValueError("Invalid value for `auids`, must not be `None`") # noqa: E501
70
+
71
+ self._auids = auids
72
+
73
+ @property
74
+ def page_info(self):
75
+ """Gets the page_info of this AuidPageInfo. # noqa: E501
76
+
77
+
78
+ :return: The page_info of this AuidPageInfo. # 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 AuidPageInfo.
86
+
87
+
88
+ :param page_info: The page_info of this AuidPageInfo. # 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(AuidPageInfo, 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, AuidPageInfo):
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,164 @@
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 ErrorResult(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
+ 'message': 'str',
32
+ 'code': 'int',
33
+ 'root_cause': 'str'
34
+ }
35
+
36
+ attribute_map = {
37
+ 'message': 'message',
38
+ 'code': 'code',
39
+ 'root_cause': 'rootCause'
40
+ }
41
+
42
+ def __init__(self, message=None, code=None, root_cause=None): # noqa: E501
43
+ """ErrorResult - a model defined in Swagger""" # noqa: E501
44
+ self._message = None
45
+ self._code = None
46
+ self._root_cause = None
47
+ self.discriminator = None
48
+ self.message = message
49
+ self.code = code
50
+ if root_cause is not None:
51
+ self.root_cause = root_cause
52
+
53
+ @property
54
+ def message(self):
55
+ """Gets the message of this ErrorResult. # noqa: E501
56
+
57
+
58
+ :return: The message of this ErrorResult. # noqa: E501
59
+ :rtype: str
60
+ """
61
+ return self._message
62
+
63
+ @message.setter
64
+ def message(self, message):
65
+ """Sets the message of this ErrorResult.
66
+
67
+
68
+ :param message: The message of this ErrorResult. # noqa: E501
69
+ :type: str
70
+ """
71
+ if message is None:
72
+ raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
73
+
74
+ self._message = message
75
+
76
+ @property
77
+ def code(self):
78
+ """Gets the code of this ErrorResult. # noqa: E501
79
+
80
+
81
+ :return: The code of this ErrorResult. # noqa: E501
82
+ :rtype: int
83
+ """
84
+ return self._code
85
+
86
+ @code.setter
87
+ def code(self, code):
88
+ """Sets the code of this ErrorResult.
89
+
90
+
91
+ :param code: The code of this ErrorResult. # noqa: E501
92
+ :type: int
93
+ """
94
+ if code is None:
95
+ raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501
96
+
97
+ self._code = code
98
+
99
+ @property
100
+ def root_cause(self):
101
+ """Gets the root_cause of this ErrorResult. # noqa: E501
102
+
103
+
104
+ :return: The root_cause of this ErrorResult. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._root_cause
108
+
109
+ @root_cause.setter
110
+ def root_cause(self, root_cause):
111
+ """Sets the root_cause of this ErrorResult.
112
+
113
+
114
+ :param root_cause: The root_cause of this ErrorResult. # noqa: E501
115
+ :type: str
116
+ """
117
+
118
+ self._root_cause = root_cause
119
+
120
+ def to_dict(self):
121
+ """Returns the model properties as a dict"""
122
+ result = {}
123
+
124
+ for attr, _ in six.iteritems(self.swagger_types):
125
+ value = getattr(self, attr)
126
+ if isinstance(value, list):
127
+ result[attr] = list(map(
128
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
129
+ value
130
+ ))
131
+ elif hasattr(value, "to_dict"):
132
+ result[attr] = value.to_dict()
133
+ elif isinstance(value, dict):
134
+ result[attr] = dict(map(
135
+ lambda item: (item[0], item[1].to_dict())
136
+ if hasattr(item[1], "to_dict") else item,
137
+ value.items()
138
+ ))
139
+ else:
140
+ result[attr] = value
141
+ if issubclass(ErrorResult, dict):
142
+ for key, value in self.items():
143
+ result[key] = value
144
+
145
+ return result
146
+
147
+ def to_str(self):
148
+ """Returns the string representation of the model"""
149
+ return pprint.pformat(self.to_dict())
150
+
151
+ def __repr__(self):
152
+ """For `print` and `pprint`"""
153
+ return self.to_str()
154
+
155
+ def __eq__(self, other):
156
+ """Returns true if both objects are equal"""
157
+ if not isinstance(other, ErrorResult):
158
+ return False
159
+
160
+ return self.__dict__ == other.__dict__
161
+
162
+ def __ne__(self, other):
163
+ """Returns true if both objects are not equal"""
164
+ return not self == other
@@ -0,0 +1,298 @@
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 ImportStatus(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
+ 'warc_id': 'str',
32
+ 'offset': 'int',
33
+ 'url': 'str',
34
+ 'artifact_uuid': 'str',
35
+ 'digest': 'str',
36
+ 'version': 'int',
37
+ 'status': 'str',
38
+ 'status_message': 'str'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'warc_id': 'warcId',
43
+ 'offset': 'offset',
44
+ 'url': 'url',
45
+ 'artifact_uuid': 'artifactUuid',
46
+ 'digest': 'digest',
47
+ 'version': 'version',
48
+ 'status': 'status',
49
+ 'status_message': 'statusMessage'
50
+ }
51
+
52
+ def __init__(self, warc_id=None, offset=None, url=None, artifact_uuid=None, digest=None, version=None, status=None, status_message=None): # noqa: E501
53
+ """ImportStatus - a model defined in Swagger""" # noqa: E501
54
+ self._warc_id = None
55
+ self._offset = None
56
+ self._url = None
57
+ self._artifact_uuid = None
58
+ self._digest = None
59
+ self._version = None
60
+ self._status = None
61
+ self._status_message = None
62
+ self.discriminator = None
63
+ if warc_id is not None:
64
+ self.warc_id = warc_id
65
+ if offset is not None:
66
+ self.offset = offset
67
+ if url is not None:
68
+ self.url = url
69
+ if artifact_uuid is not None:
70
+ self.artifact_uuid = artifact_uuid
71
+ if digest is not None:
72
+ self.digest = digest
73
+ if version is not None:
74
+ self.version = version
75
+ if status is not None:
76
+ self.status = status
77
+ if status_message is not None:
78
+ self.status_message = status_message
79
+
80
+ @property
81
+ def warc_id(self):
82
+ """Gets the warc_id of this ImportStatus. # noqa: E501
83
+
84
+
85
+ :return: The warc_id of this ImportStatus. # noqa: E501
86
+ :rtype: str
87
+ """
88
+ return self._warc_id
89
+
90
+ @warc_id.setter
91
+ def warc_id(self, warc_id):
92
+ """Sets the warc_id of this ImportStatus.
93
+
94
+
95
+ :param warc_id: The warc_id of this ImportStatus. # noqa: E501
96
+ :type: str
97
+ """
98
+
99
+ self._warc_id = warc_id
100
+
101
+ @property
102
+ def offset(self):
103
+ """Gets the offset of this ImportStatus. # noqa: E501
104
+
105
+
106
+ :return: The offset of this ImportStatus. # noqa: E501
107
+ :rtype: int
108
+ """
109
+ return self._offset
110
+
111
+ @offset.setter
112
+ def offset(self, offset):
113
+ """Sets the offset of this ImportStatus.
114
+
115
+
116
+ :param offset: The offset of this ImportStatus. # noqa: E501
117
+ :type: int
118
+ """
119
+
120
+ self._offset = offset
121
+
122
+ @property
123
+ def url(self):
124
+ """Gets the url of this ImportStatus. # noqa: E501
125
+
126
+
127
+ :return: The url of this ImportStatus. # noqa: E501
128
+ :rtype: str
129
+ """
130
+ return self._url
131
+
132
+ @url.setter
133
+ def url(self, url):
134
+ """Sets the url of this ImportStatus.
135
+
136
+
137
+ :param url: The url of this ImportStatus. # noqa: E501
138
+ :type: str
139
+ """
140
+
141
+ self._url = url
142
+
143
+ @property
144
+ def artifact_uuid(self):
145
+ """Gets the artifact_uuid of this ImportStatus. # noqa: E501
146
+
147
+
148
+ :return: The artifact_uuid of this ImportStatus. # noqa: E501
149
+ :rtype: str
150
+ """
151
+ return self._artifact_uuid
152
+
153
+ @artifact_uuid.setter
154
+ def artifact_uuid(self, artifact_uuid):
155
+ """Sets the artifact_uuid of this ImportStatus.
156
+
157
+
158
+ :param artifact_uuid: The artifact_uuid of this ImportStatus. # noqa: E501
159
+ :type: str
160
+ """
161
+
162
+ self._artifact_uuid = artifact_uuid
163
+
164
+ @property
165
+ def digest(self):
166
+ """Gets the digest of this ImportStatus. # noqa: E501
167
+
168
+
169
+ :return: The digest of this ImportStatus. # noqa: E501
170
+ :rtype: str
171
+ """
172
+ return self._digest
173
+
174
+ @digest.setter
175
+ def digest(self, digest):
176
+ """Sets the digest of this ImportStatus.
177
+
178
+
179
+ :param digest: The digest of this ImportStatus. # noqa: E501
180
+ :type: str
181
+ """
182
+
183
+ self._digest = digest
184
+
185
+ @property
186
+ def version(self):
187
+ """Gets the version of this ImportStatus. # noqa: E501
188
+
189
+
190
+ :return: The version of this ImportStatus. # noqa: E501
191
+ :rtype: int
192
+ """
193
+ return self._version
194
+
195
+ @version.setter
196
+ def version(self, version):
197
+ """Sets the version of this ImportStatus.
198
+
199
+
200
+ :param version: The version of this ImportStatus. # noqa: E501
201
+ :type: int
202
+ """
203
+
204
+ self._version = version
205
+
206
+ @property
207
+ def status(self):
208
+ """Gets the status of this ImportStatus. # noqa: E501
209
+
210
+
211
+ :return: The status of this ImportStatus. # noqa: E501
212
+ :rtype: str
213
+ """
214
+ return self._status
215
+
216
+ @status.setter
217
+ def status(self, status):
218
+ """Sets the status of this ImportStatus.
219
+
220
+
221
+ :param status: The status of this ImportStatus. # noqa: E501
222
+ :type: str
223
+ """
224
+ allowed_values = ["OK", "ERROR", "DUPLICATE", "EXCLUDED"] # noqa: E501
225
+ if status not in allowed_values:
226
+ raise ValueError(
227
+ "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
228
+ .format(status, allowed_values)
229
+ )
230
+
231
+ self._status = status
232
+
233
+ @property
234
+ def status_message(self):
235
+ """Gets the status_message of this ImportStatus. # noqa: E501
236
+
237
+
238
+ :return: The status_message of this ImportStatus. # noqa: E501
239
+ :rtype: str
240
+ """
241
+ return self._status_message
242
+
243
+ @status_message.setter
244
+ def status_message(self, status_message):
245
+ """Sets the status_message of this ImportStatus.
246
+
247
+
248
+ :param status_message: The status_message of this ImportStatus. # noqa: E501
249
+ :type: str
250
+ """
251
+
252
+ self._status_message = status_message
253
+
254
+ def to_dict(self):
255
+ """Returns the model properties as a dict"""
256
+ result = {}
257
+
258
+ for attr, _ in six.iteritems(self.swagger_types):
259
+ value = getattr(self, attr)
260
+ if isinstance(value, list):
261
+ result[attr] = list(map(
262
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
263
+ value
264
+ ))
265
+ elif hasattr(value, "to_dict"):
266
+ result[attr] = value.to_dict()
267
+ elif isinstance(value, dict):
268
+ result[attr] = dict(map(
269
+ lambda item: (item[0], item[1].to_dict())
270
+ if hasattr(item[1], "to_dict") else item,
271
+ value.items()
272
+ ))
273
+ else:
274
+ result[attr] = value
275
+ if issubclass(ImportStatus, dict):
276
+ for key, value in self.items():
277
+ result[key] = value
278
+
279
+ return result
280
+
281
+ def to_str(self):
282
+ """Returns the string representation of the model"""
283
+ return pprint.pformat(self.to_dict())
284
+
285
+ def __repr__(self):
286
+ """For `print` and `pprint`"""
287
+ return self.to_str()
288
+
289
+ def __eq__(self, other):
290
+ """Returns true if both objects are equal"""
291
+ if not isinstance(other, ImportStatus):
292
+ return False
293
+
294
+ return self.__dict__ == other.__dict__
295
+
296
+ def __ne__(self, other):
297
+ """Returns true if both objects are not equal"""
298
+ return not self == other