cosmotech-api 3.2.0__2-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.

Potentially problematic release.


This version of cosmotech-api might be problematic. Click here for more details.

Files changed (255) hide show
  1. cosmotech_api/__init__.py +153 -0
  2. cosmotech_api/api/__init__.py +14 -0
  3. cosmotech_api/api/connector_api.py +1351 -0
  4. cosmotech_api/api/dataset_api.py +9148 -0
  5. cosmotech_api/api/organization_api.py +4692 -0
  6. cosmotech_api/api/run_api.py +2227 -0
  7. cosmotech_api/api/runner_api.py +4551 -0
  8. cosmotech_api/api/scenario_api.py +6688 -0
  9. cosmotech_api/api/scenariorun_api.py +4092 -0
  10. cosmotech_api/api/scenariorunresult_api.py +704 -0
  11. cosmotech_api/api/solution_api.py +6472 -0
  12. cosmotech_api/api/twingraph_api.py +4201 -0
  13. cosmotech_api/api/user_api.py +1291 -0
  14. cosmotech_api/api/validator_api.py +2566 -0
  15. cosmotech_api/api/workspace_api.py +6123 -0
  16. cosmotech_api/api_client.py +759 -0
  17. cosmotech_api/api_response.py +21 -0
  18. cosmotech_api/apis/__init__.py +28 -0
  19. cosmotech_api/configuration.py +453 -0
  20. cosmotech_api/exceptions.py +200 -0
  21. cosmotech_api/model/__init__.py +5 -0
  22. cosmotech_api/model/component_role_permissions.py +260 -0
  23. cosmotech_api/model/connector.py +330 -0
  24. cosmotech_api/model/connector_parameter.py +284 -0
  25. cosmotech_api/model/connector_parameter_group.py +280 -0
  26. cosmotech_api/model/container_resource_size_info.py +268 -0
  27. cosmotech_api/model/container_resource_sizing.py +274 -0
  28. cosmotech_api/model/dataset.py +376 -0
  29. cosmotech_api/model/dataset_access_control.py +268 -0
  30. cosmotech_api/model/dataset_compatibility.py +270 -0
  31. cosmotech_api/model/dataset_connector.py +268 -0
  32. cosmotech_api/model/dataset_copy_parameters.py +264 -0
  33. cosmotech_api/model/dataset_role.py +262 -0
  34. cosmotech_api/model/dataset_search.py +262 -0
  35. cosmotech_api/model/dataset_security.py +274 -0
  36. cosmotech_api/model/dataset_source_type.py +287 -0
  37. cosmotech_api/model/dataset_twin_graph_hash.py +256 -0
  38. cosmotech_api/model/dataset_twin_graph_info.py +264 -0
  39. cosmotech_api/model/dataset_twin_graph_query.py +262 -0
  40. cosmotech_api/model/delete_historical_data.py +272 -0
  41. cosmotech_api/model/file_upload_metadata.py +260 -0
  42. cosmotech_api/model/file_upload_validation.py +266 -0
  43. cosmotech_api/model/graph_properties.py +272 -0
  44. cosmotech_api/model/organization.py +282 -0
  45. cosmotech_api/model/organization_access_control.py +268 -0
  46. cosmotech_api/model/organization_role.py +262 -0
  47. cosmotech_api/model/organization_security.py +274 -0
  48. cosmotech_api/model/organization_service.py +272 -0
  49. cosmotech_api/model/organization_services.py +270 -0
  50. cosmotech_api/model/organization_user.py +277 -0
  51. cosmotech_api/model/resource_size_info.py +268 -0
  52. cosmotech_api/model/run.py +351 -0
  53. cosmotech_api/model/run_container.py +318 -0
  54. cosmotech_api/model/run_container_artifact.py +260 -0
  55. cosmotech_api/model/run_container_logs.py +272 -0
  56. cosmotech_api/model/run_logs.py +268 -0
  57. cosmotech_api/model/run_resource_requested.py +260 -0
  58. cosmotech_api/model/run_search.py +296 -0
  59. cosmotech_api/model/run_start_containers.py +286 -0
  60. cosmotech_api/model/run_state.py +285 -0
  61. cosmotech_api/model/run_status.py +316 -0
  62. cosmotech_api/model/run_status_node.py +307 -0
  63. cosmotech_api/model/run_template.py +408 -0
  64. cosmotech_api/model/run_template_handler_id.py +287 -0
  65. cosmotech_api/model/run_template_orchestrator.py +283 -0
  66. cosmotech_api/model/run_template_parameter.py +296 -0
  67. cosmotech_api/model/run_template_parameter_group.py +288 -0
  68. cosmotech_api/model/run_template_parameter_value.py +273 -0
  69. cosmotech_api/model/run_template_resource_sizing.py +274 -0
  70. cosmotech_api/model/run_template_step_source.py +285 -0
  71. cosmotech_api/model/runner.py +379 -0
  72. cosmotech_api/model/runner_access_control.py +268 -0
  73. cosmotech_api/model/runner_changed_parameter_value.py +272 -0
  74. cosmotech_api/model/runner_comparison_result.py +273 -0
  75. cosmotech_api/model/runner_data_download_info.py +267 -0
  76. cosmotech_api/model/runner_data_download_job.py +257 -0
  77. cosmotech_api/model/runner_job_state.py +287 -0
  78. cosmotech_api/model/runner_last_run.py +268 -0
  79. cosmotech_api/model/runner_resource_sizing.py +274 -0
  80. cosmotech_api/model/runner_role.py +262 -0
  81. cosmotech_api/model/runner_run_template_parameter_value.py +277 -0
  82. cosmotech_api/model/runner_security.py +274 -0
  83. cosmotech_api/model/runner_validation_status.py +285 -0
  84. cosmotech_api/model/scenario.py +379 -0
  85. cosmotech_api/model/scenario_access_control.py +268 -0
  86. cosmotech_api/model/scenario_changed_parameter_value.py +272 -0
  87. cosmotech_api/model/scenario_comparison_result.py +273 -0
  88. cosmotech_api/model/scenario_data_download_info.py +267 -0
  89. cosmotech_api/model/scenario_data_download_job.py +257 -0
  90. cosmotech_api/model/scenario_job_state.py +287 -0
  91. cosmotech_api/model/scenario_last_run.py +268 -0
  92. cosmotech_api/model/scenario_resource_sizing.py +274 -0
  93. cosmotech_api/model/scenario_role.py +262 -0
  94. cosmotech_api/model/scenario_run.py +369 -0
  95. cosmotech_api/model/scenario_run_container.py +318 -0
  96. cosmotech_api/model/scenario_run_container_artifact.py +260 -0
  97. cosmotech_api/model/scenario_run_container_logs.py +272 -0
  98. cosmotech_api/model/scenario_run_logs.py +268 -0
  99. cosmotech_api/model/scenario_run_resource_requested.py +260 -0
  100. cosmotech_api/model/scenario_run_result.py +260 -0
  101. cosmotech_api/model/scenario_run_search.py +296 -0
  102. cosmotech_api/model/scenario_run_start_containers.py +286 -0
  103. cosmotech_api/model/scenario_run_state.py +287 -0
  104. cosmotech_api/model/scenario_run_status.py +308 -0
  105. cosmotech_api/model/scenario_run_status_node.py +307 -0
  106. cosmotech_api/model/scenario_run_template_parameter_value.py +277 -0
  107. cosmotech_api/model/scenario_security.py +274 -0
  108. cosmotech_api/model/scenario_user.py +277 -0
  109. cosmotech_api/model/scenario_validation_status.py +285 -0
  110. cosmotech_api/model/solution.py +335 -0
  111. cosmotech_api/model/solution_access_control.py +268 -0
  112. cosmotech_api/model/solution_role.py +262 -0
  113. cosmotech_api/model/solution_security.py +274 -0
  114. cosmotech_api/model/source_info.py +274 -0
  115. cosmotech_api/model/sub_dataset_graph_query.py +268 -0
  116. cosmotech_api/model/translated_labels.py +252 -0
  117. cosmotech_api/model/twin_graph_batch_result.py +274 -0
  118. cosmotech_api/model/twin_graph_hash.py +256 -0
  119. cosmotech_api/model/twin_graph_import.py +278 -0
  120. cosmotech_api/model/twin_graph_import_info.py +260 -0
  121. cosmotech_api/model/twin_graph_query.py +266 -0
  122. cosmotech_api/model/user.py +281 -0
  123. cosmotech_api/model/user_organization.py +275 -0
  124. cosmotech_api/model/user_workspace.py +266 -0
  125. cosmotech_api/model/validator.py +295 -0
  126. cosmotech_api/model/validator_run.py +302 -0
  127. cosmotech_api/model/workspace.py +351 -0
  128. cosmotech_api/model/workspace_access_control.py +268 -0
  129. cosmotech_api/model/workspace_file.py +256 -0
  130. cosmotech_api/model/workspace_role.py +262 -0
  131. cosmotech_api/model/workspace_secret.py +256 -0
  132. cosmotech_api/model/workspace_security.py +274 -0
  133. cosmotech_api/model/workspace_solution.py +264 -0
  134. cosmotech_api/model/workspace_user.py +278 -0
  135. cosmotech_api/model/workspace_web_app.py +270 -0
  136. cosmotech_api/model_utils.py +2038 -0
  137. cosmotech_api/models/__init__.py +127 -0
  138. cosmotech_api/models/component_role_permissions.py +90 -0
  139. cosmotech_api/models/connector.py +135 -0
  140. cosmotech_api/models/connector_parameter.py +98 -0
  141. cosmotech_api/models/connector_parameter_group.py +100 -0
  142. cosmotech_api/models/container_resource_size_info.py +90 -0
  143. cosmotech_api/models/container_resource_sizing.py +97 -0
  144. cosmotech_api/models/dataset.py +195 -0
  145. cosmotech_api/models/dataset_access_control.py +90 -0
  146. cosmotech_api/models/dataset_compatibility.py +92 -0
  147. cosmotech_api/models/dataset_connector.py +94 -0
  148. cosmotech_api/models/dataset_copy_parameters.py +92 -0
  149. cosmotech_api/models/dataset_role.py +88 -0
  150. cosmotech_api/models/dataset_search.py +88 -0
  151. cosmotech_api/models/dataset_security.py +98 -0
  152. cosmotech_api/models/dataset_source_type.py +42 -0
  153. cosmotech_api/models/dataset_twin_graph_hash.py +88 -0
  154. cosmotech_api/models/dataset_twin_graph_info.py +92 -0
  155. cosmotech_api/models/dataset_twin_graph_query.py +88 -0
  156. cosmotech_api/models/delete_historical_data.py +92 -0
  157. cosmotech_api/models/file_upload_metadata.py +90 -0
  158. cosmotech_api/models/file_upload_validation.py +105 -0
  159. cosmotech_api/models/graph_properties.py +96 -0
  160. cosmotech_api/models/organization.py +108 -0
  161. cosmotech_api/models/organization_access_control.py +90 -0
  162. cosmotech_api/models/organization_role.py +88 -0
  163. cosmotech_api/models/organization_security.py +98 -0
  164. cosmotech_api/models/organization_service.py +96 -0
  165. cosmotech_api/models/organization_services.py +99 -0
  166. cosmotech_api/models/query_result.py +88 -0
  167. cosmotech_api/models/resource_size_info.py +90 -0
  168. cosmotech_api/models/run.py +167 -0
  169. cosmotech_api/models/run_container.py +126 -0
  170. cosmotech_api/models/run_container_artifact.py +90 -0
  171. cosmotech_api/models/run_container_logs.py +102 -0
  172. cosmotech_api/models/run_data.py +92 -0
  173. cosmotech_api/models/run_data_query.py +88 -0
  174. cosmotech_api/models/run_logs.py +107 -0
  175. cosmotech_api/models/run_resource_requested.py +90 -0
  176. cosmotech_api/models/run_search.py +112 -0
  177. cosmotech_api/models/run_start_containers.py +104 -0
  178. cosmotech_api/models/run_state.py +40 -0
  179. cosmotech_api/models/run_status.py +123 -0
  180. cosmotech_api/models/run_status_node.py +116 -0
  181. cosmotech_api/models/run_template.py +164 -0
  182. cosmotech_api/models/run_template_handler_id.py +42 -0
  183. cosmotech_api/models/run_template_orchestrator.py +38 -0
  184. cosmotech_api/models/run_template_parameter.py +102 -0
  185. cosmotech_api/models/run_template_parameter_group.py +98 -0
  186. cosmotech_api/models/run_template_parameter_value.py +94 -0
  187. cosmotech_api/models/run_template_resource_sizing.py +97 -0
  188. cosmotech_api/models/run_template_step_source.py +40 -0
  189. cosmotech_api/models/runner.py +188 -0
  190. cosmotech_api/models/runner_access_control.py +90 -0
  191. cosmotech_api/models/runner_changed_parameter_value.py +102 -0
  192. cosmotech_api/models/runner_comparison_result.py +106 -0
  193. cosmotech_api/models/runner_data_download_info.py +93 -0
  194. cosmotech_api/models/runner_data_download_job.py +90 -0
  195. cosmotech_api/models/runner_job_state.py +42 -0
  196. cosmotech_api/models/runner_last_run.py +94 -0
  197. cosmotech_api/models/runner_parent_last_run.py +94 -0
  198. cosmotech_api/models/runner_resource_sizing.py +97 -0
  199. cosmotech_api/models/runner_role.py +88 -0
  200. cosmotech_api/models/runner_root_last_run.py +94 -0
  201. cosmotech_api/models/runner_run_template_parameter_value.py +96 -0
  202. cosmotech_api/models/runner_security.py +98 -0
  203. cosmotech_api/models/runner_validation_status.py +40 -0
  204. cosmotech_api/models/scenario.py +186 -0
  205. cosmotech_api/models/scenario_access_control.py +90 -0
  206. cosmotech_api/models/scenario_changed_parameter_value.py +102 -0
  207. cosmotech_api/models/scenario_comparison_result.py +106 -0
  208. cosmotech_api/models/scenario_data_download_info.py +93 -0
  209. cosmotech_api/models/scenario_data_download_job.py +90 -0
  210. cosmotech_api/models/scenario_job_state.py +42 -0
  211. cosmotech_api/models/scenario_last_run.py +94 -0
  212. cosmotech_api/models/scenario_resource_sizing.py +97 -0
  213. cosmotech_api/models/scenario_role.py +88 -0
  214. cosmotech_api/models/scenario_run.py +179 -0
  215. cosmotech_api/models/scenario_run_container.py +126 -0
  216. cosmotech_api/models/scenario_run_container_artifact.py +90 -0
  217. cosmotech_api/models/scenario_run_container_logs.py +102 -0
  218. cosmotech_api/models/scenario_run_logs.py +107 -0
  219. cosmotech_api/models/scenario_run_resource_requested.py +90 -0
  220. cosmotech_api/models/scenario_run_result.py +90 -0
  221. cosmotech_api/models/scenario_run_search.py +112 -0
  222. cosmotech_api/models/scenario_run_start_containers.py +104 -0
  223. cosmotech_api/models/scenario_run_state.py +42 -0
  224. cosmotech_api/models/scenario_run_status.py +119 -0
  225. cosmotech_api/models/scenario_run_status_node.py +116 -0
  226. cosmotech_api/models/scenario_run_template_parameter_value.py +96 -0
  227. cosmotech_api/models/scenario_security.py +98 -0
  228. cosmotech_api/models/scenario_validation_status.py +40 -0
  229. cosmotech_api/models/send_run_data_request.py +90 -0
  230. cosmotech_api/models/solution.py +154 -0
  231. cosmotech_api/models/solution_access_control.py +90 -0
  232. cosmotech_api/models/solution_role.py +88 -0
  233. cosmotech_api/models/solution_security.py +98 -0
  234. cosmotech_api/models/source_info.py +94 -0
  235. cosmotech_api/models/sub_dataset_graph_query.py +94 -0
  236. cosmotech_api/models/twin_graph_batch_result.py +92 -0
  237. cosmotech_api/models/twin_graph_hash.py +88 -0
  238. cosmotech_api/models/twin_graph_query.py +90 -0
  239. cosmotech_api/models/validator.py +106 -0
  240. cosmotech_api/models/validator_run.py +126 -0
  241. cosmotech_api/models/workspace.py +142 -0
  242. cosmotech_api/models/workspace_access_control.py +90 -0
  243. cosmotech_api/models/workspace_file.py +88 -0
  244. cosmotech_api/models/workspace_role.py +88 -0
  245. cosmotech_api/models/workspace_secret.py +88 -0
  246. cosmotech_api/models/workspace_security.py +98 -0
  247. cosmotech_api/models/workspace_solution.py +92 -0
  248. cosmotech_api/models/workspace_web_app.py +92 -0
  249. cosmotech_api/py.typed +0 -0
  250. cosmotech_api/rest.py +256 -0
  251. cosmotech_api-3.2.0.dist-info/LICENSE +17 -0
  252. cosmotech_api-3.2.0.dist-info/METADATA +18 -0
  253. cosmotech_api-3.2.0.dist-info/RECORD +255 -0
  254. cosmotech_api-3.2.0.dist-info/WHEEL +5 -0
  255. cosmotech_api-3.2.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1291 @@
1
+ """
2
+ Cosmo Tech Platform API
3
+
4
+ Cosmo Tech Platform API # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.3.17
7
+ Contact: platform@cosmotech.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from cosmotech_api.api_client import ApiClient, Endpoint as _Endpoint
16
+ from cosmotech_api.model_utils import ( # noqa: F401
17
+ check_allowed_values,
18
+ check_validations,
19
+ date,
20
+ datetime,
21
+ file_type,
22
+ none_type,
23
+ validate_and_convert_types
24
+ )
25
+ from cosmotech_api.model.user import User
26
+
27
+
28
+ class UserApi(object):
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None):
36
+ if api_client is None:
37
+ api_client = ApiClient()
38
+ self.api_client = api_client
39
+ self.authorize_user_endpoint = _Endpoint(
40
+ settings={
41
+ 'response_type': None,
42
+ 'auth': [
43
+ 'oAuth2AuthCode'
44
+ ],
45
+ 'endpoint_path': '/oauth2/authorize',
46
+ 'operation_id': 'authorize_user',
47
+ 'http_method': 'GET',
48
+ 'servers': None,
49
+ },
50
+ params_map={
51
+ 'all': [
52
+ ],
53
+ 'required': [],
54
+ 'nullable': [
55
+ ],
56
+ 'enum': [
57
+ ],
58
+ 'validation': [
59
+ ]
60
+ },
61
+ root_map={
62
+ 'validations': {
63
+ },
64
+ 'allowed_values': {
65
+ },
66
+ 'openapi_types': {
67
+ },
68
+ 'attribute_map': {
69
+ },
70
+ 'location_map': {
71
+ },
72
+ 'collection_format_map': {
73
+ }
74
+ },
75
+ headers_map={
76
+ 'accept': [],
77
+ 'content_type': [],
78
+ },
79
+ api_client=api_client
80
+ )
81
+ self.find_all_users_endpoint = _Endpoint(
82
+ settings={
83
+ 'response_type': ([User],),
84
+ 'auth': [
85
+ 'oAuth2AuthCode'
86
+ ],
87
+ 'endpoint_path': '/users',
88
+ 'operation_id': 'find_all_users',
89
+ 'http_method': 'GET',
90
+ 'servers': None,
91
+ },
92
+ params_map={
93
+ 'all': [
94
+ ],
95
+ 'required': [],
96
+ 'nullable': [
97
+ ],
98
+ 'enum': [
99
+ ],
100
+ 'validation': [
101
+ ]
102
+ },
103
+ root_map={
104
+ 'validations': {
105
+ },
106
+ 'allowed_values': {
107
+ },
108
+ 'openapi_types': {
109
+ },
110
+ 'attribute_map': {
111
+ },
112
+ 'location_map': {
113
+ },
114
+ 'collection_format_map': {
115
+ }
116
+ },
117
+ headers_map={
118
+ 'accept': [
119
+ 'application/json'
120
+ ],
121
+ 'content_type': [],
122
+ },
123
+ api_client=api_client
124
+ )
125
+ self.find_user_by_id_endpoint = _Endpoint(
126
+ settings={
127
+ 'response_type': (User,),
128
+ 'auth': [
129
+ 'oAuth2AuthCode'
130
+ ],
131
+ 'endpoint_path': '/users/{user_id}',
132
+ 'operation_id': 'find_user_by_id',
133
+ 'http_method': 'GET',
134
+ 'servers': None,
135
+ },
136
+ params_map={
137
+ 'all': [
138
+ 'user_id',
139
+ ],
140
+ 'required': [
141
+ 'user_id',
142
+ ],
143
+ 'nullable': [
144
+ ],
145
+ 'enum': [
146
+ ],
147
+ 'validation': [
148
+ ]
149
+ },
150
+ root_map={
151
+ 'validations': {
152
+ },
153
+ 'allowed_values': {
154
+ },
155
+ 'openapi_types': {
156
+ 'user_id':
157
+ (str,),
158
+ },
159
+ 'attribute_map': {
160
+ 'user_id': 'user_id',
161
+ },
162
+ 'location_map': {
163
+ 'user_id': 'path',
164
+ },
165
+ 'collection_format_map': {
166
+ }
167
+ },
168
+ headers_map={
169
+ 'accept': [
170
+ 'application/json'
171
+ ],
172
+ 'content_type': [],
173
+ },
174
+ api_client=api_client
175
+ )
176
+ self.get_current_user_endpoint = _Endpoint(
177
+ settings={
178
+ 'response_type': (User,),
179
+ 'auth': [
180
+ 'oAuth2AuthCode'
181
+ ],
182
+ 'endpoint_path': '/users/me',
183
+ 'operation_id': 'get_current_user',
184
+ 'http_method': 'GET',
185
+ 'servers': None,
186
+ },
187
+ params_map={
188
+ 'all': [
189
+ ],
190
+ 'required': [],
191
+ 'nullable': [
192
+ ],
193
+ 'enum': [
194
+ ],
195
+ 'validation': [
196
+ ]
197
+ },
198
+ root_map={
199
+ 'validations': {
200
+ },
201
+ 'allowed_values': {
202
+ },
203
+ 'openapi_types': {
204
+ },
205
+ 'attribute_map': {
206
+ },
207
+ 'location_map': {
208
+ },
209
+ 'collection_format_map': {
210
+ }
211
+ },
212
+ headers_map={
213
+ 'accept': [
214
+ 'application/json'
215
+ ],
216
+ 'content_type': [],
217
+ },
218
+ api_client=api_client
219
+ )
220
+ self.get_organization_current_user_endpoint = _Endpoint(
221
+ settings={
222
+ 'response_type': (User,),
223
+ 'auth': [
224
+ 'oAuth2AuthCode'
225
+ ],
226
+ 'endpoint_path': '/organizations/{organization_id}/me',
227
+ 'operation_id': 'get_organization_current_user',
228
+ 'http_method': 'GET',
229
+ 'servers': None,
230
+ },
231
+ params_map={
232
+ 'all': [
233
+ 'organization_id',
234
+ ],
235
+ 'required': [
236
+ 'organization_id',
237
+ ],
238
+ 'nullable': [
239
+ ],
240
+ 'enum': [
241
+ ],
242
+ 'validation': [
243
+ ]
244
+ },
245
+ root_map={
246
+ 'validations': {
247
+ },
248
+ 'allowed_values': {
249
+ },
250
+ 'openapi_types': {
251
+ 'organization_id':
252
+ (str,),
253
+ },
254
+ 'attribute_map': {
255
+ 'organization_id': 'organization_id',
256
+ },
257
+ 'location_map': {
258
+ 'organization_id': 'path',
259
+ },
260
+ 'collection_format_map': {
261
+ }
262
+ },
263
+ headers_map={
264
+ 'accept': [
265
+ 'application/json'
266
+ ],
267
+ 'content_type': [],
268
+ },
269
+ api_client=api_client
270
+ )
271
+ self.get_workspace_current_user_endpoint = _Endpoint(
272
+ settings={
273
+ 'response_type': (User,),
274
+ 'auth': [
275
+ 'oAuth2AuthCode'
276
+ ],
277
+ 'endpoint_path': '/organizations/{organization_id}/workspaces/{workspace_id}/me',
278
+ 'operation_id': 'get_workspace_current_user',
279
+ 'http_method': 'GET',
280
+ 'servers': None,
281
+ },
282
+ params_map={
283
+ 'all': [
284
+ 'organization_id',
285
+ 'workspace_id',
286
+ ],
287
+ 'required': [
288
+ 'organization_id',
289
+ 'workspace_id',
290
+ ],
291
+ 'nullable': [
292
+ ],
293
+ 'enum': [
294
+ ],
295
+ 'validation': [
296
+ ]
297
+ },
298
+ root_map={
299
+ 'validations': {
300
+ },
301
+ 'allowed_values': {
302
+ },
303
+ 'openapi_types': {
304
+ 'organization_id':
305
+ (str,),
306
+ 'workspace_id':
307
+ (str,),
308
+ },
309
+ 'attribute_map': {
310
+ 'organization_id': 'organization_id',
311
+ 'workspace_id': 'workspace_id',
312
+ },
313
+ 'location_map': {
314
+ 'organization_id': 'path',
315
+ 'workspace_id': 'path',
316
+ },
317
+ 'collection_format_map': {
318
+ }
319
+ },
320
+ headers_map={
321
+ 'accept': [
322
+ 'application/json'
323
+ ],
324
+ 'content_type': [],
325
+ },
326
+ api_client=api_client
327
+ )
328
+ self.register_user_endpoint = _Endpoint(
329
+ settings={
330
+ 'response_type': (User,),
331
+ 'auth': [
332
+ 'oAuth2AuthCode'
333
+ ],
334
+ 'endpoint_path': '/users',
335
+ 'operation_id': 'register_user',
336
+ 'http_method': 'POST',
337
+ 'servers': None,
338
+ },
339
+ params_map={
340
+ 'all': [
341
+ 'user',
342
+ ],
343
+ 'required': [
344
+ 'user',
345
+ ],
346
+ 'nullable': [
347
+ ],
348
+ 'enum': [
349
+ ],
350
+ 'validation': [
351
+ ]
352
+ },
353
+ root_map={
354
+ 'validations': {
355
+ },
356
+ 'allowed_values': {
357
+ },
358
+ 'openapi_types': {
359
+ 'user':
360
+ (User,),
361
+ },
362
+ 'attribute_map': {
363
+ },
364
+ 'location_map': {
365
+ 'user': 'body',
366
+ },
367
+ 'collection_format_map': {
368
+ }
369
+ },
370
+ headers_map={
371
+ 'accept': [
372
+ 'application/json'
373
+ ],
374
+ 'content_type': [
375
+ 'application/json',
376
+ 'application/yaml'
377
+ ]
378
+ },
379
+ api_client=api_client
380
+ )
381
+ self.test_platform_endpoint = _Endpoint(
382
+ settings={
383
+ 'response_type': (str,),
384
+ 'auth': [
385
+ 'oAuth2AuthCode'
386
+ ],
387
+ 'endpoint_path': '/test',
388
+ 'operation_id': 'test_platform',
389
+ 'http_method': 'GET',
390
+ 'servers': None,
391
+ },
392
+ params_map={
393
+ 'all': [
394
+ ],
395
+ 'required': [],
396
+ 'nullable': [
397
+ ],
398
+ 'enum': [
399
+ ],
400
+ 'validation': [
401
+ ]
402
+ },
403
+ root_map={
404
+ 'validations': {
405
+ },
406
+ 'allowed_values': {
407
+ },
408
+ 'openapi_types': {
409
+ },
410
+ 'attribute_map': {
411
+ },
412
+ 'location_map': {
413
+ },
414
+ 'collection_format_map': {
415
+ }
416
+ },
417
+ headers_map={
418
+ 'accept': [
419
+ 'text/plain'
420
+ ],
421
+ 'content_type': [],
422
+ },
423
+ api_client=api_client
424
+ )
425
+ self.unregister_user_endpoint = _Endpoint(
426
+ settings={
427
+ 'response_type': None,
428
+ 'auth': [
429
+ 'oAuth2AuthCode'
430
+ ],
431
+ 'endpoint_path': '/users/{user_id}',
432
+ 'operation_id': 'unregister_user',
433
+ 'http_method': 'DELETE',
434
+ 'servers': None,
435
+ },
436
+ params_map={
437
+ 'all': [
438
+ 'user_id',
439
+ ],
440
+ 'required': [
441
+ 'user_id',
442
+ ],
443
+ 'nullable': [
444
+ ],
445
+ 'enum': [
446
+ ],
447
+ 'validation': [
448
+ ]
449
+ },
450
+ root_map={
451
+ 'validations': {
452
+ },
453
+ 'allowed_values': {
454
+ },
455
+ 'openapi_types': {
456
+ 'user_id':
457
+ (str,),
458
+ },
459
+ 'attribute_map': {
460
+ 'user_id': 'user_id',
461
+ },
462
+ 'location_map': {
463
+ 'user_id': 'path',
464
+ },
465
+ 'collection_format_map': {
466
+ }
467
+ },
468
+ headers_map={
469
+ 'accept': [],
470
+ 'content_type': [],
471
+ },
472
+ api_client=api_client
473
+ )
474
+ self.update_user_endpoint = _Endpoint(
475
+ settings={
476
+ 'response_type': (User,),
477
+ 'auth': [
478
+ 'oAuth2AuthCode'
479
+ ],
480
+ 'endpoint_path': '/users/{user_id}',
481
+ 'operation_id': 'update_user',
482
+ 'http_method': 'PATCH',
483
+ 'servers': None,
484
+ },
485
+ params_map={
486
+ 'all': [
487
+ 'user_id',
488
+ 'user',
489
+ ],
490
+ 'required': [
491
+ 'user_id',
492
+ 'user',
493
+ ],
494
+ 'nullable': [
495
+ ],
496
+ 'enum': [
497
+ ],
498
+ 'validation': [
499
+ ]
500
+ },
501
+ root_map={
502
+ 'validations': {
503
+ },
504
+ 'allowed_values': {
505
+ },
506
+ 'openapi_types': {
507
+ 'user_id':
508
+ (str,),
509
+ 'user':
510
+ (User,),
511
+ },
512
+ 'attribute_map': {
513
+ 'user_id': 'user_id',
514
+ },
515
+ 'location_map': {
516
+ 'user_id': 'path',
517
+ 'user': 'body',
518
+ },
519
+ 'collection_format_map': {
520
+ }
521
+ },
522
+ headers_map={
523
+ 'accept': [
524
+ 'application/json'
525
+ ],
526
+ 'content_type': [
527
+ 'application/json',
528
+ 'application/yaml'
529
+ ]
530
+ },
531
+ api_client=api_client
532
+ )
533
+
534
+ def authorize_user(
535
+ self,
536
+ **kwargs
537
+ ):
538
+ """Authorize an User with OAuth2. Delegated to configured OAuth2 service # noqa: E501
539
+
540
+ This method makes a synchronous HTTP request by default. To make an
541
+ asynchronous HTTP request, please pass async_req=True
542
+
543
+ >>> thread = api.authorize_user(async_req=True)
544
+ >>> result = thread.get()
545
+
546
+
547
+ Keyword Args:
548
+ _return_http_data_only (bool): response data without head status
549
+ code and headers. Default is True.
550
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
551
+ will be returned without reading/decoding response data.
552
+ Default is True.
553
+ _request_timeout (int/float/tuple): timeout setting for this request. If
554
+ one number provided, it will be total request timeout. It can also
555
+ be a pair (tuple) of (connection, read) timeouts.
556
+ Default is None.
557
+ _check_input_type (bool): specifies if type checking
558
+ should be done one the data sent to the server.
559
+ Default is True.
560
+ _check_return_type (bool): specifies if type checking
561
+ should be done one the data received from the server.
562
+ Default is True.
563
+ _spec_property_naming (bool): True if the variable names in the input data
564
+ are serialized names, as specified in the OpenAPI document.
565
+ False if the variable names in the input data
566
+ are pythonic names, e.g. snake case (default)
567
+ _content_type (str/None): force body content-type.
568
+ Default is None and content-type will be predicted by allowed
569
+ content-types and body.
570
+ _host_index (int/None): specifies the index of the server
571
+ that we want to use.
572
+ Default is read from the configuration.
573
+ async_req (bool): execute request asynchronously
574
+
575
+ Returns:
576
+ None
577
+ If the method is called asynchronously, returns the request
578
+ thread.
579
+ """
580
+ kwargs['async_req'] = kwargs.get(
581
+ 'async_req', False
582
+ )
583
+ kwargs['_return_http_data_only'] = kwargs.get(
584
+ '_return_http_data_only', True
585
+ )
586
+ kwargs['_preload_content'] = kwargs.get(
587
+ '_preload_content', True
588
+ )
589
+ kwargs['_request_timeout'] = kwargs.get(
590
+ '_request_timeout', None
591
+ )
592
+ kwargs['_check_input_type'] = kwargs.get(
593
+ '_check_input_type', True
594
+ )
595
+ kwargs['_check_return_type'] = kwargs.get(
596
+ '_check_return_type', True
597
+ )
598
+ kwargs['_spec_property_naming'] = kwargs.get(
599
+ '_spec_property_naming', False
600
+ )
601
+ kwargs['_content_type'] = kwargs.get(
602
+ '_content_type')
603
+ kwargs['_host_index'] = kwargs.get('_host_index')
604
+ return self.authorize_user_endpoint.call_with_http_info(**kwargs)
605
+
606
+ def find_all_users(
607
+ self,
608
+ **kwargs
609
+ ):
610
+ """List all Users # noqa: E501
611
+
612
+ This method makes a synchronous HTTP request by default. To make an
613
+ asynchronous HTTP request, please pass async_req=True
614
+
615
+ >>> thread = api.find_all_users(async_req=True)
616
+ >>> result = thread.get()
617
+
618
+
619
+ Keyword Args:
620
+ _return_http_data_only (bool): response data without head status
621
+ code and headers. Default is True.
622
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
623
+ will be returned without reading/decoding response data.
624
+ Default is True.
625
+ _request_timeout (int/float/tuple): timeout setting for this request. If
626
+ one number provided, it will be total request timeout. It can also
627
+ be a pair (tuple) of (connection, read) timeouts.
628
+ Default is None.
629
+ _check_input_type (bool): specifies if type checking
630
+ should be done one the data sent to the server.
631
+ Default is True.
632
+ _check_return_type (bool): specifies if type checking
633
+ should be done one the data received from the server.
634
+ Default is True.
635
+ _spec_property_naming (bool): True if the variable names in the input data
636
+ are serialized names, as specified in the OpenAPI document.
637
+ False if the variable names in the input data
638
+ are pythonic names, e.g. snake case (default)
639
+ _content_type (str/None): force body content-type.
640
+ Default is None and content-type will be predicted by allowed
641
+ content-types and body.
642
+ _host_index (int/None): specifies the index of the server
643
+ that we want to use.
644
+ Default is read from the configuration.
645
+ async_req (bool): execute request asynchronously
646
+
647
+ Returns:
648
+ [User]
649
+ If the method is called asynchronously, returns the request
650
+ thread.
651
+ """
652
+ kwargs['async_req'] = kwargs.get(
653
+ 'async_req', False
654
+ )
655
+ kwargs['_return_http_data_only'] = kwargs.get(
656
+ '_return_http_data_only', True
657
+ )
658
+ kwargs['_preload_content'] = kwargs.get(
659
+ '_preload_content', True
660
+ )
661
+ kwargs['_request_timeout'] = kwargs.get(
662
+ '_request_timeout', None
663
+ )
664
+ kwargs['_check_input_type'] = kwargs.get(
665
+ '_check_input_type', True
666
+ )
667
+ kwargs['_check_return_type'] = kwargs.get(
668
+ '_check_return_type', True
669
+ )
670
+ kwargs['_spec_property_naming'] = kwargs.get(
671
+ '_spec_property_naming', False
672
+ )
673
+ kwargs['_content_type'] = kwargs.get(
674
+ '_content_type')
675
+ kwargs['_host_index'] = kwargs.get('_host_index')
676
+ return self.find_all_users_endpoint.call_with_http_info(**kwargs)
677
+
678
+ def find_user_by_id(
679
+ self,
680
+ user_id,
681
+ **kwargs
682
+ ):
683
+ """Get the details of an user # noqa: E501
684
+
685
+ This method makes a synchronous HTTP request by default. To make an
686
+ asynchronous HTTP request, please pass async_req=True
687
+
688
+ >>> thread = api.find_user_by_id(user_id, async_req=True)
689
+ >>> result = thread.get()
690
+
691
+ Args:
692
+ user_id (str): the User identifier
693
+
694
+ Keyword Args:
695
+ _return_http_data_only (bool): response data without head status
696
+ code and headers. Default is True.
697
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
698
+ will be returned without reading/decoding response data.
699
+ Default is True.
700
+ _request_timeout (int/float/tuple): timeout setting for this request. If
701
+ one number provided, it will be total request timeout. It can also
702
+ be a pair (tuple) of (connection, read) timeouts.
703
+ Default is None.
704
+ _check_input_type (bool): specifies if type checking
705
+ should be done one the data sent to the server.
706
+ Default is True.
707
+ _check_return_type (bool): specifies if type checking
708
+ should be done one the data received from the server.
709
+ Default is True.
710
+ _spec_property_naming (bool): True if the variable names in the input data
711
+ are serialized names, as specified in the OpenAPI document.
712
+ False if the variable names in the input data
713
+ are pythonic names, e.g. snake case (default)
714
+ _content_type (str/None): force body content-type.
715
+ Default is None and content-type will be predicted by allowed
716
+ content-types and body.
717
+ _host_index (int/None): specifies the index of the server
718
+ that we want to use.
719
+ Default is read from the configuration.
720
+ async_req (bool): execute request asynchronously
721
+
722
+ Returns:
723
+ User
724
+ If the method is called asynchronously, returns the request
725
+ thread.
726
+ """
727
+ kwargs['async_req'] = kwargs.get(
728
+ 'async_req', False
729
+ )
730
+ kwargs['_return_http_data_only'] = kwargs.get(
731
+ '_return_http_data_only', True
732
+ )
733
+ kwargs['_preload_content'] = kwargs.get(
734
+ '_preload_content', True
735
+ )
736
+ kwargs['_request_timeout'] = kwargs.get(
737
+ '_request_timeout', None
738
+ )
739
+ kwargs['_check_input_type'] = kwargs.get(
740
+ '_check_input_type', True
741
+ )
742
+ kwargs['_check_return_type'] = kwargs.get(
743
+ '_check_return_type', True
744
+ )
745
+ kwargs['_spec_property_naming'] = kwargs.get(
746
+ '_spec_property_naming', False
747
+ )
748
+ kwargs['_content_type'] = kwargs.get(
749
+ '_content_type')
750
+ kwargs['_host_index'] = kwargs.get('_host_index')
751
+ kwargs['user_id'] = \
752
+ user_id
753
+ return self.find_user_by_id_endpoint.call_with_http_info(**kwargs)
754
+
755
+ def get_current_user(
756
+ self,
757
+ **kwargs
758
+ ):
759
+ """Get the details of the logged-in User # noqa: E501
760
+
761
+ This method makes a synchronous HTTP request by default. To make an
762
+ asynchronous HTTP request, please pass async_req=True
763
+
764
+ >>> thread = api.get_current_user(async_req=True)
765
+ >>> result = thread.get()
766
+
767
+
768
+ Keyword Args:
769
+ _return_http_data_only (bool): response data without head status
770
+ code and headers. Default is True.
771
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
772
+ will be returned without reading/decoding response data.
773
+ Default is True.
774
+ _request_timeout (int/float/tuple): timeout setting for this request. If
775
+ one number provided, it will be total request timeout. It can also
776
+ be a pair (tuple) of (connection, read) timeouts.
777
+ Default is None.
778
+ _check_input_type (bool): specifies if type checking
779
+ should be done one the data sent to the server.
780
+ Default is True.
781
+ _check_return_type (bool): specifies if type checking
782
+ should be done one the data received from the server.
783
+ Default is True.
784
+ _spec_property_naming (bool): True if the variable names in the input data
785
+ are serialized names, as specified in the OpenAPI document.
786
+ False if the variable names in the input data
787
+ are pythonic names, e.g. snake case (default)
788
+ _content_type (str/None): force body content-type.
789
+ Default is None and content-type will be predicted by allowed
790
+ content-types and body.
791
+ _host_index (int/None): specifies the index of the server
792
+ that we want to use.
793
+ Default is read from the configuration.
794
+ async_req (bool): execute request asynchronously
795
+
796
+ Returns:
797
+ User
798
+ If the method is called asynchronously, returns the request
799
+ thread.
800
+ """
801
+ kwargs['async_req'] = kwargs.get(
802
+ 'async_req', False
803
+ )
804
+ kwargs['_return_http_data_only'] = kwargs.get(
805
+ '_return_http_data_only', True
806
+ )
807
+ kwargs['_preload_content'] = kwargs.get(
808
+ '_preload_content', True
809
+ )
810
+ kwargs['_request_timeout'] = kwargs.get(
811
+ '_request_timeout', None
812
+ )
813
+ kwargs['_check_input_type'] = kwargs.get(
814
+ '_check_input_type', True
815
+ )
816
+ kwargs['_check_return_type'] = kwargs.get(
817
+ '_check_return_type', True
818
+ )
819
+ kwargs['_spec_property_naming'] = kwargs.get(
820
+ '_spec_property_naming', False
821
+ )
822
+ kwargs['_content_type'] = kwargs.get(
823
+ '_content_type')
824
+ kwargs['_host_index'] = kwargs.get('_host_index')
825
+ return self.get_current_user_endpoint.call_with_http_info(**kwargs)
826
+
827
+ def get_organization_current_user(
828
+ self,
829
+ organization_id,
830
+ **kwargs
831
+ ):
832
+ """Get the details of a logged-in User with roles for an Organization # noqa: E501
833
+
834
+ This method makes a synchronous HTTP request by default. To make an
835
+ asynchronous HTTP request, please pass async_req=True
836
+
837
+ >>> thread = api.get_organization_current_user(organization_id, async_req=True)
838
+ >>> result = thread.get()
839
+
840
+ Args:
841
+ organization_id (str): the Organization identifier
842
+
843
+ Keyword Args:
844
+ _return_http_data_only (bool): response data without head status
845
+ code and headers. Default is True.
846
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
847
+ will be returned without reading/decoding response data.
848
+ Default is True.
849
+ _request_timeout (int/float/tuple): timeout setting for this request. If
850
+ one number provided, it will be total request timeout. It can also
851
+ be a pair (tuple) of (connection, read) timeouts.
852
+ Default is None.
853
+ _check_input_type (bool): specifies if type checking
854
+ should be done one the data sent to the server.
855
+ Default is True.
856
+ _check_return_type (bool): specifies if type checking
857
+ should be done one the data received from the server.
858
+ Default is True.
859
+ _spec_property_naming (bool): True if the variable names in the input data
860
+ are serialized names, as specified in the OpenAPI document.
861
+ False if the variable names in the input data
862
+ are pythonic names, e.g. snake case (default)
863
+ _content_type (str/None): force body content-type.
864
+ Default is None and content-type will be predicted by allowed
865
+ content-types and body.
866
+ _host_index (int/None): specifies the index of the server
867
+ that we want to use.
868
+ Default is read from the configuration.
869
+ async_req (bool): execute request asynchronously
870
+
871
+ Returns:
872
+ User
873
+ If the method is called asynchronously, returns the request
874
+ thread.
875
+ """
876
+ kwargs['async_req'] = kwargs.get(
877
+ 'async_req', False
878
+ )
879
+ kwargs['_return_http_data_only'] = kwargs.get(
880
+ '_return_http_data_only', True
881
+ )
882
+ kwargs['_preload_content'] = kwargs.get(
883
+ '_preload_content', True
884
+ )
885
+ kwargs['_request_timeout'] = kwargs.get(
886
+ '_request_timeout', None
887
+ )
888
+ kwargs['_check_input_type'] = kwargs.get(
889
+ '_check_input_type', True
890
+ )
891
+ kwargs['_check_return_type'] = kwargs.get(
892
+ '_check_return_type', True
893
+ )
894
+ kwargs['_spec_property_naming'] = kwargs.get(
895
+ '_spec_property_naming', False
896
+ )
897
+ kwargs['_content_type'] = kwargs.get(
898
+ '_content_type')
899
+ kwargs['_host_index'] = kwargs.get('_host_index')
900
+ kwargs['organization_id'] = \
901
+ organization_id
902
+ return self.get_organization_current_user_endpoint.call_with_http_info(**kwargs)
903
+
904
+ def get_workspace_current_user(
905
+ self,
906
+ organization_id,
907
+ workspace_id,
908
+ **kwargs
909
+ ):
910
+ """Get the details of the logged-in user with roles for a Workspace # noqa: E501
911
+
912
+ This method makes a synchronous HTTP request by default. To make an
913
+ asynchronous HTTP request, please pass async_req=True
914
+
915
+ >>> thread = api.get_workspace_current_user(organization_id, workspace_id, async_req=True)
916
+ >>> result = thread.get()
917
+
918
+ Args:
919
+ organization_id (str): the Organization identifier
920
+ workspace_id (str): the Workspace identifier
921
+
922
+ Keyword Args:
923
+ _return_http_data_only (bool): response data without head status
924
+ code and headers. Default is True.
925
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
926
+ will be returned without reading/decoding response data.
927
+ Default is True.
928
+ _request_timeout (int/float/tuple): timeout setting for this request. If
929
+ one number provided, it will be total request timeout. It can also
930
+ be a pair (tuple) of (connection, read) timeouts.
931
+ Default is None.
932
+ _check_input_type (bool): specifies if type checking
933
+ should be done one the data sent to the server.
934
+ Default is True.
935
+ _check_return_type (bool): specifies if type checking
936
+ should be done one the data received from the server.
937
+ Default is True.
938
+ _spec_property_naming (bool): True if the variable names in the input data
939
+ are serialized names, as specified in the OpenAPI document.
940
+ False if the variable names in the input data
941
+ are pythonic names, e.g. snake case (default)
942
+ _content_type (str/None): force body content-type.
943
+ Default is None and content-type will be predicted by allowed
944
+ content-types and body.
945
+ _host_index (int/None): specifies the index of the server
946
+ that we want to use.
947
+ Default is read from the configuration.
948
+ async_req (bool): execute request asynchronously
949
+
950
+ Returns:
951
+ User
952
+ If the method is called asynchronously, returns the request
953
+ thread.
954
+ """
955
+ kwargs['async_req'] = kwargs.get(
956
+ 'async_req', False
957
+ )
958
+ kwargs['_return_http_data_only'] = kwargs.get(
959
+ '_return_http_data_only', True
960
+ )
961
+ kwargs['_preload_content'] = kwargs.get(
962
+ '_preload_content', True
963
+ )
964
+ kwargs['_request_timeout'] = kwargs.get(
965
+ '_request_timeout', None
966
+ )
967
+ kwargs['_check_input_type'] = kwargs.get(
968
+ '_check_input_type', True
969
+ )
970
+ kwargs['_check_return_type'] = kwargs.get(
971
+ '_check_return_type', True
972
+ )
973
+ kwargs['_spec_property_naming'] = kwargs.get(
974
+ '_spec_property_naming', False
975
+ )
976
+ kwargs['_content_type'] = kwargs.get(
977
+ '_content_type')
978
+ kwargs['_host_index'] = kwargs.get('_host_index')
979
+ kwargs['organization_id'] = \
980
+ organization_id
981
+ kwargs['workspace_id'] = \
982
+ workspace_id
983
+ return self.get_workspace_current_user_endpoint.call_with_http_info(**kwargs)
984
+
985
+ def register_user(
986
+ self,
987
+ user,
988
+ **kwargs
989
+ ):
990
+ """Register a new user # noqa: E501
991
+
992
+ This method makes a synchronous HTTP request by default. To make an
993
+ asynchronous HTTP request, please pass async_req=True
994
+
995
+ >>> thread = api.register_user(user, async_req=True)
996
+ >>> result = thread.get()
997
+
998
+ Args:
999
+ user (User): the User to register
1000
+
1001
+ Keyword Args:
1002
+ _return_http_data_only (bool): response data without head status
1003
+ code and headers. Default is True.
1004
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1005
+ will be returned without reading/decoding response data.
1006
+ Default is True.
1007
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1008
+ one number provided, it will be total request timeout. It can also
1009
+ be a pair (tuple) of (connection, read) timeouts.
1010
+ Default is None.
1011
+ _check_input_type (bool): specifies if type checking
1012
+ should be done one the data sent to the server.
1013
+ Default is True.
1014
+ _check_return_type (bool): specifies if type checking
1015
+ should be done one the data received from the server.
1016
+ Default is True.
1017
+ _spec_property_naming (bool): True if the variable names in the input data
1018
+ are serialized names, as specified in the OpenAPI document.
1019
+ False if the variable names in the input data
1020
+ are pythonic names, e.g. snake case (default)
1021
+ _content_type (str/None): force body content-type.
1022
+ Default is None and content-type will be predicted by allowed
1023
+ content-types and body.
1024
+ _host_index (int/None): specifies the index of the server
1025
+ that we want to use.
1026
+ Default is read from the configuration.
1027
+ async_req (bool): execute request asynchronously
1028
+
1029
+ Returns:
1030
+ User
1031
+ If the method is called asynchronously, returns the request
1032
+ thread.
1033
+ """
1034
+ kwargs['async_req'] = kwargs.get(
1035
+ 'async_req', False
1036
+ )
1037
+ kwargs['_return_http_data_only'] = kwargs.get(
1038
+ '_return_http_data_only', True
1039
+ )
1040
+ kwargs['_preload_content'] = kwargs.get(
1041
+ '_preload_content', True
1042
+ )
1043
+ kwargs['_request_timeout'] = kwargs.get(
1044
+ '_request_timeout', None
1045
+ )
1046
+ kwargs['_check_input_type'] = kwargs.get(
1047
+ '_check_input_type', True
1048
+ )
1049
+ kwargs['_check_return_type'] = kwargs.get(
1050
+ '_check_return_type', True
1051
+ )
1052
+ kwargs['_spec_property_naming'] = kwargs.get(
1053
+ '_spec_property_naming', False
1054
+ )
1055
+ kwargs['_content_type'] = kwargs.get(
1056
+ '_content_type')
1057
+ kwargs['_host_index'] = kwargs.get('_host_index')
1058
+ kwargs['user'] = \
1059
+ user
1060
+ return self.register_user_endpoint.call_with_http_info(**kwargs)
1061
+
1062
+ def test_platform(
1063
+ self,
1064
+ **kwargs
1065
+ ):
1066
+ """test platform API call # noqa: E501
1067
+
1068
+ This method makes a synchronous HTTP request by default. To make an
1069
+ asynchronous HTTP request, please pass async_req=True
1070
+
1071
+ >>> thread = api.test_platform(async_req=True)
1072
+ >>> result = thread.get()
1073
+
1074
+
1075
+ Keyword Args:
1076
+ _return_http_data_only (bool): response data without head status
1077
+ code and headers. Default is True.
1078
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1079
+ will be returned without reading/decoding response data.
1080
+ Default is True.
1081
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1082
+ one number provided, it will be total request timeout. It can also
1083
+ be a pair (tuple) of (connection, read) timeouts.
1084
+ Default is None.
1085
+ _check_input_type (bool): specifies if type checking
1086
+ should be done one the data sent to the server.
1087
+ Default is True.
1088
+ _check_return_type (bool): specifies if type checking
1089
+ should be done one the data received from the server.
1090
+ Default is True.
1091
+ _spec_property_naming (bool): True if the variable names in the input data
1092
+ are serialized names, as specified in the OpenAPI document.
1093
+ False if the variable names in the input data
1094
+ are pythonic names, e.g. snake case (default)
1095
+ _content_type (str/None): force body content-type.
1096
+ Default is None and content-type will be predicted by allowed
1097
+ content-types and body.
1098
+ _host_index (int/None): specifies the index of the server
1099
+ that we want to use.
1100
+ Default is read from the configuration.
1101
+ async_req (bool): execute request asynchronously
1102
+
1103
+ Returns:
1104
+ str
1105
+ If the method is called asynchronously, returns the request
1106
+ thread.
1107
+ """
1108
+ kwargs['async_req'] = kwargs.get(
1109
+ 'async_req', False
1110
+ )
1111
+ kwargs['_return_http_data_only'] = kwargs.get(
1112
+ '_return_http_data_only', True
1113
+ )
1114
+ kwargs['_preload_content'] = kwargs.get(
1115
+ '_preload_content', True
1116
+ )
1117
+ kwargs['_request_timeout'] = kwargs.get(
1118
+ '_request_timeout', None
1119
+ )
1120
+ kwargs['_check_input_type'] = kwargs.get(
1121
+ '_check_input_type', True
1122
+ )
1123
+ kwargs['_check_return_type'] = kwargs.get(
1124
+ '_check_return_type', True
1125
+ )
1126
+ kwargs['_spec_property_naming'] = kwargs.get(
1127
+ '_spec_property_naming', False
1128
+ )
1129
+ kwargs['_content_type'] = kwargs.get(
1130
+ '_content_type')
1131
+ kwargs['_host_index'] = kwargs.get('_host_index')
1132
+ return self.test_platform_endpoint.call_with_http_info(**kwargs)
1133
+
1134
+ def unregister_user(
1135
+ self,
1136
+ user_id,
1137
+ **kwargs
1138
+ ):
1139
+ """Unregister an user # noqa: E501
1140
+
1141
+ This method makes a synchronous HTTP request by default. To make an
1142
+ asynchronous HTTP request, please pass async_req=True
1143
+
1144
+ >>> thread = api.unregister_user(user_id, async_req=True)
1145
+ >>> result = thread.get()
1146
+
1147
+ Args:
1148
+ user_id (str): the User identifier
1149
+
1150
+ Keyword Args:
1151
+ _return_http_data_only (bool): response data without head status
1152
+ code and headers. Default is True.
1153
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1154
+ will be returned without reading/decoding response data.
1155
+ Default is True.
1156
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1157
+ one number provided, it will be total request timeout. It can also
1158
+ be a pair (tuple) of (connection, read) timeouts.
1159
+ Default is None.
1160
+ _check_input_type (bool): specifies if type checking
1161
+ should be done one the data sent to the server.
1162
+ Default is True.
1163
+ _check_return_type (bool): specifies if type checking
1164
+ should be done one the data received from the server.
1165
+ Default is True.
1166
+ _spec_property_naming (bool): True if the variable names in the input data
1167
+ are serialized names, as specified in the OpenAPI document.
1168
+ False if the variable names in the input data
1169
+ are pythonic names, e.g. snake case (default)
1170
+ _content_type (str/None): force body content-type.
1171
+ Default is None and content-type will be predicted by allowed
1172
+ content-types and body.
1173
+ _host_index (int/None): specifies the index of the server
1174
+ that we want to use.
1175
+ Default is read from the configuration.
1176
+ async_req (bool): execute request asynchronously
1177
+
1178
+ Returns:
1179
+ None
1180
+ If the method is called asynchronously, returns the request
1181
+ thread.
1182
+ """
1183
+ kwargs['async_req'] = kwargs.get(
1184
+ 'async_req', False
1185
+ )
1186
+ kwargs['_return_http_data_only'] = kwargs.get(
1187
+ '_return_http_data_only', True
1188
+ )
1189
+ kwargs['_preload_content'] = kwargs.get(
1190
+ '_preload_content', True
1191
+ )
1192
+ kwargs['_request_timeout'] = kwargs.get(
1193
+ '_request_timeout', None
1194
+ )
1195
+ kwargs['_check_input_type'] = kwargs.get(
1196
+ '_check_input_type', True
1197
+ )
1198
+ kwargs['_check_return_type'] = kwargs.get(
1199
+ '_check_return_type', True
1200
+ )
1201
+ kwargs['_spec_property_naming'] = kwargs.get(
1202
+ '_spec_property_naming', False
1203
+ )
1204
+ kwargs['_content_type'] = kwargs.get(
1205
+ '_content_type')
1206
+ kwargs['_host_index'] = kwargs.get('_host_index')
1207
+ kwargs['user_id'] = \
1208
+ user_id
1209
+ return self.unregister_user_endpoint.call_with_http_info(**kwargs)
1210
+
1211
+ def update_user(
1212
+ self,
1213
+ user_id,
1214
+ user,
1215
+ **kwargs
1216
+ ):
1217
+ """Update a User # noqa: E501
1218
+
1219
+ This method makes a synchronous HTTP request by default. To make an
1220
+ asynchronous HTTP request, please pass async_req=True
1221
+
1222
+ >>> thread = api.update_user(user_id, user, async_req=True)
1223
+ >>> result = thread.get()
1224
+
1225
+ Args:
1226
+ user_id (str): the User identifier
1227
+ user (User): the new User details. Organization membership is handled via the /organizations endpoint.
1228
+
1229
+ Keyword Args:
1230
+ _return_http_data_only (bool): response data without head status
1231
+ code and headers. Default is True.
1232
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1233
+ will be returned without reading/decoding response data.
1234
+ Default is True.
1235
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1236
+ one number provided, it will be total request timeout. It can also
1237
+ be a pair (tuple) of (connection, read) timeouts.
1238
+ Default is None.
1239
+ _check_input_type (bool): specifies if type checking
1240
+ should be done one the data sent to the server.
1241
+ Default is True.
1242
+ _check_return_type (bool): specifies if type checking
1243
+ should be done one the data received from the server.
1244
+ Default is True.
1245
+ _spec_property_naming (bool): True if the variable names in the input data
1246
+ are serialized names, as specified in the OpenAPI document.
1247
+ False if the variable names in the input data
1248
+ are pythonic names, e.g. snake case (default)
1249
+ _content_type (str/None): force body content-type.
1250
+ Default is None and content-type will be predicted by allowed
1251
+ content-types and body.
1252
+ _host_index (int/None): specifies the index of the server
1253
+ that we want to use.
1254
+ Default is read from the configuration.
1255
+ async_req (bool): execute request asynchronously
1256
+
1257
+ Returns:
1258
+ User
1259
+ If the method is called asynchronously, returns the request
1260
+ thread.
1261
+ """
1262
+ kwargs['async_req'] = kwargs.get(
1263
+ 'async_req', False
1264
+ )
1265
+ kwargs['_return_http_data_only'] = kwargs.get(
1266
+ '_return_http_data_only', True
1267
+ )
1268
+ kwargs['_preload_content'] = kwargs.get(
1269
+ '_preload_content', True
1270
+ )
1271
+ kwargs['_request_timeout'] = kwargs.get(
1272
+ '_request_timeout', None
1273
+ )
1274
+ kwargs['_check_input_type'] = kwargs.get(
1275
+ '_check_input_type', True
1276
+ )
1277
+ kwargs['_check_return_type'] = kwargs.get(
1278
+ '_check_return_type', True
1279
+ )
1280
+ kwargs['_spec_property_naming'] = kwargs.get(
1281
+ '_spec_property_naming', False
1282
+ )
1283
+ kwargs['_content_type'] = kwargs.get(
1284
+ '_content_type')
1285
+ kwargs['_host_index'] = kwargs.get('_host_index')
1286
+ kwargs['user_id'] = \
1287
+ user_id
1288
+ kwargs['user'] = \
1289
+ user
1290
+ return self.update_user_endpoint.call_with_http_info(**kwargs)
1291
+