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

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