elabapi-python 5.4.1__py3-none-any.whl → 5.5.0__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.
@@ -30,6 +30,7 @@ from elabapi_python.api.exports_api import ExportsApi
30
30
  from elabapi_python.api.extra_fields_keys_api import ExtraFieldsKeysApi
31
31
  from elabapi_python.api.favorite_tags_api import FavoriteTagsApi
32
32
  from elabapi_python.api.idps_api import IdpsApi
33
+ from elabapi_python.api.idps_sources_api import IdpsSourcesApi
33
34
  from elabapi_python.api.import_api import ImportApi
34
35
  from elabapi_python.api.info_api import InfoApi
35
36
  from elabapi_python.api.items_api import ItemsApi
@@ -113,8 +114,11 @@ from elabapi_python.models.id_uploads_body import IdUploadsBody
113
114
  from elabapi_python.models.idp import Idp
114
115
  from elabapi_python.models.idp_cert import IdpCert
115
116
  from elabapi_python.models.idp_endpoint import IdpEndpoint
117
+ from elabapi_python.models.idp_source import IdpSource
116
118
  from elabapi_python.models.idps_body import IdpsBody
117
119
  from elabapi_python.models.idps_id_body import IdpsIdBody
120
+ from elabapi_python.models.idps_sources_body import IdpsSourcesBody
121
+ from elabapi_python.models.idps_sources_id_body import IdpsSourcesIdBody
118
122
  from elabapi_python.models.import_body import ImportBody
119
123
  from elabapi_python.models.inline_response200 import InlineResponse200
120
124
  from elabapi_python.models.inline_response2001 import InlineResponse2001
@@ -18,6 +18,7 @@ from elabapi_python.api.exports_api import ExportsApi
18
18
  from elabapi_python.api.extra_fields_keys_api import ExtraFieldsKeysApi
19
19
  from elabapi_python.api.favorite_tags_api import FavoriteTagsApi
20
20
  from elabapi_python.api.idps_api import IdpsApi
21
+ from elabapi_python.api.idps_sources_api import IdpsSourcesApi
21
22
  from elabapi_python.api.import_api import ImportApi
22
23
  from elabapi_python.api.info_api import InfoApi
23
24
  from elabapi_python.api.items_api import ItemsApi
@@ -0,0 +1,500 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ eLabFTW REST API v2 Documentation
5
+
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+
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 elabapi_python.api_client import ApiClient
21
+
22
+
23
+ class IdpsSourcesApi(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 delete_idps_source(self, id, **kwargs): # noqa: E501
36
+ """Delete an idp source. # noqa: E501
37
+
38
+ The idp source gets deleted. # 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.delete_idps_source(id, async_req=True)
42
+ >>> result = thread.get()
43
+
44
+ :param async_req bool
45
+ :param int id: ID of the idps source (required)
46
+ :return: None
47
+ If the method is called asynchronously,
48
+ returns the request thread.
49
+ """
50
+ kwargs['_return_http_data_only'] = True
51
+ if kwargs.get('async_req'):
52
+ return self.delete_idps_source_with_http_info(id, **kwargs) # noqa: E501
53
+ else:
54
+ (data) = self.delete_idps_source_with_http_info(id, **kwargs) # noqa: E501
55
+ return data
56
+
57
+ def delete_idps_source_with_http_info(self, id, **kwargs): # noqa: E501
58
+ """Delete an idp source. # noqa: E501
59
+
60
+ The idp source gets deleted. # noqa: E501
61
+ This method makes a synchronous HTTP request by default. To make an
62
+ asynchronous HTTP request, please pass async_req=True
63
+ >>> thread = api.delete_idps_source_with_http_info(id, async_req=True)
64
+ >>> result = thread.get()
65
+
66
+ :param async_req bool
67
+ :param int id: ID of the idps source (required)
68
+ :return: None
69
+ If the method is called asynchronously,
70
+ returns the request thread.
71
+ """
72
+
73
+ all_params = ['id'] # noqa: E501
74
+ all_params.append('async_req')
75
+ all_params.append('_return_http_data_only')
76
+ all_params.append('_preload_content')
77
+ all_params.append('_request_timeout')
78
+
79
+ params = locals()
80
+ for key, val in six.iteritems(params['kwargs']):
81
+ if key not in all_params:
82
+ raise TypeError(
83
+ "Got an unexpected keyword argument '%s'"
84
+ " to method delete_idps_source" % key
85
+ )
86
+ params[key] = val
87
+ del params['kwargs']
88
+ # verify the required parameter 'id' is set
89
+ if ('id' not in params or
90
+ params['id'] is None):
91
+ raise ValueError("Missing the required parameter `id` when calling `delete_idps_source`") # noqa: E501
92
+
93
+ collection_formats = {}
94
+
95
+ path_params = {}
96
+ if 'id' in params:
97
+ path_params['id'] = params['id'] # noqa: E501
98
+
99
+ query_params = []
100
+
101
+ header_params = {}
102
+
103
+ form_params = []
104
+ local_var_files = {}
105
+
106
+ body_params = None
107
+ # HTTP header `Accept`
108
+ header_params['Accept'] = self.api_client.select_header_accept(
109
+ ['application/json']) # noqa: E501
110
+
111
+ # Authentication setting
112
+ auth_settings = ['token'] # noqa: E501
113
+
114
+ return self.api_client.call_api(
115
+ '/idps_sources/{id}', 'DELETE',
116
+ path_params,
117
+ query_params,
118
+ header_params,
119
+ body=body_params,
120
+ post_params=form_params,
121
+ files=local_var_files,
122
+ response_type=None, # noqa: E501
123
+ auth_settings=auth_settings,
124
+ async_req=params.get('async_req'),
125
+ _return_http_data_only=params.get('_return_http_data_only'),
126
+ _preload_content=params.get('_preload_content', True),
127
+ _request_timeout=params.get('_request_timeout'),
128
+ collection_formats=collection_formats)
129
+
130
+ def patch_idps_source(self, id, **kwargs): # noqa: E501
131
+ """Patch an idp source. # noqa: E501
132
+
133
+ This method makes a synchronous HTTP request by default. To make an
134
+ asynchronous HTTP request, please pass async_req=True
135
+ >>> thread = api.patch_idps_source(id, async_req=True)
136
+ >>> result = thread.get()
137
+
138
+ :param async_req bool
139
+ :param int id: ID of the idps source (required)
140
+ :param IdpsSourcesIdBody body: Parameters for patching an idp source.
141
+ :return: IdpSource
142
+ If the method is called asynchronously,
143
+ returns the request thread.
144
+ """
145
+ kwargs['_return_http_data_only'] = True
146
+ if kwargs.get('async_req'):
147
+ return self.patch_idps_source_with_http_info(id, **kwargs) # noqa: E501
148
+ else:
149
+ (data) = self.patch_idps_source_with_http_info(id, **kwargs) # noqa: E501
150
+ return data
151
+
152
+ def patch_idps_source_with_http_info(self, id, **kwargs): # noqa: E501
153
+ """Patch an idp source. # noqa: E501
154
+
155
+ This method makes a synchronous HTTP request by default. To make an
156
+ asynchronous HTTP request, please pass async_req=True
157
+ >>> thread = api.patch_idps_source_with_http_info(id, async_req=True)
158
+ >>> result = thread.get()
159
+
160
+ :param async_req bool
161
+ :param int id: ID of the idps source (required)
162
+ :param IdpsSourcesIdBody body: Parameters for patching an idp source.
163
+ :return: IdpSource
164
+ If the method is called asynchronously,
165
+ returns the request thread.
166
+ """
167
+
168
+ all_params = ['id', 'body'] # noqa: E501
169
+ all_params.append('async_req')
170
+ all_params.append('_return_http_data_only')
171
+ all_params.append('_preload_content')
172
+ all_params.append('_request_timeout')
173
+
174
+ params = locals()
175
+ for key, val in six.iteritems(params['kwargs']):
176
+ if key not in all_params:
177
+ raise TypeError(
178
+ "Got an unexpected keyword argument '%s'"
179
+ " to method patch_idps_source" % key
180
+ )
181
+ params[key] = val
182
+ del params['kwargs']
183
+ # verify the required parameter 'id' is set
184
+ if ('id' not in params or
185
+ params['id'] is None):
186
+ raise ValueError("Missing the required parameter `id` when calling `patch_idps_source`") # noqa: E501
187
+
188
+ collection_formats = {}
189
+
190
+ path_params = {}
191
+ if 'id' in params:
192
+ path_params['id'] = params['id'] # noqa: E501
193
+
194
+ query_params = []
195
+
196
+ header_params = {}
197
+
198
+ form_params = []
199
+ local_var_files = {}
200
+
201
+ body_params = None
202
+ if 'body' in params:
203
+ body_params = params['body']
204
+ # HTTP header `Accept`
205
+ header_params['Accept'] = self.api_client.select_header_accept(
206
+ ['application/json']) # noqa: E501
207
+
208
+ # HTTP header `Content-Type`
209
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
210
+ ['application/json']) # noqa: E501
211
+
212
+ # Authentication setting
213
+ auth_settings = ['token'] # noqa: E501
214
+
215
+ return self.api_client.call_api(
216
+ '/idps_sources/{id}', 'PATCH',
217
+ path_params,
218
+ query_params,
219
+ header_params,
220
+ body=body_params,
221
+ post_params=form_params,
222
+ files=local_var_files,
223
+ response_type='IdpSource', # noqa: E501
224
+ auth_settings=auth_settings,
225
+ async_req=params.get('async_req'),
226
+ _return_http_data_only=params.get('_return_http_data_only'),
227
+ _preload_content=params.get('_preload_content', True),
228
+ _request_timeout=params.get('_request_timeout'),
229
+ collection_formats=collection_formats)
230
+
231
+ def post_idp_source(self, **kwargs): # noqa: E501
232
+ """Create an idp source. # noqa: E501
233
+
234
+ This method makes a synchronous HTTP request by default. To make an
235
+ asynchronous HTTP request, please pass async_req=True
236
+ >>> thread = api.post_idp_source(async_req=True)
237
+ >>> result = thread.get()
238
+
239
+ :param async_req bool
240
+ :param IdpsSourcesBody body: Parameters for creating an idp source.
241
+ :return: None
242
+ If the method is called asynchronously,
243
+ returns the request thread.
244
+ """
245
+ kwargs['_return_http_data_only'] = True
246
+ if kwargs.get('async_req'):
247
+ return self.post_idp_source_with_http_info(**kwargs) # noqa: E501
248
+ else:
249
+ (data) = self.post_idp_source_with_http_info(**kwargs) # noqa: E501
250
+ return data
251
+
252
+ def post_idp_source_with_http_info(self, **kwargs): # noqa: E501
253
+ """Create an idp source. # noqa: E501
254
+
255
+ This method makes a synchronous HTTP request by default. To make an
256
+ asynchronous HTTP request, please pass async_req=True
257
+ >>> thread = api.post_idp_source_with_http_info(async_req=True)
258
+ >>> result = thread.get()
259
+
260
+ :param async_req bool
261
+ :param IdpsSourcesBody body: Parameters for creating an idp source.
262
+ :return: None
263
+ If the method is called asynchronously,
264
+ returns the request thread.
265
+ """
266
+
267
+ all_params = ['body'] # noqa: E501
268
+ all_params.append('async_req')
269
+ all_params.append('_return_http_data_only')
270
+ all_params.append('_preload_content')
271
+ all_params.append('_request_timeout')
272
+
273
+ params = locals()
274
+ for key, val in six.iteritems(params['kwargs']):
275
+ if key not in all_params:
276
+ raise TypeError(
277
+ "Got an unexpected keyword argument '%s'"
278
+ " to method post_idp_source" % key
279
+ )
280
+ params[key] = val
281
+ del params['kwargs']
282
+
283
+ collection_formats = {}
284
+
285
+ path_params = {}
286
+
287
+ query_params = []
288
+
289
+ header_params = {}
290
+
291
+ form_params = []
292
+ local_var_files = {}
293
+
294
+ body_params = None
295
+ if 'body' in params:
296
+ body_params = params['body']
297
+ # HTTP header `Accept`
298
+ header_params['Accept'] = self.api_client.select_header_accept(
299
+ ['application/json']) # noqa: E501
300
+
301
+ # HTTP header `Content-Type`
302
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
303
+ ['application/json']) # noqa: E501
304
+
305
+ # Authentication setting
306
+ auth_settings = ['token'] # noqa: E501
307
+
308
+ return self.api_client.call_api(
309
+ '/idps_sources', 'POST',
310
+ path_params,
311
+ query_params,
312
+ header_params,
313
+ body=body_params,
314
+ post_params=form_params,
315
+ files=local_var_files,
316
+ response_type=None, # noqa: E501
317
+ auth_settings=auth_settings,
318
+ async_req=params.get('async_req'),
319
+ _return_http_data_only=params.get('_return_http_data_only'),
320
+ _preload_content=params.get('_preload_content', True),
321
+ _request_timeout=params.get('_request_timeout'),
322
+ collection_formats=collection_formats)
323
+
324
+ def read_idps_source(self, id, **kwargs): # noqa: E501
325
+ """Read an IdPs source # noqa: E501
326
+
327
+ This method makes a synchronous HTTP request by default. To make an
328
+ asynchronous HTTP request, please pass async_req=True
329
+ >>> thread = api.read_idps_source(id, async_req=True)
330
+ >>> result = thread.get()
331
+
332
+ :param async_req bool
333
+ :param int id: ID of the idps source (required)
334
+ :return: IdpSource
335
+ If the method is called asynchronously,
336
+ returns the request thread.
337
+ """
338
+ kwargs['_return_http_data_only'] = True
339
+ if kwargs.get('async_req'):
340
+ return self.read_idps_source_with_http_info(id, **kwargs) # noqa: E501
341
+ else:
342
+ (data) = self.read_idps_source_with_http_info(id, **kwargs) # noqa: E501
343
+ return data
344
+
345
+ def read_idps_source_with_http_info(self, id, **kwargs): # noqa: E501
346
+ """Read an IdPs source # noqa: E501
347
+
348
+ This method makes a synchronous HTTP request by default. To make an
349
+ asynchronous HTTP request, please pass async_req=True
350
+ >>> thread = api.read_idps_source_with_http_info(id, async_req=True)
351
+ >>> result = thread.get()
352
+
353
+ :param async_req bool
354
+ :param int id: ID of the idps source (required)
355
+ :return: IdpSource
356
+ If the method is called asynchronously,
357
+ returns the request thread.
358
+ """
359
+
360
+ all_params = ['id'] # noqa: E501
361
+ all_params.append('async_req')
362
+ all_params.append('_return_http_data_only')
363
+ all_params.append('_preload_content')
364
+ all_params.append('_request_timeout')
365
+
366
+ params = locals()
367
+ for key, val in six.iteritems(params['kwargs']):
368
+ if key not in all_params:
369
+ raise TypeError(
370
+ "Got an unexpected keyword argument '%s'"
371
+ " to method read_idps_source" % key
372
+ )
373
+ params[key] = val
374
+ del params['kwargs']
375
+ # verify the required parameter 'id' is set
376
+ if ('id' not in params or
377
+ params['id'] is None):
378
+ raise ValueError("Missing the required parameter `id` when calling `read_idps_source`") # noqa: E501
379
+
380
+ collection_formats = {}
381
+
382
+ path_params = {}
383
+ if 'id' in params:
384
+ path_params['id'] = params['id'] # noqa: E501
385
+
386
+ query_params = []
387
+
388
+ header_params = {}
389
+
390
+ form_params = []
391
+ local_var_files = {}
392
+
393
+ body_params = None
394
+ # HTTP header `Accept`
395
+ header_params['Accept'] = self.api_client.select_header_accept(
396
+ ['application/json']) # noqa: E501
397
+
398
+ # Authentication setting
399
+ auth_settings = ['token'] # noqa: E501
400
+
401
+ return self.api_client.call_api(
402
+ '/idps_sources/{id}', 'GET',
403
+ path_params,
404
+ query_params,
405
+ header_params,
406
+ body=body_params,
407
+ post_params=form_params,
408
+ files=local_var_files,
409
+ response_type='IdpSource', # noqa: E501
410
+ auth_settings=auth_settings,
411
+ async_req=params.get('async_req'),
412
+ _return_http_data_only=params.get('_return_http_data_only'),
413
+ _preload_content=params.get('_preload_content', True),
414
+ _request_timeout=params.get('_request_timeout'),
415
+ collection_formats=collection_formats)
416
+
417
+ def read_idps_sources(self, **kwargs): # noqa: E501
418
+ """Read all IDPs sources # noqa: E501
419
+
420
+ This method makes a synchronous HTTP request by default. To make an
421
+ asynchronous HTTP request, please pass async_req=True
422
+ >>> thread = api.read_idps_sources(async_req=True)
423
+ >>> result = thread.get()
424
+
425
+ :param async_req bool
426
+ :return: list[IdpSource]
427
+ If the method is called asynchronously,
428
+ returns the request thread.
429
+ """
430
+ kwargs['_return_http_data_only'] = True
431
+ if kwargs.get('async_req'):
432
+ return self.read_idps_sources_with_http_info(**kwargs) # noqa: E501
433
+ else:
434
+ (data) = self.read_idps_sources_with_http_info(**kwargs) # noqa: E501
435
+ return data
436
+
437
+ def read_idps_sources_with_http_info(self, **kwargs): # noqa: E501
438
+ """Read all IDPs sources # noqa: E501
439
+
440
+ This method makes a synchronous HTTP request by default. To make an
441
+ asynchronous HTTP request, please pass async_req=True
442
+ >>> thread = api.read_idps_sources_with_http_info(async_req=True)
443
+ >>> result = thread.get()
444
+
445
+ :param async_req bool
446
+ :return: list[IdpSource]
447
+ If the method is called asynchronously,
448
+ returns the request thread.
449
+ """
450
+
451
+ all_params = [] # noqa: E501
452
+ all_params.append('async_req')
453
+ all_params.append('_return_http_data_only')
454
+ all_params.append('_preload_content')
455
+ all_params.append('_request_timeout')
456
+
457
+ params = locals()
458
+ for key, val in six.iteritems(params['kwargs']):
459
+ if key not in all_params:
460
+ raise TypeError(
461
+ "Got an unexpected keyword argument '%s'"
462
+ " to method read_idps_sources" % key
463
+ )
464
+ params[key] = val
465
+ del params['kwargs']
466
+
467
+ collection_formats = {}
468
+
469
+ path_params = {}
470
+
471
+ query_params = []
472
+
473
+ header_params = {}
474
+
475
+ form_params = []
476
+ local_var_files = {}
477
+
478
+ body_params = None
479
+ # HTTP header `Accept`
480
+ header_params['Accept'] = self.api_client.select_header_accept(
481
+ ['application/json']) # noqa: E501
482
+
483
+ # Authentication setting
484
+ auth_settings = ['token'] # noqa: E501
485
+
486
+ return self.api_client.call_api(
487
+ '/idps_sources', 'GET',
488
+ path_params,
489
+ query_params,
490
+ header_params,
491
+ body=body_params,
492
+ post_params=form_params,
493
+ files=local_var_files,
494
+ response_type='list[IdpSource]', # noqa: E501
495
+ auth_settings=auth_settings,
496
+ async_req=params.get('async_req'),
497
+ _return_http_data_only=params.get('_return_http_data_only'),
498
+ _preload_content=params.get('_preload_content', True),
499
+ _request_timeout=params.get('_request_timeout'),
500
+ collection_formats=collection_formats)
@@ -72,7 +72,7 @@ class ApiClient(object):
72
72
  self.default_headers[header_name] = header_value
73
73
  self.cookie = cookie
74
74
  # Set default User-Agent.
75
- self.user_agent = 'Swagger-Codegen/5.4.1/python'
75
+ self.user_agent = 'Swagger-Codegen/5.5.0/python'
76
76
 
77
77
  def __del__(self):
78
78
  self.pool.close()
@@ -250,5 +250,5 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
250
250
  "OS: {env}\n"\
251
251
  "Python Version: {pyversion}\n"\
252
252
  "Version of the API: 2.0.0\n"\
253
- "SDK Package Version: 5.4.1".\
253
+ "SDK Package Version: 5.5.0".\
254
254
  format(env=sys.platform, pyversion=sys.version)
@@ -70,8 +70,11 @@ from elabapi_python.models.id_uploads_body import IdUploadsBody
70
70
  from elabapi_python.models.idp import Idp
71
71
  from elabapi_python.models.idp_cert import IdpCert
72
72
  from elabapi_python.models.idp_endpoint import IdpEndpoint
73
+ from elabapi_python.models.idp_source import IdpSource
73
74
  from elabapi_python.models.idps_body import IdpsBody
74
75
  from elabapi_python.models.idps_id_body import IdpsIdBody
76
+ from elabapi_python.models.idps_sources_body import IdpsSourcesBody
77
+ from elabapi_python.models.idps_sources_id_body import IdpsSourcesIdBody
75
78
  from elabapi_python.models.import_body import ImportBody
76
79
  from elabapi_python.models.inline_response200 import InlineResponse200
77
80
  from elabapi_python.models.inline_response2001 import InlineResponse2001
@@ -0,0 +1,240 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ eLabFTW REST API v2 Documentation
5
+
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class IdpSource(object):
19
+ """NOTE: This class is auto generated by the swagger code generator program.
20
+
21
+ Do not edit the class manually.
22
+ """
23
+ """
24
+ Attributes:
25
+ swagger_types (dict): The key is attribute name
26
+ and the value is attribute type.
27
+ attribute_map (dict): The key is attribute name
28
+ and the value is json key in definition.
29
+ """
30
+ swagger_types = {
31
+ 'id': 'int',
32
+ 'url': 'str',
33
+ 'auto_refresh': 'int',
34
+ 'last_fetched_at': 'datetime',
35
+ 'idps_count': 'int',
36
+ 'idps_count_enabled': 'int'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'id': 'id',
41
+ 'url': 'url',
42
+ 'auto_refresh': 'auto_refresh',
43
+ 'last_fetched_at': 'last_fetched_at',
44
+ 'idps_count': 'idps_count',
45
+ 'idps_count_enabled': 'idps_count_enabled'
46
+ }
47
+
48
+ def __init__(self, id=None, url=None, auto_refresh=None, last_fetched_at=None, idps_count=None, idps_count_enabled=None): # noqa: E501
49
+ """IdpSource - a model defined in Swagger""" # noqa: E501
50
+ self._id = None
51
+ self._url = None
52
+ self._auto_refresh = None
53
+ self._last_fetched_at = None
54
+ self._idps_count = None
55
+ self._idps_count_enabled = None
56
+ self.discriminator = None
57
+ if id is not None:
58
+ self.id = id
59
+ if url is not None:
60
+ self.url = url
61
+ if auto_refresh is not None:
62
+ self.auto_refresh = auto_refresh
63
+ if last_fetched_at is not None:
64
+ self.last_fetched_at = last_fetched_at
65
+ if idps_count is not None:
66
+ self.idps_count = idps_count
67
+ if idps_count_enabled is not None:
68
+ self.idps_count_enabled = idps_count_enabled
69
+
70
+ @property
71
+ def id(self):
72
+ """Gets the id of this IdpSource. # noqa: E501
73
+
74
+
75
+ :return: The id of this IdpSource. # noqa: E501
76
+ :rtype: int
77
+ """
78
+ return self._id
79
+
80
+ @id.setter
81
+ def id(self, id):
82
+ """Sets the id of this IdpSource.
83
+
84
+
85
+ :param id: The id of this IdpSource. # noqa: E501
86
+ :type: int
87
+ """
88
+
89
+ self._id = id
90
+
91
+ @property
92
+ def url(self):
93
+ """Gets the url of this IdpSource. # noqa: E501
94
+
95
+
96
+ :return: The url of this IdpSource. # noqa: E501
97
+ :rtype: str
98
+ """
99
+ return self._url
100
+
101
+ @url.setter
102
+ def url(self, url):
103
+ """Sets the url of this IdpSource.
104
+
105
+
106
+ :param url: The url of this IdpSource. # noqa: E501
107
+ :type: str
108
+ """
109
+
110
+ self._url = url
111
+
112
+ @property
113
+ def auto_refresh(self):
114
+ """Gets the auto_refresh of this IdpSource. # noqa: E501
115
+
116
+
117
+ :return: The auto_refresh of this IdpSource. # noqa: E501
118
+ :rtype: int
119
+ """
120
+ return self._auto_refresh
121
+
122
+ @auto_refresh.setter
123
+ def auto_refresh(self, auto_refresh):
124
+ """Sets the auto_refresh of this IdpSource.
125
+
126
+
127
+ :param auto_refresh: The auto_refresh of this IdpSource. # noqa: E501
128
+ :type: int
129
+ """
130
+
131
+ self._auto_refresh = auto_refresh
132
+
133
+ @property
134
+ def last_fetched_at(self):
135
+ """Gets the last_fetched_at of this IdpSource. # noqa: E501
136
+
137
+
138
+ :return: The last_fetched_at of this IdpSource. # noqa: E501
139
+ :rtype: datetime
140
+ """
141
+ return self._last_fetched_at
142
+
143
+ @last_fetched_at.setter
144
+ def last_fetched_at(self, last_fetched_at):
145
+ """Sets the last_fetched_at of this IdpSource.
146
+
147
+
148
+ :param last_fetched_at: The last_fetched_at of this IdpSource. # noqa: E501
149
+ :type: datetime
150
+ """
151
+
152
+ self._last_fetched_at = last_fetched_at
153
+
154
+ @property
155
+ def idps_count(self):
156
+ """Gets the idps_count of this IdpSource. # noqa: E501
157
+
158
+
159
+ :return: The idps_count of this IdpSource. # noqa: E501
160
+ :rtype: int
161
+ """
162
+ return self._idps_count
163
+
164
+ @idps_count.setter
165
+ def idps_count(self, idps_count):
166
+ """Sets the idps_count of this IdpSource.
167
+
168
+
169
+ :param idps_count: The idps_count of this IdpSource. # noqa: E501
170
+ :type: int
171
+ """
172
+
173
+ self._idps_count = idps_count
174
+
175
+ @property
176
+ def idps_count_enabled(self):
177
+ """Gets the idps_count_enabled of this IdpSource. # noqa: E501
178
+
179
+
180
+ :return: The idps_count_enabled of this IdpSource. # noqa: E501
181
+ :rtype: int
182
+ """
183
+ return self._idps_count_enabled
184
+
185
+ @idps_count_enabled.setter
186
+ def idps_count_enabled(self, idps_count_enabled):
187
+ """Sets the idps_count_enabled of this IdpSource.
188
+
189
+
190
+ :param idps_count_enabled: The idps_count_enabled of this IdpSource. # noqa: E501
191
+ :type: int
192
+ """
193
+
194
+ self._idps_count_enabled = idps_count_enabled
195
+
196
+ def to_dict(self):
197
+ """Returns the model properties as a dict"""
198
+ result = {}
199
+
200
+ for attr, _ in six.iteritems(self.swagger_types):
201
+ value = getattr(self, attr)
202
+ if isinstance(value, list):
203
+ result[attr] = list(map(
204
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
205
+ value
206
+ ))
207
+ elif hasattr(value, "to_dict"):
208
+ result[attr] = value.to_dict()
209
+ elif isinstance(value, dict):
210
+ result[attr] = dict(map(
211
+ lambda item: (item[0], item[1].to_dict())
212
+ if hasattr(item[1], "to_dict") else item,
213
+ value.items()
214
+ ))
215
+ else:
216
+ result[attr] = value
217
+ if issubclass(IdpSource, dict):
218
+ for key, value in self.items():
219
+ result[key] = value
220
+
221
+ return result
222
+
223
+ def to_str(self):
224
+ """Returns the string representation of the model"""
225
+ return pprint.pformat(self.to_dict())
226
+
227
+ def __repr__(self):
228
+ """For `print` and `pprint`"""
229
+ return self.to_str()
230
+
231
+ def __eq__(self, other):
232
+ """Returns true if both objects are equal"""
233
+ if not isinstance(other, IdpSource):
234
+ return False
235
+
236
+ return self.__dict__ == other.__dict__
237
+
238
+ def __ne__(self, other):
239
+ """Returns true if both objects are not equal"""
240
+ return not self == other
@@ -0,0 +1,113 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ eLabFTW REST API v2 Documentation
5
+
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class IdpsSourcesBody(object):
19
+ """NOTE: This class is auto generated by the swagger code generator program.
20
+
21
+ Do not edit the class manually.
22
+ """
23
+ """
24
+ Attributes:
25
+ swagger_types (dict): The key is attribute name
26
+ and the value is attribute type.
27
+ attribute_map (dict): The key is attribute name
28
+ and the value is json key in definition.
29
+ """
30
+ swagger_types = {
31
+ 'url': 'str'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'url': 'url'
36
+ }
37
+
38
+ def __init__(self, url=None): # noqa: E501
39
+ """IdpsSourcesBody - a model defined in Swagger""" # noqa: E501
40
+ self._url = None
41
+ self.discriminator = None
42
+ self.url = url
43
+
44
+ @property
45
+ def url(self):
46
+ """Gets the url of this IdpsSourcesBody. # noqa: E501
47
+
48
+ URL to the public XML metadata file # noqa: E501
49
+
50
+ :return: The url of this IdpsSourcesBody. # noqa: E501
51
+ :rtype: str
52
+ """
53
+ return self._url
54
+
55
+ @url.setter
56
+ def url(self, url):
57
+ """Sets the url of this IdpsSourcesBody.
58
+
59
+ URL to the public XML metadata file # noqa: E501
60
+
61
+ :param url: The url of this IdpsSourcesBody. # noqa: E501
62
+ :type: str
63
+ """
64
+ if url is None:
65
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
66
+
67
+ self._url = url
68
+
69
+ def to_dict(self):
70
+ """Returns the model properties as a dict"""
71
+ result = {}
72
+
73
+ for attr, _ in six.iteritems(self.swagger_types):
74
+ value = getattr(self, attr)
75
+ if isinstance(value, list):
76
+ result[attr] = list(map(
77
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
78
+ value
79
+ ))
80
+ elif hasattr(value, "to_dict"):
81
+ result[attr] = value.to_dict()
82
+ elif isinstance(value, dict):
83
+ result[attr] = dict(map(
84
+ lambda item: (item[0], item[1].to_dict())
85
+ if hasattr(item[1], "to_dict") else item,
86
+ value.items()
87
+ ))
88
+ else:
89
+ result[attr] = value
90
+ if issubclass(IdpsSourcesBody, dict):
91
+ for key, value in self.items():
92
+ result[key] = value
93
+
94
+ return result
95
+
96
+ def to_str(self):
97
+ """Returns the string representation of the model"""
98
+ return pprint.pformat(self.to_dict())
99
+
100
+ def __repr__(self):
101
+ """For `print` and `pprint`"""
102
+ return self.to_str()
103
+
104
+ def __eq__(self, other):
105
+ """Returns true if both objects are equal"""
106
+ if not isinstance(other, IdpsSourcesBody):
107
+ return False
108
+
109
+ return self.__dict__ == other.__dict__
110
+
111
+ def __ne__(self, other):
112
+ """Returns true if both objects are not equal"""
113
+ return not self == other
@@ -0,0 +1,119 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ eLabFTW REST API v2 Documentation
5
+
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ class IdpsSourcesIdBody(object):
19
+ """NOTE: This class is auto generated by the swagger code generator program.
20
+
21
+ Do not edit the class manually.
22
+ """
23
+ """
24
+ Attributes:
25
+ swagger_types (dict): The key is attribute name
26
+ and the value is attribute type.
27
+ attribute_map (dict): The key is attribute name
28
+ and the value is json key in definition.
29
+ """
30
+ swagger_types = {
31
+ 'action': 'str'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'action': 'action'
36
+ }
37
+
38
+ def __init__(self, action=None): # noqa: E501
39
+ """IdpsSourcesIdBody - a model defined in Swagger""" # noqa: E501
40
+ self._action = None
41
+ self.discriminator = None
42
+ self.action = action
43
+
44
+ @property
45
+ def action(self):
46
+ """Gets the action of this IdpsSourcesIdBody. # noqa: E501
47
+
48
+ Use `update` to toggle autorefresh, `replace` to load IdPs, `validate` to enable all associated IdPs, `finish` to invalidate all associated IdPs. # noqa: E501
49
+
50
+ :return: The action of this IdpsSourcesIdBody. # noqa: E501
51
+ :rtype: str
52
+ """
53
+ return self._action
54
+
55
+ @action.setter
56
+ def action(self, action):
57
+ """Sets the action of this IdpsSourcesIdBody.
58
+
59
+ Use `update` to toggle autorefresh, `replace` to load IdPs, `validate` to enable all associated IdPs, `finish` to invalidate all associated IdPs. # noqa: E501
60
+
61
+ :param action: The action of this IdpsSourcesIdBody. # noqa: E501
62
+ :type: str
63
+ """
64
+ if action is None:
65
+ raise ValueError("Invalid value for `action`, must not be `None`") # noqa: E501
66
+ allowed_values = ["update", "replace", "validate", "finish"] # noqa: E501
67
+ if action not in allowed_values:
68
+ raise ValueError(
69
+ "Invalid value for `action` ({0}), must be one of {1}" # noqa: E501
70
+ .format(action, allowed_values)
71
+ )
72
+
73
+ self._action = action
74
+
75
+ def to_dict(self):
76
+ """Returns the model properties as a dict"""
77
+ result = {}
78
+
79
+ for attr, _ in six.iteritems(self.swagger_types):
80
+ value = getattr(self, attr)
81
+ if isinstance(value, list):
82
+ result[attr] = list(map(
83
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84
+ value
85
+ ))
86
+ elif hasattr(value, "to_dict"):
87
+ result[attr] = value.to_dict()
88
+ elif isinstance(value, dict):
89
+ result[attr] = dict(map(
90
+ lambda item: (item[0], item[1].to_dict())
91
+ if hasattr(item[1], "to_dict") else item,
92
+ value.items()
93
+ ))
94
+ else:
95
+ result[attr] = value
96
+ if issubclass(IdpsSourcesIdBody, dict):
97
+ for key, value in self.items():
98
+ result[key] = value
99
+
100
+ return result
101
+
102
+ def to_str(self):
103
+ """Returns the string representation of the model"""
104
+ return pprint.pformat(self.to_dict())
105
+
106
+ def __repr__(self):
107
+ """For `print` and `pprint`"""
108
+ return self.to_str()
109
+
110
+ def __eq__(self, other):
111
+ """Returns true if both objects are equal"""
112
+ if not isinstance(other, IdpsSourcesIdBody):
113
+ return False
114
+
115
+ return self.__dict__ == other.__dict__
116
+
117
+ def __ne__(self, other):
118
+ """Returns true if both objects are not equal"""
119
+ return not self == other
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: elabapi-python
3
- Version: 5.4.1
3
+ Version: 5.5.0
4
4
  Summary: eLabFTW REST API v2 Documentation
5
5
  Home-page: https://github.com/elabftw/elabapi-python
6
6
  Author-email:
@@ -1,8 +1,8 @@
1
- elabapi_python/__init__.py,sha256=CFUfFatdaNBiUHLa2a7kqIYmlSOmVpqHmSYC6nhy2JI,10451
2
- elabapi_python/api_client.py,sha256=1ZFTXXO2XG4WbJ9LcbrrYoBrIK8kWr3UhZR_18MidtM,25079
3
- elabapi_python/configuration.py,sha256=Qim1PA1SMp2IIlHlpuW529hvOcVUTFhIn2IAbIurND4,8359
1
+ elabapi_python/__init__.py,sha256=JJ3Pt3AmPt9SAPciUXYH6FcYyCru78FyAVBDUlCn9o8,10710
2
+ elabapi_python/api_client.py,sha256=s3A1UsYqv6izvV4nbRqu4FGpQ0NQ2bNvSIJbPvG5lCU,25079
3
+ elabapi_python/configuration.py,sha256=P_jN3OqDHB_4tVdyeeCer9PSQtVcV3XcOIx6Yicv5gQ,8359
4
4
  elabapi_python/rest.py,sha256=ooWVe4Hbxm84Eh1xvoTrHnNJ2RcIOSKH84kVsD8ORUs,13028
5
- elabapi_python/api/__init__.py,sha256=20h8G-YqZ1bcPYo-Mu0N4ufoJIqRh6J6eVGM3y2ljxQ,2433
5
+ elabapi_python/api/__init__.py,sha256=NZvSpGLEt16P_0HkGbudY9oglE8pHuihb8SKNb722ak,2496
6
6
  elabapi_python/api/api_keys_api.py,sha256=jkoQqyBgivwnAzhHMB7VK00U7VkH54LHN_duCKIMvhM,10806
7
7
  elabapi_python/api/comments_api.py,sha256=MKifXzWUkO86KPfadogkClN316llJNyoUKcrGFPDCQo,23682
8
8
  elabapi_python/api/compounds_api.py,sha256=o6ZKndIu8yQB33r_leJnpsZYroWSoeKhzQJ6V76g60o,15330
@@ -18,6 +18,7 @@ elabapi_python/api/exports_api.py,sha256=Gx-_8G9CUoKG9IiDq8_0GhKVwl6VlqAjOpgzVKk
18
18
  elabapi_python/api/extra_fields_keys_api.py,sha256=KXLfeh4ZBDSpOz6Wi-qV2utqFwkqhq_3NpfK-Z69v9k,4471
19
19
  elabapi_python/api/favorite_tags_api.py,sha256=iDBsGst6XyQQ0bioRwDxVTJ6mlzmh8Tb-fLB_llml2I,10540
20
20
  elabapi_python/api/idps_api.py,sha256=k01zMyAz8K0rY6xvMVP0ZsGWt3rfUBdGa_hL1r5IIwk,17493
21
+ elabapi_python/api/idps_sources_api.py,sha256=Hb95YzSoSV77c76nHsxBp1B_Xg6-NV3kAs8YtVRw45Q,18067
21
22
  elabapi_python/api/import_api.py,sha256=AM1YW33-8L6cFh0DUcp--7_gjIze31qj9ux_Vu9Oowg,8037
22
23
  elabapi_python/api/info_api.py,sha256=zI9Vruehh_7Lot8d_wiILfx9wS4cE0jwIbBb7EZJV68,4645
23
24
  elabapi_python/api/items_api.py,sha256=MbzXxJyDluFlnwyDzh7lJcvps2LHPTIj3y2q7tVEcD4,28018
@@ -41,7 +42,7 @@ elabapi_python/api/unfinished_steps_api.py,sha256=Zxp0VGbn5VwTjZjoGjD0GDh49XD2Wo
41
42
  elabapi_python/api/uploads_api.py,sha256=dDb0oqCND2CdNc5apB6Ahe37T04xr0S0htOOJwD51HU,30048
42
43
  elabapi_python/api/user_uploads_api.py,sha256=ryl3nQO3SLPQvnrnCRz31GGKeaDmBf1OOfELGF6g2fY,4341
43
44
  elabapi_python/api/users_api.py,sha256=NFsx60kHMhdvj4juOTaFbcZruoiKAWSxBOo4YX7OUWA,16089
44
- elabapi_python/models/__init__.py,sha256=gB4OzbYHK-Sc62uuJFD4Qi6DgjD21HO_lKJuJMQJCZ8,7953
45
+ elabapi_python/models/__init__.py,sha256=1M90g0QMVR4cQRnmpJ7lS9Q41nnYAQOBNnqSq5Bfhu4,8149
45
46
  elabapi_python/models/any_ofuploads_subid_body1.py,sha256=c9iQc7tpf0jrZeDGBt3LlvVmB4whNECVAOys9I0yK6M,2491
46
47
  elabapi_python/models/apikey.py,sha256=eu5QiEf0YLu8hdnDDP9N_MsDOsHtqpkaO9yz7terHSg,7289
47
48
  elabapi_python/models/apikeys_body.py,sha256=Y0LG_vWAgK5-SUv2IsXNU7DxRDA-9q2gzYqMpDUk25s,3906
@@ -98,8 +99,11 @@ elabapi_python/models/id_uploads_body.py,sha256=zB7c5HKk7XriZd9pVKIhQ-wkDlsp_-1f
98
99
  elabapi_python/models/idp.py,sha256=kJPreX8bEhU2KTkmAeWdDeZl6r0TQWZUOKiix-dDtts,9474
99
100
  elabapi_python/models/idp_cert.py,sha256=Zi8SfxH9kE1y_7B9ki7Y6MSwdv_QJmcoR6peemXgFOM,8983
100
101
  elabapi_python/models/idp_endpoint.py,sha256=HvjbOBOmxCJmwRIIZx7MCGzRD-o8tMstDhCI0vs1JBo,8331
102
+ elabapi_python/models/idp_source.py,sha256=aed-e1KKiVmb3ulJQ3SCofJsoAEwaH4vtShIMbHONS4,6562
101
103
  elabapi_python/models/idps_body.py,sha256=DX7nT7BZK-XfOZcVXQwHrzobp_ZfRUunf00oE6fn6ZE,8051
102
104
  elabapi_python/models/idps_id_body.py,sha256=PobQdv72HMCw8qE24BTZdAys2dbQf9TvYebKBIMTVk8,3403
105
+ elabapi_python/models/idps_sources_body.py,sha256=POMQHi6xGlNABKMfySVO-vtVOGWunlToB-5TrkXCDzg,3228
106
+ elabapi_python/models/idps_sources_id_body.py,sha256=i8xI7UkW3yVFj9pLymB_6zKpSSBqil6ZueKVFG02d8w,3830
103
107
  elabapi_python/models/import_body.py,sha256=GagkV0y6PlqaWnoQs2c5Yt54e6j9IyjEhzaJlbK8xw8,8812
104
108
  elabapi_python/models/inline_response200.py,sha256=zuA-eeZ_93xYMsWTQYvtKkw2LymH4KRFZH8IabW4M70,2471
105
109
  elabapi_python/models/inline_response2001.py,sha256=13gIcMhOzU721KUhBcTzKxUn-cAL5gCVjnTLbEyj_pA,2475
@@ -230,9 +234,13 @@ test/test_id_uploads_body.py,sha256=i3n-pP--FV83l4rm6zqmS4Uz3Exh-5cZQDvbSErJqt8,
230
234
  test/test_idp.py,sha256=MsWwvnvWeT0tH-UtV7990fLYbvY7HdgoxVgrC83fr4U,852
231
235
  test/test_idp_cert.py,sha256=2TVLcrXIEfBAxTAHM-6Xsdxr8Id_9I3qTUd-cSDZk7U,886
232
236
  test/test_idp_endpoint.py,sha256=mk4lNFDnO4t9R2wFBbF3JBrZVbbFrpwUhR4eNH_89MQ,918
237
+ test/test_idp_source.py,sha256=7D1zuG88NckRttp77Kbcu6fi8WktCwuDaIo9nVBrGs8,902
233
238
  test/test_idps_api.py,sha256=sdEWfJTzqwCopG_zb1UVLCGdu2dBxXQx3KdTqykW3Ek,1337
234
239
  test/test_idps_body.py,sha256=tXaql_qCjIVLk9WqYlasWP9s6DA9iJJqwI0QSHBQuXs,894
235
240
  test/test_idps_id_body.py,sha256=GATuhgsu6Im7fwJ4fkxENf66oYPgrkXAdFpYfLGVIWU,912
241
+ test/test_idps_sources_api.py,sha256=emUBwW7aEBXdk0Z6227Dhp3AzRXAfO-WD_7us7_N6xM,1481
242
+ test/test_idps_sources_body.py,sha256=B9wieUogQuY5yKNs7l9S3U0jQahJ6x8jiDHsvx6OD3U,952
243
+ test/test_idps_sources_id_body.py,sha256=Ym3_JvM3KXESa6eIlcIrPU3SJ5Bn7AKaQ79W6IvaX3U,970
236
244
  test/test_import_api.py,sha256=NqZ-_1uuC0EnIug6Y55hu6ThTAiTZ7cuyt0NOW_0SJ4,996
237
245
  test/test_import_body.py,sha256=l-A-5muOKFwPIj6Z3PlhvnyJnn-OFezN5Cb1HhXiP0k,910
238
246
  test/test_info_api.py,sha256=rIJIOhFfBCVIW52I9_qKZxEwCNkQv78jG7fk0mPAc3c,840
@@ -315,7 +323,7 @@ test/test_users_body.py,sha256=fcBZe3SisFS-_Td6Voqu3GjCyIa60OWc81yFus96vIc,902
315
323
  test/test_users_full.py,sha256=oeXb_-CAYLZ8yk9amtYUSxBw8cJa_vPPkyMLlmKFOg4,902
316
324
  test/test_users_full_teams.py,sha256=Q2hHinkmZ5Qhi_l4UAZlQ6yF4Ly3d9rgAhm_aZIhPUs,944
317
325
  test/test_users_id_body.py,sha256=SUH_AGVzw_8sPRBV3giq87oJhxgd7j00ZtoybuRxl-g,920
318
- elabapi_python-5.4.1.dist-info/METADATA,sha256=_BcUDHdCjb-OniVfqIGXuy9SKoTO8T-CcYnwRJZsDU4,546
319
- elabapi_python-5.4.1.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
320
- elabapi_python-5.4.1.dist-info/top_level.txt,sha256=BPZOy4tB7V5mJMvvpw5nc6Ou5L4KByC5IWWyNYD3fME,20
321
- elabapi_python-5.4.1.dist-info/RECORD,,
326
+ elabapi_python-5.5.0.dist-info/METADATA,sha256=sgDia_aqSJWP39uMS_wl4tnK1FSdhlqD-wg6rce49rY,546
327
+ elabapi_python-5.5.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
328
+ elabapi_python-5.5.0.dist-info/top_level.txt,sha256=BPZOy4tB7V5mJMvvpw5nc6Ou5L4KByC5IWWyNYD3fME,20
329
+ elabapi_python-5.5.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (82.0.0)
2
+ Generator: setuptools (82.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ eLabFTW REST API v2 Documentation
5
+
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import elabapi_python
18
+ from elabapi_python.models.idp_source import IdpSource # noqa: E501
19
+ from elabapi_python.rest import ApiException
20
+
21
+
22
+ class TestIdpSource(unittest.TestCase):
23
+ """IdpSource unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def testIdpSource(self):
32
+ """Test IdpSource"""
33
+ # FIXME: construct object with mandatory attributes with example values
34
+ # model = elabapi_python.models.idp_source.IdpSource() # noqa: E501
35
+ pass
36
+
37
+
38
+ if __name__ == '__main__':
39
+ unittest.main()
@@ -0,0 +1,68 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ eLabFTW REST API v2 Documentation
5
+
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import elabapi_python
18
+ from elabapi_python.api.idps_sources_api import IdpsSourcesApi # noqa: E501
19
+ from elabapi_python.rest import ApiException
20
+
21
+
22
+ class TestIdpsSourcesApi(unittest.TestCase):
23
+ """IdpsSourcesApi unit test stubs"""
24
+
25
+ def setUp(self):
26
+ self.api = IdpsSourcesApi() # noqa: E501
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def test_delete_idps_source(self):
32
+ """Test case for delete_idps_source
33
+
34
+ Delete an idp source. # noqa: E501
35
+ """
36
+ pass
37
+
38
+ def test_patch_idps_source(self):
39
+ """Test case for patch_idps_source
40
+
41
+ Patch an idp source. # noqa: E501
42
+ """
43
+ pass
44
+
45
+ def test_post_idp_source(self):
46
+ """Test case for post_idp_source
47
+
48
+ Create an idp source. # noqa: E501
49
+ """
50
+ pass
51
+
52
+ def test_read_idps_source(self):
53
+ """Test case for read_idps_source
54
+
55
+ Read an IdPs source # noqa: E501
56
+ """
57
+ pass
58
+
59
+ def test_read_idps_sources(self):
60
+ """Test case for read_idps_sources
61
+
62
+ Read all IDPs sources # noqa: E501
63
+ """
64
+ pass
65
+
66
+
67
+ if __name__ == '__main__':
68
+ unittest.main()
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ eLabFTW REST API v2 Documentation
5
+
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import elabapi_python
18
+ from elabapi_python.models.idps_sources_body import IdpsSourcesBody # noqa: E501
19
+ from elabapi_python.rest import ApiException
20
+
21
+
22
+ class TestIdpsSourcesBody(unittest.TestCase):
23
+ """IdpsSourcesBody unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def testIdpsSourcesBody(self):
32
+ """Test IdpsSourcesBody"""
33
+ # FIXME: construct object with mandatory attributes with example values
34
+ # model = elabapi_python.models.idps_sources_body.IdpsSourcesBody() # noqa: E501
35
+ pass
36
+
37
+
38
+ if __name__ == '__main__':
39
+ unittest.main()
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ eLabFTW REST API v2 Documentation
5
+
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import elabapi_python
18
+ from elabapi_python.models.idps_sources_id_body import IdpsSourcesIdBody # noqa: E501
19
+ from elabapi_python.rest import ApiException
20
+
21
+
22
+ class TestIdpsSourcesIdBody(unittest.TestCase):
23
+ """IdpsSourcesIdBody unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def testIdpsSourcesIdBody(self):
32
+ """Test IdpsSourcesIdBody"""
33
+ # FIXME: construct object with mandatory attributes with example values
34
+ # model = elabapi_python.models.idps_sources_id_body.IdpsSourcesIdBody() # noqa: E501
35
+ pass
36
+
37
+
38
+ if __name__ == '__main__':
39
+ unittest.main()