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,35 @@
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_agent import V1Agent
26
+ from polyaxon_sdk.models.v1_agent_reconcile_body_request import V1AgentReconcileBodyRequest
27
+ from polyaxon_sdk.models.v1_agent_state_response import V1AgentStateResponse
28
+ from polyaxon_sdk.models.v1_agent_status_body_request import V1AgentStatusBodyRequest
29
+ from polyaxon_sdk.models.v1_list_agents_response import V1ListAgentsResponse
30
+ from polyaxon_sdk.models.v1_logs import V1Logs
31
+ from polyaxon_sdk.models.v1_status import V1Status
32
+ from polyaxon_sdk.models.v1_token import V1Token
36
33
 
37
34
  from polyaxon_sdk.api_client import ApiClient
38
35
  from polyaxon_sdk.exceptions import ( # noqa: F401
@@ -50,22 +47,967 @@ class AgentsV1Api(object):
50
47
 
51
48
  def __init__(self, api_client=None):
52
49
  if api_client is None:
53
- api_client = ApiClient()
50
+ api_client = ApiClient.get_default()
54
51
  self.api_client = api_client
55
52
 
56
- def create_agent(self, owner, body, **kwargs): # noqa: E501
57
- """Create agent # noqa: E501
53
+ @validate_arguments
54
+ def collect_agent_data(self, namespace : Annotated[StrictStr, Field(..., description="namespace")], owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs) -> object: # noqa: E501
55
+ """collect agent # noqa: E501
56
+
57
+ This method makes a synchronous HTTP request by default. To make an
58
+ asynchronous HTTP request, please pass async_req=True
59
+
60
+ >>> thread = api.collect_agent_data(namespace, owner, uuid, async_req=True)
61
+ >>> result = thread.get()
62
+
63
+ :param namespace: namespace (required)
64
+ :type namespace: str
65
+ :param owner: Owner of the namespace (required)
66
+ :type owner: str
67
+ :param uuid: Uuid identifier of the entity (required)
68
+ :type uuid: str
69
+ :param async_req: Whether to execute the request asynchronously.
70
+ :type async_req: bool, optional
71
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
72
+ be returned without reading/decoding response
73
+ data. Default is True.
74
+ :type _preload_content: bool, optional
75
+ :param _request_timeout: timeout setting for this request. If one
76
+ number provided, it will be total request
77
+ timeout. It can also be a pair (tuple) of
78
+ (connection, read) timeouts.
79
+ :return: Returns the result object.
80
+ If the method is called asynchronously,
81
+ returns the request thread.
82
+ :rtype: object
83
+ """
84
+ kwargs['_return_http_data_only'] = True
85
+ return self.collect_agent_data_with_http_info(namespace, owner, uuid, **kwargs) # noqa: E501
86
+
87
+ @validate_arguments
88
+ def collect_agent_data_with_http_info(self, namespace : Annotated[StrictStr, Field(..., description="namespace")], owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs): # noqa: E501
89
+ """collect agent # noqa: E501
90
+
91
+ This method makes a synchronous HTTP request by default. To make an
92
+ asynchronous HTTP request, please pass async_req=True
93
+
94
+ >>> thread = api.collect_agent_data_with_http_info(namespace, owner, uuid, async_req=True)
95
+ >>> result = thread.get()
96
+
97
+ :param namespace: namespace (required)
98
+ :type namespace: str
99
+ :param owner: Owner of the namespace (required)
100
+ :type owner: str
101
+ :param uuid: Uuid identifier of the entity (required)
102
+ :type uuid: str
103
+ :param async_req: Whether to execute the request asynchronously.
104
+ :type async_req: bool, optional
105
+ :param _return_http_data_only: response data without head status code
106
+ and headers
107
+ :type _return_http_data_only: bool, optional
108
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
109
+ be returned without reading/decoding response
110
+ data. Default is True.
111
+ :type _preload_content: bool, optional
112
+ :param _request_timeout: timeout setting for this request. If one
113
+ number provided, it will be total request
114
+ timeout. It can also be a pair (tuple) of
115
+ (connection, read) timeouts.
116
+ :param _request_auth: set to override the auth_settings for an a single
117
+ request; this effectively ignores the authentication
118
+ in the spec for a single request.
119
+ :type _request_auth: dict, optional
120
+ :type _content_type: string, optional: force content-type for the request
121
+ :return: Returns the result object.
122
+ If the method is called asynchronously,
123
+ returns the request thread.
124
+ :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
125
+ """
126
+
127
+ _params = locals()
128
+
129
+ _all_params = [
130
+ 'namespace',
131
+ 'owner',
132
+ 'uuid'
133
+ ]
134
+ _all_params.extend(
135
+ [
136
+ 'async_req',
137
+ '_return_http_data_only',
138
+ '_preload_content',
139
+ '_request_timeout',
140
+ '_request_auth',
141
+ '_content_type',
142
+ '_headers'
143
+ ]
144
+ )
145
+
146
+ # validate the arguments
147
+ for _key, _val in _params['kwargs'].items():
148
+ if _key not in _all_params:
149
+ raise ApiTypeError(
150
+ "Got an unexpected keyword argument '%s'"
151
+ " to method collect_agent_data" % _key
152
+ )
153
+ _params[_key] = _val
154
+ del _params['kwargs']
155
+
156
+ _collection_formats = {}
157
+
158
+ # process the path parameters
159
+ _path_params = {}
160
+ if _params['namespace']:
161
+ _path_params['namespace'] = _params['namespace']
162
+
163
+ if _params['owner']:
164
+ _path_params['owner'] = _params['owner']
165
+
166
+ if _params['uuid']:
167
+ _path_params['uuid'] = _params['uuid']
168
+
169
+
170
+ # process the query parameters
171
+ _query_params = []
172
+ # process the header parameters
173
+ _header_params = dict(_params.get('_headers', {}))
174
+ # process the form parameters
175
+ _form_params = []
176
+ _files = {}
177
+ # process the body parameter
178
+ _body_params = None
179
+ # set the HTTP header `Accept`
180
+ _header_params['Accept'] = self.api_client.select_header_accept(
181
+ ['application/json']) # noqa: E501
182
+
183
+ # authentication setting
184
+ _auth_settings = ['ApiKey'] # noqa: E501
185
+
186
+ _response_types_map = {
187
+ '200': "object",
188
+ '204': "object",
189
+ '403': "object",
190
+ '404': "object",
191
+ }
192
+
193
+ return self.api_client.call_api(
194
+ '/internal/v1/{namespace}/{owner}/agents/{uuid}/collect', 'POST',
195
+ _path_params,
196
+ _query_params,
197
+ _header_params,
198
+ body=_body_params,
199
+ post_params=_form_params,
200
+ files=_files,
201
+ response_types_map=_response_types_map,
202
+ auth_settings=_auth_settings,
203
+ async_req=_params.get('async_req'),
204
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
205
+ _preload_content=_params.get('_preload_content', True),
206
+ _request_timeout=_params.get('_request_timeout'),
207
+ collection_formats=_collection_formats,
208
+ _request_auth=_params.get('_request_auth'))
209
+
210
+ @validate_arguments
211
+ def create_agent(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Agent, Field(..., description="Agent body")], **kwargs) -> V1Agent: # noqa: E501
212
+ """Create agent # noqa: E501
213
+
214
+ This method makes a synchronous HTTP request by default. To make an
215
+ asynchronous HTTP request, please pass async_req=True
216
+
217
+ >>> thread = api.create_agent(owner, body, async_req=True)
218
+ >>> result = thread.get()
219
+
220
+ :param owner: Owner of the namespace (required)
221
+ :type owner: str
222
+ :param body: Agent body (required)
223
+ :type body: V1Agent
224
+ :param async_req: Whether to execute the request asynchronously.
225
+ :type async_req: bool, optional
226
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
227
+ be returned without reading/decoding response
228
+ data. Default is True.
229
+ :type _preload_content: bool, optional
230
+ :param _request_timeout: timeout setting for this request. If one
231
+ number provided, it will be total request
232
+ timeout. It can also be a pair (tuple) of
233
+ (connection, read) timeouts.
234
+ :return: Returns the result object.
235
+ If the method is called asynchronously,
236
+ returns the request thread.
237
+ :rtype: V1Agent
238
+ """
239
+ kwargs['_return_http_data_only'] = True
240
+ return self.create_agent_with_http_info(owner, body, **kwargs) # noqa: E501
241
+
242
+ @validate_arguments
243
+ def create_agent_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Agent, Field(..., description="Agent body")], **kwargs): # noqa: E501
244
+ """Create agent # noqa: E501
245
+
246
+ This method makes a synchronous HTTP request by default. To make an
247
+ asynchronous HTTP request, please pass async_req=True
248
+
249
+ >>> thread = api.create_agent_with_http_info(owner, body, async_req=True)
250
+ >>> result = thread.get()
251
+
252
+ :param owner: Owner of the namespace (required)
253
+ :type owner: str
254
+ :param body: Agent body (required)
255
+ :type body: V1Agent
256
+ :param async_req: Whether to execute the request asynchronously.
257
+ :type async_req: bool, optional
258
+ :param _return_http_data_only: response data without head status code
259
+ and headers
260
+ :type _return_http_data_only: bool, optional
261
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
262
+ be returned without reading/decoding response
263
+ data. Default is True.
264
+ :type _preload_content: bool, optional
265
+ :param _request_timeout: timeout setting for this request. If one
266
+ number provided, it will be total request
267
+ timeout. It can also be a pair (tuple) of
268
+ (connection, read) timeouts.
269
+ :param _request_auth: set to override the auth_settings for an a single
270
+ request; this effectively ignores the authentication
271
+ in the spec for a single request.
272
+ :type _request_auth: dict, optional
273
+ :type _content_type: string, optional: force content-type for the request
274
+ :return: Returns the result object.
275
+ If the method is called asynchronously,
276
+ returns the request thread.
277
+ :rtype: tuple(V1Agent, status_code(int), headers(HTTPHeaderDict))
278
+ """
279
+
280
+ _params = locals()
281
+
282
+ _all_params = [
283
+ 'owner',
284
+ 'body'
285
+ ]
286
+ _all_params.extend(
287
+ [
288
+ 'async_req',
289
+ '_return_http_data_only',
290
+ '_preload_content',
291
+ '_request_timeout',
292
+ '_request_auth',
293
+ '_content_type',
294
+ '_headers'
295
+ ]
296
+ )
297
+
298
+ # validate the arguments
299
+ for _key, _val in _params['kwargs'].items():
300
+ if _key not in _all_params:
301
+ raise ApiTypeError(
302
+ "Got an unexpected keyword argument '%s'"
303
+ " to method create_agent" % _key
304
+ )
305
+ _params[_key] = _val
306
+ del _params['kwargs']
307
+
308
+ _collection_formats = {}
309
+
310
+ # process the path parameters
311
+ _path_params = {}
312
+ if _params['owner']:
313
+ _path_params['owner'] = _params['owner']
314
+
315
+
316
+ # process the query parameters
317
+ _query_params = []
318
+ # process the header parameters
319
+ _header_params = dict(_params.get('_headers', {}))
320
+ # process the form parameters
321
+ _form_params = []
322
+ _files = {}
323
+ # process the body parameter
324
+ _body_params = None
325
+ if _params['body']:
326
+ _body_params = _params['body']
327
+
328
+ # set the HTTP header `Accept`
329
+ _header_params['Accept'] = self.api_client.select_header_accept(
330
+ ['application/json']) # noqa: E501
331
+
332
+ # set the HTTP header `Content-Type`
333
+ _content_types_list = _params.get('_content_type',
334
+ self.api_client.select_header_content_type(
335
+ ['application/json']))
336
+ if _content_types_list:
337
+ _header_params['Content-Type'] = _content_types_list
338
+
339
+ # authentication setting
340
+ _auth_settings = ['ApiKey'] # noqa: E501
341
+
342
+ _response_types_map = {
343
+ '200': "V1Agent",
344
+ '204': "object",
345
+ '403': "object",
346
+ '404': "object",
347
+ }
348
+
349
+ return self.api_client.call_api(
350
+ '/api/v1/orgs/{owner}/agents', 'POST',
351
+ _path_params,
352
+ _query_params,
353
+ _header_params,
354
+ body=_body_params,
355
+ post_params=_form_params,
356
+ files=_files,
357
+ response_types_map=_response_types_map,
358
+ auth_settings=_auth_settings,
359
+ async_req=_params.get('async_req'),
360
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
361
+ _preload_content=_params.get('_preload_content', True),
362
+ _request_timeout=_params.get('_request_timeout'),
363
+ collection_formats=_collection_formats,
364
+ _request_auth=_params.get('_request_auth'))
365
+
366
+ @validate_arguments
367
+ def create_agent_status(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], body : V1AgentStatusBodyRequest, **kwargs) -> V1Status: # noqa: E501
368
+ """Create new agent status # noqa: E501
369
+
370
+ This method makes a synchronous HTTP request by default. To make an
371
+ asynchronous HTTP request, please pass async_req=True
372
+
373
+ >>> thread = api.create_agent_status(owner, uuid, body, async_req=True)
374
+ >>> result = thread.get()
375
+
376
+ :param owner: Owner of the namespace (required)
377
+ :type owner: str
378
+ :param uuid: Uuid identifier of the entity (required)
379
+ :type uuid: str
380
+ :param body: (required)
381
+ :type body: V1AgentStatusBodyRequest
382
+ :param async_req: Whether to execute the request asynchronously.
383
+ :type async_req: bool, optional
384
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
385
+ be returned without reading/decoding response
386
+ data. Default is True.
387
+ :type _preload_content: bool, optional
388
+ :param _request_timeout: timeout setting for this request. If one
389
+ number provided, it will be total request
390
+ timeout. It can also be a pair (tuple) of
391
+ (connection, read) timeouts.
392
+ :return: Returns the result object.
393
+ If the method is called asynchronously,
394
+ returns the request thread.
395
+ :rtype: V1Status
396
+ """
397
+ kwargs['_return_http_data_only'] = True
398
+ return self.create_agent_status_with_http_info(owner, uuid, body, **kwargs) # noqa: E501
399
+
400
+ @validate_arguments
401
+ def create_agent_status_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], body : V1AgentStatusBodyRequest, **kwargs): # noqa: E501
402
+ """Create new agent status # noqa: E501
403
+
404
+ This method makes a synchronous HTTP request by default. To make an
405
+ asynchronous HTTP request, please pass async_req=True
406
+
407
+ >>> thread = api.create_agent_status_with_http_info(owner, uuid, body, async_req=True)
408
+ >>> result = thread.get()
409
+
410
+ :param owner: Owner of the namespace (required)
411
+ :type owner: str
412
+ :param uuid: Uuid identifier of the entity (required)
413
+ :type uuid: str
414
+ :param body: (required)
415
+ :type body: V1AgentStatusBodyRequest
416
+ :param async_req: Whether to execute the request asynchronously.
417
+ :type async_req: bool, optional
418
+ :param _return_http_data_only: response data without head status code
419
+ and headers
420
+ :type _return_http_data_only: bool, optional
421
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
422
+ be returned without reading/decoding response
423
+ data. Default is True.
424
+ :type _preload_content: bool, optional
425
+ :param _request_timeout: timeout setting for this request. If one
426
+ number provided, it will be total request
427
+ timeout. It can also be a pair (tuple) of
428
+ (connection, read) timeouts.
429
+ :param _request_auth: set to override the auth_settings for an a single
430
+ request; this effectively ignores the authentication
431
+ in the spec for a single request.
432
+ :type _request_auth: dict, optional
433
+ :type _content_type: string, optional: force content-type for the request
434
+ :return: Returns the result object.
435
+ If the method is called asynchronously,
436
+ returns the request thread.
437
+ :rtype: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
438
+ """
439
+
440
+ _params = locals()
441
+
442
+ _all_params = [
443
+ 'owner',
444
+ 'uuid',
445
+ 'body'
446
+ ]
447
+ _all_params.extend(
448
+ [
449
+ 'async_req',
450
+ '_return_http_data_only',
451
+ '_preload_content',
452
+ '_request_timeout',
453
+ '_request_auth',
454
+ '_content_type',
455
+ '_headers'
456
+ ]
457
+ )
458
+
459
+ # validate the arguments
460
+ for _key, _val in _params['kwargs'].items():
461
+ if _key not in _all_params:
462
+ raise ApiTypeError(
463
+ "Got an unexpected keyword argument '%s'"
464
+ " to method create_agent_status" % _key
465
+ )
466
+ _params[_key] = _val
467
+ del _params['kwargs']
468
+
469
+ _collection_formats = {}
470
+
471
+ # process the path parameters
472
+ _path_params = {}
473
+ if _params['owner']:
474
+ _path_params['owner'] = _params['owner']
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
+ if _params['body']:
490
+ _body_params = _params['body']
491
+
492
+ # set the HTTP header `Accept`
493
+ _header_params['Accept'] = self.api_client.select_header_accept(
494
+ ['application/json']) # noqa: E501
495
+
496
+ # set the HTTP header `Content-Type`
497
+ _content_types_list = _params.get('_content_type',
498
+ self.api_client.select_header_content_type(
499
+ ['application/json']))
500
+ if _content_types_list:
501
+ _header_params['Content-Type'] = _content_types_list
502
+
503
+ # authentication setting
504
+ _auth_settings = ['ApiKey'] # noqa: E501
505
+
506
+ _response_types_map = {
507
+ '200': "V1Status",
508
+ '204': "object",
509
+ '403': "object",
510
+ '404': "object",
511
+ }
512
+
513
+ return self.api_client.call_api(
514
+ '/api/v1/orgs/{owner}/agents/{uuid}/statuses', 'POST',
515
+ _path_params,
516
+ _query_params,
517
+ _header_params,
518
+ body=_body_params,
519
+ post_params=_form_params,
520
+ files=_files,
521
+ response_types_map=_response_types_map,
522
+ auth_settings=_auth_settings,
523
+ async_req=_params.get('async_req'),
524
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
525
+ _preload_content=_params.get('_preload_content', True),
526
+ _request_timeout=_params.get('_request_timeout'),
527
+ collection_formats=_collection_formats,
528
+ _request_auth=_params.get('_request_auth'))
529
+
530
+ @validate_arguments
531
+ def cron_agent(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[Dict[str, Any], Field(..., description="Cron body")], **kwargs) -> V1AgentStateResponse: # noqa: E501
532
+ """Global Cron # noqa: E501
533
+
534
+ This method makes a synchronous HTTP request by default. To make an
535
+ asynchronous HTTP request, please pass async_req=True
536
+
537
+ >>> thread = api.cron_agent(owner, body, async_req=True)
538
+ >>> result = thread.get()
539
+
540
+ :param owner: Owner of the namespace (required)
541
+ :type owner: str
542
+ :param body: Cron body (required)
543
+ :type body: object
544
+ :param async_req: Whether to execute the request asynchronously.
545
+ :type async_req: bool, optional
546
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
547
+ be returned without reading/decoding response
548
+ data. Default is True.
549
+ :type _preload_content: bool, optional
550
+ :param _request_timeout: timeout setting for this request. If one
551
+ number provided, it will be total request
552
+ timeout. It can also be a pair (tuple) of
553
+ (connection, read) timeouts.
554
+ :return: Returns the result object.
555
+ If the method is called asynchronously,
556
+ returns the request thread.
557
+ :rtype: V1AgentStateResponse
558
+ """
559
+ kwargs['_return_http_data_only'] = True
560
+ return self.cron_agent_with_http_info(owner, body, **kwargs) # noqa: E501
561
+
562
+ @validate_arguments
563
+ def cron_agent_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[Dict[str, Any], Field(..., description="Cron body")], **kwargs): # noqa: E501
564
+ """Global Cron # noqa: E501
565
+
566
+ This method makes a synchronous HTTP request by default. To make an
567
+ asynchronous HTTP request, please pass async_req=True
568
+
569
+ >>> thread = api.cron_agent_with_http_info(owner, body, async_req=True)
570
+ >>> result = thread.get()
571
+
572
+ :param owner: Owner of the namespace (required)
573
+ :type owner: str
574
+ :param body: Cron body (required)
575
+ :type body: object
576
+ :param async_req: Whether to execute the request asynchronously.
577
+ :type async_req: bool, optional
578
+ :param _return_http_data_only: response data without head status code
579
+ and headers
580
+ :type _return_http_data_only: bool, optional
581
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
582
+ be returned without reading/decoding response
583
+ data. Default is True.
584
+ :type _preload_content: bool, optional
585
+ :param _request_timeout: timeout setting for this request. If one
586
+ number provided, it will be total request
587
+ timeout. It can also be a pair (tuple) of
588
+ (connection, read) timeouts.
589
+ :param _request_auth: set to override the auth_settings for an a single
590
+ request; this effectively ignores the authentication
591
+ in the spec for a single request.
592
+ :type _request_auth: dict, optional
593
+ :type _content_type: string, optional: force content-type for the request
594
+ :return: Returns the result object.
595
+ If the method is called asynchronously,
596
+ returns the request thread.
597
+ :rtype: tuple(V1AgentStateResponse, status_code(int), headers(HTTPHeaderDict))
598
+ """
599
+
600
+ _params = locals()
601
+
602
+ _all_params = [
603
+ 'owner',
604
+ 'body'
605
+ ]
606
+ _all_params.extend(
607
+ [
608
+ 'async_req',
609
+ '_return_http_data_only',
610
+ '_preload_content',
611
+ '_request_timeout',
612
+ '_request_auth',
613
+ '_content_type',
614
+ '_headers'
615
+ ]
616
+ )
617
+
618
+ # validate the arguments
619
+ for _key, _val in _params['kwargs'].items():
620
+ if _key not in _all_params:
621
+ raise ApiTypeError(
622
+ "Got an unexpected keyword argument '%s'"
623
+ " to method cron_agent" % _key
624
+ )
625
+ _params[_key] = _val
626
+ del _params['kwargs']
627
+
628
+ _collection_formats = {}
629
+
630
+ # process the path parameters
631
+ _path_params = {}
632
+ if _params['owner']:
633
+ _path_params['owner'] = _params['owner']
634
+
635
+
636
+ # process the query parameters
637
+ _query_params = []
638
+ # process the header parameters
639
+ _header_params = dict(_params.get('_headers', {}))
640
+ # process the form parameters
641
+ _form_params = []
642
+ _files = {}
643
+ # process the body parameter
644
+ _body_params = None
645
+ if _params['body']:
646
+ _body_params = _params['body']
647
+
648
+ # set the HTTP header `Accept`
649
+ _header_params['Accept'] = self.api_client.select_header_accept(
650
+ ['application/json']) # noqa: E501
651
+
652
+ # set the HTTP header `Content-Type`
653
+ _content_types_list = _params.get('_content_type',
654
+ self.api_client.select_header_content_type(
655
+ ['application/json']))
656
+ if _content_types_list:
657
+ _header_params['Content-Type'] = _content_types_list
658
+
659
+ # authentication setting
660
+ _auth_settings = ['ApiKey'] # noqa: E501
661
+
662
+ _response_types_map = {
663
+ '200': "V1AgentStateResponse",
664
+ '204': "object",
665
+ '403': "object",
666
+ '404': "object",
667
+ }
668
+
669
+ return self.api_client.call_api(
670
+ '/api/v1/orgs/{owner}/agents/cron', 'POST',
671
+ _path_params,
672
+ _query_params,
673
+ _header_params,
674
+ body=_body_params,
675
+ post_params=_form_params,
676
+ files=_files,
677
+ response_types_map=_response_types_map,
678
+ auth_settings=_auth_settings,
679
+ async_req=_params.get('async_req'),
680
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
681
+ _preload_content=_params.get('_preload_content', True),
682
+ _request_timeout=_params.get('_request_timeout'),
683
+ collection_formats=_collection_formats,
684
+ _request_auth=_params.get('_request_auth'))
685
+
686
+ @validate_arguments
687
+ def delete_agent(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], entity : Annotated[Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ...")] = None, **kwargs) -> None: # noqa: E501
688
+ """Delete agent # noqa: E501
689
+
690
+ This method makes a synchronous HTTP request by default. To make an
691
+ asynchronous HTTP request, please pass async_req=True
692
+
693
+ >>> thread = api.delete_agent(owner, uuid, entity, async_req=True)
694
+ >>> result = thread.get()
695
+
696
+ :param owner: Owner of the namespace (required)
697
+ :type owner: str
698
+ :param uuid: Uuid identifier of the sub-entity (required)
699
+ :type uuid: str
700
+ :param entity: Entity: project name, hub name, registry name, ...
701
+ :type entity: str
702
+ :param async_req: Whether to execute the request asynchronously.
703
+ :type async_req: bool, optional
704
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
705
+ be returned without reading/decoding response
706
+ data. Default is True.
707
+ :type _preload_content: bool, optional
708
+ :param _request_timeout: timeout setting for this request. If one
709
+ number provided, it will be total request
710
+ timeout. It can also be a pair (tuple) of
711
+ (connection, read) timeouts.
712
+ :return: Returns the result object.
713
+ If the method is called asynchronously,
714
+ returns the request thread.
715
+ :rtype: None
716
+ """
717
+ kwargs['_return_http_data_only'] = True
718
+ return self.delete_agent_with_http_info(owner, uuid, entity, **kwargs) # noqa: E501
719
+
720
+ @validate_arguments
721
+ def delete_agent_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], entity : Annotated[Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ...")] = None, **kwargs): # noqa: E501
722
+ """Delete agent # noqa: E501
723
+
724
+ This method makes a synchronous HTTP request by default. To make an
725
+ asynchronous HTTP request, please pass async_req=True
726
+
727
+ >>> thread = api.delete_agent_with_http_info(owner, uuid, entity, async_req=True)
728
+ >>> result = thread.get()
729
+
730
+ :param owner: Owner of the namespace (required)
731
+ :type owner: str
732
+ :param uuid: Uuid identifier of the sub-entity (required)
733
+ :type uuid: str
734
+ :param entity: Entity: project name, hub name, registry name, ...
735
+ :type entity: str
736
+ :param async_req: Whether to execute the request asynchronously.
737
+ :type async_req: bool, optional
738
+ :param _return_http_data_only: response data without head status code
739
+ and headers
740
+ :type _return_http_data_only: bool, optional
741
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
742
+ be returned without reading/decoding response
743
+ data. Default is True.
744
+ :type _preload_content: bool, optional
745
+ :param _request_timeout: timeout setting for this request. If one
746
+ number provided, it will be total request
747
+ timeout. It can also be a pair (tuple) of
748
+ (connection, read) timeouts.
749
+ :param _request_auth: set to override the auth_settings for an a single
750
+ request; this effectively ignores the authentication
751
+ in the spec for a single request.
752
+ :type _request_auth: dict, optional
753
+ :type _content_type: string, optional: force content-type for the request
754
+ :return: Returns the result object.
755
+ If the method is called asynchronously,
756
+ returns the request thread.
757
+ :rtype: None
758
+ """
759
+
760
+ _params = locals()
761
+
762
+ _all_params = [
763
+ 'owner',
764
+ 'uuid',
765
+ 'entity'
766
+ ]
767
+ _all_params.extend(
768
+ [
769
+ 'async_req',
770
+ '_return_http_data_only',
771
+ '_preload_content',
772
+ '_request_timeout',
773
+ '_request_auth',
774
+ '_content_type',
775
+ '_headers'
776
+ ]
777
+ )
778
+
779
+ # validate the arguments
780
+ for _key, _val in _params['kwargs'].items():
781
+ if _key not in _all_params:
782
+ raise ApiTypeError(
783
+ "Got an unexpected keyword argument '%s'"
784
+ " to method delete_agent" % _key
785
+ )
786
+ _params[_key] = _val
787
+ del _params['kwargs']
788
+
789
+ _collection_formats = {}
790
+
791
+ # process the path parameters
792
+ _path_params = {}
793
+ if _params['owner']:
794
+ _path_params['owner'] = _params['owner']
795
+
796
+ if _params['uuid']:
797
+ _path_params['uuid'] = _params['uuid']
798
+
799
+
800
+ # process the query parameters
801
+ _query_params = []
802
+ if _params.get('entity') is not None: # noqa: E501
803
+ _query_params.append(('entity', _params['entity']))
804
+
805
+ # process the header parameters
806
+ _header_params = dict(_params.get('_headers', {}))
807
+ # process the form parameters
808
+ _form_params = []
809
+ _files = {}
810
+ # process the body parameter
811
+ _body_params = None
812
+ # set the HTTP header `Accept`
813
+ _header_params['Accept'] = self.api_client.select_header_accept(
814
+ ['application/json']) # noqa: E501
815
+
816
+ # authentication setting
817
+ _auth_settings = ['ApiKey'] # noqa: E501
818
+
819
+ _response_types_map = {}
820
+
821
+ return self.api_client.call_api(
822
+ '/api/v1/orgs/{owner}/agents/{uuid}', 'DELETE',
823
+ _path_params,
824
+ _query_params,
825
+ _header_params,
826
+ body=_body_params,
827
+ post_params=_form_params,
828
+ files=_files,
829
+ response_types_map=_response_types_map,
830
+ auth_settings=_auth_settings,
831
+ async_req=_params.get('async_req'),
832
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
833
+ _preload_content=_params.get('_preload_content', True),
834
+ _request_timeout=_params.get('_request_timeout'),
835
+ collection_formats=_collection_formats,
836
+ _request_auth=_params.get('_request_auth'))
837
+
838
+ @validate_arguments
839
+ def get_agent(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], entity : Annotated[Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ...")] = None, **kwargs) -> V1Agent: # noqa: E501
840
+ """Get agent # noqa: E501
841
+
842
+ This method makes a synchronous HTTP request by default. To make an
843
+ asynchronous HTTP request, please pass async_req=True
844
+
845
+ >>> thread = api.get_agent(owner, uuid, entity, async_req=True)
846
+ >>> result = thread.get()
847
+
848
+ :param owner: Owner of the namespace (required)
849
+ :type owner: str
850
+ :param uuid: Uuid identifier of the sub-entity (required)
851
+ :type uuid: str
852
+ :param entity: Entity: project name, hub name, registry name, ...
853
+ :type entity: str
854
+ :param async_req: Whether to execute the request asynchronously.
855
+ :type async_req: bool, optional
856
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
857
+ be returned without reading/decoding response
858
+ data. Default is True.
859
+ :type _preload_content: bool, optional
860
+ :param _request_timeout: timeout setting for this request. If one
861
+ number provided, it will be total request
862
+ timeout. It can also be a pair (tuple) of
863
+ (connection, read) timeouts.
864
+ :return: Returns the result object.
865
+ If the method is called asynchronously,
866
+ returns the request thread.
867
+ :rtype: V1Agent
868
+ """
869
+ kwargs['_return_http_data_only'] = True
870
+ return self.get_agent_with_http_info(owner, uuid, entity, **kwargs) # noqa: E501
871
+
872
+ @validate_arguments
873
+ def get_agent_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], entity : Annotated[Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ...")] = None, **kwargs): # noqa: E501
874
+ """Get agent # noqa: E501
875
+
876
+ This method makes a synchronous HTTP request by default. To make an
877
+ asynchronous HTTP request, please pass async_req=True
878
+
879
+ >>> thread = api.get_agent_with_http_info(owner, uuid, entity, async_req=True)
880
+ >>> result = thread.get()
881
+
882
+ :param owner: Owner of the namespace (required)
883
+ :type owner: str
884
+ :param uuid: Uuid identifier of the sub-entity (required)
885
+ :type uuid: str
886
+ :param entity: Entity: project name, hub name, registry name, ...
887
+ :type entity: str
888
+ :param async_req: Whether to execute the request asynchronously.
889
+ :type async_req: bool, optional
890
+ :param _return_http_data_only: response data without head status code
891
+ and headers
892
+ :type _return_http_data_only: bool, optional
893
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
894
+ be returned without reading/decoding response
895
+ data. Default is True.
896
+ :type _preload_content: bool, optional
897
+ :param _request_timeout: timeout setting for this request. If one
898
+ number provided, it will be total request
899
+ timeout. It can also be a pair (tuple) of
900
+ (connection, read) timeouts.
901
+ :param _request_auth: set to override the auth_settings for an a single
902
+ request; this effectively ignores the authentication
903
+ in the spec for a single request.
904
+ :type _request_auth: dict, optional
905
+ :type _content_type: string, optional: force content-type for the request
906
+ :return: Returns the result object.
907
+ If the method is called asynchronously,
908
+ returns the request thread.
909
+ :rtype: tuple(V1Agent, status_code(int), headers(HTTPHeaderDict))
910
+ """
911
+
912
+ _params = locals()
913
+
914
+ _all_params = [
915
+ 'owner',
916
+ 'uuid',
917
+ 'entity'
918
+ ]
919
+ _all_params.extend(
920
+ [
921
+ 'async_req',
922
+ '_return_http_data_only',
923
+ '_preload_content',
924
+ '_request_timeout',
925
+ '_request_auth',
926
+ '_content_type',
927
+ '_headers'
928
+ ]
929
+ )
930
+
931
+ # validate the arguments
932
+ for _key, _val in _params['kwargs'].items():
933
+ if _key not in _all_params:
934
+ raise ApiTypeError(
935
+ "Got an unexpected keyword argument '%s'"
936
+ " to method get_agent" % _key
937
+ )
938
+ _params[_key] = _val
939
+ del _params['kwargs']
940
+
941
+ _collection_formats = {}
942
+
943
+ # process the path parameters
944
+ _path_params = {}
945
+ if _params['owner']:
946
+ _path_params['owner'] = _params['owner']
947
+
948
+ if _params['uuid']:
949
+ _path_params['uuid'] = _params['uuid']
950
+
951
+
952
+ # process the query parameters
953
+ _query_params = []
954
+ if _params.get('entity') is not None: # noqa: E501
955
+ _query_params.append(('entity', _params['entity']))
956
+
957
+ # process the header parameters
958
+ _header_params = dict(_params.get('_headers', {}))
959
+ # process the form parameters
960
+ _form_params = []
961
+ _files = {}
962
+ # process the body parameter
963
+ _body_params = None
964
+ # set the HTTP header `Accept`
965
+ _header_params['Accept'] = self.api_client.select_header_accept(
966
+ ['application/json']) # noqa: E501
967
+
968
+ # authentication setting
969
+ _auth_settings = ['ApiKey'] # noqa: E501
970
+
971
+ _response_types_map = {
972
+ '200': "V1Agent",
973
+ '204': "object",
974
+ '403': "object",
975
+ '404': "object",
976
+ }
977
+
978
+ return self.api_client.call_api(
979
+ '/api/v1/orgs/{owner}/agents/{uuid}', 'GET',
980
+ _path_params,
981
+ _query_params,
982
+ _header_params,
983
+ body=_body_params,
984
+ post_params=_form_params,
985
+ files=_files,
986
+ response_types_map=_response_types_map,
987
+ auth_settings=_auth_settings,
988
+ async_req=_params.get('async_req'),
989
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
990
+ _preload_content=_params.get('_preload_content', True),
991
+ _request_timeout=_params.get('_request_timeout'),
992
+ collection_formats=_collection_formats,
993
+ _request_auth=_params.get('_request_auth'))
994
+
995
+ @validate_arguments
996
+ def get_agent_config(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], entity : Annotated[Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ...")] = None, **kwargs) -> V1Agent: # noqa: E501
997
+ """Get agent config # noqa: E501
58
998
 
59
999
  This method makes a synchronous HTTP request by default. To make an
60
1000
  asynchronous HTTP request, please pass async_req=True
61
1001
 
62
- >>> thread = api.create_agent(owner, body, async_req=True)
1002
+ >>> thread = api.get_agent_config(owner, uuid, entity, async_req=True)
63
1003
  >>> result = thread.get()
64
1004
 
65
1005
  :param owner: Owner of the namespace (required)
66
1006
  :type owner: str
67
- :param body: Agent body (required)
68
- :type body: V1Agent
1007
+ :param uuid: Uuid identifier of the sub-entity (required)
1008
+ :type uuid: str
1009
+ :param entity: Entity: project name, hub name, registry name, ...
1010
+ :type entity: str
69
1011
  :param async_req: Whether to execute the request asynchronously.
70
1012
  :type async_req: bool, optional
71
1013
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -82,21 +1024,24 @@ class AgentsV1Api(object):
82
1024
  :rtype: V1Agent
83
1025
  """
84
1026
  kwargs['_return_http_data_only'] = True
85
- return self.create_agent_with_http_info(owner, body, **kwargs) # noqa: E501
1027
+ return self.get_agent_config_with_http_info(owner, uuid, entity, **kwargs) # noqa: E501
86
1028
 
87
- def create_agent_with_http_info(self, owner, body, **kwargs): # noqa: E501
88
- """Create agent # noqa: E501
1029
+ @validate_arguments
1030
+ def get_agent_config_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], entity : Annotated[Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ...")] = None, **kwargs): # noqa: E501
1031
+ """Get agent config # noqa: E501
89
1032
 
90
1033
  This method makes a synchronous HTTP request by default. To make an
91
1034
  asynchronous HTTP request, please pass async_req=True
92
1035
 
93
- >>> thread = api.create_agent_with_http_info(owner, body, async_req=True)
1036
+ >>> thread = api.get_agent_config_with_http_info(owner, uuid, entity, async_req=True)
94
1037
  >>> result = thread.get()
95
1038
 
96
1039
  :param owner: Owner of the namespace (required)
97
1040
  :type owner: str
98
- :param body: Agent body (required)
99
- :type body: V1Agent
1041
+ :param uuid: Uuid identifier of the sub-entity (required)
1042
+ :type uuid: str
1043
+ :param entity: Entity: project name, hub name, registry name, ...
1044
+ :type entity: str
100
1045
  :param async_req: Whether to execute the request asynchronously.
101
1046
  :type async_req: bool, optional
102
1047
  :param _return_http_data_only: response data without head status code
@@ -114,111 +1059,120 @@ class AgentsV1Api(object):
114
1059
  request; this effectively ignores the authentication
115
1060
  in the spec for a single request.
116
1061
  :type _request_auth: dict, optional
1062
+ :type _content_type: string, optional: force content-type for the request
117
1063
  :return: Returns the result object.
118
1064
  If the method is called asynchronously,
119
1065
  returns the request thread.
120
1066
  :rtype: tuple(V1Agent, status_code(int), headers(HTTPHeaderDict))
121
1067
  """
122
1068
 
123
- local_var_params = locals()
1069
+ _params = locals()
124
1070
 
125
- all_params = [
1071
+ _all_params = [
126
1072
  'owner',
127
- 'body'
1073
+ 'uuid',
1074
+ 'entity'
128
1075
  ]
129
- all_params.extend(
1076
+ _all_params.extend(
130
1077
  [
131
1078
  'async_req',
132
1079
  '_return_http_data_only',
133
1080
  '_preload_content',
134
1081
  '_request_timeout',
135
- '_request_auth'
1082
+ '_request_auth',
1083
+ '_content_type',
1084
+ '_headers'
136
1085
  ]
137
1086
  )
138
1087
 
139
- for key, val in six.iteritems(local_var_params['kwargs']):
140
- if key not in all_params:
1088
+ # validate the arguments
1089
+ for _key, _val in _params['kwargs'].items():
1090
+ if _key not in _all_params:
141
1091
  raise ApiTypeError(
142
1092
  "Got an unexpected keyword argument '%s'"
143
- " to method create_agent" % key
1093
+ " to method get_agent_config" % _key
144
1094
  )
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_agent`") # 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_agent`") # 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(
1095
+ _params[_key] = _val
1096
+ del _params['kwargs']
1097
+
1098
+ _collection_formats = {}
1099
+
1100
+ # process the path parameters
1101
+ _path_params = {}
1102
+ if _params['owner']:
1103
+ _path_params['owner'] = _params['owner']
1104
+
1105
+ if _params['uuid']:
1106
+ _path_params['uuid'] = _params['uuid']
1107
+
1108
+
1109
+ # process the query parameters
1110
+ _query_params = []
1111
+ if _params.get('entity') is not None: # noqa: E501
1112
+ _query_params.append(('entity', _params['entity']))
1113
+
1114
+ # process the header parameters
1115
+ _header_params = dict(_params.get('_headers', {}))
1116
+ # process the form parameters
1117
+ _form_params = []
1118
+ _files = {}
1119
+ # process the body parameter
1120
+ _body_params = None
1121
+ # set the HTTP header `Accept`
1122
+ _header_params['Accept'] = self.api_client.select_header_accept(
174
1123
  ['application/json']) # noqa: E501
175
1124
 
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
1125
+ # authentication setting
1126
+ _auth_settings = ['ApiKey'] # noqa: E501
182
1127
 
183
- response_types_map = {
184
- 200: "V1Agent",
185
- 204: "object",
186
- 403: "object",
187
- 404: "object",
1128
+ _response_types_map = {
1129
+ '200': "V1Agent",
1130
+ '204': "object",
1131
+ '403': "object",
1132
+ '404': "object",
188
1133
  }
189
1134
 
190
1135
  return self.api_client.call_api(
191
- '/api/v1/orgs/{owner}/agents', 'POST',
192
- path_params,
193
- query_params,
194
- header_params,
195
- body=body_params,
196
- post_params=form_params,
197
- files=local_var_files,
198
- response_types_map=response_types_map,
199
- auth_settings=auth_settings,
200
- async_req=local_var_params.get('async_req'),
201
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
202
- _preload_content=local_var_params.get('_preload_content', True),
203
- _request_timeout=local_var_params.get('_request_timeout'),
204
- collection_formats=collection_formats,
205
- _request_auth=local_var_params.get('_request_auth'))
206
-
207
- def create_agent_status(self, owner, uuid, body, **kwargs): # noqa: E501
208
- """Create new agent status # noqa: E501
1136
+ '/api/v1/orgs/{owner}/agents/{uuid}/config', 'GET',
1137
+ _path_params,
1138
+ _query_params,
1139
+ _header_params,
1140
+ body=_body_params,
1141
+ post_params=_form_params,
1142
+ files=_files,
1143
+ response_types_map=_response_types_map,
1144
+ auth_settings=_auth_settings,
1145
+ async_req=_params.get('async_req'),
1146
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1147
+ _preload_content=_params.get('_preload_content', True),
1148
+ _request_timeout=_params.get('_request_timeout'),
1149
+ collection_formats=_collection_formats,
1150
+ _request_auth=_params.get('_request_auth'))
1151
+
1152
+ @validate_arguments
1153
+ def get_agent_logs(self, namespace : Annotated[StrictStr, Field(..., description="namespace")], owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], service : Annotated[Optional[StrictStr], Field(description="Service.")] = None, last_file : Annotated[Optional[StrictStr], Field(description="last_file.")] = None, force : Annotated[Optional[StrictBool], Field(description="Force query param.")] = None, connection : Annotated[Optional[StrictStr], Field(description="Connection to use.")] = None, **kwargs) -> V1Logs: # noqa: E501
1154
+ """Get run logs # noqa: E501
209
1155
 
210
1156
  This method makes a synchronous HTTP request by default. To make an
211
1157
  asynchronous HTTP request, please pass async_req=True
212
1158
 
213
- >>> thread = api.create_agent_status(owner, uuid, body, async_req=True)
1159
+ >>> thread = api.get_agent_logs(namespace, owner, uuid, service, last_file, force, connection, async_req=True)
214
1160
  >>> result = thread.get()
215
1161
 
1162
+ :param namespace: namespace (required)
1163
+ :type namespace: str
216
1164
  :param owner: Owner of the namespace (required)
217
1165
  :type owner: str
218
1166
  :param uuid: Uuid identifier of the entity (required)
219
1167
  :type uuid: str
220
- :param body: (required)
221
- :type body: V1AgentStatusBodyRequest
1168
+ :param service: Service.
1169
+ :type service: str
1170
+ :param last_file: last_file.
1171
+ :type last_file: str
1172
+ :param force: Force query param.
1173
+ :type force: bool
1174
+ :param connection: Connection to use.
1175
+ :type connection: str
222
1176
  :param async_req: Whether to execute the request asynchronously.
223
1177
  :type async_req: bool, optional
224
1178
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -232,26 +1186,35 @@ class AgentsV1Api(object):
232
1186
  :return: Returns the result object.
233
1187
  If the method is called asynchronously,
234
1188
  returns the request thread.
235
- :rtype: V1Status
1189
+ :rtype: V1Logs
236
1190
  """
237
1191
  kwargs['_return_http_data_only'] = True
238
- return self.create_agent_status_with_http_info(owner, uuid, body, **kwargs) # noqa: E501
1192
+ return self.get_agent_logs_with_http_info(namespace, owner, uuid, service, last_file, force, connection, **kwargs) # noqa: E501
239
1193
 
240
- def create_agent_status_with_http_info(self, owner, uuid, body, **kwargs): # noqa: E501
241
- """Create new agent status # noqa: E501
1194
+ @validate_arguments
1195
+ def get_agent_logs_with_http_info(self, namespace : Annotated[StrictStr, Field(..., description="namespace")], owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], service : Annotated[Optional[StrictStr], Field(description="Service.")] = None, last_file : Annotated[Optional[StrictStr], Field(description="last_file.")] = None, force : Annotated[Optional[StrictBool], Field(description="Force query param.")] = None, connection : Annotated[Optional[StrictStr], Field(description="Connection to use.")] = None, **kwargs): # noqa: E501
1196
+ """Get run logs # noqa: E501
242
1197
 
243
1198
  This method makes a synchronous HTTP request by default. To make an
244
1199
  asynchronous HTTP request, please pass async_req=True
245
1200
 
246
- >>> thread = api.create_agent_status_with_http_info(owner, uuid, body, async_req=True)
1201
+ >>> thread = api.get_agent_logs_with_http_info(namespace, owner, uuid, service, last_file, force, connection, async_req=True)
247
1202
  >>> result = thread.get()
248
1203
 
1204
+ :param namespace: namespace (required)
1205
+ :type namespace: str
249
1206
  :param owner: Owner of the namespace (required)
250
1207
  :type owner: str
251
1208
  :param uuid: Uuid identifier of the entity (required)
252
1209
  :type uuid: str
253
- :param body: (required)
254
- :type body: V1AgentStatusBodyRequest
1210
+ :param service: Service.
1211
+ :type service: str
1212
+ :param last_file: last_file.
1213
+ :type last_file: str
1214
+ :param force: Force query param.
1215
+ :type force: bool
1216
+ :param connection: Connection to use.
1217
+ :type connection: str
255
1218
  :param async_req: Whether to execute the request asynchronously.
256
1219
  :type async_req: bool, optional
257
1220
  :param _return_http_data_only: response data without head status code
@@ -269,118 +1232,126 @@ class AgentsV1Api(object):
269
1232
  request; this effectively ignores the authentication
270
1233
  in the spec for a single request.
271
1234
  :type _request_auth: dict, optional
1235
+ :type _content_type: string, optional: force content-type for the request
272
1236
  :return: Returns the result object.
273
1237
  If the method is called asynchronously,
274
1238
  returns the request thread.
275
- :rtype: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
1239
+ :rtype: tuple(V1Logs, status_code(int), headers(HTTPHeaderDict))
276
1240
  """
277
1241
 
278
- local_var_params = locals()
1242
+ _params = locals()
279
1243
 
280
- all_params = [
1244
+ _all_params = [
1245
+ 'namespace',
281
1246
  'owner',
282
1247
  'uuid',
283
- 'body'
1248
+ 'service',
1249
+ 'last_file',
1250
+ 'force',
1251
+ 'connection'
284
1252
  ]
285
- all_params.extend(
1253
+ _all_params.extend(
286
1254
  [
287
1255
  'async_req',
288
1256
  '_return_http_data_only',
289
1257
  '_preload_content',
290
1258
  '_request_timeout',
291
- '_request_auth'
1259
+ '_request_auth',
1260
+ '_content_type',
1261
+ '_headers'
292
1262
  ]
293
1263
  )
294
1264
 
295
- for key, val in six.iteritems(local_var_params['kwargs']):
296
- if key not in all_params:
1265
+ # validate the arguments
1266
+ for _key, _val in _params['kwargs'].items():
1267
+ if _key not in _all_params:
297
1268
  raise ApiTypeError(
298
1269
  "Got an unexpected keyword argument '%s'"
299
- " to method create_agent_status" % key
1270
+ " to method get_agent_logs" % _key
300
1271
  )
301
- local_var_params[key] = val
302
- del local_var_params['kwargs']
303
- # verify the required parameter 'owner' is set
304
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
305
- local_var_params['owner'] is None): # noqa: E501
306
- raise ApiValueError("Missing the required parameter `owner` when calling `create_agent_status`") # 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 `create_agent_status`") # noqa: E501
311
- # verify the required parameter 'body' is set
312
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
313
- local_var_params['body'] is None): # noqa: E501
314
- raise ApiValueError("Missing the required parameter `body` when calling `create_agent_status`") # noqa: E501
315
-
316
- collection_formats = {}
317
-
318
- path_params = {}
319
- if 'owner' in local_var_params:
320
- path_params['owner'] = local_var_params['owner'] # noqa: E501
321
- if 'uuid' in local_var_params:
322
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
323
-
324
- query_params = []
325
-
326
- header_params = {}
327
-
328
- form_params = []
329
- local_var_files = {}
330
-
331
- body_params = None
332
- if 'body' in local_var_params:
333
- body_params = local_var_params['body']
334
- # HTTP header `Accept`
335
- header_params['Accept'] = self.api_client.select_header_accept(
336
- ['application/json']) # noqa: E501
1272
+ _params[_key] = _val
1273
+ del _params['kwargs']
1274
+
1275
+ _collection_formats = {}
1276
+
1277
+ # process the path parameters
1278
+ _path_params = {}
1279
+ if _params['namespace']:
1280
+ _path_params['namespace'] = _params['namespace']
1281
+
1282
+ if _params['owner']:
1283
+ _path_params['owner'] = _params['owner']
1284
+
1285
+ if _params['uuid']:
1286
+ _path_params['uuid'] = _params['uuid']
1287
+
1288
+
1289
+ # process the query parameters
1290
+ _query_params = []
1291
+ if _params.get('service') is not None: # noqa: E501
1292
+ _query_params.append(('service', _params['service']))
1293
+
1294
+ if _params.get('last_file') is not None: # noqa: E501
1295
+ _query_params.append(('last_file', _params['last_file']))
337
1296
 
338
- # HTTP header `Content-Type`
339
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1297
+ if _params.get('force') is not None: # noqa: E501
1298
+ _query_params.append(('force', _params['force']))
1299
+
1300
+ if _params.get('connection') is not None: # noqa: E501
1301
+ _query_params.append(('connection', _params['connection']))
1302
+
1303
+ # process the header parameters
1304
+ _header_params = dict(_params.get('_headers', {}))
1305
+ # process the form parameters
1306
+ _form_params = []
1307
+ _files = {}
1308
+ # process the body parameter
1309
+ _body_params = None
1310
+ # set the HTTP header `Accept`
1311
+ _header_params['Accept'] = self.api_client.select_header_accept(
340
1312
  ['application/json']) # noqa: E501
341
1313
 
342
- # Authentication setting
343
- auth_settings = ['ApiKey'] # noqa: E501
1314
+ # authentication setting
1315
+ _auth_settings = ['ApiKey'] # noqa: E501
344
1316
 
345
- response_types_map = {
346
- 200: "V1Status",
347
- 204: "object",
348
- 403: "object",
349
- 404: "object",
1317
+ _response_types_map = {
1318
+ '200': "V1Logs",
1319
+ '204': "object",
1320
+ '403': "object",
1321
+ '404': "object",
350
1322
  }
351
1323
 
352
1324
  return self.api_client.call_api(
353
- '/api/v1/orgs/{owner}/agents/{uuid}/statuses', 'POST',
354
- path_params,
355
- query_params,
356
- header_params,
357
- body=body_params,
358
- post_params=form_params,
359
- files=local_var_files,
360
- response_types_map=response_types_map,
361
- auth_settings=auth_settings,
362
- async_req=local_var_params.get('async_req'),
363
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
364
- _preload_content=local_var_params.get('_preload_content', True),
365
- _request_timeout=local_var_params.get('_request_timeout'),
366
- collection_formats=collection_formats,
367
- _request_auth=local_var_params.get('_request_auth'))
368
-
369
- def delete_agent(self, owner, uuid, **kwargs): # noqa: E501
370
- """Delete agent # noqa: E501
1325
+ '/streams/v1/{namespace}/{owner}/agents/{uuid}/logs', 'GET',
1326
+ _path_params,
1327
+ _query_params,
1328
+ _header_params,
1329
+ body=_body_params,
1330
+ post_params=_form_params,
1331
+ files=_files,
1332
+ response_types_map=_response_types_map,
1333
+ auth_settings=_auth_settings,
1334
+ async_req=_params.get('async_req'),
1335
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1336
+ _preload_content=_params.get('_preload_content', True),
1337
+ _request_timeout=_params.get('_request_timeout'),
1338
+ collection_formats=_collection_formats,
1339
+ _request_auth=_params.get('_request_auth'))
1340
+
1341
+ @validate_arguments
1342
+ def get_agent_state(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs) -> V1AgentStateResponse: # noqa: E501
1343
+ """Get State (queues/runs) # noqa: E501
371
1344
 
372
1345
  This method makes a synchronous HTTP request by default. To make an
373
1346
  asynchronous HTTP request, please pass async_req=True
374
1347
 
375
- >>> thread = api.delete_agent(owner, uuid, async_req=True)
1348
+ >>> thread = api.get_agent_state(owner, uuid, async_req=True)
376
1349
  >>> result = thread.get()
377
1350
 
378
1351
  :param owner: Owner of the namespace (required)
379
1352
  :type owner: str
380
- :param uuid: Uuid identifier of the sub-entity (required)
1353
+ :param uuid: Uuid identifier of the entity (required)
381
1354
  :type uuid: str
382
- :param entity: Entity: project name, hub name, registry name, ...
383
- :type entity: str
384
1355
  :param async_req: Whether to execute the request asynchronously.
385
1356
  :type async_req: bool, optional
386
1357
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -394,26 +1365,25 @@ class AgentsV1Api(object):
394
1365
  :return: Returns the result object.
395
1366
  If the method is called asynchronously,
396
1367
  returns the request thread.
397
- :rtype: None
1368
+ :rtype: V1AgentStateResponse
398
1369
  """
399
1370
  kwargs['_return_http_data_only'] = True
400
- return self.delete_agent_with_http_info(owner, uuid, **kwargs) # noqa: E501
1371
+ return self.get_agent_state_with_http_info(owner, uuid, **kwargs) # noqa: E501
401
1372
 
402
- def delete_agent_with_http_info(self, owner, uuid, **kwargs): # noqa: E501
403
- """Delete agent # noqa: E501
1373
+ @validate_arguments
1374
+ def get_agent_state_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
1375
+ """Get State (queues/runs) # noqa: E501
404
1376
 
405
1377
  This method makes a synchronous HTTP request by default. To make an
406
1378
  asynchronous HTTP request, please pass async_req=True
407
1379
 
408
- >>> thread = api.delete_agent_with_http_info(owner, uuid, async_req=True)
1380
+ >>> thread = api.get_agent_state_with_http_info(owner, uuid, async_req=True)
409
1381
  >>> result = thread.get()
410
1382
 
411
1383
  :param owner: Owner of the namespace (required)
412
1384
  :type owner: str
413
- :param uuid: Uuid identifier of the sub-entity (required)
1385
+ :param uuid: Uuid identifier of the entity (required)
414
1386
  :type uuid: str
415
- :param entity: Entity: project name, hub name, registry name, ...
416
- :type entity: str
417
1387
  :param async_req: Whether to execute the request asynchronously.
418
1388
  :type async_req: bool, optional
419
1389
  :param _return_http_data_only: response data without head status code
@@ -431,97 +1401,100 @@ class AgentsV1Api(object):
431
1401
  request; this effectively ignores the authentication
432
1402
  in the spec for a single request.
433
1403
  :type _request_auth: dict, optional
1404
+ :type _content_type: string, optional: force content-type for the request
434
1405
  :return: Returns the result object.
435
1406
  If the method is called asynchronously,
436
1407
  returns the request thread.
437
- :rtype: None
1408
+ :rtype: tuple(V1AgentStateResponse, status_code(int), headers(HTTPHeaderDict))
438
1409
  """
439
1410
 
440
- local_var_params = locals()
1411
+ _params = locals()
441
1412
 
442
- all_params = [
1413
+ _all_params = [
443
1414
  'owner',
444
- 'uuid',
445
- 'entity'
1415
+ 'uuid'
446
1416
  ]
447
- all_params.extend(
1417
+ _all_params.extend(
448
1418
  [
449
1419
  'async_req',
450
1420
  '_return_http_data_only',
451
1421
  '_preload_content',
452
1422
  '_request_timeout',
453
- '_request_auth'
1423
+ '_request_auth',
1424
+ '_content_type',
1425
+ '_headers'
454
1426
  ]
455
1427
  )
456
1428
 
457
- for key, val in six.iteritems(local_var_params['kwargs']):
458
- if key not in all_params:
1429
+ # validate the arguments
1430
+ for _key, _val in _params['kwargs'].items():
1431
+ if _key not in _all_params:
459
1432
  raise ApiTypeError(
460
1433
  "Got an unexpected keyword argument '%s'"
461
- " to method delete_agent" % key
1434
+ " to method get_agent_state" % _key
462
1435
  )
463
- local_var_params[key] = val
464
- del local_var_params['kwargs']
465
- # verify the required parameter 'owner' is set
466
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
467
- local_var_params['owner'] is None): # noqa: E501
468
- raise ApiValueError("Missing the required parameter `owner` when calling `delete_agent`") # noqa: E501
469
- # verify the required parameter 'uuid' is set
470
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
471
- local_var_params['uuid'] is None): # noqa: E501
472
- raise ApiValueError("Missing the required parameter `uuid` when calling `delete_agent`") # noqa: E501
473
-
474
- collection_formats = {}
475
-
476
- path_params = {}
477
- if 'owner' in local_var_params:
478
- path_params['owner'] = local_var_params['owner'] # noqa: E501
479
- if 'uuid' in local_var_params:
480
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
481
-
482
- query_params = []
483
- if 'entity' in local_var_params and local_var_params['entity'] is not None: # noqa: E501
484
- query_params.append(('entity', local_var_params['entity'])) # noqa: E501
485
-
486
- header_params = {}
487
-
488
- form_params = []
489
- local_var_files = {}
490
-
491
- body_params = None
492
- # HTTP header `Accept`
493
- header_params['Accept'] = self.api_client.select_header_accept(
1436
+ _params[_key] = _val
1437
+ del _params['kwargs']
1438
+
1439
+ _collection_formats = {}
1440
+
1441
+ # process the path parameters
1442
+ _path_params = {}
1443
+ if _params['owner']:
1444
+ _path_params['owner'] = _params['owner']
1445
+
1446
+ if _params['uuid']:
1447
+ _path_params['uuid'] = _params['uuid']
1448
+
1449
+
1450
+ # process the query parameters
1451
+ _query_params = []
1452
+ # process the header parameters
1453
+ _header_params = dict(_params.get('_headers', {}))
1454
+ # process the form parameters
1455
+ _form_params = []
1456
+ _files = {}
1457
+ # process the body parameter
1458
+ _body_params = None
1459
+ # set the HTTP header `Accept`
1460
+ _header_params['Accept'] = self.api_client.select_header_accept(
494
1461
  ['application/json']) # noqa: E501
495
1462
 
496
- # Authentication setting
497
- auth_settings = ['ApiKey'] # noqa: E501
1463
+ # authentication setting
1464
+ _auth_settings = ['ApiKey'] # noqa: E501
498
1465
 
499
- response_types_map = {}
1466
+ _response_types_map = {
1467
+ '200': "V1AgentStateResponse",
1468
+ '204': "object",
1469
+ '403': "object",
1470
+ '404': "object",
1471
+ }
500
1472
 
501
1473
  return self.api_client.call_api(
502
- '/api/v1/orgs/{owner}/agents/{uuid}', 'DELETE',
503
- path_params,
504
- query_params,
505
- header_params,
506
- body=body_params,
507
- post_params=form_params,
508
- files=local_var_files,
509
- response_types_map=response_types_map,
510
- auth_settings=auth_settings,
511
- async_req=local_var_params.get('async_req'),
512
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
513
- _preload_content=local_var_params.get('_preload_content', True),
514
- _request_timeout=local_var_params.get('_request_timeout'),
515
- collection_formats=collection_formats,
516
- _request_auth=local_var_params.get('_request_auth'))
517
-
518
- def get_agent(self, owner, uuid, **kwargs): # noqa: E501
519
- """Get agent # noqa: E501
1474
+ '/api/v1/orgs/{owner}/agents/{uuid}/state', 'GET',
1475
+ _path_params,
1476
+ _query_params,
1477
+ _header_params,
1478
+ body=_body_params,
1479
+ post_params=_form_params,
1480
+ files=_files,
1481
+ response_types_map=_response_types_map,
1482
+ auth_settings=_auth_settings,
1483
+ async_req=_params.get('async_req'),
1484
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1485
+ _preload_content=_params.get('_preload_content', True),
1486
+ _request_timeout=_params.get('_request_timeout'),
1487
+ collection_formats=_collection_formats,
1488
+ _request_auth=_params.get('_request_auth'))
1489
+
1490
+ @validate_arguments
1491
+ def get_agent_statuses(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], entity : Annotated[Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ...")] = None, **kwargs) -> V1Status: # noqa: E501
1492
+ """Get Agent statuses # noqa: E501
520
1493
 
521
1494
  This method makes a synchronous HTTP request by default. To make an
522
1495
  asynchronous HTTP request, please pass async_req=True
523
1496
 
524
- >>> thread = api.get_agent(owner, uuid, async_req=True)
1497
+ >>> thread = api.get_agent_statuses(owner, uuid, entity, async_req=True)
525
1498
  >>> result = thread.get()
526
1499
 
527
1500
  :param owner: Owner of the namespace (required)
@@ -543,18 +1516,19 @@ class AgentsV1Api(object):
543
1516
  :return: Returns the result object.
544
1517
  If the method is called asynchronously,
545
1518
  returns the request thread.
546
- :rtype: V1Agent
1519
+ :rtype: V1Status
547
1520
  """
548
1521
  kwargs['_return_http_data_only'] = True
549
- return self.get_agent_with_http_info(owner, uuid, **kwargs) # noqa: E501
1522
+ return self.get_agent_statuses_with_http_info(owner, uuid, entity, **kwargs) # noqa: E501
550
1523
 
551
- def get_agent_with_http_info(self, owner, uuid, **kwargs): # noqa: E501
552
- """Get agent # noqa: E501
1524
+ @validate_arguments
1525
+ def get_agent_statuses_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], entity : Annotated[Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ...")] = None, **kwargs): # noqa: E501
1526
+ """Get Agent statuses # noqa: E501
553
1527
 
554
1528
  This method makes a synchronous HTTP request by default. To make an
555
1529
  asynchronous HTTP request, please pass async_req=True
556
1530
 
557
- >>> thread = api.get_agent_with_http_info(owner, uuid, async_req=True)
1531
+ >>> thread = api.get_agent_statuses_with_http_info(owner, uuid, entity, async_req=True)
558
1532
  >>> result = thread.get()
559
1533
 
560
1534
  :param owner: Owner of the namespace (required)
@@ -580,110 +1554,110 @@ class AgentsV1Api(object):
580
1554
  request; this effectively ignores the authentication
581
1555
  in the spec for a single request.
582
1556
  :type _request_auth: dict, optional
1557
+ :type _content_type: string, optional: force content-type for the request
583
1558
  :return: Returns the result object.
584
1559
  If the method is called asynchronously,
585
1560
  returns the request thread.
586
- :rtype: tuple(V1Agent, status_code(int), headers(HTTPHeaderDict))
1561
+ :rtype: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
587
1562
  """
588
1563
 
589
- local_var_params = locals()
1564
+ _params = locals()
590
1565
 
591
- all_params = [
1566
+ _all_params = [
592
1567
  'owner',
593
1568
  'uuid',
594
1569
  'entity'
595
1570
  ]
596
- all_params.extend(
1571
+ _all_params.extend(
597
1572
  [
598
1573
  'async_req',
599
1574
  '_return_http_data_only',
600
1575
  '_preload_content',
601
1576
  '_request_timeout',
602
- '_request_auth'
1577
+ '_request_auth',
1578
+ '_content_type',
1579
+ '_headers'
603
1580
  ]
604
1581
  )
605
1582
 
606
- for key, val in six.iteritems(local_var_params['kwargs']):
607
- if key not in all_params:
1583
+ # validate the arguments
1584
+ for _key, _val in _params['kwargs'].items():
1585
+ if _key not in _all_params:
608
1586
  raise ApiTypeError(
609
1587
  "Got an unexpected keyword argument '%s'"
610
- " to method get_agent" % key
1588
+ " to method get_agent_statuses" % _key
611
1589
  )
612
- local_var_params[key] = val
613
- del local_var_params['kwargs']
614
- # verify the required parameter 'owner' is set
615
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
616
- local_var_params['owner'] is None): # noqa: E501
617
- raise ApiValueError("Missing the required parameter `owner` when calling `get_agent`") # noqa: E501
618
- # verify the required parameter 'uuid' is set
619
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
620
- local_var_params['uuid'] is None): # noqa: E501
621
- raise ApiValueError("Missing the required parameter `uuid` when calling `get_agent`") # noqa: E501
622
-
623
- collection_formats = {}
624
-
625
- path_params = {}
626
- if 'owner' in local_var_params:
627
- path_params['owner'] = local_var_params['owner'] # noqa: E501
628
- if 'uuid' in local_var_params:
629
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
630
-
631
- query_params = []
632
- if 'entity' in local_var_params and local_var_params['entity'] is not None: # noqa: E501
633
- query_params.append(('entity', local_var_params['entity'])) # noqa: E501
634
-
635
- header_params = {}
636
-
637
- form_params = []
638
- local_var_files = {}
639
-
640
- body_params = None
641
- # HTTP header `Accept`
642
- header_params['Accept'] = self.api_client.select_header_accept(
1590
+ _params[_key] = _val
1591
+ del _params['kwargs']
1592
+
1593
+ _collection_formats = {}
1594
+
1595
+ # process the path parameters
1596
+ _path_params = {}
1597
+ if _params['owner']:
1598
+ _path_params['owner'] = _params['owner']
1599
+
1600
+ if _params['uuid']:
1601
+ _path_params['uuid'] = _params['uuid']
1602
+
1603
+
1604
+ # process the query parameters
1605
+ _query_params = []
1606
+ if _params.get('entity') is not None: # noqa: E501
1607
+ _query_params.append(('entity', _params['entity']))
1608
+
1609
+ # process the header parameters
1610
+ _header_params = dict(_params.get('_headers', {}))
1611
+ # process the form parameters
1612
+ _form_params = []
1613
+ _files = {}
1614
+ # process the body parameter
1615
+ _body_params = None
1616
+ # set the HTTP header `Accept`
1617
+ _header_params['Accept'] = self.api_client.select_header_accept(
643
1618
  ['application/json']) # noqa: E501
644
1619
 
645
- # Authentication setting
646
- auth_settings = ['ApiKey'] # noqa: E501
1620
+ # authentication setting
1621
+ _auth_settings = ['ApiKey'] # noqa: E501
647
1622
 
648
- response_types_map = {
649
- 200: "V1Agent",
650
- 204: "object",
651
- 403: "object",
652
- 404: "object",
1623
+ _response_types_map = {
1624
+ '200': "V1Status",
1625
+ '204': "object",
1626
+ '403': "object",
1627
+ '404': "object",
653
1628
  }
654
1629
 
655
1630
  return self.api_client.call_api(
656
- '/api/v1/orgs/{owner}/agents/{uuid}', 'GET',
657
- path_params,
658
- query_params,
659
- header_params,
660
- body=body_params,
661
- post_params=form_params,
662
- files=local_var_files,
663
- response_types_map=response_types_map,
664
- auth_settings=auth_settings,
665
- async_req=local_var_params.get('async_req'),
666
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
667
- _preload_content=local_var_params.get('_preload_content', True),
668
- _request_timeout=local_var_params.get('_request_timeout'),
669
- collection_formats=collection_formats,
670
- _request_auth=local_var_params.get('_request_auth'))
671
-
672
- def get_agent_config(self, owner, uuid, **kwargs): # noqa: E501
673
- """Get agent config # noqa: E501
1631
+ '/api/v1/orgs/{owner}/agents/{uuid}/statuses', 'GET',
1632
+ _path_params,
1633
+ _query_params,
1634
+ _header_params,
1635
+ body=_body_params,
1636
+ post_params=_form_params,
1637
+ files=_files,
1638
+ response_types_map=_response_types_map,
1639
+ auth_settings=_auth_settings,
1640
+ async_req=_params.get('async_req'),
1641
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1642
+ _preload_content=_params.get('_preload_content', True),
1643
+ _request_timeout=_params.get('_request_timeout'),
1644
+ collection_formats=_collection_formats,
1645
+ _request_auth=_params.get('_request_auth'))
1646
+
1647
+ @validate_arguments
1648
+ def get_agent_token(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs) -> V1Token: # noqa: E501
1649
+ """Get agent token # noqa: E501
674
1650
 
675
1651
  This method makes a synchronous HTTP request by default. To make an
676
1652
  asynchronous HTTP request, please pass async_req=True
677
1653
 
678
- >>> thread = api.get_agent_config(owner, uuid, async_req=True)
1654
+ >>> thread = api.get_agent_token(owner, uuid, async_req=True)
679
1655
  >>> result = thread.get()
680
1656
 
681
1657
  :param owner: Owner of the namespace (required)
682
1658
  :type owner: str
683
- :param uuid: Uuid identifier of the sub-entity (required)
1659
+ :param uuid: Uuid identifier of the entity (required)
684
1660
  :type uuid: str
685
- :param entity: Entity: project name, hub name, registry name, ...
686
- :type entity: str
687
1661
  :param async_req: Whether to execute the request asynchronously.
688
1662
  :type async_req: bool, optional
689
1663
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -697,26 +1671,25 @@ class AgentsV1Api(object):
697
1671
  :return: Returns the result object.
698
1672
  If the method is called asynchronously,
699
1673
  returns the request thread.
700
- :rtype: V1Agent
1674
+ :rtype: V1Token
701
1675
  """
702
1676
  kwargs['_return_http_data_only'] = True
703
- return self.get_agent_config_with_http_info(owner, uuid, **kwargs) # noqa: E501
1677
+ return self.get_agent_token_with_http_info(owner, uuid, **kwargs) # noqa: E501
704
1678
 
705
- def get_agent_config_with_http_info(self, owner, uuid, **kwargs): # noqa: E501
706
- """Get agent config # noqa: E501
1679
+ @validate_arguments
1680
+ def get_agent_token_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
1681
+ """Get agent token # noqa: E501
707
1682
 
708
1683
  This method makes a synchronous HTTP request by default. To make an
709
1684
  asynchronous HTTP request, please pass async_req=True
710
1685
 
711
- >>> thread = api.get_agent_config_with_http_info(owner, uuid, async_req=True)
1686
+ >>> thread = api.get_agent_token_with_http_info(owner, uuid, async_req=True)
712
1687
  >>> result = thread.get()
713
1688
 
714
1689
  :param owner: Owner of the namespace (required)
715
1690
  :type owner: str
716
- :param uuid: Uuid identifier of the sub-entity (required)
1691
+ :param uuid: Uuid identifier of the entity (required)
717
1692
  :type uuid: str
718
- :param entity: Entity: project name, hub name, registry name, ...
719
- :type entity: str
720
1693
  :param async_req: Whether to execute the request asynchronously.
721
1694
  :type async_req: bool, optional
722
1695
  :param _return_http_data_only: response data without head status code
@@ -734,108 +1707,104 @@ class AgentsV1Api(object):
734
1707
  request; this effectively ignores the authentication
735
1708
  in the spec for a single request.
736
1709
  :type _request_auth: dict, optional
1710
+ :type _content_type: string, optional: force content-type for the request
737
1711
  :return: Returns the result object.
738
1712
  If the method is called asynchronously,
739
1713
  returns the request thread.
740
- :rtype: tuple(V1Agent, status_code(int), headers(HTTPHeaderDict))
1714
+ :rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
741
1715
  """
742
1716
 
743
- local_var_params = locals()
1717
+ _params = locals()
744
1718
 
745
- all_params = [
1719
+ _all_params = [
746
1720
  'owner',
747
- 'uuid',
748
- 'entity'
1721
+ 'uuid'
749
1722
  ]
750
- all_params.extend(
1723
+ _all_params.extend(
751
1724
  [
752
1725
  'async_req',
753
1726
  '_return_http_data_only',
754
1727
  '_preload_content',
755
1728
  '_request_timeout',
756
- '_request_auth'
1729
+ '_request_auth',
1730
+ '_content_type',
1731
+ '_headers'
757
1732
  ]
758
1733
  )
759
1734
 
760
- for key, val in six.iteritems(local_var_params['kwargs']):
761
- if key not in all_params:
1735
+ # validate the arguments
1736
+ for _key, _val in _params['kwargs'].items():
1737
+ if _key not in _all_params:
762
1738
  raise ApiTypeError(
763
1739
  "Got an unexpected keyword argument '%s'"
764
- " to method get_agent_config" % key
1740
+ " to method get_agent_token" % _key
765
1741
  )
766
- local_var_params[key] = val
767
- del local_var_params['kwargs']
768
- # verify the required parameter 'owner' is set
769
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
770
- local_var_params['owner'] is None): # noqa: E501
771
- raise ApiValueError("Missing the required parameter `owner` when calling `get_agent_config`") # noqa: E501
772
- # verify the required parameter 'uuid' is set
773
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
774
- local_var_params['uuid'] is None): # noqa: E501
775
- raise ApiValueError("Missing the required parameter `uuid` when calling `get_agent_config`") # noqa: E501
776
-
777
- collection_formats = {}
778
-
779
- path_params = {}
780
- if 'owner' in local_var_params:
781
- path_params['owner'] = local_var_params['owner'] # noqa: E501
782
- if 'uuid' in local_var_params:
783
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
784
-
785
- query_params = []
786
- if 'entity' in local_var_params and local_var_params['entity'] is not None: # noqa: E501
787
- query_params.append(('entity', local_var_params['entity'])) # noqa: E501
788
-
789
- header_params = {}
790
-
791
- form_params = []
792
- local_var_files = {}
793
-
794
- body_params = None
795
- # HTTP header `Accept`
796
- header_params['Accept'] = self.api_client.select_header_accept(
1742
+ _params[_key] = _val
1743
+ del _params['kwargs']
1744
+
1745
+ _collection_formats = {}
1746
+
1747
+ # process the path parameters
1748
+ _path_params = {}
1749
+ if _params['owner']:
1750
+ _path_params['owner'] = _params['owner']
1751
+
1752
+ if _params['uuid']:
1753
+ _path_params['uuid'] = _params['uuid']
1754
+
1755
+
1756
+ # process the query parameters
1757
+ _query_params = []
1758
+ # process the header parameters
1759
+ _header_params = dict(_params.get('_headers', {}))
1760
+ # process the form parameters
1761
+ _form_params = []
1762
+ _files = {}
1763
+ # process the body parameter
1764
+ _body_params = None
1765
+ # set the HTTP header `Accept`
1766
+ _header_params['Accept'] = self.api_client.select_header_accept(
797
1767
  ['application/json']) # noqa: E501
798
1768
 
799
- # Authentication setting
800
- auth_settings = ['ApiKey'] # noqa: E501
1769
+ # authentication setting
1770
+ _auth_settings = ['ApiKey'] # noqa: E501
801
1771
 
802
- response_types_map = {
803
- 200: "V1Agent",
804
- 204: "object",
805
- 403: "object",
806
- 404: "object",
1772
+ _response_types_map = {
1773
+ '200': "V1Token",
1774
+ '204': "object",
1775
+ '403': "object",
1776
+ '404': "object",
807
1777
  }
808
1778
 
809
1779
  return self.api_client.call_api(
810
- '/api/v1/orgs/{owner}/agents/{uuid}/config', 'GET',
811
- path_params,
812
- query_params,
813
- header_params,
814
- body=body_params,
815
- post_params=form_params,
816
- files=local_var_files,
817
- response_types_map=response_types_map,
818
- auth_settings=auth_settings,
819
- async_req=local_var_params.get('async_req'),
820
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
821
- _preload_content=local_var_params.get('_preload_content', True),
822
- _request_timeout=local_var_params.get('_request_timeout'),
823
- collection_formats=collection_formats,
824
- _request_auth=local_var_params.get('_request_auth'))
825
-
826
- def get_agent_state(self, owner, uuid, **kwargs): # noqa: E501
827
- """Get State (queues/runs) # noqa: E501
1780
+ '/api/v1/orgs/{owner}/agents/{uuid}/token', 'GET',
1781
+ _path_params,
1782
+ _query_params,
1783
+ _header_params,
1784
+ body=_body_params,
1785
+ post_params=_form_params,
1786
+ files=_files,
1787
+ response_types_map=_response_types_map,
1788
+ auth_settings=_auth_settings,
1789
+ async_req=_params.get('async_req'),
1790
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1791
+ _preload_content=_params.get('_preload_content', True),
1792
+ _request_timeout=_params.get('_request_timeout'),
1793
+ collection_formats=_collection_formats,
1794
+ _request_auth=_params.get('_request_auth'))
1795
+
1796
+ @validate_arguments
1797
+ def get_global_state(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], **kwargs) -> V1AgentStateResponse: # noqa: E501
1798
+ """Get Global State (queues/runs) # noqa: E501
828
1799
 
829
1800
  This method makes a synchronous HTTP request by default. To make an
830
1801
  asynchronous HTTP request, please pass async_req=True
831
1802
 
832
- >>> thread = api.get_agent_state(owner, uuid, async_req=True)
1803
+ >>> thread = api.get_global_state(owner, async_req=True)
833
1804
  >>> result = thread.get()
834
1805
 
835
1806
  :param owner: Owner of the namespace (required)
836
1807
  :type owner: str
837
- :param uuid: Uuid identifier of the entity (required)
838
- :type uuid: str
839
1808
  :param async_req: Whether to execute the request asynchronously.
840
1809
  :type async_req: bool, optional
841
1810
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -852,21 +1821,20 @@ class AgentsV1Api(object):
852
1821
  :rtype: V1AgentStateResponse
853
1822
  """
854
1823
  kwargs['_return_http_data_only'] = True
855
- return self.get_agent_state_with_http_info(owner, uuid, **kwargs) # noqa: E501
1824
+ return self.get_global_state_with_http_info(owner, **kwargs) # noqa: E501
856
1825
 
857
- def get_agent_state_with_http_info(self, owner, uuid, **kwargs): # noqa: E501
858
- """Get State (queues/runs) # noqa: E501
1826
+ @validate_arguments
1827
+ def get_global_state_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], **kwargs): # noqa: E501
1828
+ """Get Global State (queues/runs) # noqa: E501
859
1829
 
860
1830
  This method makes a synchronous HTTP request by default. To make an
861
1831
  asynchronous HTTP request, please pass async_req=True
862
1832
 
863
- >>> thread = api.get_agent_state_with_http_info(owner, uuid, async_req=True)
1833
+ >>> thread = api.get_global_state_with_http_info(owner, async_req=True)
864
1834
  >>> result = thread.get()
865
1835
 
866
1836
  :param owner: Owner of the namespace (required)
867
1837
  :type owner: str
868
- :param uuid: Uuid identifier of the entity (required)
869
- :type uuid: str
870
1838
  :param async_req: Whether to execute the request asynchronously.
871
1839
  :type async_req: bool, optional
872
1840
  :param _return_http_data_only: response data without head status code
@@ -884,105 +1852,112 @@ class AgentsV1Api(object):
884
1852
  request; this effectively ignores the authentication
885
1853
  in the spec for a single request.
886
1854
  :type _request_auth: dict, optional
1855
+ :type _content_type: string, optional: force content-type for the request
887
1856
  :return: Returns the result object.
888
1857
  If the method is called asynchronously,
889
1858
  returns the request thread.
890
1859
  :rtype: tuple(V1AgentStateResponse, status_code(int), headers(HTTPHeaderDict))
891
1860
  """
892
1861
 
893
- local_var_params = locals()
1862
+ _params = locals()
894
1863
 
895
- all_params = [
896
- 'owner',
897
- 'uuid'
1864
+ _all_params = [
1865
+ 'owner'
898
1866
  ]
899
- all_params.extend(
1867
+ _all_params.extend(
900
1868
  [
901
1869
  'async_req',
902
1870
  '_return_http_data_only',
903
1871
  '_preload_content',
904
1872
  '_request_timeout',
905
- '_request_auth'
1873
+ '_request_auth',
1874
+ '_content_type',
1875
+ '_headers'
906
1876
  ]
907
1877
  )
908
1878
 
909
- for key, val in six.iteritems(local_var_params['kwargs']):
910
- if key not in all_params:
1879
+ # validate the arguments
1880
+ for _key, _val in _params['kwargs'].items():
1881
+ if _key not in _all_params:
911
1882
  raise ApiTypeError(
912
1883
  "Got an unexpected keyword argument '%s'"
913
- " to method get_agent_state" % key
1884
+ " to method get_global_state" % _key
914
1885
  )
915
- local_var_params[key] = val
916
- del local_var_params['kwargs']
917
- # verify the required parameter 'owner' is set
918
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
919
- local_var_params['owner'] is None): # noqa: E501
920
- raise ApiValueError("Missing the required parameter `owner` when calling `get_agent_state`") # noqa: E501
921
- # verify the required parameter 'uuid' is set
922
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
923
- local_var_params['uuid'] is None): # noqa: E501
924
- raise ApiValueError("Missing the required parameter `uuid` when calling `get_agent_state`") # noqa: E501
925
-
926
- collection_formats = {}
927
-
928
- path_params = {}
929
- if 'owner' in local_var_params:
930
- path_params['owner'] = local_var_params['owner'] # noqa: E501
931
- if 'uuid' in local_var_params:
932
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
933
-
934
- query_params = []
935
-
936
- header_params = {}
937
-
938
- form_params = []
939
- local_var_files = {}
940
-
941
- body_params = None
942
- # HTTP header `Accept`
943
- header_params['Accept'] = self.api_client.select_header_accept(
1886
+ _params[_key] = _val
1887
+ del _params['kwargs']
1888
+
1889
+ _collection_formats = {}
1890
+
1891
+ # process the path parameters
1892
+ _path_params = {}
1893
+ if _params['owner']:
1894
+ _path_params['owner'] = _params['owner']
1895
+
1896
+
1897
+ # process the query parameters
1898
+ _query_params = []
1899
+ # process the header parameters
1900
+ _header_params = dict(_params.get('_headers', {}))
1901
+ # process the form parameters
1902
+ _form_params = []
1903
+ _files = {}
1904
+ # process the body parameter
1905
+ _body_params = None
1906
+ # set the HTTP header `Accept`
1907
+ _header_params['Accept'] = self.api_client.select_header_accept(
944
1908
  ['application/json']) # noqa: E501
945
1909
 
946
- # Authentication setting
947
- auth_settings = ['ApiKey'] # noqa: E501
1910
+ # authentication setting
1911
+ _auth_settings = ['ApiKey'] # noqa: E501
948
1912
 
949
- response_types_map = {
950
- 200: "V1AgentStateResponse",
951
- 204: "object",
952
- 403: "object",
953
- 404: "object",
1913
+ _response_types_map = {
1914
+ '200': "V1AgentStateResponse",
1915
+ '204': "object",
1916
+ '403': "object",
1917
+ '404': "object",
954
1918
  }
955
1919
 
956
1920
  return self.api_client.call_api(
957
- '/api/v1/orgs/{owner}/agents/{uuid}/state', 'GET',
958
- path_params,
959
- query_params,
960
- header_params,
961
- body=body_params,
962
- post_params=form_params,
963
- files=local_var_files,
964
- response_types_map=response_types_map,
965
- auth_settings=auth_settings,
966
- async_req=local_var_params.get('async_req'),
967
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
968
- _preload_content=local_var_params.get('_preload_content', True),
969
- _request_timeout=local_var_params.get('_request_timeout'),
970
- collection_formats=collection_formats,
971
- _request_auth=local_var_params.get('_request_auth'))
972
-
973
- def get_agent_token(self, owner, uuid, **kwargs): # noqa: E501
974
- """Get agent token # noqa: E501
1921
+ '/api/v1/orgs/{owner}/agents/state', 'GET',
1922
+ _path_params,
1923
+ _query_params,
1924
+ _header_params,
1925
+ body=_body_params,
1926
+ post_params=_form_params,
1927
+ files=_files,
1928
+ response_types_map=_response_types_map,
1929
+ auth_settings=_auth_settings,
1930
+ async_req=_params.get('async_req'),
1931
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1932
+ _preload_content=_params.get('_preload_content', True),
1933
+ _request_timeout=_params.get('_request_timeout'),
1934
+ collection_formats=_collection_formats,
1935
+ _request_auth=_params.get('_request_auth'))
1936
+
1937
+ @validate_arguments
1938
+ def inspect_agent(self, namespace : Annotated[StrictStr, Field(..., description="namespace")], owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], service : Annotated[Optional[StrictStr], Field(description="Service.")] = None, last_file : Annotated[Optional[StrictStr], Field(description="last_file.")] = None, force : Annotated[Optional[StrictBool], Field(description="Force query param.")] = None, connection : Annotated[Optional[StrictStr], Field(description="Connection to use.")] = None, **kwargs) -> object: # noqa: E501
1939
+ """Inspect an agent's service full conditions # noqa: E501
975
1940
 
976
1941
  This method makes a synchronous HTTP request by default. To make an
977
1942
  asynchronous HTTP request, please pass async_req=True
978
1943
 
979
- >>> thread = api.get_agent_token(owner, uuid, async_req=True)
1944
+ >>> thread = api.inspect_agent(namespace, owner, uuid, service, last_file, force, connection, async_req=True)
980
1945
  >>> result = thread.get()
981
1946
 
1947
+ :param namespace: namespace (required)
1948
+ :type namespace: str
982
1949
  :param owner: Owner of the namespace (required)
983
1950
  :type owner: str
984
1951
  :param uuid: Uuid identifier of the entity (required)
985
1952
  :type uuid: str
1953
+ :param service: Service.
1954
+ :type service: str
1955
+ :param last_file: last_file.
1956
+ :type last_file: str
1957
+ :param force: Force query param.
1958
+ :type force: bool
1959
+ :param connection: Connection to use.
1960
+ :type connection: str
986
1961
  :param async_req: Whether to execute the request asynchronously.
987
1962
  :type async_req: bool, optional
988
1963
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -996,24 +1971,35 @@ class AgentsV1Api(object):
996
1971
  :return: Returns the result object.
997
1972
  If the method is called asynchronously,
998
1973
  returns the request thread.
999
- :rtype: V1Token
1974
+ :rtype: object
1000
1975
  """
1001
1976
  kwargs['_return_http_data_only'] = True
1002
- return self.get_agent_token_with_http_info(owner, uuid, **kwargs) # noqa: E501
1977
+ return self.inspect_agent_with_http_info(namespace, owner, uuid, service, last_file, force, connection, **kwargs) # noqa: E501
1003
1978
 
1004
- def get_agent_token_with_http_info(self, owner, uuid, **kwargs): # noqa: E501
1005
- """Get agent token # noqa: E501
1979
+ @validate_arguments
1980
+ def inspect_agent_with_http_info(self, namespace : Annotated[StrictStr, Field(..., description="namespace")], owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], service : Annotated[Optional[StrictStr], Field(description="Service.")] = None, last_file : Annotated[Optional[StrictStr], Field(description="last_file.")] = None, force : Annotated[Optional[StrictBool], Field(description="Force query param.")] = None, connection : Annotated[Optional[StrictStr], Field(description="Connection to use.")] = None, **kwargs): # noqa: E501
1981
+ """Inspect an agent's service full conditions # noqa: E501
1006
1982
 
1007
1983
  This method makes a synchronous HTTP request by default. To make an
1008
1984
  asynchronous HTTP request, please pass async_req=True
1009
1985
 
1010
- >>> thread = api.get_agent_token_with_http_info(owner, uuid, async_req=True)
1986
+ >>> thread = api.inspect_agent_with_http_info(namespace, owner, uuid, service, last_file, force, connection, async_req=True)
1011
1987
  >>> result = thread.get()
1012
1988
 
1989
+ :param namespace: namespace (required)
1990
+ :type namespace: str
1013
1991
  :param owner: Owner of the namespace (required)
1014
1992
  :type owner: str
1015
1993
  :param uuid: Uuid identifier of the entity (required)
1016
1994
  :type uuid: str
1995
+ :param service: Service.
1996
+ :type service: str
1997
+ :param last_file: last_file.
1998
+ :type last_file: str
1999
+ :param force: Force query param.
2000
+ :type force: bool
2001
+ :param connection: Connection to use.
2002
+ :type connection: str
1017
2003
  :param async_req: Whether to execute the request asynchronously.
1018
2004
  :type async_req: bool, optional
1019
2005
  :param _return_http_data_only: response data without head status code
@@ -1031,99 +2017,120 @@ class AgentsV1Api(object):
1031
2017
  request; this effectively ignores the authentication
1032
2018
  in the spec for a single request.
1033
2019
  :type _request_auth: dict, optional
2020
+ :type _content_type: string, optional: force content-type for the request
1034
2021
  :return: Returns the result object.
1035
2022
  If the method is called asynchronously,
1036
2023
  returns the request thread.
1037
- :rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
2024
+ :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
1038
2025
  """
1039
2026
 
1040
- local_var_params = locals()
2027
+ _params = locals()
1041
2028
 
1042
- all_params = [
2029
+ _all_params = [
2030
+ 'namespace',
1043
2031
  'owner',
1044
- 'uuid'
2032
+ 'uuid',
2033
+ 'service',
2034
+ 'last_file',
2035
+ 'force',
2036
+ 'connection'
1045
2037
  ]
1046
- all_params.extend(
2038
+ _all_params.extend(
1047
2039
  [
1048
2040
  'async_req',
1049
2041
  '_return_http_data_only',
1050
2042
  '_preload_content',
1051
2043
  '_request_timeout',
1052
- '_request_auth'
2044
+ '_request_auth',
2045
+ '_content_type',
2046
+ '_headers'
1053
2047
  ]
1054
2048
  )
1055
2049
 
1056
- for key, val in six.iteritems(local_var_params['kwargs']):
1057
- if key not in all_params:
2050
+ # validate the arguments
2051
+ for _key, _val in _params['kwargs'].items():
2052
+ if _key not in _all_params:
1058
2053
  raise ApiTypeError(
1059
2054
  "Got an unexpected keyword argument '%s'"
1060
- " to method get_agent_token" % key
2055
+ " to method inspect_agent" % _key
1061
2056
  )
1062
- local_var_params[key] = val
1063
- del local_var_params['kwargs']
1064
- # verify the required parameter 'owner' is set
1065
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1066
- local_var_params['owner'] is None): # noqa: E501
1067
- raise ApiValueError("Missing the required parameter `owner` when calling `get_agent_token`") # noqa: E501
1068
- # verify the required parameter 'uuid' is set
1069
- if self.api_client.client_side_validation and ('uuid' not in local_var_params or # noqa: E501
1070
- local_var_params['uuid'] is None): # noqa: E501
1071
- raise ApiValueError("Missing the required parameter `uuid` when calling `get_agent_token`") # noqa: E501
1072
-
1073
- collection_formats = {}
1074
-
1075
- path_params = {}
1076
- if 'owner' in local_var_params:
1077
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1078
- if 'uuid' in local_var_params:
1079
- path_params['uuid'] = local_var_params['uuid'] # noqa: E501
1080
-
1081
- query_params = []
1082
-
1083
- header_params = {}
1084
-
1085
- form_params = []
1086
- local_var_files = {}
1087
-
1088
- body_params = None
1089
- # HTTP header `Accept`
1090
- header_params['Accept'] = self.api_client.select_header_accept(
2057
+ _params[_key] = _val
2058
+ del _params['kwargs']
2059
+
2060
+ _collection_formats = {}
2061
+
2062
+ # process the path parameters
2063
+ _path_params = {}
2064
+ if _params['namespace']:
2065
+ _path_params['namespace'] = _params['namespace']
2066
+
2067
+ if _params['owner']:
2068
+ _path_params['owner'] = _params['owner']
2069
+
2070
+ if _params['uuid']:
2071
+ _path_params['uuid'] = _params['uuid']
2072
+
2073
+
2074
+ # process the query parameters
2075
+ _query_params = []
2076
+ if _params.get('service') is not None: # noqa: E501
2077
+ _query_params.append(('service', _params['service']))
2078
+
2079
+ if _params.get('last_file') is not None: # noqa: E501
2080
+ _query_params.append(('last_file', _params['last_file']))
2081
+
2082
+ if _params.get('force') is not None: # noqa: E501
2083
+ _query_params.append(('force', _params['force']))
2084
+
2085
+ if _params.get('connection') is not None: # noqa: E501
2086
+ _query_params.append(('connection', _params['connection']))
2087
+
2088
+ # process the header parameters
2089
+ _header_params = dict(_params.get('_headers', {}))
2090
+ # process the form parameters
2091
+ _form_params = []
2092
+ _files = {}
2093
+ # process the body parameter
2094
+ _body_params = None
2095
+ # set the HTTP header `Accept`
2096
+ _header_params['Accept'] = self.api_client.select_header_accept(
1091
2097
  ['application/json']) # noqa: E501
1092
2098
 
1093
- # Authentication setting
1094
- auth_settings = ['ApiKey'] # noqa: E501
2099
+ # authentication setting
2100
+ _auth_settings = ['ApiKey'] # noqa: E501
1095
2101
 
1096
- response_types_map = {
1097
- 200: "V1Token",
1098
- 204: "object",
1099
- 403: "object",
1100
- 404: "object",
2102
+ _response_types_map = {
2103
+ '200': "object",
2104
+ '204': "object",
2105
+ '403': "object",
2106
+ '404': "object",
1101
2107
  }
1102
2108
 
1103
2109
  return self.api_client.call_api(
1104
- '/api/v1/orgs/{owner}/agents/{uuid}/token', 'GET',
1105
- path_params,
1106
- query_params,
1107
- header_params,
1108
- body=body_params,
1109
- post_params=form_params,
1110
- files=local_var_files,
1111
- response_types_map=response_types_map,
1112
- auth_settings=auth_settings,
1113
- async_req=local_var_params.get('async_req'),
1114
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1115
- _preload_content=local_var_params.get('_preload_content', True),
1116
- _request_timeout=local_var_params.get('_request_timeout'),
1117
- collection_formats=collection_formats,
1118
- _request_auth=local_var_params.get('_request_auth'))
1119
-
1120
- def list_agent_names(self, owner, **kwargs): # noqa: E501
2110
+ '/streams/v1/{namespace}/{owner}/agents/{uuid}/k8s_inspect', 'GET',
2111
+ _path_params,
2112
+ _query_params,
2113
+ _header_params,
2114
+ body=_body_params,
2115
+ post_params=_form_params,
2116
+ files=_files,
2117
+ response_types_map=_response_types_map,
2118
+ auth_settings=_auth_settings,
2119
+ async_req=_params.get('async_req'),
2120
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
2121
+ _preload_content=_params.get('_preload_content', True),
2122
+ _request_timeout=_params.get('_request_timeout'),
2123
+ collection_formats=_collection_formats,
2124
+ _request_auth=_params.get('_request_auth'))
2125
+
2126
+ @validate_arguments
2127
+ def list_agent_names(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListAgentsResponse: # noqa: E501
1121
2128
  """List agents names # noqa: E501
1122
2129
 
1123
2130
  This method makes a synchronous HTTP request by default. To make an
1124
2131
  asynchronous HTTP request, please pass async_req=True
1125
2132
 
1126
- >>> thread = api.list_agent_names(owner, async_req=True)
2133
+ >>> thread = api.list_agent_names(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
1127
2134
  >>> result = thread.get()
1128
2135
 
1129
2136
  :param owner: Owner of the namespace (required)
@@ -1158,15 +2165,16 @@ class AgentsV1Api(object):
1158
2165
  :rtype: V1ListAgentsResponse
1159
2166
  """
1160
2167
  kwargs['_return_http_data_only'] = True
1161
- return self.list_agent_names_with_http_info(owner, **kwargs) # noqa: E501
2168
+ return self.list_agent_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
1162
2169
 
1163
- def list_agent_names_with_http_info(self, owner, **kwargs): # noqa: E501
2170
+ @validate_arguments
2171
+ def list_agent_names_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
1164
2172
  """List agents names # noqa: E501
1165
2173
 
1166
2174
  This method makes a synchronous HTTP request by default. To make an
1167
2175
  asynchronous HTTP request, please pass async_req=True
1168
2176
 
1169
- >>> thread = api.list_agent_names_with_http_info(owner, async_req=True)
2177
+ >>> thread = api.list_agent_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
1170
2178
  >>> result = thread.get()
1171
2179
 
1172
2180
  :param owner: Owner of the namespace (required)
@@ -1202,15 +2210,16 @@ class AgentsV1Api(object):
1202
2210
  request; this effectively ignores the authentication
1203
2211
  in the spec for a single request.
1204
2212
  :type _request_auth: dict, optional
2213
+ :type _content_type: string, optional: force content-type for the request
1205
2214
  :return: Returns the result object.
1206
2215
  If the method is called asynchronously,
1207
2216
  returns the request thread.
1208
2217
  :rtype: tuple(V1ListAgentsResponse, status_code(int), headers(HTTPHeaderDict))
1209
2218
  """
1210
2219
 
1211
- local_var_params = locals()
2220
+ _params = locals()
1212
2221
 
1213
- all_params = [
2222
+ _all_params = [
1214
2223
  'owner',
1215
2224
  'offset',
1216
2225
  'limit',
@@ -1220,95 +2229,105 @@ class AgentsV1Api(object):
1220
2229
  'mode',
1221
2230
  'no_page'
1222
2231
  ]
1223
- all_params.extend(
2232
+ _all_params.extend(
1224
2233
  [
1225
2234
  'async_req',
1226
2235
  '_return_http_data_only',
1227
2236
  '_preload_content',
1228
2237
  '_request_timeout',
1229
- '_request_auth'
2238
+ '_request_auth',
2239
+ '_content_type',
2240
+ '_headers'
1230
2241
  ]
1231
2242
  )
1232
2243
 
1233
- for key, val in six.iteritems(local_var_params['kwargs']):
1234
- if key not in all_params:
2244
+ # validate the arguments
2245
+ for _key, _val in _params['kwargs'].items():
2246
+ if _key not in _all_params:
1235
2247
  raise ApiTypeError(
1236
2248
  "Got an unexpected keyword argument '%s'"
1237
- " to method list_agent_names" % key
2249
+ " to method list_agent_names" % _key
1238
2250
  )
1239
- local_var_params[key] = val
1240
- del local_var_params['kwargs']
1241
- # verify the required parameter 'owner' is set
1242
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1243
- local_var_params['owner'] is None): # noqa: E501
1244
- raise ApiValueError("Missing the required parameter `owner` when calling `list_agent_names`") # noqa: E501
1245
-
1246
- collection_formats = {}
1247
-
1248
- path_params = {}
1249
- if 'owner' in local_var_params:
1250
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1251
-
1252
- query_params = []
1253
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
1254
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
1255
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
1256
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
1257
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
1258
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
1259
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
1260
- query_params.append(('query', local_var_params['query'])) # noqa: E501
1261
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
1262
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
1263
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
1264
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
1265
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
1266
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
1267
-
1268
- header_params = {}
1269
-
1270
- form_params = []
1271
- local_var_files = {}
1272
-
1273
- body_params = None
1274
- # HTTP header `Accept`
1275
- header_params['Accept'] = self.api_client.select_header_accept(
2251
+ _params[_key] = _val
2252
+ del _params['kwargs']
2253
+
2254
+ _collection_formats = {}
2255
+
2256
+ # process the path parameters
2257
+ _path_params = {}
2258
+ if _params['owner']:
2259
+ _path_params['owner'] = _params['owner']
2260
+
2261
+
2262
+ # process the query parameters
2263
+ _query_params = []
2264
+ if _params.get('offset') is not None: # noqa: E501
2265
+ _query_params.append(('offset', _params['offset']))
2266
+
2267
+ if _params.get('limit') is not None: # noqa: E501
2268
+ _query_params.append(('limit', _params['limit']))
2269
+
2270
+ if _params.get('sort') is not None: # noqa: E501
2271
+ _query_params.append(('sort', _params['sort']))
2272
+
2273
+ if _params.get('query') is not None: # noqa: E501
2274
+ _query_params.append(('query', _params['query']))
2275
+
2276
+ if _params.get('bookmarks') is not None: # noqa: E501
2277
+ _query_params.append(('bookmarks', _params['bookmarks']))
2278
+
2279
+ if _params.get('mode') is not None: # noqa: E501
2280
+ _query_params.append(('mode', _params['mode']))
2281
+
2282
+ if _params.get('no_page') is not None: # noqa: E501
2283
+ _query_params.append(('no_page', _params['no_page']))
2284
+
2285
+ # process the header parameters
2286
+ _header_params = dict(_params.get('_headers', {}))
2287
+ # process the form parameters
2288
+ _form_params = []
2289
+ _files = {}
2290
+ # process the body parameter
2291
+ _body_params = None
2292
+ # set the HTTP header `Accept`
2293
+ _header_params['Accept'] = self.api_client.select_header_accept(
1276
2294
  ['application/json']) # noqa: E501
1277
2295
 
1278
- # Authentication setting
1279
- auth_settings = ['ApiKey'] # noqa: E501
2296
+ # authentication setting
2297
+ _auth_settings = ['ApiKey'] # noqa: E501
1280
2298
 
1281
- response_types_map = {
1282
- 200: "V1ListAgentsResponse",
1283
- 204: "object",
1284
- 403: "object",
1285
- 404: "object",
2299
+ _response_types_map = {
2300
+ '200': "V1ListAgentsResponse",
2301
+ '204': "object",
2302
+ '403': "object",
2303
+ '404': "object",
1286
2304
  }
1287
2305
 
1288
2306
  return self.api_client.call_api(
1289
2307
  '/api/v1/orgs/{owner}/agents/names', 'GET',
1290
- path_params,
1291
- query_params,
1292
- header_params,
1293
- body=body_params,
1294
- post_params=form_params,
1295
- files=local_var_files,
1296
- response_types_map=response_types_map,
1297
- auth_settings=auth_settings,
1298
- async_req=local_var_params.get('async_req'),
1299
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1300
- _preload_content=local_var_params.get('_preload_content', True),
1301
- _request_timeout=local_var_params.get('_request_timeout'),
1302
- collection_formats=collection_formats,
1303
- _request_auth=local_var_params.get('_request_auth'))
1304
-
1305
- def list_agents(self, owner, **kwargs): # noqa: E501
2308
+ _path_params,
2309
+ _query_params,
2310
+ _header_params,
2311
+ body=_body_params,
2312
+ post_params=_form_params,
2313
+ files=_files,
2314
+ response_types_map=_response_types_map,
2315
+ auth_settings=_auth_settings,
2316
+ async_req=_params.get('async_req'),
2317
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
2318
+ _preload_content=_params.get('_preload_content', True),
2319
+ _request_timeout=_params.get('_request_timeout'),
2320
+ collection_formats=_collection_formats,
2321
+ _request_auth=_params.get('_request_auth'))
2322
+
2323
+ @validate_arguments
2324
+ def list_agents(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) -> V1ListAgentsResponse: # noqa: E501
1306
2325
  """List agents # noqa: E501
1307
2326
 
1308
2327
  This method makes a synchronous HTTP request by default. To make an
1309
2328
  asynchronous HTTP request, please pass async_req=True
1310
2329
 
1311
- >>> thread = api.list_agents(owner, async_req=True)
2330
+ >>> thread = api.list_agents(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
1312
2331
  >>> result = thread.get()
1313
2332
 
1314
2333
  :param owner: Owner of the namespace (required)
@@ -1343,15 +2362,16 @@ class AgentsV1Api(object):
1343
2362
  :rtype: V1ListAgentsResponse
1344
2363
  """
1345
2364
  kwargs['_return_http_data_only'] = True
1346
- return self.list_agents_with_http_info(owner, **kwargs) # noqa: E501
2365
+ return self.list_agents_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
1347
2366
 
1348
- def list_agents_with_http_info(self, owner, **kwargs): # noqa: E501
2367
+ @validate_arguments
2368
+ def list_agents_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
1349
2369
  """List agents # noqa: E501
1350
2370
 
1351
2371
  This method makes a synchronous HTTP request by default. To make an
1352
2372
  asynchronous HTTP request, please pass async_req=True
1353
2373
 
1354
- >>> thread = api.list_agents_with_http_info(owner, async_req=True)
2374
+ >>> thread = api.list_agents_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
1355
2375
  >>> result = thread.get()
1356
2376
 
1357
2377
  :param owner: Owner of the namespace (required)
@@ -1387,15 +2407,16 @@ class AgentsV1Api(object):
1387
2407
  request; this effectively ignores the authentication
1388
2408
  in the spec for a single request.
1389
2409
  :type _request_auth: dict, optional
2410
+ :type _content_type: string, optional: force content-type for the request
1390
2411
  :return: Returns the result object.
1391
2412
  If the method is called asynchronously,
1392
2413
  returns the request thread.
1393
2414
  :rtype: tuple(V1ListAgentsResponse, status_code(int), headers(HTTPHeaderDict))
1394
2415
  """
1395
2416
 
1396
- local_var_params = locals()
2417
+ _params = locals()
1397
2418
 
1398
- all_params = [
2419
+ _all_params = [
1399
2420
  'owner',
1400
2421
  'offset',
1401
2422
  'limit',
@@ -1405,89 +2426,99 @@ class AgentsV1Api(object):
1405
2426
  'mode',
1406
2427
  'no_page'
1407
2428
  ]
1408
- all_params.extend(
2429
+ _all_params.extend(
1409
2430
  [
1410
2431
  'async_req',
1411
2432
  '_return_http_data_only',
1412
2433
  '_preload_content',
1413
2434
  '_request_timeout',
1414
- '_request_auth'
2435
+ '_request_auth',
2436
+ '_content_type',
2437
+ '_headers'
1415
2438
  ]
1416
2439
  )
1417
2440
 
1418
- for key, val in six.iteritems(local_var_params['kwargs']):
1419
- if key not in all_params:
2441
+ # validate the arguments
2442
+ for _key, _val in _params['kwargs'].items():
2443
+ if _key not in _all_params:
1420
2444
  raise ApiTypeError(
1421
2445
  "Got an unexpected keyword argument '%s'"
1422
- " to method list_agents" % key
2446
+ " to method list_agents" % _key
1423
2447
  )
1424
- local_var_params[key] = val
1425
- del local_var_params['kwargs']
1426
- # verify the required parameter 'owner' is set
1427
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1428
- local_var_params['owner'] is None): # noqa: E501
1429
- raise ApiValueError("Missing the required parameter `owner` when calling `list_agents`") # noqa: E501
1430
-
1431
- collection_formats = {}
1432
-
1433
- path_params = {}
1434
- if 'owner' in local_var_params:
1435
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1436
-
1437
- query_params = []
1438
- if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
1439
- query_params.append(('offset', local_var_params['offset'])) # noqa: E501
1440
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
1441
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
1442
- if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
1443
- query_params.append(('sort', local_var_params['sort'])) # noqa: E501
1444
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
1445
- query_params.append(('query', local_var_params['query'])) # noqa: E501
1446
- if 'bookmarks' in local_var_params and local_var_params['bookmarks'] is not None: # noqa: E501
1447
- query_params.append(('bookmarks', local_var_params['bookmarks'])) # noqa: E501
1448
- if 'mode' in local_var_params and local_var_params['mode'] is not None: # noqa: E501
1449
- query_params.append(('mode', local_var_params['mode'])) # noqa: E501
1450
- if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
1451
- query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
1452
-
1453
- header_params = {}
1454
-
1455
- form_params = []
1456
- local_var_files = {}
1457
-
1458
- body_params = None
1459
- # HTTP header `Accept`
1460
- header_params['Accept'] = self.api_client.select_header_accept(
2448
+ _params[_key] = _val
2449
+ del _params['kwargs']
2450
+
2451
+ _collection_formats = {}
2452
+
2453
+ # process the path parameters
2454
+ _path_params = {}
2455
+ if _params['owner']:
2456
+ _path_params['owner'] = _params['owner']
2457
+
2458
+
2459
+ # process the query parameters
2460
+ _query_params = []
2461
+ if _params.get('offset') is not None: # noqa: E501
2462
+ _query_params.append(('offset', _params['offset']))
2463
+
2464
+ if _params.get('limit') is not None: # noqa: E501
2465
+ _query_params.append(('limit', _params['limit']))
2466
+
2467
+ if _params.get('sort') is not None: # noqa: E501
2468
+ _query_params.append(('sort', _params['sort']))
2469
+
2470
+ if _params.get('query') is not None: # noqa: E501
2471
+ _query_params.append(('query', _params['query']))
2472
+
2473
+ if _params.get('bookmarks') is not None: # noqa: E501
2474
+ _query_params.append(('bookmarks', _params['bookmarks']))
2475
+
2476
+ if _params.get('mode') is not None: # noqa: E501
2477
+ _query_params.append(('mode', _params['mode']))
2478
+
2479
+ if _params.get('no_page') is not None: # noqa: E501
2480
+ _query_params.append(('no_page', _params['no_page']))
2481
+
2482
+ # process the header parameters
2483
+ _header_params = dict(_params.get('_headers', {}))
2484
+ # process the form parameters
2485
+ _form_params = []
2486
+ _files = {}
2487
+ # process the body parameter
2488
+ _body_params = None
2489
+ # set the HTTP header `Accept`
2490
+ _header_params['Accept'] = self.api_client.select_header_accept(
1461
2491
  ['application/json']) # noqa: E501
1462
2492
 
1463
- # Authentication setting
1464
- auth_settings = ['ApiKey'] # noqa: E501
2493
+ # authentication setting
2494
+ _auth_settings = ['ApiKey'] # noqa: E501
1465
2495
 
1466
- response_types_map = {
1467
- 200: "V1ListAgentsResponse",
1468
- 204: "object",
1469
- 403: "object",
1470
- 404: "object",
2496
+ _response_types_map = {
2497
+ '200': "V1ListAgentsResponse",
2498
+ '204': "object",
2499
+ '403': "object",
2500
+ '404': "object",
1471
2501
  }
1472
2502
 
1473
2503
  return self.api_client.call_api(
1474
2504
  '/api/v1/orgs/{owner}/agents', 'GET',
1475
- path_params,
1476
- query_params,
1477
- header_params,
1478
- body=body_params,
1479
- post_params=form_params,
1480
- files=local_var_files,
1481
- response_types_map=response_types_map,
1482
- auth_settings=auth_settings,
1483
- async_req=local_var_params.get('async_req'),
1484
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1485
- _preload_content=local_var_params.get('_preload_content', True),
1486
- _request_timeout=local_var_params.get('_request_timeout'),
1487
- collection_formats=collection_formats,
1488
- _request_auth=local_var_params.get('_request_auth'))
1489
-
1490
- def patch_agent(self, owner, agent_uuid, body, **kwargs): # noqa: E501
2505
+ _path_params,
2506
+ _query_params,
2507
+ _header_params,
2508
+ body=_body_params,
2509
+ post_params=_form_params,
2510
+ files=_files,
2511
+ response_types_map=_response_types_map,
2512
+ auth_settings=_auth_settings,
2513
+ async_req=_params.get('async_req'),
2514
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
2515
+ _preload_content=_params.get('_preload_content', True),
2516
+ _request_timeout=_params.get('_request_timeout'),
2517
+ collection_formats=_collection_formats,
2518
+ _request_auth=_params.get('_request_auth'))
2519
+
2520
+ @validate_arguments
2521
+ def patch_agent(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Agent, Field(..., description="Agent body")], **kwargs) -> V1Agent: # noqa: E501
1491
2522
  """Patch agent # noqa: E501
1492
2523
 
1493
2524
  This method makes a synchronous HTTP request by default. To make an
@@ -1520,7 +2551,8 @@ class AgentsV1Api(object):
1520
2551
  kwargs['_return_http_data_only'] = True
1521
2552
  return self.patch_agent_with_http_info(owner, agent_uuid, body, **kwargs) # noqa: E501
1522
2553
 
1523
- def patch_agent_with_http_info(self, owner, agent_uuid, body, **kwargs): # noqa: E501
2554
+ @validate_arguments
2555
+ def patch_agent_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Agent, Field(..., description="Agent body")], **kwargs): # noqa: E501
1524
2556
  """Patch agent # noqa: E501
1525
2557
 
1526
2558
  This method makes a synchronous HTTP request by default. To make an
@@ -1552,104 +2584,105 @@ class AgentsV1Api(object):
1552
2584
  request; this effectively ignores the authentication
1553
2585
  in the spec for a single request.
1554
2586
  :type _request_auth: dict, optional
2587
+ :type _content_type: string, optional: force content-type for the request
1555
2588
  :return: Returns the result object.
1556
2589
  If the method is called asynchronously,
1557
2590
  returns the request thread.
1558
2591
  :rtype: tuple(V1Agent, status_code(int), headers(HTTPHeaderDict))
1559
2592
  """
1560
2593
 
1561
- local_var_params = locals()
2594
+ _params = locals()
1562
2595
 
1563
- all_params = [
2596
+ _all_params = [
1564
2597
  'owner',
1565
2598
  'agent_uuid',
1566
2599
  'body'
1567
2600
  ]
1568
- all_params.extend(
2601
+ _all_params.extend(
1569
2602
  [
1570
2603
  'async_req',
1571
2604
  '_return_http_data_only',
1572
2605
  '_preload_content',
1573
2606
  '_request_timeout',
1574
- '_request_auth'
2607
+ '_request_auth',
2608
+ '_content_type',
2609
+ '_headers'
1575
2610
  ]
1576
2611
  )
1577
2612
 
1578
- for key, val in six.iteritems(local_var_params['kwargs']):
1579
- if key not in all_params:
2613
+ # validate the arguments
2614
+ for _key, _val in _params['kwargs'].items():
2615
+ if _key not in _all_params:
1580
2616
  raise ApiTypeError(
1581
2617
  "Got an unexpected keyword argument '%s'"
1582
- " to method patch_agent" % key
2618
+ " to method patch_agent" % _key
1583
2619
  )
1584
- local_var_params[key] = val
1585
- del local_var_params['kwargs']
1586
- # verify the required parameter 'owner' is set
1587
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1588
- local_var_params['owner'] is None): # noqa: E501
1589
- raise ApiValueError("Missing the required parameter `owner` when calling `patch_agent`") # noqa: E501
1590
- # verify the required parameter 'agent_uuid' is set
1591
- if self.api_client.client_side_validation and ('agent_uuid' not in local_var_params or # noqa: E501
1592
- local_var_params['agent_uuid'] is None): # noqa: E501
1593
- raise ApiValueError("Missing the required parameter `agent_uuid` when calling `patch_agent`") # noqa: E501
1594
- # verify the required parameter 'body' is set
1595
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1596
- local_var_params['body'] is None): # noqa: E501
1597
- raise ApiValueError("Missing the required parameter `body` when calling `patch_agent`") # noqa: E501
1598
-
1599
- collection_formats = {}
1600
-
1601
- path_params = {}
1602
- if 'owner' in local_var_params:
1603
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1604
- if 'agent_uuid' in local_var_params:
1605
- path_params['agent.uuid'] = local_var_params['agent_uuid'] # noqa: E501
1606
-
1607
- query_params = []
1608
-
1609
- header_params = {}
1610
-
1611
- form_params = []
1612
- local_var_files = {}
1613
-
1614
- body_params = None
1615
- if 'body' in local_var_params:
1616
- body_params = local_var_params['body']
1617
- # HTTP header `Accept`
1618
- header_params['Accept'] = self.api_client.select_header_accept(
1619
- ['application/json']) # noqa: E501
1620
-
1621
- # HTTP header `Content-Type`
1622
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2620
+ _params[_key] = _val
2621
+ del _params['kwargs']
2622
+
2623
+ _collection_formats = {}
2624
+
2625
+ # process the path parameters
2626
+ _path_params = {}
2627
+ if _params['owner']:
2628
+ _path_params['owner'] = _params['owner']
2629
+
2630
+ if _params['agent_uuid']:
2631
+ _path_params['agent.uuid'] = _params['agent_uuid']
2632
+
2633
+
2634
+ # process the query parameters
2635
+ _query_params = []
2636
+ # process the header parameters
2637
+ _header_params = dict(_params.get('_headers', {}))
2638
+ # process the form parameters
2639
+ _form_params = []
2640
+ _files = {}
2641
+ # process the body parameter
2642
+ _body_params = None
2643
+ if _params['body']:
2644
+ _body_params = _params['body']
2645
+
2646
+ # set the HTTP header `Accept`
2647
+ _header_params['Accept'] = self.api_client.select_header_accept(
1623
2648
  ['application/json']) # noqa: E501
1624
2649
 
1625
- # Authentication setting
1626
- auth_settings = ['ApiKey'] # noqa: E501
1627
-
1628
- response_types_map = {
1629
- 200: "V1Agent",
1630
- 204: "object",
1631
- 403: "object",
1632
- 404: "object",
2650
+ # set the HTTP header `Content-Type`
2651
+ _content_types_list = _params.get('_content_type',
2652
+ self.api_client.select_header_content_type(
2653
+ ['application/json']))
2654
+ if _content_types_list:
2655
+ _header_params['Content-Type'] = _content_types_list
2656
+
2657
+ # authentication setting
2658
+ _auth_settings = ['ApiKey'] # noqa: E501
2659
+
2660
+ _response_types_map = {
2661
+ '200': "V1Agent",
2662
+ '204': "object",
2663
+ '403': "object",
2664
+ '404': "object",
1633
2665
  }
1634
2666
 
1635
2667
  return self.api_client.call_api(
1636
2668
  '/api/v1/orgs/{owner}/agents/{agent.uuid}', 'PATCH',
1637
- path_params,
1638
- query_params,
1639
- header_params,
1640
- body=body_params,
1641
- post_params=form_params,
1642
- files=local_var_files,
1643
- response_types_map=response_types_map,
1644
- auth_settings=auth_settings,
1645
- async_req=local_var_params.get('async_req'),
1646
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1647
- _preload_content=local_var_params.get('_preload_content', True),
1648
- _request_timeout=local_var_params.get('_request_timeout'),
1649
- collection_formats=collection_formats,
1650
- _request_auth=local_var_params.get('_request_auth'))
1651
-
1652
- def patch_agent_token(self, owner, entity, body, **kwargs): # noqa: E501
2669
+ _path_params,
2670
+ _query_params,
2671
+ _header_params,
2672
+ body=_body_params,
2673
+ post_params=_form_params,
2674
+ files=_files,
2675
+ response_types_map=_response_types_map,
2676
+ auth_settings=_auth_settings,
2677
+ async_req=_params.get('async_req'),
2678
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
2679
+ _preload_content=_params.get('_preload_content', True),
2680
+ _request_timeout=_params.get('_request_timeout'),
2681
+ collection_formats=_collection_formats,
2682
+ _request_auth=_params.get('_request_auth'))
2683
+
2684
+ @validate_arguments
2685
+ def patch_agent_token(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
1653
2686
  """Patch agent token # noqa: E501
1654
2687
 
1655
2688
  This method makes a synchronous HTTP request by default. To make an
@@ -1660,7 +2693,7 @@ class AgentsV1Api(object):
1660
2693
 
1661
2694
  :param owner: Owner of the namespace (required)
1662
2695
  :type owner: str
1663
- :param entity: Rntity (required)
2696
+ :param entity: Entity (required)
1664
2697
  :type entity: str
1665
2698
  :param body: Token body (required)
1666
2699
  :type body: V1Token
@@ -1682,7 +2715,8 @@ class AgentsV1Api(object):
1682
2715
  kwargs['_return_http_data_only'] = True
1683
2716
  return self.patch_agent_token_with_http_info(owner, entity, body, **kwargs) # noqa: E501
1684
2717
 
1685
- def patch_agent_token_with_http_info(self, owner, entity, body, **kwargs): # noqa: E501
2718
+ @validate_arguments
2719
+ def patch_agent_token_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
1686
2720
  """Patch agent token # noqa: E501
1687
2721
 
1688
2722
  This method makes a synchronous HTTP request by default. To make an
@@ -1693,7 +2727,7 @@ class AgentsV1Api(object):
1693
2727
 
1694
2728
  :param owner: Owner of the namespace (required)
1695
2729
  :type owner: str
1696
- :param entity: Rntity (required)
2730
+ :param entity: Entity (required)
1697
2731
  :type entity: str
1698
2732
  :param body: Token body (required)
1699
2733
  :type body: V1Token
@@ -1714,104 +2748,269 @@ class AgentsV1Api(object):
1714
2748
  request; this effectively ignores the authentication
1715
2749
  in the spec for a single request.
1716
2750
  :type _request_auth: dict, optional
2751
+ :type _content_type: string, optional: force content-type for the request
1717
2752
  :return: Returns the result object.
1718
2753
  If the method is called asynchronously,
1719
2754
  returns the request thread.
1720
2755
  :rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
1721
2756
  """
1722
2757
 
1723
- local_var_params = locals()
2758
+ _params = locals()
1724
2759
 
1725
- all_params = [
2760
+ _all_params = [
1726
2761
  'owner',
1727
2762
  'entity',
1728
2763
  'body'
1729
2764
  ]
1730
- all_params.extend(
2765
+ _all_params.extend(
1731
2766
  [
1732
2767
  'async_req',
1733
2768
  '_return_http_data_only',
1734
2769
  '_preload_content',
1735
2770
  '_request_timeout',
1736
- '_request_auth'
2771
+ '_request_auth',
2772
+ '_content_type',
2773
+ '_headers'
1737
2774
  ]
1738
2775
  )
1739
2776
 
1740
- for key, val in six.iteritems(local_var_params['kwargs']):
1741
- if key not in all_params:
2777
+ # validate the arguments
2778
+ for _key, _val in _params['kwargs'].items():
2779
+ if _key not in _all_params:
1742
2780
  raise ApiTypeError(
1743
2781
  "Got an unexpected keyword argument '%s'"
1744
- " to method patch_agent_token" % key
2782
+ " to method patch_agent_token" % _key
1745
2783
  )
1746
- local_var_params[key] = val
1747
- del local_var_params['kwargs']
1748
- # verify the required parameter 'owner' is set
1749
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1750
- local_var_params['owner'] is None): # noqa: E501
1751
- raise ApiValueError("Missing the required parameter `owner` when calling `patch_agent_token`") # noqa: E501
1752
- # verify the required parameter 'entity' is set
1753
- if self.api_client.client_side_validation and ('entity' not in local_var_params or # noqa: E501
1754
- local_var_params['entity'] is None): # noqa: E501
1755
- raise ApiValueError("Missing the required parameter `entity` when calling `patch_agent_token`") # noqa: E501
1756
- # verify the required parameter 'body' is set
1757
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1758
- local_var_params['body'] is None): # noqa: E501
1759
- raise ApiValueError("Missing the required parameter `body` when calling `patch_agent_token`") # noqa: E501
1760
-
1761
- collection_formats = {}
1762
-
1763
- path_params = {}
1764
- if 'owner' in local_var_params:
1765
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1766
- if 'entity' in local_var_params:
1767
- path_params['entity'] = local_var_params['entity'] # noqa: E501
1768
-
1769
- query_params = []
1770
-
1771
- header_params = {}
1772
-
1773
- form_params = []
1774
- local_var_files = {}
1775
-
1776
- body_params = None
1777
- if 'body' in local_var_params:
1778
- body_params = local_var_params['body']
1779
- # HTTP header `Accept`
1780
- header_params['Accept'] = self.api_client.select_header_accept(
2784
+ _params[_key] = _val
2785
+ del _params['kwargs']
2786
+
2787
+ _collection_formats = {}
2788
+
2789
+ # process the path parameters
2790
+ _path_params = {}
2791
+ if _params['owner']:
2792
+ _path_params['owner'] = _params['owner']
2793
+
2794
+ if _params['entity']:
2795
+ _path_params['entity'] = _params['entity']
2796
+
2797
+
2798
+ # process the query parameters
2799
+ _query_params = []
2800
+ # process the header parameters
2801
+ _header_params = dict(_params.get('_headers', {}))
2802
+ # process the form parameters
2803
+ _form_params = []
2804
+ _files = {}
2805
+ # process the body parameter
2806
+ _body_params = None
2807
+ if _params['body']:
2808
+ _body_params = _params['body']
2809
+
2810
+ # set the HTTP header `Accept`
2811
+ _header_params['Accept'] = self.api_client.select_header_accept(
1781
2812
  ['application/json']) # noqa: E501
1782
2813
 
1783
- # HTTP header `Content-Type`
1784
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1785
- ['application/json']) # noqa: E501
2814
+ # set the HTTP header `Content-Type`
2815
+ _content_types_list = _params.get('_content_type',
2816
+ self.api_client.select_header_content_type(
2817
+ ['application/json']))
2818
+ if _content_types_list:
2819
+ _header_params['Content-Type'] = _content_types_list
2820
+
2821
+ # authentication setting
2822
+ _auth_settings = ['ApiKey'] # noqa: E501
2823
+
2824
+ _response_types_map = {
2825
+ '200': "V1Token",
2826
+ '204': "object",
2827
+ '403': "object",
2828
+ '404': "object",
2829
+ }
2830
+
2831
+ return self.api_client.call_api(
2832
+ '/api/v1/orgs/{owner}/agents/{entity}/token', 'PATCH',
2833
+ _path_params,
2834
+ _query_params,
2835
+ _header_params,
2836
+ body=_body_params,
2837
+ post_params=_form_params,
2838
+ files=_files,
2839
+ response_types_map=_response_types_map,
2840
+ auth_settings=_auth_settings,
2841
+ async_req=_params.get('async_req'),
2842
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
2843
+ _preload_content=_params.get('_preload_content', True),
2844
+ _request_timeout=_params.get('_request_timeout'),
2845
+ collection_formats=_collection_formats,
2846
+ _request_auth=_params.get('_request_auth'))
2847
+
2848
+ @validate_arguments
2849
+ def reconcile_agent(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], body : V1AgentReconcileBodyRequest, **kwargs) -> object: # noqa: E501
2850
+ """Reconcile agent # noqa: E501
2851
+
2852
+ This method makes a synchronous HTTP request by default. To make an
2853
+ asynchronous HTTP request, please pass async_req=True
2854
+
2855
+ >>> thread = api.reconcile_agent(owner, uuid, body, async_req=True)
2856
+ >>> result = thread.get()
2857
+
2858
+ :param owner: Owner of the namespace (required)
2859
+ :type owner: str
2860
+ :param uuid: Uuid identifier of the entity (required)
2861
+ :type uuid: str
2862
+ :param body: (required)
2863
+ :type body: V1AgentReconcileBodyRequest
2864
+ :param async_req: Whether to execute the request asynchronously.
2865
+ :type async_req: bool, optional
2866
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
2867
+ be returned without reading/decoding response
2868
+ data. Default is True.
2869
+ :type _preload_content: bool, optional
2870
+ :param _request_timeout: timeout setting for this request. If one
2871
+ number provided, it will be total request
2872
+ timeout. It can also be a pair (tuple) of
2873
+ (connection, read) timeouts.
2874
+ :return: Returns the result object.
2875
+ If the method is called asynchronously,
2876
+ returns the request thread.
2877
+ :rtype: object
2878
+ """
2879
+ kwargs['_return_http_data_only'] = True
2880
+ return self.reconcile_agent_with_http_info(owner, uuid, body, **kwargs) # noqa: E501
2881
+
2882
+ @validate_arguments
2883
+ def reconcile_agent_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], body : V1AgentReconcileBodyRequest, **kwargs): # noqa: E501
2884
+ """Reconcile agent # noqa: E501
2885
+
2886
+ This method makes a synchronous HTTP request by default. To make an
2887
+ asynchronous HTTP request, please pass async_req=True
2888
+
2889
+ >>> thread = api.reconcile_agent_with_http_info(owner, uuid, body, async_req=True)
2890
+ >>> result = thread.get()
2891
+
2892
+ :param owner: Owner of the namespace (required)
2893
+ :type owner: str
2894
+ :param uuid: Uuid identifier of the entity (required)
2895
+ :type uuid: str
2896
+ :param body: (required)
2897
+ :type body: V1AgentReconcileBodyRequest
2898
+ :param async_req: Whether to execute the request asynchronously.
2899
+ :type async_req: bool, optional
2900
+ :param _return_http_data_only: response data without head status code
2901
+ and headers
2902
+ :type _return_http_data_only: bool, optional
2903
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
2904
+ be returned without reading/decoding response
2905
+ data. Default is True.
2906
+ :type _preload_content: bool, optional
2907
+ :param _request_timeout: timeout setting for this request. If one
2908
+ number provided, it will be total request
2909
+ timeout. It can also be a pair (tuple) of
2910
+ (connection, read) timeouts.
2911
+ :param _request_auth: set to override the auth_settings for an a single
2912
+ request; this effectively ignores the authentication
2913
+ in the spec for a single request.
2914
+ :type _request_auth: dict, optional
2915
+ :type _content_type: string, optional: force content-type for the request
2916
+ :return: Returns the result object.
2917
+ If the method is called asynchronously,
2918
+ returns the request thread.
2919
+ :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
2920
+ """
2921
+
2922
+ _params = locals()
2923
+
2924
+ _all_params = [
2925
+ 'owner',
2926
+ 'uuid',
2927
+ 'body'
2928
+ ]
2929
+ _all_params.extend(
2930
+ [
2931
+ 'async_req',
2932
+ '_return_http_data_only',
2933
+ '_preload_content',
2934
+ '_request_timeout',
2935
+ '_request_auth',
2936
+ '_content_type',
2937
+ '_headers'
2938
+ ]
2939
+ )
1786
2940
 
1787
- # Authentication setting
1788
- auth_settings = ['ApiKey'] # noqa: E501
2941
+ # validate the arguments
2942
+ for _key, _val in _params['kwargs'].items():
2943
+ if _key not in _all_params:
2944
+ raise ApiTypeError(
2945
+ "Got an unexpected keyword argument '%s'"
2946
+ " to method reconcile_agent" % _key
2947
+ )
2948
+ _params[_key] = _val
2949
+ del _params['kwargs']
2950
+
2951
+ _collection_formats = {}
2952
+
2953
+ # process the path parameters
2954
+ _path_params = {}
2955
+ if _params['owner']:
2956
+ _path_params['owner'] = _params['owner']
2957
+
2958
+ if _params['uuid']:
2959
+ _path_params['uuid'] = _params['uuid']
2960
+
2961
+
2962
+ # process the query parameters
2963
+ _query_params = []
2964
+ # process the header parameters
2965
+ _header_params = dict(_params.get('_headers', {}))
2966
+ # process the form parameters
2967
+ _form_params = []
2968
+ _files = {}
2969
+ # process the body parameter
2970
+ _body_params = None
2971
+ if _params['body']:
2972
+ _body_params = _params['body']
2973
+
2974
+ # set the HTTP header `Accept`
2975
+ _header_params['Accept'] = self.api_client.select_header_accept(
2976
+ ['application/json']) # noqa: E501
1789
2977
 
1790
- response_types_map = {
1791
- 200: "V1Token",
1792
- 204: "object",
1793
- 403: "object",
1794
- 404: "object",
2978
+ # set the HTTP header `Content-Type`
2979
+ _content_types_list = _params.get('_content_type',
2980
+ self.api_client.select_header_content_type(
2981
+ ['application/json']))
2982
+ if _content_types_list:
2983
+ _header_params['Content-Type'] = _content_types_list
2984
+
2985
+ # authentication setting
2986
+ _auth_settings = ['ApiKey'] # noqa: E501
2987
+
2988
+ _response_types_map = {
2989
+ '200': "object",
2990
+ '204': "object",
2991
+ '403': "object",
2992
+ '404': "object",
1795
2993
  }
1796
2994
 
1797
2995
  return self.api_client.call_api(
1798
- '/api/v1/orgs/{owner}/agents/{entity}/token', 'PATCH',
1799
- path_params,
1800
- query_params,
1801
- header_params,
1802
- body=body_params,
1803
- post_params=form_params,
1804
- files=local_var_files,
1805
- response_types_map=response_types_map,
1806
- auth_settings=auth_settings,
1807
- async_req=local_var_params.get('async_req'),
1808
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1809
- _preload_content=local_var_params.get('_preload_content', True),
1810
- _request_timeout=local_var_params.get('_request_timeout'),
1811
- collection_formats=collection_formats,
1812
- _request_auth=local_var_params.get('_request_auth'))
1813
-
1814
- def sync_agent(self, owner, agent_uuid, body, **kwargs): # noqa: E501
2996
+ '/api/v1/orgs/{owner}/agents/{uuid}/reconcile', 'PATCH',
2997
+ _path_params,
2998
+ _query_params,
2999
+ _header_params,
3000
+ body=_body_params,
3001
+ post_params=_form_params,
3002
+ files=_files,
3003
+ response_types_map=_response_types_map,
3004
+ auth_settings=_auth_settings,
3005
+ async_req=_params.get('async_req'),
3006
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
3007
+ _preload_content=_params.get('_preload_content', True),
3008
+ _request_timeout=_params.get('_request_timeout'),
3009
+ collection_formats=_collection_formats,
3010
+ _request_auth=_params.get('_request_auth'))
3011
+
3012
+ @validate_arguments
3013
+ def sync_agent(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Agent, Field(..., description="Agent body")], **kwargs) -> None: # noqa: E501
1815
3014
  """Sync agent # noqa: E501
1816
3015
 
1817
3016
  This method makes a synchronous HTTP request by default. To make an
@@ -1844,7 +3043,8 @@ class AgentsV1Api(object):
1844
3043
  kwargs['_return_http_data_only'] = True
1845
3044
  return self.sync_agent_with_http_info(owner, agent_uuid, body, **kwargs) # noqa: E501
1846
3045
 
1847
- def sync_agent_with_http_info(self, owner, agent_uuid, body, **kwargs): # noqa: E501
3046
+ @validate_arguments
3047
+ def sync_agent_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Agent, Field(..., description="Agent body")], **kwargs): # noqa: E501
1848
3048
  """Sync agent # noqa: E501
1849
3049
 
1850
3050
  This method makes a synchronous HTTP request by default. To make an
@@ -1876,99 +3076,100 @@ class AgentsV1Api(object):
1876
3076
  request; this effectively ignores the authentication
1877
3077
  in the spec for a single request.
1878
3078
  :type _request_auth: dict, optional
3079
+ :type _content_type: string, optional: force content-type for the request
1879
3080
  :return: Returns the result object.
1880
3081
  If the method is called asynchronously,
1881
3082
  returns the request thread.
1882
3083
  :rtype: None
1883
3084
  """
1884
3085
 
1885
- local_var_params = locals()
3086
+ _params = locals()
1886
3087
 
1887
- all_params = [
3088
+ _all_params = [
1888
3089
  'owner',
1889
3090
  'agent_uuid',
1890
3091
  'body'
1891
3092
  ]
1892
- all_params.extend(
3093
+ _all_params.extend(
1893
3094
  [
1894
3095
  'async_req',
1895
3096
  '_return_http_data_only',
1896
3097
  '_preload_content',
1897
3098
  '_request_timeout',
1898
- '_request_auth'
3099
+ '_request_auth',
3100
+ '_content_type',
3101
+ '_headers'
1899
3102
  ]
1900
3103
  )
1901
3104
 
1902
- for key, val in six.iteritems(local_var_params['kwargs']):
1903
- if key not in all_params:
3105
+ # validate the arguments
3106
+ for _key, _val in _params['kwargs'].items():
3107
+ if _key not in _all_params:
1904
3108
  raise ApiTypeError(
1905
3109
  "Got an unexpected keyword argument '%s'"
1906
- " to method sync_agent" % key
3110
+ " to method sync_agent" % _key
1907
3111
  )
1908
- local_var_params[key] = val
1909
- del local_var_params['kwargs']
1910
- # verify the required parameter 'owner' is set
1911
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
1912
- local_var_params['owner'] is None): # noqa: E501
1913
- raise ApiValueError("Missing the required parameter `owner` when calling `sync_agent`") # noqa: E501
1914
- # verify the required parameter 'agent_uuid' is set
1915
- if self.api_client.client_side_validation and ('agent_uuid' not in local_var_params or # noqa: E501
1916
- local_var_params['agent_uuid'] is None): # noqa: E501
1917
- raise ApiValueError("Missing the required parameter `agent_uuid` when calling `sync_agent`") # noqa: E501
1918
- # verify the required parameter 'body' is set
1919
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
1920
- local_var_params['body'] is None): # noqa: E501
1921
- raise ApiValueError("Missing the required parameter `body` when calling `sync_agent`") # noqa: E501
1922
-
1923
- collection_formats = {}
1924
-
1925
- path_params = {}
1926
- if 'owner' in local_var_params:
1927
- path_params['owner'] = local_var_params['owner'] # noqa: E501
1928
- if 'agent_uuid' in local_var_params:
1929
- path_params['agent.uuid'] = local_var_params['agent_uuid'] # noqa: E501
1930
-
1931
- query_params = []
1932
-
1933
- header_params = {}
1934
-
1935
- form_params = []
1936
- local_var_files = {}
1937
-
1938
- body_params = None
1939
- if 'body' in local_var_params:
1940
- body_params = local_var_params['body']
1941
- # HTTP header `Accept`
1942
- header_params['Accept'] = self.api_client.select_header_accept(
3112
+ _params[_key] = _val
3113
+ del _params['kwargs']
3114
+
3115
+ _collection_formats = {}
3116
+
3117
+ # process the path parameters
3118
+ _path_params = {}
3119
+ if _params['owner']:
3120
+ _path_params['owner'] = _params['owner']
3121
+
3122
+ if _params['agent_uuid']:
3123
+ _path_params['agent.uuid'] = _params['agent_uuid']
3124
+
3125
+
3126
+ # process the query parameters
3127
+ _query_params = []
3128
+ # process the header parameters
3129
+ _header_params = dict(_params.get('_headers', {}))
3130
+ # process the form parameters
3131
+ _form_params = []
3132
+ _files = {}
3133
+ # process the body parameter
3134
+ _body_params = None
3135
+ if _params['body']:
3136
+ _body_params = _params['body']
3137
+
3138
+ # set the HTTP header `Accept`
3139
+ _header_params['Accept'] = self.api_client.select_header_accept(
1943
3140
  ['application/json']) # noqa: E501
1944
3141
 
1945
- # HTTP header `Content-Type`
1946
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1947
- ['application/json']) # noqa: E501
3142
+ # set the HTTP header `Content-Type`
3143
+ _content_types_list = _params.get('_content_type',
3144
+ self.api_client.select_header_content_type(
3145
+ ['application/json']))
3146
+ if _content_types_list:
3147
+ _header_params['Content-Type'] = _content_types_list
1948
3148
 
1949
- # Authentication setting
1950
- auth_settings = ['ApiKey'] # noqa: E501
3149
+ # authentication setting
3150
+ _auth_settings = ['ApiKey'] # noqa: E501
1951
3151
 
1952
- response_types_map = {}
3152
+ _response_types_map = {}
1953
3153
 
1954
3154
  return self.api_client.call_api(
1955
3155
  '/api/v1/orgs/{owner}/agents/{agent.uuid}/sync', 'PATCH',
1956
- path_params,
1957
- query_params,
1958
- header_params,
1959
- body=body_params,
1960
- post_params=form_params,
1961
- files=local_var_files,
1962
- response_types_map=response_types_map,
1963
- auth_settings=auth_settings,
1964
- async_req=local_var_params.get('async_req'),
1965
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1966
- _preload_content=local_var_params.get('_preload_content', True),
1967
- _request_timeout=local_var_params.get('_request_timeout'),
1968
- collection_formats=collection_formats,
1969
- _request_auth=local_var_params.get('_request_auth'))
1970
-
1971
- def update_agent(self, owner, agent_uuid, body, **kwargs): # noqa: E501
3156
+ _path_params,
3157
+ _query_params,
3158
+ _header_params,
3159
+ body=_body_params,
3160
+ post_params=_form_params,
3161
+ files=_files,
3162
+ response_types_map=_response_types_map,
3163
+ auth_settings=_auth_settings,
3164
+ async_req=_params.get('async_req'),
3165
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
3166
+ _preload_content=_params.get('_preload_content', True),
3167
+ _request_timeout=_params.get('_request_timeout'),
3168
+ collection_formats=_collection_formats,
3169
+ _request_auth=_params.get('_request_auth'))
3170
+
3171
+ @validate_arguments
3172
+ def update_agent(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Agent, Field(..., description="Agent body")], **kwargs) -> V1Agent: # noqa: E501
1972
3173
  """Update agent # noqa: E501
1973
3174
 
1974
3175
  This method makes a synchronous HTTP request by default. To make an
@@ -2001,7 +3202,8 @@ class AgentsV1Api(object):
2001
3202
  kwargs['_return_http_data_only'] = True
2002
3203
  return self.update_agent_with_http_info(owner, agent_uuid, body, **kwargs) # noqa: E501
2003
3204
 
2004
- def update_agent_with_http_info(self, owner, agent_uuid, body, **kwargs): # noqa: E501
3205
+ @validate_arguments
3206
+ def update_agent_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Agent, Field(..., description="Agent body")], **kwargs): # noqa: E501
2005
3207
  """Update agent # noqa: E501
2006
3208
 
2007
3209
  This method makes a synchronous HTTP request by default. To make an
@@ -2033,104 +3235,105 @@ class AgentsV1Api(object):
2033
3235
  request; this effectively ignores the authentication
2034
3236
  in the spec for a single request.
2035
3237
  :type _request_auth: dict, optional
3238
+ :type _content_type: string, optional: force content-type for the request
2036
3239
  :return: Returns the result object.
2037
3240
  If the method is called asynchronously,
2038
3241
  returns the request thread.
2039
3242
  :rtype: tuple(V1Agent, status_code(int), headers(HTTPHeaderDict))
2040
3243
  """
2041
3244
 
2042
- local_var_params = locals()
3245
+ _params = locals()
2043
3246
 
2044
- all_params = [
3247
+ _all_params = [
2045
3248
  'owner',
2046
3249
  'agent_uuid',
2047
3250
  'body'
2048
3251
  ]
2049
- all_params.extend(
3252
+ _all_params.extend(
2050
3253
  [
2051
3254
  'async_req',
2052
3255
  '_return_http_data_only',
2053
3256
  '_preload_content',
2054
3257
  '_request_timeout',
2055
- '_request_auth'
3258
+ '_request_auth',
3259
+ '_content_type',
3260
+ '_headers'
2056
3261
  ]
2057
3262
  )
2058
3263
 
2059
- for key, val in six.iteritems(local_var_params['kwargs']):
2060
- if key not in all_params:
3264
+ # validate the arguments
3265
+ for _key, _val in _params['kwargs'].items():
3266
+ if _key not in _all_params:
2061
3267
  raise ApiTypeError(
2062
3268
  "Got an unexpected keyword argument '%s'"
2063
- " to method update_agent" % key
3269
+ " to method update_agent" % _key
2064
3270
  )
2065
- local_var_params[key] = val
2066
- del local_var_params['kwargs']
2067
- # verify the required parameter 'owner' is set
2068
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
2069
- local_var_params['owner'] is None): # noqa: E501
2070
- raise ApiValueError("Missing the required parameter `owner` when calling `update_agent`") # noqa: E501
2071
- # verify the required parameter 'agent_uuid' is set
2072
- if self.api_client.client_side_validation and ('agent_uuid' not in local_var_params or # noqa: E501
2073
- local_var_params['agent_uuid'] is None): # noqa: E501
2074
- raise ApiValueError("Missing the required parameter `agent_uuid` when calling `update_agent`") # noqa: E501
2075
- # verify the required parameter 'body' is set
2076
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
2077
- local_var_params['body'] is None): # noqa: E501
2078
- raise ApiValueError("Missing the required parameter `body` when calling `update_agent`") # noqa: E501
2079
-
2080
- collection_formats = {}
2081
-
2082
- path_params = {}
2083
- if 'owner' in local_var_params:
2084
- path_params['owner'] = local_var_params['owner'] # noqa: E501
2085
- if 'agent_uuid' in local_var_params:
2086
- path_params['agent.uuid'] = local_var_params['agent_uuid'] # noqa: E501
2087
-
2088
- query_params = []
2089
-
2090
- header_params = {}
2091
-
2092
- form_params = []
2093
- local_var_files = {}
2094
-
2095
- body_params = None
2096
- if 'body' in local_var_params:
2097
- body_params = local_var_params['body']
2098
- # HTTP header `Accept`
2099
- header_params['Accept'] = self.api_client.select_header_accept(
2100
- ['application/json']) # noqa: E501
2101
-
2102
- # HTTP header `Content-Type`
2103
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3271
+ _params[_key] = _val
3272
+ del _params['kwargs']
3273
+
3274
+ _collection_formats = {}
3275
+
3276
+ # process the path parameters
3277
+ _path_params = {}
3278
+ if _params['owner']:
3279
+ _path_params['owner'] = _params['owner']
3280
+
3281
+ if _params['agent_uuid']:
3282
+ _path_params['agent.uuid'] = _params['agent_uuid']
3283
+
3284
+
3285
+ # process the query parameters
3286
+ _query_params = []
3287
+ # process the header parameters
3288
+ _header_params = dict(_params.get('_headers', {}))
3289
+ # process the form parameters
3290
+ _form_params = []
3291
+ _files = {}
3292
+ # process the body parameter
3293
+ _body_params = None
3294
+ if _params['body']:
3295
+ _body_params = _params['body']
3296
+
3297
+ # set the HTTP header `Accept`
3298
+ _header_params['Accept'] = self.api_client.select_header_accept(
2104
3299
  ['application/json']) # noqa: E501
2105
3300
 
2106
- # Authentication setting
2107
- auth_settings = ['ApiKey'] # noqa: E501
2108
-
2109
- response_types_map = {
2110
- 200: "V1Agent",
2111
- 204: "object",
2112
- 403: "object",
2113
- 404: "object",
3301
+ # set the HTTP header `Content-Type`
3302
+ _content_types_list = _params.get('_content_type',
3303
+ self.api_client.select_header_content_type(
3304
+ ['application/json']))
3305
+ if _content_types_list:
3306
+ _header_params['Content-Type'] = _content_types_list
3307
+
3308
+ # authentication setting
3309
+ _auth_settings = ['ApiKey'] # noqa: E501
3310
+
3311
+ _response_types_map = {
3312
+ '200': "V1Agent",
3313
+ '204': "object",
3314
+ '403': "object",
3315
+ '404': "object",
2114
3316
  }
2115
3317
 
2116
3318
  return self.api_client.call_api(
2117
3319
  '/api/v1/orgs/{owner}/agents/{agent.uuid}', 'PUT',
2118
- path_params,
2119
- query_params,
2120
- header_params,
2121
- body=body_params,
2122
- post_params=form_params,
2123
- files=local_var_files,
2124
- response_types_map=response_types_map,
2125
- auth_settings=auth_settings,
2126
- async_req=local_var_params.get('async_req'),
2127
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2128
- _preload_content=local_var_params.get('_preload_content', True),
2129
- _request_timeout=local_var_params.get('_request_timeout'),
2130
- collection_formats=collection_formats,
2131
- _request_auth=local_var_params.get('_request_auth'))
2132
-
2133
- def update_agent_config(self, owner, agent_uuid, body, **kwargs): # noqa: E501
3320
+ _path_params,
3321
+ _query_params,
3322
+ _header_params,
3323
+ body=_body_params,
3324
+ post_params=_form_params,
3325
+ files=_files,
3326
+ response_types_map=_response_types_map,
3327
+ auth_settings=_auth_settings,
3328
+ async_req=_params.get('async_req'),
3329
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
3330
+ _preload_content=_params.get('_preload_content', True),
3331
+ _request_timeout=_params.get('_request_timeout'),
3332
+ collection_formats=_collection_formats,
3333
+ _request_auth=_params.get('_request_auth'))
3334
+
3335
+ @validate_arguments
3336
+ def update_agent_config(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Agent, Field(..., description="Agent body")], **kwargs) -> V1Agent: # noqa: E501
2134
3337
  """Update agent config # noqa: E501
2135
3338
 
2136
3339
  This method makes a synchronous HTTP request by default. To make an
@@ -2163,7 +3366,8 @@ class AgentsV1Api(object):
2163
3366
  kwargs['_return_http_data_only'] = True
2164
3367
  return self.update_agent_config_with_http_info(owner, agent_uuid, body, **kwargs) # noqa: E501
2165
3368
 
2166
- def update_agent_config_with_http_info(self, owner, agent_uuid, body, **kwargs): # noqa: E501
3369
+ @validate_arguments
3370
+ def update_agent_config_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Agent, Field(..., description="Agent body")], **kwargs): # noqa: E501
2167
3371
  """Update agent config # noqa: E501
2168
3372
 
2169
3373
  This method makes a synchronous HTTP request by default. To make an
@@ -2195,104 +3399,105 @@ class AgentsV1Api(object):
2195
3399
  request; this effectively ignores the authentication
2196
3400
  in the spec for a single request.
2197
3401
  :type _request_auth: dict, optional
3402
+ :type _content_type: string, optional: force content-type for the request
2198
3403
  :return: Returns the result object.
2199
3404
  If the method is called asynchronously,
2200
3405
  returns the request thread.
2201
3406
  :rtype: tuple(V1Agent, status_code(int), headers(HTTPHeaderDict))
2202
3407
  """
2203
3408
 
2204
- local_var_params = locals()
3409
+ _params = locals()
2205
3410
 
2206
- all_params = [
3411
+ _all_params = [
2207
3412
  'owner',
2208
3413
  'agent_uuid',
2209
3414
  'body'
2210
3415
  ]
2211
- all_params.extend(
3416
+ _all_params.extend(
2212
3417
  [
2213
3418
  'async_req',
2214
3419
  '_return_http_data_only',
2215
3420
  '_preload_content',
2216
3421
  '_request_timeout',
2217
- '_request_auth'
3422
+ '_request_auth',
3423
+ '_content_type',
3424
+ '_headers'
2218
3425
  ]
2219
3426
  )
2220
3427
 
2221
- for key, val in six.iteritems(local_var_params['kwargs']):
2222
- if key not in all_params:
3428
+ # validate the arguments
3429
+ for _key, _val in _params['kwargs'].items():
3430
+ if _key not in _all_params:
2223
3431
  raise ApiTypeError(
2224
3432
  "Got an unexpected keyword argument '%s'"
2225
- " to method update_agent_config" % key
3433
+ " to method update_agent_config" % _key
2226
3434
  )
2227
- local_var_params[key] = val
2228
- del local_var_params['kwargs']
2229
- # verify the required parameter 'owner' is set
2230
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
2231
- local_var_params['owner'] is None): # noqa: E501
2232
- raise ApiValueError("Missing the required parameter `owner` when calling `update_agent_config`") # noqa: E501
2233
- # verify the required parameter 'agent_uuid' is set
2234
- if self.api_client.client_side_validation and ('agent_uuid' not in local_var_params or # noqa: E501
2235
- local_var_params['agent_uuid'] is None): # noqa: E501
2236
- raise ApiValueError("Missing the required parameter `agent_uuid` when calling `update_agent_config`") # noqa: E501
2237
- # verify the required parameter 'body' is set
2238
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
2239
- local_var_params['body'] is None): # noqa: E501
2240
- raise ApiValueError("Missing the required parameter `body` when calling `update_agent_config`") # noqa: E501
2241
-
2242
- collection_formats = {}
2243
-
2244
- path_params = {}
2245
- if 'owner' in local_var_params:
2246
- path_params['owner'] = local_var_params['owner'] # noqa: E501
2247
- if 'agent_uuid' in local_var_params:
2248
- path_params['agent.uuid'] = local_var_params['agent_uuid'] # noqa: E501
2249
-
2250
- query_params = []
2251
-
2252
- header_params = {}
2253
-
2254
- form_params = []
2255
- local_var_files = {}
2256
-
2257
- body_params = None
2258
- if 'body' in local_var_params:
2259
- body_params = local_var_params['body']
2260
- # HTTP header `Accept`
2261
- header_params['Accept'] = self.api_client.select_header_accept(
2262
- ['application/json']) # noqa: E501
2263
-
2264
- # HTTP header `Content-Type`
2265
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3435
+ _params[_key] = _val
3436
+ del _params['kwargs']
3437
+
3438
+ _collection_formats = {}
3439
+
3440
+ # process the path parameters
3441
+ _path_params = {}
3442
+ if _params['owner']:
3443
+ _path_params['owner'] = _params['owner']
3444
+
3445
+ if _params['agent_uuid']:
3446
+ _path_params['agent.uuid'] = _params['agent_uuid']
3447
+
3448
+
3449
+ # process the query parameters
3450
+ _query_params = []
3451
+ # process the header parameters
3452
+ _header_params = dict(_params.get('_headers', {}))
3453
+ # process the form parameters
3454
+ _form_params = []
3455
+ _files = {}
3456
+ # process the body parameter
3457
+ _body_params = None
3458
+ if _params['body']:
3459
+ _body_params = _params['body']
3460
+
3461
+ # set the HTTP header `Accept`
3462
+ _header_params['Accept'] = self.api_client.select_header_accept(
2266
3463
  ['application/json']) # noqa: E501
2267
3464
 
2268
- # Authentication setting
2269
- auth_settings = ['ApiKey'] # noqa: E501
2270
-
2271
- response_types_map = {
2272
- 200: "V1Agent",
2273
- 204: "object",
2274
- 403: "object",
2275
- 404: "object",
3465
+ # set the HTTP header `Content-Type`
3466
+ _content_types_list = _params.get('_content_type',
3467
+ self.api_client.select_header_content_type(
3468
+ ['application/json']))
3469
+ if _content_types_list:
3470
+ _header_params['Content-Type'] = _content_types_list
3471
+
3472
+ # authentication setting
3473
+ _auth_settings = ['ApiKey'] # noqa: E501
3474
+
3475
+ _response_types_map = {
3476
+ '200': "V1Agent",
3477
+ '204': "object",
3478
+ '403': "object",
3479
+ '404': "object",
2276
3480
  }
2277
3481
 
2278
3482
  return self.api_client.call_api(
2279
3483
  '/api/v1/orgs/{owner}/agents/{agent.uuid}/config', 'PATCH',
2280
- path_params,
2281
- query_params,
2282
- header_params,
2283
- body=body_params,
2284
- post_params=form_params,
2285
- files=local_var_files,
2286
- response_types_map=response_types_map,
2287
- auth_settings=auth_settings,
2288
- async_req=local_var_params.get('async_req'),
2289
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2290
- _preload_content=local_var_params.get('_preload_content', True),
2291
- _request_timeout=local_var_params.get('_request_timeout'),
2292
- collection_formats=collection_formats,
2293
- _request_auth=local_var_params.get('_request_auth'))
2294
-
2295
- def update_agent_token(self, owner, entity, body, **kwargs): # noqa: E501
3484
+ _path_params,
3485
+ _query_params,
3486
+ _header_params,
3487
+ body=_body_params,
3488
+ post_params=_form_params,
3489
+ files=_files,
3490
+ response_types_map=_response_types_map,
3491
+ auth_settings=_auth_settings,
3492
+ async_req=_params.get('async_req'),
3493
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
3494
+ _preload_content=_params.get('_preload_content', True),
3495
+ _request_timeout=_params.get('_request_timeout'),
3496
+ collection_formats=_collection_formats,
3497
+ _request_auth=_params.get('_request_auth'))
3498
+
3499
+ @validate_arguments
3500
+ def update_agent_token(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
2296
3501
  """Update agent token # noqa: E501
2297
3502
 
2298
3503
  This method makes a synchronous HTTP request by default. To make an
@@ -2303,7 +3508,7 @@ class AgentsV1Api(object):
2303
3508
 
2304
3509
  :param owner: Owner of the namespace (required)
2305
3510
  :type owner: str
2306
- :param entity: Rntity (required)
3511
+ :param entity: Entity (required)
2307
3512
  :type entity: str
2308
3513
  :param body: Token body (required)
2309
3514
  :type body: V1Token
@@ -2325,7 +3530,8 @@ class AgentsV1Api(object):
2325
3530
  kwargs['_return_http_data_only'] = True
2326
3531
  return self.update_agent_token_with_http_info(owner, entity, body, **kwargs) # noqa: E501
2327
3532
 
2328
- def update_agent_token_with_http_info(self, owner, entity, body, **kwargs): # noqa: E501
3533
+ @validate_arguments
3534
+ def update_agent_token_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
2329
3535
  """Update agent token # noqa: E501
2330
3536
 
2331
3537
  This method makes a synchronous HTTP request by default. To make an
@@ -2336,7 +3542,7 @@ class AgentsV1Api(object):
2336
3542
 
2337
3543
  :param owner: Owner of the namespace (required)
2338
3544
  :type owner: str
2339
- :param entity: Rntity (required)
3545
+ :param entity: Entity (required)
2340
3546
  :type entity: str
2341
3547
  :param body: Token body (required)
2342
3548
  :type body: V1Token
@@ -2357,99 +3563,99 @@ class AgentsV1Api(object):
2357
3563
  request; this effectively ignores the authentication
2358
3564
  in the spec for a single request.
2359
3565
  :type _request_auth: dict, optional
3566
+ :type _content_type: string, optional: force content-type for the request
2360
3567
  :return: Returns the result object.
2361
3568
  If the method is called asynchronously,
2362
3569
  returns the request thread.
2363
3570
  :rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
2364
3571
  """
2365
3572
 
2366
- local_var_params = locals()
3573
+ _params = locals()
2367
3574
 
2368
- all_params = [
3575
+ _all_params = [
2369
3576
  'owner',
2370
3577
  'entity',
2371
3578
  'body'
2372
3579
  ]
2373
- all_params.extend(
3580
+ _all_params.extend(
2374
3581
  [
2375
3582
  'async_req',
2376
3583
  '_return_http_data_only',
2377
3584
  '_preload_content',
2378
3585
  '_request_timeout',
2379
- '_request_auth'
3586
+ '_request_auth',
3587
+ '_content_type',
3588
+ '_headers'
2380
3589
  ]
2381
3590
  )
2382
3591
 
2383
- for key, val in six.iteritems(local_var_params['kwargs']):
2384
- if key not in all_params:
3592
+ # validate the arguments
3593
+ for _key, _val in _params['kwargs'].items():
3594
+ if _key not in _all_params:
2385
3595
  raise ApiTypeError(
2386
3596
  "Got an unexpected keyword argument '%s'"
2387
- " to method update_agent_token" % key
3597
+ " to method update_agent_token" % _key
2388
3598
  )
2389
- local_var_params[key] = val
2390
- del local_var_params['kwargs']
2391
- # verify the required parameter 'owner' is set
2392
- if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
2393
- local_var_params['owner'] is None): # noqa: E501
2394
- raise ApiValueError("Missing the required parameter `owner` when calling `update_agent_token`") # noqa: E501
2395
- # verify the required parameter 'entity' is set
2396
- if self.api_client.client_side_validation and ('entity' not in local_var_params or # noqa: E501
2397
- local_var_params['entity'] is None): # noqa: E501
2398
- raise ApiValueError("Missing the required parameter `entity` when calling `update_agent_token`") # noqa: E501
2399
- # verify the required parameter 'body' is set
2400
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
2401
- local_var_params['body'] is None): # noqa: E501
2402
- raise ApiValueError("Missing the required parameter `body` when calling `update_agent_token`") # noqa: E501
2403
-
2404
- collection_formats = {}
2405
-
2406
- path_params = {}
2407
- if 'owner' in local_var_params:
2408
- path_params['owner'] = local_var_params['owner'] # noqa: E501
2409
- if 'entity' in local_var_params:
2410
- path_params['entity'] = local_var_params['entity'] # noqa: E501
2411
-
2412
- query_params = []
2413
-
2414
- header_params = {}
2415
-
2416
- form_params = []
2417
- local_var_files = {}
2418
-
2419
- body_params = None
2420
- if 'body' in local_var_params:
2421
- body_params = local_var_params['body']
2422
- # HTTP header `Accept`
2423
- header_params['Accept'] = self.api_client.select_header_accept(
2424
- ['application/json']) # noqa: E501
2425
-
2426
- # HTTP header `Content-Type`
2427
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3599
+ _params[_key] = _val
3600
+ del _params['kwargs']
3601
+
3602
+ _collection_formats = {}
3603
+
3604
+ # process the path parameters
3605
+ _path_params = {}
3606
+ if _params['owner']:
3607
+ _path_params['owner'] = _params['owner']
3608
+
3609
+ if _params['entity']:
3610
+ _path_params['entity'] = _params['entity']
3611
+
3612
+
3613
+ # process the query parameters
3614
+ _query_params = []
3615
+ # process the header parameters
3616
+ _header_params = dict(_params.get('_headers', {}))
3617
+ # process the form parameters
3618
+ _form_params = []
3619
+ _files = {}
3620
+ # process the body parameter
3621
+ _body_params = None
3622
+ if _params['body']:
3623
+ _body_params = _params['body']
3624
+
3625
+ # set the HTTP header `Accept`
3626
+ _header_params['Accept'] = self.api_client.select_header_accept(
2428
3627
  ['application/json']) # noqa: E501
2429
3628
 
2430
- # Authentication setting
2431
- auth_settings = ['ApiKey'] # noqa: E501
2432
-
2433
- response_types_map = {
2434
- 200: "V1Token",
2435
- 204: "object",
2436
- 403: "object",
2437
- 404: "object",
3629
+ # set the HTTP header `Content-Type`
3630
+ _content_types_list = _params.get('_content_type',
3631
+ self.api_client.select_header_content_type(
3632
+ ['application/json']))
3633
+ if _content_types_list:
3634
+ _header_params['Content-Type'] = _content_types_list
3635
+
3636
+ # authentication setting
3637
+ _auth_settings = ['ApiKey'] # noqa: E501
3638
+
3639
+ _response_types_map = {
3640
+ '200': "V1Token",
3641
+ '204': "object",
3642
+ '403': "object",
3643
+ '404': "object",
2438
3644
  }
2439
3645
 
2440
3646
  return self.api_client.call_api(
2441
3647
  '/api/v1/orgs/{owner}/agents/{entity}/token', 'PUT',
2442
- path_params,
2443
- query_params,
2444
- header_params,
2445
- body=body_params,
2446
- post_params=form_params,
2447
- files=local_var_files,
2448
- response_types_map=response_types_map,
2449
- auth_settings=auth_settings,
2450
- async_req=local_var_params.get('async_req'),
2451
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
2452
- _preload_content=local_var_params.get('_preload_content', True),
2453
- _request_timeout=local_var_params.get('_request_timeout'),
2454
- collection_formats=collection_formats,
2455
- _request_auth=local_var_params.get('_request_auth'))
3648
+ _path_params,
3649
+ _query_params,
3650
+ _header_params,
3651
+ body=_body_params,
3652
+ post_params=_form_params,
3653
+ files=_files,
3654
+ response_types_map=_response_types_map,
3655
+ auth_settings=_auth_settings,
3656
+ async_req=_params.get('async_req'),
3657
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
3658
+ _preload_content=_params.get('_preload_content', True),
3659
+ _request_timeout=_params.get('_request_timeout'),
3660
+ collection_formats=_collection_formats,
3661
+ _request_auth=_params.get('_request_auth'))