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 pydantic import Field, StrictBool, StrictInt, StrictStr
22
+
23
+ from typing import Optional
24
+
25
+ from polyaxon_sdk.models.v1_connection_response import V1ConnectionResponse
26
+ from polyaxon_sdk.models.v1_list_connections_response import V1ListConnectionsResponse
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 ConnectionsV1Api(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 create_connection(self, owner, body, **kwargs): # noqa: E501
47
+ @validate_arguments
48
+ def create_connection(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1ConnectionResponse, Field(..., description="Connection body")], **kwargs) -> V1ConnectionResponse: # noqa: E501
57
49
  """Create connection # noqa: E501
58
50
 
59
51
  This method makes a synchronous HTTP request by default. To make an
@@ -84,7 +76,8 @@ class ConnectionsV1Api(object):
84
76
  kwargs['_return_http_data_only'] = True
85
77
  return self.create_connection_with_http_info(owner, body, **kwargs) # noqa: E501
86
78
 
87
- def create_connection_with_http_info(self, owner, body, **kwargs): # noqa: E501
79
+ @validate_arguments
80
+ def create_connection_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1ConnectionResponse, Field(..., description="Connection body")], **kwargs): # noqa: E501
88
81
  """Create connection # noqa: E501
89
82
 
90
83
  This method makes a synchronous HTTP request by default. To make an
@@ -114,97 +107,101 @@ class ConnectionsV1Api(object):
114
107
  request; this effectively ignores the authentication
115
108
  in the spec for a single request.
116
109
  :type _request_auth: dict, optional
110
+ :type _content_type: string, optional: force content-type for the request
117
111
  :return: Returns the result object.
118
112
  If the method is called asynchronously,
119
113
  returns the request thread.
120
114
  :rtype: tuple(V1ConnectionResponse, status_code(int), headers(HTTPHeaderDict))
121
115
  """
122
116
 
123
- local_var_params = locals()
117
+ _params = locals()
124
118
 
125
- all_params = [
119
+ _all_params = [
126
120
  'owner',
127
121
  'body'
128
122
  ]
129
- all_params.extend(
123
+ _all_params.extend(
130
124
  [
131
125
  'async_req',
132
126
  '_return_http_data_only',
133
127
  '_preload_content',
134
128
  '_request_timeout',
135
- '_request_auth'
129
+ '_request_auth',
130
+ '_content_type',
131
+ '_headers'
136
132
  ]
137
133
  )
138
134
 
139
- for key, val in six.iteritems(local_var_params['kwargs']):
140
- if key not in all_params:
135
+ # validate the arguments
136
+ for _key, _val in _params['kwargs'].items():
137
+ if _key not in _all_params:
141
138
  raise ApiTypeError(
142
139
  "Got an unexpected keyword argument '%s'"
143
- " to method create_connection" % key
140
+ " to method create_connection" % _key
144
141
  )
145
- local_var_params[key] = val
146
- del local_var_params['kwargs']
147
- # verify the required parameter 'owner' is set
148
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
149
- local_var_params['owner'] is None): # noqa: E501
150
- raise ApiValueError("Missing the required parameter `owner` when calling `create_connection`") # noqa: E501
151
- # verify the required parameter 'body' is set
152
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
153
- local_var_params['body'] is None): # noqa: E501
154
- raise ApiValueError("Missing the required parameter `body` when calling `create_connection`") # noqa: E501
155
-
156
- collection_formats = {}
157
-
158
- path_params = {}
159
- if 'owner' in local_var_params:
160
- path_params['owner'] = local_var_params['owner'] # noqa: E501
161
-
162
- query_params = []
163
-
164
- header_params = {}
165
-
166
- form_params = []
167
- local_var_files = {}
168
-
169
- body_params = None
170
- if 'body' in local_var_params:
171
- body_params = local_var_params['body']
172
- # HTTP header `Accept`
173
- header_params['Accept'] = self.api_client.select_header_accept(
142
+ _params[_key] = _val
143
+ del _params['kwargs']
144
+
145
+ _collection_formats = {}
146
+
147
+ # process the path parameters
148
+ _path_params = {}
149
+ if _params['owner']:
150
+ _path_params['owner'] = _params['owner']
151
+
152
+
153
+ # process the query parameters
154
+ _query_params = []
155
+ # process the header parameters
156
+ _header_params = dict(_params.get('_headers', {}))
157
+ # process the form parameters
158
+ _form_params = []
159
+ _files = {}
160
+ # process the body parameter
161
+ _body_params = None
162
+ if _params['body']:
163
+ _body_params = _params['body']
164
+
165
+ # set the HTTP header `Accept`
166
+ _header_params['Accept'] = self.api_client.select_header_accept(
174
167
  ['application/json']) # noqa: E501
175
168
 
176
- # HTTP header `Content-Type`
177
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
178
- ['application/json']) # noqa: E501
179
-
180
- # Authentication setting
181
- auth_settings = ['ApiKey'] # noqa: E501
182
-
183
- response_types_map = {
184
- 200: "V1ConnectionResponse",
185
- 204: "object",
186
- 403: "object",
187
- 404: "object",
169
+ # set the HTTP header `Content-Type`
170
+ _content_types_list = _params.get('_content_type',
171
+ self.api_client.select_header_content_type(
172
+ ['application/json']))
173
+ if _content_types_list:
174
+ _header_params['Content-Type'] = _content_types_list
175
+
176
+ # authentication setting
177
+ _auth_settings = ['ApiKey'] # noqa: E501
178
+
179
+ _response_types_map = {
180
+ '200': "V1ConnectionResponse",
181
+ '204': "object",
182
+ '403': "object",
183
+ '404': "object",
188
184
  }
189
185
 
190
186
  return self.api_client.call_api(
191
187
  '/api/v1/orgs/{owner}/connections', 'POST',
192
- path_params,
193
- query_params,
194
- header_params,
195
- body=body_params,
196
- post_params=form_params,
197
- files=local_var_files,
198
- response_types_map=response_types_map,
199
- auth_settings=auth_settings,
200
- async_req=local_var_params.get('async_req'),
201
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
202
- _preload_content=local_var_params.get('_preload_content', True),
203
- _request_timeout=local_var_params.get('_request_timeout'),
204
- collection_formats=collection_formats,
205
- _request_auth=local_var_params.get('_request_auth'))
206
-
207
- def delete_connection(self, owner, uuid, **kwargs): # noqa: E501
188
+ _path_params,
189
+ _query_params,
190
+ _header_params,
191
+ body=_body_params,
192
+ post_params=_form_params,
193
+ files=_files,
194
+ response_types_map=_response_types_map,
195
+ auth_settings=_auth_settings,
196
+ async_req=_params.get('async_req'),
197
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
198
+ _preload_content=_params.get('_preload_content', True),
199
+ _request_timeout=_params.get('_request_timeout'),
200
+ collection_formats=_collection_formats,
201
+ _request_auth=_params.get('_request_auth'))
202
+
203
+ @validate_arguments
204
+ def delete_connection(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs) -> None: # noqa: E501
208
205
  """Delete connection # noqa: E501
209
206
 
210
207
  This method makes a synchronous HTTP request by default. To make an
@@ -235,7 +232,8 @@ class ConnectionsV1Api(object):
235
232
  kwargs['_return_http_data_only'] = True
236
233
  return self.delete_connection_with_http_info(owner, uuid, **kwargs) # noqa: E501
237
234
 
238
- def delete_connection_with_http_info(self, owner, uuid, **kwargs): # noqa: E501
235
+ @validate_arguments
236
+ def delete_connection_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs): # noqa: E501
239
237
  """Delete connection # noqa: E501
240
238
 
241
239
  This method makes a synchronous HTTP request by default. To make an
@@ -265,88 +263,89 @@ class ConnectionsV1Api(object):
265
263
  request; this effectively ignores the authentication
266
264
  in the spec for a single request.
267
265
  :type _request_auth: dict, optional
266
+ :type _content_type: string, optional: force content-type for the request
268
267
  :return: Returns the result object.
269
268
  If the method is called asynchronously,
270
269
  returns the request thread.
271
270
  :rtype: None
272
271
  """
273
272
 
274
- local_var_params = locals()
273
+ _params = locals()
275
274
 
276
- all_params = [
275
+ _all_params = [
277
276
  'owner',
278
277
  'uuid'
279
278
  ]
280
- all_params.extend(
279
+ _all_params.extend(
281
280
  [
282
281
  'async_req',
283
282
  '_return_http_data_only',
284
283
  '_preload_content',
285
284
  '_request_timeout',
286
- '_request_auth'
285
+ '_request_auth',
286
+ '_content_type',
287
+ '_headers'
287
288
  ]
288
289
  )
289
290
 
290
- for key, val in six.iteritems(local_var_params['kwargs']):
291
- if key not in all_params:
291
+ # validate the arguments
292
+ for _key, _val in _params['kwargs'].items():
293
+ if _key not in _all_params:
292
294
  raise ApiTypeError(
293
295
  "Got an unexpected keyword argument '%s'"
294
- " to method delete_connection" % key
296
+ " to method delete_connection" % _key
295
297
  )
296
- local_var_params[key] = val
297
- del local_var_params['kwargs']
298
- # verify the required parameter 'owner' is set
299
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
300
- local_var_params['owner'] is None): # noqa: E501
301
- raise ApiValueError("Missing the required parameter `owner` when calling `delete_connection`") # noqa: E501
302
- # verify the required parameter 'uuid' is set
303
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
304
- local_var_params['uuid'] is None): # noqa: E501
305
- raise ApiValueError("Missing the required parameter `uuid` when calling `delete_connection`") # noqa: E501
306
-
307
- collection_formats = {}
308
-
309
- path_params = {}
310
- if 'owner' in local_var_params:
311
- path_params['owner'] = local_var_params['owner'] # noqa: E501
312
- if 'uuid' in local_var_params:
313
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
314
-
315
- query_params = []
316
-
317
- header_params = {}
318
-
319
- form_params = []
320
- local_var_files = {}
321
-
322
- body_params = None
323
- # HTTP header `Accept`
324
- header_params['Accept'] = self.api_client.select_header_accept(
298
+ _params[_key] = _val
299
+ del _params['kwargs']
300
+
301
+ _collection_formats = {}
302
+
303
+ # process the path parameters
304
+ _path_params = {}
305
+ if _params['owner']:
306
+ _path_params['owner'] = _params['owner']
307
+
308
+ if _params['uuid']:
309
+ _path_params['uuid'] = _params['uuid']
310
+
311
+
312
+ # process the query parameters
313
+ _query_params = []
314
+ # process the header parameters
315
+ _header_params = dict(_params.get('_headers', {}))
316
+ # process the form parameters
317
+ _form_params = []
318
+ _files = {}
319
+ # process the body parameter
320
+ _body_params = None
321
+ # set the HTTP header `Accept`
322
+ _header_params['Accept'] = self.api_client.select_header_accept(
325
323
  ['application/json']) # noqa: E501
326
324
 
327
- # Authentication setting
328
- auth_settings = ['ApiKey'] # noqa: E501
325
+ # authentication setting
326
+ _auth_settings = ['ApiKey'] # noqa: E501
329
327
 
330
- response_types_map = {}
328
+ _response_types_map = {}
331
329
 
332
330
  return self.api_client.call_api(
333
331
  '/api/v1/orgs/{owner}/connections/{uuid}', 'DELETE',
334
- path_params,
335
- query_params,
336
- header_params,
337
- body=body_params,
338
- post_params=form_params,
339
- files=local_var_files,
340
- response_types_map=response_types_map,
341
- auth_settings=auth_settings,
342
- async_req=local_var_params.get('async_req'),
343
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
344
- _preload_content=local_var_params.get('_preload_content', True),
345
- _request_timeout=local_var_params.get('_request_timeout'),
346
- collection_formats=collection_formats,
347
- _request_auth=local_var_params.get('_request_auth'))
348
-
349
- def get_connection(self, owner, uuid, **kwargs): # noqa: E501
332
+ _path_params,
333
+ _query_params,
334
+ _header_params,
335
+ body=_body_params,
336
+ post_params=_form_params,
337
+ files=_files,
338
+ response_types_map=_response_types_map,
339
+ auth_settings=_auth_settings,
340
+ async_req=_params.get('async_req'),
341
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
342
+ _preload_content=_params.get('_preload_content', True),
343
+ _request_timeout=_params.get('_request_timeout'),
344
+ collection_formats=_collection_formats,
345
+ _request_auth=_params.get('_request_auth'))
346
+
347
+ @validate_arguments
348
+ def get_connection(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs) -> V1ConnectionResponse: # noqa: E501
350
349
  """Get connection # noqa: E501
351
350
 
352
351
  This method makes a synchronous HTTP request by default. To make an
@@ -377,7 +376,8 @@ class ConnectionsV1Api(object):
377
376
  kwargs['_return_http_data_only'] = True
378
377
  return self.get_connection_with_http_info(owner, uuid, **kwargs) # noqa: E501
379
378
 
380
- def get_connection_with_http_info(self, owner, uuid, **kwargs): # noqa: E501
379
+ @validate_arguments
380
+ def get_connection_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs): # noqa: E501
381
381
  """Get connection # noqa: E501
382
382
 
383
383
  This method makes a synchronous HTTP request by default. To make an
@@ -407,99 +407,100 @@ class ConnectionsV1Api(object):
407
407
  request; this effectively ignores the authentication
408
408
  in the spec for a single request.
409
409
  :type _request_auth: dict, optional
410
+ :type _content_type: string, optional: force content-type for the request
410
411
  :return: Returns the result object.
411
412
  If the method is called asynchronously,
412
413
  returns the request thread.
413
414
  :rtype: tuple(V1ConnectionResponse, status_code(int), headers(HTTPHeaderDict))
414
415
  """
415
416
 
416
- local_var_params = locals()
417
+ _params = locals()
417
418
 
418
- all_params = [
419
+ _all_params = [
419
420
  'owner',
420
421
  'uuid'
421
422
  ]
422
- all_params.extend(
423
+ _all_params.extend(
423
424
  [
424
425
  'async_req',
425
426
  '_return_http_data_only',
426
427
  '_preload_content',
427
428
  '_request_timeout',
428
- '_request_auth'
429
+ '_request_auth',
430
+ '_content_type',
431
+ '_headers'
429
432
  ]
430
433
  )
431
434
 
432
- for key, val in six.iteritems(local_var_params['kwargs']):
433
- if key not in all_params:
435
+ # validate the arguments
436
+ for _key, _val in _params['kwargs'].items():
437
+ if _key not in _all_params:
434
438
  raise ApiTypeError(
435
439
  "Got an unexpected keyword argument '%s'"
436
- " to method get_connection" % key
440
+ " to method get_connection" % _key
437
441
  )
438
- local_var_params[key] = val
439
- del local_var_params['kwargs']
440
- # verify the required parameter 'owner' is set
441
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
442
- local_var_params['owner'] is None): # noqa: E501
443
- raise ApiValueError("Missing the required parameter `owner` when calling `get_connection`") # noqa: E501
444
- # verify the required parameter 'uuid' is set
445
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
446
- local_var_params['uuid'] is None): # noqa: E501
447
- raise ApiValueError("Missing the required parameter `uuid` when calling `get_connection`") # noqa: E501
448
-
449
- collection_formats = {}
450
-
451
- path_params = {}
452
- if 'owner' in local_var_params:
453
- path_params['owner'] = local_var_params['owner'] # noqa: E501
454
- if 'uuid' in local_var_params:
455
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
456
-
457
- query_params = []
458
-
459
- header_params = {}
460
-
461
- form_params = []
462
- local_var_files = {}
463
-
464
- body_params = None
465
- # HTTP header `Accept`
466
- header_params['Accept'] = self.api_client.select_header_accept(
442
+ _params[_key] = _val
443
+ del _params['kwargs']
444
+
445
+ _collection_formats = {}
446
+
447
+ # process the path parameters
448
+ _path_params = {}
449
+ if _params['owner']:
450
+ _path_params['owner'] = _params['owner']
451
+
452
+ if _params['uuid']:
453
+ _path_params['uuid'] = _params['uuid']
454
+
455
+
456
+ # process the query parameters
457
+ _query_params = []
458
+ # process the header parameters
459
+ _header_params = dict(_params.get('_headers', {}))
460
+ # process the form parameters
461
+ _form_params = []
462
+ _files = {}
463
+ # process the body parameter
464
+ _body_params = None
465
+ # set the HTTP header `Accept`
466
+ _header_params['Accept'] = self.api_client.select_header_accept(
467
467
  ['application/json']) # noqa: E501
468
468
 
469
- # Authentication setting
470
- auth_settings = ['ApiKey'] # noqa: E501
469
+ # authentication setting
470
+ _auth_settings = ['ApiKey'] # noqa: E501
471
471
 
472
- response_types_map = {
473
- 200: "V1ConnectionResponse",
474
- 204: "object",
475
- 403: "object",
476
- 404: "object",
472
+ _response_types_map = {
473
+ '200': "V1ConnectionResponse",
474
+ '204': "object",
475
+ '403': "object",
476
+ '404': "object",
477
477
  }
478
478
 
479
479
  return self.api_client.call_api(
480
480
  '/api/v1/orgs/{owner}/connections/{uuid}', 'GET',
481
- path_params,
482
- query_params,
483
- header_params,
484
- body=body_params,
485
- post_params=form_params,
486
- files=local_var_files,
487
- response_types_map=response_types_map,
488
- auth_settings=auth_settings,
489
- async_req=local_var_params.get('async_req'),
490
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
491
- _preload_content=local_var_params.get('_preload_content', True),
492
- _request_timeout=local_var_params.get('_request_timeout'),
493
- collection_formats=collection_formats,
494
- _request_auth=local_var_params.get('_request_auth'))
495
-
496
- def list_connection_names(self, owner, **kwargs): # noqa: E501
481
+ _path_params,
482
+ _query_params,
483
+ _header_params,
484
+ body=_body_params,
485
+ post_params=_form_params,
486
+ files=_files,
487
+ response_types_map=_response_types_map,
488
+ auth_settings=_auth_settings,
489
+ async_req=_params.get('async_req'),
490
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
491
+ _preload_content=_params.get('_preload_content', True),
492
+ _request_timeout=_params.get('_request_timeout'),
493
+ collection_formats=_collection_formats,
494
+ _request_auth=_params.get('_request_auth'))
495
+
496
+ @validate_arguments
497
+ def list_connection_names(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], 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, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListConnectionsResponse: # noqa: E501
497
498
  """List connections names # noqa: E501
498
499
 
499
500
  This method makes a synchronous HTTP request by default. To make an
500
501
  asynchronous HTTP request, please pass async_req=True
501
502
 
502
- >>> thread = api.list_connection_names(owner, async_req=True)
503
+ >>> thread = api.list_connection_names(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
503
504
  >>> result = thread.get()
504
505
 
505
506
  :param owner: Owner of the namespace (required)
@@ -534,15 +535,16 @@ class ConnectionsV1Api(object):
534
535
  :rtype: V1ListConnectionsResponse
535
536
  """
536
537
  kwargs['_return_http_data_only'] = True
537
- return self.list_connection_names_with_http_info(owner, **kwargs) # noqa: E501
538
+ return self.list_connection_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
538
539
 
539
- def list_connection_names_with_http_info(self, owner, **kwargs): # noqa: E501
540
+ @validate_arguments
541
+ def list_connection_names_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], 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, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
540
542
  """List connections names # noqa: E501
541
543
 
542
544
  This method makes a synchronous HTTP request by default. To make an
543
545
  asynchronous HTTP request, please pass async_req=True
544
546
 
545
- >>> thread = api.list_connection_names_with_http_info(owner, async_req=True)
547
+ >>> thread = api.list_connection_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
546
548
  >>> result = thread.get()
547
549
 
548
550
  :param owner: Owner of the namespace (required)
@@ -578,15 +580,16 @@ class ConnectionsV1Api(object):
578
580
  request; this effectively ignores the authentication
579
581
  in the spec for a single request.
580
582
  :type _request_auth: dict, optional
583
+ :type _content_type: string, optional: force content-type for the request
581
584
  :return: Returns the result object.
582
585
  If the method is called asynchronously,
583
586
  returns the request thread.
584
587
  :rtype: tuple(V1ListConnectionsResponse, status_code(int), headers(HTTPHeaderDict))
585
588
  """
586
589
 
587
- local_var_params = locals()
590
+ _params = locals()
588
591
 
589
- all_params = [
592
+ _all_params = [
590
593
  'owner',
591
594
  'offset',
592
595
  'limit',
@@ -596,95 +599,105 @@ class ConnectionsV1Api(object):
596
599
  'mode',
597
600
  'no_page'
598
601
  ]
599
- all_params.extend(
602
+ _all_params.extend(
600
603
  [
601
604
  'async_req',
602
605
  '_return_http_data_only',
603
606
  '_preload_content',
604
607
  '_request_timeout',
605
- '_request_auth'
608
+ '_request_auth',
609
+ '_content_type',
610
+ '_headers'
606
611
  ]
607
612
  )
608
613
 
609
- for key, val in six.iteritems(local_var_params['kwargs']):
610
- if key not in all_params:
614
+ # validate the arguments
615
+ for _key, _val in _params['kwargs'].items():
616
+ if _key not in _all_params:
611
617
  raise ApiTypeError(
612
618
  "Got an unexpected keyword argument '%s'"
613
- " to method list_connection_names" % key
619
+ " to method list_connection_names" % _key
614
620
  )
615
- local_var_params[key] = val
616
- del local_var_params['kwargs']
617
- # verify the required parameter 'owner' is set
618
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
619
- local_var_params['owner'] is None): # noqa: E501
620
- raise ApiValueError("Missing the required parameter `owner` when calling `list_connection_names`") # noqa: E501
621
-
622
- collection_formats = {}
623
-
624
- path_params = {}
625
- if 'owner' in local_var_params:
626
- path_params['owner'] = local_var_params['owner'] # noqa: E501
627
-
628
- query_params = []
629
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
630
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
631
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
632
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
633
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
634
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
635
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
636
- query_params.append(('query', local_var_params['query'])) # noqa: E501
637
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
638
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
639
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
640
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
641
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
642
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
643
-
644
- header_params = {}
645
-
646
- form_params = []
647
- local_var_files = {}
648
-
649
- body_params = None
650
- # HTTP header `Accept`
651
- header_params['Accept'] = self.api_client.select_header_accept(
621
+ _params[_key] = _val
622
+ del _params['kwargs']
623
+
624
+ _collection_formats = {}
625
+
626
+ # process the path parameters
627
+ _path_params = {}
628
+ if _params['owner']:
629
+ _path_params['owner'] = _params['owner']
630
+
631
+
632
+ # process the query parameters
633
+ _query_params = []
634
+ if _params.get('offset') is not None: # noqa: E501
635
+ _query_params.append(('offset', _params['offset']))
636
+
637
+ if _params.get('limit') is not None: # noqa: E501
638
+ _query_params.append(('limit', _params['limit']))
639
+
640
+ if _params.get('sort') is not None: # noqa: E501
641
+ _query_params.append(('sort', _params['sort']))
642
+
643
+ if _params.get('query') is not None: # noqa: E501
644
+ _query_params.append(('query', _params['query']))
645
+
646
+ if _params.get('bookmarks') is not None: # noqa: E501
647
+ _query_params.append(('bookmarks', _params['bookmarks']))
648
+
649
+ if _params.get('mode') is not None: # noqa: E501
650
+ _query_params.append(('mode', _params['mode']))
651
+
652
+ if _params.get('no_page') is not None: # noqa: E501
653
+ _query_params.append(('no_page', _params['no_page']))
654
+
655
+ # process the header parameters
656
+ _header_params = dict(_params.get('_headers', {}))
657
+ # process the form parameters
658
+ _form_params = []
659
+ _files = {}
660
+ # process the body parameter
661
+ _body_params = None
662
+ # set the HTTP header `Accept`
663
+ _header_params['Accept'] = self.api_client.select_header_accept(
652
664
  ['application/json']) # noqa: E501
653
665
 
654
- # Authentication setting
655
- auth_settings = ['ApiKey'] # noqa: E501
666
+ # authentication setting
667
+ _auth_settings = ['ApiKey'] # noqa: E501
656
668
 
657
- response_types_map = {
658
- 200: "V1ListConnectionsResponse",
659
- 204: "object",
660
- 403: "object",
661
- 404: "object",
669
+ _response_types_map = {
670
+ '200': "V1ListConnectionsResponse",
671
+ '204': "object",
672
+ '403': "object",
673
+ '404': "object",
662
674
  }
663
675
 
664
676
  return self.api_client.call_api(
665
677
  '/api/v1/orgs/{owner}/connections/names', 'GET',
666
- path_params,
667
- query_params,
668
- header_params,
669
- body=body_params,
670
- post_params=form_params,
671
- files=local_var_files,
672
- response_types_map=response_types_map,
673
- auth_settings=auth_settings,
674
- async_req=local_var_params.get('async_req'),
675
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
676
- _preload_content=local_var_params.get('_preload_content', True),
677
- _request_timeout=local_var_params.get('_request_timeout'),
678
- collection_formats=collection_formats,
679
- _request_auth=local_var_params.get('_request_auth'))
680
-
681
- def list_connections(self, owner, **kwargs): # noqa: E501
678
+ _path_params,
679
+ _query_params,
680
+ _header_params,
681
+ body=_body_params,
682
+ post_params=_form_params,
683
+ files=_files,
684
+ response_types_map=_response_types_map,
685
+ auth_settings=_auth_settings,
686
+ async_req=_params.get('async_req'),
687
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
688
+ _preload_content=_params.get('_preload_content', True),
689
+ _request_timeout=_params.get('_request_timeout'),
690
+ collection_formats=_collection_formats,
691
+ _request_auth=_params.get('_request_auth'))
692
+
693
+ @validate_arguments
694
+ def list_connections(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], 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, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListConnectionsResponse: # noqa: E501
682
695
  """List connections # noqa: E501
683
696
 
684
697
  This method makes a synchronous HTTP request by default. To make an
685
698
  asynchronous HTTP request, please pass async_req=True
686
699
 
687
- >>> thread = api.list_connections(owner, async_req=True)
700
+ >>> thread = api.list_connections(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
688
701
  >>> result = thread.get()
689
702
 
690
703
  :param owner: Owner of the namespace (required)
@@ -719,15 +732,16 @@ class ConnectionsV1Api(object):
719
732
  :rtype: V1ListConnectionsResponse
720
733
  """
721
734
  kwargs['_return_http_data_only'] = True
722
- return self.list_connections_with_http_info(owner, **kwargs) # noqa: E501
735
+ return self.list_connections_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
723
736
 
724
- def list_connections_with_http_info(self, owner, **kwargs): # noqa: E501
737
+ @validate_arguments
738
+ def list_connections_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], 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, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
725
739
  """List connections # noqa: E501
726
740
 
727
741
  This method makes a synchronous HTTP request by default. To make an
728
742
  asynchronous HTTP request, please pass async_req=True
729
743
 
730
- >>> thread = api.list_connections_with_http_info(owner, async_req=True)
744
+ >>> thread = api.list_connections_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
731
745
  >>> result = thread.get()
732
746
 
733
747
  :param owner: Owner of the namespace (required)
@@ -763,15 +777,16 @@ class ConnectionsV1Api(object):
763
777
  request; this effectively ignores the authentication
764
778
  in the spec for a single request.
765
779
  :type _request_auth: dict, optional
780
+ :type _content_type: string, optional: force content-type for the request
766
781
  :return: Returns the result object.
767
782
  If the method is called asynchronously,
768
783
  returns the request thread.
769
784
  :rtype: tuple(V1ListConnectionsResponse, status_code(int), headers(HTTPHeaderDict))
770
785
  """
771
786
 
772
- local_var_params = locals()
787
+ _params = locals()
773
788
 
774
- all_params = [
789
+ _all_params = [
775
790
  'owner',
776
791
  'offset',
777
792
  'limit',
@@ -781,89 +796,99 @@ class ConnectionsV1Api(object):
781
796
  'mode',
782
797
  'no_page'
783
798
  ]
784
- all_params.extend(
799
+ _all_params.extend(
785
800
  [
786
801
  'async_req',
787
802
  '_return_http_data_only',
788
803
  '_preload_content',
789
804
  '_request_timeout',
790
- '_request_auth'
805
+ '_request_auth',
806
+ '_content_type',
807
+ '_headers'
791
808
  ]
792
809
  )
793
810
 
794
- for key, val in six.iteritems(local_var_params['kwargs']):
795
- if key not in all_params:
811
+ # validate the arguments
812
+ for _key, _val in _params['kwargs'].items():
813
+ if _key not in _all_params:
796
814
  raise ApiTypeError(
797
815
  "Got an unexpected keyword argument '%s'"
798
- " to method list_connections" % key
816
+ " to method list_connections" % _key
799
817
  )
800
- local_var_params[key] = val
801
- del local_var_params['kwargs']
802
- # verify the required parameter 'owner' is set
803
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
804
- local_var_params['owner'] is None): # noqa: E501
805
- raise ApiValueError("Missing the required parameter `owner` when calling `list_connections`") # noqa: E501
806
-
807
- collection_formats = {}
808
-
809
- path_params = {}
810
- if 'owner' in local_var_params:
811
- path_params['owner'] = local_var_params['owner'] # noqa: E501
812
-
813
- query_params = []
814
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
815
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
816
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
817
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
818
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
819
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
820
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
821
- query_params.append(('query', local_var_params['query'])) # noqa: E501
822
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
823
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
824
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
825
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
826
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
827
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
828
-
829
- header_params = {}
830
-
831
- form_params = []
832
- local_var_files = {}
833
-
834
- body_params = None
835
- # HTTP header `Accept`
836
- header_params['Accept'] = self.api_client.select_header_accept(
818
+ _params[_key] = _val
819
+ del _params['kwargs']
820
+
821
+ _collection_formats = {}
822
+
823
+ # process the path parameters
824
+ _path_params = {}
825
+ if _params['owner']:
826
+ _path_params['owner'] = _params['owner']
827
+
828
+
829
+ # process the query parameters
830
+ _query_params = []
831
+ if _params.get('offset') is not None: # noqa: E501
832
+ _query_params.append(('offset', _params['offset']))
833
+
834
+ if _params.get('limit') is not None: # noqa: E501
835
+ _query_params.append(('limit', _params['limit']))
836
+
837
+ if _params.get('sort') is not None: # noqa: E501
838
+ _query_params.append(('sort', _params['sort']))
839
+
840
+ if _params.get('query') is not None: # noqa: E501
841
+ _query_params.append(('query', _params['query']))
842
+
843
+ if _params.get('bookmarks') is not None: # noqa: E501
844
+ _query_params.append(('bookmarks', _params['bookmarks']))
845
+
846
+ if _params.get('mode') is not None: # noqa: E501
847
+ _query_params.append(('mode', _params['mode']))
848
+
849
+ if _params.get('no_page') is not None: # noqa: E501
850
+ _query_params.append(('no_page', _params['no_page']))
851
+
852
+ # process the header parameters
853
+ _header_params = dict(_params.get('_headers', {}))
854
+ # process the form parameters
855
+ _form_params = []
856
+ _files = {}
857
+ # process the body parameter
858
+ _body_params = None
859
+ # set the HTTP header `Accept`
860
+ _header_params['Accept'] = self.api_client.select_header_accept(
837
861
  ['application/json']) # noqa: E501
838
862
 
839
- # Authentication setting
840
- auth_settings = ['ApiKey'] # noqa: E501
863
+ # authentication setting
864
+ _auth_settings = ['ApiKey'] # noqa: E501
841
865
 
842
- response_types_map = {
843
- 200: "V1ListConnectionsResponse",
844
- 204: "object",
845
- 403: "object",
846
- 404: "object",
866
+ _response_types_map = {
867
+ '200': "V1ListConnectionsResponse",
868
+ '204': "object",
869
+ '403': "object",
870
+ '404': "object",
847
871
  }
848
872
 
849
873
  return self.api_client.call_api(
850
874
  '/api/v1/orgs/{owner}/connections', 'GET',
851
- path_params,
852
- query_params,
853
- header_params,
854
- body=body_params,
855
- post_params=form_params,
856
- files=local_var_files,
857
- response_types_map=response_types_map,
858
- auth_settings=auth_settings,
859
- async_req=local_var_params.get('async_req'),
860
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
861
- _preload_content=local_var_params.get('_preload_content', True),
862
- _request_timeout=local_var_params.get('_request_timeout'),
863
- collection_formats=collection_formats,
864
- _request_auth=local_var_params.get('_request_auth'))
865
-
866
- def patch_connection(self, owner, connection_uuid, body, **kwargs): # noqa: E501
875
+ _path_params,
876
+ _query_params,
877
+ _header_params,
878
+ body=_body_params,
879
+ post_params=_form_params,
880
+ files=_files,
881
+ response_types_map=_response_types_map,
882
+ auth_settings=_auth_settings,
883
+ async_req=_params.get('async_req'),
884
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
885
+ _preload_content=_params.get('_preload_content', True),
886
+ _request_timeout=_params.get('_request_timeout'),
887
+ collection_formats=_collection_formats,
888
+ _request_auth=_params.get('_request_auth'))
889
+
890
+ @validate_arguments
891
+ def patch_connection(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], connection_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1ConnectionResponse, Field(..., description="Connection body")], **kwargs) -> V1ConnectionResponse: # noqa: E501
867
892
  """Patch connection # noqa: E501
868
893
 
869
894
  This method makes a synchronous HTTP request by default. To make an
@@ -896,7 +921,8 @@ class ConnectionsV1Api(object):
896
921
  kwargs['_return_http_data_only'] = True
897
922
  return self.patch_connection_with_http_info(owner, connection_uuid, body, **kwargs) # noqa: E501
898
923
 
899
- def patch_connection_with_http_info(self, owner, connection_uuid, body, **kwargs): # noqa: E501
924
+ @validate_arguments
925
+ def patch_connection_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], connection_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1ConnectionResponse, Field(..., description="Connection body")], **kwargs): # noqa: E501
900
926
  """Patch connection # noqa: E501
901
927
 
902
928
  This method makes a synchronous HTTP request by default. To make an
@@ -928,104 +954,105 @@ class ConnectionsV1Api(object):
928
954
  request; this effectively ignores the authentication
929
955
  in the spec for a single request.
930
956
  :type _request_auth: dict, optional
957
+ :type _content_type: string, optional: force content-type for the request
931
958
  :return: Returns the result object.
932
959
  If the method is called asynchronously,
933
960
  returns the request thread.
934
961
  :rtype: tuple(V1ConnectionResponse, status_code(int), headers(HTTPHeaderDict))
935
962
  """
936
963
 
937
- local_var_params = locals()
964
+ _params = locals()
938
965
 
939
- all_params = [
966
+ _all_params = [
940
967
  'owner',
941
968
  'connection_uuid',
942
969
  'body'
943
970
  ]
944
- all_params.extend(
971
+ _all_params.extend(
945
972
  [
946
973
  'async_req',
947
974
  '_return_http_data_only',
948
975
  '_preload_content',
949
976
  '_request_timeout',
950
- '_request_auth'
977
+ '_request_auth',
978
+ '_content_type',
979
+ '_headers'
951
980
  ]
952
981
  )
953
982
 
954
- for key, val in six.iteritems(local_var_params['kwargs']):
955
- if key not in all_params:
983
+ # validate the arguments
984
+ for _key, _val in _params['kwargs'].items():
985
+ if _key not in _all_params:
956
986
  raise ApiTypeError(
957
987
  "Got an unexpected keyword argument '%s'"
958
- " to method patch_connection" % key
988
+ " to method patch_connection" % _key
959
989
  )
960
- local_var_params[key] = val
961
- del local_var_params['kwargs']
962
- # verify the required parameter 'owner' is set
963
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
964
- local_var_params['owner'] is None): # noqa: E501
965
- raise ApiValueError("Missing the required parameter `owner` when calling `patch_connection`") # noqa: E501
966
- # verify the required parameter 'connection_uuid' is set
967
- if self.api_client.client_side_validation and ('connection_uuid' not in local_var_params or # noqa: E501
968
- local_var_params['connection_uuid'] is None): # noqa: E501
969
- raise ApiValueError("Missing the required parameter `connection_uuid` when calling `patch_connection`") # noqa: E501
970
- # verify the required parameter 'body' is set
971
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
972
- local_var_params['body'] is None): # noqa: E501
973
- raise ApiValueError("Missing the required parameter `body` when calling `patch_connection`") # noqa: E501
974
-
975
- collection_formats = {}
976
-
977
- path_params = {}
978
- if 'owner' in local_var_params:
979
- path_params['owner'] = local_var_params['owner'] # noqa: E501
980
- if 'connection_uuid' in local_var_params:
981
- path_params['connection.uuid'] = local_var_params['connection_uuid'] # noqa: E501
982
-
983
- query_params = []
984
-
985
- header_params = {}
986
-
987
- form_params = []
988
- local_var_files = {}
989
-
990
- body_params = None
991
- if 'body' in local_var_params:
992
- body_params = local_var_params['body']
993
- # HTTP header `Accept`
994
- header_params['Accept'] = self.api_client.select_header_accept(
995
- ['application/json']) # noqa: E501
996
-
997
- # HTTP header `Content-Type`
998
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
990
+ _params[_key] = _val
991
+ del _params['kwargs']
992
+
993
+ _collection_formats = {}
994
+
995
+ # process the path parameters
996
+ _path_params = {}
997
+ if _params['owner']:
998
+ _path_params['owner'] = _params['owner']
999
+
1000
+ if _params['connection_uuid']:
1001
+ _path_params['connection.uuid'] = _params['connection_uuid']
1002
+
1003
+
1004
+ # process the query parameters
1005
+ _query_params = []
1006
+ # process the header parameters
1007
+ _header_params = dict(_params.get('_headers', {}))
1008
+ # process the form parameters
1009
+ _form_params = []
1010
+ _files = {}
1011
+ # process the body parameter
1012
+ _body_params = None
1013
+ if _params['body']:
1014
+ _body_params = _params['body']
1015
+
1016
+ # set the HTTP header `Accept`
1017
+ _header_params['Accept'] = self.api_client.select_header_accept(
999
1018
  ['application/json']) # noqa: E501
1000
1019
 
1001
- # Authentication setting
1002
- auth_settings = ['ApiKey'] # noqa: E501
1003
-
1004
- response_types_map = {
1005
- 200: "V1ConnectionResponse",
1006
- 204: "object",
1007
- 403: "object",
1008
- 404: "object",
1020
+ # set the HTTP header `Content-Type`
1021
+ _content_types_list = _params.get('_content_type',
1022
+ self.api_client.select_header_content_type(
1023
+ ['application/json']))
1024
+ if _content_types_list:
1025
+ _header_params['Content-Type'] = _content_types_list
1026
+
1027
+ # authentication setting
1028
+ _auth_settings = ['ApiKey'] # noqa: E501
1029
+
1030
+ _response_types_map = {
1031
+ '200': "V1ConnectionResponse",
1032
+ '204': "object",
1033
+ '403': "object",
1034
+ '404': "object",
1009
1035
  }
1010
1036
 
1011
1037
  return self.api_client.call_api(
1012
1038
  '/api/v1/orgs/{owner}/connections/{connection.uuid}', 'PATCH',
1013
- path_params,
1014
- query_params,
1015
- header_params,
1016
- body=body_params,
1017
- post_params=form_params,
1018
- files=local_var_files,
1019
- response_types_map=response_types_map,
1020
- auth_settings=auth_settings,
1021
- async_req=local_var_params.get('async_req'),
1022
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1023
- _preload_content=local_var_params.get('_preload_content', True),
1024
- _request_timeout=local_var_params.get('_request_timeout'),
1025
- collection_formats=collection_formats,
1026
- _request_auth=local_var_params.get('_request_auth'))
1027
-
1028
- def update_connection(self, owner, connection_uuid, body, **kwargs): # noqa: E501
1039
+ _path_params,
1040
+ _query_params,
1041
+ _header_params,
1042
+ body=_body_params,
1043
+ post_params=_form_params,
1044
+ files=_files,
1045
+ response_types_map=_response_types_map,
1046
+ auth_settings=_auth_settings,
1047
+ async_req=_params.get('async_req'),
1048
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1049
+ _preload_content=_params.get('_preload_content', True),
1050
+ _request_timeout=_params.get('_request_timeout'),
1051
+ collection_formats=_collection_formats,
1052
+ _request_auth=_params.get('_request_auth'))
1053
+
1054
+ @validate_arguments
1055
+ def update_connection(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], connection_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1ConnectionResponse, Field(..., description="Connection body")], **kwargs) -> V1ConnectionResponse: # noqa: E501
1029
1056
  """Update connection # noqa: E501
1030
1057
 
1031
1058
  This method makes a synchronous HTTP request by default. To make an
@@ -1058,7 +1085,8 @@ class ConnectionsV1Api(object):
1058
1085
  kwargs['_return_http_data_only'] = True
1059
1086
  return self.update_connection_with_http_info(owner, connection_uuid, body, **kwargs) # noqa: E501
1060
1087
 
1061
- def update_connection_with_http_info(self, owner, connection_uuid, body, **kwargs): # noqa: E501
1088
+ @validate_arguments
1089
+ def update_connection_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], connection_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1ConnectionResponse, Field(..., description="Connection body")], **kwargs): # noqa: E501
1062
1090
  """Update connection # noqa: E501
1063
1091
 
1064
1092
  This method makes a synchronous HTTP request by default. To make an
@@ -1090,99 +1118,99 @@ class ConnectionsV1Api(object):
1090
1118
  request; this effectively ignores the authentication
1091
1119
  in the spec for a single request.
1092
1120
  :type _request_auth: dict, optional
1121
+ :type _content_type: string, optional: force content-type for the request
1093
1122
  :return: Returns the result object.
1094
1123
  If the method is called asynchronously,
1095
1124
  returns the request thread.
1096
1125
  :rtype: tuple(V1ConnectionResponse, status_code(int), headers(HTTPHeaderDict))
1097
1126
  """
1098
1127
 
1099
- local_var_params = locals()
1128
+ _params = locals()
1100
1129
 
1101
- all_params = [
1130
+ _all_params = [
1102
1131
  'owner',
1103
1132
  'connection_uuid',
1104
1133
  'body'
1105
1134
  ]
1106
- all_params.extend(
1135
+ _all_params.extend(
1107
1136
  [
1108
1137
  'async_req',
1109
1138
  '_return_http_data_only',
1110
1139
  '_preload_content',
1111
1140
  '_request_timeout',
1112
- '_request_auth'
1141
+ '_request_auth',
1142
+ '_content_type',
1143
+ '_headers'
1113
1144
  ]
1114
1145
  )
1115
1146
 
1116
- for key, val in six.iteritems(local_var_params['kwargs']):
1117
- if key not in all_params:
1147
+ # validate the arguments
1148
+ for _key, _val in _params['kwargs'].items():
1149
+ if _key not in _all_params:
1118
1150
  raise ApiTypeError(
1119
1151
  "Got an unexpected keyword argument '%s'"
1120
- " to method update_connection" % key
1152
+ " to method update_connection" % _key
1121
1153
  )
1122
- local_var_params[key] = val
1123
- del local_var_params['kwargs']
1124
- # verify the required parameter 'owner' is set
1125
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1126
- local_var_params['owner'] is None): # noqa: E501
1127
- raise ApiValueError("Missing the required parameter `owner` when calling `update_connection`") # noqa: E501
1128
- # verify the required parameter 'connection_uuid' is set
1129
- if self.api_client.client_side_validation and ('connection_uuid' not in local_var_params or # noqa: E501
1130
- local_var_params['connection_uuid'] is None): # noqa: E501
1131
- raise ApiValueError("Missing the required parameter `connection_uuid` when calling `update_connection`") # noqa: E501
1132
- # verify the required parameter 'body' is set
1133
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1134
- local_var_params['body'] is None): # noqa: E501
1135
- raise ApiValueError("Missing the required parameter `body` when calling `update_connection`") # noqa: E501
1136
-
1137
- collection_formats = {}
1138
-
1139
- path_params = {}
1140
- if 'owner' in local_var_params:
1141
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1142
- if 'connection_uuid' in local_var_params:
1143
- path_params['connection.uuid'] = local_var_params['connection_uuid'] # noqa: E501
1144
-
1145
- query_params = []
1146
-
1147
- header_params = {}
1148
-
1149
- form_params = []
1150
- local_var_files = {}
1151
-
1152
- body_params = None
1153
- if 'body' in local_var_params:
1154
- body_params = local_var_params['body']
1155
- # HTTP header `Accept`
1156
- header_params['Accept'] = self.api_client.select_header_accept(
1157
- ['application/json']) # noqa: E501
1158
-
1159
- # HTTP header `Content-Type`
1160
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1154
+ _params[_key] = _val
1155
+ del _params['kwargs']
1156
+
1157
+ _collection_formats = {}
1158
+
1159
+ # process the path parameters
1160
+ _path_params = {}
1161
+ if _params['owner']:
1162
+ _path_params['owner'] = _params['owner']
1163
+
1164
+ if _params['connection_uuid']:
1165
+ _path_params['connection.uuid'] = _params['connection_uuid']
1166
+
1167
+
1168
+ # process the query parameters
1169
+ _query_params = []
1170
+ # process the header parameters
1171
+ _header_params = dict(_params.get('_headers', {}))
1172
+ # process the form parameters
1173
+ _form_params = []
1174
+ _files = {}
1175
+ # process the body parameter
1176
+ _body_params = None
1177
+ if _params['body']:
1178
+ _body_params = _params['body']
1179
+
1180
+ # set the HTTP header `Accept`
1181
+ _header_params['Accept'] = self.api_client.select_header_accept(
1161
1182
  ['application/json']) # noqa: E501
1162
1183
 
1163
- # Authentication setting
1164
- auth_settings = ['ApiKey'] # noqa: E501
1165
-
1166
- response_types_map = {
1167
- 200: "V1ConnectionResponse",
1168
- 204: "object",
1169
- 403: "object",
1170
- 404: "object",
1184
+ # set the HTTP header `Content-Type`
1185
+ _content_types_list = _params.get('_content_type',
1186
+ self.api_client.select_header_content_type(
1187
+ ['application/json']))
1188
+ if _content_types_list:
1189
+ _header_params['Content-Type'] = _content_types_list
1190
+
1191
+ # authentication setting
1192
+ _auth_settings = ['ApiKey'] # noqa: E501
1193
+
1194
+ _response_types_map = {
1195
+ '200': "V1ConnectionResponse",
1196
+ '204': "object",
1197
+ '403': "object",
1198
+ '404': "object",
1171
1199
  }
1172
1200
 
1173
1201
  return self.api_client.call_api(
1174
1202
  '/api/v1/orgs/{owner}/connections/{connection.uuid}', 'PUT',
1175
- path_params,
1176
- query_params,
1177
- header_params,
1178
- body=body_params,
1179
- post_params=form_params,
1180
- files=local_var_files,
1181
- response_types_map=response_types_map,
1182
- auth_settings=auth_settings,
1183
- async_req=local_var_params.get('async_req'),
1184
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1185
- _preload_content=local_var_params.get('_preload_content', True),
1186
- _request_timeout=local_var_params.get('_request_timeout'),
1187
- collection_formats=collection_formats,
1188
- _request_auth=local_var_params.get('_request_auth'))
1203
+ _path_params,
1204
+ _query_params,
1205
+ _header_params,
1206
+ body=_body_params,
1207
+ post_params=_form_params,
1208
+ files=_files,
1209
+ response_types_map=_response_types_map,
1210
+ auth_settings=_auth_settings,
1211
+ async_req=_params.get('async_req'),
1212
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1213
+ _preload_content=_params.get('_preload_content', True),
1214
+ _request_timeout=_params.get('_request_timeout'),
1215
+ collection_formats=_collection_formats,
1216
+ _request_auth=_params.get('_request_auth'))