polyaxon-sdk 1.18.0rc7__py2.py3-none-any.whl → 2.1.6__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. polyaxon_sdk/__init__.py +26 -34
  2. polyaxon_sdk/api/__init__.py +2 -18
  3. polyaxon_sdk/api/agents_v1_api.py +2314 -1108
  4. polyaxon_sdk/api/artifacts_stores_v1_api.py +90 -97
  5. polyaxon_sdk/api/auth_v1_api.py +398 -359
  6. polyaxon_sdk/api/connections_v1_api.py +516 -488
  7. polyaxon_sdk/api/dashboards_v1_api.py +516 -488
  8. polyaxon_sdk/api/organizations_v1_api.py +3107 -2327
  9. polyaxon_sdk/api/policies_v1_api.py +1232 -0
  10. polyaxon_sdk/api/presets_v1_api.py +528 -498
  11. polyaxon_sdk/api/project_dashboards_v1_api.py +596 -590
  12. polyaxon_sdk/api/project_searches_v1_api.py +596 -590
  13. polyaxon_sdk/api/projects_v1_api.py +2248 -2167
  14. polyaxon_sdk/api/queues_v1_api.py +701 -670
  15. polyaxon_sdk/api/runs_v1_api.py +5136 -4477
  16. polyaxon_sdk/api/schemas_v1_api.py +64 -70
  17. polyaxon_sdk/api/searches_v1_api.py +516 -488
  18. polyaxon_sdk/api/service_accounts_v1_api.py +956 -920
  19. polyaxon_sdk/api/tags_v1_api.py +587 -552
  20. polyaxon_sdk/api/teams_v1_api.py +953 -916
  21. polyaxon_sdk/api/users_v1_api.py +730 -646
  22. polyaxon_sdk/api/versions_v1_api.py +206 -190
  23. polyaxon_sdk/api_client.py +145 -101
  24. polyaxon_sdk/configuration.py +46 -79
  25. polyaxon_sdk/exceptions.py +6 -23
  26. polyaxon_sdk/models/__init__.py +24 -32
  27. polyaxon_sdk/models/agent_state_response_agent_state.py +71 -364
  28. polyaxon_sdk/models/mx_job_mode.py +12 -105
  29. polyaxon_sdk/models/protobuf_any.py +65 -164
  30. polyaxon_sdk/models/protobuf_null_value.py +11 -104
  31. polyaxon_sdk/models/runtime_error.py +67 -208
  32. polyaxon_sdk/models/search_view.py +18 -111
  33. polyaxon_sdk/models/v1_activity.py +68 -313
  34. polyaxon_sdk/models/v1_agent.py +93 -495
  35. polyaxon_sdk/models/v1_agent_reconcile_body_request.py +75 -0
  36. polyaxon_sdk/models/v1_agent_state_response.py +64 -208
  37. polyaxon_sdk/models/v1_agent_status_body_request.py +61 -182
  38. polyaxon_sdk/models/v1_analytics_spec.py +59 -208
  39. polyaxon_sdk/models/v1_artifact_kind.py +42 -134
  40. polyaxon_sdk/models/v1_artifact_tree.py +57 -182
  41. polyaxon_sdk/models/v1_artifacts_mount.py +55 -156
  42. polyaxon_sdk/models/v1_artifacts_type.py +57 -182
  43. polyaxon_sdk/models/v1_auth.py +54 -131
  44. polyaxon_sdk/models/v1_auth_type.py +55 -156
  45. polyaxon_sdk/models/v1_average_stopping_policy.py +54 -131
  46. polyaxon_sdk/models/v1_bayes.py +79 -364
  47. polyaxon_sdk/models/v1_bucket_connection.py +54 -131
  48. polyaxon_sdk/models/v1_build.py +82 -312
  49. polyaxon_sdk/models/v1_cache.py +59 -208
  50. polyaxon_sdk/models/v1_claim_connection.py +59 -208
  51. polyaxon_sdk/models/v1_clean_pod_policy.py +13 -106
  52. polyaxon_sdk/models/v1_cloning.py +58 -182
  53. polyaxon_sdk/models/v1_cloning_kind.py +13 -106
  54. polyaxon_sdk/models/v1_compatibility.py +72 -208
  55. polyaxon_sdk/models/v1_compiled_operation.py +171 -783
  56. polyaxon_sdk/models/v1_component.py +132 -572
  57. polyaxon_sdk/models/v1_connection_kind.py +53 -146
  58. polyaxon_sdk/models/v1_connection_resource.py +77 -0
  59. polyaxon_sdk/models/v1_connection_response.py +71 -339
  60. polyaxon_sdk/models/v1_connection_schema.py +81 -234
  61. polyaxon_sdk/models/v1_connection_type.py +77 -338
  62. polyaxon_sdk/models/v1_credentials.py +55 -156
  63. polyaxon_sdk/models/v1_cron_schedule.py +64 -261
  64. polyaxon_sdk/models/v1_dag.py +87 -314
  65. polyaxon_sdk/models/v1_dag_ref.py +55 -156
  66. polyaxon_sdk/models/v1_dashboard.py +74 -339
  67. polyaxon_sdk/models/v1_dashboard_spec.py +70 -131
  68. polyaxon_sdk/models/v1_dask_job.py +87 -0
  69. polyaxon_sdk/models/v1_dask_replica.py +95 -0
  70. polyaxon_sdk/models/v1_date_time_schedule.py +56 -157
  71. polyaxon_sdk/models/v1_diff_stopping_policy.py +61 -236
  72. polyaxon_sdk/models/v1_dockerfile_type.py +79 -468
  73. polyaxon_sdk/models/v1_early_stopping.py +81 -234
  74. polyaxon_sdk/models/v1_entities_tags.py +55 -156
  75. polyaxon_sdk/models/v1_entities_transfer.py +55 -156
  76. polyaxon_sdk/models/v1_entity_notification_body.py +69 -286
  77. polyaxon_sdk/models/v1_entity_stage_body_request.py +65 -234
  78. polyaxon_sdk/models/v1_entity_status_body_request.py +65 -234
  79. polyaxon_sdk/models/v1_environment.py +87 -588
  80. polyaxon_sdk/models/v1_event.py +130 -499
  81. polyaxon_sdk/models/v1_event_artifact.py +56 -156
  82. polyaxon_sdk/models/v1_event_audio.py +61 -240
  83. polyaxon_sdk/models/v1_event_chart.py +56 -156
  84. polyaxon_sdk/models/v1_event_chart_kind.py +13 -106
  85. polyaxon_sdk/models/v1_event_confusion_matrix.py +57 -182
  86. polyaxon_sdk/models/v1_event_curve.py +60 -208
  87. polyaxon_sdk/models/v1_event_curve_kind.py +13 -106
  88. polyaxon_sdk/models/v1_event_dataframe.py +55 -156
  89. polyaxon_sdk/models/v1_event_histogram.py +55 -156
  90. polyaxon_sdk/models/v1_event_image.py +59 -212
  91. polyaxon_sdk/models/v1_event_kind.py +42 -135
  92. polyaxon_sdk/models/v1_event_model.py +57 -182
  93. polyaxon_sdk/models/v1_event_span.py +110 -0
  94. polyaxon_sdk/models/v1_event_span_kind.py +39 -0
  95. polyaxon_sdk/models/v1_event_trigger.py +56 -156
  96. polyaxon_sdk/models/v1_event_type.py +56 -156
  97. polyaxon_sdk/models/v1_event_video.py +61 -238
  98. polyaxon_sdk/models/v1_events_response.py +54 -131
  99. polyaxon_sdk/models/v1_failure_early_stopping.py +55 -158
  100. polyaxon_sdk/models/v1_file_type.py +59 -208
  101. polyaxon_sdk/models/v1_gcs_type.py +55 -156
  102. polyaxon_sdk/models/v1_git_connection.py +57 -182
  103. polyaxon_sdk/models/v1_git_type.py +57 -182
  104. polyaxon_sdk/models/v1_grid_search.py +63 -260
  105. polyaxon_sdk/models/v1_hook.py +78 -312
  106. polyaxon_sdk/models/v1_host_connection.py +55 -156
  107. polyaxon_sdk/models/v1_host_path_connection.py +59 -208
  108. polyaxon_sdk/models/v1_hp_choice.py +55 -156
  109. polyaxon_sdk/models/v1_hp_date_range.py +55 -156
  110. polyaxon_sdk/models/v1_hp_date_time_range.py +55 -156
  111. polyaxon_sdk/models/v1_hp_geom_space.py +55 -156
  112. polyaxon_sdk/models/v1_hp_lin_space.py +55 -156
  113. polyaxon_sdk/models/v1_hp_log_normal.py +55 -156
  114. polyaxon_sdk/models/v1_hp_log_space.py +55 -156
  115. polyaxon_sdk/models/v1_hp_log_uniform.py +55 -156
  116. polyaxon_sdk/models/v1_hp_normal.py +55 -156
  117. polyaxon_sdk/models/v1_hp_p_choice.py +55 -156
  118. polyaxon_sdk/models/v1_hp_params.py +150 -523
  119. polyaxon_sdk/models/v1_hp_q_log_normal.py +55 -156
  120. polyaxon_sdk/models/v1_hp_q_log_uniform.py +55 -156
  121. polyaxon_sdk/models/v1_hp_q_normal.py +55 -156
  122. polyaxon_sdk/models/v1_hp_q_uniform.py +55 -156
  123. polyaxon_sdk/models/v1_hp_range.py +55 -156
  124. polyaxon_sdk/models/v1_hp_uniform.py +55 -156
  125. polyaxon_sdk/models/v1_hub_ref.py +55 -156
  126. polyaxon_sdk/models/v1_hyperband.py +85 -390
  127. polyaxon_sdk/models/v1_hyperopt.py +80 -364
  128. polyaxon_sdk/models/v1_hyperopt_algorithms.py +13 -106
  129. polyaxon_sdk/models/v1_init.py +95 -416
  130. polyaxon_sdk/models/v1_installation.py +67 -260
  131. polyaxon_sdk/models/v1_interval_schedule.py +64 -261
  132. polyaxon_sdk/models/v1_io.py +83 -442
  133. polyaxon_sdk/models/v1_iterative.py +69 -286
  134. polyaxon_sdk/models/v1_job.py +77 -288
  135. polyaxon_sdk/models/v1_join.py +71 -260
  136. polyaxon_sdk/models/v1_join_param.py +61 -234
  137. polyaxon_sdk/models/v1_kf_replica.py +77 -286
  138. polyaxon_sdk/models/v1_list_activities_response.py +67 -208
  139. polyaxon_sdk/models/v1_list_agents_response.py +67 -208
  140. polyaxon_sdk/models/v1_list_bookmarks_response.py +59 -208
  141. polyaxon_sdk/models/v1_list_connections_response.py +67 -208
  142. polyaxon_sdk/models/v1_list_dashboards_response.py +67 -208
  143. polyaxon_sdk/models/v1_list_organization_members_response.py +67 -208
  144. polyaxon_sdk/models/v1_list_organizations_response.py +67 -208
  145. polyaxon_sdk/models/v1_list_policies_response.py +85 -0
  146. polyaxon_sdk/models/v1_list_presets_response.py +67 -208
  147. polyaxon_sdk/models/v1_list_project_versions_response.py +67 -208
  148. polyaxon_sdk/models/v1_list_projects_response.py +67 -208
  149. polyaxon_sdk/models/v1_list_queues_response.py +67 -208
  150. polyaxon_sdk/models/v1_list_run_artifacts_response.py +67 -208
  151. polyaxon_sdk/models/v1_list_run_connections_response.py +67 -208
  152. polyaxon_sdk/models/v1_list_run_edges_response.py +67 -208
  153. polyaxon_sdk/models/v1_list_runs_response.py +67 -208
  154. polyaxon_sdk/models/v1_list_searches_response.py +67 -208
  155. polyaxon_sdk/models/v1_list_service_accounts_response.py +67 -208
  156. polyaxon_sdk/models/v1_list_tags_response.py +67 -208
  157. polyaxon_sdk/models/v1_list_team_members_response.py +67 -208
  158. polyaxon_sdk/models/v1_list_teams_response.py +67 -208
  159. polyaxon_sdk/models/v1_list_token_response.py +67 -208
  160. polyaxon_sdk/models/v1_log.py +62 -235
  161. polyaxon_sdk/models/v1_log_handler.py +55 -156
  162. polyaxon_sdk/models/v1_logs.py +68 -209
  163. polyaxon_sdk/models/v1_managed_by.py +36 -0
  164. polyaxon_sdk/models/v1_mapping.py +59 -208
  165. polyaxon_sdk/models/v1_matrix.py +93 -286
  166. polyaxon_sdk/models/v1_matrix_kind.py +17 -110
  167. polyaxon_sdk/models/v1_median_stopping_policy.py +59 -210
  168. polyaxon_sdk/models/v1_metric_early_stopping.py +62 -238
  169. polyaxon_sdk/models/v1_mpi_job.py +75 -312
  170. polyaxon_sdk/models/v1_multi_events_response.py +71 -0
  171. polyaxon_sdk/models/v1_mx_job.py +96 -364
  172. polyaxon_sdk/models/v1_notification.py +56 -156
  173. polyaxon_sdk/models/v1_operation.py +178 -939
  174. polyaxon_sdk/models/v1_operation_body.py +69 -286
  175. polyaxon_sdk/models/v1_optimization.py +12 -105
  176. polyaxon_sdk/models/v1_optimization_metric.py +56 -156
  177. polyaxon_sdk/models/v1_optimization_resource.py +56 -156
  178. polyaxon_sdk/models/v1_organization.py +84 -495
  179. polyaxon_sdk/models/v1_organization_member.py +64 -261
  180. polyaxon_sdk/models/v1_paddle_elastic_polic.py +77 -0
  181. polyaxon_sdk/models/v1_paddle_job.py +97 -0
  182. polyaxon_sdk/models/v1_param.py +63 -260
  183. polyaxon_sdk/models/v1_password_change.py +57 -182
  184. polyaxon_sdk/models/v1_patch_strategy.py +14 -107
  185. polyaxon_sdk/models/v1_path_ref.py +55 -156
  186. polyaxon_sdk/models/v1_pipeline.py +58 -182
  187. polyaxon_sdk/models/v1_pipeline_kind.py +12 -105
  188. polyaxon_sdk/models/v1_plugins.py +89 -442
  189. polyaxon_sdk/models/v1_policy.py +119 -0
  190. polyaxon_sdk/models/v1_polyaxon_init_container.py +59 -208
  191. polyaxon_sdk/models/v1_polyaxon_sidecar_container.py +67 -286
  192. polyaxon_sdk/models/v1_preset.py +70 -339
  193. polyaxon_sdk/models/v1_project.py +90 -495
  194. polyaxon_sdk/models/v1_project_settings.py +81 -338
  195. polyaxon_sdk/models/v1_project_version.py +102 -601
  196. polyaxon_sdk/models/v1_project_version_kind.py +13 -106
  197. polyaxon_sdk/models/v1_pytorch_elastic_policy.py +91 -0
  198. polyaxon_sdk/models/v1_pytorch_job.py +81 -234
  199. polyaxon_sdk/models/v1_queue.py +76 -417
  200. polyaxon_sdk/models/v1_random_search.py +63 -260
  201. polyaxon_sdk/models/v1_ray_job.py +94 -0
  202. polyaxon_sdk/models/v1_ray_replica.py +103 -0
  203. polyaxon_sdk/models/v1_reference.py +75 -208
  204. polyaxon_sdk/models/v1_resource_type.py +12 -105
  205. polyaxon_sdk/models/v1_run.py +158 -1043
  206. polyaxon_sdk/models/v1_run_artifact.py +70 -338
  207. polyaxon_sdk/models/v1_run_artifacts.py +62 -131
  208. polyaxon_sdk/models/v1_run_connection.py +57 -182
  209. polyaxon_sdk/models/v1_run_edge.py +70 -234
  210. polyaxon_sdk/models/v1_run_edge_kind.py +19 -111
  211. polyaxon_sdk/models/v1_run_edge_lineage.py +75 -0
  212. polyaxon_sdk/models/v1_run_edges_graph.py +79 -0
  213. polyaxon_sdk/models/v1_run_kind.py +28 -122
  214. polyaxon_sdk/models/v1_run_pending.py +14 -107
  215. polyaxon_sdk/models/v1_run_reference_catalog.py +59 -182
  216. polyaxon_sdk/models/v1_run_resources.py +61 -234
  217. polyaxon_sdk/models/v1_run_schema.py +120 -419
  218. polyaxon_sdk/models/v1_run_settings.py +94 -338
  219. polyaxon_sdk/models/v1_s3_type.py +55 -156
  220. polyaxon_sdk/models/v1_schedule.py +69 -182
  221. polyaxon_sdk/models/v1_schedule_kind.py +13 -106
  222. polyaxon_sdk/models/v1_scheduling_policy.py +61 -182
  223. polyaxon_sdk/models/v1_schemas.py +192 -731
  224. polyaxon_sdk/models/v1_search.py +77 -365
  225. polyaxon_sdk/models/v1_search_spec.py +87 -468
  226. polyaxon_sdk/models/v1_section_spec.py +75 -286
  227. polyaxon_sdk/models/v1_service.py +85 -396
  228. polyaxon_sdk/models/v1_service_account.py +70 -339
  229. polyaxon_sdk/models/v1_settings_catalog.py +57 -156
  230. polyaxon_sdk/models/v1_stage.py +66 -182
  231. polyaxon_sdk/models/v1_stage_condition.py +67 -261
  232. polyaxon_sdk/models/v1_stages.py +14 -107
  233. polyaxon_sdk/models/v1_status.py +68 -208
  234. polyaxon_sdk/models/v1_status_condition.py +67 -261
  235. polyaxon_sdk/models/v1_statuses.py +30 -123
  236. polyaxon_sdk/models/v1_tag.py +63 -260
  237. polyaxon_sdk/models/v1_team.py +72 -313
  238. polyaxon_sdk/models/v1_team_member.py +64 -261
  239. polyaxon_sdk/models/v1_team_settings.py +79 -182
  240. polyaxon_sdk/models/v1_template.py +57 -182
  241. polyaxon_sdk/models/v1_tensorboard_type.py +61 -234
  242. polyaxon_sdk/models/v1_termination.py +57 -182
  243. polyaxon_sdk/models/v1_tf_job.py +87 -286
  244. polyaxon_sdk/models/v1_token.py +72 -365
  245. polyaxon_sdk/models/v1_trial_start.py +63 -260
  246. polyaxon_sdk/models/v1_trigger_policy.py +16 -109
  247. polyaxon_sdk/models/v1_truncation_stopping_policy.py +63 -264
  248. polyaxon_sdk/models/v1_tuner.py +69 -208
  249. polyaxon_sdk/models/v1_uri_type.py +57 -182
  250. polyaxon_sdk/models/v1_url_ref.py +55 -156
  251. polyaxon_sdk/models/v1_user.py +63 -260
  252. polyaxon_sdk/models/v1_user_access.py +77 -0
  253. polyaxon_sdk/models/v1_user_email.py +54 -131
  254. polyaxon_sdk/models/v1_user_singup.py +61 -234
  255. polyaxon_sdk/models/v1_uuids.py +54 -131
  256. polyaxon_sdk/models/v1_validation.py +109 -0
  257. polyaxon_sdk/models/v1_version.py +55 -156
  258. polyaxon_sdk/models/v1_wasb_type.py +57 -182
  259. polyaxon_sdk/models/v1_xg_boost_job.py +73 -234
  260. polyaxon_sdk/rest.py +23 -41
  261. {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/METADATA +6 -4
  262. polyaxon_sdk-2.1.6.dist-info/RECORD +264 -0
  263. {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/WHEEL +1 -1
  264. polyaxon_sdk/models/mpi_job_implementation.py +0 -128
  265. polyaxon_sdk/models/spark_deploy_mode.py +0 -129
  266. polyaxon_sdk/models/v1_dask.py +0 -436
  267. polyaxon_sdk/models/v1_flink.py +0 -174
  268. polyaxon_sdk/models/v1_k8s_resource_schema.py +0 -226
  269. polyaxon_sdk/models/v1_k8s_resource_type.py +0 -200
  270. polyaxon_sdk/models/v1_project_user_access.py +0 -200
  271. polyaxon_sdk/models/v1_ray.py +0 -174
  272. polyaxon_sdk/models/v1_spark.py +0 -558
  273. polyaxon_sdk/models/v1_spark_replica.py +0 -252
  274. polyaxon_sdk/models/v1_spark_type.py +0 -130
  275. polyaxon_sdk-1.18.0rc7.dist-info/RECORD +0 -255
  276. {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/top_level.txt +0 -0
@@ -1,38 +1,31 @@
1
- #!/usr/bin/python
2
- #
3
- # Copyright 2018-2022 Polyaxon, Inc.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
1
  # coding: utf-8
18
2
 
19
3
  """
20
4
  Polyaxon SDKs and REST API specification.
21
5
 
22
- Polyaxon SDKs and REST API specification. # noqa: E501
6
+ # noqa: E501
23
7
 
24
- The version of the OpenAPI document: 1.18.0
8
+ The version of the OpenAPI document: 2.1.6
25
9
  Contact: contact@polyaxon.com
26
- Generated by: https://openapi-generator.tech
27
- """
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
28
11
 
12
+ Do not edit the class manually.
13
+ """
29
14
 
30
- from __future__ import absolute_import
31
15
 
32
16
  import re # noqa: F401
33
17
 
34
- # python 2 and python 3 compatibility library
35
- import six
18
+ from pydantic import validate_arguments, ValidationError
19
+ from typing_extensions import Annotated
20
+
21
+ from pydantic import Field, StrictBool, StrictInt, StrictStr
22
+
23
+ from typing import Optional
24
+
25
+ from polyaxon_sdk.models.v1_list_team_members_response import V1ListTeamMembersResponse
26
+ from polyaxon_sdk.models.v1_list_teams_response import V1ListTeamsResponse
27
+ from polyaxon_sdk.models.v1_team import V1Team
28
+ from polyaxon_sdk.models.v1_team_member import V1TeamMember
36
29
 
37
30
  from polyaxon_sdk.api_client import ApiClient
38
31
  from polyaxon_sdk.exceptions import ( # noqa: F401
@@ -50,10 +43,11 @@ class TeamsV1Api(object):
50
43
 
51
44
  def __init__(self, api_client=None):
52
45
  if api_client is None:
53
- api_client = ApiClient()
46
+ api_client = ApiClient.get_default()
54
47
  self.api_client = api_client
55
48
 
56
- def create_team(self, owner, body, **kwargs): # noqa: E501
49
+ @validate_arguments
50
+ def create_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs) -> V1Team: # noqa: E501
57
51
  """Create team # noqa: E501
58
52
 
59
53
  This method makes a synchronous HTTP request by default. To make an
@@ -84,7 +78,8 @@ class TeamsV1Api(object):
84
78
  kwargs['_return_http_data_only'] = True
85
79
  return self.create_team_with_http_info(owner, body, **kwargs) # noqa: E501
86
80
 
87
- def create_team_with_http_info(self, owner, body, **kwargs): # noqa: E501
81
+ @validate_arguments
82
+ def create_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs): # noqa: E501
88
83
  """Create team # noqa: E501
89
84
 
90
85
  This method makes a synchronous HTTP request by default. To make an
@@ -114,97 +109,101 @@ class TeamsV1Api(object):
114
109
  request; this effectively ignores the authentication
115
110
  in the spec for a single request.
116
111
  :type _request_auth: dict, optional
112
+ :type _content_type: string, optional: force content-type for the request
117
113
  :return: Returns the result object.
118
114
  If the method is called asynchronously,
119
115
  returns the request thread.
120
116
  :rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
121
117
  """
122
118
 
123
- local_var_params = locals()
119
+ _params = locals()
124
120
 
125
- all_params = [
121
+ _all_params = [
126
122
  'owner',
127
123
  'body'
128
124
  ]
129
- all_params.extend(
125
+ _all_params.extend(
130
126
  [
131
127
  'async_req',
132
128
  '_return_http_data_only',
133
129
  '_preload_content',
134
130
  '_request_timeout',
135
- '_request_auth'
131
+ '_request_auth',
132
+ '_content_type',
133
+ '_headers'
136
134
  ]
137
135
  )
138
136
 
139
- for key, val in six.iteritems(local_var_params['kwargs']):
140
- if key not in all_params:
137
+ # validate the arguments
138
+ for _key, _val in _params['kwargs'].items():
139
+ if _key not in _all_params:
141
140
  raise ApiTypeError(
142
141
  "Got an unexpected keyword argument '%s'"
143
- " to method create_team" % key
142
+ " to method create_team" % _key
144
143
  )
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_team`") # 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_team`") # 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(
174
- ['application/json']) # noqa: E501
175
-
176
- # HTTP header `Content-Type`
177
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
144
+ _params[_key] = _val
145
+ del _params['kwargs']
146
+
147
+ _collection_formats = {}
148
+
149
+ # process the path parameters
150
+ _path_params = {}
151
+ if _params['owner']:
152
+ _path_params['owner'] = _params['owner']
153
+
154
+
155
+ # process the query parameters
156
+ _query_params = []
157
+ # process the header parameters
158
+ _header_params = dict(_params.get('_headers', {}))
159
+ # process the form parameters
160
+ _form_params = []
161
+ _files = {}
162
+ # process the body parameter
163
+ _body_params = None
164
+ if _params['body']:
165
+ _body_params = _params['body']
166
+
167
+ # set the HTTP header `Accept`
168
+ _header_params['Accept'] = self.api_client.select_header_accept(
178
169
  ['application/json']) # noqa: E501
179
170
 
180
- # Authentication setting
181
- auth_settings = ['ApiKey'] # noqa: E501
182
-
183
- response_types_map = {
184
- 200: "V1Team",
185
- 204: "object",
186
- 403: "object",
187
- 404: "object",
171
+ # set the HTTP header `Content-Type`
172
+ _content_types_list = _params.get('_content_type',
173
+ self.api_client.select_header_content_type(
174
+ ['application/json']))
175
+ if _content_types_list:
176
+ _header_params['Content-Type'] = _content_types_list
177
+
178
+ # authentication setting
179
+ _auth_settings = ['ApiKey'] # noqa: E501
180
+
181
+ _response_types_map = {
182
+ '200': "V1Team",
183
+ '204': "object",
184
+ '403': "object",
185
+ '404': "object",
188
186
  }
189
187
 
190
188
  return self.api_client.call_api(
191
189
  '/api/v1/orgs/{owner}/teams', '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 create_team_member(self, owner, team, body, **kwargs): # noqa: E501
190
+ _path_params,
191
+ _query_params,
192
+ _header_params,
193
+ body=_body_params,
194
+ post_params=_form_params,
195
+ files=_files,
196
+ response_types_map=_response_types_map,
197
+ auth_settings=_auth_settings,
198
+ async_req=_params.get('async_req'),
199
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
200
+ _preload_content=_params.get('_preload_content', True),
201
+ _request_timeout=_params.get('_request_timeout'),
202
+ collection_formats=_collection_formats,
203
+ _request_auth=_params.get('_request_auth'))
204
+
205
+ @validate_arguments
206
+ def create_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs) -> V1TeamMember: # noqa: E501
208
207
  """Create team member # noqa: E501
209
208
 
210
209
  This method makes a synchronous HTTP request by default. To make an
@@ -237,7 +236,8 @@ class TeamsV1Api(object):
237
236
  kwargs['_return_http_data_only'] = True
238
237
  return self.create_team_member_with_http_info(owner, team, body, **kwargs) # noqa: E501
239
238
 
240
- def create_team_member_with_http_info(self, owner, team, body, **kwargs): # noqa: E501
239
+ @validate_arguments
240
+ def create_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs): # noqa: E501
241
241
  """Create team member # noqa: E501
242
242
 
243
243
  This method makes a synchronous HTTP request by default. To make an
@@ -269,104 +269,105 @@ class TeamsV1Api(object):
269
269
  request; this effectively ignores the authentication
270
270
  in the spec for a single request.
271
271
  :type _request_auth: dict, optional
272
+ :type _content_type: string, optional: force content-type for the request
272
273
  :return: Returns the result object.
273
274
  If the method is called asynchronously,
274
275
  returns the request thread.
275
276
  :rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
276
277
  """
277
278
 
278
- local_var_params = locals()
279
+ _params = locals()
279
280
 
280
- all_params = [
281
+ _all_params = [
281
282
  'owner',
282
283
  'team',
283
284
  'body'
284
285
  ]
285
- all_params.extend(
286
+ _all_params.extend(
286
287
  [
287
288
  'async_req',
288
289
  '_return_http_data_only',
289
290
  '_preload_content',
290
291
  '_request_timeout',
291
- '_request_auth'
292
+ '_request_auth',
293
+ '_content_type',
294
+ '_headers'
292
295
  ]
293
296
  )
294
297
 
295
- for key, val in six.iteritems(local_var_params['kwargs']):
296
- if key not in all_params:
298
+ # validate the arguments
299
+ for _key, _val in _params['kwargs'].items():
300
+ if _key not in _all_params:
297
301
  raise ApiTypeError(
298
302
  "Got an unexpected keyword argument '%s'"
299
- " to method create_team_member" % key
303
+ " to method create_team_member" % _key
300
304
  )
301
- local_var_params[key] = val
302
- del local_var_params['kwargs']
303
- # verify the required parameter 'owner' is set
304
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
305
- local_var_params['owner'] is None): # noqa: E501
306
- raise ApiValueError("Missing the required parameter `owner` when calling `create_team_member`") # noqa: E501
307
- # verify the required parameter 'team' is set
308
- if self.api_client.client_side_validation and ('team' not in local_var_params or # noqa: E501
309
- local_var_params['team'] is None): # noqa: E501
310
- raise ApiValueError("Missing the required parameter `team` when calling `create_team_member`") # noqa: E501
311
- # verify the required parameter 'body' is set
312
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
313
- local_var_params['body'] is None): # noqa: E501
314
- raise ApiValueError("Missing the required parameter `body` when calling `create_team_member`") # noqa: E501
315
-
316
- collection_formats = {}
317
-
318
- path_params = {}
319
- if 'owner' in local_var_params:
320
- path_params['owner'] = local_var_params['owner'] # noqa: E501
321
- if 'team' in local_var_params:
322
- path_params['team'] = local_var_params['team'] # noqa: E501
323
-
324
- query_params = []
325
-
326
- header_params = {}
327
-
328
- form_params = []
329
- local_var_files = {}
330
-
331
- body_params = None
332
- if 'body' in local_var_params:
333
- body_params = local_var_params['body']
334
- # HTTP header `Accept`
335
- header_params['Accept'] = self.api_client.select_header_accept(
336
- ['application/json']) # noqa: E501
337
-
338
- # HTTP header `Content-Type`
339
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
305
+ _params[_key] = _val
306
+ del _params['kwargs']
307
+
308
+ _collection_formats = {}
309
+
310
+ # process the path parameters
311
+ _path_params = {}
312
+ if _params['owner']:
313
+ _path_params['owner'] = _params['owner']
314
+
315
+ if _params['team']:
316
+ _path_params['team'] = _params['team']
317
+
318
+
319
+ # process the query parameters
320
+ _query_params = []
321
+ # process the header parameters
322
+ _header_params = dict(_params.get('_headers', {}))
323
+ # process the form parameters
324
+ _form_params = []
325
+ _files = {}
326
+ # process the body parameter
327
+ _body_params = None
328
+ if _params['body']:
329
+ _body_params = _params['body']
330
+
331
+ # set the HTTP header `Accept`
332
+ _header_params['Accept'] = self.api_client.select_header_accept(
340
333
  ['application/json']) # noqa: E501
341
334
 
342
- # Authentication setting
343
- auth_settings = ['ApiKey'] # noqa: E501
344
-
345
- response_types_map = {
346
- 200: "V1TeamMember",
347
- 204: "object",
348
- 403: "object",
349
- 404: "object",
335
+ # set the HTTP header `Content-Type`
336
+ _content_types_list = _params.get('_content_type',
337
+ self.api_client.select_header_content_type(
338
+ ['application/json']))
339
+ if _content_types_list:
340
+ _header_params['Content-Type'] = _content_types_list
341
+
342
+ # authentication setting
343
+ _auth_settings = ['ApiKey'] # noqa: E501
344
+
345
+ _response_types_map = {
346
+ '200': "V1TeamMember",
347
+ '204': "object",
348
+ '403': "object",
349
+ '404': "object",
350
350
  }
351
351
 
352
352
  return self.api_client.call_api(
353
353
  '/api/v1/orgs/{owner}/teams/{team}/members', 'POST',
354
- path_params,
355
- query_params,
356
- header_params,
357
- body=body_params,
358
- post_params=form_params,
359
- files=local_var_files,
360
- response_types_map=response_types_map,
361
- auth_settings=auth_settings,
362
- async_req=local_var_params.get('async_req'),
363
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
364
- _preload_content=local_var_params.get('_preload_content', True),
365
- _request_timeout=local_var_params.get('_request_timeout'),
366
- collection_formats=collection_formats,
367
- _request_auth=local_var_params.get('_request_auth'))
368
-
369
- def delete_team(self, owner, name, **kwargs): # noqa: E501
354
+ _path_params,
355
+ _query_params,
356
+ _header_params,
357
+ body=_body_params,
358
+ post_params=_form_params,
359
+ files=_files,
360
+ response_types_map=_response_types_map,
361
+ auth_settings=_auth_settings,
362
+ async_req=_params.get('async_req'),
363
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
364
+ _preload_content=_params.get('_preload_content', True),
365
+ _request_timeout=_params.get('_request_timeout'),
366
+ collection_formats=_collection_formats,
367
+ _request_auth=_params.get('_request_auth'))
368
+
369
+ @validate_arguments
370
+ def delete_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namesapce")], **kwargs) -> None: # noqa: E501
370
371
  """Delete team # noqa: E501
371
372
 
372
373
  This method makes a synchronous HTTP request by default. To make an
@@ -397,7 +398,8 @@ class TeamsV1Api(object):
397
398
  kwargs['_return_http_data_only'] = True
398
399
  return self.delete_team_with_http_info(owner, name, **kwargs) # noqa: E501
399
400
 
400
- def delete_team_with_http_info(self, owner, name, **kwargs): # noqa: E501
401
+ @validate_arguments
402
+ def delete_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namesapce")], **kwargs): # noqa: E501
401
403
  """Delete team # noqa: E501
402
404
 
403
405
  This method makes a synchronous HTTP request by default. To make an
@@ -427,88 +429,89 @@ class TeamsV1Api(object):
427
429
  request; this effectively ignores the authentication
428
430
  in the spec for a single request.
429
431
  :type _request_auth: dict, optional
432
+ :type _content_type: string, optional: force content-type for the request
430
433
  :return: Returns the result object.
431
434
  If the method is called asynchronously,
432
435
  returns the request thread.
433
436
  :rtype: None
434
437
  """
435
438
 
436
- local_var_params = locals()
439
+ _params = locals()
437
440
 
438
- all_params = [
441
+ _all_params = [
439
442
  'owner',
440
443
  'name'
441
444
  ]
442
- all_params.extend(
445
+ _all_params.extend(
443
446
  [
444
447
  'async_req',
445
448
  '_return_http_data_only',
446
449
  '_preload_content',
447
450
  '_request_timeout',
448
- '_request_auth'
451
+ '_request_auth',
452
+ '_content_type',
453
+ '_headers'
449
454
  ]
450
455
  )
451
456
 
452
- for key, val in six.iteritems(local_var_params['kwargs']):
453
- if key not in all_params:
457
+ # validate the arguments
458
+ for _key, _val in _params['kwargs'].items():
459
+ if _key not in _all_params:
454
460
  raise ApiTypeError(
455
461
  "Got an unexpected keyword argument '%s'"
456
- " to method delete_team" % key
462
+ " to method delete_team" % _key
457
463
  )
458
- local_var_params[key] = val
459
- del local_var_params['kwargs']
460
- # verify the required parameter 'owner' is set
461
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
462
- local_var_params['owner'] is None): # noqa: E501
463
- raise ApiValueError("Missing the required parameter `owner` when calling `delete_team`") # noqa: E501
464
- # verify the required parameter 'name' is set
465
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
466
- local_var_params['name'] is None): # noqa: E501
467
- raise ApiValueError("Missing the required parameter `name` when calling `delete_team`") # noqa: E501
468
-
469
- collection_formats = {}
470
-
471
- path_params = {}
472
- if 'owner' in local_var_params:
473
- path_params['owner'] = local_var_params['owner'] # noqa: E501
474
- if 'name' in local_var_params:
475
- path_params['name'] = local_var_params['name'] # noqa: E501
476
-
477
- query_params = []
478
-
479
- header_params = {}
480
-
481
- form_params = []
482
- local_var_files = {}
483
-
484
- body_params = None
485
- # HTTP header `Accept`
486
- header_params['Accept'] = self.api_client.select_header_accept(
464
+ _params[_key] = _val
465
+ del _params['kwargs']
466
+
467
+ _collection_formats = {}
468
+
469
+ # process the path parameters
470
+ _path_params = {}
471
+ if _params['owner']:
472
+ _path_params['owner'] = _params['owner']
473
+
474
+ if _params['name']:
475
+ _path_params['name'] = _params['name']
476
+
477
+
478
+ # process the query parameters
479
+ _query_params = []
480
+ # process the header parameters
481
+ _header_params = dict(_params.get('_headers', {}))
482
+ # process the form parameters
483
+ _form_params = []
484
+ _files = {}
485
+ # process the body parameter
486
+ _body_params = None
487
+ # set the HTTP header `Accept`
488
+ _header_params['Accept'] = self.api_client.select_header_accept(
487
489
  ['application/json']) # noqa: E501
488
490
 
489
- # Authentication setting
490
- auth_settings = ['ApiKey'] # noqa: E501
491
+ # authentication setting
492
+ _auth_settings = ['ApiKey'] # noqa: E501
491
493
 
492
- response_types_map = {}
494
+ _response_types_map = {}
493
495
 
494
496
  return self.api_client.call_api(
495
497
  '/api/v1/orgs/{owner}/teams/{name}', 'DELETE',
496
- path_params,
497
- query_params,
498
- header_params,
499
- body=body_params,
500
- post_params=form_params,
501
- files=local_var_files,
502
- response_types_map=response_types_map,
503
- auth_settings=auth_settings,
504
- async_req=local_var_params.get('async_req'),
505
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
506
- _preload_content=local_var_params.get('_preload_content', True),
507
- _request_timeout=local_var_params.get('_request_timeout'),
508
- collection_formats=collection_formats,
509
- _request_auth=local_var_params.get('_request_auth'))
510
-
511
- def delete_team_member(self, owner, team, user, **kwargs): # noqa: E501
498
+ _path_params,
499
+ _query_params,
500
+ _header_params,
501
+ body=_body_params,
502
+ post_params=_form_params,
503
+ files=_files,
504
+ response_types_map=_response_types_map,
505
+ auth_settings=_auth_settings,
506
+ async_req=_params.get('async_req'),
507
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
508
+ _preload_content=_params.get('_preload_content', True),
509
+ _request_timeout=_params.get('_request_timeout'),
510
+ collection_formats=_collection_formats,
511
+ _request_auth=_params.get('_request_auth'))
512
+
513
+ @validate_arguments
514
+ def delete_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namesapce")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs) -> None: # noqa: E501
512
515
  """Delete team member details # noqa: E501
513
516
 
514
517
  This method makes a synchronous HTTP request by default. To make an
@@ -541,7 +544,8 @@ class TeamsV1Api(object):
541
544
  kwargs['_return_http_data_only'] = True
542
545
  return self.delete_team_member_with_http_info(owner, team, user, **kwargs) # noqa: E501
543
546
 
544
- def delete_team_member_with_http_info(self, owner, team, user, **kwargs): # noqa: E501
547
+ @validate_arguments
548
+ def delete_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namesapce")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs): # noqa: E501
545
549
  """Delete team member details # noqa: E501
546
550
 
547
551
  This method makes a synchronous HTTP request by default. To make an
@@ -573,95 +577,93 @@ class TeamsV1Api(object):
573
577
  request; this effectively ignores the authentication
574
578
  in the spec for a single request.
575
579
  :type _request_auth: dict, optional
580
+ :type _content_type: string, optional: force content-type for the request
576
581
  :return: Returns the result object.
577
582
  If the method is called asynchronously,
578
583
  returns the request thread.
579
584
  :rtype: None
580
585
  """
581
586
 
582
- local_var_params = locals()
587
+ _params = locals()
583
588
 
584
- all_params = [
589
+ _all_params = [
585
590
  'owner',
586
591
  'team',
587
592
  'user'
588
593
  ]
589
- all_params.extend(
594
+ _all_params.extend(
590
595
  [
591
596
  'async_req',
592
597
  '_return_http_data_only',
593
598
  '_preload_content',
594
599
  '_request_timeout',
595
- '_request_auth'
600
+ '_request_auth',
601
+ '_content_type',
602
+ '_headers'
596
603
  ]
597
604
  )
598
605
 
599
- for key, val in six.iteritems(local_var_params['kwargs']):
600
- if key not in all_params:
606
+ # validate the arguments
607
+ for _key, _val in _params['kwargs'].items():
608
+ if _key not in _all_params:
601
609
  raise ApiTypeError(
602
610
  "Got an unexpected keyword argument '%s'"
603
- " to method delete_team_member" % key
611
+ " to method delete_team_member" % _key
604
612
  )
605
- local_var_params[key] = val
606
- del local_var_params['kwargs']
607
- # verify the required parameter 'owner' is set
608
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
609
- local_var_params['owner'] is None): # noqa: E501
610
- raise ApiValueError("Missing the required parameter `owner` when calling `delete_team_member`") # noqa: E501
611
- # verify the required parameter 'team' is set
612
- if self.api_client.client_side_validation and ('team' not in local_var_params or # noqa: E501
613
- local_var_params['team'] is None): # noqa: E501
614
- raise ApiValueError("Missing the required parameter `team` when calling `delete_team_member`") # noqa: E501
615
- # verify the required parameter 'user' is set
616
- if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
617
- local_var_params['user'] is None): # noqa: E501
618
- raise ApiValueError("Missing the required parameter `user` when calling `delete_team_member`") # noqa: E501
619
-
620
- collection_formats = {}
621
-
622
- path_params = {}
623
- if 'owner' in local_var_params:
624
- path_params['owner'] = local_var_params['owner'] # noqa: E501
625
- if 'team' in local_var_params:
626
- path_params['team'] = local_var_params['team'] # noqa: E501
627
- if 'user' in local_var_params:
628
- path_params['user'] = local_var_params['user'] # noqa: E501
629
-
630
- query_params = []
631
-
632
- header_params = {}
633
-
634
- form_params = []
635
- local_var_files = {}
636
-
637
- body_params = None
638
- # HTTP header `Accept`
639
- header_params['Accept'] = self.api_client.select_header_accept(
613
+ _params[_key] = _val
614
+ del _params['kwargs']
615
+
616
+ _collection_formats = {}
617
+
618
+ # process the path parameters
619
+ _path_params = {}
620
+ if _params['owner']:
621
+ _path_params['owner'] = _params['owner']
622
+
623
+ if _params['team']:
624
+ _path_params['team'] = _params['team']
625
+
626
+ if _params['user']:
627
+ _path_params['user'] = _params['user']
628
+
629
+
630
+ # process the query parameters
631
+ _query_params = []
632
+ # process the header parameters
633
+ _header_params = dict(_params.get('_headers', {}))
634
+ # process the form parameters
635
+ _form_params = []
636
+ _files = {}
637
+ # process the body parameter
638
+ _body_params = None
639
+ # set the HTTP header `Accept`
640
+ _header_params['Accept'] = self.api_client.select_header_accept(
640
641
  ['application/json']) # noqa: E501
641
642
 
642
- # Authentication setting
643
- auth_settings = ['ApiKey'] # noqa: E501
643
+ # authentication setting
644
+ _auth_settings = ['ApiKey'] # noqa: E501
644
645
 
645
- response_types_map = {}
646
+ _response_types_map = {}
646
647
 
647
648
  return self.api_client.call_api(
648
649
  '/api/v1/orgs/{owner}/teams/{team}/members/{user}', 'DELETE',
649
- path_params,
650
- query_params,
651
- header_params,
652
- body=body_params,
653
- post_params=form_params,
654
- files=local_var_files,
655
- response_types_map=response_types_map,
656
- auth_settings=auth_settings,
657
- async_req=local_var_params.get('async_req'),
658
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
659
- _preload_content=local_var_params.get('_preload_content', True),
660
- _request_timeout=local_var_params.get('_request_timeout'),
661
- collection_formats=collection_formats,
662
- _request_auth=local_var_params.get('_request_auth'))
663
-
664
- def get_team(self, owner, name, **kwargs): # noqa: E501
650
+ _path_params,
651
+ _query_params,
652
+ _header_params,
653
+ body=_body_params,
654
+ post_params=_form_params,
655
+ files=_files,
656
+ response_types_map=_response_types_map,
657
+ auth_settings=_auth_settings,
658
+ async_req=_params.get('async_req'),
659
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
660
+ _preload_content=_params.get('_preload_content', True),
661
+ _request_timeout=_params.get('_request_timeout'),
662
+ collection_formats=_collection_formats,
663
+ _request_auth=_params.get('_request_auth'))
664
+
665
+ @validate_arguments
666
+ def get_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namesapce")], **kwargs) -> V1Team: # noqa: E501
665
667
  """Get team # noqa: E501
666
668
 
667
669
  This method makes a synchronous HTTP request by default. To make an
@@ -692,7 +694,8 @@ class TeamsV1Api(object):
692
694
  kwargs['_return_http_data_only'] = True
693
695
  return self.get_team_with_http_info(owner, name, **kwargs) # noqa: E501
694
696
 
695
- def get_team_with_http_info(self, owner, name, **kwargs): # noqa: E501
697
+ @validate_arguments
698
+ def get_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namesapce")], **kwargs): # noqa: E501
696
699
  """Get team # noqa: E501
697
700
 
698
701
  This method makes a synchronous HTTP request by default. To make an
@@ -722,93 +725,94 @@ class TeamsV1Api(object):
722
725
  request; this effectively ignores the authentication
723
726
  in the spec for a single request.
724
727
  :type _request_auth: dict, optional
728
+ :type _content_type: string, optional: force content-type for the request
725
729
  :return: Returns the result object.
726
730
  If the method is called asynchronously,
727
731
  returns the request thread.
728
732
  :rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
729
733
  """
730
734
 
731
- local_var_params = locals()
735
+ _params = locals()
732
736
 
733
- all_params = [
737
+ _all_params = [
734
738
  'owner',
735
739
  'name'
736
740
  ]
737
- all_params.extend(
741
+ _all_params.extend(
738
742
  [
739
743
  'async_req',
740
744
  '_return_http_data_only',
741
745
  '_preload_content',
742
746
  '_request_timeout',
743
- '_request_auth'
747
+ '_request_auth',
748
+ '_content_type',
749
+ '_headers'
744
750
  ]
745
751
  )
746
752
 
747
- for key, val in six.iteritems(local_var_params['kwargs']):
748
- if key not in all_params:
753
+ # validate the arguments
754
+ for _key, _val in _params['kwargs'].items():
755
+ if _key not in _all_params:
749
756
  raise ApiTypeError(
750
757
  "Got an unexpected keyword argument '%s'"
751
- " to method get_team" % key
758
+ " to method get_team" % _key
752
759
  )
753
- local_var_params[key] = val
754
- del local_var_params['kwargs']
755
- # verify the required parameter 'owner' is set
756
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
757
- local_var_params['owner'] is None): # noqa: E501
758
- raise ApiValueError("Missing the required parameter `owner` when calling `get_team`") # noqa: E501
759
- # verify the required parameter 'name' is set
760
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
761
- local_var_params['name'] is None): # noqa: E501
762
- raise ApiValueError("Missing the required parameter `name` when calling `get_team`") # noqa: E501
763
-
764
- collection_formats = {}
765
-
766
- path_params = {}
767
- if 'owner' in local_var_params:
768
- path_params['owner'] = local_var_params['owner'] # noqa: E501
769
- if 'name' in local_var_params:
770
- path_params['name'] = local_var_params['name'] # noqa: E501
771
-
772
- query_params = []
773
-
774
- header_params = {}
775
-
776
- form_params = []
777
- local_var_files = {}
778
-
779
- body_params = None
780
- # HTTP header `Accept`
781
- header_params['Accept'] = self.api_client.select_header_accept(
760
+ _params[_key] = _val
761
+ del _params['kwargs']
762
+
763
+ _collection_formats = {}
764
+
765
+ # process the path parameters
766
+ _path_params = {}
767
+ if _params['owner']:
768
+ _path_params['owner'] = _params['owner']
769
+
770
+ if _params['name']:
771
+ _path_params['name'] = _params['name']
772
+
773
+
774
+ # process the query parameters
775
+ _query_params = []
776
+ # process the header parameters
777
+ _header_params = dict(_params.get('_headers', {}))
778
+ # process the form parameters
779
+ _form_params = []
780
+ _files = {}
781
+ # process the body parameter
782
+ _body_params = None
783
+ # set the HTTP header `Accept`
784
+ _header_params['Accept'] = self.api_client.select_header_accept(
782
785
  ['application/json']) # noqa: E501
783
786
 
784
- # Authentication setting
785
- auth_settings = ['ApiKey'] # noqa: E501
787
+ # authentication setting
788
+ _auth_settings = ['ApiKey'] # noqa: E501
786
789
 
787
- response_types_map = {
788
- 200: "V1Team",
789
- 204: "object",
790
- 403: "object",
791
- 404: "object",
790
+ _response_types_map = {
791
+ '200': "V1Team",
792
+ '204': "object",
793
+ '403': "object",
794
+ '404': "object",
792
795
  }
793
796
 
794
797
  return self.api_client.call_api(
795
798
  '/api/v1/orgs/{owner}/teams/{name}', 'GET',
796
- path_params,
797
- query_params,
798
- header_params,
799
- body=body_params,
800
- post_params=form_params,
801
- files=local_var_files,
802
- response_types_map=response_types_map,
803
- auth_settings=auth_settings,
804
- async_req=local_var_params.get('async_req'),
805
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
806
- _preload_content=local_var_params.get('_preload_content', True),
807
- _request_timeout=local_var_params.get('_request_timeout'),
808
- collection_formats=collection_formats,
809
- _request_auth=local_var_params.get('_request_auth'))
810
-
811
- def get_team_member(self, owner, team, user, **kwargs): # noqa: E501
799
+ _path_params,
800
+ _query_params,
801
+ _header_params,
802
+ body=_body_params,
803
+ post_params=_form_params,
804
+ files=_files,
805
+ response_types_map=_response_types_map,
806
+ auth_settings=_auth_settings,
807
+ async_req=_params.get('async_req'),
808
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
809
+ _preload_content=_params.get('_preload_content', True),
810
+ _request_timeout=_params.get('_request_timeout'),
811
+ collection_formats=_collection_formats,
812
+ _request_auth=_params.get('_request_auth'))
813
+
814
+ @validate_arguments
815
+ def get_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namesapce")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs) -> V1TeamMember: # noqa: E501
812
816
  """Get team member details # noqa: E501
813
817
 
814
818
  This method makes a synchronous HTTP request by default. To make an
@@ -841,7 +845,8 @@ class TeamsV1Api(object):
841
845
  kwargs['_return_http_data_only'] = True
842
846
  return self.get_team_member_with_http_info(owner, team, user, **kwargs) # noqa: E501
843
847
 
844
- def get_team_member_with_http_info(self, owner, team, user, **kwargs): # noqa: E501
848
+ @validate_arguments
849
+ def get_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namesapce")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs): # noqa: E501
845
850
  """Get team member details # noqa: E501
846
851
 
847
852
  This method makes a synchronous HTTP request by default. To make an
@@ -873,106 +878,104 @@ class TeamsV1Api(object):
873
878
  request; this effectively ignores the authentication
874
879
  in the spec for a single request.
875
880
  :type _request_auth: dict, optional
881
+ :type _content_type: string, optional: force content-type for the request
876
882
  :return: Returns the result object.
877
883
  If the method is called asynchronously,
878
884
  returns the request thread.
879
885
  :rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
880
886
  """
881
887
 
882
- local_var_params = locals()
888
+ _params = locals()
883
889
 
884
- all_params = [
890
+ _all_params = [
885
891
  'owner',
886
892
  'team',
887
893
  'user'
888
894
  ]
889
- all_params.extend(
895
+ _all_params.extend(
890
896
  [
891
897
  'async_req',
892
898
  '_return_http_data_only',
893
899
  '_preload_content',
894
900
  '_request_timeout',
895
- '_request_auth'
901
+ '_request_auth',
902
+ '_content_type',
903
+ '_headers'
896
904
  ]
897
905
  )
898
906
 
899
- for key, val in six.iteritems(local_var_params['kwargs']):
900
- if key not in all_params:
907
+ # validate the arguments
908
+ for _key, _val in _params['kwargs'].items():
909
+ if _key not in _all_params:
901
910
  raise ApiTypeError(
902
911
  "Got an unexpected keyword argument '%s'"
903
- " to method get_team_member" % key
912
+ " to method get_team_member" % _key
904
913
  )
905
- local_var_params[key] = val
906
- del local_var_params['kwargs']
907
- # verify the required parameter 'owner' is set
908
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
909
- local_var_params['owner'] is None): # noqa: E501
910
- raise ApiValueError("Missing the required parameter `owner` when calling `get_team_member`") # noqa: E501
911
- # verify the required parameter 'team' is set
912
- if self.api_client.client_side_validation and ('team' not in local_var_params or # noqa: E501
913
- local_var_params['team'] is None): # noqa: E501
914
- raise ApiValueError("Missing the required parameter `team` when calling `get_team_member`") # noqa: E501
915
- # verify the required parameter 'user' is set
916
- if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
917
- local_var_params['user'] is None): # noqa: E501
918
- raise ApiValueError("Missing the required parameter `user` when calling `get_team_member`") # noqa: E501
919
-
920
- collection_formats = {}
921
-
922
- path_params = {}
923
- if 'owner' in local_var_params:
924
- path_params['owner'] = local_var_params['owner'] # noqa: E501
925
- if 'team' in local_var_params:
926
- path_params['team'] = local_var_params['team'] # noqa: E501
927
- if 'user' in local_var_params:
928
- path_params['user'] = local_var_params['user'] # noqa: E501
929
-
930
- query_params = []
931
-
932
- header_params = {}
933
-
934
- form_params = []
935
- local_var_files = {}
936
-
937
- body_params = None
938
- # HTTP header `Accept`
939
- header_params['Accept'] = self.api_client.select_header_accept(
914
+ _params[_key] = _val
915
+ del _params['kwargs']
916
+
917
+ _collection_formats = {}
918
+
919
+ # process the path parameters
920
+ _path_params = {}
921
+ if _params['owner']:
922
+ _path_params['owner'] = _params['owner']
923
+
924
+ if _params['team']:
925
+ _path_params['team'] = _params['team']
926
+
927
+ if _params['user']:
928
+ _path_params['user'] = _params['user']
929
+
930
+
931
+ # process the query parameters
932
+ _query_params = []
933
+ # process the header parameters
934
+ _header_params = dict(_params.get('_headers', {}))
935
+ # process the form parameters
936
+ _form_params = []
937
+ _files = {}
938
+ # process the body parameter
939
+ _body_params = None
940
+ # set the HTTP header `Accept`
941
+ _header_params['Accept'] = self.api_client.select_header_accept(
940
942
  ['application/json']) # noqa: E501
941
943
 
942
- # Authentication setting
943
- auth_settings = ['ApiKey'] # noqa: E501
944
+ # authentication setting
945
+ _auth_settings = ['ApiKey'] # noqa: E501
944
946
 
945
- response_types_map = {
946
- 200: "V1TeamMember",
947
- 204: "object",
948
- 403: "object",
949
- 404: "object",
947
+ _response_types_map = {
948
+ '200': "V1TeamMember",
949
+ '204': "object",
950
+ '403': "object",
951
+ '404': "object",
950
952
  }
951
953
 
952
954
  return self.api_client.call_api(
953
955
  '/api/v1/orgs/{owner}/teams/{team}/members/{user}', 'GET',
954
- path_params,
955
- query_params,
956
- header_params,
957
- body=body_params,
958
- post_params=form_params,
959
- files=local_var_files,
960
- response_types_map=response_types_map,
961
- auth_settings=auth_settings,
962
- async_req=local_var_params.get('async_req'),
963
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
964
- _preload_content=local_var_params.get('_preload_content', True),
965
- _request_timeout=local_var_params.get('_request_timeout'),
966
- collection_formats=collection_formats,
967
- _request_auth=local_var_params.get('_request_auth'))
968
-
969
- def list_team_members(self, owner, name, **kwargs): # noqa: E501
956
+ _path_params,
957
+ _query_params,
958
+ _header_params,
959
+ body=_body_params,
960
+ post_params=_form_params,
961
+ files=_files,
962
+ response_types_map=_response_types_map,
963
+ auth_settings=_auth_settings,
964
+ async_req=_params.get('async_req'),
965
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
966
+ _preload_content=_params.get('_preload_content', True),
967
+ _request_timeout=_params.get('_request_timeout'),
968
+ collection_formats=_collection_formats,
969
+ _request_auth=_params.get('_request_auth'))
970
+
971
+ @validate_arguments
972
+ def list_team_members(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], 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) -> V1ListTeamMembersResponse: # noqa: E501
970
973
  """Get team members # noqa: E501
971
974
 
972
975
  This method makes a synchronous HTTP request by default. To make an
973
976
  asynchronous HTTP request, please pass async_req=True
974
977
 
975
- >>> thread = api.list_team_members(owner, name, async_req=True)
978
+ >>> thread = api.list_team_members(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
976
979
  >>> result = thread.get()
977
980
 
978
981
  :param owner: Owner of the namespace (required)
@@ -1009,15 +1012,16 @@ class TeamsV1Api(object):
1009
1012
  :rtype: V1ListTeamMembersResponse
1010
1013
  """
1011
1014
  kwargs['_return_http_data_only'] = True
1012
- return self.list_team_members_with_http_info(owner, name, **kwargs) # noqa: E501
1015
+ return self.list_team_members_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
1013
1016
 
1014
- def list_team_members_with_http_info(self, owner, name, **kwargs): # noqa: E501
1017
+ @validate_arguments
1018
+ def list_team_members_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], 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
1015
1019
  """Get team members # noqa: E501
1016
1020
 
1017
1021
  This method makes a synchronous HTTP request by default. To make an
1018
1022
  asynchronous HTTP request, please pass async_req=True
1019
1023
 
1020
- >>> thread = api.list_team_members_with_http_info(owner, name, async_req=True)
1024
+ >>> thread = api.list_team_members_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
1021
1025
  >>> result = thread.get()
1022
1026
 
1023
1027
  :param owner: Owner of the namespace (required)
@@ -1055,15 +1059,16 @@ class TeamsV1Api(object):
1055
1059
  request; this effectively ignores the authentication
1056
1060
  in the spec for a single request.
1057
1061
  :type _request_auth: dict, optional
1062
+ :type _content_type: string, optional: force content-type for the request
1058
1063
  :return: Returns the result object.
1059
1064
  If the method is called asynchronously,
1060
1065
  returns the request thread.
1061
1066
  :rtype: tuple(V1ListTeamMembersResponse, status_code(int), headers(HTTPHeaderDict))
1062
1067
  """
1063
1068
 
1064
- local_var_params = locals()
1069
+ _params = locals()
1065
1070
 
1066
- all_params = [
1071
+ _all_params = [
1067
1072
  'owner',
1068
1073
  'name',
1069
1074
  'offset',
@@ -1074,101 +1079,108 @@ class TeamsV1Api(object):
1074
1079
  'mode',
1075
1080
  'no_page'
1076
1081
  ]
1077
- all_params.extend(
1082
+ _all_params.extend(
1078
1083
  [
1079
1084
  'async_req',
1080
1085
  '_return_http_data_only',
1081
1086
  '_preload_content',
1082
1087
  '_request_timeout',
1083
- '_request_auth'
1088
+ '_request_auth',
1089
+ '_content_type',
1090
+ '_headers'
1084
1091
  ]
1085
1092
  )
1086
1093
 
1087
- for key, val in six.iteritems(local_var_params['kwargs']):
1088
- if key not in all_params:
1094
+ # validate the arguments
1095
+ for _key, _val in _params['kwargs'].items():
1096
+ if _key not in _all_params:
1089
1097
  raise ApiTypeError(
1090
1098
  "Got an unexpected keyword argument '%s'"
1091
- " to method list_team_members" % key
1099
+ " to method list_team_members" % _key
1092
1100
  )
1093
- local_var_params[key] = val
1094
- del local_var_params['kwargs']
1095
- # verify the required parameter 'owner' is set
1096
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1097
- local_var_params['owner'] is None): # noqa: E501
1098
- raise ApiValueError("Missing the required parameter `owner` when calling `list_team_members`") # noqa: E501
1099
- # verify the required parameter 'name' is set
1100
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
1101
- local_var_params['name'] is None): # noqa: E501
1102
- raise ApiValueError("Missing the required parameter `name` when calling `list_team_members`") # noqa: E501
1103
-
1104
- collection_formats = {}
1105
-
1106
- path_params = {}
1107
- if 'owner' in local_var_params:
1108
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1109
- if 'name' in local_var_params:
1110
- path_params['name'] = local_var_params['name'] # noqa: E501
1111
-
1112
- query_params = []
1113
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
1114
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
1115
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
1116
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
1117
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
1118
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
1119
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
1120
- query_params.append(('query', local_var_params['query'])) # noqa: E501
1121
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
1122
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
1123
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
1124
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
1125
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
1126
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
1127
-
1128
- header_params = {}
1129
-
1130
- form_params = []
1131
- local_var_files = {}
1132
-
1133
- body_params = None
1134
- # HTTP header `Accept`
1135
- header_params['Accept'] = self.api_client.select_header_accept(
1101
+ _params[_key] = _val
1102
+ del _params['kwargs']
1103
+
1104
+ _collection_formats = {}
1105
+
1106
+ # process the path parameters
1107
+ _path_params = {}
1108
+ if _params['owner']:
1109
+ _path_params['owner'] = _params['owner']
1110
+
1111
+ if _params['name']:
1112
+ _path_params['name'] = _params['name']
1113
+
1114
+
1115
+ # process the query parameters
1116
+ _query_params = []
1117
+ if _params.get('offset') is not None: # noqa: E501
1118
+ _query_params.append(('offset', _params['offset']))
1119
+
1120
+ if _params.get('limit') is not None: # noqa: E501
1121
+ _query_params.append(('limit', _params['limit']))
1122
+
1123
+ if _params.get('sort') is not None: # noqa: E501
1124
+ _query_params.append(('sort', _params['sort']))
1125
+
1126
+ if _params.get('query') is not None: # noqa: E501
1127
+ _query_params.append(('query', _params['query']))
1128
+
1129
+ if _params.get('bookmarks') is not None: # noqa: E501
1130
+ _query_params.append(('bookmarks', _params['bookmarks']))
1131
+
1132
+ if _params.get('mode') is not None: # noqa: E501
1133
+ _query_params.append(('mode', _params['mode']))
1134
+
1135
+ if _params.get('no_page') is not None: # noqa: E501
1136
+ _query_params.append(('no_page', _params['no_page']))
1137
+
1138
+ # process the header parameters
1139
+ _header_params = dict(_params.get('_headers', {}))
1140
+ # process the form parameters
1141
+ _form_params = []
1142
+ _files = {}
1143
+ # process the body parameter
1144
+ _body_params = None
1145
+ # set the HTTP header `Accept`
1146
+ _header_params['Accept'] = self.api_client.select_header_accept(
1136
1147
  ['application/json']) # noqa: E501
1137
1148
 
1138
- # Authentication setting
1139
- auth_settings = ['ApiKey'] # noqa: E501
1149
+ # authentication setting
1150
+ _auth_settings = ['ApiKey'] # noqa: E501
1140
1151
 
1141
- response_types_map = {
1142
- 200: "V1ListTeamMembersResponse",
1143
- 204: "object",
1144
- 403: "object",
1145
- 404: "object",
1152
+ _response_types_map = {
1153
+ '200': "V1ListTeamMembersResponse",
1154
+ '204': "object",
1155
+ '403': "object",
1156
+ '404': "object",
1146
1157
  }
1147
1158
 
1148
1159
  return self.api_client.call_api(
1149
1160
  '/api/v1/orgs/{owner}/teams/{name}/members', 'GET',
1150
- path_params,
1151
- query_params,
1152
- header_params,
1153
- body=body_params,
1154
- post_params=form_params,
1155
- files=local_var_files,
1156
- response_types_map=response_types_map,
1157
- auth_settings=auth_settings,
1158
- async_req=local_var_params.get('async_req'),
1159
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1160
- _preload_content=local_var_params.get('_preload_content', True),
1161
- _request_timeout=local_var_params.get('_request_timeout'),
1162
- collection_formats=collection_formats,
1163
- _request_auth=local_var_params.get('_request_auth'))
1164
-
1165
- def list_team_names(self, owner, **kwargs): # noqa: E501
1161
+ _path_params,
1162
+ _query_params,
1163
+ _header_params,
1164
+ body=_body_params,
1165
+ post_params=_form_params,
1166
+ files=_files,
1167
+ response_types_map=_response_types_map,
1168
+ auth_settings=_auth_settings,
1169
+ async_req=_params.get('async_req'),
1170
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1171
+ _preload_content=_params.get('_preload_content', True),
1172
+ _request_timeout=_params.get('_request_timeout'),
1173
+ collection_formats=_collection_formats,
1174
+ _request_auth=_params.get('_request_auth'))
1175
+
1176
+ @validate_arguments
1177
+ def list_team_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) -> V1ListTeamsResponse: # noqa: E501
1166
1178
  """List teams names # noqa: E501
1167
1179
 
1168
1180
  This method makes a synchronous HTTP request by default. To make an
1169
1181
  asynchronous HTTP request, please pass async_req=True
1170
1182
 
1171
- >>> thread = api.list_team_names(owner, async_req=True)
1183
+ >>> thread = api.list_team_names(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
1172
1184
  >>> result = thread.get()
1173
1185
 
1174
1186
  :param owner: Owner of the namespace (required)
@@ -1203,15 +1215,16 @@ class TeamsV1Api(object):
1203
1215
  :rtype: V1ListTeamsResponse
1204
1216
  """
1205
1217
  kwargs['_return_http_data_only'] = True
1206
- return self.list_team_names_with_http_info(owner, **kwargs) # noqa: E501
1218
+ return self.list_team_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
1207
1219
 
1208
- def list_team_names_with_http_info(self, owner, **kwargs): # noqa: E501
1220
+ @validate_arguments
1221
+ def list_team_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
1209
1222
  """List teams names # noqa: E501
1210
1223
 
1211
1224
  This method makes a synchronous HTTP request by default. To make an
1212
1225
  asynchronous HTTP request, please pass async_req=True
1213
1226
 
1214
- >>> thread = api.list_team_names_with_http_info(owner, async_req=True)
1227
+ >>> thread = api.list_team_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
1215
1228
  >>> result = thread.get()
1216
1229
 
1217
1230
  :param owner: Owner of the namespace (required)
@@ -1247,15 +1260,16 @@ class TeamsV1Api(object):
1247
1260
  request; this effectively ignores the authentication
1248
1261
  in the spec for a single request.
1249
1262
  :type _request_auth: dict, optional
1263
+ :type _content_type: string, optional: force content-type for the request
1250
1264
  :return: Returns the result object.
1251
1265
  If the method is called asynchronously,
1252
1266
  returns the request thread.
1253
1267
  :rtype: tuple(V1ListTeamsResponse, status_code(int), headers(HTTPHeaderDict))
1254
1268
  """
1255
1269
 
1256
- local_var_params = locals()
1270
+ _params = locals()
1257
1271
 
1258
- all_params = [
1272
+ _all_params = [
1259
1273
  'owner',
1260
1274
  'offset',
1261
1275
  'limit',
@@ -1265,95 +1279,105 @@ class TeamsV1Api(object):
1265
1279
  'mode',
1266
1280
  'no_page'
1267
1281
  ]
1268
- all_params.extend(
1282
+ _all_params.extend(
1269
1283
  [
1270
1284
  'async_req',
1271
1285
  '_return_http_data_only',
1272
1286
  '_preload_content',
1273
1287
  '_request_timeout',
1274
- '_request_auth'
1288
+ '_request_auth',
1289
+ '_content_type',
1290
+ '_headers'
1275
1291
  ]
1276
1292
  )
1277
1293
 
1278
- for key, val in six.iteritems(local_var_params['kwargs']):
1279
- if key not in all_params:
1294
+ # validate the arguments
1295
+ for _key, _val in _params['kwargs'].items():
1296
+ if _key not in _all_params:
1280
1297
  raise ApiTypeError(
1281
1298
  "Got an unexpected keyword argument '%s'"
1282
- " to method list_team_names" % key
1299
+ " to method list_team_names" % _key
1283
1300
  )
1284
- local_var_params[key] = val
1285
- del local_var_params['kwargs']
1286
- # verify the required parameter 'owner' is set
1287
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1288
- local_var_params['owner'] is None): # noqa: E501
1289
- raise ApiValueError("Missing the required parameter `owner` when calling `list_team_names`") # noqa: E501
1290
-
1291
- collection_formats = {}
1292
-
1293
- path_params = {}
1294
- if 'owner' in local_var_params:
1295
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1296
-
1297
- query_params = []
1298
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
1299
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
1300
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
1301
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
1302
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
1303
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
1304
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
1305
- query_params.append(('query', local_var_params['query'])) # noqa: E501
1306
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
1307
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
1308
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
1309
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
1310
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
1311
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
1312
-
1313
- header_params = {}
1314
-
1315
- form_params = []
1316
- local_var_files = {}
1317
-
1318
- body_params = None
1319
- # HTTP header `Accept`
1320
- header_params['Accept'] = self.api_client.select_header_accept(
1301
+ _params[_key] = _val
1302
+ del _params['kwargs']
1303
+
1304
+ _collection_formats = {}
1305
+
1306
+ # process the path parameters
1307
+ _path_params = {}
1308
+ if _params['owner']:
1309
+ _path_params['owner'] = _params['owner']
1310
+
1311
+
1312
+ # process the query parameters
1313
+ _query_params = []
1314
+ if _params.get('offset') is not None: # noqa: E501
1315
+ _query_params.append(('offset', _params['offset']))
1316
+
1317
+ if _params.get('limit') is not None: # noqa: E501
1318
+ _query_params.append(('limit', _params['limit']))
1319
+
1320
+ if _params.get('sort') is not None: # noqa: E501
1321
+ _query_params.append(('sort', _params['sort']))
1322
+
1323
+ if _params.get('query') is not None: # noqa: E501
1324
+ _query_params.append(('query', _params['query']))
1325
+
1326
+ if _params.get('bookmarks') is not None: # noqa: E501
1327
+ _query_params.append(('bookmarks', _params['bookmarks']))
1328
+
1329
+ if _params.get('mode') is not None: # noqa: E501
1330
+ _query_params.append(('mode', _params['mode']))
1331
+
1332
+ if _params.get('no_page') is not None: # noqa: E501
1333
+ _query_params.append(('no_page', _params['no_page']))
1334
+
1335
+ # process the header parameters
1336
+ _header_params = dict(_params.get('_headers', {}))
1337
+ # process the form parameters
1338
+ _form_params = []
1339
+ _files = {}
1340
+ # process the body parameter
1341
+ _body_params = None
1342
+ # set the HTTP header `Accept`
1343
+ _header_params['Accept'] = self.api_client.select_header_accept(
1321
1344
  ['application/json']) # noqa: E501
1322
1345
 
1323
- # Authentication setting
1324
- auth_settings = ['ApiKey'] # noqa: E501
1346
+ # authentication setting
1347
+ _auth_settings = ['ApiKey'] # noqa: E501
1325
1348
 
1326
- response_types_map = {
1327
- 200: "V1ListTeamsResponse",
1328
- 204: "object",
1329
- 403: "object",
1330
- 404: "object",
1349
+ _response_types_map = {
1350
+ '200': "V1ListTeamsResponse",
1351
+ '204': "object",
1352
+ '403': "object",
1353
+ '404': "object",
1331
1354
  }
1332
1355
 
1333
1356
  return self.api_client.call_api(
1334
1357
  '/api/v1/orgs/{owner}/teams/names', 'GET',
1335
- path_params,
1336
- query_params,
1337
- header_params,
1338
- body=body_params,
1339
- post_params=form_params,
1340
- files=local_var_files,
1341
- response_types_map=response_types_map,
1342
- auth_settings=auth_settings,
1343
- async_req=local_var_params.get('async_req'),
1344
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1345
- _preload_content=local_var_params.get('_preload_content', True),
1346
- _request_timeout=local_var_params.get('_request_timeout'),
1347
- collection_formats=collection_formats,
1348
- _request_auth=local_var_params.get('_request_auth'))
1349
-
1350
- def list_teams(self, owner, **kwargs): # noqa: E501
1358
+ _path_params,
1359
+ _query_params,
1360
+ _header_params,
1361
+ body=_body_params,
1362
+ post_params=_form_params,
1363
+ files=_files,
1364
+ response_types_map=_response_types_map,
1365
+ auth_settings=_auth_settings,
1366
+ async_req=_params.get('async_req'),
1367
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1368
+ _preload_content=_params.get('_preload_content', True),
1369
+ _request_timeout=_params.get('_request_timeout'),
1370
+ collection_formats=_collection_formats,
1371
+ _request_auth=_params.get('_request_auth'))
1372
+
1373
+ @validate_arguments
1374
+ def list_teams(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) -> V1ListTeamsResponse: # noqa: E501
1351
1375
  """List teams # noqa: E501
1352
1376
 
1353
1377
  This method makes a synchronous HTTP request by default. To make an
1354
1378
  asynchronous HTTP request, please pass async_req=True
1355
1379
 
1356
- >>> thread = api.list_teams(owner, async_req=True)
1380
+ >>> thread = api.list_teams(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
1357
1381
  >>> result = thread.get()
1358
1382
 
1359
1383
  :param owner: Owner of the namespace (required)
@@ -1388,15 +1412,16 @@ class TeamsV1Api(object):
1388
1412
  :rtype: V1ListTeamsResponse
1389
1413
  """
1390
1414
  kwargs['_return_http_data_only'] = True
1391
- return self.list_teams_with_http_info(owner, **kwargs) # noqa: E501
1415
+ return self.list_teams_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
1392
1416
 
1393
- def list_teams_with_http_info(self, owner, **kwargs): # noqa: E501
1417
+ @validate_arguments
1418
+ def list_teams_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
1394
1419
  """List teams # noqa: E501
1395
1420
 
1396
1421
  This method makes a synchronous HTTP request by default. To make an
1397
1422
  asynchronous HTTP request, please pass async_req=True
1398
1423
 
1399
- >>> thread = api.list_teams_with_http_info(owner, async_req=True)
1424
+ >>> thread = api.list_teams_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
1400
1425
  >>> result = thread.get()
1401
1426
 
1402
1427
  :param owner: Owner of the namespace (required)
@@ -1432,15 +1457,16 @@ class TeamsV1Api(object):
1432
1457
  request; this effectively ignores the authentication
1433
1458
  in the spec for a single request.
1434
1459
  :type _request_auth: dict, optional
1460
+ :type _content_type: string, optional: force content-type for the request
1435
1461
  :return: Returns the result object.
1436
1462
  If the method is called asynchronously,
1437
1463
  returns the request thread.
1438
1464
  :rtype: tuple(V1ListTeamsResponse, status_code(int), headers(HTTPHeaderDict))
1439
1465
  """
1440
1466
 
1441
- local_var_params = locals()
1467
+ _params = locals()
1442
1468
 
1443
- all_params = [
1469
+ _all_params = [
1444
1470
  'owner',
1445
1471
  'offset',
1446
1472
  'limit',
@@ -1450,89 +1476,99 @@ class TeamsV1Api(object):
1450
1476
  'mode',
1451
1477
  'no_page'
1452
1478
  ]
1453
- all_params.extend(
1479
+ _all_params.extend(
1454
1480
  [
1455
1481
  'async_req',
1456
1482
  '_return_http_data_only',
1457
1483
  '_preload_content',
1458
1484
  '_request_timeout',
1459
- '_request_auth'
1485
+ '_request_auth',
1486
+ '_content_type',
1487
+ '_headers'
1460
1488
  ]
1461
1489
  )
1462
1490
 
1463
- for key, val in six.iteritems(local_var_params['kwargs']):
1464
- if key not in all_params:
1491
+ # validate the arguments
1492
+ for _key, _val in _params['kwargs'].items():
1493
+ if _key not in _all_params:
1465
1494
  raise ApiTypeError(
1466
1495
  "Got an unexpected keyword argument '%s'"
1467
- " to method list_teams" % key
1496
+ " to method list_teams" % _key
1468
1497
  )
1469
- local_var_params[key] = val
1470
- del local_var_params['kwargs']
1471
- # verify the required parameter 'owner' is set
1472
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1473
- local_var_params['owner'] is None): # noqa: E501
1474
- raise ApiValueError("Missing the required parameter `owner` when calling `list_teams`") # noqa: E501
1475
-
1476
- collection_formats = {}
1477
-
1478
- path_params = {}
1479
- if 'owner' in local_var_params:
1480
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1481
-
1482
- query_params = []
1483
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
1484
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
1485
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
1486
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
1487
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
1488
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
1489
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
1490
- query_params.append(('query', local_var_params['query'])) # noqa: E501
1491
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
1492
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
1493
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
1494
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
1495
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
1496
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
1497
-
1498
- header_params = {}
1499
-
1500
- form_params = []
1501
- local_var_files = {}
1502
-
1503
- body_params = None
1504
- # HTTP header `Accept`
1505
- header_params['Accept'] = self.api_client.select_header_accept(
1498
+ _params[_key] = _val
1499
+ del _params['kwargs']
1500
+
1501
+ _collection_formats = {}
1502
+
1503
+ # process the path parameters
1504
+ _path_params = {}
1505
+ if _params['owner']:
1506
+ _path_params['owner'] = _params['owner']
1507
+
1508
+
1509
+ # process the query parameters
1510
+ _query_params = []
1511
+ if _params.get('offset') is not None: # noqa: E501
1512
+ _query_params.append(('offset', _params['offset']))
1513
+
1514
+ if _params.get('limit') is not None: # noqa: E501
1515
+ _query_params.append(('limit', _params['limit']))
1516
+
1517
+ if _params.get('sort') is not None: # noqa: E501
1518
+ _query_params.append(('sort', _params['sort']))
1519
+
1520
+ if _params.get('query') is not None: # noqa: E501
1521
+ _query_params.append(('query', _params['query']))
1522
+
1523
+ if _params.get('bookmarks') is not None: # noqa: E501
1524
+ _query_params.append(('bookmarks', _params['bookmarks']))
1525
+
1526
+ if _params.get('mode') is not None: # noqa: E501
1527
+ _query_params.append(('mode', _params['mode']))
1528
+
1529
+ if _params.get('no_page') is not None: # noqa: E501
1530
+ _query_params.append(('no_page', _params['no_page']))
1531
+
1532
+ # process the header parameters
1533
+ _header_params = dict(_params.get('_headers', {}))
1534
+ # process the form parameters
1535
+ _form_params = []
1536
+ _files = {}
1537
+ # process the body parameter
1538
+ _body_params = None
1539
+ # set the HTTP header `Accept`
1540
+ _header_params['Accept'] = self.api_client.select_header_accept(
1506
1541
  ['application/json']) # noqa: E501
1507
1542
 
1508
- # Authentication setting
1509
- auth_settings = ['ApiKey'] # noqa: E501
1543
+ # authentication setting
1544
+ _auth_settings = ['ApiKey'] # noqa: E501
1510
1545
 
1511
- response_types_map = {
1512
- 200: "V1ListTeamsResponse",
1513
- 204: "object",
1514
- 403: "object",
1515
- 404: "object",
1546
+ _response_types_map = {
1547
+ '200': "V1ListTeamsResponse",
1548
+ '204': "object",
1549
+ '403': "object",
1550
+ '404': "object",
1516
1551
  }
1517
1552
 
1518
1553
  return self.api_client.call_api(
1519
1554
  '/api/v1/orgs/{owner}/teams', 'GET',
1520
- path_params,
1521
- query_params,
1522
- header_params,
1523
- body=body_params,
1524
- post_params=form_params,
1525
- files=local_var_files,
1526
- response_types_map=response_types_map,
1527
- auth_settings=auth_settings,
1528
- async_req=local_var_params.get('async_req'),
1529
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1530
- _preload_content=local_var_params.get('_preload_content', True),
1531
- _request_timeout=local_var_params.get('_request_timeout'),
1532
- collection_formats=collection_formats,
1533
- _request_auth=local_var_params.get('_request_auth'))
1534
-
1535
- def patch_team(self, owner, team_name, body, **kwargs): # noqa: E501
1555
+ _path_params,
1556
+ _query_params,
1557
+ _header_params,
1558
+ body=_body_params,
1559
+ post_params=_form_params,
1560
+ files=_files,
1561
+ response_types_map=_response_types_map,
1562
+ auth_settings=_auth_settings,
1563
+ async_req=_params.get('async_req'),
1564
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1565
+ _preload_content=_params.get('_preload_content', True),
1566
+ _request_timeout=_params.get('_request_timeout'),
1567
+ collection_formats=_collection_formats,
1568
+ _request_auth=_params.get('_request_auth'))
1569
+
1570
+ @validate_arguments
1571
+ def patch_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name : Annotated[StrictStr, Field(..., description="Name")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs) -> V1Team: # noqa: E501
1536
1572
  """Patch team # noqa: E501
1537
1573
 
1538
1574
  This method makes a synchronous HTTP request by default. To make an
@@ -1565,7 +1601,8 @@ class TeamsV1Api(object):
1565
1601
  kwargs['_return_http_data_only'] = True
1566
1602
  return self.patch_team_with_http_info(owner, team_name, body, **kwargs) # noqa: E501
1567
1603
 
1568
- def patch_team_with_http_info(self, owner, team_name, body, **kwargs): # noqa: E501
1604
+ @validate_arguments
1605
+ def patch_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name : Annotated[StrictStr, Field(..., description="Name")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs): # noqa: E501
1569
1606
  """Patch team # noqa: E501
1570
1607
 
1571
1608
  This method makes a synchronous HTTP request by default. To make an
@@ -1597,104 +1634,105 @@ class TeamsV1Api(object):
1597
1634
  request; this effectively ignores the authentication
1598
1635
  in the spec for a single request.
1599
1636
  :type _request_auth: dict, optional
1637
+ :type _content_type: string, optional: force content-type for the request
1600
1638
  :return: Returns the result object.
1601
1639
  If the method is called asynchronously,
1602
1640
  returns the request thread.
1603
1641
  :rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
1604
1642
  """
1605
1643
 
1606
- local_var_params = locals()
1644
+ _params = locals()
1607
1645
 
1608
- all_params = [
1646
+ _all_params = [
1609
1647
  'owner',
1610
1648
  'team_name',
1611
1649
  'body'
1612
1650
  ]
1613
- all_params.extend(
1651
+ _all_params.extend(
1614
1652
  [
1615
1653
  'async_req',
1616
1654
  '_return_http_data_only',
1617
1655
  '_preload_content',
1618
1656
  '_request_timeout',
1619
- '_request_auth'
1657
+ '_request_auth',
1658
+ '_content_type',
1659
+ '_headers'
1620
1660
  ]
1621
1661
  )
1622
1662
 
1623
- for key, val in six.iteritems(local_var_params['kwargs']):
1624
- if key not in all_params:
1663
+ # validate the arguments
1664
+ for _key, _val in _params['kwargs'].items():
1665
+ if _key not in _all_params:
1625
1666
  raise ApiTypeError(
1626
1667
  "Got an unexpected keyword argument '%s'"
1627
- " to method patch_team" % key
1668
+ " to method patch_team" % _key
1628
1669
  )
1629
- local_var_params[key] = val
1630
- del local_var_params['kwargs']
1631
- # verify the required parameter 'owner' is set
1632
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1633
- local_var_params['owner'] is None): # noqa: E501
1634
- raise ApiValueError("Missing the required parameter `owner` when calling `patch_team`") # noqa: E501
1635
- # verify the required parameter 'team_name' is set
1636
- if self.api_client.client_side_validation and ('team_name' not in local_var_params or # noqa: E501
1637
- local_var_params['team_name'] is None): # noqa: E501
1638
- raise ApiValueError("Missing the required parameter `team_name` when calling `patch_team`") # noqa: E501
1639
- # verify the required parameter 'body' is set
1640
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1641
- local_var_params['body'] is None): # noqa: E501
1642
- raise ApiValueError("Missing the required parameter `body` when calling `patch_team`") # noqa: E501
1643
-
1644
- collection_formats = {}
1645
-
1646
- path_params = {}
1647
- if 'owner' in local_var_params:
1648
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1649
- if 'team_name' in local_var_params:
1650
- path_params['team.name'] = local_var_params['team_name'] # noqa: E501
1651
-
1652
- query_params = []
1653
-
1654
- header_params = {}
1655
-
1656
- form_params = []
1657
- local_var_files = {}
1658
-
1659
- body_params = None
1660
- if 'body' in local_var_params:
1661
- body_params = local_var_params['body']
1662
- # HTTP header `Accept`
1663
- header_params['Accept'] = self.api_client.select_header_accept(
1664
- ['application/json']) # noqa: E501
1665
-
1666
- # HTTP header `Content-Type`
1667
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1670
+ _params[_key] = _val
1671
+ del _params['kwargs']
1672
+
1673
+ _collection_formats = {}
1674
+
1675
+ # process the path parameters
1676
+ _path_params = {}
1677
+ if _params['owner']:
1678
+ _path_params['owner'] = _params['owner']
1679
+
1680
+ if _params['team_name']:
1681
+ _path_params['team.name'] = _params['team_name']
1682
+
1683
+
1684
+ # process the query parameters
1685
+ _query_params = []
1686
+ # process the header parameters
1687
+ _header_params = dict(_params.get('_headers', {}))
1688
+ # process the form parameters
1689
+ _form_params = []
1690
+ _files = {}
1691
+ # process the body parameter
1692
+ _body_params = None
1693
+ if _params['body']:
1694
+ _body_params = _params['body']
1695
+
1696
+ # set the HTTP header `Accept`
1697
+ _header_params['Accept'] = self.api_client.select_header_accept(
1668
1698
  ['application/json']) # noqa: E501
1669
1699
 
1670
- # Authentication setting
1671
- auth_settings = ['ApiKey'] # noqa: E501
1672
-
1673
- response_types_map = {
1674
- 200: "V1Team",
1675
- 204: "object",
1676
- 403: "object",
1677
- 404: "object",
1700
+ # set the HTTP header `Content-Type`
1701
+ _content_types_list = _params.get('_content_type',
1702
+ self.api_client.select_header_content_type(
1703
+ ['application/json']))
1704
+ if _content_types_list:
1705
+ _header_params['Content-Type'] = _content_types_list
1706
+
1707
+ # authentication setting
1708
+ _auth_settings = ['ApiKey'] # noqa: E501
1709
+
1710
+ _response_types_map = {
1711
+ '200': "V1Team",
1712
+ '204': "object",
1713
+ '403': "object",
1714
+ '404': "object",
1678
1715
  }
1679
1716
 
1680
1717
  return self.api_client.call_api(
1681
1718
  '/api/v1/orgs/{owner}/teams/{team.name}', 'PATCH',
1682
- path_params,
1683
- query_params,
1684
- header_params,
1685
- body=body_params,
1686
- post_params=form_params,
1687
- files=local_var_files,
1688
- response_types_map=response_types_map,
1689
- auth_settings=auth_settings,
1690
- async_req=local_var_params.get('async_req'),
1691
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1692
- _preload_content=local_var_params.get('_preload_content', True),
1693
- _request_timeout=local_var_params.get('_request_timeout'),
1694
- collection_formats=collection_formats,
1695
- _request_auth=local_var_params.get('_request_auth'))
1696
-
1697
- def patch_team_member(self, owner, team, member_user, body, **kwargs): # noqa: E501
1719
+ _path_params,
1720
+ _query_params,
1721
+ _header_params,
1722
+ body=_body_params,
1723
+ post_params=_form_params,
1724
+ files=_files,
1725
+ response_types_map=_response_types_map,
1726
+ auth_settings=_auth_settings,
1727
+ async_req=_params.get('async_req'),
1728
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1729
+ _preload_content=_params.get('_preload_content', True),
1730
+ _request_timeout=_params.get('_request_timeout'),
1731
+ collection_formats=_collection_formats,
1732
+ _request_auth=_params.get('_request_auth'))
1733
+
1734
+ @validate_arguments
1735
+ def patch_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], member_user : Annotated[StrictStr, Field(..., description="User")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs) -> V1TeamMember: # noqa: E501
1698
1736
  """Patch team member # noqa: E501
1699
1737
 
1700
1738
  This method makes a synchronous HTTP request by default. To make an
@@ -1729,7 +1767,8 @@ class TeamsV1Api(object):
1729
1767
  kwargs['_return_http_data_only'] = True
1730
1768
  return self.patch_team_member_with_http_info(owner, team, member_user, body, **kwargs) # noqa: E501
1731
1769
 
1732
- def patch_team_member_with_http_info(self, owner, team, member_user, body, **kwargs): # noqa: E501
1770
+ @validate_arguments
1771
+ def patch_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], member_user : Annotated[StrictStr, Field(..., description="User")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs): # noqa: E501
1733
1772
  """Patch team member # noqa: E501
1734
1773
 
1735
1774
  This method makes a synchronous HTTP request by default. To make an
@@ -1763,111 +1802,109 @@ class TeamsV1Api(object):
1763
1802
  request; this effectively ignores the authentication
1764
1803
  in the spec for a single request.
1765
1804
  :type _request_auth: dict, optional
1805
+ :type _content_type: string, optional: force content-type for the request
1766
1806
  :return: Returns the result object.
1767
1807
  If the method is called asynchronously,
1768
1808
  returns the request thread.
1769
1809
  :rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
1770
1810
  """
1771
1811
 
1772
- local_var_params = locals()
1812
+ _params = locals()
1773
1813
 
1774
- all_params = [
1814
+ _all_params = [
1775
1815
  'owner',
1776
1816
  'team',
1777
1817
  'member_user',
1778
1818
  'body'
1779
1819
  ]
1780
- all_params.extend(
1820
+ _all_params.extend(
1781
1821
  [
1782
1822
  'async_req',
1783
1823
  '_return_http_data_only',
1784
1824
  '_preload_content',
1785
1825
  '_request_timeout',
1786
- '_request_auth'
1826
+ '_request_auth',
1827
+ '_content_type',
1828
+ '_headers'
1787
1829
  ]
1788
1830
  )
1789
1831
 
1790
- for key, val in six.iteritems(local_var_params['kwargs']):
1791
- if key not in all_params:
1832
+ # validate the arguments
1833
+ for _key, _val in _params['kwargs'].items():
1834
+ if _key not in _all_params:
1792
1835
  raise ApiTypeError(
1793
1836
  "Got an unexpected keyword argument '%s'"
1794
- " to method patch_team_member" % key
1837
+ " to method patch_team_member" % _key
1795
1838
  )
1796
- local_var_params[key] = val
1797
- del local_var_params['kwargs']
1798
- # verify the required parameter 'owner' is set
1799
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1800
- local_var_params['owner'] is None): # noqa: E501
1801
- raise ApiValueError("Missing the required parameter `owner` when calling `patch_team_member`") # noqa: E501
1802
- # verify the required parameter 'team' is set
1803
- if self.api_client.client_side_validation and ('team' not in local_var_params or # noqa: E501
1804
- local_var_params['team'] is None): # noqa: E501
1805
- raise ApiValueError("Missing the required parameter `team` when calling `patch_team_member`") # noqa: E501
1806
- # verify the required parameter 'member_user' is set
1807
- if self.api_client.client_side_validation and ('member_user' not in local_var_params or # noqa: E501
1808
- local_var_params['member_user'] is None): # noqa: E501
1809
- raise ApiValueError("Missing the required parameter `member_user` when calling `patch_team_member`") # noqa: E501
1810
- # verify the required parameter 'body' is set
1811
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1812
- local_var_params['body'] is None): # noqa: E501
1813
- raise ApiValueError("Missing the required parameter `body` when calling `patch_team_member`") # noqa: E501
1814
-
1815
- collection_formats = {}
1816
-
1817
- path_params = {}
1818
- if 'owner' in local_var_params:
1819
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1820
- if 'team' in local_var_params:
1821
- path_params['team'] = local_var_params['team'] # noqa: E501
1822
- if 'member_user' in local_var_params:
1823
- path_params['member.user'] = local_var_params['member_user'] # noqa: E501
1824
-
1825
- query_params = []
1826
-
1827
- header_params = {}
1828
-
1829
- form_params = []
1830
- local_var_files = {}
1831
-
1832
- body_params = None
1833
- if 'body' in local_var_params:
1834
- body_params = local_var_params['body']
1835
- # HTTP header `Accept`
1836
- header_params['Accept'] = self.api_client.select_header_accept(
1837
- ['application/json']) # noqa: E501
1839
+ _params[_key] = _val
1840
+ del _params['kwargs']
1838
1841
 
1839
- # HTTP header `Content-Type`
1840
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1841
- ['application/json']) # noqa: E501
1842
+ _collection_formats = {}
1842
1843
 
1843
- # Authentication setting
1844
- auth_settings = ['ApiKey'] # noqa: E501
1844
+ # process the path parameters
1845
+ _path_params = {}
1846
+ if _params['owner']:
1847
+ _path_params['owner'] = _params['owner']
1845
1848
 
1846
- response_types_map = {
1847
- 200: "V1TeamMember",
1848
- 204: "object",
1849
- 403: "object",
1850
- 404: "object",
1849
+ if _params['team']:
1850
+ _path_params['team'] = _params['team']
1851
+
1852
+ if _params['member_user']:
1853
+ _path_params['member.user'] = _params['member_user']
1854
+
1855
+
1856
+ # process the query parameters
1857
+ _query_params = []
1858
+ # process the header parameters
1859
+ _header_params = dict(_params.get('_headers', {}))
1860
+ # process the form parameters
1861
+ _form_params = []
1862
+ _files = {}
1863
+ # process the body parameter
1864
+ _body_params = None
1865
+ if _params['body']:
1866
+ _body_params = _params['body']
1867
+
1868
+ # set the HTTP header `Accept`
1869
+ _header_params['Accept'] = self.api_client.select_header_accept(
1870
+ ['application/json']) # noqa: E501
1871
+
1872
+ # set the HTTP header `Content-Type`
1873
+ _content_types_list = _params.get('_content_type',
1874
+ self.api_client.select_header_content_type(
1875
+ ['application/json']))
1876
+ if _content_types_list:
1877
+ _header_params['Content-Type'] = _content_types_list
1878
+
1879
+ # authentication setting
1880
+ _auth_settings = ['ApiKey'] # noqa: E501
1881
+
1882
+ _response_types_map = {
1883
+ '200': "V1TeamMember",
1884
+ '204': "object",
1885
+ '403': "object",
1886
+ '404': "object",
1851
1887
  }
1852
1888
 
1853
1889
  return self.api_client.call_api(
1854
1890
  '/api/v1/orgs/{owner}/teams/{team}/members/{member.user}', 'PATCH',
1855
- path_params,
1856
- query_params,
1857
- header_params,
1858
- body=body_params,
1859
- post_params=form_params,
1860
- files=local_var_files,
1861
- response_types_map=response_types_map,
1862
- auth_settings=auth_settings,
1863
- async_req=local_var_params.get('async_req'),
1864
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1865
- _preload_content=local_var_params.get('_preload_content', True),
1866
- _request_timeout=local_var_params.get('_request_timeout'),
1867
- collection_formats=collection_formats,
1868
- _request_auth=local_var_params.get('_request_auth'))
1869
-
1870
- def update_team(self, owner, team_name, body, **kwargs): # noqa: E501
1891
+ _path_params,
1892
+ _query_params,
1893
+ _header_params,
1894
+ body=_body_params,
1895
+ post_params=_form_params,
1896
+ files=_files,
1897
+ response_types_map=_response_types_map,
1898
+ auth_settings=_auth_settings,
1899
+ async_req=_params.get('async_req'),
1900
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1901
+ _preload_content=_params.get('_preload_content', True),
1902
+ _request_timeout=_params.get('_request_timeout'),
1903
+ collection_formats=_collection_formats,
1904
+ _request_auth=_params.get('_request_auth'))
1905
+
1906
+ @validate_arguments
1907
+ def update_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name : Annotated[StrictStr, Field(..., description="Name")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs) -> V1Team: # noqa: E501
1871
1908
  """Update team # noqa: E501
1872
1909
 
1873
1910
  This method makes a synchronous HTTP request by default. To make an
@@ -1900,7 +1937,8 @@ class TeamsV1Api(object):
1900
1937
  kwargs['_return_http_data_only'] = True
1901
1938
  return self.update_team_with_http_info(owner, team_name, body, **kwargs) # noqa: E501
1902
1939
 
1903
- def update_team_with_http_info(self, owner, team_name, body, **kwargs): # noqa: E501
1940
+ @validate_arguments
1941
+ def update_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name : Annotated[StrictStr, Field(..., description="Name")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs): # noqa: E501
1904
1942
  """Update team # noqa: E501
1905
1943
 
1906
1944
  This method makes a synchronous HTTP request by default. To make an
@@ -1932,104 +1970,105 @@ class TeamsV1Api(object):
1932
1970
  request; this effectively ignores the authentication
1933
1971
  in the spec for a single request.
1934
1972
  :type _request_auth: dict, optional
1973
+ :type _content_type: string, optional: force content-type for the request
1935
1974
  :return: Returns the result object.
1936
1975
  If the method is called asynchronously,
1937
1976
  returns the request thread.
1938
1977
  :rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
1939
1978
  """
1940
1979
 
1941
- local_var_params = locals()
1980
+ _params = locals()
1942
1981
 
1943
- all_params = [
1982
+ _all_params = [
1944
1983
  'owner',
1945
1984
  'team_name',
1946
1985
  'body'
1947
1986
  ]
1948
- all_params.extend(
1987
+ _all_params.extend(
1949
1988
  [
1950
1989
  'async_req',
1951
1990
  '_return_http_data_only',
1952
1991
  '_preload_content',
1953
1992
  '_request_timeout',
1954
- '_request_auth'
1993
+ '_request_auth',
1994
+ '_content_type',
1995
+ '_headers'
1955
1996
  ]
1956
1997
  )
1957
1998
 
1958
- for key, val in six.iteritems(local_var_params['kwargs']):
1959
- if key not in all_params:
1999
+ # validate the arguments
2000
+ for _key, _val in _params['kwargs'].items():
2001
+ if _key not in _all_params:
1960
2002
  raise ApiTypeError(
1961
2003
  "Got an unexpected keyword argument '%s'"
1962
- " to method update_team" % key
2004
+ " to method update_team" % _key
1963
2005
  )
1964
- local_var_params[key] = val
1965
- del local_var_params['kwargs']
1966
- # verify the required parameter 'owner' is set
1967
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1968
- local_var_params['owner'] is None): # noqa: E501
1969
- raise ApiValueError("Missing the required parameter `owner` when calling `update_team`") # noqa: E501
1970
- # verify the required parameter 'team_name' is set
1971
- if self.api_client.client_side_validation and ('team_name' not in local_var_params or # noqa: E501
1972
- local_var_params['team_name'] is None): # noqa: E501
1973
- raise ApiValueError("Missing the required parameter `team_name` when calling `update_team`") # noqa: E501
1974
- # verify the required parameter 'body' is set
1975
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1976
- local_var_params['body'] is None): # noqa: E501
1977
- raise ApiValueError("Missing the required parameter `body` when calling `update_team`") # noqa: E501
1978
-
1979
- collection_formats = {}
1980
-
1981
- path_params = {}
1982
- if 'owner' in local_var_params:
1983
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1984
- if 'team_name' in local_var_params:
1985
- path_params['team.name'] = local_var_params['team_name'] # noqa: E501
1986
-
1987
- query_params = []
1988
-
1989
- header_params = {}
1990
-
1991
- form_params = []
1992
- local_var_files = {}
1993
-
1994
- body_params = None
1995
- if 'body' in local_var_params:
1996
- body_params = local_var_params['body']
1997
- # HTTP header `Accept`
1998
- header_params['Accept'] = self.api_client.select_header_accept(
1999
- ['application/json']) # noqa: E501
2000
-
2001
- # HTTP header `Content-Type`
2002
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2006
+ _params[_key] = _val
2007
+ del _params['kwargs']
2008
+
2009
+ _collection_formats = {}
2010
+
2011
+ # process the path parameters
2012
+ _path_params = {}
2013
+ if _params['owner']:
2014
+ _path_params['owner'] = _params['owner']
2015
+
2016
+ if _params['team_name']:
2017
+ _path_params['team.name'] = _params['team_name']
2018
+
2019
+
2020
+ # process the query parameters
2021
+ _query_params = []
2022
+ # process the header parameters
2023
+ _header_params = dict(_params.get('_headers', {}))
2024
+ # process the form parameters
2025
+ _form_params = []
2026
+ _files = {}
2027
+ # process the body parameter
2028
+ _body_params = None
2029
+ if _params['body']:
2030
+ _body_params = _params['body']
2031
+
2032
+ # set the HTTP header `Accept`
2033
+ _header_params['Accept'] = self.api_client.select_header_accept(
2003
2034
  ['application/json']) # noqa: E501
2004
2035
 
2005
- # Authentication setting
2006
- auth_settings = ['ApiKey'] # noqa: E501
2007
-
2008
- response_types_map = {
2009
- 200: "V1Team",
2010
- 204: "object",
2011
- 403: "object",
2012
- 404: "object",
2036
+ # set the HTTP header `Content-Type`
2037
+ _content_types_list = _params.get('_content_type',
2038
+ self.api_client.select_header_content_type(
2039
+ ['application/json']))
2040
+ if _content_types_list:
2041
+ _header_params['Content-Type'] = _content_types_list
2042
+
2043
+ # authentication setting
2044
+ _auth_settings = ['ApiKey'] # noqa: E501
2045
+
2046
+ _response_types_map = {
2047
+ '200': "V1Team",
2048
+ '204': "object",
2049
+ '403': "object",
2050
+ '404': "object",
2013
2051
  }
2014
2052
 
2015
2053
  return self.api_client.call_api(
2016
2054
  '/api/v1/orgs/{owner}/teams/{team.name}', 'PUT',
2017
- path_params,
2018
- query_params,
2019
- header_params,
2020
- body=body_params,
2021
- post_params=form_params,
2022
- files=local_var_files,
2023
- response_types_map=response_types_map,
2024
- auth_settings=auth_settings,
2025
- async_req=local_var_params.get('async_req'),
2026
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2027
- _preload_content=local_var_params.get('_preload_content', True),
2028
- _request_timeout=local_var_params.get('_request_timeout'),
2029
- collection_formats=collection_formats,
2030
- _request_auth=local_var_params.get('_request_auth'))
2031
-
2032
- def update_team_member(self, owner, team, member_user, body, **kwargs): # noqa: E501
2055
+ _path_params,
2056
+ _query_params,
2057
+ _header_params,
2058
+ body=_body_params,
2059
+ post_params=_form_params,
2060
+ files=_files,
2061
+ response_types_map=_response_types_map,
2062
+ auth_settings=_auth_settings,
2063
+ async_req=_params.get('async_req'),
2064
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
2065
+ _preload_content=_params.get('_preload_content', True),
2066
+ _request_timeout=_params.get('_request_timeout'),
2067
+ collection_formats=_collection_formats,
2068
+ _request_auth=_params.get('_request_auth'))
2069
+
2070
+ @validate_arguments
2071
+ def update_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], member_user : Annotated[StrictStr, Field(..., description="User")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs) -> V1TeamMember: # noqa: E501
2033
2072
  """Update team member # noqa: E501
2034
2073
 
2035
2074
  This method makes a synchronous HTTP request by default. To make an
@@ -2064,7 +2103,8 @@ class TeamsV1Api(object):
2064
2103
  kwargs['_return_http_data_only'] = True
2065
2104
  return self.update_team_member_with_http_info(owner, team, member_user, body, **kwargs) # noqa: E501
2066
2105
 
2067
- def update_team_member_with_http_info(self, owner, team, member_user, body, **kwargs): # noqa: E501
2106
+ @validate_arguments
2107
+ def update_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], member_user : Annotated[StrictStr, Field(..., description="User")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs): # noqa: E501
2068
2108
  """Update team member # noqa: E501
2069
2109
 
2070
2110
  This method makes a synchronous HTTP request by default. To make an
@@ -2098,106 +2138,103 @@ class TeamsV1Api(object):
2098
2138
  request; this effectively ignores the authentication
2099
2139
  in the spec for a single request.
2100
2140
  :type _request_auth: dict, optional
2141
+ :type _content_type: string, optional: force content-type for the request
2101
2142
  :return: Returns the result object.
2102
2143
  If the method is called asynchronously,
2103
2144
  returns the request thread.
2104
2145
  :rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
2105
2146
  """
2106
2147
 
2107
- local_var_params = locals()
2148
+ _params = locals()
2108
2149
 
2109
- all_params = [
2150
+ _all_params = [
2110
2151
  'owner',
2111
2152
  'team',
2112
2153
  'member_user',
2113
2154
  'body'
2114
2155
  ]
2115
- all_params.extend(
2156
+ _all_params.extend(
2116
2157
  [
2117
2158
  'async_req',
2118
2159
  '_return_http_data_only',
2119
2160
  '_preload_content',
2120
2161
  '_request_timeout',
2121
- '_request_auth'
2162
+ '_request_auth',
2163
+ '_content_type',
2164
+ '_headers'
2122
2165
  ]
2123
2166
  )
2124
2167
 
2125
- for key, val in six.iteritems(local_var_params['kwargs']):
2126
- if key not in all_params:
2168
+ # validate the arguments
2169
+ for _key, _val in _params['kwargs'].items():
2170
+ if _key not in _all_params:
2127
2171
  raise ApiTypeError(
2128
2172
  "Got an unexpected keyword argument '%s'"
2129
- " to method update_team_member" % key
2173
+ " to method update_team_member" % _key
2130
2174
  )
2131
- local_var_params[key] = val
2132
- del local_var_params['kwargs']
2133
- # verify the required parameter 'owner' is set
2134
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
2135
- local_var_params['owner'] is None): # noqa: E501
2136
- raise ApiValueError("Missing the required parameter `owner` when calling `update_team_member`") # noqa: E501
2137
- # verify the required parameter 'team' is set
2138
- if self.api_client.client_side_validation and ('team' not in local_var_params or # noqa: E501
2139
- local_var_params['team'] is None): # noqa: E501
2140
- raise ApiValueError("Missing the required parameter `team` when calling `update_team_member`") # noqa: E501
2141
- # verify the required parameter 'member_user' is set
2142
- if self.api_client.client_side_validation and ('member_user' not in local_var_params or # noqa: E501
2143
- local_var_params['member_user'] is None): # noqa: E501
2144
- raise ApiValueError("Missing the required parameter `member_user` when calling `update_team_member`") # noqa: E501
2145
- # verify the required parameter 'body' is set
2146
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
2147
- local_var_params['body'] is None): # noqa: E501
2148
- raise ApiValueError("Missing the required parameter `body` when calling `update_team_member`") # noqa: E501
2149
-
2150
- collection_formats = {}
2151
-
2152
- path_params = {}
2153
- if 'owner' in local_var_params:
2154
- path_params['owner'] = local_var_params['owner'] # noqa: E501
2155
- if 'team' in local_var_params:
2156
- path_params['team'] = local_var_params['team'] # noqa: E501
2157
- if 'member_user' in local_var_params:
2158
- path_params['member.user'] = local_var_params['member_user'] # noqa: E501
2159
-
2160
- query_params = []
2161
-
2162
- header_params = {}
2163
-
2164
- form_params = []
2165
- local_var_files = {}
2166
-
2167
- body_params = None
2168
- if 'body' in local_var_params:
2169
- body_params = local_var_params['body']
2170
- # HTTP header `Accept`
2171
- header_params['Accept'] = self.api_client.select_header_accept(
2172
- ['application/json']) # noqa: E501
2175
+ _params[_key] = _val
2176
+ del _params['kwargs']
2173
2177
 
2174
- # HTTP header `Content-Type`
2175
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2176
- ['application/json']) # noqa: E501
2178
+ _collection_formats = {}
2179
+
2180
+ # process the path parameters
2181
+ _path_params = {}
2182
+ if _params['owner']:
2183
+ _path_params['owner'] = _params['owner']
2184
+
2185
+ if _params['team']:
2186
+ _path_params['team'] = _params['team']
2177
2187
 
2178
- # Authentication setting
2179
- auth_settings = ['ApiKey'] # noqa: E501
2188
+ if _params['member_user']:
2189
+ _path_params['member.user'] = _params['member_user']
2190
+
2191
+
2192
+ # process the query parameters
2193
+ _query_params = []
2194
+ # process the header parameters
2195
+ _header_params = dict(_params.get('_headers', {}))
2196
+ # process the form parameters
2197
+ _form_params = []
2198
+ _files = {}
2199
+ # process the body parameter
2200
+ _body_params = None
2201
+ if _params['body']:
2202
+ _body_params = _params['body']
2203
+
2204
+ # set the HTTP header `Accept`
2205
+ _header_params['Accept'] = self.api_client.select_header_accept(
2206
+ ['application/json']) # noqa: E501
2180
2207
 
2181
- response_types_map = {
2182
- 200: "V1TeamMember",
2183
- 204: "object",
2184
- 403: "object",
2185
- 404: "object",
2208
+ # set the HTTP header `Content-Type`
2209
+ _content_types_list = _params.get('_content_type',
2210
+ self.api_client.select_header_content_type(
2211
+ ['application/json']))
2212
+ if _content_types_list:
2213
+ _header_params['Content-Type'] = _content_types_list
2214
+
2215
+ # authentication setting
2216
+ _auth_settings = ['ApiKey'] # noqa: E501
2217
+
2218
+ _response_types_map = {
2219
+ '200': "V1TeamMember",
2220
+ '204': "object",
2221
+ '403': "object",
2222
+ '404': "object",
2186
2223
  }
2187
2224
 
2188
2225
  return self.api_client.call_api(
2189
2226
  '/api/v1/orgs/{owner}/teams/{team}/members/{member.user}', 'PUT',
2190
- path_params,
2191
- query_params,
2192
- header_params,
2193
- body=body_params,
2194
- post_params=form_params,
2195
- files=local_var_files,
2196
- response_types_map=response_types_map,
2197
- auth_settings=auth_settings,
2198
- async_req=local_var_params.get('async_req'),
2199
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2200
- _preload_content=local_var_params.get('_preload_content', True),
2201
- _request_timeout=local_var_params.get('_request_timeout'),
2202
- collection_formats=collection_formats,
2203
- _request_auth=local_var_params.get('_request_auth'))
2227
+ _path_params,
2228
+ _query_params,
2229
+ _header_params,
2230
+ body=_body_params,
2231
+ post_params=_form_params,
2232
+ files=_files,
2233
+ response_types_map=_response_types_map,
2234
+ auth_settings=_auth_settings,
2235
+ async_req=_params.get('async_req'),
2236
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
2237
+ _preload_content=_params.get('_preload_content', True),
2238
+ _request_timeout=_params.get('_request_timeout'),
2239
+ collection_formats=_collection_formats,
2240
+ _request_auth=_params.get('_request_auth'))