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_searches_response import V1ListSearchesResponse
26
+ from polyaxon_sdk.models.v1_search import V1Search
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 ProjectSearchesV1Api(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_project_search(self, owner, project, body, **kwargs): # noqa: E501
47
+ @validate_arguments
48
+ def create_project_search(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs) -> V1Search: # noqa: E501
57
49
  """Create project search # noqa: E501
58
50
 
59
51
  This method makes a synchronous HTTP request by default. To make an
@@ -86,7 +78,8 @@ class ProjectSearchesV1Api(object):
86
78
  kwargs['_return_http_data_only'] = True
87
79
  return self.create_project_search_with_http_info(owner, project, body, **kwargs) # noqa: E501
88
80
 
89
- def create_project_search_with_http_info(self, owner, project, body, **kwargs): # noqa: E501
81
+ @validate_arguments
82
+ def create_project_search_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs): # noqa: E501
90
83
  """Create project search # noqa: E501
91
84
 
92
85
  This method makes a synchronous HTTP request by default. To make an
@@ -118,104 +111,105 @@ class ProjectSearchesV1Api(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(V1Search, 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
  'project',
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_project_search" % key
145
+ " to method create_project_search" % _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_project_search`") # noqa: E501
156
- # verify the required parameter 'project' is set
157
- if self.api_client.client_side_validation and ('project' not in local_var_params or # noqa: E501
158
- local_var_params['project'] is None): # noqa: E501
159
- raise ApiValueError("Missing the required parameter `project` when calling `create_project_search`") # 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_project_search`") # 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 'project' in local_var_params:
171
- path_params['project'] = local_var_params['project'] # 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(
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['project']:
158
+ _path_params['project'] = _params['project']
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(
185
175
  ['application/json']) # noqa: E501
186
176
 
187
- # HTTP header `Content-Type`
188
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
189
- ['application/json']) # noqa: E501
190
-
191
- # Authentication setting
192
- auth_settings = ['ApiKey'] # noqa: E501
193
-
194
- response_types_map = {
195
- 200: "V1Search",
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': "V1Search",
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/{owner}/{project}/searches', '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_project_search(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_project_search(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 project search # noqa: E501
220
214
 
221
215
  This method makes a synchronous HTTP request by default. To make an
@@ -248,7 +242,8 @@ class ProjectSearchesV1Api(object):
248
242
  kwargs['_return_http_data_only'] = True
249
243
  return self.delete_project_search_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
250
244
 
251
- def delete_project_search_with_http_info(self, owner, entity, uuid, **kwargs): # noqa: E501
245
+ @validate_arguments
246
+ def delete_project_search_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 project search # noqa: E501
253
248
 
254
249
  This method makes a synchronous HTTP request by default. To make an
@@ -280,95 +275,93 @@ class ProjectSearchesV1Api(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_project_search" % key
309
+ " to method delete_project_search" % _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_project_search`") # 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_project_search`") # 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_project_search`") # 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/{owner}/{entity}/searches/{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_project_search(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_project_search(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) -> V1Search: # noqa: E501
372
365
  """Get project search # noqa: E501
373
366
 
374
367
  This method makes a synchronous HTTP request by default. To make an
@@ -401,7 +394,8 @@ class ProjectSearchesV1Api(object):
401
394
  kwargs['_return_http_data_only'] = True
402
395
  return self.get_project_search_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
403
396
 
404
- def get_project_search_with_http_info(self, owner, entity, uuid, **kwargs): # noqa: E501
397
+ @validate_arguments
398
+ def get_project_search_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 project search # noqa: E501
406
400
 
407
401
  This method makes a synchronous HTTP request by default. To make an
@@ -433,106 +427,104 @@ class ProjectSearchesV1Api(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(V1Search, 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_project_search" % key
461
+ " to method get_project_search" % _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_project_search`") # 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_project_search`") # 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_project_search`") # 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: "V1Search",
507
- 204: "object",
508
- 403: "object",
509
- 404: "object",
496
+ _response_types_map = {
497
+ '200': "V1Search",
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/{owner}/{entity}/searches/{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_project_search_names(self, owner, name, **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_project_search_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) -> V1ListSearchesResponse: # noqa: E501
530
522
  """List project search 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_project_search_names(owner, name, async_req=True)
527
+ >>> thread = api.list_project_search_names(owner, name, 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)
@@ -569,15 +561,16 @@ class ProjectSearchesV1Api(object):
569
561
  :rtype: V1ListSearchesResponse
570
562
  """
571
563
  kwargs['_return_http_data_only'] = True
572
- return self.list_project_search_names_with_http_info(owner, name, **kwargs) # noqa: E501
564
+ return self.list_project_search_names_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
573
565
 
574
- def list_project_search_names_with_http_info(self, owner, name, **kwargs): # noqa: E501
566
+ @validate_arguments
567
+ def list_project_search_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
575
568
  """List project search names # noqa: E501
576
569
 
577
570
  This method makes a synchronous HTTP request by default. To make an
578
571
  asynchronous HTTP request, please pass async_req=True
579
572
 
580
- >>> thread = api.list_project_search_names_with_http_info(owner, name, async_req=True)
573
+ >>> thread = api.list_project_search_names_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
581
574
  >>> result = thread.get()
582
575
 
583
576
  :param owner: Owner of the namespace (required)
@@ -615,15 +608,16 @@ class ProjectSearchesV1Api(object):
615
608
  request; this effectively ignores the authentication
616
609
  in the spec for a single request.
617
610
  :type _request_auth: dict, optional
611
+ :type _content_type: string, optional: force content-type for the request
618
612
  :return: Returns the result object.
619
613
  If the method is called asynchronously,
620
614
  returns the request thread.
621
615
  :rtype: tuple(V1ListSearchesResponse, status_code(int), headers(HTTPHeaderDict))
622
616
  """
623
617
 
624
- local_var_params = locals()
618
+ _params = locals()
625
619
 
626
- all_params = [
620
+ _all_params = [
627
621
  'owner',
628
622
  'name',
629
623
  'offset',
@@ -634,101 +628,108 @@ class ProjectSearchesV1Api(object):
634
628
  'mode',
635
629
  'no_page'
636
630
  ]
637
- all_params.extend(
631
+ _all_params.extend(
638
632
  [
639
633
  'async_req',
640
634
  '_return_http_data_only',
641
635
  '_preload_content',
642
636
  '_request_timeout',
643
- '_request_auth'
637
+ '_request_auth',
638
+ '_content_type',
639
+ '_headers'
644
640
  ]
645
641
  )
646
642
 
647
- for key, val in six.iteritems(local_var_params['kwargs']):
648
- if key not in all_params:
643
+ # validate the arguments
644
+ for _key, _val in _params['kwargs'].items():
645
+ if _key not in _all_params:
649
646
  raise ApiTypeError(
650
647
  "Got an unexpected keyword argument '%s'"
651
- " to method list_project_search_names" % key
648
+ " to method list_project_search_names" % _key
652
649
  )
653
- local_var_params[key] = val
654
- del local_var_params['kwargs']
655
- # verify the required parameter 'owner' is set
656
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
657
- local_var_params['owner'] is None): # noqa: E501
658
- raise ApiValueError("Missing the required parameter `owner` when calling `list_project_search_names`") # noqa: E501
659
- # verify the required parameter 'name' is set
660
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
661
- local_var_params['name'] is None): # noqa: E501
662
- raise ApiValueError("Missing the required parameter `name` when calling `list_project_search_names`") # noqa: E501
663
-
664
- collection_formats = {}
665
-
666
- path_params = {}
667
- if 'owner' in local_var_params:
668
- path_params['owner'] = local_var_params['owner'] # noqa: E501
669
- if 'name' in local_var_params:
670
- path_params['name'] = local_var_params['name'] # noqa: E501
671
-
672
- query_params = []
673
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
674
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
675
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
676
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
677
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
678
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
679
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
680
- query_params.append(('query', local_var_params['query'])) # noqa: E501
681
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
682
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
683
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
684
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
685
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
686
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
687
-
688
- header_params = {}
689
-
690
- form_params = []
691
- local_var_files = {}
692
-
693
- body_params = None
694
- # HTTP header `Accept`
695
- header_params['Accept'] = self.api_client.select_header_accept(
650
+ _params[_key] = _val
651
+ del _params['kwargs']
652
+
653
+ _collection_formats = {}
654
+
655
+ # process the path parameters
656
+ _path_params = {}
657
+ if _params['owner']:
658
+ _path_params['owner'] = _params['owner']
659
+
660
+ if _params['name']:
661
+ _path_params['name'] = _params['name']
662
+
663
+
664
+ # process the query parameters
665
+ _query_params = []
666
+ if _params.get('offset') is not None: # noqa: E501
667
+ _query_params.append(('offset', _params['offset']))
668
+
669
+ if _params.get('limit') is not None: # noqa: E501
670
+ _query_params.append(('limit', _params['limit']))
671
+
672
+ if _params.get('sort') is not None: # noqa: E501
673
+ _query_params.append(('sort', _params['sort']))
674
+
675
+ if _params.get('query') is not None: # noqa: E501
676
+ _query_params.append(('query', _params['query']))
677
+
678
+ if _params.get('bookmarks') is not None: # noqa: E501
679
+ _query_params.append(('bookmarks', _params['bookmarks']))
680
+
681
+ if _params.get('mode') is not None: # noqa: E501
682
+ _query_params.append(('mode', _params['mode']))
683
+
684
+ if _params.get('no_page') is not None: # noqa: E501
685
+ _query_params.append(('no_page', _params['no_page']))
686
+
687
+ # process the header parameters
688
+ _header_params = dict(_params.get('_headers', {}))
689
+ # process the form parameters
690
+ _form_params = []
691
+ _files = {}
692
+ # process the body parameter
693
+ _body_params = None
694
+ # set the HTTP header `Accept`
695
+ _header_params['Accept'] = self.api_client.select_header_accept(
696
696
  ['application/json']) # noqa: E501
697
697
 
698
- # Authentication setting
699
- auth_settings = ['ApiKey'] # noqa: E501
698
+ # authentication setting
699
+ _auth_settings = ['ApiKey'] # noqa: E501
700
700
 
701
- response_types_map = {
702
- 200: "V1ListSearchesResponse",
703
- 204: "object",
704
- 403: "object",
705
- 404: "object",
701
+ _response_types_map = {
702
+ '200': "V1ListSearchesResponse",
703
+ '204': "object",
704
+ '403': "object",
705
+ '404': "object",
706
706
  }
707
707
 
708
708
  return self.api_client.call_api(
709
709
  '/api/v1/{owner}/{name}/searches/names', 'GET',
710
- path_params,
711
- query_params,
712
- header_params,
713
- body=body_params,
714
- post_params=form_params,
715
- files=local_var_files,
716
- response_types_map=response_types_map,
717
- auth_settings=auth_settings,
718
- async_req=local_var_params.get('async_req'),
719
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
720
- _preload_content=local_var_params.get('_preload_content', True),
721
- _request_timeout=local_var_params.get('_request_timeout'),
722
- collection_formats=collection_formats,
723
- _request_auth=local_var_params.get('_request_auth'))
724
-
725
- def list_project_searches(self, owner, name, **kwargs): # noqa: E501
710
+ _path_params,
711
+ _query_params,
712
+ _header_params,
713
+ body=_body_params,
714
+ post_params=_form_params,
715
+ files=_files,
716
+ response_types_map=_response_types_map,
717
+ auth_settings=_auth_settings,
718
+ async_req=_params.get('async_req'),
719
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
720
+ _preload_content=_params.get('_preload_content', True),
721
+ _request_timeout=_params.get('_request_timeout'),
722
+ collection_formats=_collection_formats,
723
+ _request_auth=_params.get('_request_auth'))
724
+
725
+ @validate_arguments
726
+ def list_project_searches(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) -> V1ListSearchesResponse: # noqa: E501
726
727
  """List project searches # noqa: E501
727
728
 
728
729
  This method makes a synchronous HTTP request by default. To make an
729
730
  asynchronous HTTP request, please pass async_req=True
730
731
 
731
- >>> thread = api.list_project_searches(owner, name, async_req=True)
732
+ >>> thread = api.list_project_searches(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
732
733
  >>> result = thread.get()
733
734
 
734
735
  :param owner: Owner of the namespace (required)
@@ -765,15 +766,16 @@ class ProjectSearchesV1Api(object):
765
766
  :rtype: V1ListSearchesResponse
766
767
  """
767
768
  kwargs['_return_http_data_only'] = True
768
- return self.list_project_searches_with_http_info(owner, name, **kwargs) # noqa: E501
769
+ return self.list_project_searches_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
769
770
 
770
- def list_project_searches_with_http_info(self, owner, name, **kwargs): # noqa: E501
771
+ @validate_arguments
772
+ def list_project_searches_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
771
773
  """List project searches # noqa: E501
772
774
 
773
775
  This method makes a synchronous HTTP request by default. To make an
774
776
  asynchronous HTTP request, please pass async_req=True
775
777
 
776
- >>> thread = api.list_project_searches_with_http_info(owner, name, async_req=True)
778
+ >>> thread = api.list_project_searches_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
777
779
  >>> result = thread.get()
778
780
 
779
781
  :param owner: Owner of the namespace (required)
@@ -811,15 +813,16 @@ class ProjectSearchesV1Api(object):
811
813
  request; this effectively ignores the authentication
812
814
  in the spec for a single request.
813
815
  :type _request_auth: dict, optional
816
+ :type _content_type: string, optional: force content-type for the request
814
817
  :return: Returns the result object.
815
818
  If the method is called asynchronously,
816
819
  returns the request thread.
817
820
  :rtype: tuple(V1ListSearchesResponse, status_code(int), headers(HTTPHeaderDict))
818
821
  """
819
822
 
820
- local_var_params = locals()
823
+ _params = locals()
821
824
 
822
- all_params = [
825
+ _all_params = [
823
826
  'owner',
824
827
  'name',
825
828
  'offset',
@@ -830,95 +833,102 @@ class ProjectSearchesV1Api(object):
830
833
  'mode',
831
834
  'no_page'
832
835
  ]
833
- all_params.extend(
836
+ _all_params.extend(
834
837
  [
835
838
  'async_req',
836
839
  '_return_http_data_only',
837
840
  '_preload_content',
838
841
  '_request_timeout',
839
- '_request_auth'
842
+ '_request_auth',
843
+ '_content_type',
844
+ '_headers'
840
845
  ]
841
846
  )
842
847
 
843
- for key, val in six.iteritems(local_var_params['kwargs']):
844
- if key not in all_params:
848
+ # validate the arguments
849
+ for _key, _val in _params['kwargs'].items():
850
+ if _key not in _all_params:
845
851
  raise ApiTypeError(
846
852
  "Got an unexpected keyword argument '%s'"
847
- " to method list_project_searches" % key
853
+ " to method list_project_searches" % _key
848
854
  )
849
- local_var_params[key] = val
850
- del local_var_params['kwargs']
851
- # verify the required parameter 'owner' is set
852
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
853
- local_var_params['owner'] is None): # noqa: E501
854
- raise ApiValueError("Missing the required parameter `owner` when calling `list_project_searches`") # noqa: E501
855
- # verify the required parameter 'name' is set
856
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
857
- local_var_params['name'] is None): # noqa: E501
858
- raise ApiValueError("Missing the required parameter `name` when calling `list_project_searches`") # noqa: E501
859
-
860
- collection_formats = {}
861
-
862
- path_params = {}
863
- if 'owner' in local_var_params:
864
- path_params['owner'] = local_var_params['owner'] # noqa: E501
865
- if 'name' in local_var_params:
866
- path_params['name'] = local_var_params['name'] # noqa: E501
867
-
868
- query_params = []
869
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
870
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
871
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
872
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
873
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
874
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
875
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
876
- query_params.append(('query', local_var_params['query'])) # noqa: E501
877
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
878
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
879
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
880
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
881
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
882
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
883
-
884
- header_params = {}
885
-
886
- form_params = []
887
- local_var_files = {}
888
-
889
- body_params = None
890
- # HTTP header `Accept`
891
- header_params['Accept'] = self.api_client.select_header_accept(
855
+ _params[_key] = _val
856
+ del _params['kwargs']
857
+
858
+ _collection_formats = {}
859
+
860
+ # process the path parameters
861
+ _path_params = {}
862
+ if _params['owner']:
863
+ _path_params['owner'] = _params['owner']
864
+
865
+ if _params['name']:
866
+ _path_params['name'] = _params['name']
867
+
868
+
869
+ # process the query parameters
870
+ _query_params = []
871
+ if _params.get('offset') is not None: # noqa: E501
872
+ _query_params.append(('offset', _params['offset']))
873
+
874
+ if _params.get('limit') is not None: # noqa: E501
875
+ _query_params.append(('limit', _params['limit']))
876
+
877
+ if _params.get('sort') is not None: # noqa: E501
878
+ _query_params.append(('sort', _params['sort']))
879
+
880
+ if _params.get('query') is not None: # noqa: E501
881
+ _query_params.append(('query', _params['query']))
882
+
883
+ if _params.get('bookmarks') is not None: # noqa: E501
884
+ _query_params.append(('bookmarks', _params['bookmarks']))
885
+
886
+ if _params.get('mode') is not None: # noqa: E501
887
+ _query_params.append(('mode', _params['mode']))
888
+
889
+ if _params.get('no_page') is not None: # noqa: E501
890
+ _query_params.append(('no_page', _params['no_page']))
891
+
892
+ # process the header parameters
893
+ _header_params = dict(_params.get('_headers', {}))
894
+ # process the form parameters
895
+ _form_params = []
896
+ _files = {}
897
+ # process the body parameter
898
+ _body_params = None
899
+ # set the HTTP header `Accept`
900
+ _header_params['Accept'] = self.api_client.select_header_accept(
892
901
  ['application/json']) # noqa: E501
893
902
 
894
- # Authentication setting
895
- auth_settings = ['ApiKey'] # noqa: E501
903
+ # authentication setting
904
+ _auth_settings = ['ApiKey'] # noqa: E501
896
905
 
897
- response_types_map = {
898
- 200: "V1ListSearchesResponse",
899
- 204: "object",
900
- 403: "object",
901
- 404: "object",
906
+ _response_types_map = {
907
+ '200': "V1ListSearchesResponse",
908
+ '204': "object",
909
+ '403': "object",
910
+ '404': "object",
902
911
  }
903
912
 
904
913
  return self.api_client.call_api(
905
914
  '/api/v1/{owner}/{name}/searches', 'GET',
906
- path_params,
907
- query_params,
908
- header_params,
909
- body=body_params,
910
- post_params=form_params,
911
- files=local_var_files,
912
- response_types_map=response_types_map,
913
- auth_settings=auth_settings,
914
- async_req=local_var_params.get('async_req'),
915
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
916
- _preload_content=local_var_params.get('_preload_content', True),
917
- _request_timeout=local_var_params.get('_request_timeout'),
918
- collection_formats=collection_formats,
919
- _request_auth=local_var_params.get('_request_auth'))
920
-
921
- def patch_project_search(self, owner, project, search_uuid, body, **kwargs): # noqa: E501
915
+ _path_params,
916
+ _query_params,
917
+ _header_params,
918
+ body=_body_params,
919
+ post_params=_form_params,
920
+ files=_files,
921
+ response_types_map=_response_types_map,
922
+ auth_settings=_auth_settings,
923
+ async_req=_params.get('async_req'),
924
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
925
+ _preload_content=_params.get('_preload_content', True),
926
+ _request_timeout=_params.get('_request_timeout'),
927
+ collection_formats=_collection_formats,
928
+ _request_auth=_params.get('_request_auth'))
929
+
930
+ @validate_arguments
931
+ def patch_project_search(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], search_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs) -> V1Search: # noqa: E501
922
932
  """Patch project search # noqa: E501
923
933
 
924
934
  This method makes a synchronous HTTP request by default. To make an
@@ -953,7 +963,8 @@ class ProjectSearchesV1Api(object):
953
963
  kwargs['_return_http_data_only'] = True
954
964
  return self.patch_project_search_with_http_info(owner, project, search_uuid, body, **kwargs) # noqa: E501
955
965
 
956
- def patch_project_search_with_http_info(self, owner, project, search_uuid, body, **kwargs): # noqa: E501
966
+ @validate_arguments
967
+ def patch_project_search_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], search_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs): # noqa: E501
957
968
  """Patch project search # noqa: E501
958
969
 
959
970
  This method makes a synchronous HTTP request by default. To make an
@@ -987,111 +998,109 @@ class ProjectSearchesV1Api(object):
987
998
  request; this effectively ignores the authentication
988
999
  in the spec for a single request.
989
1000
  :type _request_auth: dict, optional
1001
+ :type _content_type: string, optional: force content-type for the request
990
1002
  :return: Returns the result object.
991
1003
  If the method is called asynchronously,
992
1004
  returns the request thread.
993
1005
  :rtype: tuple(V1Search, status_code(int), headers(HTTPHeaderDict))
994
1006
  """
995
1007
 
996
- local_var_params = locals()
1008
+ _params = locals()
997
1009
 
998
- all_params = [
1010
+ _all_params = [
999
1011
  'owner',
1000
1012
  'project',
1001
1013
  'search_uuid',
1002
1014
  'body'
1003
1015
  ]
1004
- all_params.extend(
1016
+ _all_params.extend(
1005
1017
  [
1006
1018
  'async_req',
1007
1019
  '_return_http_data_only',
1008
1020
  '_preload_content',
1009
1021
  '_request_timeout',
1010
- '_request_auth'
1022
+ '_request_auth',
1023
+ '_content_type',
1024
+ '_headers'
1011
1025
  ]
1012
1026
  )
1013
1027
 
1014
- for key, val in six.iteritems(local_var_params['kwargs']):
1015
- if key not in all_params:
1028
+ # validate the arguments
1029
+ for _key, _val in _params['kwargs'].items():
1030
+ if _key not in _all_params:
1016
1031
  raise ApiTypeError(
1017
1032
  "Got an unexpected keyword argument '%s'"
1018
- " to method patch_project_search" % key
1033
+ " to method patch_project_search" % _key
1019
1034
  )
1020
- local_var_params[key] = val
1021
- del local_var_params['kwargs']
1022
- # verify the required parameter 'owner' is set
1023
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1024
- local_var_params['owner'] is None): # noqa: E501
1025
- raise ApiValueError("Missing the required parameter `owner` when calling `patch_project_search`") # noqa: E501
1026
- # verify the required parameter 'project' is set
1027
- if self.api_client.client_side_validation and ('project' not in local_var_params or # noqa: E501
1028
- local_var_params['project'] is None): # noqa: E501
1029
- raise ApiValueError("Missing the required parameter `project` when calling `patch_project_search`") # noqa: E501
1030
- # verify the required parameter 'search_uuid' is set
1031
- if self.api_client.client_side_validation and ('search_uuid' not in local_var_params or # noqa: E501
1032
- local_var_params['search_uuid'] is None): # noqa: E501
1033
- raise ApiValueError("Missing the required parameter `search_uuid` when calling `patch_project_search`") # noqa: E501
1034
- # verify the required parameter 'body' is set
1035
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1036
- local_var_params['body'] is None): # noqa: E501
1037
- raise ApiValueError("Missing the required parameter `body` when calling `patch_project_search`") # noqa: E501
1038
-
1039
- collection_formats = {}
1040
-
1041
- path_params = {}
1042
- if 'owner' in local_var_params:
1043
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1044
- if 'project' in local_var_params:
1045
- path_params['project'] = local_var_params['project'] # noqa: E501
1046
- if 'search_uuid' in local_var_params:
1047
- path_params['search.uuid'] = local_var_params['search_uuid'] # noqa: E501
1048
-
1049
- query_params = []
1050
-
1051
- header_params = {}
1052
-
1053
- form_params = []
1054
- local_var_files = {}
1055
-
1056
- body_params = None
1057
- if 'body' in local_var_params:
1058
- body_params = local_var_params['body']
1059
- # HTTP header `Accept`
1060
- header_params['Accept'] = self.api_client.select_header_accept(
1061
- ['application/json']) # noqa: E501
1035
+ _params[_key] = _val
1036
+ del _params['kwargs']
1062
1037
 
1063
- # HTTP header `Content-Type`
1064
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1065
- ['application/json']) # noqa: E501
1038
+ _collection_formats = {}
1039
+
1040
+ # process the path parameters
1041
+ _path_params = {}
1042
+ if _params['owner']:
1043
+ _path_params['owner'] = _params['owner']
1044
+
1045
+ if _params['project']:
1046
+ _path_params['project'] = _params['project']
1066
1047
 
1067
- # Authentication setting
1068
- auth_settings = ['ApiKey'] # noqa: E501
1048
+ if _params['search_uuid']:
1049
+ _path_params['search.uuid'] = _params['search_uuid']
1069
1050
 
1070
- response_types_map = {
1071
- 200: "V1Search",
1072
- 204: "object",
1073
- 403: "object",
1074
- 404: "object",
1051
+
1052
+ # process the query parameters
1053
+ _query_params = []
1054
+ # process the header parameters
1055
+ _header_params = dict(_params.get('_headers', {}))
1056
+ # process the form parameters
1057
+ _form_params = []
1058
+ _files = {}
1059
+ # process the body parameter
1060
+ _body_params = None
1061
+ if _params['body']:
1062
+ _body_params = _params['body']
1063
+
1064
+ # set the HTTP header `Accept`
1065
+ _header_params['Accept'] = self.api_client.select_header_accept(
1066
+ ['application/json']) # noqa: E501
1067
+
1068
+ # set the HTTP header `Content-Type`
1069
+ _content_types_list = _params.get('_content_type',
1070
+ self.api_client.select_header_content_type(
1071
+ ['application/json']))
1072
+ if _content_types_list:
1073
+ _header_params['Content-Type'] = _content_types_list
1074
+
1075
+ # authentication setting
1076
+ _auth_settings = ['ApiKey'] # noqa: E501
1077
+
1078
+ _response_types_map = {
1079
+ '200': "V1Search",
1080
+ '204': "object",
1081
+ '403': "object",
1082
+ '404': "object",
1075
1083
  }
1076
1084
 
1077
1085
  return self.api_client.call_api(
1078
1086
  '/api/v1/{owner}/{project}/searches/{search.uuid}', 'PATCH',
1079
- path_params,
1080
- query_params,
1081
- header_params,
1082
- body=body_params,
1083
- post_params=form_params,
1084
- files=local_var_files,
1085
- response_types_map=response_types_map,
1086
- auth_settings=auth_settings,
1087
- async_req=local_var_params.get('async_req'),
1088
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1089
- _preload_content=local_var_params.get('_preload_content', True),
1090
- _request_timeout=local_var_params.get('_request_timeout'),
1091
- collection_formats=collection_formats,
1092
- _request_auth=local_var_params.get('_request_auth'))
1093
-
1094
- def promote_project_search(self, owner, entity, uuid, **kwargs): # noqa: E501
1087
+ _path_params,
1088
+ _query_params,
1089
+ _header_params,
1090
+ body=_body_params,
1091
+ post_params=_form_params,
1092
+ files=_files,
1093
+ response_types_map=_response_types_map,
1094
+ auth_settings=_auth_settings,
1095
+ async_req=_params.get('async_req'),
1096
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1097
+ _preload_content=_params.get('_preload_content', True),
1098
+ _request_timeout=_params.get('_request_timeout'),
1099
+ collection_formats=_collection_formats,
1100
+ _request_auth=_params.get('_request_auth'))
1101
+
1102
+ @validate_arguments
1103
+ def promote_project_search(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
1095
1104
  """Promote project search # noqa: E501
1096
1105
 
1097
1106
  This method makes a synchronous HTTP request by default. To make an
@@ -1124,7 +1133,8 @@ class ProjectSearchesV1Api(object):
1124
1133
  kwargs['_return_http_data_only'] = True
1125
1134
  return self.promote_project_search_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
1126
1135
 
1127
- def promote_project_search_with_http_info(self, owner, entity, uuid, **kwargs): # noqa: E501
1136
+ @validate_arguments
1137
+ def promote_project_search_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
1128
1138
  """Promote project search # noqa: E501
1129
1139
 
1130
1140
  This method makes a synchronous HTTP request by default. To make an
@@ -1156,95 +1166,93 @@ class ProjectSearchesV1Api(object):
1156
1166
  request; this effectively ignores the authentication
1157
1167
  in the spec for a single request.
1158
1168
  :type _request_auth: dict, optional
1169
+ :type _content_type: string, optional: force content-type for the request
1159
1170
  :return: Returns the result object.
1160
1171
  If the method is called asynchronously,
1161
1172
  returns the request thread.
1162
1173
  :rtype: None
1163
1174
  """
1164
1175
 
1165
- local_var_params = locals()
1176
+ _params = locals()
1166
1177
 
1167
- all_params = [
1178
+ _all_params = [
1168
1179
  'owner',
1169
1180
  'entity',
1170
1181
  'uuid'
1171
1182
  ]
1172
- all_params.extend(
1183
+ _all_params.extend(
1173
1184
  [
1174
1185
  'async_req',
1175
1186
  '_return_http_data_only',
1176
1187
  '_preload_content',
1177
1188
  '_request_timeout',
1178
- '_request_auth'
1189
+ '_request_auth',
1190
+ '_content_type',
1191
+ '_headers'
1179
1192
  ]
1180
1193
  )
1181
1194
 
1182
- for key, val in six.iteritems(local_var_params['kwargs']):
1183
- if key not in all_params:
1195
+ # validate the arguments
1196
+ for _key, _val in _params['kwargs'].items():
1197
+ if _key not in _all_params:
1184
1198
  raise ApiTypeError(
1185
1199
  "Got an unexpected keyword argument '%s'"
1186
- " to method promote_project_search" % key
1200
+ " to method promote_project_search" % _key
1187
1201
  )
1188
- local_var_params[key] = val
1189
- del local_var_params['kwargs']
1190
- # verify the required parameter 'owner' is set
1191
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1192
- local_var_params['owner'] is None): # noqa: E501
1193
- raise ApiValueError("Missing the required parameter `owner` when calling `promote_project_search`") # noqa: E501
1194
- # verify the required parameter 'entity' is set
1195
- if self.api_client.client_side_validation and ('entity' not in local_var_params or # noqa: E501
1196
- local_var_params['entity'] is None): # noqa: E501
1197
- raise ApiValueError("Missing the required parameter `entity` when calling `promote_project_search`") # noqa: E501
1198
- # verify the required parameter 'uuid' is set
1199
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
1200
- local_var_params['uuid'] is None): # noqa: E501
1201
- raise ApiValueError("Missing the required parameter `uuid` when calling `promote_project_search`") # noqa: E501
1202
-
1203
- collection_formats = {}
1204
-
1205
- path_params = {}
1206
- if 'owner' in local_var_params:
1207
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1208
- if 'entity' in local_var_params:
1209
- path_params['entity'] = local_var_params['entity'] # noqa: E501
1210
- if 'uuid' in local_var_params:
1211
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
1212
-
1213
- query_params = []
1214
-
1215
- header_params = {}
1216
-
1217
- form_params = []
1218
- local_var_files = {}
1219
-
1220
- body_params = None
1221
- # HTTP header `Accept`
1222
- header_params['Accept'] = self.api_client.select_header_accept(
1202
+ _params[_key] = _val
1203
+ del _params['kwargs']
1204
+
1205
+ _collection_formats = {}
1206
+
1207
+ # process the path parameters
1208
+ _path_params = {}
1209
+ if _params['owner']:
1210
+ _path_params['owner'] = _params['owner']
1211
+
1212
+ if _params['entity']:
1213
+ _path_params['entity'] = _params['entity']
1214
+
1215
+ if _params['uuid']:
1216
+ _path_params['uuid'] = _params['uuid']
1217
+
1218
+
1219
+ # process the query parameters
1220
+ _query_params = []
1221
+ # process the header parameters
1222
+ _header_params = dict(_params.get('_headers', {}))
1223
+ # process the form parameters
1224
+ _form_params = []
1225
+ _files = {}
1226
+ # process the body parameter
1227
+ _body_params = None
1228
+ # set the HTTP header `Accept`
1229
+ _header_params['Accept'] = self.api_client.select_header_accept(
1223
1230
  ['application/json']) # noqa: E501
1224
1231
 
1225
- # Authentication setting
1226
- auth_settings = ['ApiKey'] # noqa: E501
1232
+ # authentication setting
1233
+ _auth_settings = ['ApiKey'] # noqa: E501
1227
1234
 
1228
- response_types_map = {}
1235
+ _response_types_map = {}
1229
1236
 
1230
1237
  return self.api_client.call_api(
1231
1238
  '/api/v1/{owner}/{entity}/searches/{uuid}/promote', 'POST',
1232
- path_params,
1233
- query_params,
1234
- header_params,
1235
- body=body_params,
1236
- post_params=form_params,
1237
- files=local_var_files,
1238
- response_types_map=response_types_map,
1239
- auth_settings=auth_settings,
1240
- async_req=local_var_params.get('async_req'),
1241
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1242
- _preload_content=local_var_params.get('_preload_content', True),
1243
- _request_timeout=local_var_params.get('_request_timeout'),
1244
- collection_formats=collection_formats,
1245
- _request_auth=local_var_params.get('_request_auth'))
1246
-
1247
- def update_project_search(self, owner, project, search_uuid, body, **kwargs): # noqa: E501
1239
+ _path_params,
1240
+ _query_params,
1241
+ _header_params,
1242
+ body=_body_params,
1243
+ post_params=_form_params,
1244
+ files=_files,
1245
+ response_types_map=_response_types_map,
1246
+ auth_settings=_auth_settings,
1247
+ async_req=_params.get('async_req'),
1248
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1249
+ _preload_content=_params.get('_preload_content', True),
1250
+ _request_timeout=_params.get('_request_timeout'),
1251
+ collection_formats=_collection_formats,
1252
+ _request_auth=_params.get('_request_auth'))
1253
+
1254
+ @validate_arguments
1255
+ def update_project_search(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], search_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs) -> V1Search: # noqa: E501
1248
1256
  """Update project search # noqa: E501
1249
1257
 
1250
1258
  This method makes a synchronous HTTP request by default. To make an
@@ -1279,7 +1287,8 @@ class ProjectSearchesV1Api(object):
1279
1287
  kwargs['_return_http_data_only'] = True
1280
1288
  return self.update_project_search_with_http_info(owner, project, search_uuid, body, **kwargs) # noqa: E501
1281
1289
 
1282
- def update_project_search_with_http_info(self, owner, project, search_uuid, body, **kwargs): # noqa: E501
1290
+ @validate_arguments
1291
+ def update_project_search_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], search_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs): # noqa: E501
1283
1292
  """Update project search # noqa: E501
1284
1293
 
1285
1294
  This method makes a synchronous HTTP request by default. To make an
@@ -1313,106 +1322,103 @@ class ProjectSearchesV1Api(object):
1313
1322
  request; this effectively ignores the authentication
1314
1323
  in the spec for a single request.
1315
1324
  :type _request_auth: dict, optional
1325
+ :type _content_type: string, optional: force content-type for the request
1316
1326
  :return: Returns the result object.
1317
1327
  If the method is called asynchronously,
1318
1328
  returns the request thread.
1319
1329
  :rtype: tuple(V1Search, status_code(int), headers(HTTPHeaderDict))
1320
1330
  """
1321
1331
 
1322
- local_var_params = locals()
1332
+ _params = locals()
1323
1333
 
1324
- all_params = [
1334
+ _all_params = [
1325
1335
  'owner',
1326
1336
  'project',
1327
1337
  'search_uuid',
1328
1338
  'body'
1329
1339
  ]
1330
- all_params.extend(
1340
+ _all_params.extend(
1331
1341
  [
1332
1342
  'async_req',
1333
1343
  '_return_http_data_only',
1334
1344
  '_preload_content',
1335
1345
  '_request_timeout',
1336
- '_request_auth'
1346
+ '_request_auth',
1347
+ '_content_type',
1348
+ '_headers'
1337
1349
  ]
1338
1350
  )
1339
1351
 
1340
- for key, val in six.iteritems(local_var_params['kwargs']):
1341
- if key not in all_params:
1352
+ # validate the arguments
1353
+ for _key, _val in _params['kwargs'].items():
1354
+ if _key not in _all_params:
1342
1355
  raise ApiTypeError(
1343
1356
  "Got an unexpected keyword argument '%s'"
1344
- " to method update_project_search" % key
1357
+ " to method update_project_search" % _key
1345
1358
  )
1346
- local_var_params[key] = val
1347
- del local_var_params['kwargs']
1348
- # verify the required parameter 'owner' is set
1349
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1350
- local_var_params['owner'] is None): # noqa: E501
1351
- raise ApiValueError("Missing the required parameter `owner` when calling `update_project_search`") # noqa: E501
1352
- # verify the required parameter 'project' is set
1353
- if self.api_client.client_side_validation and ('project' not in local_var_params or # noqa: E501
1354
- local_var_params['project'] is None): # noqa: E501
1355
- raise ApiValueError("Missing the required parameter `project` when calling `update_project_search`") # noqa: E501
1356
- # verify the required parameter 'search_uuid' is set
1357
- if self.api_client.client_side_validation and ('search_uuid' not in local_var_params or # noqa: E501
1358
- local_var_params['search_uuid'] is None): # noqa: E501
1359
- raise ApiValueError("Missing the required parameter `search_uuid` when calling `update_project_search`") # noqa: E501
1360
- # verify the required parameter 'body' is set
1361
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1362
- local_var_params['body'] is None): # noqa: E501
1363
- raise ApiValueError("Missing the required parameter `body` when calling `update_project_search`") # noqa: E501
1364
-
1365
- collection_formats = {}
1366
-
1367
- path_params = {}
1368
- if 'owner' in local_var_params:
1369
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1370
- if 'project' in local_var_params:
1371
- path_params['project'] = local_var_params['project'] # noqa: E501
1372
- if 'search_uuid' in local_var_params:
1373
- path_params['search.uuid'] = local_var_params['search_uuid'] # noqa: E501
1374
-
1375
- query_params = []
1376
-
1377
- header_params = {}
1378
-
1379
- form_params = []
1380
- local_var_files = {}
1381
-
1382
- body_params = None
1383
- if 'body' in local_var_params:
1384
- body_params = local_var_params['body']
1385
- # HTTP header `Accept`
1386
- header_params['Accept'] = self.api_client.select_header_accept(
1387
- ['application/json']) # noqa: E501
1359
+ _params[_key] = _val
1360
+ del _params['kwargs']
1388
1361
 
1389
- # HTTP header `Content-Type`
1390
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1391
- ['application/json']) # noqa: E501
1362
+ _collection_formats = {}
1392
1363
 
1393
- # Authentication setting
1394
- auth_settings = ['ApiKey'] # noqa: E501
1364
+ # process the path parameters
1365
+ _path_params = {}
1366
+ if _params['owner']:
1367
+ _path_params['owner'] = _params['owner']
1368
+
1369
+ if _params['project']:
1370
+ _path_params['project'] = _params['project']
1371
+
1372
+ if _params['search_uuid']:
1373
+ _path_params['search.uuid'] = _params['search_uuid']
1374
+
1375
+
1376
+ # process the query parameters
1377
+ _query_params = []
1378
+ # process the header parameters
1379
+ _header_params = dict(_params.get('_headers', {}))
1380
+ # process the form parameters
1381
+ _form_params = []
1382
+ _files = {}
1383
+ # process the body parameter
1384
+ _body_params = None
1385
+ if _params['body']:
1386
+ _body_params = _params['body']
1387
+
1388
+ # set the HTTP header `Accept`
1389
+ _header_params['Accept'] = self.api_client.select_header_accept(
1390
+ ['application/json']) # noqa: E501
1395
1391
 
1396
- response_types_map = {
1397
- 200: "V1Search",
1398
- 204: "object",
1399
- 403: "object",
1400
- 404: "object",
1392
+ # set the HTTP header `Content-Type`
1393
+ _content_types_list = _params.get('_content_type',
1394
+ self.api_client.select_header_content_type(
1395
+ ['application/json']))
1396
+ if _content_types_list:
1397
+ _header_params['Content-Type'] = _content_types_list
1398
+
1399
+ # authentication setting
1400
+ _auth_settings = ['ApiKey'] # noqa: E501
1401
+
1402
+ _response_types_map = {
1403
+ '200': "V1Search",
1404
+ '204': "object",
1405
+ '403': "object",
1406
+ '404': "object",
1401
1407
  }
1402
1408
 
1403
1409
  return self.api_client.call_api(
1404
1410
  '/api/v1/{owner}/{project}/searches/{search.uuid}', 'PUT',
1405
- path_params,
1406
- query_params,
1407
- header_params,
1408
- body=body_params,
1409
- post_params=form_params,
1410
- files=local_var_files,
1411
- response_types_map=response_types_map,
1412
- auth_settings=auth_settings,
1413
- async_req=local_var_params.get('async_req'),
1414
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1415
- _preload_content=local_var_params.get('_preload_content', True),
1416
- _request_timeout=local_var_params.get('_request_timeout'),
1417
- collection_formats=collection_formats,
1418
- _request_auth=local_var_params.get('_request_auth'))
1411
+ _path_params,
1412
+ _query_params,
1413
+ _header_params,
1414
+ body=_body_params,
1415
+ post_params=_form_params,
1416
+ files=_files,
1417
+ response_types_map=_response_types_map,
1418
+ auth_settings=_auth_settings,
1419
+ async_req=_params.get('async_req'),
1420
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1421
+ _preload_content=_params.get('_preload_content', True),
1422
+ _request_timeout=_params.get('_request_timeout'),
1423
+ collection_formats=_collection_formats,
1424
+ _request_auth=_params.get('_request_auth'))