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,345 @@
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 PluginWsResult(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
+ 'plugin_id': 'str',
32
+ 'name': 'str',
33
+ 'version': 'str',
34
+ 'type': 'str',
35
+ 'definition': 'dict(str, str)',
36
+ 'registry': 'str',
37
+ 'url': 'str',
38
+ 'au_count': 'int',
39
+ 'publishing_platform': 'str'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'plugin_id': 'pluginId',
44
+ 'name': 'name',
45
+ 'version': 'version',
46
+ 'type': 'type',
47
+ 'definition': 'definition',
48
+ 'registry': 'registry',
49
+ 'url': 'url',
50
+ 'au_count': 'auCount',
51
+ 'publishing_platform': 'publishingPlatform'
52
+ }
53
+
54
+ def __init__(self, plugin_id=None, name=None, version=None, type=None, definition=None, registry=None, url=None, au_count=None, publishing_platform=None): # noqa: E501
55
+ """PluginWsResult - a model defined in Swagger""" # noqa: E501
56
+ self._plugin_id = None
57
+ self._name = None
58
+ self._version = None
59
+ self._type = None
60
+ self._definition = None
61
+ self._registry = None
62
+ self._url = None
63
+ self._au_count = None
64
+ self._publishing_platform = None
65
+ self.discriminator = None
66
+ self.plugin_id = plugin_id
67
+ self.name = name
68
+ self.version = version
69
+ self.type = type
70
+ self.definition = definition
71
+ self.registry = registry
72
+ self.url = url
73
+ self.au_count = au_count
74
+ self.publishing_platform = publishing_platform
75
+
76
+ @property
77
+ def plugin_id(self):
78
+ """Gets the plugin_id of this PluginWsResult. # noqa: E501
79
+
80
+ The identifier of the plugin # noqa: E501
81
+
82
+ :return: The plugin_id of this PluginWsResult. # noqa: E501
83
+ :rtype: str
84
+ """
85
+ return self._plugin_id
86
+
87
+ @plugin_id.setter
88
+ def plugin_id(self, plugin_id):
89
+ """Sets the plugin_id of this PluginWsResult.
90
+
91
+ The identifier of the plugin # noqa: E501
92
+
93
+ :param plugin_id: The plugin_id of this PluginWsResult. # noqa: E501
94
+ :type: str
95
+ """
96
+ if plugin_id is None:
97
+ raise ValueError("Invalid value for `plugin_id`, must not be `None`") # noqa: E501
98
+
99
+ self._plugin_id = plugin_id
100
+
101
+ @property
102
+ def name(self):
103
+ """Gets the name of this PluginWsResult. # noqa: E501
104
+
105
+ The name of the plugin # noqa: E501
106
+
107
+ :return: The name of this PluginWsResult. # noqa: E501
108
+ :rtype: str
109
+ """
110
+ return self._name
111
+
112
+ @name.setter
113
+ def name(self, name):
114
+ """Sets the name of this PluginWsResult.
115
+
116
+ The name of the plugin # noqa: E501
117
+
118
+ :param name: The name of this PluginWsResult. # noqa: E501
119
+ :type: str
120
+ """
121
+ if name is None:
122
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
123
+
124
+ self._name = name
125
+
126
+ @property
127
+ def version(self):
128
+ """Gets the version of this PluginWsResult. # noqa: E501
129
+
130
+ The version of the plugin # noqa: E501
131
+
132
+ :return: The version of this PluginWsResult. # noqa: E501
133
+ :rtype: str
134
+ """
135
+ return self._version
136
+
137
+ @version.setter
138
+ def version(self, version):
139
+ """Sets the version of this PluginWsResult.
140
+
141
+ The version of the plugin # noqa: E501
142
+
143
+ :param version: The version of this PluginWsResult. # noqa: E501
144
+ :type: str
145
+ """
146
+ if version is None:
147
+ raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501
148
+
149
+ self._version = version
150
+
151
+ @property
152
+ def type(self):
153
+ """Gets the type of this PluginWsResult. # noqa: E501
154
+
155
+ The type of the plugin # noqa: E501
156
+
157
+ :return: The type of this PluginWsResult. # noqa: E501
158
+ :rtype: str
159
+ """
160
+ return self._type
161
+
162
+ @type.setter
163
+ def type(self, type):
164
+ """Sets the type of this PluginWsResult.
165
+
166
+ The type of the plugin # noqa: E501
167
+
168
+ :param type: The type of this PluginWsResult. # noqa: E501
169
+ :type: str
170
+ """
171
+ if type is None:
172
+ raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
173
+
174
+ self._type = type
175
+
176
+ @property
177
+ def definition(self):
178
+ """Gets the definition of this PluginWsResult. # noqa: E501
179
+
180
+ The map of plugin definition properties # noqa: E501
181
+
182
+ :return: The definition of this PluginWsResult. # noqa: E501
183
+ :rtype: dict(str, str)
184
+ """
185
+ return self._definition
186
+
187
+ @definition.setter
188
+ def definition(self, definition):
189
+ """Sets the definition of this PluginWsResult.
190
+
191
+ The map of plugin definition properties # noqa: E501
192
+
193
+ :param definition: The definition of this PluginWsResult. # noqa: E501
194
+ :type: dict(str, str)
195
+ """
196
+ if definition is None:
197
+ raise ValueError("Invalid value for `definition`, must not be `None`") # noqa: E501
198
+
199
+ self._definition = definition
200
+
201
+ @property
202
+ def registry(self):
203
+ """Gets the registry of this PluginWsResult. # noqa: E501
204
+
205
+ The registry of the plugin # noqa: E501
206
+
207
+ :return: The registry of this PluginWsResult. # noqa: E501
208
+ :rtype: str
209
+ """
210
+ return self._registry
211
+
212
+ @registry.setter
213
+ def registry(self, registry):
214
+ """Sets the registry of this PluginWsResult.
215
+
216
+ The registry of the plugin # noqa: E501
217
+
218
+ :param registry: The registry of this PluginWsResult. # noqa: E501
219
+ :type: str
220
+ """
221
+ if registry is None:
222
+ raise ValueError("Invalid value for `registry`, must not be `None`") # noqa: E501
223
+
224
+ self._registry = registry
225
+
226
+ @property
227
+ def url(self):
228
+ """Gets the url of this PluginWsResult. # noqa: E501
229
+
230
+ The URL of the plugin # noqa: E501
231
+
232
+ :return: The url of this PluginWsResult. # noqa: E501
233
+ :rtype: str
234
+ """
235
+ return self._url
236
+
237
+ @url.setter
238
+ def url(self, url):
239
+ """Sets the url of this PluginWsResult.
240
+
241
+ The URL of the plugin # noqa: E501
242
+
243
+ :param url: The url of this PluginWsResult. # noqa: E501
244
+ :type: str
245
+ """
246
+ if url is None:
247
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
248
+
249
+ self._url = url
250
+
251
+ @property
252
+ def au_count(self):
253
+ """Gets the au_count of this PluginWsResult. # noqa: E501
254
+
255
+ The count of Archival Units linked to the plugin # noqa: E501
256
+
257
+ :return: The au_count of this PluginWsResult. # noqa: E501
258
+ :rtype: int
259
+ """
260
+ return self._au_count
261
+
262
+ @au_count.setter
263
+ def au_count(self, au_count):
264
+ """Sets the au_count of this PluginWsResult.
265
+
266
+ The count of Archival Units linked to the plugin # noqa: E501
267
+
268
+ :param au_count: The au_count of this PluginWsResult. # noqa: E501
269
+ :type: int
270
+ """
271
+ if au_count is None:
272
+ raise ValueError("Invalid value for `au_count`, must not be `None`") # noqa: E501
273
+
274
+ self._au_count = au_count
275
+
276
+ @property
277
+ def publishing_platform(self):
278
+ """Gets the publishing_platform of this PluginWsResult. # noqa: E501
279
+
280
+ The publishing platform of the plugin # noqa: E501
281
+
282
+ :return: The publishing_platform of this PluginWsResult. # noqa: E501
283
+ :rtype: str
284
+ """
285
+ return self._publishing_platform
286
+
287
+ @publishing_platform.setter
288
+ def publishing_platform(self, publishing_platform):
289
+ """Sets the publishing_platform of this PluginWsResult.
290
+
291
+ The publishing platform of the plugin # noqa: E501
292
+
293
+ :param publishing_platform: The publishing_platform of this PluginWsResult. # noqa: E501
294
+ :type: str
295
+ """
296
+ if publishing_platform is None:
297
+ raise ValueError("Invalid value for `publishing_platform`, must not be `None`") # noqa: E501
298
+
299
+ self._publishing_platform = publishing_platform
300
+
301
+ def to_dict(self):
302
+ """Returns the model properties as a dict"""
303
+ result = {}
304
+
305
+ for attr, _ in six.iteritems(self.swagger_types):
306
+ value = getattr(self, attr)
307
+ if isinstance(value, list):
308
+ result[attr] = list(map(
309
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
310
+ value
311
+ ))
312
+ elif hasattr(value, "to_dict"):
313
+ result[attr] = value.to_dict()
314
+ elif isinstance(value, dict):
315
+ result[attr] = dict(map(
316
+ lambda item: (item[0], item[1].to_dict())
317
+ if hasattr(item[1], "to_dict") else item,
318
+ value.items()
319
+ ))
320
+ else:
321
+ result[attr] = value
322
+ if issubclass(PluginWsResult, dict):
323
+ for key, value in self.items():
324
+ result[key] = value
325
+
326
+ return result
327
+
328
+ def to_str(self):
329
+ """Returns the string representation of the model"""
330
+ return pprint.pformat(self.to_dict())
331
+
332
+ def __repr__(self):
333
+ """For `print` and `pprint`"""
334
+ return self.to_str()
335
+
336
+ def __eq__(self, other):
337
+ """Returns true if both objects are equal"""
338
+ if not isinstance(other, PluginWsResult):
339
+ return False
340
+
341
+ return self.__dict__ == other.__dict__
342
+
343
+ def __ne__(self, other):
344
+ """Returns true if both objects are not equal"""
345
+ return not self == other
@@ -0,0 +1,171 @@
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 RequestAuControlResult(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
+ 'id': 'str',
32
+ 'success': 'bool',
33
+ 'error_message': 'str'
34
+ }
35
+
36
+ attribute_map = {
37
+ 'id': 'id',
38
+ 'success': 'success',
39
+ 'error_message': 'errorMessage'
40
+ }
41
+
42
+ def __init__(self, id=None, success=None, error_message=None): # noqa: E501
43
+ """RequestAuControlResult - a model defined in Swagger""" # noqa: E501
44
+ self._id = None
45
+ self._success = None
46
+ self._error_message = None
47
+ self.discriminator = None
48
+ self.id = id
49
+ self.success = success
50
+ self.error_message = error_message
51
+
52
+ @property
53
+ def id(self):
54
+ """Gets the id of this RequestAuControlResult. # noqa: E501
55
+
56
+ The identifier of the archival unit # noqa: E501
57
+
58
+ :return: The id of this RequestAuControlResult. # noqa: E501
59
+ :rtype: str
60
+ """
61
+ return self._id
62
+
63
+ @id.setter
64
+ def id(self, id):
65
+ """Sets the id of this RequestAuControlResult.
66
+
67
+ The identifier of the archival unit # noqa: E501
68
+
69
+ :param id: The id of this RequestAuControlResult. # noqa: E501
70
+ :type: str
71
+ """
72
+ if id is None:
73
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
74
+
75
+ self._id = id
76
+
77
+ @property
78
+ def success(self):
79
+ """Gets the success of this RequestAuControlResult. # noqa: E501
80
+
81
+ An indication of whether the result is successful # noqa: E501
82
+
83
+ :return: The success of this RequestAuControlResult. # noqa: E501
84
+ :rtype: bool
85
+ """
86
+ return self._success
87
+
88
+ @success.setter
89
+ def success(self, success):
90
+ """Sets the success of this RequestAuControlResult.
91
+
92
+ An indication of whether the result is successful # noqa: E501
93
+
94
+ :param success: The success of this RequestAuControlResult. # noqa: E501
95
+ :type: bool
96
+ """
97
+ if success is None:
98
+ raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
99
+
100
+ self._success = success
101
+
102
+ @property
103
+ def error_message(self):
104
+ """Gets the error_message of this RequestAuControlResult. # noqa: E501
105
+
106
+ The error message as a result of the operation # noqa: E501
107
+
108
+ :return: The error_message of this RequestAuControlResult. # noqa: E501
109
+ :rtype: str
110
+ """
111
+ return self._error_message
112
+
113
+ @error_message.setter
114
+ def error_message(self, error_message):
115
+ """Sets the error_message of this RequestAuControlResult.
116
+
117
+ The error message as a result of the operation # noqa: E501
118
+
119
+ :param error_message: The error_message of this RequestAuControlResult. # noqa: E501
120
+ :type: str
121
+ """
122
+ if error_message is None:
123
+ raise ValueError("Invalid value for `error_message`, must not be `None`") # noqa: E501
124
+
125
+ self._error_message = error_message
126
+
127
+ def to_dict(self):
128
+ """Returns the model properties as a dict"""
129
+ result = {}
130
+
131
+ for attr, _ in six.iteritems(self.swagger_types):
132
+ value = getattr(self, attr)
133
+ if isinstance(value, list):
134
+ result[attr] = list(map(
135
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
136
+ value
137
+ ))
138
+ elif hasattr(value, "to_dict"):
139
+ result[attr] = value.to_dict()
140
+ elif isinstance(value, dict):
141
+ result[attr] = dict(map(
142
+ lambda item: (item[0], item[1].to_dict())
143
+ if hasattr(item[1], "to_dict") else item,
144
+ value.items()
145
+ ))
146
+ else:
147
+ result[attr] = value
148
+ if issubclass(RequestAuControlResult, dict):
149
+ for key, value in self.items():
150
+ result[key] = value
151
+
152
+ return result
153
+
154
+ def to_str(self):
155
+ """Returns the string representation of the model"""
156
+ return pprint.pformat(self.to_dict())
157
+
158
+ def __repr__(self):
159
+ """For `print` and `pprint`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, RequestAuControlResult):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ return not self == other