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,30 @@
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 Any, Dict, Optional
24
+
25
+ from polyaxon_sdk.models.v1_entities_tags import V1EntitiesTags
26
+ from polyaxon_sdk.models.v1_list_tags_response import V1ListTagsResponse
27
+ from polyaxon_sdk.models.v1_tag import V1Tag
36
28
 
37
29
  from polyaxon_sdk.api_client import ApiClient
38
30
  from polyaxon_sdk.exceptions import ( # noqa: F401
@@ -50,10 +42,11 @@ class TagsV1Api(object):
50
42
 
51
43
  def __init__(self, api_client=None):
52
44
  if api_client is None:
53
- api_client = ApiClient()
45
+ api_client = ApiClient.get_default()
54
46
  self.api_client = api_client
55
47
 
56
- def create_tag(self, owner, body, **kwargs): # noqa: E501
48
+ @validate_arguments
49
+ def create_tag(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Tag, Field(..., description="Tag body")], **kwargs) -> V1Tag: # noqa: E501
57
50
  """Create tag # noqa: E501
58
51
 
59
52
  This method makes a synchronous HTTP request by default. To make an
@@ -84,7 +77,8 @@ class TagsV1Api(object):
84
77
  kwargs['_return_http_data_only'] = True
85
78
  return self.create_tag_with_http_info(owner, body, **kwargs) # noqa: E501
86
79
 
87
- def create_tag_with_http_info(self, owner, body, **kwargs): # noqa: E501
80
+ @validate_arguments
81
+ def create_tag_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Tag, Field(..., description="Tag body")], **kwargs): # noqa: E501
88
82
  """Create tag # noqa: E501
89
83
 
90
84
  This method makes a synchronous HTTP request by default. To make an
@@ -114,103 +108,107 @@ class TagsV1Api(object):
114
108
  request; this effectively ignores the authentication
115
109
  in the spec for a single request.
116
110
  :type _request_auth: dict, optional
111
+ :type _content_type: string, optional: force content-type for the request
117
112
  :return: Returns the result object.
118
113
  If the method is called asynchronously,
119
114
  returns the request thread.
120
115
  :rtype: tuple(V1Tag, status_code(int), headers(HTTPHeaderDict))
121
116
  """
122
117
 
123
- local_var_params = locals()
118
+ _params = locals()
124
119
 
125
- all_params = [
120
+ _all_params = [
126
121
  'owner',
127
122
  'body'
128
123
  ]
129
- all_params.extend(
124
+ _all_params.extend(
130
125
  [
131
126
  'async_req',
132
127
  '_return_http_data_only',
133
128
  '_preload_content',
134
129
  '_request_timeout',
135
- '_request_auth'
130
+ '_request_auth',
131
+ '_content_type',
132
+ '_headers'
136
133
  ]
137
134
  )
138
135
 
139
- for key, val in six.iteritems(local_var_params['kwargs']):
140
- if key not in all_params:
136
+ # validate the arguments
137
+ for _key, _val in _params['kwargs'].items():
138
+ if _key not in _all_params:
141
139
  raise ApiTypeError(
142
140
  "Got an unexpected keyword argument '%s'"
143
- " to method create_tag" % key
141
+ " to method create_tag" % _key
144
142
  )
145
- local_var_params[key] = val
146
- del local_var_params['kwargs']
147
- # verify the required parameter 'owner' is set
148
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
149
- local_var_params['owner'] is None): # noqa: E501
150
- raise ApiValueError("Missing the required parameter `owner` when calling `create_tag`") # noqa: E501
151
- # verify the required parameter 'body' is set
152
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
153
- local_var_params['body'] is None): # noqa: E501
154
- raise ApiValueError("Missing the required parameter `body` when calling `create_tag`") # noqa: E501
155
-
156
- collection_formats = {}
157
-
158
- path_params = {}
159
- if 'owner' in local_var_params:
160
- path_params['owner'] = local_var_params['owner'] # noqa: E501
161
-
162
- query_params = []
163
-
164
- header_params = {}
165
-
166
- form_params = []
167
- local_var_files = {}
168
-
169
- body_params = None
170
- if 'body' in local_var_params:
171
- body_params = local_var_params['body']
172
- # HTTP header `Accept`
173
- header_params['Accept'] = self.api_client.select_header_accept(
143
+ _params[_key] = _val
144
+ del _params['kwargs']
145
+
146
+ _collection_formats = {}
147
+
148
+ # process the path parameters
149
+ _path_params = {}
150
+ if _params['owner']:
151
+ _path_params['owner'] = _params['owner']
152
+
153
+
154
+ # process the query parameters
155
+ _query_params = []
156
+ # process the header parameters
157
+ _header_params = dict(_params.get('_headers', {}))
158
+ # process the form parameters
159
+ _form_params = []
160
+ _files = {}
161
+ # process the body parameter
162
+ _body_params = None
163
+ if _params['body']:
164
+ _body_params = _params['body']
165
+
166
+ # set the HTTP header `Accept`
167
+ _header_params['Accept'] = self.api_client.select_header_accept(
174
168
  ['application/json']) # noqa: E501
175
169
 
176
- # HTTP header `Content-Type`
177
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
178
- ['application/json']) # noqa: E501
179
-
180
- # Authentication setting
181
- auth_settings = ['ApiKey'] # noqa: E501
182
-
183
- response_types_map = {
184
- 200: "V1Tag",
185
- 204: "object",
186
- 403: "object",
187
- 404: "object",
170
+ # set the HTTP header `Content-Type`
171
+ _content_types_list = _params.get('_content_type',
172
+ self.api_client.select_header_content_type(
173
+ ['application/json']))
174
+ if _content_types_list:
175
+ _header_params['Content-Type'] = _content_types_list
176
+
177
+ # authentication setting
178
+ _auth_settings = ['ApiKey'] # noqa: E501
179
+
180
+ _response_types_map = {
181
+ '200': "V1Tag",
182
+ '204': "object",
183
+ '403': "object",
184
+ '404': "object",
188
185
  }
189
186
 
190
187
  return self.api_client.call_api(
191
188
  '/api/v1/orgs/{owner}/tags', 'POST',
192
- path_params,
193
- query_params,
194
- header_params,
195
- body=body_params,
196
- post_params=form_params,
197
- files=local_var_files,
198
- response_types_map=response_types_map,
199
- auth_settings=auth_settings,
200
- async_req=local_var_params.get('async_req'),
201
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
202
- _preload_content=local_var_params.get('_preload_content', True),
203
- _request_timeout=local_var_params.get('_request_timeout'),
204
- collection_formats=collection_formats,
205
- _request_auth=local_var_params.get('_request_auth'))
206
-
207
- def delete_tag(self, owner, uuid, **kwargs): # noqa: E501
189
+ _path_params,
190
+ _query_params,
191
+ _header_params,
192
+ body=_body_params,
193
+ post_params=_form_params,
194
+ files=_files,
195
+ response_types_map=_response_types_map,
196
+ auth_settings=_auth_settings,
197
+ async_req=_params.get('async_req'),
198
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
199
+ _preload_content=_params.get('_preload_content', True),
200
+ _request_timeout=_params.get('_request_timeout'),
201
+ collection_formats=_collection_formats,
202
+ _request_auth=_params.get('_request_auth'))
203
+
204
+ @validate_arguments
205
+ def delete_tag(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], cascade : Annotated[Optional[StrictBool], Field(description="Flag to handle sub-entities.")] = None, **kwargs) -> None: # noqa: E501
208
206
  """Delete tag # noqa: E501
209
207
 
210
208
  This method makes a synchronous HTTP request by default. To make an
211
209
  asynchronous HTTP request, please pass async_req=True
212
210
 
213
- >>> thread = api.delete_tag(owner, uuid, async_req=True)
211
+ >>> thread = api.delete_tag(owner, uuid, cascade, async_req=True)
214
212
  >>> result = thread.get()
215
213
 
216
214
  :param owner: Owner of the namespace (required)
@@ -235,15 +233,16 @@ class TagsV1Api(object):
235
233
  :rtype: None
236
234
  """
237
235
  kwargs['_return_http_data_only'] = True
238
- return self.delete_tag_with_http_info(owner, uuid, **kwargs) # noqa: E501
236
+ return self.delete_tag_with_http_info(owner, uuid, cascade, **kwargs) # noqa: E501
239
237
 
240
- def delete_tag_with_http_info(self, owner, uuid, **kwargs): # noqa: E501
238
+ @validate_arguments
239
+ def delete_tag_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], cascade : Annotated[Optional[StrictBool], Field(description="Flag to handle sub-entities.")] = None, **kwargs): # noqa: E501
241
240
  """Delete tag # noqa: E501
242
241
 
243
242
  This method makes a synchronous HTTP request by default. To make an
244
243
  asynchronous HTTP request, please pass async_req=True
245
244
 
246
- >>> thread = api.delete_tag_with_http_info(owner, uuid, async_req=True)
245
+ >>> thread = api.delete_tag_with_http_info(owner, uuid, cascade, async_req=True)
247
246
  >>> result = thread.get()
248
247
 
249
248
  :param owner: Owner of the namespace (required)
@@ -269,91 +268,93 @@ class TagsV1Api(object):
269
268
  request; this effectively ignores the authentication
270
269
  in the spec for a single request.
271
270
  :type _request_auth: dict, optional
271
+ :type _content_type: string, optional: force content-type for the request
272
272
  :return: Returns the result object.
273
273
  If the method is called asynchronously,
274
274
  returns the request thread.
275
275
  :rtype: None
276
276
  """
277
277
 
278
- local_var_params = locals()
278
+ _params = locals()
279
279
 
280
- all_params = [
280
+ _all_params = [
281
281
  'owner',
282
282
  'uuid',
283
283
  'cascade'
284
284
  ]
285
- all_params.extend(
285
+ _all_params.extend(
286
286
  [
287
287
  'async_req',
288
288
  '_return_http_data_only',
289
289
  '_preload_content',
290
290
  '_request_timeout',
291
- '_request_auth'
291
+ '_request_auth',
292
+ '_content_type',
293
+ '_headers'
292
294
  ]
293
295
  )
294
296
 
295
- for key, val in six.iteritems(local_var_params['kwargs']):
296
- if key not in all_params:
297
+ # validate the arguments
298
+ for _key, _val in _params['kwargs'].items():
299
+ if _key not in _all_params:
297
300
  raise ApiTypeError(
298
301
  "Got an unexpected keyword argument '%s'"
299
- " to method delete_tag" % key
302
+ " to method delete_tag" % _key
300
303
  )
301
- local_var_params[key] = val
302
- del local_var_params['kwargs']
303
- # verify the required parameter 'owner' is set
304
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
305
- local_var_params['owner'] is None): # noqa: E501
306
- raise ApiValueError("Missing the required parameter `owner` when calling `delete_tag`") # noqa: E501
307
- # verify the required parameter 'uuid' is set
308
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
309
- local_var_params['uuid'] is None): # noqa: E501
310
- raise ApiValueError("Missing the required parameter `uuid` when calling `delete_tag`") # noqa: E501
311
-
312
- collection_formats = {}
313
-
314
- path_params = {}
315
- if 'owner' in local_var_params:
316
- path_params['owner'] = local_var_params['owner'] # noqa: E501
317
- if 'uuid' in local_var_params:
318
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
319
-
320
- query_params = []
321
- if 'cascade' in local_var_params and local_var_params['cascade'] is not None: # noqa: E501
322
- query_params.append(('cascade', local_var_params['cascade'])) # noqa: E501
323
-
324
- header_params = {}
325
-
326
- form_params = []
327
- local_var_files = {}
328
-
329
- body_params = None
330
- # HTTP header `Accept`
331
- header_params['Accept'] = self.api_client.select_header_accept(
304
+ _params[_key] = _val
305
+ del _params['kwargs']
306
+
307
+ _collection_formats = {}
308
+
309
+ # process the path parameters
310
+ _path_params = {}
311
+ if _params['owner']:
312
+ _path_params['owner'] = _params['owner']
313
+
314
+ if _params['uuid']:
315
+ _path_params['uuid'] = _params['uuid']
316
+
317
+
318
+ # process the query parameters
319
+ _query_params = []
320
+ if _params.get('cascade') is not None: # noqa: E501
321
+ _query_params.append(('cascade', _params['cascade']))
322
+
323
+ # process the header parameters
324
+ _header_params = dict(_params.get('_headers', {}))
325
+ # process the form parameters
326
+ _form_params = []
327
+ _files = {}
328
+ # process the body parameter
329
+ _body_params = None
330
+ # set the HTTP header `Accept`
331
+ _header_params['Accept'] = self.api_client.select_header_accept(
332
332
  ['application/json']) # noqa: E501
333
333
 
334
- # Authentication setting
335
- auth_settings = ['ApiKey'] # noqa: E501
334
+ # authentication setting
335
+ _auth_settings = ['ApiKey'] # noqa: E501
336
336
 
337
- response_types_map = {}
337
+ _response_types_map = {}
338
338
 
339
339
  return self.api_client.call_api(
340
340
  '/api/v1/orgs/{owner}/tags/{uuid}', 'DELETE',
341
- path_params,
342
- query_params,
343
- header_params,
344
- body=body_params,
345
- post_params=form_params,
346
- files=local_var_files,
347
- response_types_map=response_types_map,
348
- auth_settings=auth_settings,
349
- async_req=local_var_params.get('async_req'),
350
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
351
- _preload_content=local_var_params.get('_preload_content', True),
352
- _request_timeout=local_var_params.get('_request_timeout'),
353
- collection_formats=collection_formats,
354
- _request_auth=local_var_params.get('_request_auth'))
355
-
356
- def get_tag(self, owner, uuid, **kwargs): # noqa: E501
341
+ _path_params,
342
+ _query_params,
343
+ _header_params,
344
+ body=_body_params,
345
+ post_params=_form_params,
346
+ files=_files,
347
+ response_types_map=_response_types_map,
348
+ auth_settings=_auth_settings,
349
+ async_req=_params.get('async_req'),
350
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
351
+ _preload_content=_params.get('_preload_content', True),
352
+ _request_timeout=_params.get('_request_timeout'),
353
+ collection_formats=_collection_formats,
354
+ _request_auth=_params.get('_request_auth'))
355
+
356
+ @validate_arguments
357
+ def get_tag(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs) -> V1Tag: # noqa: E501
357
358
  """Get tag # noqa: E501
358
359
 
359
360
  This method makes a synchronous HTTP request by default. To make an
@@ -384,7 +385,8 @@ class TagsV1Api(object):
384
385
  kwargs['_return_http_data_only'] = True
385
386
  return self.get_tag_with_http_info(owner, uuid, **kwargs) # noqa: E501
386
387
 
387
- def get_tag_with_http_info(self, owner, uuid, **kwargs): # noqa: E501
388
+ @validate_arguments
389
+ def get_tag_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs): # noqa: E501
388
390
  """Get tag # noqa: E501
389
391
 
390
392
  This method makes a synchronous HTTP request by default. To make an
@@ -414,99 +416,100 @@ class TagsV1Api(object):
414
416
  request; this effectively ignores the authentication
415
417
  in the spec for a single request.
416
418
  :type _request_auth: dict, optional
419
+ :type _content_type: string, optional: force content-type for the request
417
420
  :return: Returns the result object.
418
421
  If the method is called asynchronously,
419
422
  returns the request thread.
420
423
  :rtype: tuple(V1Tag, status_code(int), headers(HTTPHeaderDict))
421
424
  """
422
425
 
423
- local_var_params = locals()
426
+ _params = locals()
424
427
 
425
- all_params = [
428
+ _all_params = [
426
429
  'owner',
427
430
  'uuid'
428
431
  ]
429
- all_params.extend(
432
+ _all_params.extend(
430
433
  [
431
434
  'async_req',
432
435
  '_return_http_data_only',
433
436
  '_preload_content',
434
437
  '_request_timeout',
435
- '_request_auth'
438
+ '_request_auth',
439
+ '_content_type',
440
+ '_headers'
436
441
  ]
437
442
  )
438
443
 
439
- for key, val in six.iteritems(local_var_params['kwargs']):
440
- if key not in all_params:
444
+ # validate the arguments
445
+ for _key, _val in _params['kwargs'].items():
446
+ if _key not in _all_params:
441
447
  raise ApiTypeError(
442
448
  "Got an unexpected keyword argument '%s'"
443
- " to method get_tag" % key
449
+ " to method get_tag" % _key
444
450
  )
445
- local_var_params[key] = val
446
- del local_var_params['kwargs']
447
- # verify the required parameter 'owner' is set
448
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
449
- local_var_params['owner'] is None): # noqa: E501
450
- raise ApiValueError("Missing the required parameter `owner` when calling `get_tag`") # noqa: E501
451
- # verify the required parameter 'uuid' is set
452
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
453
- local_var_params['uuid'] is None): # noqa: E501
454
- raise ApiValueError("Missing the required parameter `uuid` when calling `get_tag`") # noqa: E501
455
-
456
- collection_formats = {}
457
-
458
- path_params = {}
459
- if 'owner' in local_var_params:
460
- path_params['owner'] = local_var_params['owner'] # noqa: E501
461
- if 'uuid' in local_var_params:
462
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
463
-
464
- query_params = []
465
-
466
- header_params = {}
467
-
468
- form_params = []
469
- local_var_files = {}
470
-
471
- body_params = None
472
- # HTTP header `Accept`
473
- header_params['Accept'] = self.api_client.select_header_accept(
451
+ _params[_key] = _val
452
+ del _params['kwargs']
453
+
454
+ _collection_formats = {}
455
+
456
+ # process the path parameters
457
+ _path_params = {}
458
+ if _params['owner']:
459
+ _path_params['owner'] = _params['owner']
460
+
461
+ if _params['uuid']:
462
+ _path_params['uuid'] = _params['uuid']
463
+
464
+
465
+ # process the query parameters
466
+ _query_params = []
467
+ # process the header parameters
468
+ _header_params = dict(_params.get('_headers', {}))
469
+ # process the form parameters
470
+ _form_params = []
471
+ _files = {}
472
+ # process the body parameter
473
+ _body_params = None
474
+ # set the HTTP header `Accept`
475
+ _header_params['Accept'] = self.api_client.select_header_accept(
474
476
  ['application/json']) # noqa: E501
475
477
 
476
- # Authentication setting
477
- auth_settings = ['ApiKey'] # noqa: E501
478
+ # authentication setting
479
+ _auth_settings = ['ApiKey'] # noqa: E501
478
480
 
479
- response_types_map = {
480
- 200: "V1Tag",
481
- 204: "object",
482
- 403: "object",
483
- 404: "object",
481
+ _response_types_map = {
482
+ '200': "V1Tag",
483
+ '204': "object",
484
+ '403': "object",
485
+ '404': "object",
484
486
  }
485
487
 
486
488
  return self.api_client.call_api(
487
489
  '/api/v1/orgs/{owner}/tags/{uuid}', 'GET',
488
- path_params,
489
- query_params,
490
- header_params,
491
- body=body_params,
492
- post_params=form_params,
493
- files=local_var_files,
494
- response_types_map=response_types_map,
495
- auth_settings=auth_settings,
496
- async_req=local_var_params.get('async_req'),
497
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
498
- _preload_content=local_var_params.get('_preload_content', True),
499
- _request_timeout=local_var_params.get('_request_timeout'),
500
- collection_formats=collection_formats,
501
- _request_auth=local_var_params.get('_request_auth'))
502
-
503
- def list_tags(self, owner, **kwargs): # noqa: E501
490
+ _path_params,
491
+ _query_params,
492
+ _header_params,
493
+ body=_body_params,
494
+ post_params=_form_params,
495
+ files=_files,
496
+ response_types_map=_response_types_map,
497
+ auth_settings=_auth_settings,
498
+ async_req=_params.get('async_req'),
499
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
500
+ _preload_content=_params.get('_preload_content', True),
501
+ _request_timeout=_params.get('_request_timeout'),
502
+ collection_formats=_collection_formats,
503
+ _request_auth=_params.get('_request_auth'))
504
+
505
+ @validate_arguments
506
+ def list_tags(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) -> V1ListTagsResponse: # noqa: E501
504
507
  """List tags # noqa: E501
505
508
 
506
509
  This method makes a synchronous HTTP request by default. To make an
507
510
  asynchronous HTTP request, please pass async_req=True
508
511
 
509
- >>> thread = api.list_tags(owner, async_req=True)
512
+ >>> thread = api.list_tags(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
510
513
  >>> result = thread.get()
511
514
 
512
515
  :param owner: Owner of the namespace (required)
@@ -541,15 +544,16 @@ class TagsV1Api(object):
541
544
  :rtype: V1ListTagsResponse
542
545
  """
543
546
  kwargs['_return_http_data_only'] = True
544
- return self.list_tags_with_http_info(owner, **kwargs) # noqa: E501
547
+ return self.list_tags_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
545
548
 
546
- def list_tags_with_http_info(self, owner, **kwargs): # noqa: E501
549
+ @validate_arguments
550
+ def list_tags_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
547
551
  """List tags # noqa: E501
548
552
 
549
553
  This method makes a synchronous HTTP request by default. To make an
550
554
  asynchronous HTTP request, please pass async_req=True
551
555
 
552
- >>> thread = api.list_tags_with_http_info(owner, async_req=True)
556
+ >>> thread = api.list_tags_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
553
557
  >>> result = thread.get()
554
558
 
555
559
  :param owner: Owner of the namespace (required)
@@ -585,15 +589,16 @@ class TagsV1Api(object):
585
589
  request; this effectively ignores the authentication
586
590
  in the spec for a single request.
587
591
  :type _request_auth: dict, optional
592
+ :type _content_type: string, optional: force content-type for the request
588
593
  :return: Returns the result object.
589
594
  If the method is called asynchronously,
590
595
  returns the request thread.
591
596
  :rtype: tuple(V1ListTagsResponse, status_code(int), headers(HTTPHeaderDict))
592
597
  """
593
598
 
594
- local_var_params = locals()
599
+ _params = locals()
595
600
 
596
- all_params = [
601
+ _all_params = [
597
602
  'owner',
598
603
  'offset',
599
604
  'limit',
@@ -603,95 +608,105 @@ class TagsV1Api(object):
603
608
  'mode',
604
609
  'no_page'
605
610
  ]
606
- all_params.extend(
611
+ _all_params.extend(
607
612
  [
608
613
  'async_req',
609
614
  '_return_http_data_only',
610
615
  '_preload_content',
611
616
  '_request_timeout',
612
- '_request_auth'
617
+ '_request_auth',
618
+ '_content_type',
619
+ '_headers'
613
620
  ]
614
621
  )
615
622
 
616
- for key, val in six.iteritems(local_var_params['kwargs']):
617
- if key not in all_params:
623
+ # validate the arguments
624
+ for _key, _val in _params['kwargs'].items():
625
+ if _key not in _all_params:
618
626
  raise ApiTypeError(
619
627
  "Got an unexpected keyword argument '%s'"
620
- " to method list_tags" % key
628
+ " to method list_tags" % _key
621
629
  )
622
- local_var_params[key] = val
623
- del local_var_params['kwargs']
624
- # verify the required parameter 'owner' is set
625
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
626
- local_var_params['owner'] is None): # noqa: E501
627
- raise ApiValueError("Missing the required parameter `owner` when calling `list_tags`") # noqa: E501
628
-
629
- collection_formats = {}
630
-
631
- path_params = {}
632
- if 'owner' in local_var_params:
633
- path_params['owner'] = local_var_params['owner'] # noqa: E501
634
-
635
- query_params = []
636
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
637
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
638
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
639
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
640
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
641
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
642
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
643
- query_params.append(('query', local_var_params['query'])) # noqa: E501
644
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
645
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
646
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
647
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
648
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
649
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
650
-
651
- header_params = {}
652
-
653
- form_params = []
654
- local_var_files = {}
655
-
656
- body_params = None
657
- # HTTP header `Accept`
658
- header_params['Accept'] = self.api_client.select_header_accept(
630
+ _params[_key] = _val
631
+ del _params['kwargs']
632
+
633
+ _collection_formats = {}
634
+
635
+ # process the path parameters
636
+ _path_params = {}
637
+ if _params['owner']:
638
+ _path_params['owner'] = _params['owner']
639
+
640
+
641
+ # process the query parameters
642
+ _query_params = []
643
+ if _params.get('offset') is not None: # noqa: E501
644
+ _query_params.append(('offset', _params['offset']))
645
+
646
+ if _params.get('limit') is not None: # noqa: E501
647
+ _query_params.append(('limit', _params['limit']))
648
+
649
+ if _params.get('sort') is not None: # noqa: E501
650
+ _query_params.append(('sort', _params['sort']))
651
+
652
+ if _params.get('query') is not None: # noqa: E501
653
+ _query_params.append(('query', _params['query']))
654
+
655
+ if _params.get('bookmarks') is not None: # noqa: E501
656
+ _query_params.append(('bookmarks', _params['bookmarks']))
657
+
658
+ if _params.get('mode') is not None: # noqa: E501
659
+ _query_params.append(('mode', _params['mode']))
660
+
661
+ if _params.get('no_page') is not None: # noqa: E501
662
+ _query_params.append(('no_page', _params['no_page']))
663
+
664
+ # process the header parameters
665
+ _header_params = dict(_params.get('_headers', {}))
666
+ # process the form parameters
667
+ _form_params = []
668
+ _files = {}
669
+ # process the body parameter
670
+ _body_params = None
671
+ # set the HTTP header `Accept`
672
+ _header_params['Accept'] = self.api_client.select_header_accept(
659
673
  ['application/json']) # noqa: E501
660
674
 
661
- # Authentication setting
662
- auth_settings = ['ApiKey'] # noqa: E501
675
+ # authentication setting
676
+ _auth_settings = ['ApiKey'] # noqa: E501
663
677
 
664
- response_types_map = {
665
- 200: "V1ListTagsResponse",
666
- 204: "object",
667
- 403: "object",
668
- 404: "object",
678
+ _response_types_map = {
679
+ '200': "V1ListTagsResponse",
680
+ '204': "object",
681
+ '403': "object",
682
+ '404': "object",
669
683
  }
670
684
 
671
685
  return self.api_client.call_api(
672
686
  '/api/v1/orgs/{owner}/tags', 'GET',
673
- path_params,
674
- query_params,
675
- header_params,
676
- body=body_params,
677
- post_params=form_params,
678
- files=local_var_files,
679
- response_types_map=response_types_map,
680
- auth_settings=auth_settings,
681
- async_req=local_var_params.get('async_req'),
682
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
683
- _preload_content=local_var_params.get('_preload_content', True),
684
- _request_timeout=local_var_params.get('_request_timeout'),
685
- collection_formats=collection_formats,
686
- _request_auth=local_var_params.get('_request_auth'))
687
-
688
- def load_tags(self, owner, **kwargs): # noqa: E501
687
+ _path_params,
688
+ _query_params,
689
+ _header_params,
690
+ body=_body_params,
691
+ post_params=_form_params,
692
+ files=_files,
693
+ response_types_map=_response_types_map,
694
+ auth_settings=_auth_settings,
695
+ async_req=_params.get('async_req'),
696
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
697
+ _preload_content=_params.get('_preload_content', True),
698
+ _request_timeout=_params.get('_request_timeout'),
699
+ collection_formats=_collection_formats,
700
+ _request_auth=_params.get('_request_auth'))
701
+
702
+ @validate_arguments
703
+ def load_tags(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) -> object: # noqa: E501
689
704
  """Load tags # noqa: E501
690
705
 
691
706
  This method makes a synchronous HTTP request by default. To make an
692
707
  asynchronous HTTP request, please pass async_req=True
693
708
 
694
- >>> thread = api.load_tags(owner, async_req=True)
709
+ >>> thread = api.load_tags(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
695
710
  >>> result = thread.get()
696
711
 
697
712
  :param owner: Owner of the namespace (required)
@@ -726,15 +741,16 @@ class TagsV1Api(object):
726
741
  :rtype: object
727
742
  """
728
743
  kwargs['_return_http_data_only'] = True
729
- return self.load_tags_with_http_info(owner, **kwargs) # noqa: E501
744
+ return self.load_tags_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
730
745
 
731
- def load_tags_with_http_info(self, owner, **kwargs): # noqa: E501
746
+ @validate_arguments
747
+ def load_tags_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
732
748
  """Load tags # noqa: E501
733
749
 
734
750
  This method makes a synchronous HTTP request by default. To make an
735
751
  asynchronous HTTP request, please pass async_req=True
736
752
 
737
- >>> thread = api.load_tags_with_http_info(owner, async_req=True)
753
+ >>> thread = api.load_tags_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
738
754
  >>> result = thread.get()
739
755
 
740
756
  :param owner: Owner of the namespace (required)
@@ -770,15 +786,16 @@ class TagsV1Api(object):
770
786
  request; this effectively ignores the authentication
771
787
  in the spec for a single request.
772
788
  :type _request_auth: dict, optional
789
+ :type _content_type: string, optional: force content-type for the request
773
790
  :return: Returns the result object.
774
791
  If the method is called asynchronously,
775
792
  returns the request thread.
776
793
  :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
777
794
  """
778
795
 
779
- local_var_params = locals()
796
+ _params = locals()
780
797
 
781
- all_params = [
798
+ _all_params = [
782
799
  'owner',
783
800
  'offset',
784
801
  'limit',
@@ -788,89 +805,99 @@ class TagsV1Api(object):
788
805
  'mode',
789
806
  'no_page'
790
807
  ]
791
- all_params.extend(
808
+ _all_params.extend(
792
809
  [
793
810
  'async_req',
794
811
  '_return_http_data_only',
795
812
  '_preload_content',
796
813
  '_request_timeout',
797
- '_request_auth'
814
+ '_request_auth',
815
+ '_content_type',
816
+ '_headers'
798
817
  ]
799
818
  )
800
819
 
801
- for key, val in six.iteritems(local_var_params['kwargs']):
802
- if key not in all_params:
820
+ # validate the arguments
821
+ for _key, _val in _params['kwargs'].items():
822
+ if _key not in _all_params:
803
823
  raise ApiTypeError(
804
824
  "Got an unexpected keyword argument '%s'"
805
- " to method load_tags" % key
825
+ " to method load_tags" % _key
806
826
  )
807
- local_var_params[key] = val
808
- del local_var_params['kwargs']
809
- # verify the required parameter 'owner' is set
810
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
811
- local_var_params['owner'] is None): # noqa: E501
812
- raise ApiValueError("Missing the required parameter `owner` when calling `load_tags`") # noqa: E501
813
-
814
- collection_formats = {}
815
-
816
- path_params = {}
817
- if 'owner' in local_var_params:
818
- path_params['owner'] = local_var_params['owner'] # noqa: E501
819
-
820
- query_params = []
821
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
822
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
823
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
824
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
825
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
826
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
827
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
828
- query_params.append(('query', local_var_params['query'])) # noqa: E501
829
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
830
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
831
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
832
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
833
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
834
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
835
-
836
- header_params = {}
837
-
838
- form_params = []
839
- local_var_files = {}
840
-
841
- body_params = None
842
- # HTTP header `Accept`
843
- header_params['Accept'] = self.api_client.select_header_accept(
827
+ _params[_key] = _val
828
+ del _params['kwargs']
829
+
830
+ _collection_formats = {}
831
+
832
+ # process the path parameters
833
+ _path_params = {}
834
+ if _params['owner']:
835
+ _path_params['owner'] = _params['owner']
836
+
837
+
838
+ # process the query parameters
839
+ _query_params = []
840
+ if _params.get('offset') is not None: # noqa: E501
841
+ _query_params.append(('offset', _params['offset']))
842
+
843
+ if _params.get('limit') is not None: # noqa: E501
844
+ _query_params.append(('limit', _params['limit']))
845
+
846
+ if _params.get('sort') is not None: # noqa: E501
847
+ _query_params.append(('sort', _params['sort']))
848
+
849
+ if _params.get('query') is not None: # noqa: E501
850
+ _query_params.append(('query', _params['query']))
851
+
852
+ if _params.get('bookmarks') is not None: # noqa: E501
853
+ _query_params.append(('bookmarks', _params['bookmarks']))
854
+
855
+ if _params.get('mode') is not None: # noqa: E501
856
+ _query_params.append(('mode', _params['mode']))
857
+
858
+ if _params.get('no_page') is not None: # noqa: E501
859
+ _query_params.append(('no_page', _params['no_page']))
860
+
861
+ # process the header parameters
862
+ _header_params = dict(_params.get('_headers', {}))
863
+ # process the form parameters
864
+ _form_params = []
865
+ _files = {}
866
+ # process the body parameter
867
+ _body_params = None
868
+ # set the HTTP header `Accept`
869
+ _header_params['Accept'] = self.api_client.select_header_accept(
844
870
  ['application/json']) # noqa: E501
845
871
 
846
- # Authentication setting
847
- auth_settings = ['ApiKey'] # noqa: E501
872
+ # authentication setting
873
+ _auth_settings = ['ApiKey'] # noqa: E501
848
874
 
849
- response_types_map = {
850
- 200: "object",
851
- 204: "object",
852
- 403: "object",
853
- 404: "object",
875
+ _response_types_map = {
876
+ '200': "object",
877
+ '204': "object",
878
+ '403': "object",
879
+ '404': "object",
854
880
  }
855
881
 
856
882
  return self.api_client.call_api(
857
883
  '/api/v1/orgs/{owner}/tags/load', 'GET',
858
- path_params,
859
- query_params,
860
- header_params,
861
- body=body_params,
862
- post_params=form_params,
863
- files=local_var_files,
864
- response_types_map=response_types_map,
865
- auth_settings=auth_settings,
866
- async_req=local_var_params.get('async_req'),
867
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
868
- _preload_content=local_var_params.get('_preload_content', True),
869
- _request_timeout=local_var_params.get('_request_timeout'),
870
- collection_formats=collection_formats,
871
- _request_auth=local_var_params.get('_request_auth'))
872
-
873
- def patch_tag(self, owner, tag_uuid, body, **kwargs): # noqa: E501
884
+ _path_params,
885
+ _query_params,
886
+ _header_params,
887
+ body=_body_params,
888
+ post_params=_form_params,
889
+ files=_files,
890
+ response_types_map=_response_types_map,
891
+ auth_settings=_auth_settings,
892
+ async_req=_params.get('async_req'),
893
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
894
+ _preload_content=_params.get('_preload_content', True),
895
+ _request_timeout=_params.get('_request_timeout'),
896
+ collection_formats=_collection_formats,
897
+ _request_auth=_params.get('_request_auth'))
898
+
899
+ @validate_arguments
900
+ def patch_tag(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], tag_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Tag, Field(..., description="Tag body")], **kwargs) -> V1Tag: # noqa: E501
874
901
  """Patch tag # noqa: E501
875
902
 
876
903
  This method makes a synchronous HTTP request by default. To make an
@@ -903,7 +930,8 @@ class TagsV1Api(object):
903
930
  kwargs['_return_http_data_only'] = True
904
931
  return self.patch_tag_with_http_info(owner, tag_uuid, body, **kwargs) # noqa: E501
905
932
 
906
- def patch_tag_with_http_info(self, owner, tag_uuid, body, **kwargs): # noqa: E501
933
+ @validate_arguments
934
+ def patch_tag_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], tag_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Tag, Field(..., description="Tag body")], **kwargs): # noqa: E501
907
935
  """Patch tag # noqa: E501
908
936
 
909
937
  This method makes a synchronous HTTP request by default. To make an
@@ -935,104 +963,105 @@ class TagsV1Api(object):
935
963
  request; this effectively ignores the authentication
936
964
  in the spec for a single request.
937
965
  :type _request_auth: dict, optional
966
+ :type _content_type: string, optional: force content-type for the request
938
967
  :return: Returns the result object.
939
968
  If the method is called asynchronously,
940
969
  returns the request thread.
941
970
  :rtype: tuple(V1Tag, status_code(int), headers(HTTPHeaderDict))
942
971
  """
943
972
 
944
- local_var_params = locals()
973
+ _params = locals()
945
974
 
946
- all_params = [
975
+ _all_params = [
947
976
  'owner',
948
977
  'tag_uuid',
949
978
  'body'
950
979
  ]
951
- all_params.extend(
980
+ _all_params.extend(
952
981
  [
953
982
  'async_req',
954
983
  '_return_http_data_only',
955
984
  '_preload_content',
956
985
  '_request_timeout',
957
- '_request_auth'
986
+ '_request_auth',
987
+ '_content_type',
988
+ '_headers'
958
989
  ]
959
990
  )
960
991
 
961
- for key, val in six.iteritems(local_var_params['kwargs']):
962
- if key not in all_params:
992
+ # validate the arguments
993
+ for _key, _val in _params['kwargs'].items():
994
+ if _key not in _all_params:
963
995
  raise ApiTypeError(
964
996
  "Got an unexpected keyword argument '%s'"
965
- " to method patch_tag" % key
997
+ " to method patch_tag" % _key
966
998
  )
967
- local_var_params[key] = val
968
- del local_var_params['kwargs']
969
- # verify the required parameter 'owner' is set
970
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
971
- local_var_params['owner'] is None): # noqa: E501
972
- raise ApiValueError("Missing the required parameter `owner` when calling `patch_tag`") # noqa: E501
973
- # verify the required parameter 'tag_uuid' is set
974
- if self.api_client.client_side_validation and ('tag_uuid' not in local_var_params or # noqa: E501
975
- local_var_params['tag_uuid'] is None): # noqa: E501
976
- raise ApiValueError("Missing the required parameter `tag_uuid` when calling `patch_tag`") # noqa: E501
977
- # verify the required parameter 'body' is set
978
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
979
- local_var_params['body'] is None): # noqa: E501
980
- raise ApiValueError("Missing the required parameter `body` when calling `patch_tag`") # noqa: E501
981
-
982
- collection_formats = {}
983
-
984
- path_params = {}
985
- if 'owner' in local_var_params:
986
- path_params['owner'] = local_var_params['owner'] # noqa: E501
987
- if 'tag_uuid' in local_var_params:
988
- path_params['tag.uuid'] = local_var_params['tag_uuid'] # noqa: E501
989
-
990
- query_params = []
991
-
992
- header_params = {}
993
-
994
- form_params = []
995
- local_var_files = {}
996
-
997
- body_params = None
998
- if 'body' in local_var_params:
999
- body_params = local_var_params['body']
1000
- # HTTP header `Accept`
1001
- header_params['Accept'] = self.api_client.select_header_accept(
999
+ _params[_key] = _val
1000
+ del _params['kwargs']
1001
+
1002
+ _collection_formats = {}
1003
+
1004
+ # process the path parameters
1005
+ _path_params = {}
1006
+ if _params['owner']:
1007
+ _path_params['owner'] = _params['owner']
1008
+
1009
+ if _params['tag_uuid']:
1010
+ _path_params['tag.uuid'] = _params['tag_uuid']
1011
+
1012
+
1013
+ # process the query parameters
1014
+ _query_params = []
1015
+ # process the header parameters
1016
+ _header_params = dict(_params.get('_headers', {}))
1017
+ # process the form parameters
1018
+ _form_params = []
1019
+ _files = {}
1020
+ # process the body parameter
1021
+ _body_params = None
1022
+ if _params['body']:
1023
+ _body_params = _params['body']
1024
+
1025
+ # set the HTTP header `Accept`
1026
+ _header_params['Accept'] = self.api_client.select_header_accept(
1002
1027
  ['application/json']) # noqa: E501
1003
1028
 
1004
- # HTTP header `Content-Type`
1005
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1006
- ['application/json']) # noqa: E501
1007
-
1008
- # Authentication setting
1009
- auth_settings = ['ApiKey'] # noqa: E501
1010
-
1011
- response_types_map = {
1012
- 200: "V1Tag",
1013
- 204: "object",
1014
- 403: "object",
1015
- 404: "object",
1029
+ # set the HTTP header `Content-Type`
1030
+ _content_types_list = _params.get('_content_type',
1031
+ self.api_client.select_header_content_type(
1032
+ ['application/json']))
1033
+ if _content_types_list:
1034
+ _header_params['Content-Type'] = _content_types_list
1035
+
1036
+ # authentication setting
1037
+ _auth_settings = ['ApiKey'] # noqa: E501
1038
+
1039
+ _response_types_map = {
1040
+ '200': "V1Tag",
1041
+ '204': "object",
1042
+ '403': "object",
1043
+ '404': "object",
1016
1044
  }
1017
1045
 
1018
1046
  return self.api_client.call_api(
1019
1047
  '/api/v1/orgs/{owner}/tags/{tag.uuid}', 'PATCH',
1020
- path_params,
1021
- query_params,
1022
- header_params,
1023
- body=body_params,
1024
- post_params=form_params,
1025
- files=local_var_files,
1026
- response_types_map=response_types_map,
1027
- auth_settings=auth_settings,
1028
- async_req=local_var_params.get('async_req'),
1029
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1030
- _preload_content=local_var_params.get('_preload_content', True),
1031
- _request_timeout=local_var_params.get('_request_timeout'),
1032
- collection_formats=collection_formats,
1033
- _request_auth=local_var_params.get('_request_auth'))
1034
-
1035
- def sync_tags(self, owner, body, **kwargs): # noqa: E501
1048
+ _path_params,
1049
+ _query_params,
1050
+ _header_params,
1051
+ body=_body_params,
1052
+ post_params=_form_params,
1053
+ files=_files,
1054
+ response_types_map=_response_types_map,
1055
+ auth_settings=_auth_settings,
1056
+ async_req=_params.get('async_req'),
1057
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1058
+ _preload_content=_params.get('_preload_content', True),
1059
+ _request_timeout=_params.get('_request_timeout'),
1060
+ collection_formats=_collection_formats,
1061
+ _request_auth=_params.get('_request_auth'))
1062
+
1063
+ @validate_arguments
1064
+ def sync_tags(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1EntitiesTags, Field(..., description="Data")], **kwargs) -> None: # noqa: E501
1036
1065
  """Sync tags # noqa: E501
1037
1066
 
1038
1067
  This method makes a synchronous HTTP request by default. To make an
@@ -1063,7 +1092,8 @@ class TagsV1Api(object):
1063
1092
  kwargs['_return_http_data_only'] = True
1064
1093
  return self.sync_tags_with_http_info(owner, body, **kwargs) # noqa: E501
1065
1094
 
1066
- def sync_tags_with_http_info(self, owner, body, **kwargs): # noqa: E501
1095
+ @validate_arguments
1096
+ def sync_tags_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1EntitiesTags, Field(..., description="Data")], **kwargs): # noqa: E501
1067
1097
  """Sync tags # noqa: E501
1068
1098
 
1069
1099
  This method makes a synchronous HTTP request by default. To make an
@@ -1093,92 +1123,96 @@ class TagsV1Api(object):
1093
1123
  request; this effectively ignores the authentication
1094
1124
  in the spec for a single request.
1095
1125
  :type _request_auth: dict, optional
1126
+ :type _content_type: string, optional: force content-type for the request
1096
1127
  :return: Returns the result object.
1097
1128
  If the method is called asynchronously,
1098
1129
  returns the request thread.
1099
1130
  :rtype: None
1100
1131
  """
1101
1132
 
1102
- local_var_params = locals()
1133
+ _params = locals()
1103
1134
 
1104
- all_params = [
1135
+ _all_params = [
1105
1136
  'owner',
1106
1137
  'body'
1107
1138
  ]
1108
- all_params.extend(
1139
+ _all_params.extend(
1109
1140
  [
1110
1141
  'async_req',
1111
1142
  '_return_http_data_only',
1112
1143
  '_preload_content',
1113
1144
  '_request_timeout',
1114
- '_request_auth'
1145
+ '_request_auth',
1146
+ '_content_type',
1147
+ '_headers'
1115
1148
  ]
1116
1149
  )
1117
1150
 
1118
- for key, val in six.iteritems(local_var_params['kwargs']):
1119
- if key not in all_params:
1151
+ # validate the arguments
1152
+ for _key, _val in _params['kwargs'].items():
1153
+ if _key not in _all_params:
1120
1154
  raise ApiTypeError(
1121
1155
  "Got an unexpected keyword argument '%s'"
1122
- " to method sync_tags" % key
1156
+ " to method sync_tags" % _key
1123
1157
  )
1124
- local_var_params[key] = val
1125
- del local_var_params['kwargs']
1126
- # verify the required parameter 'owner' is set
1127
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1128
- local_var_params['owner'] is None): # noqa: E501
1129
- raise ApiValueError("Missing the required parameter `owner` when calling `sync_tags`") # noqa: E501
1130
- # verify the required parameter 'body' is set
1131
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1132
- local_var_params['body'] is None): # noqa: E501
1133
- raise ApiValueError("Missing the required parameter `body` when calling `sync_tags`") # noqa: E501
1134
-
1135
- collection_formats = {}
1136
-
1137
- path_params = {}
1138
- if 'owner' in local_var_params:
1139
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1140
-
1141
- query_params = []
1142
-
1143
- header_params = {}
1144
-
1145
- form_params = []
1146
- local_var_files = {}
1147
-
1148
- body_params = None
1149
- if 'body' in local_var_params:
1150
- body_params = local_var_params['body']
1151
- # HTTP header `Accept`
1152
- header_params['Accept'] = self.api_client.select_header_accept(
1158
+ _params[_key] = _val
1159
+ del _params['kwargs']
1160
+
1161
+ _collection_formats = {}
1162
+
1163
+ # process the path parameters
1164
+ _path_params = {}
1165
+ if _params['owner']:
1166
+ _path_params['owner'] = _params['owner']
1167
+
1168
+
1169
+ # process the query parameters
1170
+ _query_params = []
1171
+ # process the header parameters
1172
+ _header_params = dict(_params.get('_headers', {}))
1173
+ # process the form parameters
1174
+ _form_params = []
1175
+ _files = {}
1176
+ # process the body parameter
1177
+ _body_params = None
1178
+ if _params['body']:
1179
+ _body_params = _params['body']
1180
+
1181
+ # set the HTTP header `Accept`
1182
+ _header_params['Accept'] = self.api_client.select_header_accept(
1153
1183
  ['application/json']) # noqa: E501
1154
1184
 
1155
- # HTTP header `Content-Type`
1156
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1157
- ['application/json']) # noqa: E501
1185
+ # set the HTTP header `Content-Type`
1186
+ _content_types_list = _params.get('_content_type',
1187
+ self.api_client.select_header_content_type(
1188
+ ['application/json']))
1189
+ if _content_types_list:
1190
+ _header_params['Content-Type'] = _content_types_list
1158
1191
 
1159
- # Authentication setting
1160
- auth_settings = ['ApiKey'] # noqa: E501
1192
+ # authentication setting
1193
+ _auth_settings = ['ApiKey'] # noqa: E501
1161
1194
 
1162
- response_types_map = {}
1195
+ _response_types_map = {}
1163
1196
 
1164
1197
  return self.api_client.call_api(
1165
1198
  '/api/v1/orgs/{owner}/tags/sync', 'POST',
1166
- path_params,
1167
- query_params,
1168
- header_params,
1169
- body=body_params,
1170
- post_params=form_params,
1171
- files=local_var_files,
1172
- response_types_map=response_types_map,
1173
- auth_settings=auth_settings,
1174
- async_req=local_var_params.get('async_req'),
1175
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1176
- _preload_content=local_var_params.get('_preload_content', True),
1177
- _request_timeout=local_var_params.get('_request_timeout'),
1178
- collection_formats=collection_formats,
1179
- _request_auth=local_var_params.get('_request_auth'))
1180
-
1181
- def update_tag(self, owner, tag_uuid, body, **kwargs): # noqa: E501
1199
+ _path_params,
1200
+ _query_params,
1201
+ _header_params,
1202
+ body=_body_params,
1203
+ post_params=_form_params,
1204
+ files=_files,
1205
+ response_types_map=_response_types_map,
1206
+ auth_settings=_auth_settings,
1207
+ async_req=_params.get('async_req'),
1208
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1209
+ _preload_content=_params.get('_preload_content', True),
1210
+ _request_timeout=_params.get('_request_timeout'),
1211
+ collection_formats=_collection_formats,
1212
+ _request_auth=_params.get('_request_auth'))
1213
+
1214
+ @validate_arguments
1215
+ def update_tag(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], tag_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Tag, Field(..., description="Tag body")], **kwargs) -> V1Tag: # noqa: E501
1182
1216
  """Update tag # noqa: E501
1183
1217
 
1184
1218
  This method makes a synchronous HTTP request by default. To make an
@@ -1211,7 +1245,8 @@ class TagsV1Api(object):
1211
1245
  kwargs['_return_http_data_only'] = True
1212
1246
  return self.update_tag_with_http_info(owner, tag_uuid, body, **kwargs) # noqa: E501
1213
1247
 
1214
- def update_tag_with_http_info(self, owner, tag_uuid, body, **kwargs): # noqa: E501
1248
+ @validate_arguments
1249
+ def update_tag_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], tag_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Tag, Field(..., description="Tag body")], **kwargs): # noqa: E501
1215
1250
  """Update tag # noqa: E501
1216
1251
 
1217
1252
  This method makes a synchronous HTTP request by default. To make an
@@ -1243,99 +1278,99 @@ class TagsV1Api(object):
1243
1278
  request; this effectively ignores the authentication
1244
1279
  in the spec for a single request.
1245
1280
  :type _request_auth: dict, optional
1281
+ :type _content_type: string, optional: force content-type for the request
1246
1282
  :return: Returns the result object.
1247
1283
  If the method is called asynchronously,
1248
1284
  returns the request thread.
1249
1285
  :rtype: tuple(V1Tag, status_code(int), headers(HTTPHeaderDict))
1250
1286
  """
1251
1287
 
1252
- local_var_params = locals()
1288
+ _params = locals()
1253
1289
 
1254
- all_params = [
1290
+ _all_params = [
1255
1291
  'owner',
1256
1292
  'tag_uuid',
1257
1293
  'body'
1258
1294
  ]
1259
- all_params.extend(
1295
+ _all_params.extend(
1260
1296
  [
1261
1297
  'async_req',
1262
1298
  '_return_http_data_only',
1263
1299
  '_preload_content',
1264
1300
  '_request_timeout',
1265
- '_request_auth'
1301
+ '_request_auth',
1302
+ '_content_type',
1303
+ '_headers'
1266
1304
  ]
1267
1305
  )
1268
1306
 
1269
- for key, val in six.iteritems(local_var_params['kwargs']):
1270
- if key not in all_params:
1307
+ # validate the arguments
1308
+ for _key, _val in _params['kwargs'].items():
1309
+ if _key not in _all_params:
1271
1310
  raise ApiTypeError(
1272
1311
  "Got an unexpected keyword argument '%s'"
1273
- " to method update_tag" % key
1312
+ " to method update_tag" % _key
1274
1313
  )
1275
- local_var_params[key] = val
1276
- del local_var_params['kwargs']
1277
- # verify the required parameter 'owner' is set
1278
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1279
- local_var_params['owner'] is None): # noqa: E501
1280
- raise ApiValueError("Missing the required parameter `owner` when calling `update_tag`") # noqa: E501
1281
- # verify the required parameter 'tag_uuid' is set
1282
- if self.api_client.client_side_validation and ('tag_uuid' not in local_var_params or # noqa: E501
1283
- local_var_params['tag_uuid'] is None): # noqa: E501
1284
- raise ApiValueError("Missing the required parameter `tag_uuid` when calling `update_tag`") # noqa: E501
1285
- # verify the required parameter 'body' is set
1286
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1287
- local_var_params['body'] is None): # noqa: E501
1288
- raise ApiValueError("Missing the required parameter `body` when calling `update_tag`") # noqa: E501
1289
-
1290
- collection_formats = {}
1291
-
1292
- path_params = {}
1293
- if 'owner' in local_var_params:
1294
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1295
- if 'tag_uuid' in local_var_params:
1296
- path_params['tag.uuid'] = local_var_params['tag_uuid'] # noqa: E501
1297
-
1298
- query_params = []
1299
-
1300
- header_params = {}
1301
-
1302
- form_params = []
1303
- local_var_files = {}
1304
-
1305
- body_params = None
1306
- if 'body' in local_var_params:
1307
- body_params = local_var_params['body']
1308
- # HTTP header `Accept`
1309
- header_params['Accept'] = self.api_client.select_header_accept(
1310
- ['application/json']) # noqa: E501
1311
-
1312
- # HTTP header `Content-Type`
1313
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1314
+ _params[_key] = _val
1315
+ del _params['kwargs']
1316
+
1317
+ _collection_formats = {}
1318
+
1319
+ # process the path parameters
1320
+ _path_params = {}
1321
+ if _params['owner']:
1322
+ _path_params['owner'] = _params['owner']
1323
+
1324
+ if _params['tag_uuid']:
1325
+ _path_params['tag.uuid'] = _params['tag_uuid']
1326
+
1327
+
1328
+ # process the query parameters
1329
+ _query_params = []
1330
+ # process the header parameters
1331
+ _header_params = dict(_params.get('_headers', {}))
1332
+ # process the form parameters
1333
+ _form_params = []
1334
+ _files = {}
1335
+ # process the body parameter
1336
+ _body_params = None
1337
+ if _params['body']:
1338
+ _body_params = _params['body']
1339
+
1340
+ # set the HTTP header `Accept`
1341
+ _header_params['Accept'] = self.api_client.select_header_accept(
1314
1342
  ['application/json']) # noqa: E501
1315
1343
 
1316
- # Authentication setting
1317
- auth_settings = ['ApiKey'] # noqa: E501
1318
-
1319
- response_types_map = {
1320
- 200: "V1Tag",
1321
- 204: "object",
1322
- 403: "object",
1323
- 404: "object",
1344
+ # set the HTTP header `Content-Type`
1345
+ _content_types_list = _params.get('_content_type',
1346
+ self.api_client.select_header_content_type(
1347
+ ['application/json']))
1348
+ if _content_types_list:
1349
+ _header_params['Content-Type'] = _content_types_list
1350
+
1351
+ # authentication setting
1352
+ _auth_settings = ['ApiKey'] # noqa: E501
1353
+
1354
+ _response_types_map = {
1355
+ '200': "V1Tag",
1356
+ '204': "object",
1357
+ '403': "object",
1358
+ '404': "object",
1324
1359
  }
1325
1360
 
1326
1361
  return self.api_client.call_api(
1327
1362
  '/api/v1/orgs/{owner}/tags/{tag.uuid}', 'PUT',
1328
- path_params,
1329
- query_params,
1330
- header_params,
1331
- body=body_params,
1332
- post_params=form_params,
1333
- files=local_var_files,
1334
- response_types_map=response_types_map,
1335
- auth_settings=auth_settings,
1336
- async_req=local_var_params.get('async_req'),
1337
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1338
- _preload_content=local_var_params.get('_preload_content', True),
1339
- _request_timeout=local_var_params.get('_request_timeout'),
1340
- collection_formats=collection_formats,
1341
- _request_auth=local_var_params.get('_request_auth'))
1363
+ _path_params,
1364
+ _query_params,
1365
+ _header_params,
1366
+ body=_body_params,
1367
+ post_params=_form_params,
1368
+ files=_files,
1369
+ response_types_map=_response_types_map,
1370
+ auth_settings=_auth_settings,
1371
+ async_req=_params.get('async_req'),
1372
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1373
+ _preload_content=_params.get('_preload_content', True),
1374
+ _request_timeout=_params.get('_request_timeout'),
1375
+ collection_formats=_collection_formats,
1376
+ _request_auth=_params.get('_request_auth'))