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,29 @@
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 polyaxon_sdk.models.v1_auth import V1Auth
22
+ from polyaxon_sdk.models.v1_credentials import V1Credentials
23
+ from polyaxon_sdk.models.v1_password_change import V1PasswordChange
24
+ from polyaxon_sdk.models.v1_trial_start import V1TrialStart
25
+ from polyaxon_sdk.models.v1_user_email import V1UserEmail
26
+ from polyaxon_sdk.models.v1_user_singup import V1UserSingup
36
27
 
37
28
  from polyaxon_sdk.api_client import ApiClient
38
29
  from polyaxon_sdk.exceptions import ( # noqa: F401
@@ -50,10 +41,11 @@ class AuthV1Api(object):
50
41
 
51
42
  def __init__(self, api_client=None):
52
43
  if api_client is None:
53
- api_client = ApiClient()
44
+ api_client = ApiClient.get_default()
54
45
  self.api_client = api_client
55
46
 
56
- def change_password(self, body, **kwargs): # noqa: E501
47
+ @validate_arguments
48
+ def change_password(self, body : V1PasswordChange, **kwargs) -> None: # noqa: E501
57
49
  """Change password # noqa: E501
58
50
 
59
51
  This method makes a synchronous HTTP request by default. To make an
@@ -82,7 +74,8 @@ class AuthV1Api(object):
82
74
  kwargs['_return_http_data_only'] = True
83
75
  return self.change_password_with_http_info(body, **kwargs) # noqa: E501
84
76
 
85
- def change_password_with_http_info(self, body, **kwargs): # noqa: E501
77
+ @validate_arguments
78
+ def change_password_with_http_info(self, body : V1PasswordChange, **kwargs): # noqa: E501
86
79
  """Change password # noqa: E501
87
80
 
88
81
  This method makes a synchronous HTTP request by default. To make an
@@ -110,85 +103,92 @@ class AuthV1Api(object):
110
103
  request; this effectively ignores the authentication
111
104
  in the spec for a single request.
112
105
  :type _request_auth: dict, optional
106
+ :type _content_type: string, optional: force content-type for the request
113
107
  :return: Returns the result object.
114
108
  If the method is called asynchronously,
115
109
  returns the request thread.
116
110
  :rtype: None
117
111
  """
118
112
 
119
- local_var_params = locals()
113
+ _params = locals()
120
114
 
121
- all_params = [
115
+ _all_params = [
122
116
  'body'
123
117
  ]
124
- all_params.extend(
118
+ _all_params.extend(
125
119
  [
126
120
  'async_req',
127
121
  '_return_http_data_only',
128
122
  '_preload_content',
129
123
  '_request_timeout',
130
- '_request_auth'
124
+ '_request_auth',
125
+ '_content_type',
126
+ '_headers'
131
127
  ]
132
128
  )
133
129
 
134
- for key, val in six.iteritems(local_var_params['kwargs']):
135
- if key not in all_params:
130
+ # validate the arguments
131
+ for _key, _val in _params['kwargs'].items():
132
+ if _key not in _all_params:
136
133
  raise ApiTypeError(
137
134
  "Got an unexpected keyword argument '%s'"
138
- " to method change_password" % key
135
+ " to method change_password" % _key
139
136
  )
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 `change_password`") # 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(
137
+ _params[_key] = _val
138
+ del _params['kwargs']
139
+
140
+ _collection_formats = {}
141
+
142
+ # process the path parameters
143
+ _path_params = {}
144
+
145
+ # process the query parameters
146
+ _query_params = []
147
+ # process the header parameters
148
+ _header_params = dict(_params.get('_headers', {}))
149
+ # process the form parameters
150
+ _form_params = []
151
+ _files = {}
152
+ # process the body parameter
153
+ _body_params = None
154
+ if _params['body']:
155
+ _body_params = _params['body']
156
+
157
+ # set the HTTP header `Accept`
158
+ _header_params['Accept'] = self.api_client.select_header_accept(
163
159
  ['application/json']) # noqa: E501
164
160
 
165
- # HTTP header `Content-Type`
166
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
167
- ['application/json']) # noqa: E501
161
+ # set the HTTP header `Content-Type`
162
+ _content_types_list = _params.get('_content_type',
163
+ self.api_client.select_header_content_type(
164
+ ['application/json']))
165
+ if _content_types_list:
166
+ _header_params['Content-Type'] = _content_types_list
168
167
 
169
- # Authentication setting
170
- auth_settings = ['ApiKey'] # noqa: E501
168
+ # authentication setting
169
+ _auth_settings = ['ApiKey'] # noqa: E501
171
170
 
172
- response_types_map = {}
171
+ _response_types_map = {}
173
172
 
174
173
  return self.api_client.call_api(
175
174
  '/api/v1/auth/change-password', 'POST',
176
- path_params,
177
- query_params,
178
- header_params,
179
- body=body_params,
180
- post_params=form_params,
181
- files=local_var_files,
182
- response_types_map=response_types_map,
183
- auth_settings=auth_settings,
184
- async_req=local_var_params.get('async_req'),
185
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
186
- _preload_content=local_var_params.get('_preload_content', True),
187
- _request_timeout=local_var_params.get('_request_timeout'),
188
- collection_formats=collection_formats,
189
- _request_auth=local_var_params.get('_request_auth'))
190
-
191
- def login(self, body, **kwargs): # noqa: E501
175
+ _path_params,
176
+ _query_params,
177
+ _header_params,
178
+ body=_body_params,
179
+ post_params=_form_params,
180
+ files=_files,
181
+ response_types_map=_response_types_map,
182
+ auth_settings=_auth_settings,
183
+ async_req=_params.get('async_req'),
184
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
185
+ _preload_content=_params.get('_preload_content', True),
186
+ _request_timeout=_params.get('_request_timeout'),
187
+ collection_formats=_collection_formats,
188
+ _request_auth=_params.get('_request_auth'))
189
+
190
+ @validate_arguments
191
+ def login(self, body : V1Credentials, **kwargs) -> V1Auth: # noqa: E501
192
192
  """Login # noqa: E501
193
193
 
194
194
  This method makes a synchronous HTTP request by default. To make an
@@ -217,7 +217,8 @@ class AuthV1Api(object):
217
217
  kwargs['_return_http_data_only'] = True
218
218
  return self.login_with_http_info(body, **kwargs) # noqa: E501
219
219
 
220
- def login_with_http_info(self, body, **kwargs): # noqa: E501
220
+ @validate_arguments
221
+ def login_with_http_info(self, body : V1Credentials, **kwargs): # noqa: E501
221
222
  """Login # noqa: E501
222
223
 
223
224
  This method makes a synchronous HTTP request by default. To make an
@@ -245,90 +246,97 @@ class AuthV1Api(object):
245
246
  request; this effectively ignores the authentication
246
247
  in the spec for a single request.
247
248
  :type _request_auth: dict, optional
249
+ :type _content_type: string, optional: force content-type for the request
248
250
  :return: Returns the result object.
249
251
  If the method is called asynchronously,
250
252
  returns the request thread.
251
253
  :rtype: tuple(V1Auth, status_code(int), headers(HTTPHeaderDict))
252
254
  """
253
255
 
254
- local_var_params = locals()
256
+ _params = locals()
255
257
 
256
- all_params = [
258
+ _all_params = [
257
259
  'body'
258
260
  ]
259
- all_params.extend(
261
+ _all_params.extend(
260
262
  [
261
263
  'async_req',
262
264
  '_return_http_data_only',
263
265
  '_preload_content',
264
266
  '_request_timeout',
265
- '_request_auth'
267
+ '_request_auth',
268
+ '_content_type',
269
+ '_headers'
266
270
  ]
267
271
  )
268
272
 
269
- for key, val in six.iteritems(local_var_params['kwargs']):
270
- if key not in all_params:
273
+ # validate the arguments
274
+ for _key, _val in _params['kwargs'].items():
275
+ if _key not in _all_params:
271
276
  raise ApiTypeError(
272
277
  "Got an unexpected keyword argument '%s'"
273
- " to method login" % key
278
+ " to method login" % _key
274
279
  )
275
- local_var_params[key] = val
276
- del local_var_params['kwargs']
277
- # verify the required parameter 'body' is set
278
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
279
- local_var_params['body'] is None): # noqa: E501
280
- raise ApiValueError("Missing the required parameter `body` when calling `login`") # noqa: E501
281
-
282
- collection_formats = {}
283
-
284
- path_params = {}
285
-
286
- query_params = []
287
-
288
- header_params = {}
289
-
290
- form_params = []
291
- local_var_files = {}
292
-
293
- body_params = None
294
- if 'body' in local_var_params:
295
- body_params = local_var_params['body']
296
- # HTTP header `Accept`
297
- header_params['Accept'] = self.api_client.select_header_accept(
280
+ _params[_key] = _val
281
+ del _params['kwargs']
282
+
283
+ _collection_formats = {}
284
+
285
+ # process the path parameters
286
+ _path_params = {}
287
+
288
+ # process the query parameters
289
+ _query_params = []
290
+ # process the header parameters
291
+ _header_params = dict(_params.get('_headers', {}))
292
+ # process the form parameters
293
+ _form_params = []
294
+ _files = {}
295
+ # process the body parameter
296
+ _body_params = None
297
+ if _params['body']:
298
+ _body_params = _params['body']
299
+
300
+ # set the HTTP header `Accept`
301
+ _header_params['Accept'] = self.api_client.select_header_accept(
298
302
  ['application/json']) # noqa: E501
299
303
 
300
- # HTTP header `Content-Type`
301
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
302
- ['application/json']) # noqa: E501
303
-
304
- # Authentication setting
305
- auth_settings = ['ApiKey'] # noqa: E501
306
-
307
- response_types_map = {
308
- 200: "V1Auth",
309
- 204: "object",
310
- 403: "object",
311
- 404: "object",
304
+ # set the HTTP header `Content-Type`
305
+ _content_types_list = _params.get('_content_type',
306
+ self.api_client.select_header_content_type(
307
+ ['application/json']))
308
+ if _content_types_list:
309
+ _header_params['Content-Type'] = _content_types_list
310
+
311
+ # authentication setting
312
+ _auth_settings = ['ApiKey'] # noqa: E501
313
+
314
+ _response_types_map = {
315
+ '200': "V1Auth",
316
+ '204': "object",
317
+ '403': "object",
318
+ '404': "object",
312
319
  }
313
320
 
314
321
  return self.api_client.call_api(
315
322
  '/api/v1/auth/token', 'POST',
316
- path_params,
317
- query_params,
318
- header_params,
319
- body=body_params,
320
- post_params=form_params,
321
- files=local_var_files,
322
- response_types_map=response_types_map,
323
- auth_settings=auth_settings,
324
- async_req=local_var_params.get('async_req'),
325
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
326
- _preload_content=local_var_params.get('_preload_content', True),
327
- _request_timeout=local_var_params.get('_request_timeout'),
328
- collection_formats=collection_formats,
329
- _request_auth=local_var_params.get('_request_auth'))
330
-
331
- def reset_password(self, body, **kwargs): # noqa: E501
323
+ _path_params,
324
+ _query_params,
325
+ _header_params,
326
+ body=_body_params,
327
+ post_params=_form_params,
328
+ files=_files,
329
+ response_types_map=_response_types_map,
330
+ auth_settings=_auth_settings,
331
+ async_req=_params.get('async_req'),
332
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
333
+ _preload_content=_params.get('_preload_content', True),
334
+ _request_timeout=_params.get('_request_timeout'),
335
+ collection_formats=_collection_formats,
336
+ _request_auth=_params.get('_request_auth'))
337
+
338
+ @validate_arguments
339
+ def reset_password(self, body : V1UserEmail, **kwargs) -> None: # noqa: E501
332
340
  """Reset password # noqa: E501
333
341
 
334
342
  This method makes a synchronous HTTP request by default. To make an
@@ -357,7 +365,8 @@ class AuthV1Api(object):
357
365
  kwargs['_return_http_data_only'] = True
358
366
  return self.reset_password_with_http_info(body, **kwargs) # noqa: E501
359
367
 
360
- def reset_password_with_http_info(self, body, **kwargs): # noqa: E501
368
+ @validate_arguments
369
+ def reset_password_with_http_info(self, body : V1UserEmail, **kwargs): # noqa: E501
361
370
  """Reset password # noqa: E501
362
371
 
363
372
  This method makes a synchronous HTTP request by default. To make an
@@ -385,85 +394,92 @@ class AuthV1Api(object):
385
394
  request; this effectively ignores the authentication
386
395
  in the spec for a single request.
387
396
  :type _request_auth: dict, optional
397
+ :type _content_type: string, optional: force content-type for the request
388
398
  :return: Returns the result object.
389
399
  If the method is called asynchronously,
390
400
  returns the request thread.
391
401
  :rtype: None
392
402
  """
393
403
 
394
- local_var_params = locals()
404
+ _params = locals()
395
405
 
396
- all_params = [
406
+ _all_params = [
397
407
  'body'
398
408
  ]
399
- all_params.extend(
409
+ _all_params.extend(
400
410
  [
401
411
  'async_req',
402
412
  '_return_http_data_only',
403
413
  '_preload_content',
404
414
  '_request_timeout',
405
- '_request_auth'
415
+ '_request_auth',
416
+ '_content_type',
417
+ '_headers'
406
418
  ]
407
419
  )
408
420
 
409
- for key, val in six.iteritems(local_var_params['kwargs']):
410
- if key not in all_params:
421
+ # validate the arguments
422
+ for _key, _val in _params['kwargs'].items():
423
+ if _key not in _all_params:
411
424
  raise ApiTypeError(
412
425
  "Got an unexpected keyword argument '%s'"
413
- " to method reset_password" % key
426
+ " to method reset_password" % _key
414
427
  )
415
- local_var_params[key] = val
416
- del local_var_params['kwargs']
417
- # verify the required parameter 'body' is set
418
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
419
- local_var_params['body'] is None): # noqa: E501
420
- raise ApiValueError("Missing the required parameter `body` when calling `reset_password`") # noqa: E501
421
-
422
- collection_formats = {}
423
-
424
- path_params = {}
425
-
426
- query_params = []
427
-
428
- header_params = {}
429
-
430
- form_params = []
431
- local_var_files = {}
432
-
433
- body_params = None
434
- if 'body' in local_var_params:
435
- body_params = local_var_params['body']
436
- # HTTP header `Accept`
437
- header_params['Accept'] = self.api_client.select_header_accept(
428
+ _params[_key] = _val
429
+ del _params['kwargs']
430
+
431
+ _collection_formats = {}
432
+
433
+ # process the path parameters
434
+ _path_params = {}
435
+
436
+ # process the query parameters
437
+ _query_params = []
438
+ # process the header parameters
439
+ _header_params = dict(_params.get('_headers', {}))
440
+ # process the form parameters
441
+ _form_params = []
442
+ _files = {}
443
+ # process the body parameter
444
+ _body_params = None
445
+ if _params['body']:
446
+ _body_params = _params['body']
447
+
448
+ # set the HTTP header `Accept`
449
+ _header_params['Accept'] = self.api_client.select_header_accept(
438
450
  ['application/json']) # noqa: E501
439
451
 
440
- # HTTP header `Content-Type`
441
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
442
- ['application/json']) # noqa: E501
452
+ # set the HTTP header `Content-Type`
453
+ _content_types_list = _params.get('_content_type',
454
+ self.api_client.select_header_content_type(
455
+ ['application/json']))
456
+ if _content_types_list:
457
+ _header_params['Content-Type'] = _content_types_list
443
458
 
444
- # Authentication setting
445
- auth_settings = ['ApiKey'] # noqa: E501
459
+ # authentication setting
460
+ _auth_settings = ['ApiKey'] # noqa: E501
446
461
 
447
- response_types_map = {}
462
+ _response_types_map = {}
448
463
 
449
464
  return self.api_client.call_api(
450
465
  '/api/v1/auth/reset-password', 'POST',
451
- path_params,
452
- query_params,
453
- header_params,
454
- body=body_params,
455
- post_params=form_params,
456
- files=local_var_files,
457
- response_types_map=response_types_map,
458
- auth_settings=auth_settings,
459
- async_req=local_var_params.get('async_req'),
460
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
461
- _preload_content=local_var_params.get('_preload_content', True),
462
- _request_timeout=local_var_params.get('_request_timeout'),
463
- collection_formats=collection_formats,
464
- _request_auth=local_var_params.get('_request_auth'))
465
-
466
- def reset_password_confirm(self, body, **kwargs): # noqa: E501
466
+ _path_params,
467
+ _query_params,
468
+ _header_params,
469
+ body=_body_params,
470
+ post_params=_form_params,
471
+ files=_files,
472
+ response_types_map=_response_types_map,
473
+ auth_settings=_auth_settings,
474
+ async_req=_params.get('async_req'),
475
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
476
+ _preload_content=_params.get('_preload_content', True),
477
+ _request_timeout=_params.get('_request_timeout'),
478
+ collection_formats=_collection_formats,
479
+ _request_auth=_params.get('_request_auth'))
480
+
481
+ @validate_arguments
482
+ def reset_password_confirm(self, body : V1PasswordChange, **kwargs) -> V1Auth: # noqa: E501
467
483
  """Reset password confirm # noqa: E501
468
484
 
469
485
  This method makes a synchronous HTTP request by default. To make an
@@ -492,7 +508,8 @@ class AuthV1Api(object):
492
508
  kwargs['_return_http_data_only'] = True
493
509
  return self.reset_password_confirm_with_http_info(body, **kwargs) # noqa: E501
494
510
 
495
- def reset_password_confirm_with_http_info(self, body, **kwargs): # noqa: E501
511
+ @validate_arguments
512
+ def reset_password_confirm_with_http_info(self, body : V1PasswordChange, **kwargs): # noqa: E501
496
513
  """Reset password confirm # noqa: E501
497
514
 
498
515
  This method makes a synchronous HTTP request by default. To make an
@@ -520,90 +537,97 @@ class AuthV1Api(object):
520
537
  request; this effectively ignores the authentication
521
538
  in the spec for a single request.
522
539
  :type _request_auth: dict, optional
540
+ :type _content_type: string, optional: force content-type for the request
523
541
  :return: Returns the result object.
524
542
  If the method is called asynchronously,
525
543
  returns the request thread.
526
544
  :rtype: tuple(V1Auth, status_code(int), headers(HTTPHeaderDict))
527
545
  """
528
546
 
529
- local_var_params = locals()
547
+ _params = locals()
530
548
 
531
- all_params = [
549
+ _all_params = [
532
550
  'body'
533
551
  ]
534
- all_params.extend(
552
+ _all_params.extend(
535
553
  [
536
554
  'async_req',
537
555
  '_return_http_data_only',
538
556
  '_preload_content',
539
557
  '_request_timeout',
540
- '_request_auth'
558
+ '_request_auth',
559
+ '_content_type',
560
+ '_headers'
541
561
  ]
542
562
  )
543
563
 
544
- for key, val in six.iteritems(local_var_params['kwargs']):
545
- if key not in all_params:
564
+ # validate the arguments
565
+ for _key, _val in _params['kwargs'].items():
566
+ if _key not in _all_params:
546
567
  raise ApiTypeError(
547
568
  "Got an unexpected keyword argument '%s'"
548
- " to method reset_password_confirm" % key
569
+ " to method reset_password_confirm" % _key
549
570
  )
550
- local_var_params[key] = val
551
- del local_var_params['kwargs']
552
- # verify the required parameter 'body' is set
553
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
554
- local_var_params['body'] is None): # noqa: E501
555
- raise ApiValueError("Missing the required parameter `body` when calling `reset_password_confirm`") # noqa: E501
556
-
557
- collection_formats = {}
558
-
559
- path_params = {}
560
-
561
- query_params = []
562
-
563
- header_params = {}
564
-
565
- form_params = []
566
- local_var_files = {}
567
-
568
- body_params = None
569
- if 'body' in local_var_params:
570
- body_params = local_var_params['body']
571
- # HTTP header `Accept`
572
- header_params['Accept'] = self.api_client.select_header_accept(
571
+ _params[_key] = _val
572
+ del _params['kwargs']
573
+
574
+ _collection_formats = {}
575
+
576
+ # process the path parameters
577
+ _path_params = {}
578
+
579
+ # process the query parameters
580
+ _query_params = []
581
+ # process the header parameters
582
+ _header_params = dict(_params.get('_headers', {}))
583
+ # process the form parameters
584
+ _form_params = []
585
+ _files = {}
586
+ # process the body parameter
587
+ _body_params = None
588
+ if _params['body']:
589
+ _body_params = _params['body']
590
+
591
+ # set the HTTP header `Accept`
592
+ _header_params['Accept'] = self.api_client.select_header_accept(
573
593
  ['application/json']) # noqa: E501
574
594
 
575
- # HTTP header `Content-Type`
576
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
577
- ['application/json']) # noqa: E501
578
-
579
- # Authentication setting
580
- auth_settings = ['ApiKey'] # noqa: E501
581
-
582
- response_types_map = {
583
- 200: "V1Auth",
584
- 204: "object",
585
- 403: "object",
586
- 404: "object",
595
+ # set the HTTP header `Content-Type`
596
+ _content_types_list = _params.get('_content_type',
597
+ self.api_client.select_header_content_type(
598
+ ['application/json']))
599
+ if _content_types_list:
600
+ _header_params['Content-Type'] = _content_types_list
601
+
602
+ # authentication setting
603
+ _auth_settings = ['ApiKey'] # noqa: E501
604
+
605
+ _response_types_map = {
606
+ '200': "V1Auth",
607
+ '204': "object",
608
+ '403': "object",
609
+ '404': "object",
587
610
  }
588
611
 
589
612
  return self.api_client.call_api(
590
613
  '/api/v1/auth/reset-password-confirm', 'POST',
591
- path_params,
592
- query_params,
593
- header_params,
594
- body=body_params,
595
- post_params=form_params,
596
- files=local_var_files,
597
- response_types_map=response_types_map,
598
- auth_settings=auth_settings,
599
- async_req=local_var_params.get('async_req'),
600
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
601
- _preload_content=local_var_params.get('_preload_content', True),
602
- _request_timeout=local_var_params.get('_request_timeout'),
603
- collection_formats=collection_formats,
604
- _request_auth=local_var_params.get('_request_auth'))
605
-
606
- def signup(self, body, **kwargs): # noqa: E501
614
+ _path_params,
615
+ _query_params,
616
+ _header_params,
617
+ body=_body_params,
618
+ post_params=_form_params,
619
+ files=_files,
620
+ response_types_map=_response_types_map,
621
+ auth_settings=_auth_settings,
622
+ async_req=_params.get('async_req'),
623
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
624
+ _preload_content=_params.get('_preload_content', True),
625
+ _request_timeout=_params.get('_request_timeout'),
626
+ collection_formats=_collection_formats,
627
+ _request_auth=_params.get('_request_auth'))
628
+
629
+ @validate_arguments
630
+ def signup(self, body : V1UserSingup, **kwargs) -> V1Auth: # noqa: E501
607
631
  """Signup # noqa: E501
608
632
 
609
633
  This method makes a synchronous HTTP request by default. To make an
@@ -632,7 +656,8 @@ class AuthV1Api(object):
632
656
  kwargs['_return_http_data_only'] = True
633
657
  return self.signup_with_http_info(body, **kwargs) # noqa: E501
634
658
 
635
- def signup_with_http_info(self, body, **kwargs): # noqa: E501
659
+ @validate_arguments
660
+ def signup_with_http_info(self, body : V1UserSingup, **kwargs): # noqa: E501
636
661
  """Signup # noqa: E501
637
662
 
638
663
  This method makes a synchronous HTTP request by default. To make an
@@ -660,90 +685,97 @@ class AuthV1Api(object):
660
685
  request; this effectively ignores the authentication
661
686
  in the spec for a single request.
662
687
  :type _request_auth: dict, optional
688
+ :type _content_type: string, optional: force content-type for the request
663
689
  :return: Returns the result object.
664
690
  If the method is called asynchronously,
665
691
  returns the request thread.
666
692
  :rtype: tuple(V1Auth, status_code(int), headers(HTTPHeaderDict))
667
693
  """
668
694
 
669
- local_var_params = locals()
695
+ _params = locals()
670
696
 
671
- all_params = [
697
+ _all_params = [
672
698
  'body'
673
699
  ]
674
- all_params.extend(
700
+ _all_params.extend(
675
701
  [
676
702
  'async_req',
677
703
  '_return_http_data_only',
678
704
  '_preload_content',
679
705
  '_request_timeout',
680
- '_request_auth'
706
+ '_request_auth',
707
+ '_content_type',
708
+ '_headers'
681
709
  ]
682
710
  )
683
711
 
684
- for key, val in six.iteritems(local_var_params['kwargs']):
685
- if key not in all_params:
712
+ # validate the arguments
713
+ for _key, _val in _params['kwargs'].items():
714
+ if _key not in _all_params:
686
715
  raise ApiTypeError(
687
716
  "Got an unexpected keyword argument '%s'"
688
- " to method signup" % key
717
+ " to method signup" % _key
689
718
  )
690
- local_var_params[key] = val
691
- del local_var_params['kwargs']
692
- # verify the required parameter 'body' is set
693
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
694
- local_var_params['body'] is None): # noqa: E501
695
- raise ApiValueError("Missing the required parameter `body` when calling `signup`") # noqa: E501
696
-
697
- collection_formats = {}
698
-
699
- path_params = {}
700
-
701
- query_params = []
702
-
703
- header_params = {}
704
-
705
- form_params = []
706
- local_var_files = {}
707
-
708
- body_params = None
709
- if 'body' in local_var_params:
710
- body_params = local_var_params['body']
711
- # HTTP header `Accept`
712
- header_params['Accept'] = self.api_client.select_header_accept(
719
+ _params[_key] = _val
720
+ del _params['kwargs']
721
+
722
+ _collection_formats = {}
723
+
724
+ # process the path parameters
725
+ _path_params = {}
726
+
727
+ # process the query parameters
728
+ _query_params = []
729
+ # process the header parameters
730
+ _header_params = dict(_params.get('_headers', {}))
731
+ # process the form parameters
732
+ _form_params = []
733
+ _files = {}
734
+ # process the body parameter
735
+ _body_params = None
736
+ if _params['body']:
737
+ _body_params = _params['body']
738
+
739
+ # set the HTTP header `Accept`
740
+ _header_params['Accept'] = self.api_client.select_header_accept(
713
741
  ['application/json']) # noqa: E501
714
742
 
715
- # HTTP header `Content-Type`
716
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
717
- ['application/json']) # noqa: E501
718
-
719
- # Authentication setting
720
- auth_settings = ['ApiKey'] # noqa: E501
721
-
722
- response_types_map = {
723
- 200: "V1Auth",
724
- 204: "object",
725
- 403: "object",
726
- 404: "object",
743
+ # set the HTTP header `Content-Type`
744
+ _content_types_list = _params.get('_content_type',
745
+ self.api_client.select_header_content_type(
746
+ ['application/json']))
747
+ if _content_types_list:
748
+ _header_params['Content-Type'] = _content_types_list
749
+
750
+ # authentication setting
751
+ _auth_settings = ['ApiKey'] # noqa: E501
752
+
753
+ _response_types_map = {
754
+ '200': "V1Auth",
755
+ '204': "object",
756
+ '403': "object",
757
+ '404': "object",
727
758
  }
728
759
 
729
760
  return self.api_client.call_api(
730
761
  '/api/v1/auth/signup', 'POST',
731
- path_params,
732
- query_params,
733
- header_params,
734
- body=body_params,
735
- post_params=form_params,
736
- files=local_var_files,
737
- response_types_map=response_types_map,
738
- auth_settings=auth_settings,
739
- async_req=local_var_params.get('async_req'),
740
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
741
- _preload_content=local_var_params.get('_preload_content', True),
742
- _request_timeout=local_var_params.get('_request_timeout'),
743
- collection_formats=collection_formats,
744
- _request_auth=local_var_params.get('_request_auth'))
745
-
746
- def trial(self, body, **kwargs): # noqa: E501
762
+ _path_params,
763
+ _query_params,
764
+ _header_params,
765
+ body=_body_params,
766
+ post_params=_form_params,
767
+ files=_files,
768
+ response_types_map=_response_types_map,
769
+ auth_settings=_auth_settings,
770
+ async_req=_params.get('async_req'),
771
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
772
+ _preload_content=_params.get('_preload_content', True),
773
+ _request_timeout=_params.get('_request_timeout'),
774
+ collection_formats=_collection_formats,
775
+ _request_auth=_params.get('_request_auth'))
776
+
777
+ @validate_arguments
778
+ def trial(self, body : V1TrialStart, **kwargs) -> None: # noqa: E501
747
779
  """Trial Start # noqa: E501
748
780
 
749
781
  This method makes a synchronous HTTP request by default. To make an
@@ -772,7 +804,8 @@ class AuthV1Api(object):
772
804
  kwargs['_return_http_data_only'] = True
773
805
  return self.trial_with_http_info(body, **kwargs) # noqa: E501
774
806
 
775
- def trial_with_http_info(self, body, **kwargs): # noqa: E501
807
+ @validate_arguments
808
+ def trial_with_http_info(self, body : V1TrialStart, **kwargs): # noqa: E501
776
809
  """Trial Start # noqa: E501
777
810
 
778
811
  This method makes a synchronous HTTP request by default. To make an
@@ -800,80 +833,86 @@ class AuthV1Api(object):
800
833
  request; this effectively ignores the authentication
801
834
  in the spec for a single request.
802
835
  :type _request_auth: dict, optional
836
+ :type _content_type: string, optional: force content-type for the request
803
837
  :return: Returns the result object.
804
838
  If the method is called asynchronously,
805
839
  returns the request thread.
806
840
  :rtype: None
807
841
  """
808
842
 
809
- local_var_params = locals()
843
+ _params = locals()
810
844
 
811
- all_params = [
845
+ _all_params = [
812
846
  'body'
813
847
  ]
814
- all_params.extend(
848
+ _all_params.extend(
815
849
  [
816
850
  'async_req',
817
851
  '_return_http_data_only',
818
852
  '_preload_content',
819
853
  '_request_timeout',
820
- '_request_auth'
854
+ '_request_auth',
855
+ '_content_type',
856
+ '_headers'
821
857
  ]
822
858
  )
823
859
 
824
- for key, val in six.iteritems(local_var_params['kwargs']):
825
- if key not in all_params:
860
+ # validate the arguments
861
+ for _key, _val in _params['kwargs'].items():
862
+ if _key not in _all_params:
826
863
  raise ApiTypeError(
827
864
  "Got an unexpected keyword argument '%s'"
828
- " to method trial" % key
865
+ " to method trial" % _key
829
866
  )
830
- local_var_params[key] = val
831
- del local_var_params['kwargs']
832
- # verify the required parameter 'body' is set
833
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
834
- local_var_params['body'] is None): # noqa: E501
835
- raise ApiValueError("Missing the required parameter `body` when calling `trial`") # noqa: E501
836
-
837
- collection_formats = {}
838
-
839
- path_params = {}
840
-
841
- query_params = []
842
-
843
- header_params = {}
844
-
845
- form_params = []
846
- local_var_files = {}
847
-
848
- body_params = None
849
- if 'body' in local_var_params:
850
- body_params = local_var_params['body']
851
- # HTTP header `Accept`
852
- header_params['Accept'] = self.api_client.select_header_accept(
867
+ _params[_key] = _val
868
+ del _params['kwargs']
869
+
870
+ _collection_formats = {}
871
+
872
+ # process the path parameters
873
+ _path_params = {}
874
+
875
+ # process the query parameters
876
+ _query_params = []
877
+ # process the header parameters
878
+ _header_params = dict(_params.get('_headers', {}))
879
+ # process the form parameters
880
+ _form_params = []
881
+ _files = {}
882
+ # process the body parameter
883
+ _body_params = None
884
+ if _params['body']:
885
+ _body_params = _params['body']
886
+
887
+ # set the HTTP header `Accept`
888
+ _header_params['Accept'] = self.api_client.select_header_accept(
853
889
  ['application/json']) # noqa: E501
854
890
 
855
- # HTTP header `Content-Type`
856
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
857
- ['application/json']) # noqa: E501
891
+ # set the HTTP header `Content-Type`
892
+ _content_types_list = _params.get('_content_type',
893
+ self.api_client.select_header_content_type(
894
+ ['application/json']))
895
+ if _content_types_list:
896
+ _header_params['Content-Type'] = _content_types_list
858
897
 
859
- # Authentication setting
860
- auth_settings = ['ApiKey'] # noqa: E501
898
+ # authentication setting
899
+ _auth_settings = ['ApiKey'] # noqa: E501
861
900
 
862
- response_types_map = {}
901
+ _response_types_map = {}
863
902
 
864
903
  return self.api_client.call_api(
865
904
  '/api/v1/auth/trial', 'POST',
866
- path_params,
867
- query_params,
868
- header_params,
869
- body=body_params,
870
- post_params=form_params,
871
- files=local_var_files,
872
- response_types_map=response_types_map,
873
- auth_settings=auth_settings,
874
- async_req=local_var_params.get('async_req'),
875
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
876
- _preload_content=local_var_params.get('_preload_content', True),
877
- _request_timeout=local_var_params.get('_request_timeout'),
878
- collection_formats=collection_formats,
879
- _request_auth=local_var_params.get('_request_auth'))
905
+ _path_params,
906
+ _query_params,
907
+ _header_params,
908
+ body=_body_params,
909
+ post_params=_form_params,
910
+ files=_files,
911
+ response_types_map=_response_types_map,
912
+ auth_settings=_auth_settings,
913
+ async_req=_params.get('async_req'),
914
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
915
+ _preload_content=_params.get('_preload_content', True),
916
+ _request_timeout=_params.get('_request_timeout'),
917
+ collection_formats=_collection_formats,
918
+ _request_auth=_params.get('_request_auth'))