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,2195 @@
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
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from lockss.pyclient.config.api_client import ApiClient
21
+
22
+
23
+ class AusApi(object):
24
+ """NOTE: This class is auto generated by the swagger code generator program.
25
+
26
+ Do not edit the class manually.
27
+ Ref: https://github.com/swagger-api/swagger-codegen
28
+ """
29
+
30
+ def __init__(self, api_client=None):
31
+ if api_client is None:
32
+ api_client = ApiClient()
33
+ self.api_client = api_client
34
+
35
+ def calculate_auid(self, **kwargs): # noqa: E501
36
+ """Calculate an AUID for a hypothetical AU # noqa: E501
37
+
38
+ Calculate an AUID for a hypothetical AU, given either a plugin ID and an auConfig map (for traditional AUs), or a handle and an optional plugin ID for NamedAUs # noqa: E501
39
+ This method makes a synchronous HTTP request by default. To make an
40
+ asynchronous HTTP request, please pass async_req=True
41
+ >>> thread = api.calculate_auid(async_req=True)
42
+ >>> result = thread.get()
43
+
44
+ :param async_req bool
45
+ :param str plugin_id:
46
+ :param str handle:
47
+ :param object au_config:
48
+ :return: str
49
+ If the method is called asynchronously,
50
+ returns the request thread.
51
+ """
52
+ kwargs['_return_http_data_only'] = True
53
+ if kwargs.get('async_req'):
54
+ return self.calculate_auid_with_http_info(**kwargs) # noqa: E501
55
+ else:
56
+ (data) = self.calculate_auid_with_http_info(**kwargs) # noqa: E501
57
+ return data
58
+
59
+ def calculate_auid_with_http_info(self, **kwargs): # noqa: E501
60
+ """Calculate an AUID for a hypothetical AU # noqa: E501
61
+
62
+ Calculate an AUID for a hypothetical AU, given either a plugin ID and an auConfig map (for traditional AUs), or a handle and an optional plugin ID for NamedAUs # noqa: E501
63
+ This method makes a synchronous HTTP request by default. To make an
64
+ asynchronous HTTP request, please pass async_req=True
65
+ >>> thread = api.calculate_auid_with_http_info(async_req=True)
66
+ >>> result = thread.get()
67
+
68
+ :param async_req bool
69
+ :param str plugin_id:
70
+ :param str handle:
71
+ :param object au_config:
72
+ :return: str
73
+ If the method is called asynchronously,
74
+ returns the request thread.
75
+ """
76
+
77
+ all_params = ['plugin_id', 'handle', 'au_config'] # noqa: E501
78
+ all_params.append('async_req')
79
+ all_params.append('_return_http_data_only')
80
+ all_params.append('_preload_content')
81
+ all_params.append('_request_timeout')
82
+
83
+ params = locals()
84
+ for key, val in six.iteritems(params['kwargs']):
85
+ if key not in all_params:
86
+ raise TypeError(
87
+ "Got an unexpected keyword argument '%s'"
88
+ " to method calculate_auid" % key
89
+ )
90
+ params[key] = val
91
+ del params['kwargs']
92
+
93
+ collection_formats = {}
94
+
95
+ path_params = {}
96
+
97
+ query_params = []
98
+
99
+ header_params = {}
100
+
101
+ form_params = []
102
+ local_var_files = {}
103
+ if 'plugin_id' in params:
104
+ form_params.append(('pluginId', params['plugin_id'])) # noqa: E501
105
+ if 'handle' in params:
106
+ form_params.append(('handle', params['handle'])) # noqa: E501
107
+ if 'au_config' in params:
108
+ form_params.append(('auConfig', params['au_config'])) # noqa: E501
109
+
110
+ body_params = None
111
+ # HTTP header `Accept`
112
+ header_params['Accept'] = self.api_client.select_header_accept(
113
+ ['application/json', 'text/plain']) # noqa: E501
114
+
115
+ # HTTP header `Content-Type`
116
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
117
+ ['application/x-www-form-urlencoded']) # noqa: E501
118
+
119
+ # Authentication setting
120
+ auth_settings = ['basicAuth'] # noqa: E501
121
+
122
+ return self.api_client.call_api(
123
+ '/auids', 'POST',
124
+ path_params,
125
+ query_params,
126
+ header_params,
127
+ body=body_params,
128
+ post_params=form_params,
129
+ files=local_var_files,
130
+ response_type='str', # noqa: E501
131
+ auth_settings=auth_settings,
132
+ async_req=params.get('async_req'),
133
+ _return_http_data_only=params.get('_return_http_data_only'),
134
+ _preload_content=params.get('_preload_content', True),
135
+ _request_timeout=params.get('_request_timeout'),
136
+ collection_formats=collection_formats)
137
+
138
+ def delete_au_config(self, auid, **kwargs): # noqa: E501
139
+ """Delete the configuration of an AU # noqa: E501
140
+
141
+ Delete the configuration of an AU given the AU identifier # noqa: E501
142
+ This method makes a synchronous HTTP request by default. To make an
143
+ asynchronous HTTP request, please pass async_req=True
144
+ >>> thread = api.delete_au_config(auid, async_req=True)
145
+ >>> result = thread.get()
146
+
147
+ :param async_req bool
148
+ :param str auid: The identifier of the AU for which the configuration is\\ \\ to be deleted (required)
149
+ :return: AuConfiguration
150
+ If the method is called asynchronously,
151
+ returns the request thread.
152
+ """
153
+ kwargs['_return_http_data_only'] = True
154
+ if kwargs.get('async_req'):
155
+ return self.delete_au_config_with_http_info(auid, **kwargs) # noqa: E501
156
+ else:
157
+ (data) = self.delete_au_config_with_http_info(auid, **kwargs) # noqa: E501
158
+ return data
159
+
160
+ def delete_au_config_with_http_info(self, auid, **kwargs): # noqa: E501
161
+ """Delete the configuration of an AU # noqa: E501
162
+
163
+ Delete the configuration of an AU given the AU identifier # noqa: E501
164
+ This method makes a synchronous HTTP request by default. To make an
165
+ asynchronous HTTP request, please pass async_req=True
166
+ >>> thread = api.delete_au_config_with_http_info(auid, async_req=True)
167
+ >>> result = thread.get()
168
+
169
+ :param async_req bool
170
+ :param str auid: The identifier of the AU for which the configuration is\\ \\ to be deleted (required)
171
+ :return: AuConfiguration
172
+ If the method is called asynchronously,
173
+ returns the request thread.
174
+ """
175
+
176
+ all_params = ['auid'] # noqa: E501
177
+ all_params.append('async_req')
178
+ all_params.append('_return_http_data_only')
179
+ all_params.append('_preload_content')
180
+ all_params.append('_request_timeout')
181
+
182
+ params = locals()
183
+ for key, val in six.iteritems(params['kwargs']):
184
+ if key not in all_params:
185
+ raise TypeError(
186
+ "Got an unexpected keyword argument '%s'"
187
+ " to method delete_au_config" % key
188
+ )
189
+ params[key] = val
190
+ del params['kwargs']
191
+ # verify the required parameter 'auid' is set
192
+ if ('auid' not in params or
193
+ params['auid'] is None):
194
+ raise ValueError("Missing the required parameter `auid` when calling `delete_au_config`") # noqa: E501
195
+
196
+ collection_formats = {}
197
+
198
+ path_params = {}
199
+ if 'auid' in params:
200
+ path_params['auid'] = params['auid'] # noqa: E501
201
+
202
+ query_params = []
203
+
204
+ header_params = {}
205
+
206
+ form_params = []
207
+ local_var_files = {}
208
+
209
+ body_params = None
210
+ # HTTP header `Accept`
211
+ header_params['Accept'] = self.api_client.select_header_accept(
212
+ ['application/json']) # noqa: E501
213
+
214
+ # Authentication setting
215
+ auth_settings = ['basicAuth'] # noqa: E501
216
+
217
+ return self.api_client.call_api(
218
+ '/aus/{auid}', 'DELETE',
219
+ path_params,
220
+ query_params,
221
+ header_params,
222
+ body=body_params,
223
+ post_params=form_params,
224
+ files=local_var_files,
225
+ response_type='AuConfiguration', # noqa: E501
226
+ auth_settings=auth_settings,
227
+ async_req=params.get('async_req'),
228
+ _return_http_data_only=params.get('_return_http_data_only'),
229
+ _preload_content=params.get('_preload_content', True),
230
+ _request_timeout=params.get('_request_timeout'),
231
+ collection_formats=collection_formats)
232
+
233
+ def delete_aus_delete(self, body, **kwargs): # noqa: E501
234
+ """Delete AUs # noqa: E501
235
+
236
+ Delete a group of AUs given their identifiers # noqa: E501
237
+ This method makes a synchronous HTTP request by default. To make an
238
+ asynchronous HTTP request, please pass async_req=True
239
+ >>> thread = api.delete_aus_delete(body, async_req=True)
240
+ >>> result = thread.get()
241
+
242
+ :param async_req bool
243
+ :param list[str] body: The identifiers of the Archival Units to be deleted (required)
244
+ :return: list[ContentConfigurationResult]
245
+ If the method is called asynchronously,
246
+ returns the request thread.
247
+ """
248
+ kwargs['_return_http_data_only'] = True
249
+ if kwargs.get('async_req'):
250
+ return self.delete_aus_delete_with_http_info(body, **kwargs) # noqa: E501
251
+ else:
252
+ (data) = self.delete_aus_delete_with_http_info(body, **kwargs) # noqa: E501
253
+ return data
254
+
255
+ def delete_aus_delete_with_http_info(self, body, **kwargs): # noqa: E501
256
+ """Delete AUs # noqa: E501
257
+
258
+ Delete a group of AUs given their identifiers # noqa: E501
259
+ This method makes a synchronous HTTP request by default. To make an
260
+ asynchronous HTTP request, please pass async_req=True
261
+ >>> thread = api.delete_aus_delete_with_http_info(body, async_req=True)
262
+ >>> result = thread.get()
263
+
264
+ :param async_req bool
265
+ :param list[str] body: The identifiers of the Archival Units to be deleted (required)
266
+ :return: list[ContentConfigurationResult]
267
+ If the method is called asynchronously,
268
+ returns the request thread.
269
+ """
270
+
271
+ all_params = ['body'] # noqa: E501
272
+ all_params.append('async_req')
273
+ all_params.append('_return_http_data_only')
274
+ all_params.append('_preload_content')
275
+ all_params.append('_request_timeout')
276
+
277
+ params = locals()
278
+ for key, val in six.iteritems(params['kwargs']):
279
+ if key not in all_params:
280
+ raise TypeError(
281
+ "Got an unexpected keyword argument '%s'"
282
+ " to method delete_aus_delete" % key
283
+ )
284
+ params[key] = val
285
+ del params['kwargs']
286
+ # verify the required parameter 'body' is set
287
+ if ('body' not in params or
288
+ params['body'] is None):
289
+ raise ValueError("Missing the required parameter `body` when calling `delete_aus_delete`") # noqa: E501
290
+
291
+ collection_formats = {}
292
+
293
+ path_params = {}
294
+
295
+ query_params = []
296
+
297
+ header_params = {}
298
+
299
+ form_params = []
300
+ local_var_files = {}
301
+
302
+ body_params = None
303
+ if 'body' in params:
304
+ body_params = params['body']
305
+ # HTTP header `Accept`
306
+ header_params['Accept'] = self.api_client.select_header_accept(
307
+ ['application/json']) # noqa: E501
308
+
309
+ # HTTP header `Content-Type`
310
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
311
+ ['application/json']) # noqa: E501
312
+
313
+ # Authentication setting
314
+ auth_settings = ['basicAuth'] # noqa: E501
315
+
316
+ return self.api_client.call_api(
317
+ '/ws/aus/delete', 'DELETE',
318
+ path_params,
319
+ query_params,
320
+ header_params,
321
+ body=body_params,
322
+ post_params=form_params,
323
+ files=local_var_files,
324
+ response_type='list[ContentConfigurationResult]', # noqa: E501
325
+ auth_settings=auth_settings,
326
+ async_req=params.get('async_req'),
327
+ _return_http_data_only=params.get('_return_http_data_only'),
328
+ _preload_content=params.get('_preload_content', True),
329
+ _request_timeout=params.get('_request_timeout'),
330
+ collection_formats=collection_formats)
331
+
332
+ def get_all_au_config(self, **kwargs): # noqa: E501
333
+ """Get the configurations of all AUs # noqa: E501
334
+
335
+ Get the configuration of all AUs # noqa: E501
336
+ This method makes a synchronous HTTP request by default. To make an
337
+ asynchronous HTTP request, please pass async_req=True
338
+ >>> thread = api.get_all_au_config(async_req=True)
339
+ >>> result = thread.get()
340
+
341
+ :param async_req bool
342
+ :return: list[AuConfiguration]
343
+ If the method is called asynchronously,
344
+ returns the request thread.
345
+ """
346
+ kwargs['_return_http_data_only'] = True
347
+ if kwargs.get('async_req'):
348
+ return self.get_all_au_config_with_http_info(**kwargs) # noqa: E501
349
+ else:
350
+ (data) = self.get_all_au_config_with_http_info(**kwargs) # noqa: E501
351
+ return data
352
+
353
+ def get_all_au_config_with_http_info(self, **kwargs): # noqa: E501
354
+ """Get the configurations of all AUs # noqa: E501
355
+
356
+ Get the configuration of all AUs # noqa: E501
357
+ This method makes a synchronous HTTP request by default. To make an
358
+ asynchronous HTTP request, please pass async_req=True
359
+ >>> thread = api.get_all_au_config_with_http_info(async_req=True)
360
+ >>> result = thread.get()
361
+
362
+ :param async_req bool
363
+ :return: list[AuConfiguration]
364
+ If the method is called asynchronously,
365
+ returns the request thread.
366
+ """
367
+
368
+ all_params = [] # noqa: E501
369
+ all_params.append('async_req')
370
+ all_params.append('_return_http_data_only')
371
+ all_params.append('_preload_content')
372
+ all_params.append('_request_timeout')
373
+
374
+ params = locals()
375
+ for key, val in six.iteritems(params['kwargs']):
376
+ if key not in all_params:
377
+ raise TypeError(
378
+ "Got an unexpected keyword argument '%s'"
379
+ " to method get_all_au_config" % key
380
+ )
381
+ params[key] = val
382
+ del params['kwargs']
383
+
384
+ collection_formats = {}
385
+
386
+ path_params = {}
387
+
388
+ query_params = []
389
+
390
+ header_params = {}
391
+
392
+ form_params = []
393
+ local_var_files = {}
394
+
395
+ body_params = None
396
+ # HTTP header `Accept`
397
+ header_params['Accept'] = self.api_client.select_header_accept(
398
+ ['application/json']) # noqa: E501
399
+
400
+ # Authentication setting
401
+ auth_settings = ['basicAuth'] # noqa: E501
402
+
403
+ return self.api_client.call_api(
404
+ '/aus', 'GET',
405
+ path_params,
406
+ query_params,
407
+ header_params,
408
+ body=body_params,
409
+ post_params=form_params,
410
+ files=local_var_files,
411
+ response_type='list[AuConfiguration]', # noqa: E501
412
+ auth_settings=auth_settings,
413
+ async_req=params.get('async_req'),
414
+ _return_http_data_only=params.get('_return_http_data_only'),
415
+ _preload_content=params.get('_preload_content', True),
416
+ _request_timeout=params.get('_request_timeout'),
417
+ collection_formats=collection_formats)
418
+
419
+ def get_au_agreements(self, auid, **kwargs): # noqa: E501
420
+ """Get the poll agreements of an AU # noqa: E501
421
+
422
+ Get the poll agreements of an AU given the AU identifier # noqa: E501
423
+ This method makes a synchronous HTTP request by default. To make an
424
+ asynchronous HTTP request, please pass async_req=True
425
+ >>> thread = api.get_au_agreements(auid, async_req=True)
426
+ >>> result = thread.get()
427
+
428
+ :param async_req bool
429
+ :param str auid: The identifier of the AU for which the poll agreements are requested (required)
430
+ :return: str
431
+ If the method is called asynchronously,
432
+ returns the request thread.
433
+ """
434
+ kwargs['_return_http_data_only'] = True
435
+ if kwargs.get('async_req'):
436
+ return self.get_au_agreements_with_http_info(auid, **kwargs) # noqa: E501
437
+ else:
438
+ (data) = self.get_au_agreements_with_http_info(auid, **kwargs) # noqa: E501
439
+ return data
440
+
441
+ def get_au_agreements_with_http_info(self, auid, **kwargs): # noqa: E501
442
+ """Get the poll agreements of an AU # noqa: E501
443
+
444
+ Get the poll agreements of an AU given the AU identifier # noqa: E501
445
+ This method makes a synchronous HTTP request by default. To make an
446
+ asynchronous HTTP request, please pass async_req=True
447
+ >>> thread = api.get_au_agreements_with_http_info(auid, async_req=True)
448
+ >>> result = thread.get()
449
+
450
+ :param async_req bool
451
+ :param str auid: The identifier of the AU for which the poll agreements are requested (required)
452
+ :return: str
453
+ If the method is called asynchronously,
454
+ returns the request thread.
455
+ """
456
+
457
+ all_params = ['auid'] # noqa: E501
458
+ all_params.append('async_req')
459
+ all_params.append('_return_http_data_only')
460
+ all_params.append('_preload_content')
461
+ all_params.append('_request_timeout')
462
+
463
+ params = locals()
464
+ for key, val in six.iteritems(params['kwargs']):
465
+ if key not in all_params:
466
+ raise TypeError(
467
+ "Got an unexpected keyword argument '%s'"
468
+ " to method get_au_agreements" % key
469
+ )
470
+ params[key] = val
471
+ del params['kwargs']
472
+ # verify the required parameter 'auid' is set
473
+ if ('auid' not in params or
474
+ params['auid'] is None):
475
+ raise ValueError("Missing the required parameter `auid` when calling `get_au_agreements`") # noqa: E501
476
+
477
+ collection_formats = {}
478
+
479
+ path_params = {}
480
+ if 'auid' in params:
481
+ path_params['auid'] = params['auid'] # noqa: E501
482
+
483
+ query_params = []
484
+
485
+ header_params = {}
486
+
487
+ form_params = []
488
+ local_var_files = {}
489
+
490
+ body_params = None
491
+ # HTTP header `Accept`
492
+ header_params['Accept'] = self.api_client.select_header_accept(
493
+ ['application/json']) # noqa: E501
494
+
495
+ # Authentication setting
496
+ auth_settings = ['basicAuth'] # noqa: E501
497
+
498
+ return self.api_client.call_api(
499
+ '/auagreements/{auid}', 'GET',
500
+ path_params,
501
+ query_params,
502
+ header_params,
503
+ body=body_params,
504
+ post_params=form_params,
505
+ files=local_var_files,
506
+ response_type='str', # noqa: E501
507
+ auth_settings=auth_settings,
508
+ async_req=params.get('async_req'),
509
+ _return_http_data_only=params.get('_return_http_data_only'),
510
+ _preload_content=params.get('_preload_content', True),
511
+ _request_timeout=params.get('_request_timeout'),
512
+ collection_formats=collection_formats)
513
+
514
+ def get_au_config(self, auid, **kwargs): # noqa: E501
515
+ """Get the configuration of an AU # noqa: E501
516
+
517
+ Get the configuration of an AU given the AU identifier # noqa: E501
518
+ This method makes a synchronous HTTP request by default. To make an
519
+ asynchronous HTTP request, please pass async_req=True
520
+ >>> thread = api.get_au_config(auid, async_req=True)
521
+ >>> result = thread.get()
522
+
523
+ :param async_req bool
524
+ :param str auid: The identifier of the AU for which the configuration is\\ \\ requested (required)
525
+ :return: AuConfiguration
526
+ If the method is called asynchronously,
527
+ returns the request thread.
528
+ """
529
+ kwargs['_return_http_data_only'] = True
530
+ if kwargs.get('async_req'):
531
+ return self.get_au_config_with_http_info(auid, **kwargs) # noqa: E501
532
+ else:
533
+ (data) = self.get_au_config_with_http_info(auid, **kwargs) # noqa: E501
534
+ return data
535
+
536
+ def get_au_config_with_http_info(self, auid, **kwargs): # noqa: E501
537
+ """Get the configuration of an AU # noqa: E501
538
+
539
+ Get the configuration of an AU given the AU identifier # noqa: E501
540
+ This method makes a synchronous HTTP request by default. To make an
541
+ asynchronous HTTP request, please pass async_req=True
542
+ >>> thread = api.get_au_config_with_http_info(auid, async_req=True)
543
+ >>> result = thread.get()
544
+
545
+ :param async_req bool
546
+ :param str auid: The identifier of the AU for which the configuration is\\ \\ requested (required)
547
+ :return: AuConfiguration
548
+ If the method is called asynchronously,
549
+ returns the request thread.
550
+ """
551
+
552
+ all_params = ['auid'] # noqa: E501
553
+ all_params.append('async_req')
554
+ all_params.append('_return_http_data_only')
555
+ all_params.append('_preload_content')
556
+ all_params.append('_request_timeout')
557
+
558
+ params = locals()
559
+ for key, val in six.iteritems(params['kwargs']):
560
+ if key not in all_params:
561
+ raise TypeError(
562
+ "Got an unexpected keyword argument '%s'"
563
+ " to method get_au_config" % key
564
+ )
565
+ params[key] = val
566
+ del params['kwargs']
567
+ # verify the required parameter 'auid' is set
568
+ if ('auid' not in params or
569
+ params['auid'] is None):
570
+ raise ValueError("Missing the required parameter `auid` when calling `get_au_config`") # noqa: E501
571
+
572
+ collection_formats = {}
573
+
574
+ path_params = {}
575
+ if 'auid' in params:
576
+ path_params['auid'] = params['auid'] # noqa: E501
577
+
578
+ query_params = []
579
+
580
+ header_params = {}
581
+
582
+ form_params = []
583
+ local_var_files = {}
584
+
585
+ body_params = None
586
+ # HTTP header `Accept`
587
+ header_params['Accept'] = self.api_client.select_header_accept(
588
+ ['application/json']) # noqa: E501
589
+
590
+ # Authentication setting
591
+ auth_settings = ['basicAuth'] # noqa: E501
592
+
593
+ return self.api_client.call_api(
594
+ '/aus/{auid}', 'GET',
595
+ path_params,
596
+ query_params,
597
+ header_params,
598
+ body=body_params,
599
+ post_params=form_params,
600
+ files=local_var_files,
601
+ response_type='AuConfiguration', # noqa: E501
602
+ auth_settings=auth_settings,
603
+ async_req=params.get('async_req'),
604
+ _return_http_data_only=params.get('_return_http_data_only'),
605
+ _preload_content=params.get('_preload_content', True),
606
+ _request_timeout=params.get('_request_timeout'),
607
+ collection_formats=collection_formats)
608
+
609
+ def get_au_state(self, auid, **kwargs): # noqa: E501
610
+ """Get the state of an AU # noqa: E501
611
+
612
+ Get the state of an AU given the AU identifier # noqa: E501
613
+ This method makes a synchronous HTTP request by default. To make an
614
+ asynchronous HTTP request, please pass async_req=True
615
+ >>> thread = api.get_au_state(auid, async_req=True)
616
+ >>> result = thread.get()
617
+
618
+ :param async_req bool
619
+ :param str auid: The identifier of the AU for which the state is requested (required)
620
+ :return: str
621
+ If the method is called asynchronously,
622
+ returns the request thread.
623
+ """
624
+ kwargs['_return_http_data_only'] = True
625
+ if kwargs.get('async_req'):
626
+ return self.get_au_state_with_http_info(auid, **kwargs) # noqa: E501
627
+ else:
628
+ (data) = self.get_au_state_with_http_info(auid, **kwargs) # noqa: E501
629
+ return data
630
+
631
+ def get_au_state_with_http_info(self, auid, **kwargs): # noqa: E501
632
+ """Get the state of an AU # noqa: E501
633
+
634
+ Get the state of an AU given the AU identifier # noqa: E501
635
+ This method makes a synchronous HTTP request by default. To make an
636
+ asynchronous HTTP request, please pass async_req=True
637
+ >>> thread = api.get_au_state_with_http_info(auid, async_req=True)
638
+ >>> result = thread.get()
639
+
640
+ :param async_req bool
641
+ :param str auid: The identifier of the AU for which the state is requested (required)
642
+ :return: str
643
+ If the method is called asynchronously,
644
+ returns the request thread.
645
+ """
646
+
647
+ all_params = ['auid'] # noqa: E501
648
+ all_params.append('async_req')
649
+ all_params.append('_return_http_data_only')
650
+ all_params.append('_preload_content')
651
+ all_params.append('_request_timeout')
652
+
653
+ params = locals()
654
+ for key, val in six.iteritems(params['kwargs']):
655
+ if key not in all_params:
656
+ raise TypeError(
657
+ "Got an unexpected keyword argument '%s'"
658
+ " to method get_au_state" % key
659
+ )
660
+ params[key] = val
661
+ del params['kwargs']
662
+ # verify the required parameter 'auid' is set
663
+ if ('auid' not in params or
664
+ params['auid'] is None):
665
+ raise ValueError("Missing the required parameter `auid` when calling `get_au_state`") # noqa: E501
666
+
667
+ collection_formats = {}
668
+
669
+ path_params = {}
670
+ if 'auid' in params:
671
+ path_params['auid'] = params['auid'] # noqa: E501
672
+
673
+ query_params = []
674
+
675
+ header_params = {}
676
+
677
+ form_params = []
678
+ local_var_files = {}
679
+
680
+ body_params = None
681
+ # HTTP header `Accept`
682
+ header_params['Accept'] = self.api_client.select_header_accept(
683
+ ['application/json']) # noqa: E501
684
+
685
+ # Authentication setting
686
+ auth_settings = ['basicAuth'] # noqa: E501
687
+
688
+ return self.api_client.call_api(
689
+ '/austates/{auid}', 'GET',
690
+ path_params,
691
+ query_params,
692
+ header_params,
693
+ body=body_params,
694
+ post_params=form_params,
695
+ files=local_var_files,
696
+ response_type='str', # noqa: E501
697
+ auth_settings=auth_settings,
698
+ async_req=params.get('async_req'),
699
+ _return_http_data_only=params.get('_return_http_data_only'),
700
+ _preload_content=params.get('_preload_content', True),
701
+ _request_timeout=params.get('_request_timeout'),
702
+ collection_formats=collection_formats)
703
+
704
+ def get_au_status(self, auid, **kwargs): # noqa: E501
705
+ """Get the status of an AU # noqa: E501
706
+
707
+ Get the status of an AU given the AU identifier # noqa: E501
708
+ This method makes a synchronous HTTP request by default. To make an
709
+ asynchronous HTTP request, please pass async_req=True
710
+ >>> thread = api.get_au_status(auid, async_req=True)
711
+ >>> result = thread.get()
712
+
713
+ :param async_req bool
714
+ :param str auid: The identifier of the AU for which the status is requested (required)
715
+ :return: AuStatus
716
+ If the method is called asynchronously,
717
+ returns the request thread.
718
+ """
719
+ kwargs['_return_http_data_only'] = True
720
+ if kwargs.get('async_req'):
721
+ return self.get_au_status_with_http_info(auid, **kwargs) # noqa: E501
722
+ else:
723
+ (data) = self.get_au_status_with_http_info(auid, **kwargs) # noqa: E501
724
+ return data
725
+
726
+ def get_au_status_with_http_info(self, auid, **kwargs): # noqa: E501
727
+ """Get the status of an AU # noqa: E501
728
+
729
+ Get the status of an AU given the AU identifier # noqa: E501
730
+ This method makes a synchronous HTTP request by default. To make an
731
+ asynchronous HTTP request, please pass async_req=True
732
+ >>> thread = api.get_au_status_with_http_info(auid, async_req=True)
733
+ >>> result = thread.get()
734
+
735
+ :param async_req bool
736
+ :param str auid: The identifier of the AU for which the status is requested (required)
737
+ :return: AuStatus
738
+ If the method is called asynchronously,
739
+ returns the request thread.
740
+ """
741
+
742
+ all_params = ['auid'] # noqa: E501
743
+ all_params.append('async_req')
744
+ all_params.append('_return_http_data_only')
745
+ all_params.append('_preload_content')
746
+ all_params.append('_request_timeout')
747
+
748
+ params = locals()
749
+ for key, val in six.iteritems(params['kwargs']):
750
+ if key not in all_params:
751
+ raise TypeError(
752
+ "Got an unexpected keyword argument '%s'"
753
+ " to method get_au_status" % key
754
+ )
755
+ params[key] = val
756
+ del params['kwargs']
757
+ # verify the required parameter 'auid' is set
758
+ if ('auid' not in params or
759
+ params['auid'] is None):
760
+ raise ValueError("Missing the required parameter `auid` when calling `get_au_status`") # noqa: E501
761
+
762
+ collection_formats = {}
763
+
764
+ path_params = {}
765
+ if 'auid' in params:
766
+ path_params['auid'] = params['auid'] # noqa: E501
767
+
768
+ query_params = []
769
+
770
+ header_params = {}
771
+
772
+ form_params = []
773
+ local_var_files = {}
774
+
775
+ body_params = None
776
+ # HTTP header `Accept`
777
+ header_params['Accept'] = self.api_client.select_header_accept(
778
+ ['application/json']) # noqa: E501
779
+
780
+ # Authentication setting
781
+ auth_settings = ['basicAuth'] # noqa: E501
782
+
783
+ return self.api_client.call_api(
784
+ '/austatuses/{auid}', 'GET',
785
+ path_params,
786
+ query_params,
787
+ header_params,
788
+ body=body_params,
789
+ post_params=form_params,
790
+ files=local_var_files,
791
+ response_type='AuStatus', # noqa: E501
792
+ auth_settings=auth_settings,
793
+ async_req=params.get('async_req'),
794
+ _return_http_data_only=params.get('_return_http_data_only'),
795
+ _preload_content=params.get('_preload_content', True),
796
+ _request_timeout=params.get('_request_timeout'),
797
+ collection_formats=collection_formats)
798
+
799
+ def get_au_suspect_url_versions(self, auid, **kwargs): # noqa: E501
800
+ """Get the suspect URL versions of an AU # noqa: E501
801
+
802
+ Get the suspect URL versions of an AU given the AU identifier # noqa: E501
803
+ This method makes a synchronous HTTP request by default. To make an
804
+ asynchronous HTTP request, please pass async_req=True
805
+ >>> thread = api.get_au_suspect_url_versions(auid, async_req=True)
806
+ >>> result = thread.get()
807
+
808
+ :param async_req bool
809
+ :param str auid: The identifier of the AU for which the suspect URL versions are requested (required)
810
+ :return: str
811
+ If the method is called asynchronously,
812
+ returns the request thread.
813
+ """
814
+ kwargs['_return_http_data_only'] = True
815
+ if kwargs.get('async_req'):
816
+ return self.get_au_suspect_url_versions_with_http_info(auid, **kwargs) # noqa: E501
817
+ else:
818
+ (data) = self.get_au_suspect_url_versions_with_http_info(auid, **kwargs) # noqa: E501
819
+ return data
820
+
821
+ def get_au_suspect_url_versions_with_http_info(self, auid, **kwargs): # noqa: E501
822
+ """Get the suspect URL versions of an AU # noqa: E501
823
+
824
+ Get the suspect URL versions of an AU given the AU identifier # noqa: E501
825
+ This method makes a synchronous HTTP request by default. To make an
826
+ asynchronous HTTP request, please pass async_req=True
827
+ >>> thread = api.get_au_suspect_url_versions_with_http_info(auid, async_req=True)
828
+ >>> result = thread.get()
829
+
830
+ :param async_req bool
831
+ :param str auid: The identifier of the AU for which the suspect URL versions are requested (required)
832
+ :return: str
833
+ If the method is called asynchronously,
834
+ returns the request thread.
835
+ """
836
+
837
+ all_params = ['auid'] # noqa: E501
838
+ all_params.append('async_req')
839
+ all_params.append('_return_http_data_only')
840
+ all_params.append('_preload_content')
841
+ all_params.append('_request_timeout')
842
+
843
+ params = locals()
844
+ for key, val in six.iteritems(params['kwargs']):
845
+ if key not in all_params:
846
+ raise TypeError(
847
+ "Got an unexpected keyword argument '%s'"
848
+ " to method get_au_suspect_url_versions" % key
849
+ )
850
+ params[key] = val
851
+ del params['kwargs']
852
+ # verify the required parameter 'auid' is set
853
+ if ('auid' not in params or
854
+ params['auid'] is None):
855
+ raise ValueError("Missing the required parameter `auid` when calling `get_au_suspect_url_versions`") # noqa: E501
856
+
857
+ collection_formats = {}
858
+
859
+ path_params = {}
860
+ if 'auid' in params:
861
+ path_params['auid'] = params['auid'] # noqa: E501
862
+
863
+ query_params = []
864
+
865
+ header_params = {}
866
+
867
+ form_params = []
868
+ local_var_files = {}
869
+
870
+ body_params = None
871
+ # HTTP header `Accept`
872
+ header_params['Accept'] = self.api_client.select_header_accept(
873
+ ['application/json']) # noqa: E501
874
+
875
+ # Authentication setting
876
+ auth_settings = ['basicAuth'] # noqa: E501
877
+
878
+ return self.api_client.call_api(
879
+ '/aususpecturls/{auid}', 'GET',
880
+ path_params,
881
+ query_params,
882
+ header_params,
883
+ body=body_params,
884
+ post_params=form_params,
885
+ files=local_var_files,
886
+ response_type='str', # noqa: E501
887
+ auth_settings=auth_settings,
888
+ async_req=params.get('async_req'),
889
+ _return_http_data_only=params.get('_return_http_data_only'),
890
+ _preload_content=params.get('_preload_content', True),
891
+ _request_timeout=params.get('_request_timeout'),
892
+ collection_formats=collection_formats)
893
+
894
+ def get_auqueries(self, au_query, **kwargs): # noqa: E501
895
+ """Query for archival unit properties # noqa: E501
896
+
897
+ Query for archival units that meet a set of specified conditions # noqa: E501
898
+ This method makes a synchronous HTTP request by default. To make an
899
+ asynchronous HTTP request, please pass async_req=True
900
+ >>> thread = api.get_auqueries(au_query, async_req=True)
901
+ >>> result = thread.get()
902
+
903
+ :param async_req bool
904
+ :param str au_query: The query that specifies the archival units to be returned (required)
905
+ :return: list[AuWsResult]
906
+ If the method is called asynchronously,
907
+ returns the request thread.
908
+ """
909
+ kwargs['_return_http_data_only'] = True
910
+ if kwargs.get('async_req'):
911
+ return self.get_auqueries_with_http_info(au_query, **kwargs) # noqa: E501
912
+ else:
913
+ (data) = self.get_auqueries_with_http_info(au_query, **kwargs) # noqa: E501
914
+ return data
915
+
916
+ def get_auqueries_with_http_info(self, au_query, **kwargs): # noqa: E501
917
+ """Query for archival unit properties # noqa: E501
918
+
919
+ Query for archival units that meet a set of specified conditions # noqa: E501
920
+ This method makes a synchronous HTTP request by default. To make an
921
+ asynchronous HTTP request, please pass async_req=True
922
+ >>> thread = api.get_auqueries_with_http_info(au_query, async_req=True)
923
+ >>> result = thread.get()
924
+
925
+ :param async_req bool
926
+ :param str au_query: The query that specifies the archival units to be returned (required)
927
+ :return: list[AuWsResult]
928
+ If the method is called asynchronously,
929
+ returns the request thread.
930
+ """
931
+
932
+ all_params = ['au_query'] # noqa: E501
933
+ all_params.append('async_req')
934
+ all_params.append('_return_http_data_only')
935
+ all_params.append('_preload_content')
936
+ all_params.append('_request_timeout')
937
+
938
+ params = locals()
939
+ for key, val in six.iteritems(params['kwargs']):
940
+ if key not in all_params:
941
+ raise TypeError(
942
+ "Got an unexpected keyword argument '%s'"
943
+ " to method get_auqueries" % key
944
+ )
945
+ params[key] = val
946
+ del params['kwargs']
947
+ # verify the required parameter 'au_query' is set
948
+ if ('au_query' not in params or
949
+ params['au_query'] is None):
950
+ raise ValueError("Missing the required parameter `au_query` when calling `get_auqueries`") # noqa: E501
951
+
952
+ collection_formats = {}
953
+
954
+ path_params = {}
955
+
956
+ query_params = []
957
+ if 'au_query' in params:
958
+ query_params.append(('auQuery', params['au_query'])) # noqa: E501
959
+
960
+ header_params = {}
961
+
962
+ form_params = []
963
+ local_var_files = {}
964
+
965
+ body_params = None
966
+ # HTTP header `Accept`
967
+ header_params['Accept'] = self.api_client.select_header_accept(
968
+ ['application/json']) # noqa: E501
969
+
970
+ # Authentication setting
971
+ auth_settings = ['basicAuth'] # noqa: E501
972
+
973
+ return self.api_client.call_api(
974
+ '/ws/auqueries', 'GET',
975
+ path_params,
976
+ query_params,
977
+ header_params,
978
+ body=body_params,
979
+ post_params=form_params,
980
+ files=local_var_files,
981
+ response_type='list[AuWsResult]', # noqa: E501
982
+ auth_settings=auth_settings,
983
+ async_req=params.get('async_req'),
984
+ _return_http_data_only=params.get('_return_http_data_only'),
985
+ _preload_content=params.get('_preload_content', True),
986
+ _request_timeout=params.get('_request_timeout'),
987
+ collection_formats=collection_formats)
988
+
989
+ def get_no_au_peers(self, auid, **kwargs): # noqa: E501
990
+ """Get the NoAuPeerSet object of an AU # noqa: E501
991
+
992
+ Get the NoAuPeerSet object of an AU given the AU identifier # noqa: E501
993
+ This method makes a synchronous HTTP request by default. To make an
994
+ asynchronous HTTP request, please pass async_req=True
995
+ >>> thread = api.get_no_au_peers(auid, async_req=True)
996
+ >>> result = thread.get()
997
+
998
+ :param async_req bool
999
+ :param str auid: The identifier of the AU for which the NoAuPeerSet object is requested (required)
1000
+ :return: str
1001
+ If the method is called asynchronously,
1002
+ returns the request thread.
1003
+ """
1004
+ kwargs['_return_http_data_only'] = True
1005
+ if kwargs.get('async_req'):
1006
+ return self.get_no_au_peers_with_http_info(auid, **kwargs) # noqa: E501
1007
+ else:
1008
+ (data) = self.get_no_au_peers_with_http_info(auid, **kwargs) # noqa: E501
1009
+ return data
1010
+
1011
+ def get_no_au_peers_with_http_info(self, auid, **kwargs): # noqa: E501
1012
+ """Get the NoAuPeerSet object of an AU # noqa: E501
1013
+
1014
+ Get the NoAuPeerSet object of an AU given the AU identifier # noqa: E501
1015
+ This method makes a synchronous HTTP request by default. To make an
1016
+ asynchronous HTTP request, please pass async_req=True
1017
+ >>> thread = api.get_no_au_peers_with_http_info(auid, async_req=True)
1018
+ >>> result = thread.get()
1019
+
1020
+ :param async_req bool
1021
+ :param str auid: The identifier of the AU for which the NoAuPeerSet object is requested (required)
1022
+ :return: str
1023
+ If the method is called asynchronously,
1024
+ returns the request thread.
1025
+ """
1026
+
1027
+ all_params = ['auid'] # noqa: E501
1028
+ all_params.append('async_req')
1029
+ all_params.append('_return_http_data_only')
1030
+ all_params.append('_preload_content')
1031
+ all_params.append('_request_timeout')
1032
+
1033
+ params = locals()
1034
+ for key, val in six.iteritems(params['kwargs']):
1035
+ if key not in all_params:
1036
+ raise TypeError(
1037
+ "Got an unexpected keyword argument '%s'"
1038
+ " to method get_no_au_peers" % key
1039
+ )
1040
+ params[key] = val
1041
+ del params['kwargs']
1042
+ # verify the required parameter 'auid' is set
1043
+ if ('auid' not in params or
1044
+ params['auid'] is None):
1045
+ raise ValueError("Missing the required parameter `auid` when calling `get_no_au_peers`") # noqa: E501
1046
+
1047
+ collection_formats = {}
1048
+
1049
+ path_params = {}
1050
+ if 'auid' in params:
1051
+ path_params['auid'] = params['auid'] # noqa: E501
1052
+
1053
+ query_params = []
1054
+
1055
+ header_params = {}
1056
+
1057
+ form_params = []
1058
+ local_var_files = {}
1059
+
1060
+ body_params = None
1061
+ # HTTP header `Accept`
1062
+ header_params['Accept'] = self.api_client.select_header_accept(
1063
+ ['application/json']) # noqa: E501
1064
+
1065
+ # Authentication setting
1066
+ auth_settings = ['basicAuth'] # noqa: E501
1067
+
1068
+ return self.api_client.call_api(
1069
+ '/noaupeers/{auid}', 'GET',
1070
+ path_params,
1071
+ query_params,
1072
+ header_params,
1073
+ body=body_params,
1074
+ post_params=form_params,
1075
+ files=local_var_files,
1076
+ response_type='str', # noqa: E501
1077
+ auth_settings=auth_settings,
1078
+ async_req=params.get('async_req'),
1079
+ _return_http_data_only=params.get('_return_http_data_only'),
1080
+ _preload_content=params.get('_preload_content', True),
1081
+ _request_timeout=params.get('_request_timeout'),
1082
+ collection_formats=collection_formats)
1083
+
1084
+ def patch_au_agreements(self, body, auid, **kwargs): # noqa: E501
1085
+ """Update the poll agreements of an AU # noqa: E501
1086
+
1087
+ Update the poll agreements of an AU given the AU identifier # noqa: E501
1088
+ This method makes a synchronous HTTP request by default. To make an
1089
+ asynchronous HTTP request, please pass async_req=True
1090
+ >>> thread = api.patch_au_agreements(body, auid, async_req=True)
1091
+ >>> result = thread.get()
1092
+
1093
+ :param async_req bool
1094
+ :param str body: The parts of the Archival Unit poll agreements to be updated (required)
1095
+ :param str auid: The identifier of the AU for which the poll agreements are to be updated (required)
1096
+ :param str x_lockss_request_cookie: The LOCKSS-specific request cookie header
1097
+ :return: None
1098
+ If the method is called asynchronously,
1099
+ returns the request thread.
1100
+ """
1101
+ kwargs['_return_http_data_only'] = True
1102
+ if kwargs.get('async_req'):
1103
+ return self.patch_au_agreements_with_http_info(body, auid, **kwargs) # noqa: E501
1104
+ else:
1105
+ (data) = self.patch_au_agreements_with_http_info(body, auid, **kwargs) # noqa: E501
1106
+ return data
1107
+
1108
+ def patch_au_agreements_with_http_info(self, body, auid, **kwargs): # noqa: E501
1109
+ """Update the poll agreements of an AU # noqa: E501
1110
+
1111
+ Update the poll agreements of an AU given the AU identifier # noqa: E501
1112
+ This method makes a synchronous HTTP request by default. To make an
1113
+ asynchronous HTTP request, please pass async_req=True
1114
+ >>> thread = api.patch_au_agreements_with_http_info(body, auid, async_req=True)
1115
+ >>> result = thread.get()
1116
+
1117
+ :param async_req bool
1118
+ :param str body: The parts of the Archival Unit poll agreements to be updated (required)
1119
+ :param str auid: The identifier of the AU for which the poll agreements are to be updated (required)
1120
+ :param str x_lockss_request_cookie: The LOCKSS-specific request cookie header
1121
+ :return: None
1122
+ If the method is called asynchronously,
1123
+ returns the request thread.
1124
+ """
1125
+
1126
+ all_params = ['body', 'auid', 'x_lockss_request_cookie'] # noqa: E501
1127
+ all_params.append('async_req')
1128
+ all_params.append('_return_http_data_only')
1129
+ all_params.append('_preload_content')
1130
+ all_params.append('_request_timeout')
1131
+
1132
+ params = locals()
1133
+ for key, val in six.iteritems(params['kwargs']):
1134
+ if key not in all_params:
1135
+ raise TypeError(
1136
+ "Got an unexpected keyword argument '%s'"
1137
+ " to method patch_au_agreements" % key
1138
+ )
1139
+ params[key] = val
1140
+ del params['kwargs']
1141
+ # verify the required parameter 'body' is set
1142
+ if ('body' not in params or
1143
+ params['body'] is None):
1144
+ raise ValueError("Missing the required parameter `body` when calling `patch_au_agreements`") # noqa: E501
1145
+ # verify the required parameter 'auid' is set
1146
+ if ('auid' not in params or
1147
+ params['auid'] is None):
1148
+ raise ValueError("Missing the required parameter `auid` when calling `patch_au_agreements`") # noqa: E501
1149
+
1150
+ collection_formats = {}
1151
+
1152
+ path_params = {}
1153
+ if 'auid' in params:
1154
+ path_params['auid'] = params['auid'] # noqa: E501
1155
+
1156
+ query_params = []
1157
+
1158
+ header_params = {}
1159
+ if 'x_lockss_request_cookie' in params:
1160
+ header_params['X-Lockss-Request-Cookie'] = params['x_lockss_request_cookie'] # noqa: E501
1161
+
1162
+ form_params = []
1163
+ local_var_files = {}
1164
+
1165
+ body_params = None
1166
+ if 'body' in params:
1167
+ body_params = params['body']
1168
+ # HTTP header `Content-Type`
1169
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1170
+ ['application/json']) # noqa: E501
1171
+
1172
+ # Authentication setting
1173
+ auth_settings = ['basicAuth'] # noqa: E501
1174
+
1175
+ return self.api_client.call_api(
1176
+ '/auagreements/{auid}', 'PATCH',
1177
+ path_params,
1178
+ query_params,
1179
+ header_params,
1180
+ body=body_params,
1181
+ post_params=form_params,
1182
+ files=local_var_files,
1183
+ response_type=None, # noqa: E501
1184
+ auth_settings=auth_settings,
1185
+ async_req=params.get('async_req'),
1186
+ _return_http_data_only=params.get('_return_http_data_only'),
1187
+ _preload_content=params.get('_preload_content', True),
1188
+ _request_timeout=params.get('_request_timeout'),
1189
+ collection_formats=collection_formats)
1190
+
1191
+ def patch_au_state(self, body, auid, **kwargs): # noqa: E501
1192
+ """Update the state of an AU # noqa: E501
1193
+
1194
+ Update the state of an AU given the AU identifier # noqa: E501
1195
+ This method makes a synchronous HTTP request by default. To make an
1196
+ asynchronous HTTP request, please pass async_req=True
1197
+ >>> thread = api.patch_au_state(body, auid, async_req=True)
1198
+ >>> result = thread.get()
1199
+
1200
+ :param async_req bool
1201
+ :param str body: The parts of the Archival Unit state to be updated (required)
1202
+ :param str auid: The identifier of the AU for which the state is to be updated (required)
1203
+ :param str x_lockss_request_cookie: The LOCKSS-specific request cookie header
1204
+ :return: None
1205
+ If the method is called asynchronously,
1206
+ returns the request thread.
1207
+ """
1208
+ kwargs['_return_http_data_only'] = True
1209
+ if kwargs.get('async_req'):
1210
+ return self.patch_au_state_with_http_info(body, auid, **kwargs) # noqa: E501
1211
+ else:
1212
+ (data) = self.patch_au_state_with_http_info(body, auid, **kwargs) # noqa: E501
1213
+ return data
1214
+
1215
+ def patch_au_state_with_http_info(self, body, auid, **kwargs): # noqa: E501
1216
+ """Update the state of an AU # noqa: E501
1217
+
1218
+ Update the state of an AU given the AU identifier # noqa: E501
1219
+ This method makes a synchronous HTTP request by default. To make an
1220
+ asynchronous HTTP request, please pass async_req=True
1221
+ >>> thread = api.patch_au_state_with_http_info(body, auid, async_req=True)
1222
+ >>> result = thread.get()
1223
+
1224
+ :param async_req bool
1225
+ :param str body: The parts of the Archival Unit state to be updated (required)
1226
+ :param str auid: The identifier of the AU for which the state is to be updated (required)
1227
+ :param str x_lockss_request_cookie: The LOCKSS-specific request cookie header
1228
+ :return: None
1229
+ If the method is called asynchronously,
1230
+ returns the request thread.
1231
+ """
1232
+
1233
+ all_params = ['body', 'auid', 'x_lockss_request_cookie'] # noqa: E501
1234
+ all_params.append('async_req')
1235
+ all_params.append('_return_http_data_only')
1236
+ all_params.append('_preload_content')
1237
+ all_params.append('_request_timeout')
1238
+
1239
+ params = locals()
1240
+ for key, val in six.iteritems(params['kwargs']):
1241
+ if key not in all_params:
1242
+ raise TypeError(
1243
+ "Got an unexpected keyword argument '%s'"
1244
+ " to method patch_au_state" % key
1245
+ )
1246
+ params[key] = val
1247
+ del params['kwargs']
1248
+ # verify the required parameter 'body' is set
1249
+ if ('body' not in params or
1250
+ params['body'] is None):
1251
+ raise ValueError("Missing the required parameter `body` when calling `patch_au_state`") # noqa: E501
1252
+ # verify the required parameter 'auid' is set
1253
+ if ('auid' not in params or
1254
+ params['auid'] is None):
1255
+ raise ValueError("Missing the required parameter `auid` when calling `patch_au_state`") # noqa: E501
1256
+
1257
+ collection_formats = {}
1258
+
1259
+ path_params = {}
1260
+ if 'auid' in params:
1261
+ path_params['auid'] = params['auid'] # noqa: E501
1262
+
1263
+ query_params = []
1264
+
1265
+ header_params = {}
1266
+ if 'x_lockss_request_cookie' in params:
1267
+ header_params['X-Lockss-Request-Cookie'] = params['x_lockss_request_cookie'] # noqa: E501
1268
+
1269
+ form_params = []
1270
+ local_var_files = {}
1271
+
1272
+ body_params = None
1273
+ if 'body' in params:
1274
+ body_params = params['body']
1275
+ # HTTP header `Content-Type`
1276
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1277
+ ['application/json']) # noqa: E501
1278
+
1279
+ # Authentication setting
1280
+ auth_settings = ['basicAuth'] # noqa: E501
1281
+
1282
+ return self.api_client.call_api(
1283
+ '/austates/{auid}', 'PATCH',
1284
+ path_params,
1285
+ query_params,
1286
+ header_params,
1287
+ body=body_params,
1288
+ post_params=form_params,
1289
+ files=local_var_files,
1290
+ response_type=None, # noqa: E501
1291
+ auth_settings=auth_settings,
1292
+ async_req=params.get('async_req'),
1293
+ _return_http_data_only=params.get('_return_http_data_only'),
1294
+ _preload_content=params.get('_preload_content', True),
1295
+ _request_timeout=params.get('_request_timeout'),
1296
+ collection_formats=collection_formats)
1297
+
1298
+ def post_aus(self, body, **kwargs): # noqa: E501
1299
+ """Add AUs # noqa: E501
1300
+
1301
+ Add a group of AUs given their identifiers # noqa: E501
1302
+ This method makes a synchronous HTTP request by default. To make an
1303
+ asynchronous HTTP request, please pass async_req=True
1304
+ >>> thread = api.post_aus(body, async_req=True)
1305
+ >>> result = thread.get()
1306
+
1307
+ :param async_req bool
1308
+ :param list[str] body: The identifiers of the Archival Units to be added (required)
1309
+ :return: list[ContentConfigurationResult]
1310
+ If the method is called asynchronously,
1311
+ returns the request thread.
1312
+ """
1313
+ kwargs['_return_http_data_only'] = True
1314
+ if kwargs.get('async_req'):
1315
+ return self.post_aus_with_http_info(body, **kwargs) # noqa: E501
1316
+ else:
1317
+ (data) = self.post_aus_with_http_info(body, **kwargs) # noqa: E501
1318
+ return data
1319
+
1320
+ def post_aus_with_http_info(self, body, **kwargs): # noqa: E501
1321
+ """Add AUs # noqa: E501
1322
+
1323
+ Add a group of AUs given their identifiers # noqa: E501
1324
+ This method makes a synchronous HTTP request by default. To make an
1325
+ asynchronous HTTP request, please pass async_req=True
1326
+ >>> thread = api.post_aus_with_http_info(body, async_req=True)
1327
+ >>> result = thread.get()
1328
+
1329
+ :param async_req bool
1330
+ :param list[str] body: The identifiers of the Archival Units to be added (required)
1331
+ :return: list[ContentConfigurationResult]
1332
+ If the method is called asynchronously,
1333
+ returns the request thread.
1334
+ """
1335
+
1336
+ all_params = ['body'] # noqa: E501
1337
+ all_params.append('async_req')
1338
+ all_params.append('_return_http_data_only')
1339
+ all_params.append('_preload_content')
1340
+ all_params.append('_request_timeout')
1341
+
1342
+ params = locals()
1343
+ for key, val in six.iteritems(params['kwargs']):
1344
+ if key not in all_params:
1345
+ raise TypeError(
1346
+ "Got an unexpected keyword argument '%s'"
1347
+ " to method post_aus" % key
1348
+ )
1349
+ params[key] = val
1350
+ del params['kwargs']
1351
+ # verify the required parameter 'body' is set
1352
+ if ('body' not in params or
1353
+ params['body'] is None):
1354
+ raise ValueError("Missing the required parameter `body` when calling `post_aus`") # noqa: E501
1355
+
1356
+ collection_formats = {}
1357
+
1358
+ path_params = {}
1359
+
1360
+ query_params = []
1361
+
1362
+ header_params = {}
1363
+
1364
+ form_params = []
1365
+ local_var_files = {}
1366
+
1367
+ body_params = None
1368
+ if 'body' in params:
1369
+ body_params = params['body']
1370
+ # HTTP header `Accept`
1371
+ header_params['Accept'] = self.api_client.select_header_accept(
1372
+ ['application/json']) # noqa: E501
1373
+
1374
+ # HTTP header `Content-Type`
1375
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1376
+ ['application/json']) # noqa: E501
1377
+
1378
+ # Authentication setting
1379
+ auth_settings = ['basicAuth'] # noqa: E501
1380
+
1381
+ return self.api_client.call_api(
1382
+ '/ws/aus/add', 'POST',
1383
+ path_params,
1384
+ query_params,
1385
+ header_params,
1386
+ body=body_params,
1387
+ post_params=form_params,
1388
+ files=local_var_files,
1389
+ response_type='list[ContentConfigurationResult]', # noqa: E501
1390
+ auth_settings=auth_settings,
1391
+ async_req=params.get('async_req'),
1392
+ _return_http_data_only=params.get('_return_http_data_only'),
1393
+ _preload_content=params.get('_preload_content', True),
1394
+ _request_timeout=params.get('_request_timeout'),
1395
+ collection_formats=collection_formats)
1396
+
1397
+ def put_au_config(self, body, auid, **kwargs): # noqa: E501
1398
+ """Store the configuration of an AU # noqa: E501
1399
+
1400
+ Store the configuration of an AU given the AU identifier # noqa: E501
1401
+ This method makes a synchronous HTTP request by default. To make an
1402
+ asynchronous HTTP request, please pass async_req=True
1403
+ >>> thread = api.put_au_config(body, auid, async_req=True)
1404
+ >>> result = thread.get()
1405
+
1406
+ :param async_req bool
1407
+ :param AuConfiguration body: The Archival Unit configuration to be stored (required)
1408
+ :param str auid: The identifier of the AU for this configuration. (required)
1409
+ :return: None
1410
+ If the method is called asynchronously,
1411
+ returns the request thread.
1412
+ """
1413
+ kwargs['_return_http_data_only'] = True
1414
+ if kwargs.get('async_req'):
1415
+ return self.put_au_config_with_http_info(body, auid, **kwargs) # noqa: E501
1416
+ else:
1417
+ (data) = self.put_au_config_with_http_info(body, auid, **kwargs) # noqa: E501
1418
+ return data
1419
+
1420
+ def put_au_config_with_http_info(self, body, auid, **kwargs): # noqa: E501
1421
+ """Store the configuration of an AU # noqa: E501
1422
+
1423
+ Store the configuration of an AU given the AU identifier # noqa: E501
1424
+ This method makes a synchronous HTTP request by default. To make an
1425
+ asynchronous HTTP request, please pass async_req=True
1426
+ >>> thread = api.put_au_config_with_http_info(body, auid, async_req=True)
1427
+ >>> result = thread.get()
1428
+
1429
+ :param async_req bool
1430
+ :param AuConfiguration body: The Archival Unit configuration to be stored (required)
1431
+ :param str auid: The identifier of the AU for this configuration. (required)
1432
+ :return: None
1433
+ If the method is called asynchronously,
1434
+ returns the request thread.
1435
+ """
1436
+
1437
+ all_params = ['body', 'auid'] # noqa: E501
1438
+ all_params.append('async_req')
1439
+ all_params.append('_return_http_data_only')
1440
+ all_params.append('_preload_content')
1441
+ all_params.append('_request_timeout')
1442
+
1443
+ params = locals()
1444
+ for key, val in six.iteritems(params['kwargs']):
1445
+ if key not in all_params:
1446
+ raise TypeError(
1447
+ "Got an unexpected keyword argument '%s'"
1448
+ " to method put_au_config" % key
1449
+ )
1450
+ params[key] = val
1451
+ del params['kwargs']
1452
+ # verify the required parameter 'body' is set
1453
+ if ('body' not in params or
1454
+ params['body'] is None):
1455
+ raise ValueError("Missing the required parameter `body` when calling `put_au_config`") # noqa: E501
1456
+ # verify the required parameter 'auid' is set
1457
+ if ('auid' not in params or
1458
+ params['auid'] is None):
1459
+ raise ValueError("Missing the required parameter `auid` when calling `put_au_config`") # noqa: E501
1460
+
1461
+ collection_formats = {}
1462
+
1463
+ path_params = {}
1464
+ if 'auid' in params:
1465
+ path_params['auid'] = params['auid'] # noqa: E501
1466
+
1467
+ query_params = []
1468
+
1469
+ header_params = {}
1470
+
1471
+ form_params = []
1472
+ local_var_files = {}
1473
+
1474
+ body_params = None
1475
+ if 'body' in params:
1476
+ body_params = params['body']
1477
+ # HTTP header `Content-Type`
1478
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1479
+ ['application/json']) # noqa: E501
1480
+
1481
+ # Authentication setting
1482
+ auth_settings = ['basicAuth'] # noqa: E501
1483
+
1484
+ return self.api_client.call_api(
1485
+ '/aus/{auid}', 'PUT',
1486
+ path_params,
1487
+ query_params,
1488
+ header_params,
1489
+ body=body_params,
1490
+ post_params=form_params,
1491
+ files=local_var_files,
1492
+ response_type=None, # noqa: E501
1493
+ auth_settings=auth_settings,
1494
+ async_req=params.get('async_req'),
1495
+ _return_http_data_only=params.get('_return_http_data_only'),
1496
+ _preload_content=params.get('_preload_content', True),
1497
+ _request_timeout=params.get('_request_timeout'),
1498
+ collection_formats=collection_formats)
1499
+
1500
+ def put_au_substance_check(self, auid, **kwargs): # noqa: E501
1501
+ """Update the substance of an AU # noqa: E501
1502
+
1503
+ Update the substance of an AU given the AU identifier # noqa: E501
1504
+ This method makes a synchronous HTTP request by default. To make an
1505
+ asynchronous HTTP request, please pass async_req=True
1506
+ >>> thread = api.put_au_substance_check(auid, async_req=True)
1507
+ >>> result = thread.get()
1508
+
1509
+ :param async_req bool
1510
+ :param str auid: The identifier of the AU for which the substance check is requested (required)
1511
+ :return: CheckSubstanceResult
1512
+ If the method is called asynchronously,
1513
+ returns the request thread.
1514
+ """
1515
+ kwargs['_return_http_data_only'] = True
1516
+ if kwargs.get('async_req'):
1517
+ return self.put_au_substance_check_with_http_info(auid, **kwargs) # noqa: E501
1518
+ else:
1519
+ (data) = self.put_au_substance_check_with_http_info(auid, **kwargs) # noqa: E501
1520
+ return data
1521
+
1522
+ def put_au_substance_check_with_http_info(self, auid, **kwargs): # noqa: E501
1523
+ """Update the substance of an AU # noqa: E501
1524
+
1525
+ Update the substance of an AU given the AU identifier # noqa: E501
1526
+ This method makes a synchronous HTTP request by default. To make an
1527
+ asynchronous HTTP request, please pass async_req=True
1528
+ >>> thread = api.put_au_substance_check_with_http_info(auid, async_req=True)
1529
+ >>> result = thread.get()
1530
+
1531
+ :param async_req bool
1532
+ :param str auid: The identifier of the AU for which the substance check is requested (required)
1533
+ :return: CheckSubstanceResult
1534
+ If the method is called asynchronously,
1535
+ returns the request thread.
1536
+ """
1537
+
1538
+ all_params = ['auid'] # noqa: E501
1539
+ all_params.append('async_req')
1540
+ all_params.append('_return_http_data_only')
1541
+ all_params.append('_preload_content')
1542
+ all_params.append('_request_timeout')
1543
+
1544
+ params = locals()
1545
+ for key, val in six.iteritems(params['kwargs']):
1546
+ if key not in all_params:
1547
+ raise TypeError(
1548
+ "Got an unexpected keyword argument '%s'"
1549
+ " to method put_au_substance_check" % key
1550
+ )
1551
+ params[key] = val
1552
+ del params['kwargs']
1553
+ # verify the required parameter 'auid' is set
1554
+ if ('auid' not in params or
1555
+ params['auid'] is None):
1556
+ raise ValueError("Missing the required parameter `auid` when calling `put_au_substance_check`") # noqa: E501
1557
+
1558
+ collection_formats = {}
1559
+
1560
+ path_params = {}
1561
+ if 'auid' in params:
1562
+ path_params['auid'] = params['auid'] # noqa: E501
1563
+
1564
+ query_params = []
1565
+
1566
+ header_params = {}
1567
+
1568
+ form_params = []
1569
+ local_var_files = {}
1570
+
1571
+ body_params = None
1572
+ # HTTP header `Accept`
1573
+ header_params['Accept'] = self.api_client.select_header_accept(
1574
+ ['application/json']) # noqa: E501
1575
+
1576
+ # Authentication setting
1577
+ auth_settings = ['basicAuth'] # noqa: E501
1578
+
1579
+ return self.api_client.call_api(
1580
+ '/ausubstances/{auid}', 'PUT',
1581
+ path_params,
1582
+ query_params,
1583
+ header_params,
1584
+ body=body_params,
1585
+ post_params=form_params,
1586
+ files=local_var_files,
1587
+ response_type='CheckSubstanceResult', # noqa: E501
1588
+ auth_settings=auth_settings,
1589
+ async_req=params.get('async_req'),
1590
+ _return_http_data_only=params.get('_return_http_data_only'),
1591
+ _preload_content=params.get('_preload_content', True),
1592
+ _request_timeout=params.get('_request_timeout'),
1593
+ collection_formats=collection_formats)
1594
+
1595
+ def put_au_suspect_url_versions(self, body, auid, **kwargs): # noqa: E501
1596
+ """Update the suspect URL versions of an AU # noqa: E501
1597
+
1598
+ Update the suspect URL versions of an AU given the AU identifier # noqa: E501
1599
+ This method makes a synchronous HTTP request by default. To make an
1600
+ asynchronous HTTP request, please pass async_req=True
1601
+ >>> thread = api.put_au_suspect_url_versions(body, auid, async_req=True)
1602
+ >>> result = thread.get()
1603
+
1604
+ :param async_req bool
1605
+ :param str body: The parts of the Archival Unit suspect URL versions to be updated (required)
1606
+ :param str auid: The identifier of the AU for which the suspect URL versions are to be updated (required)
1607
+ :param str x_lockss_request_cookie: The LOCKSS-specific request cookie header
1608
+ :return: None
1609
+ If the method is called asynchronously,
1610
+ returns the request thread.
1611
+ """
1612
+ kwargs['_return_http_data_only'] = True
1613
+ if kwargs.get('async_req'):
1614
+ return self.put_au_suspect_url_versions_with_http_info(body, auid, **kwargs) # noqa: E501
1615
+ else:
1616
+ (data) = self.put_au_suspect_url_versions_with_http_info(body, auid, **kwargs) # noqa: E501
1617
+ return data
1618
+
1619
+ def put_au_suspect_url_versions_with_http_info(self, body, auid, **kwargs): # noqa: E501
1620
+ """Update the suspect URL versions of an AU # noqa: E501
1621
+
1622
+ Update the suspect URL versions of an AU given the AU identifier # noqa: E501
1623
+ This method makes a synchronous HTTP request by default. To make an
1624
+ asynchronous HTTP request, please pass async_req=True
1625
+ >>> thread = api.put_au_suspect_url_versions_with_http_info(body, auid, async_req=True)
1626
+ >>> result = thread.get()
1627
+
1628
+ :param async_req bool
1629
+ :param str body: The parts of the Archival Unit suspect URL versions to be updated (required)
1630
+ :param str auid: The identifier of the AU for which the suspect URL versions are to be updated (required)
1631
+ :param str x_lockss_request_cookie: The LOCKSS-specific request cookie header
1632
+ :return: None
1633
+ If the method is called asynchronously,
1634
+ returns the request thread.
1635
+ """
1636
+
1637
+ all_params = ['body', 'auid', 'x_lockss_request_cookie'] # noqa: E501
1638
+ all_params.append('async_req')
1639
+ all_params.append('_return_http_data_only')
1640
+ all_params.append('_preload_content')
1641
+ all_params.append('_request_timeout')
1642
+
1643
+ params = locals()
1644
+ for key, val in six.iteritems(params['kwargs']):
1645
+ if key not in all_params:
1646
+ raise TypeError(
1647
+ "Got an unexpected keyword argument '%s'"
1648
+ " to method put_au_suspect_url_versions" % key
1649
+ )
1650
+ params[key] = val
1651
+ del params['kwargs']
1652
+ # verify the required parameter 'body' is set
1653
+ if ('body' not in params or
1654
+ params['body'] is None):
1655
+ raise ValueError("Missing the required parameter `body` when calling `put_au_suspect_url_versions`") # noqa: E501
1656
+ # verify the required parameter 'auid' is set
1657
+ if ('auid' not in params or
1658
+ params['auid'] is None):
1659
+ raise ValueError("Missing the required parameter `auid` when calling `put_au_suspect_url_versions`") # noqa: E501
1660
+
1661
+ collection_formats = {}
1662
+
1663
+ path_params = {}
1664
+ if 'auid' in params:
1665
+ path_params['auid'] = params['auid'] # noqa: E501
1666
+
1667
+ query_params = []
1668
+
1669
+ header_params = {}
1670
+ if 'x_lockss_request_cookie' in params:
1671
+ header_params['X-Lockss-Request-Cookie'] = params['x_lockss_request_cookie'] # noqa: E501
1672
+
1673
+ form_params = []
1674
+ local_var_files = {}
1675
+
1676
+ body_params = None
1677
+ if 'body' in params:
1678
+ body_params = params['body']
1679
+ # HTTP header `Content-Type`
1680
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1681
+ ['application/json']) # noqa: E501
1682
+
1683
+ # Authentication setting
1684
+ auth_settings = ['basicAuth'] # noqa: E501
1685
+
1686
+ return self.api_client.call_api(
1687
+ '/aususpecturls/{auid}', 'PUT',
1688
+ path_params,
1689
+ query_params,
1690
+ header_params,
1691
+ body=body_params,
1692
+ post_params=form_params,
1693
+ files=local_var_files,
1694
+ response_type=None, # noqa: E501
1695
+ auth_settings=auth_settings,
1696
+ async_req=params.get('async_req'),
1697
+ _return_http_data_only=params.get('_return_http_data_only'),
1698
+ _preload_content=params.get('_preload_content', True),
1699
+ _request_timeout=params.get('_request_timeout'),
1700
+ collection_formats=collection_formats)
1701
+
1702
+ def put_aus_deactivate(self, body, **kwargs): # noqa: E501
1703
+ """Deactivate AUs # noqa: E501
1704
+
1705
+ Deactivate a group of AUs given their identifiers # noqa: E501
1706
+ This method makes a synchronous HTTP request by default. To make an
1707
+ asynchronous HTTP request, please pass async_req=True
1708
+ >>> thread = api.put_aus_deactivate(body, async_req=True)
1709
+ >>> result = thread.get()
1710
+
1711
+ :param async_req bool
1712
+ :param list[str] body: The identifiers of the Archival Units to be deactivated (required)
1713
+ :return: list[ContentConfigurationResult]
1714
+ If the method is called asynchronously,
1715
+ returns the request thread.
1716
+ """
1717
+ kwargs['_return_http_data_only'] = True
1718
+ if kwargs.get('async_req'):
1719
+ return self.put_aus_deactivate_with_http_info(body, **kwargs) # noqa: E501
1720
+ else:
1721
+ (data) = self.put_aus_deactivate_with_http_info(body, **kwargs) # noqa: E501
1722
+ return data
1723
+
1724
+ def put_aus_deactivate_with_http_info(self, body, **kwargs): # noqa: E501
1725
+ """Deactivate AUs # noqa: E501
1726
+
1727
+ Deactivate a group of AUs given their identifiers # noqa: E501
1728
+ This method makes a synchronous HTTP request by default. To make an
1729
+ asynchronous HTTP request, please pass async_req=True
1730
+ >>> thread = api.put_aus_deactivate_with_http_info(body, async_req=True)
1731
+ >>> result = thread.get()
1732
+
1733
+ :param async_req bool
1734
+ :param list[str] body: The identifiers of the Archival Units to be deactivated (required)
1735
+ :return: list[ContentConfigurationResult]
1736
+ If the method is called asynchronously,
1737
+ returns the request thread.
1738
+ """
1739
+
1740
+ all_params = ['body'] # noqa: E501
1741
+ all_params.append('async_req')
1742
+ all_params.append('_return_http_data_only')
1743
+ all_params.append('_preload_content')
1744
+ all_params.append('_request_timeout')
1745
+
1746
+ params = locals()
1747
+ for key, val in six.iteritems(params['kwargs']):
1748
+ if key not in all_params:
1749
+ raise TypeError(
1750
+ "Got an unexpected keyword argument '%s'"
1751
+ " to method put_aus_deactivate" % key
1752
+ )
1753
+ params[key] = val
1754
+ del params['kwargs']
1755
+ # verify the required parameter 'body' is set
1756
+ if ('body' not in params or
1757
+ params['body'] is None):
1758
+ raise ValueError("Missing the required parameter `body` when calling `put_aus_deactivate`") # noqa: E501
1759
+
1760
+ collection_formats = {}
1761
+
1762
+ path_params = {}
1763
+
1764
+ query_params = []
1765
+
1766
+ header_params = {}
1767
+
1768
+ form_params = []
1769
+ local_var_files = {}
1770
+
1771
+ body_params = None
1772
+ if 'body' in params:
1773
+ body_params = params['body']
1774
+ # HTTP header `Accept`
1775
+ header_params['Accept'] = self.api_client.select_header_accept(
1776
+ ['application/json']) # noqa: E501
1777
+
1778
+ # HTTP header `Content-Type`
1779
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1780
+ ['application/json']) # noqa: E501
1781
+
1782
+ # Authentication setting
1783
+ auth_settings = ['basicAuth'] # noqa: E501
1784
+
1785
+ return self.api_client.call_api(
1786
+ '/ws/aus/deactivate', 'PUT',
1787
+ path_params,
1788
+ query_params,
1789
+ header_params,
1790
+ body=body_params,
1791
+ post_params=form_params,
1792
+ files=local_var_files,
1793
+ response_type='list[ContentConfigurationResult]', # noqa: E501
1794
+ auth_settings=auth_settings,
1795
+ async_req=params.get('async_req'),
1796
+ _return_http_data_only=params.get('_return_http_data_only'),
1797
+ _preload_content=params.get('_preload_content', True),
1798
+ _request_timeout=params.get('_request_timeout'),
1799
+ collection_formats=collection_formats)
1800
+
1801
+ def put_aus_md_disable(self, auid, **kwargs): # noqa: E501
1802
+ """Disable AU metadata extraction # noqa: E501
1803
+
1804
+ Disable the metadata extraction for an AU given its identifier # noqa: E501
1805
+ This method makes a synchronous HTTP request by default. To make an
1806
+ asynchronous HTTP request, please pass async_req=True
1807
+ >>> thread = api.put_aus_md_disable(auid, async_req=True)
1808
+ >>> result = thread.get()
1809
+
1810
+ :param async_req bool
1811
+ :param str auid: The identifier of the Archival Units for which metadata extraction is to be disabled (required)
1812
+ :return: RequestAuControlResult
1813
+ If the method is called asynchronously,
1814
+ returns the request thread.
1815
+ """
1816
+ kwargs['_return_http_data_only'] = True
1817
+ if kwargs.get('async_req'):
1818
+ return self.put_aus_md_disable_with_http_info(auid, **kwargs) # noqa: E501
1819
+ else:
1820
+ (data) = self.put_aus_md_disable_with_http_info(auid, **kwargs) # noqa: E501
1821
+ return data
1822
+
1823
+ def put_aus_md_disable_with_http_info(self, auid, **kwargs): # noqa: E501
1824
+ """Disable AU metadata extraction # noqa: E501
1825
+
1826
+ Disable the metadata extraction for an AU given its identifier # noqa: E501
1827
+ This method makes a synchronous HTTP request by default. To make an
1828
+ asynchronous HTTP request, please pass async_req=True
1829
+ >>> thread = api.put_aus_md_disable_with_http_info(auid, async_req=True)
1830
+ >>> result = thread.get()
1831
+
1832
+ :param async_req bool
1833
+ :param str auid: The identifier of the Archival Units for which metadata extraction is to be disabled (required)
1834
+ :return: RequestAuControlResult
1835
+ If the method is called asynchronously,
1836
+ returns the request thread.
1837
+ """
1838
+
1839
+ all_params = ['auid'] # noqa: E501
1840
+ all_params.append('async_req')
1841
+ all_params.append('_return_http_data_only')
1842
+ all_params.append('_preload_content')
1843
+ all_params.append('_request_timeout')
1844
+
1845
+ params = locals()
1846
+ for key, val in six.iteritems(params['kwargs']):
1847
+ if key not in all_params:
1848
+ raise TypeError(
1849
+ "Got an unexpected keyword argument '%s'"
1850
+ " to method put_aus_md_disable" % key
1851
+ )
1852
+ params[key] = val
1853
+ del params['kwargs']
1854
+ # verify the required parameter 'auid' is set
1855
+ if ('auid' not in params or
1856
+ params['auid'] is None):
1857
+ raise ValueError("Missing the required parameter `auid` when calling `put_aus_md_disable`") # noqa: E501
1858
+
1859
+ collection_formats = {}
1860
+
1861
+ path_params = {}
1862
+ if 'auid' in params:
1863
+ path_params['auid'] = params['auid'] # noqa: E501
1864
+
1865
+ query_params = []
1866
+
1867
+ header_params = {}
1868
+
1869
+ form_params = []
1870
+ local_var_files = {}
1871
+
1872
+ body_params = None
1873
+ # HTTP header `Accept`
1874
+ header_params['Accept'] = self.api_client.select_header_accept(
1875
+ ['application/json']) # noqa: E501
1876
+
1877
+ # Authentication setting
1878
+ auth_settings = ['basicAuth'] # noqa: E501
1879
+
1880
+ return self.api_client.call_api(
1881
+ '/aus/{auid}/mddisable', 'PUT',
1882
+ path_params,
1883
+ query_params,
1884
+ header_params,
1885
+ body=body_params,
1886
+ post_params=form_params,
1887
+ files=local_var_files,
1888
+ response_type='RequestAuControlResult', # noqa: E501
1889
+ auth_settings=auth_settings,
1890
+ async_req=params.get('async_req'),
1891
+ _return_http_data_only=params.get('_return_http_data_only'),
1892
+ _preload_content=params.get('_preload_content', True),
1893
+ _request_timeout=params.get('_request_timeout'),
1894
+ collection_formats=collection_formats)
1895
+
1896
+ def put_aus_md_enable(self, auid, **kwargs): # noqa: E501
1897
+ """Enable AU metadata extraction # noqa: E501
1898
+
1899
+ Enable the metadata extraction for an AU given its identifier # noqa: E501
1900
+ This method makes a synchronous HTTP request by default. To make an
1901
+ asynchronous HTTP request, please pass async_req=True
1902
+ >>> thread = api.put_aus_md_enable(auid, async_req=True)
1903
+ >>> result = thread.get()
1904
+
1905
+ :param async_req bool
1906
+ :param str auid: The identifier of the Archival Units for which metadata extraction is to be enabled (required)
1907
+ :return: RequestAuControlResult
1908
+ If the method is called asynchronously,
1909
+ returns the request thread.
1910
+ """
1911
+ kwargs['_return_http_data_only'] = True
1912
+ if kwargs.get('async_req'):
1913
+ return self.put_aus_md_enable_with_http_info(auid, **kwargs) # noqa: E501
1914
+ else:
1915
+ (data) = self.put_aus_md_enable_with_http_info(auid, **kwargs) # noqa: E501
1916
+ return data
1917
+
1918
+ def put_aus_md_enable_with_http_info(self, auid, **kwargs): # noqa: E501
1919
+ """Enable AU metadata extraction # noqa: E501
1920
+
1921
+ Enable the metadata extraction for an AU given its identifier # noqa: E501
1922
+ This method makes a synchronous HTTP request by default. To make an
1923
+ asynchronous HTTP request, please pass async_req=True
1924
+ >>> thread = api.put_aus_md_enable_with_http_info(auid, async_req=True)
1925
+ >>> result = thread.get()
1926
+
1927
+ :param async_req bool
1928
+ :param str auid: The identifier of the Archival Units for which metadata extraction is to be enabled (required)
1929
+ :return: RequestAuControlResult
1930
+ If the method is called asynchronously,
1931
+ returns the request thread.
1932
+ """
1933
+
1934
+ all_params = ['auid'] # noqa: E501
1935
+ all_params.append('async_req')
1936
+ all_params.append('_return_http_data_only')
1937
+ all_params.append('_preload_content')
1938
+ all_params.append('_request_timeout')
1939
+
1940
+ params = locals()
1941
+ for key, val in six.iteritems(params['kwargs']):
1942
+ if key not in all_params:
1943
+ raise TypeError(
1944
+ "Got an unexpected keyword argument '%s'"
1945
+ " to method put_aus_md_enable" % key
1946
+ )
1947
+ params[key] = val
1948
+ del params['kwargs']
1949
+ # verify the required parameter 'auid' is set
1950
+ if ('auid' not in params or
1951
+ params['auid'] is None):
1952
+ raise ValueError("Missing the required parameter `auid` when calling `put_aus_md_enable`") # noqa: E501
1953
+
1954
+ collection_formats = {}
1955
+
1956
+ path_params = {}
1957
+ if 'auid' in params:
1958
+ path_params['auid'] = params['auid'] # noqa: E501
1959
+
1960
+ query_params = []
1961
+
1962
+ header_params = {}
1963
+
1964
+ form_params = []
1965
+ local_var_files = {}
1966
+
1967
+ body_params = None
1968
+ # HTTP header `Accept`
1969
+ header_params['Accept'] = self.api_client.select_header_accept(
1970
+ ['application/json']) # noqa: E501
1971
+
1972
+ # Authentication setting
1973
+ auth_settings = ['basicAuth'] # noqa: E501
1974
+
1975
+ return self.api_client.call_api(
1976
+ '/aus/{auid}/mdenable', 'PUT',
1977
+ path_params,
1978
+ query_params,
1979
+ header_params,
1980
+ body=body_params,
1981
+ post_params=form_params,
1982
+ files=local_var_files,
1983
+ response_type='RequestAuControlResult', # noqa: E501
1984
+ auth_settings=auth_settings,
1985
+ async_req=params.get('async_req'),
1986
+ _return_http_data_only=params.get('_return_http_data_only'),
1987
+ _preload_content=params.get('_preload_content', True),
1988
+ _request_timeout=params.get('_request_timeout'),
1989
+ collection_formats=collection_formats)
1990
+
1991
+ def put_aus_reactivate(self, body, **kwargs): # noqa: E501
1992
+ """Reactivate AUs # noqa: E501
1993
+
1994
+ Reactivate a group of AUs given their identifiers # noqa: E501
1995
+ This method makes a synchronous HTTP request by default. To make an
1996
+ asynchronous HTTP request, please pass async_req=True
1997
+ >>> thread = api.put_aus_reactivate(body, async_req=True)
1998
+ >>> result = thread.get()
1999
+
2000
+ :param async_req bool
2001
+ :param list[str] body: The identifiers of the Archival Units to be reactivated (required)
2002
+ :return: list[ContentConfigurationResult]
2003
+ If the method is called asynchronously,
2004
+ returns the request thread.
2005
+ """
2006
+ kwargs['_return_http_data_only'] = True
2007
+ if kwargs.get('async_req'):
2008
+ return self.put_aus_reactivate_with_http_info(body, **kwargs) # noqa: E501
2009
+ else:
2010
+ (data) = self.put_aus_reactivate_with_http_info(body, **kwargs) # noqa: E501
2011
+ return data
2012
+
2013
+ def put_aus_reactivate_with_http_info(self, body, **kwargs): # noqa: E501
2014
+ """Reactivate AUs # noqa: E501
2015
+
2016
+ Reactivate a group of AUs given their identifiers # noqa: E501
2017
+ This method makes a synchronous HTTP request by default. To make an
2018
+ asynchronous HTTP request, please pass async_req=True
2019
+ >>> thread = api.put_aus_reactivate_with_http_info(body, async_req=True)
2020
+ >>> result = thread.get()
2021
+
2022
+ :param async_req bool
2023
+ :param list[str] body: The identifiers of the Archival Units to be reactivated (required)
2024
+ :return: list[ContentConfigurationResult]
2025
+ If the method is called asynchronously,
2026
+ returns the request thread.
2027
+ """
2028
+
2029
+ all_params = ['body'] # noqa: E501
2030
+ all_params.append('async_req')
2031
+ all_params.append('_return_http_data_only')
2032
+ all_params.append('_preload_content')
2033
+ all_params.append('_request_timeout')
2034
+
2035
+ params = locals()
2036
+ for key, val in six.iteritems(params['kwargs']):
2037
+ if key not in all_params:
2038
+ raise TypeError(
2039
+ "Got an unexpected keyword argument '%s'"
2040
+ " to method put_aus_reactivate" % key
2041
+ )
2042
+ params[key] = val
2043
+ del params['kwargs']
2044
+ # verify the required parameter 'body' is set
2045
+ if ('body' not in params or
2046
+ params['body'] is None):
2047
+ raise ValueError("Missing the required parameter `body` when calling `put_aus_reactivate`") # noqa: E501
2048
+
2049
+ collection_formats = {}
2050
+
2051
+ path_params = {}
2052
+
2053
+ query_params = []
2054
+
2055
+ header_params = {}
2056
+
2057
+ form_params = []
2058
+ local_var_files = {}
2059
+
2060
+ body_params = None
2061
+ if 'body' in params:
2062
+ body_params = params['body']
2063
+ # HTTP header `Accept`
2064
+ header_params['Accept'] = self.api_client.select_header_accept(
2065
+ ['application/json']) # noqa: E501
2066
+
2067
+ # HTTP header `Content-Type`
2068
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2069
+ ['application/json']) # noqa: E501
2070
+
2071
+ # Authentication setting
2072
+ auth_settings = ['basicAuth'] # noqa: E501
2073
+
2074
+ return self.api_client.call_api(
2075
+ '/ws/aus/reactivate', 'PUT',
2076
+ path_params,
2077
+ query_params,
2078
+ header_params,
2079
+ body=body_params,
2080
+ post_params=form_params,
2081
+ files=local_var_files,
2082
+ response_type='list[ContentConfigurationResult]', # noqa: E501
2083
+ auth_settings=auth_settings,
2084
+ async_req=params.get('async_req'),
2085
+ _return_http_data_only=params.get('_return_http_data_only'),
2086
+ _preload_content=params.get('_preload_content', True),
2087
+ _request_timeout=params.get('_request_timeout'),
2088
+ collection_formats=collection_formats)
2089
+
2090
+ def put_no_au_peers(self, body, auid, **kwargs): # noqa: E501
2091
+ """Update the NoAuPeerSet object of an AU # noqa: E501
2092
+
2093
+ Update the NoAuPeerSet object of an AU given the AU identifier # noqa: E501
2094
+ This method makes a synchronous HTTP request by default. To make an
2095
+ asynchronous HTTP request, please pass async_req=True
2096
+ >>> thread = api.put_no_au_peers(body, auid, async_req=True)
2097
+ >>> result = thread.get()
2098
+
2099
+ :param async_req bool
2100
+ :param str body: The parts of the Archival Unit NoAuPeerSet object to be updated (required)
2101
+ :param str auid: The identifier of the AU for which the NoAuPeerSet object is to be updated (required)
2102
+ :param str x_lockss_request_cookie: The LOCKSS-specific request cookie header
2103
+ :return: None
2104
+ If the method is called asynchronously,
2105
+ returns the request thread.
2106
+ """
2107
+ kwargs['_return_http_data_only'] = True
2108
+ if kwargs.get('async_req'):
2109
+ return self.put_no_au_peers_with_http_info(body, auid, **kwargs) # noqa: E501
2110
+ else:
2111
+ (data) = self.put_no_au_peers_with_http_info(body, auid, **kwargs) # noqa: E501
2112
+ return data
2113
+
2114
+ def put_no_au_peers_with_http_info(self, body, auid, **kwargs): # noqa: E501
2115
+ """Update the NoAuPeerSet object of an AU # noqa: E501
2116
+
2117
+ Update the NoAuPeerSet object of an AU given the AU identifier # noqa: E501
2118
+ This method makes a synchronous HTTP request by default. To make an
2119
+ asynchronous HTTP request, please pass async_req=True
2120
+ >>> thread = api.put_no_au_peers_with_http_info(body, auid, async_req=True)
2121
+ >>> result = thread.get()
2122
+
2123
+ :param async_req bool
2124
+ :param str body: The parts of the Archival Unit NoAuPeerSet object to be updated (required)
2125
+ :param str auid: The identifier of the AU for which the NoAuPeerSet object is to be updated (required)
2126
+ :param str x_lockss_request_cookie: The LOCKSS-specific request cookie header
2127
+ :return: None
2128
+ If the method is called asynchronously,
2129
+ returns the request thread.
2130
+ """
2131
+
2132
+ all_params = ['body', 'auid', 'x_lockss_request_cookie'] # noqa: E501
2133
+ all_params.append('async_req')
2134
+ all_params.append('_return_http_data_only')
2135
+ all_params.append('_preload_content')
2136
+ all_params.append('_request_timeout')
2137
+
2138
+ params = locals()
2139
+ for key, val in six.iteritems(params['kwargs']):
2140
+ if key not in all_params:
2141
+ raise TypeError(
2142
+ "Got an unexpected keyword argument '%s'"
2143
+ " to method put_no_au_peers" % key
2144
+ )
2145
+ params[key] = val
2146
+ del params['kwargs']
2147
+ # verify the required parameter 'body' is set
2148
+ if ('body' not in params or
2149
+ params['body'] is None):
2150
+ raise ValueError("Missing the required parameter `body` when calling `put_no_au_peers`") # noqa: E501
2151
+ # verify the required parameter 'auid' is set
2152
+ if ('auid' not in params or
2153
+ params['auid'] is None):
2154
+ raise ValueError("Missing the required parameter `auid` when calling `put_no_au_peers`") # noqa: E501
2155
+
2156
+ collection_formats = {}
2157
+
2158
+ path_params = {}
2159
+ if 'auid' in params:
2160
+ path_params['auid'] = params['auid'] # noqa: E501
2161
+
2162
+ query_params = []
2163
+
2164
+ header_params = {}
2165
+ if 'x_lockss_request_cookie' in params:
2166
+ header_params['X-Lockss-Request-Cookie'] = params['x_lockss_request_cookie'] # noqa: E501
2167
+
2168
+ form_params = []
2169
+ local_var_files = {}
2170
+
2171
+ body_params = None
2172
+ if 'body' in params:
2173
+ body_params = params['body']
2174
+ # HTTP header `Content-Type`
2175
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2176
+ ['application/json']) # noqa: E501
2177
+
2178
+ # Authentication setting
2179
+ auth_settings = ['basicAuth'] # noqa: E501
2180
+
2181
+ return self.api_client.call_api(
2182
+ '/noaupeers/{auid}', 'PUT',
2183
+ path_params,
2184
+ query_params,
2185
+ header_params,
2186
+ body=body_params,
2187
+ post_params=form_params,
2188
+ files=local_var_files,
2189
+ response_type=None, # noqa: E501
2190
+ auth_settings=auth_settings,
2191
+ async_req=params.get('async_req'),
2192
+ _return_http_data_only=params.get('_return_http_data_only'),
2193
+ _preload_content=params.get('_preload_content', True),
2194
+ _request_timeout=params.get('_request_timeout'),
2195
+ collection_formats=collection_formats)