elabapi-python 0.1.5__py3-none-any.whl → 0.1.7__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 (176) hide show
  1. elabapi_python/__init__.py +4 -1
  2. elabapi_python/api/api_keys_api.py +5 -1
  3. elabapi_python/api/comments_api.py +5 -1
  4. elabapi_python/api/config_api.py +5 -1
  5. elabapi_python/api/events_api.py +5 -1
  6. elabapi_python/api/experiments_api.py +5 -1
  7. elabapi_python/api/experiments_templates_api.py +14 -2
  8. elabapi_python/api/favorite_tags_api.py +5 -1
  9. elabapi_python/api/items_api.py +10 -2
  10. elabapi_python/api/items_types_api.py +5 -1
  11. elabapi_python/api/links_to_experiments_api.py +5 -1
  12. elabapi_python/api/links_to_items_api.py +5 -1
  13. elabapi_python/api/notifications_api.py +5 -1
  14. elabapi_python/api/status_api.py +5 -1
  15. elabapi_python/api/steps_api.py +5 -1
  16. elabapi_python/api/tags_api.py +11 -7
  17. elabapi_python/api/team_tags_api.py +96 -3
  18. elabapi_python/api/teamgroups_api.py +5 -1
  19. elabapi_python/api/teams_api.py +1 -1
  20. elabapi_python/api/todolist_api.py +5 -1
  21. elabapi_python/api/unfinished_steps_api.py +1 -1
  22. elabapi_python/api/uploads_api.py +8 -4
  23. elabapi_python/api/users_api.py +104 -1
  24. elabapi_python/api_client.py +2 -2
  25. elabapi_python/configuration.py +3 -3
  26. elabapi_python/models/__init__.py +4 -1
  27. elabapi_python/models/apikey.py +1 -1
  28. elabapi_python/models/apikeys_body.py +1 -1
  29. elabapi_python/models/comment.py +1 -1
  30. elabapi_python/models/config.py +28 -2
  31. elabapi_python/models/entity.py +16 -16
  32. elabapi_python/models/event.py +1 -1
  33. elabapi_python/models/events_id_body.py +1 -1
  34. elabapi_python/models/events_id_body1.py +1 -1
  35. elabapi_python/models/eventsid_delta.py +1 -1
  36. elabapi_python/models/experiment.py +1 -1
  37. elabapi_python/models/experiment_template.py +1 -1
  38. elabapi_python/models/experiments_body.py +1 -1
  39. elabapi_python/models/experiments_id_body.py +1 -1
  40. elabapi_python/models/experiments_links_subid_body.py +1 -1
  41. elabapi_python/models/experiments_templates_body.py +1 -1
  42. elabapi_python/models/experiments_templates_id_body.py +84 -0
  43. elabapi_python/models/favtags_body.py +1 -1
  44. elabapi_python/models/id.py +1 -1
  45. elabapi_python/models/id1.py +1 -1
  46. elabapi_python/models/id2.py +1 -1
  47. elabapi_python/models/id_comments_body.py +1 -1
  48. elabapi_python/models/id_status_body.py +1 -1
  49. elabapi_python/models/id_steps_body.py +1 -1
  50. elabapi_python/models/id_tags_body.py +1 -1
  51. elabapi_python/models/id_teamgroups_body.py +1 -1
  52. elabapi_python/models/id_uploads_body.py +1 -1
  53. elabapi_python/models/inline_response200.py +1 -1
  54. elabapi_python/models/inline_response2001.py +1 -1
  55. elabapi_python/models/inline_response2002.py +1 -1
  56. elabapi_python/models/inline_response2003.py +1 -1
  57. elabapi_python/models/item.py +1 -1
  58. elabapi_python/models/items_body.py +1 -1
  59. elabapi_python/models/items_id_body.py +1 -1
  60. elabapi_python/models/items_links_subid_body.py +1 -1
  61. elabapi_python/models/items_type.py +1 -1
  62. elabapi_python/models/items_types_body.py +1 -1
  63. elabapi_python/models/link.py +1 -1
  64. elabapi_python/models/notification.py +1 -1
  65. elabapi_python/models/status.py +1 -1
  66. elabapi_python/models/step.py +1 -1
  67. elabapi_python/models/steps_subid_body.py +1 -1
  68. elabapi_python/models/tag.py +1 -1
  69. elabapi_python/models/tags_subid_body.py +1 -1
  70. elabapi_python/models/team.py +1 -1
  71. elabapi_python/models/team_tags_body.py +19 -23
  72. elabapi_python/models/team_tags_body1.py +116 -0
  73. elabapi_python/models/team_tags_id_body.py +1 -1
  74. elabapi_python/models/teamgroup.py +1 -1
  75. elabapi_python/models/teamgroup_users.py +1 -1
  76. elabapi_python/models/teamgroups_subid_body.py +1 -1
  77. elabapi_python/models/teams_body.py +1 -1
  78. elabapi_python/models/todoitem.py +1 -1
  79. elabapi_python/models/todolist_body.py +1 -1
  80. elabapi_python/models/todolist_id_body.py +1 -1
  81. elabapi_python/models/unfinished_step.py +1 -1
  82. elabapi_python/models/unfinished_steps.py +1 -1
  83. elabapi_python/models/upload.py +1 -1
  84. elabapi_python/models/uploads_subid_body.py +1 -1
  85. elabapi_python/models/users.py +1 -1
  86. elabapi_python/models/users_body.py +1 -1
  87. elabapi_python/models/users_id_body.py +84 -0
  88. elabapi_python/rest.py +1 -1
  89. {elabapi_python-0.1.5.dist-info → elabapi_python-0.1.7.dist-info}/METADATA +2 -2
  90. elabapi_python-0.1.7.dist-info/RECORD +177 -0
  91. test/test_api_keys_api.py +1 -1
  92. test/test_apikey.py +1 -1
  93. test/test_apikeys_body.py +1 -1
  94. test/test_comment.py +1 -1
  95. test/test_comments_api.py +1 -1
  96. test/test_config.py +1 -1
  97. test/test_config_api.py +1 -1
  98. test/test_entity.py +1 -1
  99. test/test_event.py +1 -1
  100. test/test_events_api.py +1 -1
  101. test/test_events_id_body.py +1 -1
  102. test/test_events_id_body1.py +1 -1
  103. test/test_eventsid_delta.py +1 -1
  104. test/test_experiment.py +1 -1
  105. test/test_experiment_template.py +1 -1
  106. test/test_experiments_api.py +1 -1
  107. test/test_experiments_body.py +1 -1
  108. test/test_experiments_id_body.py +1 -1
  109. test/test_experiments_links_subid_body.py +1 -1
  110. test/test_experiments_templates_api.py +1 -1
  111. test/test_experiments_templates_body.py +1 -1
  112. test/test_experiments_templates_id_body.py +39 -0
  113. test/test_favorite_tags_api.py +1 -1
  114. test/test_favtags_body.py +1 -1
  115. test/test_id.py +1 -1
  116. test/test_id1.py +1 -1
  117. test/test_id2.py +1 -1
  118. test/test_id_comments_body.py +1 -1
  119. test/test_id_status_body.py +1 -1
  120. test/test_id_steps_body.py +1 -1
  121. test/test_id_tags_body.py +1 -1
  122. test/test_id_teamgroups_body.py +1 -1
  123. test/test_id_uploads_body.py +1 -1
  124. test/test_inline_response200.py +1 -1
  125. test/test_inline_response2001.py +1 -1
  126. test/test_inline_response2002.py +1 -1
  127. test/test_inline_response2003.py +1 -1
  128. test/test_item.py +1 -1
  129. test/test_items_api.py +1 -1
  130. test/test_items_body.py +1 -1
  131. test/test_items_id_body.py +1 -1
  132. test/test_items_links_subid_body.py +1 -1
  133. test/test_items_type.py +1 -1
  134. test/test_items_types_api.py +1 -1
  135. test/test_items_types_body.py +1 -1
  136. test/test_link.py +1 -1
  137. test/test_links_to_experiments_api.py +1 -1
  138. test/test_links_to_items_api.py +1 -1
  139. test/test_notification.py +1 -1
  140. test/test_notifications_api.py +1 -1
  141. test/test_status.py +1 -1
  142. test/test_status_api.py +1 -1
  143. test/test_step.py +1 -1
  144. test/test_steps_api.py +1 -1
  145. test/test_steps_subid_body.py +1 -1
  146. test/test_tag.py +1 -1
  147. test/test_tags_api.py +3 -3
  148. test/test_tags_subid_body.py +1 -1
  149. test/test_team.py +1 -1
  150. test/test_team_tags_api.py +8 -1
  151. test/test_team_tags_body.py +1 -1
  152. test/test_team_tags_body1.py +39 -0
  153. test/test_team_tags_id_body.py +1 -1
  154. test/test_teamgroup.py +1 -1
  155. test/test_teamgroup_users.py +1 -1
  156. test/test_teamgroups_api.py +1 -1
  157. test/test_teamgroups_subid_body.py +1 -1
  158. test/test_teams_api.py +1 -1
  159. test/test_teams_body.py +1 -1
  160. test/test_todoitem.py +1 -1
  161. test/test_todolist_api.py +1 -1
  162. test/test_todolist_body.py +1 -1
  163. test/test_todolist_id_body.py +1 -1
  164. test/test_unfinished_step.py +1 -1
  165. test/test_unfinished_steps.py +1 -1
  166. test/test_unfinished_steps_api.py +1 -1
  167. test/test_upload.py +1 -1
  168. test/test_uploads_api.py +1 -1
  169. test/test_uploads_subid_body.py +1 -1
  170. test/test_users.py +1 -1
  171. test/test_users_api.py +8 -1
  172. test/test_users_body.py +1 -1
  173. test/test_users_id_body.py +39 -0
  174. elabapi_python-0.1.5.dist-info/RECORD +0 -171
  175. {elabapi_python-0.1.5.dist-info → elabapi_python-0.1.7.dist-info}/WHEEL +0 -0
  176. {elabapi_python-0.1.5.dist-info → elabapi_python-0.1.7.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -120,6 +120,10 @@ class UploadsApi(object):
120
120
  local_var_files = {}
121
121
 
122
122
  body_params = None
123
+ # HTTP header `Content-Type`
124
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
125
+ ['application/json']) # noqa: E501
126
+
123
127
  # Authentication setting
124
128
  auth_settings = ['token'] # noqa: E501
125
129
 
@@ -490,7 +494,7 @@ class UploadsApi(object):
490
494
  :param str entity_type: Entity type (required)
491
495
  :param int id: ID of the entity (required)
492
496
  :param int subid: ID of the upload (required)
493
- :param str format: To download the file itself, use `binary` format parameter.
497
+ :param str format: To download the file itself, use `binary` format parameter. In python library, when downloading a file content, make sure to add ` _preload_content=False` into the call to `read_upload()`.
494
498
  :return: Upload
495
499
  If the method is called asynchronously,
496
500
  returns the request thread.
@@ -514,7 +518,7 @@ class UploadsApi(object):
514
518
  :param str entity_type: Entity type (required)
515
519
  :param int id: ID of the entity (required)
516
520
  :param int subid: ID of the upload (required)
517
- :param str format: To download the file itself, use `binary` format parameter.
521
+ :param str format: To download the file itself, use `binary` format parameter. In python library, when downloading a file content, make sure to add ` _preload_content=False` into the call to `read_upload()`.
518
522
  :return: Upload
519
523
  If the method is called asynchronously,
520
524
  returns the request thread.
@@ -570,7 +574,7 @@ class UploadsApi(object):
570
574
  body_params = None
571
575
  # HTTP header `Accept`
572
576
  header_params['Accept'] = self.api_client.select_header_accept(
573
- ['application/json', 'application/octet-stream', 'application/zip']) # noqa: E501
577
+ ['application/json', '*/*']) # noqa: E501
574
578
 
575
579
  # Authentication setting
576
580
  auth_settings = ['token'] # noqa: E501
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -32,6 +32,109 @@ class UsersApi(object):
32
32
  api_client = ApiClient()
33
33
  self.api_client = api_client
34
34
 
35
+ def patch_user(self, id, **kwargs): # noqa: E501
36
+ """Modify a user. # noqa: E501
37
+
38
+ Note: it is possible to use \"me\" instead of the userid to access the user of the API key. # 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.patch_user(id, async_req=True)
42
+ >>> result = thread.get()
43
+
44
+ :param async_req bool
45
+ :param Id id: ID of the user or `me`. (required)
46
+ :param UsersIdBody body: Parameters for modifying a user.
47
+ :return: Users
48
+ If the method is called asynchronously,
49
+ returns the request thread.
50
+ """
51
+ kwargs['_return_http_data_only'] = True
52
+ if kwargs.get('async_req'):
53
+ return self.patch_user_with_http_info(id, **kwargs) # noqa: E501
54
+ else:
55
+ (data) = self.patch_user_with_http_info(id, **kwargs) # noqa: E501
56
+ return data
57
+
58
+ def patch_user_with_http_info(self, id, **kwargs): # noqa: E501
59
+ """Modify a user. # noqa: E501
60
+
61
+ Note: it is possible to use \"me\" instead of the userid to access the user of the API key. # noqa: E501
62
+ This method makes a synchronous HTTP request by default. To make an
63
+ asynchronous HTTP request, please pass async_req=True
64
+ >>> thread = api.patch_user_with_http_info(id, async_req=True)
65
+ >>> result = thread.get()
66
+
67
+ :param async_req bool
68
+ :param Id id: ID of the user or `me`. (required)
69
+ :param UsersIdBody body: Parameters for modifying a user.
70
+ :return: Users
71
+ If the method is called asynchronously,
72
+ returns the request thread.
73
+ """
74
+
75
+ all_params = ['id', 'body'] # noqa: E501
76
+ all_params.append('async_req')
77
+ all_params.append('_return_http_data_only')
78
+ all_params.append('_preload_content')
79
+ all_params.append('_request_timeout')
80
+
81
+ params = locals()
82
+ for key, val in six.iteritems(params['kwargs']):
83
+ if key not in all_params:
84
+ raise TypeError(
85
+ "Got an unexpected keyword argument '%s'"
86
+ " to method patch_user" % key
87
+ )
88
+ params[key] = val
89
+ del params['kwargs']
90
+ # verify the required parameter 'id' is set
91
+ if ('id' not in params or
92
+ params['id'] is None):
93
+ raise ValueError("Missing the required parameter `id` when calling `patch_user`") # noqa: E501
94
+
95
+ collection_formats = {}
96
+
97
+ path_params = {}
98
+ if 'id' in params:
99
+ path_params['id'] = params['id'] # noqa: E501
100
+
101
+ query_params = []
102
+
103
+ header_params = {}
104
+
105
+ form_params = []
106
+ local_var_files = {}
107
+
108
+ body_params = None
109
+ if 'body' in params:
110
+ body_params = params['body']
111
+ # HTTP header `Accept`
112
+ header_params['Accept'] = self.api_client.select_header_accept(
113
+ ['application/json']) # noqa: E501
114
+
115
+ # HTTP header `Content-Type`
116
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
117
+ ['application/json']) # noqa: E501
118
+
119
+ # Authentication setting
120
+ auth_settings = ['token'] # noqa: E501
121
+
122
+ return self.api_client.call_api(
123
+ '/users/{id}', 'PATCH',
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='Users', # 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
+
35
138
  def post_user(self, **kwargs): # noqa: E501
36
139
  """Create a new user. # noqa: E501
37
140
 
@@ -2,7 +2,7 @@
2
2
  """
3
3
  eLabFTW REST API v2 Documentation
4
4
 
5
- Some description of the api. # noqa: E501
5
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
6
6
 
7
7
  OpenAPI spec version: 2.0.0
8
8
 
@@ -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/0.1.5/python'
75
+ self.user_agent = 'Swagger-Codegen/0.1.7/python'
76
76
 
77
77
  def __del__(self):
78
78
  self.pool.close()
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -46,7 +46,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
46
46
  def __init__(self):
47
47
  """Constructor"""
48
48
  # Default Base url
49
- self.host = "https://eln.example.org/api/v2"
49
+ self.host = "https://elab.local:3148/api/v2"
50
50
  # Temp file folder for downloading files
51
51
  self.temp_folder_path = None
52
52
 
@@ -247,5 +247,5 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
247
247
  "OS: {env}\n"\
248
248
  "Python Version: {pyversion}\n"\
249
249
  "Version of the API: 2.0.0\n"\
250
- "SDK Package Version: 0.1.5".\
250
+ "SDK Package Version: 0.1.7".\
251
251
  format(env=sys.platform, pyversion=sys.version)
@@ -4,7 +4,7 @@
4
4
  """
5
5
  eLabFTW REST API v2 Documentation
6
6
 
7
- Some description of the api. # noqa: E501
7
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
8
8
 
9
9
  OpenAPI spec version: 2.0.0
10
10
 
@@ -29,6 +29,7 @@ from elabapi_python.models.experiments_body import ExperimentsBody
29
29
  from elabapi_python.models.experiments_id_body import ExperimentsIdBody
30
30
  from elabapi_python.models.experiments_links_subid_body import ExperimentsLinksSubidBody
31
31
  from elabapi_python.models.experiments_templates_body import ExperimentsTemplatesBody
32
+ from elabapi_python.models.experiments_templates_id_body import ExperimentsTemplatesIdBody
32
33
  from elabapi_python.models.favtags_body import FavtagsBody
33
34
  from elabapi_python.models.id import Id
34
35
  from elabapi_python.models.id1 import Id1
@@ -58,6 +59,7 @@ from elabapi_python.models.tag import Tag
58
59
  from elabapi_python.models.tags_subid_body import TagsSubidBody
59
60
  from elabapi_python.models.team import Team
60
61
  from elabapi_python.models.team_tags_body import TeamTagsBody
62
+ from elabapi_python.models.team_tags_body1 import TeamTagsBody1
61
63
  from elabapi_python.models.team_tags_id_body import TeamTagsIdBody
62
64
  from elabapi_python.models.teamgroup import Teamgroup
63
65
  from elabapi_python.models.teamgroup_users import TeamgroupUsers
@@ -72,3 +74,4 @@ from elabapi_python.models.upload import Upload
72
74
  from elabapi_python.models.uploads_subid_body import UploadsSubidBody
73
75
  from elabapi_python.models.users import Users
74
76
  from elabapi_python.models.users_body import UsersBody
77
+ from elabapi_python.models.users_id_body import UsersIdBody
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -45,6 +45,7 @@ class Config(object):
45
45
  'extauth_teams': 'str',
46
46
  'lang': 'str',
47
47
  'ldap_base_dn': 'str',
48
+ 'ldap_search_attr': 'str',
48
49
  'ldap_email': 'str',
49
50
  'ldap_firstname': 'str',
50
51
  'ldap_host': 'str',
@@ -136,6 +137,7 @@ class Config(object):
136
137
  'extauth_teams': 'extauth_teams',
137
138
  'lang': 'lang',
138
139
  'ldap_base_dn': 'ldap_base_dn',
140
+ 'ldap_search_attr': 'ldap_search_attr',
139
141
  'ldap_email': 'ldap_email',
140
142
  'ldap_firstname': 'ldap_firstname',
141
143
  'ldap_host': 'ldap_host',
@@ -209,7 +211,7 @@ class Config(object):
209
211
  'uploads_storage': 'uploads_storage'
210
212
  }
211
213
 
212
- def __init__(self, admin_validate=None, admins_create_users=None, announcement=None, anon_users=None, autologout_time=None, blox_anon=None, blox_enabled=None, debug=None, deletable_xp=None, email_domain=None, extauth_email=None, extauth_firstname=None, extauth_lastname=None, extauth_remote_user=None, extauth_teams=None, lang=None, ldap_base_dn=None, ldap_email=None, ldap_firstname=None, ldap_host=None, ldap_lastname=None, ldap_password=None, ldap_port=None, ldap_team=None, ldap_toggle=None, ldap_use_tls=None, ldap_username=None, local_login=None, local_register=None, login_announcement=None, login_tries=None, logout_url=None, mail_from=None, max_revisions=None, min_days_revisions=None, min_delta_revisions=None, open_science=None, open_team=None, privacy_policy=None, proxy=None, s3_bucket_name=None, s3_endpoint=None, s3_path_prefix=None, s3_region=None, saml_acs_binding=None, saml_allowrepeatattributename=None, saml_authnrequestssigned=None, saml_baseurl=None, saml_debug=None, saml_entityid=None, saml_logoutrequestsigned=None, saml_logoutresponsesigned=None, saml_lowercaseurlencoding=None, saml_nameidencrypted=None, saml_nameidformat=None, saml_privatekey=None, saml_relaxdestinationvalidation=None, saml_signmetadata=None, saml_slo_binding=None, saml_strict=None, saml_sync_teams=None, saml_team_create=None, saml_team_default=None, saml_toggle=None, saml_user_default=None, saml_wantassertionsencrypted=None, saml_wantassertionssigned=None, saml_wantmessagessigned=None, saml_wantnameid=None, saml_wantnameidencrypted=None, saml_wantxmlvalidation=None, saml_x509=None, saml_x509_new=None, schema=None, smtp_address=None, smtp_encryption=None, smtp_password=None, smtp_port=None, smtp_username=None, support_url=None, ts_authority=None, ts_cert=None, ts_hash=None, ts_limit=None, ts_login=None, ts_password=None, ts_url=None, uploads_storage=None): # noqa: E501
214
+ def __init__(self, admin_validate=None, admins_create_users=None, announcement=None, anon_users=None, autologout_time=None, blox_anon=None, blox_enabled=None, debug=None, deletable_xp=None, email_domain=None, extauth_email=None, extauth_firstname=None, extauth_lastname=None, extauth_remote_user=None, extauth_teams=None, lang=None, ldap_base_dn=None, ldap_search_attr=None, ldap_email=None, ldap_firstname=None, ldap_host=None, ldap_lastname=None, ldap_password=None, ldap_port=None, ldap_team=None, ldap_toggle=None, ldap_use_tls=None, ldap_username=None, local_login=None, local_register=None, login_announcement=None, login_tries=None, logout_url=None, mail_from=None, max_revisions=None, min_days_revisions=None, min_delta_revisions=None, open_science=None, open_team=None, privacy_policy=None, proxy=None, s3_bucket_name=None, s3_endpoint=None, s3_path_prefix=None, s3_region=None, saml_acs_binding=None, saml_allowrepeatattributename=None, saml_authnrequestssigned=None, saml_baseurl=None, saml_debug=None, saml_entityid=None, saml_logoutrequestsigned=None, saml_logoutresponsesigned=None, saml_lowercaseurlencoding=None, saml_nameidencrypted=None, saml_nameidformat=None, saml_privatekey=None, saml_relaxdestinationvalidation=None, saml_signmetadata=None, saml_slo_binding=None, saml_strict=None, saml_sync_teams=None, saml_team_create=None, saml_team_default=None, saml_toggle=None, saml_user_default=None, saml_wantassertionsencrypted=None, saml_wantassertionssigned=None, saml_wantmessagessigned=None, saml_wantnameid=None, saml_wantnameidencrypted=None, saml_wantxmlvalidation=None, saml_x509=None, saml_x509_new=None, schema=None, smtp_address=None, smtp_encryption=None, smtp_password=None, smtp_port=None, smtp_username=None, support_url=None, ts_authority=None, ts_cert=None, ts_hash=None, ts_limit=None, ts_login=None, ts_password=None, ts_url=None, uploads_storage=None): # noqa: E501
213
215
  """Config - a model defined in Swagger""" # noqa: E501
214
216
  self._admin_validate = None
215
217
  self._admins_create_users = None
@@ -228,6 +230,7 @@ class Config(object):
228
230
  self._extauth_teams = None
229
231
  self._lang = None
230
232
  self._ldap_base_dn = None
233
+ self._ldap_search_attr = None
231
234
  self._ldap_email = None
232
235
  self._ldap_firstname = None
233
236
  self._ldap_host = None
@@ -334,6 +337,8 @@ class Config(object):
334
337
  self.lang = lang
335
338
  if ldap_base_dn is not None:
336
339
  self.ldap_base_dn = ldap_base_dn
340
+ if ldap_search_attr is not None:
341
+ self.ldap_search_attr = ldap_search_attr
337
342
  if ldap_email is not None:
338
343
  self.ldap_email = ldap_email
339
344
  if ldap_firstname is not None:
@@ -834,6 +839,27 @@ class Config(object):
834
839
 
835
840
  self._ldap_base_dn = ldap_base_dn
836
841
 
842
+ @property
843
+ def ldap_search_attr(self):
844
+ """Gets the ldap_search_attr of this Config. # noqa: E501
845
+
846
+
847
+ :return: The ldap_search_attr of this Config. # noqa: E501
848
+ :rtype: str
849
+ """
850
+ return self._ldap_search_attr
851
+
852
+ @ldap_search_attr.setter
853
+ def ldap_search_attr(self, ldap_search_attr):
854
+ """Sets the ldap_search_attr of this Config.
855
+
856
+
857
+ :param ldap_search_attr: The ldap_search_attr of this Config. # noqa: E501
858
+ :type: str
859
+ """
860
+
861
+ self._ldap_search_attr = ldap_search_attr
862
+
837
863
  @property
838
864
  def ldap_email(self):
839
865
  """Gets the ldap_email of this Config. # noqa: E501
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -42,7 +42,7 @@ class Entity(object):
42
42
  'elabid': 'str',
43
43
  'events_id': 'str',
44
44
  'events_item_id': 'str',
45
- 'firtname': 'str',
45
+ 'firstname': 'str',
46
46
  'fullname': 'str',
47
47
  'has_attachement': 'int',
48
48
  'has_comment': 'int',
@@ -91,7 +91,7 @@ class Entity(object):
91
91
  'elabid': 'elabid',
92
92
  'events_id': 'events_id',
93
93
  'events_item_id': 'events_item_id',
94
- 'firtname': 'firtname',
94
+ 'firstname': 'firstname',
95
95
  'fullname': 'fullname',
96
96
  'has_attachement': 'has_attachement',
97
97
  'has_comment': 'has_comment',
@@ -125,7 +125,7 @@ class Entity(object):
125
125
  'userid': 'userid'
126
126
  }
127
127
 
128
- def __init__(self, body=None, body_html=None, canread=None, canwrite=None, category=None, category_id=None, color=None, comments=None, content_type=None, created_at=None, _date=None, elabid=None, events_id=None, events_item_id=None, firtname=None, fullname=None, has_attachement=None, has_comment=None, id=None, is_bound=None, lastchangeby=None, lastname=None, links=None, locked=None, lockedby=None, lockedwhen=None, metadata=None, modified_at=None, next_step=None, orcid=None, page=None, rating=None, recent_comment=None, sharelink=None, state=None, steps=None, tags=None, tags_id=None, timestamped=None, timestampedby=None, timestamped_at=None, title=None, type=None, up_item_id=None, uploads=None, userid=None): # noqa: E501
128
+ def __init__(self, body=None, body_html=None, canread=None, canwrite=None, category=None, category_id=None, color=None, comments=None, content_type=None, created_at=None, _date=None, elabid=None, events_id=None, events_item_id=None, firstname=None, fullname=None, has_attachement=None, has_comment=None, id=None, is_bound=None, lastchangeby=None, lastname=None, links=None, locked=None, lockedby=None, lockedwhen=None, metadata=None, modified_at=None, next_step=None, orcid=None, page=None, rating=None, recent_comment=None, sharelink=None, state=None, steps=None, tags=None, tags_id=None, timestamped=None, timestampedby=None, timestamped_at=None, title=None, type=None, up_item_id=None, uploads=None, userid=None): # noqa: E501
129
129
  """Entity - a model defined in Swagger""" # noqa: E501
130
130
  self._body = None
131
131
  self._body_html = None
@@ -141,7 +141,7 @@ class Entity(object):
141
141
  self._elabid = None
142
142
  self._events_id = None
143
143
  self._events_item_id = None
144
- self._firtname = None
144
+ self._firstname = None
145
145
  self._fullname = None
146
146
  self._has_attachement = None
147
147
  self._has_comment = None
@@ -202,8 +202,8 @@ class Entity(object):
202
202
  self.events_id = events_id
203
203
  if events_item_id is not None:
204
204
  self.events_item_id = events_item_id
205
- if firtname is not None:
206
- self.firtname = firtname
205
+ if firstname is not None:
206
+ self.firstname = firstname
207
207
  if fullname is not None:
208
208
  self.fullname = fullname
209
209
  if has_attachement is not None:
@@ -562,25 +562,25 @@ class Entity(object):
562
562
  self._events_item_id = events_item_id
563
563
 
564
564
  @property
565
- def firtname(self):
566
- """Gets the firtname of this Entity. # noqa: E501
565
+ def firstname(self):
566
+ """Gets the firstname of this Entity. # noqa: E501
567
567
 
568
568
 
569
- :return: The firtname of this Entity. # noqa: E501
569
+ :return: The firstname of this Entity. # noqa: E501
570
570
  :rtype: str
571
571
  """
572
- return self._firtname
572
+ return self._firstname
573
573
 
574
- @firtname.setter
575
- def firtname(self, firtname):
576
- """Sets the firtname of this Entity.
574
+ @firstname.setter
575
+ def firstname(self, firstname):
576
+ """Sets the firstname of this Entity.
577
577
 
578
578
 
579
- :param firtname: The firtname of this Entity. # noqa: E501
579
+ :param firstname: The firstname of this Entity. # noqa: E501
580
580
  :type: str
581
581
  """
582
582
 
583
- self._firtname = firtname
583
+ self._firstname = firstname
584
584
 
585
585
  @property
586
586
  def fullname(self):
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -0,0 +1,84 @@
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 ExperimentsTemplatesIdBody(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
+ }
32
+
33
+ attribute_map = {
34
+ }
35
+
36
+ def __init__(self): # noqa: E501
37
+ """ExperimentsTemplatesIdBody - a model defined in Swagger""" # noqa: E501
38
+ self.discriminator = None
39
+
40
+ def to_dict(self):
41
+ """Returns the model properties as a dict"""
42
+ result = {}
43
+
44
+ for attr, _ in six.iteritems(self.swagger_types):
45
+ value = getattr(self, attr)
46
+ if isinstance(value, list):
47
+ result[attr] = list(map(
48
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
49
+ value
50
+ ))
51
+ elif hasattr(value, "to_dict"):
52
+ result[attr] = value.to_dict()
53
+ elif isinstance(value, dict):
54
+ result[attr] = dict(map(
55
+ lambda item: (item[0], item[1].to_dict())
56
+ if hasattr(item[1], "to_dict") else item,
57
+ value.items()
58
+ ))
59
+ else:
60
+ result[attr] = value
61
+ if issubclass(ExperimentsTemplatesIdBody, dict):
62
+ for key, value in self.items():
63
+ result[key] = value
64
+
65
+ return result
66
+
67
+ def to_str(self):
68
+ """Returns the string representation of the model"""
69
+ return pprint.pformat(self.to_dict())
70
+
71
+ def __repr__(self):
72
+ """For `print` and `pprint`"""
73
+ return self.to_str()
74
+
75
+ def __eq__(self, other):
76
+ """Returns true if both objects are equal"""
77
+ if not isinstance(other, ExperimentsTemplatesIdBody):
78
+ return False
79
+
80
+ return self.__dict__ == other.__dict__
81
+
82
+ def __ne__(self, other):
83
+ """Returns true if both objects are not equal"""
84
+ return not self == other
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  eLabFTW REST API v2 Documentation
5
5
 
6
- Some description of the api. # noqa: E501
6
+ This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
7
7
 
8
8
  OpenAPI spec version: 2.0.0
9
9