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,228 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Metadata Service REST API
5
+
6
+ REST API of the LOCKSS Metadata 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 PageInfo(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
+ 'total_count': 'int',
32
+ 'results_per_page': 'int',
33
+ 'continuation_token': 'str',
34
+ 'cur_link': 'str',
35
+ 'next_link': 'str'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'total_count': 'totalCount',
40
+ 'results_per_page': 'resultsPerPage',
41
+ 'continuation_token': 'continuationToken',
42
+ 'cur_link': 'curLink',
43
+ 'next_link': 'nextLink'
44
+ }
45
+
46
+ def __init__(self, total_count=None, results_per_page=None, continuation_token=None, cur_link=None, next_link=None): # noqa: E501
47
+ """PageInfo - a model defined in Swagger""" # noqa: E501
48
+ self._total_count = None
49
+ self._results_per_page = None
50
+ self._continuation_token = None
51
+ self._cur_link = None
52
+ self._next_link = None
53
+ self.discriminator = None
54
+ self.total_count = total_count
55
+ self.results_per_page = results_per_page
56
+ self.continuation_token = continuation_token
57
+ self.cur_link = cur_link
58
+ if next_link is not None:
59
+ self.next_link = next_link
60
+
61
+ @property
62
+ def total_count(self):
63
+ """Gets the total_count of this PageInfo. # noqa: E501
64
+
65
+ The total number of elements to be paginated # noqa: E501
66
+
67
+ :return: The total_count of this PageInfo. # noqa: E501
68
+ :rtype: int
69
+ """
70
+ return self._total_count
71
+
72
+ @total_count.setter
73
+ def total_count(self, total_count):
74
+ """Sets the total_count of this PageInfo.
75
+
76
+ The total number of elements to be paginated # noqa: E501
77
+
78
+ :param total_count: The total_count of this PageInfo. # noqa: E501
79
+ :type: int
80
+ """
81
+ if total_count is None:
82
+ raise ValueError("Invalid value for `total_count`, must not be `None`") # noqa: E501
83
+
84
+ self._total_count = total_count
85
+
86
+ @property
87
+ def results_per_page(self):
88
+ """Gets the results_per_page of this PageInfo. # noqa: E501
89
+
90
+ The number of results per page # noqa: E501
91
+
92
+ :return: The results_per_page of this PageInfo. # noqa: E501
93
+ :rtype: int
94
+ """
95
+ return self._results_per_page
96
+
97
+ @results_per_page.setter
98
+ def results_per_page(self, results_per_page):
99
+ """Sets the results_per_page of this PageInfo.
100
+
101
+ The number of results per page # noqa: E501
102
+
103
+ :param results_per_page: The results_per_page of this PageInfo. # noqa: E501
104
+ :type: int
105
+ """
106
+ if results_per_page is None:
107
+ raise ValueError("Invalid value for `results_per_page`, must not be `None`") # noqa: E501
108
+
109
+ self._results_per_page = results_per_page
110
+
111
+ @property
112
+ def continuation_token(self):
113
+ """Gets the continuation_token of this PageInfo. # noqa: E501
114
+
115
+ The continuation token # noqa: E501
116
+
117
+ :return: The continuation_token of this PageInfo. # noqa: E501
118
+ :rtype: str
119
+ """
120
+ return self._continuation_token
121
+
122
+ @continuation_token.setter
123
+ def continuation_token(self, continuation_token):
124
+ """Sets the continuation_token of this PageInfo.
125
+
126
+ The continuation token # noqa: E501
127
+
128
+ :param continuation_token: The continuation_token of this PageInfo. # noqa: E501
129
+ :type: str
130
+ """
131
+ if continuation_token is None:
132
+ raise ValueError("Invalid value for `continuation_token`, must not be `None`") # noqa: E501
133
+
134
+ self._continuation_token = continuation_token
135
+
136
+ @property
137
+ def cur_link(self):
138
+ """Gets the cur_link of this PageInfo. # noqa: E501
139
+
140
+ The link to the current page # noqa: E501
141
+
142
+ :return: The cur_link of this PageInfo. # noqa: E501
143
+ :rtype: str
144
+ """
145
+ return self._cur_link
146
+
147
+ @cur_link.setter
148
+ def cur_link(self, cur_link):
149
+ """Sets the cur_link of this PageInfo.
150
+
151
+ The link to the current page # noqa: E501
152
+
153
+ :param cur_link: The cur_link of this PageInfo. # noqa: E501
154
+ :type: str
155
+ """
156
+ if cur_link is None:
157
+ raise ValueError("Invalid value for `cur_link`, must not be `None`") # noqa: E501
158
+
159
+ self._cur_link = cur_link
160
+
161
+ @property
162
+ def next_link(self):
163
+ """Gets the next_link of this PageInfo. # noqa: E501
164
+
165
+ The link to the next page # noqa: E501
166
+
167
+ :return: The next_link of this PageInfo. # noqa: E501
168
+ :rtype: str
169
+ """
170
+ return self._next_link
171
+
172
+ @next_link.setter
173
+ def next_link(self, next_link):
174
+ """Sets the next_link of this PageInfo.
175
+
176
+ The link to the next page # noqa: E501
177
+
178
+ :param next_link: The next_link of this PageInfo. # noqa: E501
179
+ :type: str
180
+ """
181
+
182
+ self._next_link = next_link
183
+
184
+ def to_dict(self):
185
+ """Returns the model properties as a dict"""
186
+ result = {}
187
+
188
+ for attr, _ in six.iteritems(self.swagger_types):
189
+ value = getattr(self, attr)
190
+ if isinstance(value, list):
191
+ result[attr] = list(map(
192
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
193
+ value
194
+ ))
195
+ elif hasattr(value, "to_dict"):
196
+ result[attr] = value.to_dict()
197
+ elif isinstance(value, dict):
198
+ result[attr] = dict(map(
199
+ lambda item: (item[0], item[1].to_dict())
200
+ if hasattr(item[1], "to_dict") else item,
201
+ value.items()
202
+ ))
203
+ else:
204
+ result[attr] = value
205
+ if issubclass(PageInfo, dict):
206
+ for key, value in self.items():
207
+ result[key] = value
208
+
209
+ return result
210
+
211
+ def to_str(self):
212
+ """Returns the string representation of the model"""
213
+ return pprint.pformat(self.to_dict())
214
+
215
+ def __repr__(self):
216
+ """For `print` and `pprint`"""
217
+ return self.to_str()
218
+
219
+ def __eq__(self, other):
220
+ """Returns true if both objects are equal"""
221
+ if not isinstance(other, PageInfo):
222
+ return False
223
+
224
+ return self.__dict__ == other.__dict__
225
+
226
+ def __ne__(self, other):
227
+ """Returns true if both objects are not equal"""
228
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Metadata Service REST API
5
+
6
+ REST API of the LOCKSS Metadata 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 Status(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
+ 'code': 'int',
32
+ 'msg': 'str'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'code': 'code',
37
+ 'msg': 'msg'
38
+ }
39
+
40
+ def __init__(self, code=None, msg=None): # noqa: E501
41
+ """Status - a model defined in Swagger""" # noqa: E501
42
+ self._code = None
43
+ self._msg = None
44
+ self.discriminator = None
45
+ self.code = code
46
+ self.msg = msg
47
+
48
+ @property
49
+ def code(self):
50
+ """Gets the code of this Status. # noqa: E501
51
+
52
+ The numeric value for the current state # noqa: E501
53
+
54
+ :return: The code of this Status. # noqa: E501
55
+ :rtype: int
56
+ """
57
+ return self._code
58
+
59
+ @code.setter
60
+ def code(self, code):
61
+ """Sets the code of this Status.
62
+
63
+ The numeric value for the current state # noqa: E501
64
+
65
+ :param code: The code of this Status. # noqa: E501
66
+ :type: int
67
+ """
68
+ if code is None:
69
+ raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501
70
+
71
+ self._code = code
72
+
73
+ @property
74
+ def msg(self):
75
+ """Gets the msg of this Status. # noqa: E501
76
+
77
+ A text message defining the current state # noqa: E501
78
+
79
+ :return: The msg of this Status. # noqa: E501
80
+ :rtype: str
81
+ """
82
+ return self._msg
83
+
84
+ @msg.setter
85
+ def msg(self, msg):
86
+ """Sets the msg of this Status.
87
+
88
+ A text message defining the current state # noqa: E501
89
+
90
+ :param msg: The msg of this Status. # noqa: E501
91
+ :type: str
92
+ """
93
+ if msg is None:
94
+ raise ValueError("Invalid value for `msg`, must not be `None`") # noqa: E501
95
+
96
+ self._msg = msg
97
+
98
+ def to_dict(self):
99
+ """Returns the model properties as a dict"""
100
+ result = {}
101
+
102
+ for attr, _ in six.iteritems(self.swagger_types):
103
+ value = getattr(self, attr)
104
+ if isinstance(value, list):
105
+ result[attr] = list(map(
106
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
107
+ value
108
+ ))
109
+ elif hasattr(value, "to_dict"):
110
+ result[attr] = value.to_dict()
111
+ elif isinstance(value, dict):
112
+ result[attr] = dict(map(
113
+ lambda item: (item[0], item[1].to_dict())
114
+ if hasattr(item[1], "to_dict") else item,
115
+ value.items()
116
+ ))
117
+ else:
118
+ result[attr] = value
119
+ if issubclass(Status, dict):
120
+ for key, value in self.items():
121
+ result[key] = value
122
+
123
+ return result
124
+
125
+ def to_str(self):
126
+ """Returns the string representation of the model"""
127
+ return pprint.pformat(self.to_dict())
128
+
129
+ def __repr__(self):
130
+ """For `print` and `pprint`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, Status):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LOCKSS Metadata Service REST API
5
+
6
+ REST API of the LOCKSS Metadata 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 UrlInfo(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
+ 'params': 'dict(str, str)',
32
+ 'urls': 'list[str]'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'params': 'params',
37
+ 'urls': 'urls'
38
+ }
39
+
40
+ def __init__(self, params=None, urls=None): # noqa: E501
41
+ """UrlInfo - a model defined in Swagger""" # noqa: E501
42
+ self._params = None
43
+ self._urls = None
44
+ self.discriminator = None
45
+ self.params = params
46
+ self.urls = urls
47
+
48
+ @property
49
+ def params(self):
50
+ """Gets the params of this UrlInfo. # noqa: E501
51
+
52
+ The parameters that define the resulting URLs # noqa: E501
53
+
54
+ :return: The params of this UrlInfo. # noqa: E501
55
+ :rtype: dict(str, str)
56
+ """
57
+ return self._params
58
+
59
+ @params.setter
60
+ def params(self, params):
61
+ """Sets the params of this UrlInfo.
62
+
63
+ The parameters that define the resulting URLs # noqa: E501
64
+
65
+ :param params: The params of this UrlInfo. # noqa: E501
66
+ :type: dict(str, str)
67
+ """
68
+ if params is None:
69
+ raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501
70
+
71
+ self._params = params
72
+
73
+ @property
74
+ def urls(self):
75
+ """Gets the urls of this UrlInfo. # noqa: E501
76
+
77
+ The URLs # noqa: E501
78
+
79
+ :return: The urls of this UrlInfo. # noqa: E501
80
+ :rtype: list[str]
81
+ """
82
+ return self._urls
83
+
84
+ @urls.setter
85
+ def urls(self, urls):
86
+ """Sets the urls of this UrlInfo.
87
+
88
+ The URLs # noqa: E501
89
+
90
+ :param urls: The urls of this UrlInfo. # noqa: E501
91
+ :type: list[str]
92
+ """
93
+ if urls is None:
94
+ raise ValueError("Invalid value for `urls`, must not be `None`") # noqa: E501
95
+
96
+ self._urls = urls
97
+
98
+ def to_dict(self):
99
+ """Returns the model properties as a dict"""
100
+ result = {}
101
+
102
+ for attr, _ in six.iteritems(self.swagger_types):
103
+ value = getattr(self, attr)
104
+ if isinstance(value, list):
105
+ result[attr] = list(map(
106
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
107
+ value
108
+ ))
109
+ elif hasattr(value, "to_dict"):
110
+ result[attr] = value.to_dict()
111
+ elif isinstance(value, dict):
112
+ result[attr] = dict(map(
113
+ lambda item: (item[0], item[1].to_dict())
114
+ if hasattr(item[1], "to_dict") else item,
115
+ value.items()
116
+ ))
117
+ else:
118
+ result[attr] = value
119
+ if issubclass(UrlInfo, dict):
120
+ for key, value in self.items():
121
+ result[key] = value
122
+
123
+ return result
124
+
125
+ def to_str(self):
126
+ """Returns the string representation of the model"""
127
+ return pprint.pformat(self.to_dict())
128
+
129
+ def __repr__(self):
130
+ """For `print` and `pprint`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, UrlInfo):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other