polyaxon-sdk 1.18.0rc7__py2.py3-none-any.whl → 2.1.6__py2.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 (276) hide show
  1. polyaxon_sdk/__init__.py +26 -34
  2. polyaxon_sdk/api/__init__.py +2 -18
  3. polyaxon_sdk/api/agents_v1_api.py +2314 -1108
  4. polyaxon_sdk/api/artifacts_stores_v1_api.py +90 -97
  5. polyaxon_sdk/api/auth_v1_api.py +398 -359
  6. polyaxon_sdk/api/connections_v1_api.py +516 -488
  7. polyaxon_sdk/api/dashboards_v1_api.py +516 -488
  8. polyaxon_sdk/api/organizations_v1_api.py +3107 -2327
  9. polyaxon_sdk/api/policies_v1_api.py +1232 -0
  10. polyaxon_sdk/api/presets_v1_api.py +528 -498
  11. polyaxon_sdk/api/project_dashboards_v1_api.py +596 -590
  12. polyaxon_sdk/api/project_searches_v1_api.py +596 -590
  13. polyaxon_sdk/api/projects_v1_api.py +2248 -2167
  14. polyaxon_sdk/api/queues_v1_api.py +701 -670
  15. polyaxon_sdk/api/runs_v1_api.py +5136 -4477
  16. polyaxon_sdk/api/schemas_v1_api.py +64 -70
  17. polyaxon_sdk/api/searches_v1_api.py +516 -488
  18. polyaxon_sdk/api/service_accounts_v1_api.py +956 -920
  19. polyaxon_sdk/api/tags_v1_api.py +587 -552
  20. polyaxon_sdk/api/teams_v1_api.py +953 -916
  21. polyaxon_sdk/api/users_v1_api.py +730 -646
  22. polyaxon_sdk/api/versions_v1_api.py +206 -190
  23. polyaxon_sdk/api_client.py +145 -101
  24. polyaxon_sdk/configuration.py +46 -79
  25. polyaxon_sdk/exceptions.py +6 -23
  26. polyaxon_sdk/models/__init__.py +24 -32
  27. polyaxon_sdk/models/agent_state_response_agent_state.py +71 -364
  28. polyaxon_sdk/models/mx_job_mode.py +12 -105
  29. polyaxon_sdk/models/protobuf_any.py +65 -164
  30. polyaxon_sdk/models/protobuf_null_value.py +11 -104
  31. polyaxon_sdk/models/runtime_error.py +67 -208
  32. polyaxon_sdk/models/search_view.py +18 -111
  33. polyaxon_sdk/models/v1_activity.py +68 -313
  34. polyaxon_sdk/models/v1_agent.py +93 -495
  35. polyaxon_sdk/models/v1_agent_reconcile_body_request.py +75 -0
  36. polyaxon_sdk/models/v1_agent_state_response.py +64 -208
  37. polyaxon_sdk/models/v1_agent_status_body_request.py +61 -182
  38. polyaxon_sdk/models/v1_analytics_spec.py +59 -208
  39. polyaxon_sdk/models/v1_artifact_kind.py +42 -134
  40. polyaxon_sdk/models/v1_artifact_tree.py +57 -182
  41. polyaxon_sdk/models/v1_artifacts_mount.py +55 -156
  42. polyaxon_sdk/models/v1_artifacts_type.py +57 -182
  43. polyaxon_sdk/models/v1_auth.py +54 -131
  44. polyaxon_sdk/models/v1_auth_type.py +55 -156
  45. polyaxon_sdk/models/v1_average_stopping_policy.py +54 -131
  46. polyaxon_sdk/models/v1_bayes.py +79 -364
  47. polyaxon_sdk/models/v1_bucket_connection.py +54 -131
  48. polyaxon_sdk/models/v1_build.py +82 -312
  49. polyaxon_sdk/models/v1_cache.py +59 -208
  50. polyaxon_sdk/models/v1_claim_connection.py +59 -208
  51. polyaxon_sdk/models/v1_clean_pod_policy.py +13 -106
  52. polyaxon_sdk/models/v1_cloning.py +58 -182
  53. polyaxon_sdk/models/v1_cloning_kind.py +13 -106
  54. polyaxon_sdk/models/v1_compatibility.py +72 -208
  55. polyaxon_sdk/models/v1_compiled_operation.py +171 -783
  56. polyaxon_sdk/models/v1_component.py +132 -572
  57. polyaxon_sdk/models/v1_connection_kind.py +53 -146
  58. polyaxon_sdk/models/v1_connection_resource.py +77 -0
  59. polyaxon_sdk/models/v1_connection_response.py +71 -339
  60. polyaxon_sdk/models/v1_connection_schema.py +81 -234
  61. polyaxon_sdk/models/v1_connection_type.py +77 -338
  62. polyaxon_sdk/models/v1_credentials.py +55 -156
  63. polyaxon_sdk/models/v1_cron_schedule.py +64 -261
  64. polyaxon_sdk/models/v1_dag.py +87 -314
  65. polyaxon_sdk/models/v1_dag_ref.py +55 -156
  66. polyaxon_sdk/models/v1_dashboard.py +74 -339
  67. polyaxon_sdk/models/v1_dashboard_spec.py +70 -131
  68. polyaxon_sdk/models/v1_dask_job.py +87 -0
  69. polyaxon_sdk/models/v1_dask_replica.py +95 -0
  70. polyaxon_sdk/models/v1_date_time_schedule.py +56 -157
  71. polyaxon_sdk/models/v1_diff_stopping_policy.py +61 -236
  72. polyaxon_sdk/models/v1_dockerfile_type.py +79 -468
  73. polyaxon_sdk/models/v1_early_stopping.py +81 -234
  74. polyaxon_sdk/models/v1_entities_tags.py +55 -156
  75. polyaxon_sdk/models/v1_entities_transfer.py +55 -156
  76. polyaxon_sdk/models/v1_entity_notification_body.py +69 -286
  77. polyaxon_sdk/models/v1_entity_stage_body_request.py +65 -234
  78. polyaxon_sdk/models/v1_entity_status_body_request.py +65 -234
  79. polyaxon_sdk/models/v1_environment.py +87 -588
  80. polyaxon_sdk/models/v1_event.py +130 -499
  81. polyaxon_sdk/models/v1_event_artifact.py +56 -156
  82. polyaxon_sdk/models/v1_event_audio.py +61 -240
  83. polyaxon_sdk/models/v1_event_chart.py +56 -156
  84. polyaxon_sdk/models/v1_event_chart_kind.py +13 -106
  85. polyaxon_sdk/models/v1_event_confusion_matrix.py +57 -182
  86. polyaxon_sdk/models/v1_event_curve.py +60 -208
  87. polyaxon_sdk/models/v1_event_curve_kind.py +13 -106
  88. polyaxon_sdk/models/v1_event_dataframe.py +55 -156
  89. polyaxon_sdk/models/v1_event_histogram.py +55 -156
  90. polyaxon_sdk/models/v1_event_image.py +59 -212
  91. polyaxon_sdk/models/v1_event_kind.py +42 -135
  92. polyaxon_sdk/models/v1_event_model.py +57 -182
  93. polyaxon_sdk/models/v1_event_span.py +110 -0
  94. polyaxon_sdk/models/v1_event_span_kind.py +39 -0
  95. polyaxon_sdk/models/v1_event_trigger.py +56 -156
  96. polyaxon_sdk/models/v1_event_type.py +56 -156
  97. polyaxon_sdk/models/v1_event_video.py +61 -238
  98. polyaxon_sdk/models/v1_events_response.py +54 -131
  99. polyaxon_sdk/models/v1_failure_early_stopping.py +55 -158
  100. polyaxon_sdk/models/v1_file_type.py +59 -208
  101. polyaxon_sdk/models/v1_gcs_type.py +55 -156
  102. polyaxon_sdk/models/v1_git_connection.py +57 -182
  103. polyaxon_sdk/models/v1_git_type.py +57 -182
  104. polyaxon_sdk/models/v1_grid_search.py +63 -260
  105. polyaxon_sdk/models/v1_hook.py +78 -312
  106. polyaxon_sdk/models/v1_host_connection.py +55 -156
  107. polyaxon_sdk/models/v1_host_path_connection.py +59 -208
  108. polyaxon_sdk/models/v1_hp_choice.py +55 -156
  109. polyaxon_sdk/models/v1_hp_date_range.py +55 -156
  110. polyaxon_sdk/models/v1_hp_date_time_range.py +55 -156
  111. polyaxon_sdk/models/v1_hp_geom_space.py +55 -156
  112. polyaxon_sdk/models/v1_hp_lin_space.py +55 -156
  113. polyaxon_sdk/models/v1_hp_log_normal.py +55 -156
  114. polyaxon_sdk/models/v1_hp_log_space.py +55 -156
  115. polyaxon_sdk/models/v1_hp_log_uniform.py +55 -156
  116. polyaxon_sdk/models/v1_hp_normal.py +55 -156
  117. polyaxon_sdk/models/v1_hp_p_choice.py +55 -156
  118. polyaxon_sdk/models/v1_hp_params.py +150 -523
  119. polyaxon_sdk/models/v1_hp_q_log_normal.py +55 -156
  120. polyaxon_sdk/models/v1_hp_q_log_uniform.py +55 -156
  121. polyaxon_sdk/models/v1_hp_q_normal.py +55 -156
  122. polyaxon_sdk/models/v1_hp_q_uniform.py +55 -156
  123. polyaxon_sdk/models/v1_hp_range.py +55 -156
  124. polyaxon_sdk/models/v1_hp_uniform.py +55 -156
  125. polyaxon_sdk/models/v1_hub_ref.py +55 -156
  126. polyaxon_sdk/models/v1_hyperband.py +85 -390
  127. polyaxon_sdk/models/v1_hyperopt.py +80 -364
  128. polyaxon_sdk/models/v1_hyperopt_algorithms.py +13 -106
  129. polyaxon_sdk/models/v1_init.py +95 -416
  130. polyaxon_sdk/models/v1_installation.py +67 -260
  131. polyaxon_sdk/models/v1_interval_schedule.py +64 -261
  132. polyaxon_sdk/models/v1_io.py +83 -442
  133. polyaxon_sdk/models/v1_iterative.py +69 -286
  134. polyaxon_sdk/models/v1_job.py +77 -288
  135. polyaxon_sdk/models/v1_join.py +71 -260
  136. polyaxon_sdk/models/v1_join_param.py +61 -234
  137. polyaxon_sdk/models/v1_kf_replica.py +77 -286
  138. polyaxon_sdk/models/v1_list_activities_response.py +67 -208
  139. polyaxon_sdk/models/v1_list_agents_response.py +67 -208
  140. polyaxon_sdk/models/v1_list_bookmarks_response.py +59 -208
  141. polyaxon_sdk/models/v1_list_connections_response.py +67 -208
  142. polyaxon_sdk/models/v1_list_dashboards_response.py +67 -208
  143. polyaxon_sdk/models/v1_list_organization_members_response.py +67 -208
  144. polyaxon_sdk/models/v1_list_organizations_response.py +67 -208
  145. polyaxon_sdk/models/v1_list_policies_response.py +85 -0
  146. polyaxon_sdk/models/v1_list_presets_response.py +67 -208
  147. polyaxon_sdk/models/v1_list_project_versions_response.py +67 -208
  148. polyaxon_sdk/models/v1_list_projects_response.py +67 -208
  149. polyaxon_sdk/models/v1_list_queues_response.py +67 -208
  150. polyaxon_sdk/models/v1_list_run_artifacts_response.py +67 -208
  151. polyaxon_sdk/models/v1_list_run_connections_response.py +67 -208
  152. polyaxon_sdk/models/v1_list_run_edges_response.py +67 -208
  153. polyaxon_sdk/models/v1_list_runs_response.py +67 -208
  154. polyaxon_sdk/models/v1_list_searches_response.py +67 -208
  155. polyaxon_sdk/models/v1_list_service_accounts_response.py +67 -208
  156. polyaxon_sdk/models/v1_list_tags_response.py +67 -208
  157. polyaxon_sdk/models/v1_list_team_members_response.py +67 -208
  158. polyaxon_sdk/models/v1_list_teams_response.py +67 -208
  159. polyaxon_sdk/models/v1_list_token_response.py +67 -208
  160. polyaxon_sdk/models/v1_log.py +62 -235
  161. polyaxon_sdk/models/v1_log_handler.py +55 -156
  162. polyaxon_sdk/models/v1_logs.py +68 -209
  163. polyaxon_sdk/models/v1_managed_by.py +36 -0
  164. polyaxon_sdk/models/v1_mapping.py +59 -208
  165. polyaxon_sdk/models/v1_matrix.py +93 -286
  166. polyaxon_sdk/models/v1_matrix_kind.py +17 -110
  167. polyaxon_sdk/models/v1_median_stopping_policy.py +59 -210
  168. polyaxon_sdk/models/v1_metric_early_stopping.py +62 -238
  169. polyaxon_sdk/models/v1_mpi_job.py +75 -312
  170. polyaxon_sdk/models/v1_multi_events_response.py +71 -0
  171. polyaxon_sdk/models/v1_mx_job.py +96 -364
  172. polyaxon_sdk/models/v1_notification.py +56 -156
  173. polyaxon_sdk/models/v1_operation.py +178 -939
  174. polyaxon_sdk/models/v1_operation_body.py +69 -286
  175. polyaxon_sdk/models/v1_optimization.py +12 -105
  176. polyaxon_sdk/models/v1_optimization_metric.py +56 -156
  177. polyaxon_sdk/models/v1_optimization_resource.py +56 -156
  178. polyaxon_sdk/models/v1_organization.py +84 -495
  179. polyaxon_sdk/models/v1_organization_member.py +64 -261
  180. polyaxon_sdk/models/v1_paddle_elastic_polic.py +77 -0
  181. polyaxon_sdk/models/v1_paddle_job.py +97 -0
  182. polyaxon_sdk/models/v1_param.py +63 -260
  183. polyaxon_sdk/models/v1_password_change.py +57 -182
  184. polyaxon_sdk/models/v1_patch_strategy.py +14 -107
  185. polyaxon_sdk/models/v1_path_ref.py +55 -156
  186. polyaxon_sdk/models/v1_pipeline.py +58 -182
  187. polyaxon_sdk/models/v1_pipeline_kind.py +12 -105
  188. polyaxon_sdk/models/v1_plugins.py +89 -442
  189. polyaxon_sdk/models/v1_policy.py +119 -0
  190. polyaxon_sdk/models/v1_polyaxon_init_container.py +59 -208
  191. polyaxon_sdk/models/v1_polyaxon_sidecar_container.py +67 -286
  192. polyaxon_sdk/models/v1_preset.py +70 -339
  193. polyaxon_sdk/models/v1_project.py +90 -495
  194. polyaxon_sdk/models/v1_project_settings.py +81 -338
  195. polyaxon_sdk/models/v1_project_version.py +102 -601
  196. polyaxon_sdk/models/v1_project_version_kind.py +13 -106
  197. polyaxon_sdk/models/v1_pytorch_elastic_policy.py +91 -0
  198. polyaxon_sdk/models/v1_pytorch_job.py +81 -234
  199. polyaxon_sdk/models/v1_queue.py +76 -417
  200. polyaxon_sdk/models/v1_random_search.py +63 -260
  201. polyaxon_sdk/models/v1_ray_job.py +94 -0
  202. polyaxon_sdk/models/v1_ray_replica.py +103 -0
  203. polyaxon_sdk/models/v1_reference.py +75 -208
  204. polyaxon_sdk/models/v1_resource_type.py +12 -105
  205. polyaxon_sdk/models/v1_run.py +158 -1043
  206. polyaxon_sdk/models/v1_run_artifact.py +70 -338
  207. polyaxon_sdk/models/v1_run_artifacts.py +62 -131
  208. polyaxon_sdk/models/v1_run_connection.py +57 -182
  209. polyaxon_sdk/models/v1_run_edge.py +70 -234
  210. polyaxon_sdk/models/v1_run_edge_kind.py +19 -111
  211. polyaxon_sdk/models/v1_run_edge_lineage.py +75 -0
  212. polyaxon_sdk/models/v1_run_edges_graph.py +79 -0
  213. polyaxon_sdk/models/v1_run_kind.py +28 -122
  214. polyaxon_sdk/models/v1_run_pending.py +14 -107
  215. polyaxon_sdk/models/v1_run_reference_catalog.py +59 -182
  216. polyaxon_sdk/models/v1_run_resources.py +61 -234
  217. polyaxon_sdk/models/v1_run_schema.py +120 -419
  218. polyaxon_sdk/models/v1_run_settings.py +94 -338
  219. polyaxon_sdk/models/v1_s3_type.py +55 -156
  220. polyaxon_sdk/models/v1_schedule.py +69 -182
  221. polyaxon_sdk/models/v1_schedule_kind.py +13 -106
  222. polyaxon_sdk/models/v1_scheduling_policy.py +61 -182
  223. polyaxon_sdk/models/v1_schemas.py +192 -731
  224. polyaxon_sdk/models/v1_search.py +77 -365
  225. polyaxon_sdk/models/v1_search_spec.py +87 -468
  226. polyaxon_sdk/models/v1_section_spec.py +75 -286
  227. polyaxon_sdk/models/v1_service.py +85 -396
  228. polyaxon_sdk/models/v1_service_account.py +70 -339
  229. polyaxon_sdk/models/v1_settings_catalog.py +57 -156
  230. polyaxon_sdk/models/v1_stage.py +66 -182
  231. polyaxon_sdk/models/v1_stage_condition.py +67 -261
  232. polyaxon_sdk/models/v1_stages.py +14 -107
  233. polyaxon_sdk/models/v1_status.py +68 -208
  234. polyaxon_sdk/models/v1_status_condition.py +67 -261
  235. polyaxon_sdk/models/v1_statuses.py +30 -123
  236. polyaxon_sdk/models/v1_tag.py +63 -260
  237. polyaxon_sdk/models/v1_team.py +72 -313
  238. polyaxon_sdk/models/v1_team_member.py +64 -261
  239. polyaxon_sdk/models/v1_team_settings.py +79 -182
  240. polyaxon_sdk/models/v1_template.py +57 -182
  241. polyaxon_sdk/models/v1_tensorboard_type.py +61 -234
  242. polyaxon_sdk/models/v1_termination.py +57 -182
  243. polyaxon_sdk/models/v1_tf_job.py +87 -286
  244. polyaxon_sdk/models/v1_token.py +72 -365
  245. polyaxon_sdk/models/v1_trial_start.py +63 -260
  246. polyaxon_sdk/models/v1_trigger_policy.py +16 -109
  247. polyaxon_sdk/models/v1_truncation_stopping_policy.py +63 -264
  248. polyaxon_sdk/models/v1_tuner.py +69 -208
  249. polyaxon_sdk/models/v1_uri_type.py +57 -182
  250. polyaxon_sdk/models/v1_url_ref.py +55 -156
  251. polyaxon_sdk/models/v1_user.py +63 -260
  252. polyaxon_sdk/models/v1_user_access.py +77 -0
  253. polyaxon_sdk/models/v1_user_email.py +54 -131
  254. polyaxon_sdk/models/v1_user_singup.py +61 -234
  255. polyaxon_sdk/models/v1_uuids.py +54 -131
  256. polyaxon_sdk/models/v1_validation.py +109 -0
  257. polyaxon_sdk/models/v1_version.py +55 -156
  258. polyaxon_sdk/models/v1_wasb_type.py +57 -182
  259. polyaxon_sdk/models/v1_xg_boost_job.py +73 -234
  260. polyaxon_sdk/rest.py +23 -41
  261. {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/METADATA +6 -4
  262. polyaxon_sdk-2.1.6.dist-info/RECORD +264 -0
  263. {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/WHEEL +1 -1
  264. polyaxon_sdk/models/mpi_job_implementation.py +0 -128
  265. polyaxon_sdk/models/spark_deploy_mode.py +0 -129
  266. polyaxon_sdk/models/v1_dask.py +0 -436
  267. polyaxon_sdk/models/v1_flink.py +0 -174
  268. polyaxon_sdk/models/v1_k8s_resource_schema.py +0 -226
  269. polyaxon_sdk/models/v1_k8s_resource_type.py +0 -200
  270. polyaxon_sdk/models/v1_project_user_access.py +0 -200
  271. polyaxon_sdk/models/v1_ray.py +0 -174
  272. polyaxon_sdk/models/v1_spark.py +0 -558
  273. polyaxon_sdk/models/v1_spark_replica.py +0 -252
  274. polyaxon_sdk/models/v1_spark_type.py +0 -130
  275. polyaxon_sdk-1.18.0rc7.dist-info/RECORD +0 -255
  276. {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/top_level.txt +0 -0
@@ -1,38 +1,31 @@
1
- #!/usr/bin/python
2
- #
3
- # Copyright 2018-2022 Polyaxon, Inc.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
1
  # coding: utf-8
18
2
 
19
3
  """
20
4
  Polyaxon SDKs and REST API specification.
21
5
 
22
- Polyaxon SDKs and REST API specification. # noqa: E501
6
+ # noqa: E501
23
7
 
24
- The version of the OpenAPI document: 1.18.0
8
+ The version of the OpenAPI document: 2.1.6
25
9
  Contact: contact@polyaxon.com
26
- Generated by: https://openapi-generator.tech
27
- """
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
28
11
 
12
+ Do not edit the class manually.
13
+ """
29
14
 
30
- from __future__ import absolute_import
31
15
 
32
16
  import re # noqa: F401
33
17
 
34
- # python 2 and python 3 compatibility library
35
- import six
18
+ from pydantic import validate_arguments, ValidationError
19
+ from typing_extensions import Annotated
20
+
21
+ from pydantic import Field, StrictBool, StrictInt, StrictStr
22
+
23
+ from typing import Any, Dict, Optional
24
+
25
+ from polyaxon_sdk.models.v1_list_activities_response import V1ListActivitiesResponse
26
+ from polyaxon_sdk.models.v1_list_token_response import V1ListTokenResponse
27
+ from polyaxon_sdk.models.v1_token import V1Token
28
+ from polyaxon_sdk.models.v1_user import V1User
36
29
 
37
30
  from polyaxon_sdk.api_client import ApiClient
38
31
  from polyaxon_sdk.exceptions import ( # noqa: F401
@@ -50,10 +43,11 @@ class UsersV1Api(object):
50
43
 
51
44
  def __init__(self, api_client=None):
52
45
  if api_client is None:
53
- api_client = ApiClient()
46
+ api_client = ApiClient.get_default()
54
47
  self.api_client = api_client
55
48
 
56
- def create_token(self, body, **kwargs): # noqa: E501
49
+ @validate_arguments
50
+ def create_token(self, body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
57
51
  """Create token # noqa: E501
58
52
 
59
53
  This method makes a synchronous HTTP request by default. To make an
@@ -82,7 +76,8 @@ class UsersV1Api(object):
82
76
  kwargs['_return_http_data_only'] = True
83
77
  return self.create_token_with_http_info(body, **kwargs) # noqa: E501
84
78
 
85
- def create_token_with_http_info(self, body, **kwargs): # noqa: E501
79
+ @validate_arguments
80
+ def create_token_with_http_info(self, body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
86
81
  """Create token # noqa: E501
87
82
 
88
83
  This method makes a synchronous HTTP request by default. To make an
@@ -110,90 +105,97 @@ class UsersV1Api(object):
110
105
  request; this effectively ignores the authentication
111
106
  in the spec for a single request.
112
107
  :type _request_auth: dict, optional
108
+ :type _content_type: string, optional: force content-type for the request
113
109
  :return: Returns the result object.
114
110
  If the method is called asynchronously,
115
111
  returns the request thread.
116
112
  :rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
117
113
  """
118
114
 
119
- local_var_params = locals()
115
+ _params = locals()
120
116
 
121
- all_params = [
117
+ _all_params = [
122
118
  'body'
123
119
  ]
124
- all_params.extend(
120
+ _all_params.extend(
125
121
  [
126
122
  'async_req',
127
123
  '_return_http_data_only',
128
124
  '_preload_content',
129
125
  '_request_timeout',
130
- '_request_auth'
126
+ '_request_auth',
127
+ '_content_type',
128
+ '_headers'
131
129
  ]
132
130
  )
133
131
 
134
- for key, val in six.iteritems(local_var_params['kwargs']):
135
- if key not in all_params:
132
+ # validate the arguments
133
+ for _key, _val in _params['kwargs'].items():
134
+ if _key not in _all_params:
136
135
  raise ApiTypeError(
137
136
  "Got an unexpected keyword argument '%s'"
138
- " to method create_token" % key
137
+ " to method create_token" % _key
139
138
  )
140
- local_var_params[key] = val
141
- del local_var_params['kwargs']
142
- # verify the required parameter 'body' is set
143
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
144
- local_var_params['body'] is None): # noqa: E501
145
- raise ApiValueError("Missing the required parameter `body` when calling `create_token`") # noqa: E501
146
-
147
- collection_formats = {}
148
-
149
- path_params = {}
150
-
151
- query_params = []
152
-
153
- header_params = {}
154
-
155
- form_params = []
156
- local_var_files = {}
157
-
158
- body_params = None
159
- if 'body' in local_var_params:
160
- body_params = local_var_params['body']
161
- # HTTP header `Accept`
162
- header_params['Accept'] = self.api_client.select_header_accept(
163
- ['application/json']) # noqa: E501
164
-
165
- # HTTP header `Content-Type`
166
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
139
+ _params[_key] = _val
140
+ del _params['kwargs']
141
+
142
+ _collection_formats = {}
143
+
144
+ # process the path parameters
145
+ _path_params = {}
146
+
147
+ # process the query parameters
148
+ _query_params = []
149
+ # process the header parameters
150
+ _header_params = dict(_params.get('_headers', {}))
151
+ # process the form parameters
152
+ _form_params = []
153
+ _files = {}
154
+ # process the body parameter
155
+ _body_params = None
156
+ if _params['body']:
157
+ _body_params = _params['body']
158
+
159
+ # set the HTTP header `Accept`
160
+ _header_params['Accept'] = self.api_client.select_header_accept(
167
161
  ['application/json']) # noqa: E501
168
162
 
169
- # Authentication setting
170
- auth_settings = ['ApiKey'] # noqa: E501
171
-
172
- response_types_map = {
173
- 200: "V1Token",
174
- 204: "object",
175
- 403: "object",
176
- 404: "object",
163
+ # set the HTTP header `Content-Type`
164
+ _content_types_list = _params.get('_content_type',
165
+ self.api_client.select_header_content_type(
166
+ ['application/json']))
167
+ if _content_types_list:
168
+ _header_params['Content-Type'] = _content_types_list
169
+
170
+ # authentication setting
171
+ _auth_settings = ['ApiKey'] # noqa: E501
172
+
173
+ _response_types_map = {
174
+ '200': "V1Token",
175
+ '204': "object",
176
+ '403': "object",
177
+ '404': "object",
177
178
  }
178
179
 
179
180
  return self.api_client.call_api(
180
181
  '/api/v1/users/tokens', 'POST',
181
- path_params,
182
- query_params,
183
- header_params,
184
- body=body_params,
185
- post_params=form_params,
186
- files=local_var_files,
187
- response_types_map=response_types_map,
188
- auth_settings=auth_settings,
189
- async_req=local_var_params.get('async_req'),
190
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
191
- _preload_content=local_var_params.get('_preload_content', True),
192
- _request_timeout=local_var_params.get('_request_timeout'),
193
- collection_formats=collection_formats,
194
- _request_auth=local_var_params.get('_request_auth'))
195
-
196
- def delete_token(self, uuid, **kwargs): # noqa: E501
182
+ _path_params,
183
+ _query_params,
184
+ _header_params,
185
+ body=_body_params,
186
+ post_params=_form_params,
187
+ files=_files,
188
+ response_types_map=_response_types_map,
189
+ auth_settings=_auth_settings,
190
+ async_req=_params.get('async_req'),
191
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
192
+ _preload_content=_params.get('_preload_content', True),
193
+ _request_timeout=_params.get('_request_timeout'),
194
+ collection_formats=_collection_formats,
195
+ _request_auth=_params.get('_request_auth'))
196
+
197
+ @validate_arguments
198
+ def delete_token(self, uuid : Annotated[StrictStr, Field(..., description="UUid of the namespace")], **kwargs) -> None: # noqa: E501
197
199
  """Delete token # noqa: E501
198
200
 
199
201
  This method makes a synchronous HTTP request by default. To make an
@@ -222,7 +224,8 @@ class UsersV1Api(object):
222
224
  kwargs['_return_http_data_only'] = True
223
225
  return self.delete_token_with_http_info(uuid, **kwargs) # noqa: E501
224
226
 
225
- def delete_token_with_http_info(self, uuid, **kwargs): # noqa: E501
227
+ @validate_arguments
228
+ def delete_token_with_http_info(self, uuid : Annotated[StrictStr, Field(..., description="UUid of the namespace")], **kwargs): # noqa: E501
226
229
  """Delete token # noqa: E501
227
230
 
228
231
  This method makes a synchronous HTTP request by default. To make an
@@ -250,87 +253,91 @@ class UsersV1Api(object):
250
253
  request; this effectively ignores the authentication
251
254
  in the spec for a single request.
252
255
  :type _request_auth: dict, optional
256
+ :type _content_type: string, optional: force content-type for the request
253
257
  :return: Returns the result object.
254
258
  If the method is called asynchronously,
255
259
  returns the request thread.
256
260
  :rtype: None
257
261
  """
258
262
 
259
- local_var_params = locals()
263
+ _params = locals()
260
264
 
261
- all_params = [
265
+ _all_params = [
262
266
  'uuid'
263
267
  ]
264
- all_params.extend(
268
+ _all_params.extend(
265
269
  [
266
270
  'async_req',
267
271
  '_return_http_data_only',
268
272
  '_preload_content',
269
273
  '_request_timeout',
270
- '_request_auth'
274
+ '_request_auth',
275
+ '_content_type',
276
+ '_headers'
271
277
  ]
272
278
  )
273
279
 
274
- for key, val in six.iteritems(local_var_params['kwargs']):
275
- if key not in all_params:
280
+ # validate the arguments
281
+ for _key, _val in _params['kwargs'].items():
282
+ if _key not in _all_params:
276
283
  raise ApiTypeError(
277
284
  "Got an unexpected keyword argument '%s'"
278
- " to method delete_token" % key
285
+ " to method delete_token" % _key
279
286
  )
280
- local_var_params[key] = val
281
- del local_var_params['kwargs']
282
- # verify the required parameter 'uuid' is set
283
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
284
- local_var_params['uuid'] is None): # noqa: E501
285
- raise ApiValueError("Missing the required parameter `uuid` when calling `delete_token`") # noqa: E501
286
-
287
- collection_formats = {}
288
-
289
- path_params = {}
290
- if 'uuid' in local_var_params:
291
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
292
-
293
- query_params = []
294
-
295
- header_params = {}
296
-
297
- form_params = []
298
- local_var_files = {}
299
-
300
- body_params = None
301
- # HTTP header `Accept`
302
- header_params['Accept'] = self.api_client.select_header_accept(
287
+ _params[_key] = _val
288
+ del _params['kwargs']
289
+
290
+ _collection_formats = {}
291
+
292
+ # process the path parameters
293
+ _path_params = {}
294
+ if _params['uuid']:
295
+ _path_params['uuid'] = _params['uuid']
296
+
297
+
298
+ # process the query parameters
299
+ _query_params = []
300
+ # process the header parameters
301
+ _header_params = dict(_params.get('_headers', {}))
302
+ # process the form parameters
303
+ _form_params = []
304
+ _files = {}
305
+ # process the body parameter
306
+ _body_params = None
307
+ # set the HTTP header `Accept`
308
+ _header_params['Accept'] = self.api_client.select_header_accept(
303
309
  ['application/json']) # noqa: E501
304
310
 
305
- # Authentication setting
306
- auth_settings = ['ApiKey'] # noqa: E501
311
+ # authentication setting
312
+ _auth_settings = ['ApiKey'] # noqa: E501
307
313
 
308
- response_types_map = {}
314
+ _response_types_map = {}
309
315
 
310
316
  return self.api_client.call_api(
311
317
  '/api/v1/users/tokens/{uuid}', 'DELETE',
312
- path_params,
313
- query_params,
314
- header_params,
315
- body=body_params,
316
- post_params=form_params,
317
- files=local_var_files,
318
- response_types_map=response_types_map,
319
- auth_settings=auth_settings,
320
- async_req=local_var_params.get('async_req'),
321
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
322
- _preload_content=local_var_params.get('_preload_content', True),
323
- _request_timeout=local_var_params.get('_request_timeout'),
324
- collection_formats=collection_formats,
325
- _request_auth=local_var_params.get('_request_auth'))
326
-
327
- def get_history(self, **kwargs): # noqa: E501
318
+ _path_params,
319
+ _query_params,
320
+ _header_params,
321
+ body=_body_params,
322
+ post_params=_form_params,
323
+ files=_files,
324
+ response_types_map=_response_types_map,
325
+ auth_settings=_auth_settings,
326
+ async_req=_params.get('async_req'),
327
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
328
+ _preload_content=_params.get('_preload_content', True),
329
+ _request_timeout=_params.get('_request_timeout'),
330
+ collection_formats=_collection_formats,
331
+ _request_auth=_params.get('_request_auth'))
332
+
333
+ @validate_arguments
334
+ def get_history(self, offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListActivitiesResponse: # noqa: E501
328
335
  """User History # noqa: E501
329
336
 
330
337
  This method makes a synchronous HTTP request by default. To make an
331
338
  asynchronous HTTP request, please pass async_req=True
332
339
 
333
- >>> thread = api.get_history(async_req=True)
340
+ >>> thread = api.get_history(offset, limit, sort, query, no_page, async_req=True)
334
341
  >>> result = thread.get()
335
342
 
336
343
  :param offset: Pagination offset.
@@ -359,15 +366,16 @@ class UsersV1Api(object):
359
366
  :rtype: V1ListActivitiesResponse
360
367
  """
361
368
  kwargs['_return_http_data_only'] = True
362
- return self.get_history_with_http_info(**kwargs) # noqa: E501
369
+ return self.get_history_with_http_info(offset, limit, sort, query, no_page, **kwargs) # noqa: E501
363
370
 
364
- def get_history_with_http_info(self, **kwargs): # noqa: E501
371
+ @validate_arguments
372
+ def get_history_with_http_info(self, offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
365
373
  """User History # noqa: E501
366
374
 
367
375
  This method makes a synchronous HTTP request by default. To make an
368
376
  asynchronous HTTP request, please pass async_req=True
369
377
 
370
- >>> thread = api.get_history_with_http_info(async_req=True)
378
+ >>> thread = api.get_history_with_http_info(offset, limit, sort, query, no_page, async_req=True)
371
379
  >>> result = thread.get()
372
380
 
373
381
  :param offset: Pagination offset.
@@ -397,100 +405,112 @@ class UsersV1Api(object):
397
405
  request; this effectively ignores the authentication
398
406
  in the spec for a single request.
399
407
  :type _request_auth: dict, optional
408
+ :type _content_type: string, optional: force content-type for the request
400
409
  :return: Returns the result object.
401
410
  If the method is called asynchronously,
402
411
  returns the request thread.
403
412
  :rtype: tuple(V1ListActivitiesResponse, status_code(int), headers(HTTPHeaderDict))
404
413
  """
405
414
 
406
- local_var_params = locals()
415
+ _params = locals()
407
416
 
408
- all_params = [
417
+ _all_params = [
409
418
  'offset',
410
419
  'limit',
411
420
  'sort',
412
421
  'query',
413
422
  'no_page'
414
423
  ]
415
- all_params.extend(
424
+ _all_params.extend(
416
425
  [
417
426
  'async_req',
418
427
  '_return_http_data_only',
419
428
  '_preload_content',
420
429
  '_request_timeout',
421
- '_request_auth'
430
+ '_request_auth',
431
+ '_content_type',
432
+ '_headers'
422
433
  ]
423
434
  )
424
435
 
425
- for key, val in six.iteritems(local_var_params['kwargs']):
426
- if key not in all_params:
436
+ # validate the arguments
437
+ for _key, _val in _params['kwargs'].items():
438
+ if _key not in _all_params:
427
439
  raise ApiTypeError(
428
440
  "Got an unexpected keyword argument '%s'"
429
- " to method get_history" % key
441
+ " to method get_history" % _key
430
442
  )
431
- local_var_params[key] = val
432
- del local_var_params['kwargs']
443
+ _params[_key] = _val
444
+ del _params['kwargs']
445
+
446
+ _collection_formats = {}
447
+
448
+ # process the path parameters
449
+ _path_params = {}
433
450
 
434
- collection_formats = {}
451
+ # process the query parameters
452
+ _query_params = []
453
+ if _params.get('offset') is not None: # noqa: E501
454
+ _query_params.append(('offset', _params['offset']))
435
455
 
436
- path_params = {}
456
+ if _params.get('limit') is not None: # noqa: E501
457
+ _query_params.append(('limit', _params['limit']))
437
458
 
438
- query_params = []
439
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
440
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
441
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
442
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
443
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
444
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
445
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
446
- query_params.append(('query', local_var_params['query'])) # noqa: E501
447
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
448
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
459
+ if _params.get('sort') is not None: # noqa: E501
460
+ _query_params.append(('sort', _params['sort']))
449
461
 
450
- header_params = {}
462
+ if _params.get('query') is not None: # noqa: E501
463
+ _query_params.append(('query', _params['query']))
451
464
 
452
- form_params = []
453
- local_var_files = {}
465
+ if _params.get('no_page') is not None: # noqa: E501
466
+ _query_params.append(('no_page', _params['no_page']))
454
467
 
455
- body_params = None
456
- # HTTP header `Accept`
457
- header_params['Accept'] = self.api_client.select_header_accept(
468
+ # process the header parameters
469
+ _header_params = dict(_params.get('_headers', {}))
470
+ # process the form parameters
471
+ _form_params = []
472
+ _files = {}
473
+ # process the body parameter
474
+ _body_params = None
475
+ # set the HTTP header `Accept`
476
+ _header_params['Accept'] = self.api_client.select_header_accept(
458
477
  ['application/json']) # noqa: E501
459
478
 
460
- # Authentication setting
461
- auth_settings = ['ApiKey'] # noqa: E501
479
+ # authentication setting
480
+ _auth_settings = ['ApiKey'] # noqa: E501
462
481
 
463
- response_types_map = {
464
- 200: "V1ListActivitiesResponse",
465
- 204: "object",
466
- 403: "object",
467
- 404: "object",
482
+ _response_types_map = {
483
+ '200': "V1ListActivitiesResponse",
484
+ '204': "object",
485
+ '403': "object",
486
+ '404': "object",
468
487
  }
469
488
 
470
489
  return self.api_client.call_api(
471
490
  '/api/v1/users/history', 'GET',
472
- path_params,
473
- query_params,
474
- header_params,
475
- body=body_params,
476
- post_params=form_params,
477
- files=local_var_files,
478
- response_types_map=response_types_map,
479
- auth_settings=auth_settings,
480
- async_req=local_var_params.get('async_req'),
481
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
482
- _preload_content=local_var_params.get('_preload_content', True),
483
- _request_timeout=local_var_params.get('_request_timeout'),
484
- collection_formats=collection_formats,
485
- _request_auth=local_var_params.get('_request_auth'))
486
-
487
- def get_suggestions(self, **kwargs): # noqa: E501
491
+ _path_params,
492
+ _query_params,
493
+ _header_params,
494
+ body=_body_params,
495
+ post_params=_form_params,
496
+ files=_files,
497
+ response_types_map=_response_types_map,
498
+ auth_settings=_auth_settings,
499
+ async_req=_params.get('async_req'),
500
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
501
+ _preload_content=_params.get('_preload_content', True),
502
+ _request_timeout=_params.get('_request_timeout'),
503
+ collection_formats=_collection_formats,
504
+ _request_auth=_params.get('_request_auth'))
505
+
506
+ @validate_arguments
507
+ def get_suggestions(self, offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> object: # noqa: E501
488
508
  """User suggestions # noqa: E501
489
509
 
490
510
  This method makes a synchronous HTTP request by default. To make an
491
511
  asynchronous HTTP request, please pass async_req=True
492
512
 
493
- >>> thread = api.get_suggestions(async_req=True)
513
+ >>> thread = api.get_suggestions(offset, limit, sort, query, no_page, async_req=True)
494
514
  >>> result = thread.get()
495
515
 
496
516
  :param offset: Pagination offset.
@@ -519,15 +539,16 @@ class UsersV1Api(object):
519
539
  :rtype: object
520
540
  """
521
541
  kwargs['_return_http_data_only'] = True
522
- return self.get_suggestions_with_http_info(**kwargs) # noqa: E501
542
+ return self.get_suggestions_with_http_info(offset, limit, sort, query, no_page, **kwargs) # noqa: E501
523
543
 
524
- def get_suggestions_with_http_info(self, **kwargs): # noqa: E501
544
+ @validate_arguments
545
+ def get_suggestions_with_http_info(self, offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
525
546
  """User suggestions # noqa: E501
526
547
 
527
548
  This method makes a synchronous HTTP request by default. To make an
528
549
  asynchronous HTTP request, please pass async_req=True
529
550
 
530
- >>> thread = api.get_suggestions_with_http_info(async_req=True)
551
+ >>> thread = api.get_suggestions_with_http_info(offset, limit, sort, query, no_page, async_req=True)
531
552
  >>> result = thread.get()
532
553
 
533
554
  :param offset: Pagination offset.
@@ -557,94 +578,106 @@ class UsersV1Api(object):
557
578
  request; this effectively ignores the authentication
558
579
  in the spec for a single request.
559
580
  :type _request_auth: dict, optional
581
+ :type _content_type: string, optional: force content-type for the request
560
582
  :return: Returns the result object.
561
583
  If the method is called asynchronously,
562
584
  returns the request thread.
563
585
  :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
564
586
  """
565
587
 
566
- local_var_params = locals()
588
+ _params = locals()
567
589
 
568
- all_params = [
590
+ _all_params = [
569
591
  'offset',
570
592
  'limit',
571
593
  'sort',
572
594
  'query',
573
595
  'no_page'
574
596
  ]
575
- all_params.extend(
597
+ _all_params.extend(
576
598
  [
577
599
  'async_req',
578
600
  '_return_http_data_only',
579
601
  '_preload_content',
580
602
  '_request_timeout',
581
- '_request_auth'
603
+ '_request_auth',
604
+ '_content_type',
605
+ '_headers'
582
606
  ]
583
607
  )
584
608
 
585
- for key, val in six.iteritems(local_var_params['kwargs']):
586
- if key not in all_params:
609
+ # validate the arguments
610
+ for _key, _val in _params['kwargs'].items():
611
+ if _key not in _all_params:
587
612
  raise ApiTypeError(
588
613
  "Got an unexpected keyword argument '%s'"
589
- " to method get_suggestions" % key
614
+ " to method get_suggestions" % _key
590
615
  )
591
- local_var_params[key] = val
592
- del local_var_params['kwargs']
616
+ _params[_key] = _val
617
+ del _params['kwargs']
593
618
 
594
- collection_formats = {}
619
+ _collection_formats = {}
595
620
 
596
- path_params = {}
621
+ # process the path parameters
622
+ _path_params = {}
597
623
 
598
- query_params = []
599
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
600
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
601
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
602
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
603
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
604
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
605
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
606
- query_params.append(('query', local_var_params['query'])) # noqa: E501
607
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
608
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
624
+ # process the query parameters
625
+ _query_params = []
626
+ if _params.get('offset') is not None: # noqa: E501
627
+ _query_params.append(('offset', _params['offset']))
609
628
 
610
- header_params = {}
629
+ if _params.get('limit') is not None: # noqa: E501
630
+ _query_params.append(('limit', _params['limit']))
611
631
 
612
- form_params = []
613
- local_var_files = {}
632
+ if _params.get('sort') is not None: # noqa: E501
633
+ _query_params.append(('sort', _params['sort']))
614
634
 
615
- body_params = None
616
- # HTTP header `Accept`
617
- header_params['Accept'] = self.api_client.select_header_accept(
635
+ if _params.get('query') is not None: # noqa: E501
636
+ _query_params.append(('query', _params['query']))
637
+
638
+ if _params.get('no_page') is not None: # noqa: E501
639
+ _query_params.append(('no_page', _params['no_page']))
640
+
641
+ # process the header parameters
642
+ _header_params = dict(_params.get('_headers', {}))
643
+ # process the form parameters
644
+ _form_params = []
645
+ _files = {}
646
+ # process the body parameter
647
+ _body_params = None
648
+ # set the HTTP header `Accept`
649
+ _header_params['Accept'] = self.api_client.select_header_accept(
618
650
  ['application/json']) # noqa: E501
619
651
 
620
- # Authentication setting
621
- auth_settings = ['ApiKey'] # noqa: E501
652
+ # authentication setting
653
+ _auth_settings = ['ApiKey'] # noqa: E501
622
654
 
623
- response_types_map = {
624
- 200: "object",
625
- 204: "object",
626
- 403: "object",
627
- 404: "object",
655
+ _response_types_map = {
656
+ '200': "object",
657
+ '204': "object",
658
+ '403': "object",
659
+ '404': "object",
628
660
  }
629
661
 
630
662
  return self.api_client.call_api(
631
663
  '/api/v1/users/suggestions', 'GET',
632
- path_params,
633
- query_params,
634
- header_params,
635
- body=body_params,
636
- post_params=form_params,
637
- files=local_var_files,
638
- response_types_map=response_types_map,
639
- auth_settings=auth_settings,
640
- async_req=local_var_params.get('async_req'),
641
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
642
- _preload_content=local_var_params.get('_preload_content', True),
643
- _request_timeout=local_var_params.get('_request_timeout'),
644
- collection_formats=collection_formats,
645
- _request_auth=local_var_params.get('_request_auth'))
646
-
647
- def get_token(self, uuid, **kwargs): # noqa: E501
664
+ _path_params,
665
+ _query_params,
666
+ _header_params,
667
+ body=_body_params,
668
+ post_params=_form_params,
669
+ files=_files,
670
+ response_types_map=_response_types_map,
671
+ auth_settings=_auth_settings,
672
+ async_req=_params.get('async_req'),
673
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
674
+ _preload_content=_params.get('_preload_content', True),
675
+ _request_timeout=_params.get('_request_timeout'),
676
+ collection_formats=_collection_formats,
677
+ _request_auth=_params.get('_request_auth'))
678
+
679
+ @validate_arguments
680
+ def get_token(self, uuid : Annotated[StrictStr, Field(..., description="UUid of the namespace")], **kwargs) -> V1Token: # noqa: E501
648
681
  """Get token # noqa: E501
649
682
 
650
683
  This method makes a synchronous HTTP request by default. To make an
@@ -673,7 +706,8 @@ class UsersV1Api(object):
673
706
  kwargs['_return_http_data_only'] = True
674
707
  return self.get_token_with_http_info(uuid, **kwargs) # noqa: E501
675
708
 
676
- def get_token_with_http_info(self, uuid, **kwargs): # noqa: E501
709
+ @validate_arguments
710
+ def get_token_with_http_info(self, uuid : Annotated[StrictStr, Field(..., description="UUid of the namespace")], **kwargs): # noqa: E501
677
711
  """Get token # noqa: E501
678
712
 
679
713
  This method makes a synchronous HTTP request by default. To make an
@@ -701,86 +735,90 @@ class UsersV1Api(object):
701
735
  request; this effectively ignores the authentication
702
736
  in the spec for a single request.
703
737
  :type _request_auth: dict, optional
738
+ :type _content_type: string, optional: force content-type for the request
704
739
  :return: Returns the result object.
705
740
  If the method is called asynchronously,
706
741
  returns the request thread.
707
742
  :rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
708
743
  """
709
744
 
710
- local_var_params = locals()
745
+ _params = locals()
711
746
 
712
- all_params = [
747
+ _all_params = [
713
748
  'uuid'
714
749
  ]
715
- all_params.extend(
750
+ _all_params.extend(
716
751
  [
717
752
  'async_req',
718
753
  '_return_http_data_only',
719
754
  '_preload_content',
720
755
  '_request_timeout',
721
- '_request_auth'
756
+ '_request_auth',
757
+ '_content_type',
758
+ '_headers'
722
759
  ]
723
760
  )
724
761
 
725
- for key, val in six.iteritems(local_var_params['kwargs']):
726
- if key not in all_params:
762
+ # validate the arguments
763
+ for _key, _val in _params['kwargs'].items():
764
+ if _key not in _all_params:
727
765
  raise ApiTypeError(
728
766
  "Got an unexpected keyword argument '%s'"
729
- " to method get_token" % key
767
+ " to method get_token" % _key
730
768
  )
731
- local_var_params[key] = val
732
- del local_var_params['kwargs']
733
- # verify the required parameter 'uuid' is set
734
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
735
- local_var_params['uuid'] is None): # noqa: E501
736
- raise ApiValueError("Missing the required parameter `uuid` when calling `get_token`") # noqa: E501
737
-
738
- collection_formats = {}
739
-
740
- path_params = {}
741
- if 'uuid' in local_var_params:
742
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
743
-
744
- query_params = []
745
-
746
- header_params = {}
747
-
748
- form_params = []
749
- local_var_files = {}
750
-
751
- body_params = None
752
- # HTTP header `Accept`
753
- header_params['Accept'] = self.api_client.select_header_accept(
769
+ _params[_key] = _val
770
+ del _params['kwargs']
771
+
772
+ _collection_formats = {}
773
+
774
+ # process the path parameters
775
+ _path_params = {}
776
+ if _params['uuid']:
777
+ _path_params['uuid'] = _params['uuid']
778
+
779
+
780
+ # process the query parameters
781
+ _query_params = []
782
+ # process the header parameters
783
+ _header_params = dict(_params.get('_headers', {}))
784
+ # process the form parameters
785
+ _form_params = []
786
+ _files = {}
787
+ # process the body parameter
788
+ _body_params = None
789
+ # set the HTTP header `Accept`
790
+ _header_params['Accept'] = self.api_client.select_header_accept(
754
791
  ['application/json']) # noqa: E501
755
792
 
756
- # Authentication setting
757
- auth_settings = ['ApiKey'] # noqa: E501
793
+ # authentication setting
794
+ _auth_settings = ['ApiKey'] # noqa: E501
758
795
 
759
- response_types_map = {
760
- 200: "V1Token",
761
- 204: "object",
762
- 403: "object",
763
- 404: "object",
796
+ _response_types_map = {
797
+ '200': "V1Token",
798
+ '204': "object",
799
+ '403': "object",
800
+ '404': "object",
764
801
  }
765
802
 
766
803
  return self.api_client.call_api(
767
804
  '/api/v1/users/tokens/{uuid}', 'GET',
768
- path_params,
769
- query_params,
770
- header_params,
771
- body=body_params,
772
- post_params=form_params,
773
- files=local_var_files,
774
- response_types_map=response_types_map,
775
- auth_settings=auth_settings,
776
- async_req=local_var_params.get('async_req'),
777
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
778
- _preload_content=local_var_params.get('_preload_content', True),
779
- _request_timeout=local_var_params.get('_request_timeout'),
780
- collection_formats=collection_formats,
781
- _request_auth=local_var_params.get('_request_auth'))
782
-
783
- def get_user(self, **kwargs): # noqa: E501
805
+ _path_params,
806
+ _query_params,
807
+ _header_params,
808
+ body=_body_params,
809
+ post_params=_form_params,
810
+ files=_files,
811
+ response_types_map=_response_types_map,
812
+ auth_settings=_auth_settings,
813
+ async_req=_params.get('async_req'),
814
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
815
+ _preload_content=_params.get('_preload_content', True),
816
+ _request_timeout=_params.get('_request_timeout'),
817
+ collection_formats=_collection_formats,
818
+ _request_auth=_params.get('_request_auth'))
819
+
820
+ @validate_arguments
821
+ def get_user(self, **kwargs) -> V1User: # noqa: E501
784
822
  """Get current user # noqa: E501
785
823
 
786
824
  This method makes a synchronous HTTP request by default. To make an
@@ -807,6 +845,7 @@ class UsersV1Api(object):
807
845
  kwargs['_return_http_data_only'] = True
808
846
  return self.get_user_with_http_info(**kwargs) # noqa: E501
809
847
 
848
+ @validate_arguments
810
849
  def get_user_with_http_info(self, **kwargs): # noqa: E501
811
850
  """Get current user # noqa: E501
812
851
 
@@ -833,85 +872,92 @@ class UsersV1Api(object):
833
872
  request; this effectively ignores the authentication
834
873
  in the spec for a single request.
835
874
  :type _request_auth: dict, optional
875
+ :type _content_type: string, optional: force content-type for the request
836
876
  :return: Returns the result object.
837
877
  If the method is called asynchronously,
838
878
  returns the request thread.
839
879
  :rtype: tuple(V1User, status_code(int), headers(HTTPHeaderDict))
840
880
  """
841
881
 
842
- local_var_params = locals()
882
+ _params = locals()
843
883
 
844
- all_params = [
884
+ _all_params = [
845
885
  ]
846
- all_params.extend(
886
+ _all_params.extend(
847
887
  [
848
888
  'async_req',
849
889
  '_return_http_data_only',
850
890
  '_preload_content',
851
891
  '_request_timeout',
852
- '_request_auth'
892
+ '_request_auth',
893
+ '_content_type',
894
+ '_headers'
853
895
  ]
854
896
  )
855
897
 
856
- for key, val in six.iteritems(local_var_params['kwargs']):
857
- if key not in all_params:
898
+ # validate the arguments
899
+ for _key, _val in _params['kwargs'].items():
900
+ if _key not in _all_params:
858
901
  raise ApiTypeError(
859
902
  "Got an unexpected keyword argument '%s'"
860
- " to method get_user" % key
903
+ " to method get_user" % _key
861
904
  )
862
- local_var_params[key] = val
863
- del local_var_params['kwargs']
864
-
865
- collection_formats = {}
866
-
867
- path_params = {}
868
-
869
- query_params = []
870
-
871
- header_params = {}
872
-
873
- form_params = []
874
- local_var_files = {}
875
-
876
- body_params = None
877
- # HTTP header `Accept`
878
- header_params['Accept'] = self.api_client.select_header_accept(
905
+ _params[_key] = _val
906
+ del _params['kwargs']
907
+
908
+ _collection_formats = {}
909
+
910
+ # process the path parameters
911
+ _path_params = {}
912
+
913
+ # process the query parameters
914
+ _query_params = []
915
+ # process the header parameters
916
+ _header_params = dict(_params.get('_headers', {}))
917
+ # process the form parameters
918
+ _form_params = []
919
+ _files = {}
920
+ # process the body parameter
921
+ _body_params = None
922
+ # set the HTTP header `Accept`
923
+ _header_params['Accept'] = self.api_client.select_header_accept(
879
924
  ['application/json']) # noqa: E501
880
925
 
881
- # Authentication setting
882
- auth_settings = ['ApiKey'] # noqa: E501
926
+ # authentication setting
927
+ _auth_settings = ['ApiKey'] # noqa: E501
883
928
 
884
- response_types_map = {
885
- 200: "V1User",
886
- 204: "object",
887
- 403: "object",
888
- 404: "object",
929
+ _response_types_map = {
930
+ '200': "V1User",
931
+ '204': "object",
932
+ '403': "object",
933
+ '404': "object",
889
934
  }
890
935
 
891
936
  return self.api_client.call_api(
892
937
  '/api/v1/users', 'GET',
893
- path_params,
894
- query_params,
895
- header_params,
896
- body=body_params,
897
- post_params=form_params,
898
- files=local_var_files,
899
- response_types_map=response_types_map,
900
- auth_settings=auth_settings,
901
- async_req=local_var_params.get('async_req'),
902
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
903
- _preload_content=local_var_params.get('_preload_content', True),
904
- _request_timeout=local_var_params.get('_request_timeout'),
905
- collection_formats=collection_formats,
906
- _request_auth=local_var_params.get('_request_auth'))
907
-
908
- def list_tokens(self, **kwargs): # noqa: E501
938
+ _path_params,
939
+ _query_params,
940
+ _header_params,
941
+ body=_body_params,
942
+ post_params=_form_params,
943
+ files=_files,
944
+ response_types_map=_response_types_map,
945
+ auth_settings=_auth_settings,
946
+ async_req=_params.get('async_req'),
947
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
948
+ _preload_content=_params.get('_preload_content', True),
949
+ _request_timeout=_params.get('_request_timeout'),
950
+ collection_formats=_collection_formats,
951
+ _request_auth=_params.get('_request_auth'))
952
+
953
+ @validate_arguments
954
+ def list_tokens(self, offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListTokenResponse: # noqa: E501
909
955
  """List tokens # noqa: E501
910
956
 
911
957
  This method makes a synchronous HTTP request by default. To make an
912
958
  asynchronous HTTP request, please pass async_req=True
913
959
 
914
- >>> thread = api.list_tokens(async_req=True)
960
+ >>> thread = api.list_tokens(offset, limit, sort, query, no_page, async_req=True)
915
961
  >>> result = thread.get()
916
962
 
917
963
  :param offset: Pagination offset.
@@ -940,15 +986,16 @@ class UsersV1Api(object):
940
986
  :rtype: V1ListTokenResponse
941
987
  """
942
988
  kwargs['_return_http_data_only'] = True
943
- return self.list_tokens_with_http_info(**kwargs) # noqa: E501
989
+ return self.list_tokens_with_http_info(offset, limit, sort, query, no_page, **kwargs) # noqa: E501
944
990
 
945
- def list_tokens_with_http_info(self, **kwargs): # noqa: E501
991
+ @validate_arguments
992
+ def list_tokens_with_http_info(self, offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
946
993
  """List tokens # noqa: E501
947
994
 
948
995
  This method makes a synchronous HTTP request by default. To make an
949
996
  asynchronous HTTP request, please pass async_req=True
950
997
 
951
- >>> thread = api.list_tokens_with_http_info(async_req=True)
998
+ >>> thread = api.list_tokens_with_http_info(offset, limit, sort, query, no_page, async_req=True)
952
999
  >>> result = thread.get()
953
1000
 
954
1001
  :param offset: Pagination offset.
@@ -978,94 +1025,106 @@ class UsersV1Api(object):
978
1025
  request; this effectively ignores the authentication
979
1026
  in the spec for a single request.
980
1027
  :type _request_auth: dict, optional
1028
+ :type _content_type: string, optional: force content-type for the request
981
1029
  :return: Returns the result object.
982
1030
  If the method is called asynchronously,
983
1031
  returns the request thread.
984
1032
  :rtype: tuple(V1ListTokenResponse, status_code(int), headers(HTTPHeaderDict))
985
1033
  """
986
1034
 
987
- local_var_params = locals()
1035
+ _params = locals()
988
1036
 
989
- all_params = [
1037
+ _all_params = [
990
1038
  'offset',
991
1039
  'limit',
992
1040
  'sort',
993
1041
  'query',
994
1042
  'no_page'
995
1043
  ]
996
- all_params.extend(
1044
+ _all_params.extend(
997
1045
  [
998
1046
  'async_req',
999
1047
  '_return_http_data_only',
1000
1048
  '_preload_content',
1001
1049
  '_request_timeout',
1002
- '_request_auth'
1050
+ '_request_auth',
1051
+ '_content_type',
1052
+ '_headers'
1003
1053
  ]
1004
1054
  )
1005
1055
 
1006
- for key, val in six.iteritems(local_var_params['kwargs']):
1007
- if key not in all_params:
1056
+ # validate the arguments
1057
+ for _key, _val in _params['kwargs'].items():
1058
+ if _key not in _all_params:
1008
1059
  raise ApiTypeError(
1009
1060
  "Got an unexpected keyword argument '%s'"
1010
- " to method list_tokens" % key
1061
+ " to method list_tokens" % _key
1011
1062
  )
1012
- local_var_params[key] = val
1013
- del local_var_params['kwargs']
1063
+ _params[_key] = _val
1064
+ del _params['kwargs']
1065
+
1066
+ _collection_formats = {}
1067
+
1068
+ # process the path parameters
1069
+ _path_params = {}
1014
1070
 
1015
- collection_formats = {}
1071
+ # process the query parameters
1072
+ _query_params = []
1073
+ if _params.get('offset') is not None: # noqa: E501
1074
+ _query_params.append(('offset', _params['offset']))
1016
1075
 
1017
- path_params = {}
1076
+ if _params.get('limit') is not None: # noqa: E501
1077
+ _query_params.append(('limit', _params['limit']))
1018
1078
 
1019
- query_params = []
1020
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
1021
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
1022
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
1023
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
1024
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
1025
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
1026
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
1027
- query_params.append(('query', local_var_params['query'])) # noqa: E501
1028
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
1029
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
1079
+ if _params.get('sort') is not None: # noqa: E501
1080
+ _query_params.append(('sort', _params['sort']))
1030
1081
 
1031
- header_params = {}
1082
+ if _params.get('query') is not None: # noqa: E501
1083
+ _query_params.append(('query', _params['query']))
1032
1084
 
1033
- form_params = []
1034
- local_var_files = {}
1085
+ if _params.get('no_page') is not None: # noqa: E501
1086
+ _query_params.append(('no_page', _params['no_page']))
1035
1087
 
1036
- body_params = None
1037
- # HTTP header `Accept`
1038
- header_params['Accept'] = self.api_client.select_header_accept(
1088
+ # process the header parameters
1089
+ _header_params = dict(_params.get('_headers', {}))
1090
+ # process the form parameters
1091
+ _form_params = []
1092
+ _files = {}
1093
+ # process the body parameter
1094
+ _body_params = None
1095
+ # set the HTTP header `Accept`
1096
+ _header_params['Accept'] = self.api_client.select_header_accept(
1039
1097
  ['application/json']) # noqa: E501
1040
1098
 
1041
- # Authentication setting
1042
- auth_settings = ['ApiKey'] # noqa: E501
1099
+ # authentication setting
1100
+ _auth_settings = ['ApiKey'] # noqa: E501
1043
1101
 
1044
- response_types_map = {
1045
- 200: "V1ListTokenResponse",
1046
- 204: "object",
1047
- 403: "object",
1048
- 404: "object",
1102
+ _response_types_map = {
1103
+ '200': "V1ListTokenResponse",
1104
+ '204': "object",
1105
+ '403': "object",
1106
+ '404': "object",
1049
1107
  }
1050
1108
 
1051
1109
  return self.api_client.call_api(
1052
1110
  '/api/v1/users/tokens', 'GET',
1053
- path_params,
1054
- query_params,
1055
- header_params,
1056
- body=body_params,
1057
- post_params=form_params,
1058
- files=local_var_files,
1059
- response_types_map=response_types_map,
1060
- auth_settings=auth_settings,
1061
- async_req=local_var_params.get('async_req'),
1062
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1063
- _preload_content=local_var_params.get('_preload_content', True),
1064
- _request_timeout=local_var_params.get('_request_timeout'),
1065
- collection_formats=collection_formats,
1066
- _request_auth=local_var_params.get('_request_auth'))
1067
-
1068
- def patch_token(self, token_uuid, body, **kwargs): # noqa: E501
1111
+ _path_params,
1112
+ _query_params,
1113
+ _header_params,
1114
+ body=_body_params,
1115
+ post_params=_form_params,
1116
+ files=_files,
1117
+ response_types_map=_response_types_map,
1118
+ auth_settings=_auth_settings,
1119
+ async_req=_params.get('async_req'),
1120
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1121
+ _preload_content=_params.get('_preload_content', True),
1122
+ _request_timeout=_params.get('_request_timeout'),
1123
+ collection_formats=_collection_formats,
1124
+ _request_auth=_params.get('_request_auth'))
1125
+
1126
+ @validate_arguments
1127
+ def patch_token(self, token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
1069
1128
  """Patch token # noqa: E501
1070
1129
 
1071
1130
  This method makes a synchronous HTTP request by default. To make an
@@ -1096,7 +1155,8 @@ class UsersV1Api(object):
1096
1155
  kwargs['_return_http_data_only'] = True
1097
1156
  return self.patch_token_with_http_info(token_uuid, body, **kwargs) # noqa: E501
1098
1157
 
1099
- def patch_token_with_http_info(self, token_uuid, body, **kwargs): # noqa: E501
1158
+ @validate_arguments
1159
+ def patch_token_with_http_info(self, token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
1100
1160
  """Patch token # noqa: E501
1101
1161
 
1102
1162
  This method makes a synchronous HTTP request by default. To make an
@@ -1126,97 +1186,101 @@ class UsersV1Api(object):
1126
1186
  request; this effectively ignores the authentication
1127
1187
  in the spec for a single request.
1128
1188
  :type _request_auth: dict, optional
1189
+ :type _content_type: string, optional: force content-type for the request
1129
1190
  :return: Returns the result object.
1130
1191
  If the method is called asynchronously,
1131
1192
  returns the request thread.
1132
1193
  :rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
1133
1194
  """
1134
1195
 
1135
- local_var_params = locals()
1196
+ _params = locals()
1136
1197
 
1137
- all_params = [
1198
+ _all_params = [
1138
1199
  'token_uuid',
1139
1200
  'body'
1140
1201
  ]
1141
- all_params.extend(
1202
+ _all_params.extend(
1142
1203
  [
1143
1204
  'async_req',
1144
1205
  '_return_http_data_only',
1145
1206
  '_preload_content',
1146
1207
  '_request_timeout',
1147
- '_request_auth'
1208
+ '_request_auth',
1209
+ '_content_type',
1210
+ '_headers'
1148
1211
  ]
1149
1212
  )
1150
1213
 
1151
- for key, val in six.iteritems(local_var_params['kwargs']):
1152
- if key not in all_params:
1214
+ # validate the arguments
1215
+ for _key, _val in _params['kwargs'].items():
1216
+ if _key not in _all_params:
1153
1217
  raise ApiTypeError(
1154
1218
  "Got an unexpected keyword argument '%s'"
1155
- " to method patch_token" % key
1219
+ " to method patch_token" % _key
1156
1220
  )
1157
- local_var_params[key] = val
1158
- del local_var_params['kwargs']
1159
- # verify the required parameter 'token_uuid' is set
1160
- if self.api_client.client_side_validation and ('token_uuid' not in local_var_params or # noqa: E501
1161
- local_var_params['token_uuid'] is None): # noqa: E501
1162
- raise ApiValueError("Missing the required parameter `token_uuid` when calling `patch_token`") # noqa: E501
1163
- # verify the required parameter 'body' is set
1164
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1165
- local_var_params['body'] is None): # noqa: E501
1166
- raise ApiValueError("Missing the required parameter `body` when calling `patch_token`") # noqa: E501
1167
-
1168
- collection_formats = {}
1169
-
1170
- path_params = {}
1171
- if 'token_uuid' in local_var_params:
1172
- path_params['token.uuid'] = local_var_params['token_uuid'] # noqa: E501
1173
-
1174
- query_params = []
1175
-
1176
- header_params = {}
1177
-
1178
- form_params = []
1179
- local_var_files = {}
1180
-
1181
- body_params = None
1182
- if 'body' in local_var_params:
1183
- body_params = local_var_params['body']
1184
- # HTTP header `Accept`
1185
- header_params['Accept'] = self.api_client.select_header_accept(
1221
+ _params[_key] = _val
1222
+ del _params['kwargs']
1223
+
1224
+ _collection_formats = {}
1225
+
1226
+ # process the path parameters
1227
+ _path_params = {}
1228
+ if _params['token_uuid']:
1229
+ _path_params['token.uuid'] = _params['token_uuid']
1230
+
1231
+
1232
+ # process the query parameters
1233
+ _query_params = []
1234
+ # process the header parameters
1235
+ _header_params = dict(_params.get('_headers', {}))
1236
+ # process the form parameters
1237
+ _form_params = []
1238
+ _files = {}
1239
+ # process the body parameter
1240
+ _body_params = None
1241
+ if _params['body']:
1242
+ _body_params = _params['body']
1243
+
1244
+ # set the HTTP header `Accept`
1245
+ _header_params['Accept'] = self.api_client.select_header_accept(
1186
1246
  ['application/json']) # noqa: E501
1187
1247
 
1188
- # HTTP header `Content-Type`
1189
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1190
- ['application/json']) # noqa: E501
1191
-
1192
- # Authentication setting
1193
- auth_settings = ['ApiKey'] # noqa: E501
1194
-
1195
- response_types_map = {
1196
- 200: "V1Token",
1197
- 204: "object",
1198
- 403: "object",
1199
- 404: "object",
1248
+ # set the HTTP header `Content-Type`
1249
+ _content_types_list = _params.get('_content_type',
1250
+ self.api_client.select_header_content_type(
1251
+ ['application/json']))
1252
+ if _content_types_list:
1253
+ _header_params['Content-Type'] = _content_types_list
1254
+
1255
+ # authentication setting
1256
+ _auth_settings = ['ApiKey'] # noqa: E501
1257
+
1258
+ _response_types_map = {
1259
+ '200': "V1Token",
1260
+ '204': "object",
1261
+ '403': "object",
1262
+ '404': "object",
1200
1263
  }
1201
1264
 
1202
1265
  return self.api_client.call_api(
1203
1266
  '/api/v1/users/tokens/{token.uuid}', 'PATCH',
1204
- path_params,
1205
- query_params,
1206
- header_params,
1207
- body=body_params,
1208
- post_params=form_params,
1209
- files=local_var_files,
1210
- response_types_map=response_types_map,
1211
- auth_settings=auth_settings,
1212
- async_req=local_var_params.get('async_req'),
1213
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1214
- _preload_content=local_var_params.get('_preload_content', True),
1215
- _request_timeout=local_var_params.get('_request_timeout'),
1216
- collection_formats=collection_formats,
1217
- _request_auth=local_var_params.get('_request_auth'))
1218
-
1219
- def patch_user(self, body, **kwargs): # noqa: E501
1267
+ _path_params,
1268
+ _query_params,
1269
+ _header_params,
1270
+ body=_body_params,
1271
+ post_params=_form_params,
1272
+ files=_files,
1273
+ response_types_map=_response_types_map,
1274
+ auth_settings=_auth_settings,
1275
+ async_req=_params.get('async_req'),
1276
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1277
+ _preload_content=_params.get('_preload_content', True),
1278
+ _request_timeout=_params.get('_request_timeout'),
1279
+ collection_formats=_collection_formats,
1280
+ _request_auth=_params.get('_request_auth'))
1281
+
1282
+ @validate_arguments
1283
+ def patch_user(self, body : V1User, **kwargs) -> V1User: # noqa: E501
1220
1284
  """Patch current user # noqa: E501
1221
1285
 
1222
1286
  This method makes a synchronous HTTP request by default. To make an
@@ -1245,7 +1309,8 @@ class UsersV1Api(object):
1245
1309
  kwargs['_return_http_data_only'] = True
1246
1310
  return self.patch_user_with_http_info(body, **kwargs) # noqa: E501
1247
1311
 
1248
- def patch_user_with_http_info(self, body, **kwargs): # noqa: E501
1312
+ @validate_arguments
1313
+ def patch_user_with_http_info(self, body : V1User, **kwargs): # noqa: E501
1249
1314
  """Patch current user # noqa: E501
1250
1315
 
1251
1316
  This method makes a synchronous HTTP request by default. To make an
@@ -1273,90 +1338,97 @@ class UsersV1Api(object):
1273
1338
  request; this effectively ignores the authentication
1274
1339
  in the spec for a single request.
1275
1340
  :type _request_auth: dict, optional
1341
+ :type _content_type: string, optional: force content-type for the request
1276
1342
  :return: Returns the result object.
1277
1343
  If the method is called asynchronously,
1278
1344
  returns the request thread.
1279
1345
  :rtype: tuple(V1User, status_code(int), headers(HTTPHeaderDict))
1280
1346
  """
1281
1347
 
1282
- local_var_params = locals()
1348
+ _params = locals()
1283
1349
 
1284
- all_params = [
1350
+ _all_params = [
1285
1351
  'body'
1286
1352
  ]
1287
- all_params.extend(
1353
+ _all_params.extend(
1288
1354
  [
1289
1355
  'async_req',
1290
1356
  '_return_http_data_only',
1291
1357
  '_preload_content',
1292
1358
  '_request_timeout',
1293
- '_request_auth'
1359
+ '_request_auth',
1360
+ '_content_type',
1361
+ '_headers'
1294
1362
  ]
1295
1363
  )
1296
1364
 
1297
- for key, val in six.iteritems(local_var_params['kwargs']):
1298
- if key not in all_params:
1365
+ # validate the arguments
1366
+ for _key, _val in _params['kwargs'].items():
1367
+ if _key not in _all_params:
1299
1368
  raise ApiTypeError(
1300
1369
  "Got an unexpected keyword argument '%s'"
1301
- " to method patch_user" % key
1370
+ " to method patch_user" % _key
1302
1371
  )
1303
- local_var_params[key] = val
1304
- del local_var_params['kwargs']
1305
- # verify the required parameter 'body' is set
1306
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1307
- local_var_params['body'] is None): # noqa: E501
1308
- raise ApiValueError("Missing the required parameter `body` when calling `patch_user`") # noqa: E501
1309
-
1310
- collection_formats = {}
1311
-
1312
- path_params = {}
1313
-
1314
- query_params = []
1315
-
1316
- header_params = {}
1317
-
1318
- form_params = []
1319
- local_var_files = {}
1320
-
1321
- body_params = None
1322
- if 'body' in local_var_params:
1323
- body_params = local_var_params['body']
1324
- # HTTP header `Accept`
1325
- header_params['Accept'] = self.api_client.select_header_accept(
1326
- ['application/json']) # noqa: E501
1327
-
1328
- # HTTP header `Content-Type`
1329
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1372
+ _params[_key] = _val
1373
+ del _params['kwargs']
1374
+
1375
+ _collection_formats = {}
1376
+
1377
+ # process the path parameters
1378
+ _path_params = {}
1379
+
1380
+ # process the query parameters
1381
+ _query_params = []
1382
+ # process the header parameters
1383
+ _header_params = dict(_params.get('_headers', {}))
1384
+ # process the form parameters
1385
+ _form_params = []
1386
+ _files = {}
1387
+ # process the body parameter
1388
+ _body_params = None
1389
+ if _params['body']:
1390
+ _body_params = _params['body']
1391
+
1392
+ # set the HTTP header `Accept`
1393
+ _header_params['Accept'] = self.api_client.select_header_accept(
1330
1394
  ['application/json']) # noqa: E501
1331
1395
 
1332
- # Authentication setting
1333
- auth_settings = ['ApiKey'] # noqa: E501
1334
-
1335
- response_types_map = {
1336
- 200: "V1User",
1337
- 204: "object",
1338
- 403: "object",
1339
- 404: "object",
1396
+ # set the HTTP header `Content-Type`
1397
+ _content_types_list = _params.get('_content_type',
1398
+ self.api_client.select_header_content_type(
1399
+ ['application/json']))
1400
+ if _content_types_list:
1401
+ _header_params['Content-Type'] = _content_types_list
1402
+
1403
+ # authentication setting
1404
+ _auth_settings = ['ApiKey'] # noqa: E501
1405
+
1406
+ _response_types_map = {
1407
+ '200': "V1User",
1408
+ '204': "object",
1409
+ '403': "object",
1410
+ '404': "object",
1340
1411
  }
1341
1412
 
1342
1413
  return self.api_client.call_api(
1343
1414
  '/api/v1/users', 'PATCH',
1344
- path_params,
1345
- query_params,
1346
- header_params,
1347
- body=body_params,
1348
- post_params=form_params,
1349
- files=local_var_files,
1350
- response_types_map=response_types_map,
1351
- auth_settings=auth_settings,
1352
- async_req=local_var_params.get('async_req'),
1353
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1354
- _preload_content=local_var_params.get('_preload_content', True),
1355
- _request_timeout=local_var_params.get('_request_timeout'),
1356
- collection_formats=collection_formats,
1357
- _request_auth=local_var_params.get('_request_auth'))
1358
-
1359
- def update_token(self, token_uuid, body, **kwargs): # noqa: E501
1415
+ _path_params,
1416
+ _query_params,
1417
+ _header_params,
1418
+ body=_body_params,
1419
+ post_params=_form_params,
1420
+ files=_files,
1421
+ response_types_map=_response_types_map,
1422
+ auth_settings=_auth_settings,
1423
+ async_req=_params.get('async_req'),
1424
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1425
+ _preload_content=_params.get('_preload_content', True),
1426
+ _request_timeout=_params.get('_request_timeout'),
1427
+ collection_formats=_collection_formats,
1428
+ _request_auth=_params.get('_request_auth'))
1429
+
1430
+ @validate_arguments
1431
+ def update_token(self, token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
1360
1432
  """Update token # noqa: E501
1361
1433
 
1362
1434
  This method makes a synchronous HTTP request by default. To make an
@@ -1387,7 +1459,8 @@ class UsersV1Api(object):
1387
1459
  kwargs['_return_http_data_only'] = True
1388
1460
  return self.update_token_with_http_info(token_uuid, body, **kwargs) # noqa: E501
1389
1461
 
1390
- def update_token_with_http_info(self, token_uuid, body, **kwargs): # noqa: E501
1462
+ @validate_arguments
1463
+ def update_token_with_http_info(self, token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
1391
1464
  """Update token # noqa: E501
1392
1465
 
1393
1466
  This method makes a synchronous HTTP request by default. To make an
@@ -1417,97 +1490,101 @@ class UsersV1Api(object):
1417
1490
  request; this effectively ignores the authentication
1418
1491
  in the spec for a single request.
1419
1492
  :type _request_auth: dict, optional
1493
+ :type _content_type: string, optional: force content-type for the request
1420
1494
  :return: Returns the result object.
1421
1495
  If the method is called asynchronously,
1422
1496
  returns the request thread.
1423
1497
  :rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
1424
1498
  """
1425
1499
 
1426
- local_var_params = locals()
1500
+ _params = locals()
1427
1501
 
1428
- all_params = [
1502
+ _all_params = [
1429
1503
  'token_uuid',
1430
1504
  'body'
1431
1505
  ]
1432
- all_params.extend(
1506
+ _all_params.extend(
1433
1507
  [
1434
1508
  'async_req',
1435
1509
  '_return_http_data_only',
1436
1510
  '_preload_content',
1437
1511
  '_request_timeout',
1438
- '_request_auth'
1512
+ '_request_auth',
1513
+ '_content_type',
1514
+ '_headers'
1439
1515
  ]
1440
1516
  )
1441
1517
 
1442
- for key, val in six.iteritems(local_var_params['kwargs']):
1443
- if key not in all_params:
1518
+ # validate the arguments
1519
+ for _key, _val in _params['kwargs'].items():
1520
+ if _key not in _all_params:
1444
1521
  raise ApiTypeError(
1445
1522
  "Got an unexpected keyword argument '%s'"
1446
- " to method update_token" % key
1523
+ " to method update_token" % _key
1447
1524
  )
1448
- local_var_params[key] = val
1449
- del local_var_params['kwargs']
1450
- # verify the required parameter 'token_uuid' is set
1451
- if self.api_client.client_side_validation and ('token_uuid' not in local_var_params or # noqa: E501
1452
- local_var_params['token_uuid'] is None): # noqa: E501
1453
- raise ApiValueError("Missing the required parameter `token_uuid` when calling `update_token`") # noqa: E501
1454
- # verify the required parameter 'body' is set
1455
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1456
- local_var_params['body'] is None): # noqa: E501
1457
- raise ApiValueError("Missing the required parameter `body` when calling `update_token`") # noqa: E501
1458
-
1459
- collection_formats = {}
1460
-
1461
- path_params = {}
1462
- if 'token_uuid' in local_var_params:
1463
- path_params['token.uuid'] = local_var_params['token_uuid'] # noqa: E501
1464
-
1465
- query_params = []
1466
-
1467
- header_params = {}
1468
-
1469
- form_params = []
1470
- local_var_files = {}
1471
-
1472
- body_params = None
1473
- if 'body' in local_var_params:
1474
- body_params = local_var_params['body']
1475
- # HTTP header `Accept`
1476
- header_params['Accept'] = self.api_client.select_header_accept(
1525
+ _params[_key] = _val
1526
+ del _params['kwargs']
1527
+
1528
+ _collection_formats = {}
1529
+
1530
+ # process the path parameters
1531
+ _path_params = {}
1532
+ if _params['token_uuid']:
1533
+ _path_params['token.uuid'] = _params['token_uuid']
1534
+
1535
+
1536
+ # process the query parameters
1537
+ _query_params = []
1538
+ # process the header parameters
1539
+ _header_params = dict(_params.get('_headers', {}))
1540
+ # process the form parameters
1541
+ _form_params = []
1542
+ _files = {}
1543
+ # process the body parameter
1544
+ _body_params = None
1545
+ if _params['body']:
1546
+ _body_params = _params['body']
1547
+
1548
+ # set the HTTP header `Accept`
1549
+ _header_params['Accept'] = self.api_client.select_header_accept(
1477
1550
  ['application/json']) # noqa: E501
1478
1551
 
1479
- # HTTP header `Content-Type`
1480
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1481
- ['application/json']) # noqa: E501
1482
-
1483
- # Authentication setting
1484
- auth_settings = ['ApiKey'] # noqa: E501
1485
-
1486
- response_types_map = {
1487
- 200: "V1Token",
1488
- 204: "object",
1489
- 403: "object",
1490
- 404: "object",
1552
+ # set the HTTP header `Content-Type`
1553
+ _content_types_list = _params.get('_content_type',
1554
+ self.api_client.select_header_content_type(
1555
+ ['application/json']))
1556
+ if _content_types_list:
1557
+ _header_params['Content-Type'] = _content_types_list
1558
+
1559
+ # authentication setting
1560
+ _auth_settings = ['ApiKey'] # noqa: E501
1561
+
1562
+ _response_types_map = {
1563
+ '200': "V1Token",
1564
+ '204': "object",
1565
+ '403': "object",
1566
+ '404': "object",
1491
1567
  }
1492
1568
 
1493
1569
  return self.api_client.call_api(
1494
1570
  '/api/v1/users/tokens/{token.uuid}', 'PUT',
1495
- path_params,
1496
- query_params,
1497
- header_params,
1498
- body=body_params,
1499
- post_params=form_params,
1500
- files=local_var_files,
1501
- response_types_map=response_types_map,
1502
- auth_settings=auth_settings,
1503
- async_req=local_var_params.get('async_req'),
1504
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1505
- _preload_content=local_var_params.get('_preload_content', True),
1506
- _request_timeout=local_var_params.get('_request_timeout'),
1507
- collection_formats=collection_formats,
1508
- _request_auth=local_var_params.get('_request_auth'))
1509
-
1510
- def update_user(self, body, **kwargs): # noqa: E501
1571
+ _path_params,
1572
+ _query_params,
1573
+ _header_params,
1574
+ body=_body_params,
1575
+ post_params=_form_params,
1576
+ files=_files,
1577
+ response_types_map=_response_types_map,
1578
+ auth_settings=_auth_settings,
1579
+ async_req=_params.get('async_req'),
1580
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1581
+ _preload_content=_params.get('_preload_content', True),
1582
+ _request_timeout=_params.get('_request_timeout'),
1583
+ collection_formats=_collection_formats,
1584
+ _request_auth=_params.get('_request_auth'))
1585
+
1586
+ @validate_arguments
1587
+ def update_user(self, body : V1User, **kwargs) -> V1User: # noqa: E501
1511
1588
  """Update current user # noqa: E501
1512
1589
 
1513
1590
  This method makes a synchronous HTTP request by default. To make an
@@ -1536,7 +1613,8 @@ class UsersV1Api(object):
1536
1613
  kwargs['_return_http_data_only'] = True
1537
1614
  return self.update_user_with_http_info(body, **kwargs) # noqa: E501
1538
1615
 
1539
- def update_user_with_http_info(self, body, **kwargs): # noqa: E501
1616
+ @validate_arguments
1617
+ def update_user_with_http_info(self, body : V1User, **kwargs): # noqa: E501
1540
1618
  """Update current user # noqa: E501
1541
1619
 
1542
1620
  This method makes a synchronous HTTP request by default. To make an
@@ -1564,85 +1642,91 @@ class UsersV1Api(object):
1564
1642
  request; this effectively ignores the authentication
1565
1643
  in the spec for a single request.
1566
1644
  :type _request_auth: dict, optional
1645
+ :type _content_type: string, optional: force content-type for the request
1567
1646
  :return: Returns the result object.
1568
1647
  If the method is called asynchronously,
1569
1648
  returns the request thread.
1570
1649
  :rtype: tuple(V1User, status_code(int), headers(HTTPHeaderDict))
1571
1650
  """
1572
1651
 
1573
- local_var_params = locals()
1652
+ _params = locals()
1574
1653
 
1575
- all_params = [
1654
+ _all_params = [
1576
1655
  'body'
1577
1656
  ]
1578
- all_params.extend(
1657
+ _all_params.extend(
1579
1658
  [
1580
1659
  'async_req',
1581
1660
  '_return_http_data_only',
1582
1661
  '_preload_content',
1583
1662
  '_request_timeout',
1584
- '_request_auth'
1663
+ '_request_auth',
1664
+ '_content_type',
1665
+ '_headers'
1585
1666
  ]
1586
1667
  )
1587
1668
 
1588
- for key, val in six.iteritems(local_var_params['kwargs']):
1589
- if key not in all_params:
1669
+ # validate the arguments
1670
+ for _key, _val in _params['kwargs'].items():
1671
+ if _key not in _all_params:
1590
1672
  raise ApiTypeError(
1591
1673
  "Got an unexpected keyword argument '%s'"
1592
- " to method update_user" % key
1674
+ " to method update_user" % _key
1593
1675
  )
1594
- local_var_params[key] = val
1595
- del local_var_params['kwargs']
1596
- # verify the required parameter 'body' is set
1597
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1598
- local_var_params['body'] is None): # noqa: E501
1599
- raise ApiValueError("Missing the required parameter `body` when calling `update_user`") # noqa: E501
1600
-
1601
- collection_formats = {}
1602
-
1603
- path_params = {}
1604
-
1605
- query_params = []
1606
-
1607
- header_params = {}
1608
-
1609
- form_params = []
1610
- local_var_files = {}
1611
-
1612
- body_params = None
1613
- if 'body' in local_var_params:
1614
- body_params = local_var_params['body']
1615
- # HTTP header `Accept`
1616
- header_params['Accept'] = self.api_client.select_header_accept(
1617
- ['application/json']) # noqa: E501
1618
-
1619
- # HTTP header `Content-Type`
1620
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1676
+ _params[_key] = _val
1677
+ del _params['kwargs']
1678
+
1679
+ _collection_formats = {}
1680
+
1681
+ # process the path parameters
1682
+ _path_params = {}
1683
+
1684
+ # process the query parameters
1685
+ _query_params = []
1686
+ # process the header parameters
1687
+ _header_params = dict(_params.get('_headers', {}))
1688
+ # process the form parameters
1689
+ _form_params = []
1690
+ _files = {}
1691
+ # process the body parameter
1692
+ _body_params = None
1693
+ if _params['body']:
1694
+ _body_params = _params['body']
1695
+
1696
+ # set the HTTP header `Accept`
1697
+ _header_params['Accept'] = self.api_client.select_header_accept(
1621
1698
  ['application/json']) # noqa: E501
1622
1699
 
1623
- # Authentication setting
1624
- auth_settings = ['ApiKey'] # noqa: E501
1625
-
1626
- response_types_map = {
1627
- 200: "V1User",
1628
- 204: "object",
1629
- 403: "object",
1630
- 404: "object",
1700
+ # set the HTTP header `Content-Type`
1701
+ _content_types_list = _params.get('_content_type',
1702
+ self.api_client.select_header_content_type(
1703
+ ['application/json']))
1704
+ if _content_types_list:
1705
+ _header_params['Content-Type'] = _content_types_list
1706
+
1707
+ # authentication setting
1708
+ _auth_settings = ['ApiKey'] # noqa: E501
1709
+
1710
+ _response_types_map = {
1711
+ '200': "V1User",
1712
+ '204': "object",
1713
+ '403': "object",
1714
+ '404': "object",
1631
1715
  }
1632
1716
 
1633
1717
  return self.api_client.call_api(
1634
1718
  '/api/v1/users', 'PUT',
1635
- path_params,
1636
- query_params,
1637
- header_params,
1638
- body=body_params,
1639
- post_params=form_params,
1640
- files=local_var_files,
1641
- response_types_map=response_types_map,
1642
- auth_settings=auth_settings,
1643
- async_req=local_var_params.get('async_req'),
1644
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1645
- _preload_content=local_var_params.get('_preload_content', True),
1646
- _request_timeout=local_var_params.get('_request_timeout'),
1647
- collection_formats=collection_formats,
1648
- _request_auth=local_var_params.get('_request_auth'))
1719
+ _path_params,
1720
+ _query_params,
1721
+ _header_params,
1722
+ body=_body_params,
1723
+ post_params=_form_params,
1724
+ files=_files,
1725
+ response_types_map=_response_types_map,
1726
+ auth_settings=_auth_settings,
1727
+ async_req=_params.get('async_req'),
1728
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1729
+ _preload_content=_params.get('_preload_content', True),
1730
+ _request_timeout=_params.get('_request_timeout'),
1731
+ collection_formats=_collection_formats,
1732
+ _request_auth=_params.get('_request_auth'))