truefoundry 0.3.4rc1__py3-none-any.whl → 0.4.0__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.

Potentially problematic release.


This version of truefoundry might be problematic. Click here for more details.

Files changed (253) hide show
  1. truefoundry/__init__.py +2 -0
  2. truefoundry/autodeploy/agents/developer.py +1 -1
  3. truefoundry/autodeploy/agents/project_identifier.py +2 -2
  4. truefoundry/autodeploy/agents/tester.py +1 -1
  5. truefoundry/autodeploy/cli.py +1 -1
  6. truefoundry/autodeploy/tools/list_files.py +1 -1
  7. truefoundry/cli/__main__.py +3 -17
  8. truefoundry/common/__init__.py +0 -0
  9. truefoundry/{deploy/lib/auth → common}/auth_service_client.py +50 -40
  10. truefoundry/common/constants.py +12 -0
  11. truefoundry/{deploy/lib/auth → common}/credential_file_manager.py +7 -7
  12. truefoundry/{deploy/lib/auth → common}/credential_provider.py +10 -23
  13. truefoundry/common/entities.py +124 -0
  14. truefoundry/common/exceptions.py +12 -0
  15. truefoundry/common/request_utils.py +84 -0
  16. truefoundry/common/servicefoundry_client.py +91 -0
  17. truefoundry/common/utils.py +56 -0
  18. truefoundry/deploy/auto_gen/models.py +4 -6
  19. truefoundry/deploy/cli/cli.py +3 -1
  20. truefoundry/deploy/cli/commands/apply_command.py +1 -1
  21. truefoundry/deploy/cli/commands/build_command.py +1 -1
  22. truefoundry/deploy/cli/commands/deploy_command.py +1 -1
  23. truefoundry/deploy/cli/commands/login_command.py +2 -2
  24. truefoundry/deploy/cli/commands/patch_application_command.py +1 -1
  25. truefoundry/deploy/cli/commands/patch_command.py +1 -1
  26. truefoundry/deploy/cli/commands/terminate_comand.py +1 -1
  27. truefoundry/deploy/cli/util.py +1 -1
  28. truefoundry/deploy/function_service/remote/remote.py +1 -1
  29. truefoundry/deploy/lib/auth/servicefoundry_session.py +2 -2
  30. truefoundry/deploy/lib/clients/servicefoundry_client.py +120 -159
  31. truefoundry/deploy/lib/const.py +1 -35
  32. truefoundry/deploy/lib/exceptions.py +0 -16
  33. truefoundry/deploy/lib/model/entity.py +1 -112
  34. truefoundry/deploy/lib/session.py +14 -42
  35. truefoundry/deploy/lib/util.py +0 -37
  36. truefoundry/{python_deploy_codegen.py → deploy/python_deploy_codegen.py} +2 -2
  37. truefoundry/deploy/v2/lib/deploy.py +3 -3
  38. truefoundry/deploy/v2/lib/deployable_patched_models.py +1 -1
  39. truefoundry/langchain/truefoundry_chat.py +1 -1
  40. truefoundry/langchain/truefoundry_embeddings.py +1 -1
  41. truefoundry/langchain/truefoundry_llm.py +1 -1
  42. truefoundry/langchain/utils.py +0 -41
  43. truefoundry/ml/__init__.py +37 -6
  44. truefoundry/ml/artifact/__init__.py +0 -0
  45. truefoundry/ml/artifact/truefoundry_artifact_repo.py +1161 -0
  46. truefoundry/ml/autogen/__init__.py +0 -0
  47. truefoundry/ml/autogen/client/__init__.py +370 -0
  48. truefoundry/ml/autogen/client/api/__init__.py +16 -0
  49. truefoundry/ml/autogen/client/api/auth_api.py +184 -0
  50. truefoundry/ml/autogen/client/api/deprecated_api.py +605 -0
  51. truefoundry/ml/autogen/client/api/experiments_api.py +1944 -0
  52. truefoundry/ml/autogen/client/api/health_api.py +299 -0
  53. truefoundry/ml/autogen/client/api/metrics_api.py +371 -0
  54. truefoundry/ml/autogen/client/api/mlfoundry_artifacts_api.py +7213 -0
  55. truefoundry/ml/autogen/client/api/python_deployment_config_api.py +201 -0
  56. truefoundry/ml/autogen/client/api/run_artifacts_api.py +231 -0
  57. truefoundry/ml/autogen/client/api/runs_api.py +2919 -0
  58. truefoundry/ml/autogen/client/api_client.py +822 -0
  59. truefoundry/ml/autogen/client/api_response.py +30 -0
  60. truefoundry/ml/autogen/client/configuration.py +489 -0
  61. truefoundry/ml/autogen/client/exceptions.py +161 -0
  62. truefoundry/ml/autogen/client/models/__init__.py +341 -0
  63. truefoundry/ml/autogen/client/models/add_custom_metrics_to_model_version_request_dto.py +69 -0
  64. truefoundry/ml/autogen/client/models/add_features_to_model_version_request_dto.py +83 -0
  65. truefoundry/ml/autogen/client/models/agent.py +125 -0
  66. truefoundry/ml/autogen/client/models/agent_app.py +118 -0
  67. truefoundry/ml/autogen/client/models/agent_open_api_tool.py +143 -0
  68. truefoundry/ml/autogen/client/models/agent_open_api_tool_with_fqn.py +144 -0
  69. truefoundry/ml/autogen/client/models/agent_with_fqn.py +127 -0
  70. truefoundry/ml/autogen/client/models/artifact_dto.py +115 -0
  71. truefoundry/ml/autogen/client/models/artifact_response_dto.py +75 -0
  72. truefoundry/ml/autogen/client/models/artifact_type.py +39 -0
  73. truefoundry/ml/autogen/client/models/artifact_version_dto.py +141 -0
  74. truefoundry/ml/autogen/client/models/artifact_version_response_dto.py +77 -0
  75. truefoundry/ml/autogen/client/models/artifact_version_status.py +35 -0
  76. truefoundry/ml/autogen/client/models/assistant_message.py +89 -0
  77. truefoundry/ml/autogen/client/models/authorize_user_for_model_request_dto.py +69 -0
  78. truefoundry/ml/autogen/client/models/authorize_user_for_model_version_request_dto.py +69 -0
  79. truefoundry/ml/autogen/client/models/blob_storage_reference.py +93 -0
  80. truefoundry/ml/autogen/client/models/body_get_search_runs_get.py +72 -0
  81. truefoundry/ml/autogen/client/models/chat_prompt.py +156 -0
  82. truefoundry/ml/autogen/client/models/chat_prompt_messages_inner.py +171 -0
  83. truefoundry/ml/autogen/client/models/columns_dto.py +73 -0
  84. truefoundry/ml/autogen/client/models/content.py +153 -0
  85. truefoundry/ml/autogen/client/models/content1.py +153 -0
  86. truefoundry/ml/autogen/client/models/content2.py +174 -0
  87. truefoundry/ml/autogen/client/models/content2_any_of_inner.py +150 -0
  88. truefoundry/ml/autogen/client/models/create_artifact_request_dto.py +74 -0
  89. truefoundry/ml/autogen/client/models/create_artifact_response_dto.py +65 -0
  90. truefoundry/ml/autogen/client/models/create_artifact_version_request_dto.py +74 -0
  91. truefoundry/ml/autogen/client/models/create_artifact_version_response_dto.py +65 -0
  92. truefoundry/ml/autogen/client/models/create_dataset_request_dto.py +76 -0
  93. truefoundry/ml/autogen/client/models/create_experiment_request_dto.py +94 -0
  94. truefoundry/ml/autogen/client/models/create_experiment_response_dto.py +67 -0
  95. truefoundry/ml/autogen/client/models/create_model_version_request_dto.py +95 -0
  96. truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_request_dto.py +73 -0
  97. truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_response_dto.py +79 -0
  98. truefoundry/ml/autogen/client/models/create_multi_part_upload_request_dto.py +73 -0
  99. truefoundry/ml/autogen/client/models/create_python_deployment_config_request_dto.py +72 -0
  100. truefoundry/ml/autogen/client/models/create_python_deployment_config_response_dto.py +67 -0
  101. truefoundry/ml/autogen/client/models/create_run_request_dto.py +97 -0
  102. truefoundry/ml/autogen/client/models/create_run_response_dto.py +75 -0
  103. truefoundry/ml/autogen/client/models/dataset_dto.py +112 -0
  104. truefoundry/ml/autogen/client/models/dataset_response_dto.py +75 -0
  105. truefoundry/ml/autogen/client/models/delete_artifact_versions_request_dto.py +65 -0
  106. truefoundry/ml/autogen/client/models/delete_dataset_request_dto.py +74 -0
  107. truefoundry/ml/autogen/client/models/delete_model_version_request_dto.py +65 -0
  108. truefoundry/ml/autogen/client/models/delete_run_request.py +65 -0
  109. truefoundry/ml/autogen/client/models/delete_tag_request_dto.py +68 -0
  110. truefoundry/ml/autogen/client/models/experiment_dto.py +127 -0
  111. truefoundry/ml/autogen/client/models/experiment_id_request_dto.py +67 -0
  112. truefoundry/ml/autogen/client/models/experiment_response_dto.py +75 -0
  113. truefoundry/ml/autogen/client/models/experiment_tag_dto.py +69 -0
  114. truefoundry/ml/autogen/client/models/feature_dto.py +68 -0
  115. truefoundry/ml/autogen/client/models/feature_value_type.py +35 -0
  116. truefoundry/ml/autogen/client/models/file_info_dto.py +76 -0
  117. truefoundry/ml/autogen/client/models/finalize_artifact_version_request_dto.py +101 -0
  118. truefoundry/ml/autogen/client/models/get_experiment_response_dto.py +88 -0
  119. truefoundry/ml/autogen/client/models/get_latest_run_log_response_dto.py +75 -0
  120. truefoundry/ml/autogen/client/models/get_metric_history_response.py +79 -0
  121. truefoundry/ml/autogen/client/models/get_signed_url_for_dataset_write_request_dto.py +68 -0
  122. truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_request_dto.py +68 -0
  123. truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_response_dto.py +81 -0
  124. truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_request_dto.py +69 -0
  125. truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_response_dto.py +83 -0
  126. truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_request_dto.py +68 -0
  127. truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_response_dto.py +81 -0
  128. truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_write_response_dto.py +81 -0
  129. truefoundry/ml/autogen/client/models/get_tenant_id_response_dto.py +73 -0
  130. truefoundry/ml/autogen/client/models/http_validation_error.py +82 -0
  131. truefoundry/ml/autogen/client/models/image_content_part.py +87 -0
  132. truefoundry/ml/autogen/client/models/image_url.py +75 -0
  133. truefoundry/ml/autogen/client/models/internal_metadata.py +180 -0
  134. truefoundry/ml/autogen/client/models/latest_run_log_dto.py +78 -0
  135. truefoundry/ml/autogen/client/models/list_artifact_versions_request_dto.py +107 -0
  136. truefoundry/ml/autogen/client/models/list_artifact_versions_response_dto.py +87 -0
  137. truefoundry/ml/autogen/client/models/list_artifacts_request_dto.py +96 -0
  138. truefoundry/ml/autogen/client/models/list_artifacts_response_dto.py +86 -0
  139. truefoundry/ml/autogen/client/models/list_colums_response_dto.py +75 -0
  140. truefoundry/ml/autogen/client/models/list_datasets_request_dto.py +78 -0
  141. truefoundry/ml/autogen/client/models/list_datasets_response_dto.py +86 -0
  142. truefoundry/ml/autogen/client/models/list_experiments_response_dto.py +86 -0
  143. truefoundry/ml/autogen/client/models/list_files_for_artifact_version_request_dto.py +76 -0
  144. truefoundry/ml/autogen/client/models/list_files_for_artifact_versions_response_dto.py +82 -0
  145. truefoundry/ml/autogen/client/models/list_files_for_dataset_request_dto.py +76 -0
  146. truefoundry/ml/autogen/client/models/list_files_for_dataset_response_dto.py +82 -0
  147. truefoundry/ml/autogen/client/models/list_latest_run_logs_response_dto.py +82 -0
  148. truefoundry/ml/autogen/client/models/list_metric_history_request_dto.py +69 -0
  149. truefoundry/ml/autogen/client/models/list_metric_history_response_dto.py +84 -0
  150. truefoundry/ml/autogen/client/models/list_model_version_response_dto.py +87 -0
  151. truefoundry/ml/autogen/client/models/list_model_versions_request_dto.py +93 -0
  152. truefoundry/ml/autogen/client/models/list_models_request_dto.py +89 -0
  153. truefoundry/ml/autogen/client/models/list_models_response_dto.py +84 -0
  154. truefoundry/ml/autogen/client/models/list_run_artifacts_response_dto.py +84 -0
  155. truefoundry/ml/autogen/client/models/list_run_logs_response_dto.py +82 -0
  156. truefoundry/ml/autogen/client/models/list_seed_experiments_response_dto.py +81 -0
  157. truefoundry/ml/autogen/client/models/log_batch_request_dto.py +106 -0
  158. truefoundry/ml/autogen/client/models/log_metric_request_dto.py +80 -0
  159. truefoundry/ml/autogen/client/models/log_param_request_dto.py +76 -0
  160. truefoundry/ml/autogen/client/models/method.py +37 -0
  161. truefoundry/ml/autogen/client/models/metric_collection_dto.py +82 -0
  162. truefoundry/ml/autogen/client/models/metric_dto.py +76 -0
  163. truefoundry/ml/autogen/client/models/mime_type.py +37 -0
  164. truefoundry/ml/autogen/client/models/model_configuration.py +103 -0
  165. truefoundry/ml/autogen/client/models/model_dto.py +122 -0
  166. truefoundry/ml/autogen/client/models/model_response_dto.py +75 -0
  167. truefoundry/ml/autogen/client/models/model_schema_dto.py +85 -0
  168. truefoundry/ml/autogen/client/models/model_version_dto.py +170 -0
  169. truefoundry/ml/autogen/client/models/model_version_response_dto.py +75 -0
  170. truefoundry/ml/autogen/client/models/multi_part_upload_dto.py +107 -0
  171. truefoundry/ml/autogen/client/models/multi_part_upload_response_dto.py +79 -0
  172. truefoundry/ml/autogen/client/models/multi_part_upload_storage_provider.py +34 -0
  173. truefoundry/ml/autogen/client/models/notify_artifact_version_failure_dto.py +65 -0
  174. truefoundry/ml/autogen/client/models/openapi_spec.py +152 -0
  175. truefoundry/ml/autogen/client/models/param_dto.py +66 -0
  176. truefoundry/ml/autogen/client/models/parameters.py +84 -0
  177. truefoundry/ml/autogen/client/models/prediction_type.py +34 -0
  178. truefoundry/ml/autogen/client/models/resolve_agent_app_response_dto.py +75 -0
  179. truefoundry/ml/autogen/client/models/restore_run_request_dto.py +65 -0
  180. truefoundry/ml/autogen/client/models/run_data_dto.py +104 -0
  181. truefoundry/ml/autogen/client/models/run_dto.py +84 -0
  182. truefoundry/ml/autogen/client/models/run_info_dto.py +105 -0
  183. truefoundry/ml/autogen/client/models/run_log_dto.py +90 -0
  184. truefoundry/ml/autogen/client/models/run_log_input_dto.py +80 -0
  185. truefoundry/ml/autogen/client/models/run_response_dto.py +75 -0
  186. truefoundry/ml/autogen/client/models/run_tag_dto.py +66 -0
  187. truefoundry/ml/autogen/client/models/search_runs_request_dto.py +94 -0
  188. truefoundry/ml/autogen/client/models/search_runs_response_dto.py +84 -0
  189. truefoundry/ml/autogen/client/models/set_experiment_tag_request_dto.py +73 -0
  190. truefoundry/ml/autogen/client/models/set_tag_request_dto.py +76 -0
  191. truefoundry/ml/autogen/client/models/signed_url_dto.py +69 -0
  192. truefoundry/ml/autogen/client/models/stop.py +152 -0
  193. truefoundry/ml/autogen/client/models/store_run_logs_request_dto.py +83 -0
  194. truefoundry/ml/autogen/client/models/system_message.py +89 -0
  195. truefoundry/ml/autogen/client/models/text.py +153 -0
  196. truefoundry/ml/autogen/client/models/text_content_part.py +84 -0
  197. truefoundry/ml/autogen/client/models/update_artifact_version_request_dto.py +74 -0
  198. truefoundry/ml/autogen/client/models/update_dataset_request_dto.py +74 -0
  199. truefoundry/ml/autogen/client/models/update_experiment_request_dto.py +74 -0
  200. truefoundry/ml/autogen/client/models/update_model_version_request_dto.py +93 -0
  201. truefoundry/ml/autogen/client/models/update_run_request_dto.py +78 -0
  202. truefoundry/ml/autogen/client/models/update_run_response_dto.py +75 -0
  203. truefoundry/ml/autogen/client/models/url.py +153 -0
  204. truefoundry/ml/autogen/client/models/user_message.py +89 -0
  205. truefoundry/ml/autogen/client/models/validation_error.py +87 -0
  206. truefoundry/ml/autogen/client/models/validation_error_loc_inner.py +154 -0
  207. truefoundry/ml/autogen/client/rest.py +426 -0
  208. truefoundry/ml/autogen/client_README.md +320 -0
  209. truefoundry/ml/cli/__init__.py +0 -0
  210. truefoundry/ml/cli/cli.py +18 -0
  211. truefoundry/ml/cli/commands/__init__.py +3 -0
  212. truefoundry/ml/cli/commands/download.py +87 -0
  213. truefoundry/ml/clients/__init__.py +0 -0
  214. truefoundry/ml/clients/entities.py +8 -0
  215. truefoundry/ml/clients/servicefoundry_client.py +45 -0
  216. truefoundry/ml/clients/utils.py +122 -0
  217. truefoundry/ml/constants.py +84 -0
  218. truefoundry/ml/entities.py +62 -0
  219. truefoundry/ml/enums.py +70 -0
  220. truefoundry/ml/env_vars.py +9 -0
  221. truefoundry/ml/exceptions.py +8 -0
  222. truefoundry/ml/git_info.py +60 -0
  223. truefoundry/ml/internal_namespace.py +52 -0
  224. truefoundry/ml/log_types/__init__.py +4 -0
  225. truefoundry/ml/log_types/artifacts/artifact.py +431 -0
  226. truefoundry/ml/log_types/artifacts/constants.py +33 -0
  227. truefoundry/ml/log_types/artifacts/dataset.py +384 -0
  228. truefoundry/ml/log_types/artifacts/general_artifact.py +110 -0
  229. truefoundry/ml/log_types/artifacts/model.py +611 -0
  230. truefoundry/ml/log_types/artifacts/model_extras.py +48 -0
  231. truefoundry/ml/log_types/artifacts/utils.py +161 -0
  232. truefoundry/ml/log_types/image/__init__.py +3 -0
  233. truefoundry/ml/log_types/image/constants.py +8 -0
  234. truefoundry/ml/log_types/image/image.py +357 -0
  235. truefoundry/ml/log_types/image/image_normalizer.py +102 -0
  236. truefoundry/ml/log_types/image/types.py +68 -0
  237. truefoundry/ml/log_types/plot.py +281 -0
  238. truefoundry/ml/log_types/pydantic_base.py +10 -0
  239. truefoundry/ml/log_types/utils.py +12 -0
  240. truefoundry/ml/logger.py +17 -0
  241. truefoundry/ml/mlfoundry_api.py +1575 -0
  242. truefoundry/ml/mlfoundry_run.py +1203 -0
  243. truefoundry/ml/run_utils.py +93 -0
  244. truefoundry/ml/session.py +168 -0
  245. truefoundry/ml/validation_utils.py +346 -0
  246. truefoundry/pydantic_v1.py +8 -1
  247. truefoundry/workflow/__init__.py +16 -1
  248. {truefoundry-0.3.4rc1.dist-info → truefoundry-0.4.0.dist-info}/METADATA +21 -14
  249. truefoundry-0.4.0.dist-info/RECORD +344 -0
  250. truefoundry/deploy/lib/clients/utils.py +0 -41
  251. truefoundry-0.3.4rc1.dist-info/RECORD +0 -136
  252. {truefoundry-0.3.4rc1.dist-info → truefoundry-0.4.0.dist-info}/WHEEL +0 -0
  253. {truefoundry-0.3.4rc1.dist-info → truefoundry-0.4.0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,1944 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ FastAPI
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import re # noqa: F401
15
+ from typing import Optional
16
+
17
+ from truefoundry.ml.autogen.client.api_client import ApiClient
18
+ from truefoundry.ml.autogen.client.api_response import ApiResponse
19
+ from truefoundry.ml.autogen.client.exceptions import ( # noqa: F401
20
+ ApiTypeError,
21
+ ApiValueError,
22
+ )
23
+ from truefoundry.ml.autogen.client.models.create_experiment_request_dto import (
24
+ CreateExperimentRequestDto,
25
+ )
26
+ from truefoundry.ml.autogen.client.models.create_experiment_response_dto import (
27
+ CreateExperimentResponseDto,
28
+ )
29
+ from truefoundry.ml.autogen.client.models.experiment_id_request_dto import (
30
+ ExperimentIdRequestDto,
31
+ )
32
+ from truefoundry.ml.autogen.client.models.experiment_response_dto import (
33
+ ExperimentResponseDto,
34
+ )
35
+ from truefoundry.ml.autogen.client.models.get_experiment_response_dto import (
36
+ GetExperimentResponseDto,
37
+ )
38
+ from truefoundry.ml.autogen.client.models.list_colums_response_dto import (
39
+ ListColumsResponseDto,
40
+ )
41
+ from truefoundry.ml.autogen.client.models.list_experiments_response_dto import (
42
+ ListExperimentsResponseDto,
43
+ )
44
+ from truefoundry.ml.autogen.client.models.list_seed_experiments_response_dto import (
45
+ ListSeedExperimentsResponseDto,
46
+ )
47
+ from truefoundry.ml.autogen.client.models.set_experiment_tag_request_dto import (
48
+ SetExperimentTagRequestDto,
49
+ )
50
+ from truefoundry.ml.autogen.client.models.update_experiment_request_dto import (
51
+ UpdateExperimentRequestDto,
52
+ )
53
+ from truefoundry.pydantic_v1 import (
54
+ StrictInt,
55
+ StrictStr,
56
+ validate_arguments,
57
+ )
58
+
59
+
60
+ class ExperimentsApi:
61
+ """NOTE: This class is auto generated by OpenAPI Generator
62
+ Ref: https://openapi-generator.tech
63
+
64
+ Do not edit the class manually.
65
+ """
66
+
67
+ def __init__(self, api_client=None) -> None:
68
+ if api_client is None:
69
+ api_client = ApiClient.get_default()
70
+ self.api_client = api_client
71
+
72
+ @validate_arguments
73
+ def create_experiment_post(
74
+ self, create_experiment_request_dto: CreateExperimentRequestDto, **kwargs
75
+ ) -> CreateExperimentResponseDto: # noqa: E501
76
+ """Create Experiment # noqa: E501
77
+
78
+ Create Experiment # noqa: E501
79
+ This method makes a synchronous HTTP request by default. To make an
80
+ asynchronous HTTP request, please pass async_req=True
81
+
82
+ >>> thread = api.create_experiment_post(create_experiment_request_dto, async_req=True)
83
+ >>> result = thread.get()
84
+
85
+ :param create_experiment_request_dto: (required)
86
+ :type create_experiment_request_dto: CreateExperimentRequestDto
87
+ :param async_req: Whether to execute the request asynchronously.
88
+ :type async_req: bool, optional
89
+ :param _request_timeout: timeout setting for this request.
90
+ If one number provided, it will be total request
91
+ timeout. It can also be a pair (tuple) of
92
+ (connection, read) timeouts.
93
+ :return: Returns the result object.
94
+ If the method is called asynchronously,
95
+ returns the request thread.
96
+ :rtype: CreateExperimentResponseDto
97
+ """
98
+ kwargs["_return_http_data_only"] = True
99
+ if "_preload_content" in kwargs:
100
+ message = "Error! Please call the create_experiment_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
101
+ raise ValueError(message)
102
+ return self.create_experiment_post_with_http_info(
103
+ create_experiment_request_dto, **kwargs
104
+ ) # noqa: E501
105
+
106
+ @validate_arguments
107
+ def create_experiment_post_with_http_info(
108
+ self, create_experiment_request_dto: CreateExperimentRequestDto, **kwargs
109
+ ) -> ApiResponse: # noqa: E501
110
+ """Create Experiment # noqa: E501
111
+
112
+ Create Experiment # noqa: E501
113
+ This method makes a synchronous HTTP request by default. To make an
114
+ asynchronous HTTP request, please pass async_req=True
115
+
116
+ >>> thread = api.create_experiment_post_with_http_info(create_experiment_request_dto, async_req=True)
117
+ >>> result = thread.get()
118
+
119
+ :param create_experiment_request_dto: (required)
120
+ :type create_experiment_request_dto: CreateExperimentRequestDto
121
+ :param async_req: Whether to execute the request asynchronously.
122
+ :type async_req: bool, optional
123
+ :param _preload_content: if False, the ApiResponse.data will
124
+ be set to none and raw_data will store the
125
+ HTTP response body without reading/decoding.
126
+ Default is True.
127
+ :type _preload_content: bool, optional
128
+ :param _return_http_data_only: response data instead of ApiResponse
129
+ object with status code, headers, etc
130
+ :type _return_http_data_only: bool, optional
131
+ :param _request_timeout: timeout setting for this request. If one
132
+ number provided, it will be total request
133
+ timeout. It can also be a pair (tuple) of
134
+ (connection, read) timeouts.
135
+ :param _request_auth: set to override the auth_settings for an a single
136
+ request; this effectively ignores the authentication
137
+ in the spec for a single request.
138
+ :type _request_auth: dict, optional
139
+ :type _content_type: string, optional: force content-type for the request
140
+ :return: Returns the result object.
141
+ If the method is called asynchronously,
142
+ returns the request thread.
143
+ :rtype: tuple(CreateExperimentResponseDto, status_code(int), headers(HTTPHeaderDict))
144
+ """
145
+
146
+ _params = locals()
147
+
148
+ _all_params = ["create_experiment_request_dto"]
149
+ _all_params.extend(
150
+ [
151
+ "async_req",
152
+ "_return_http_data_only",
153
+ "_preload_content",
154
+ "_request_timeout",
155
+ "_request_auth",
156
+ "_content_type",
157
+ "_headers",
158
+ ]
159
+ )
160
+
161
+ # validate the arguments
162
+ for _key, _val in _params["kwargs"].items():
163
+ if _key not in _all_params:
164
+ raise ApiTypeError(
165
+ "Got an unexpected keyword argument '%s'"
166
+ " to method create_experiment_post" % _key
167
+ )
168
+ _params[_key] = _val
169
+ del _params["kwargs"]
170
+
171
+ _collection_formats = {}
172
+
173
+ # process the path parameters
174
+ _path_params = {}
175
+
176
+ # process the query parameters
177
+ _query_params = []
178
+ # process the header parameters
179
+ _header_params = dict(_params.get("_headers", {}))
180
+ # process the form parameters
181
+ _form_params = []
182
+ _files = {}
183
+ # process the body parameter
184
+ _body_params = None
185
+ if _params["create_experiment_request_dto"] is not None:
186
+ _body_params = _params["create_experiment_request_dto"]
187
+
188
+ # set the HTTP header `Accept`
189
+ _header_params["Accept"] = self.api_client.select_header_accept(
190
+ ["application/json"]
191
+ ) # noqa: E501
192
+
193
+ # set the HTTP header `Content-Type`
194
+ _content_types_list = _params.get(
195
+ "_content_type",
196
+ self.api_client.select_header_content_type(["application/json"]),
197
+ )
198
+ if _content_types_list:
199
+ _header_params["Content-Type"] = _content_types_list
200
+
201
+ # authentication setting
202
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
203
+
204
+ _response_types_map = {
205
+ "200": "CreateExperimentResponseDto",
206
+ "422": "HTTPValidationError",
207
+ }
208
+
209
+ return self.api_client.call_api(
210
+ "/api/2.0/mlflow/experiments/create",
211
+ "POST",
212
+ _path_params,
213
+ _query_params,
214
+ _header_params,
215
+ body=_body_params,
216
+ post_params=_form_params,
217
+ files=_files,
218
+ response_types_map=_response_types_map,
219
+ auth_settings=_auth_settings,
220
+ async_req=_params.get("async_req"),
221
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
222
+ _preload_content=_params.get("_preload_content", True),
223
+ _request_timeout=_params.get("_request_timeout"),
224
+ collection_formats=_collection_formats,
225
+ _request_auth=_params.get("_request_auth"),
226
+ )
227
+
228
+ @validate_arguments
229
+ def delete_experiment_post(
230
+ self, experiment_id_request_dto: ExperimentIdRequestDto, **kwargs
231
+ ) -> object: # noqa: E501
232
+ """Delete Experiment # noqa: E501
233
+
234
+ Delete Experiment # noqa: E501
235
+ This method makes a synchronous HTTP request by default. To make an
236
+ asynchronous HTTP request, please pass async_req=True
237
+
238
+ >>> thread = api.delete_experiment_post(experiment_id_request_dto, async_req=True)
239
+ >>> result = thread.get()
240
+
241
+ :param experiment_id_request_dto: (required)
242
+ :type experiment_id_request_dto: ExperimentIdRequestDto
243
+ :param async_req: Whether to execute the request asynchronously.
244
+ :type async_req: bool, optional
245
+ :param _request_timeout: timeout setting for this request.
246
+ If one number provided, it will be total request
247
+ timeout. It can also be a pair (tuple) of
248
+ (connection, read) timeouts.
249
+ :return: Returns the result object.
250
+ If the method is called asynchronously,
251
+ returns the request thread.
252
+ :rtype: object
253
+ """
254
+ kwargs["_return_http_data_only"] = True
255
+ if "_preload_content" in kwargs:
256
+ message = "Error! Please call the delete_experiment_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
257
+ raise ValueError(message)
258
+ return self.delete_experiment_post_with_http_info(
259
+ experiment_id_request_dto, **kwargs
260
+ ) # noqa: E501
261
+
262
+ @validate_arguments
263
+ def delete_experiment_post_with_http_info(
264
+ self, experiment_id_request_dto: ExperimentIdRequestDto, **kwargs
265
+ ) -> ApiResponse: # noqa: E501
266
+ """Delete Experiment # noqa: E501
267
+
268
+ Delete Experiment # noqa: E501
269
+ This method makes a synchronous HTTP request by default. To make an
270
+ asynchronous HTTP request, please pass async_req=True
271
+
272
+ >>> thread = api.delete_experiment_post_with_http_info(experiment_id_request_dto, async_req=True)
273
+ >>> result = thread.get()
274
+
275
+ :param experiment_id_request_dto: (required)
276
+ :type experiment_id_request_dto: ExperimentIdRequestDto
277
+ :param async_req: Whether to execute the request asynchronously.
278
+ :type async_req: bool, optional
279
+ :param _preload_content: if False, the ApiResponse.data will
280
+ be set to none and raw_data will store the
281
+ HTTP response body without reading/decoding.
282
+ Default is True.
283
+ :type _preload_content: bool, optional
284
+ :param _return_http_data_only: response data instead of ApiResponse
285
+ object with status code, headers, etc
286
+ :type _return_http_data_only: bool, optional
287
+ :param _request_timeout: timeout setting for this request. If one
288
+ number provided, it will be total request
289
+ timeout. It can also be a pair (tuple) of
290
+ (connection, read) timeouts.
291
+ :param _request_auth: set to override the auth_settings for an a single
292
+ request; this effectively ignores the authentication
293
+ in the spec for a single request.
294
+ :type _request_auth: dict, optional
295
+ :type _content_type: string, optional: force content-type for the request
296
+ :return: Returns the result object.
297
+ If the method is called asynchronously,
298
+ returns the request thread.
299
+ :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
300
+ """
301
+
302
+ _params = locals()
303
+
304
+ _all_params = ["experiment_id_request_dto"]
305
+ _all_params.extend(
306
+ [
307
+ "async_req",
308
+ "_return_http_data_only",
309
+ "_preload_content",
310
+ "_request_timeout",
311
+ "_request_auth",
312
+ "_content_type",
313
+ "_headers",
314
+ ]
315
+ )
316
+
317
+ # validate the arguments
318
+ for _key, _val in _params["kwargs"].items():
319
+ if _key not in _all_params:
320
+ raise ApiTypeError(
321
+ "Got an unexpected keyword argument '%s'"
322
+ " to method delete_experiment_post" % _key
323
+ )
324
+ _params[_key] = _val
325
+ del _params["kwargs"]
326
+
327
+ _collection_formats = {}
328
+
329
+ # process the path parameters
330
+ _path_params = {}
331
+
332
+ # process the query parameters
333
+ _query_params = []
334
+ # process the header parameters
335
+ _header_params = dict(_params.get("_headers", {}))
336
+ # process the form parameters
337
+ _form_params = []
338
+ _files = {}
339
+ # process the body parameter
340
+ _body_params = None
341
+ if _params["experiment_id_request_dto"] is not None:
342
+ _body_params = _params["experiment_id_request_dto"]
343
+
344
+ # set the HTTP header `Accept`
345
+ _header_params["Accept"] = self.api_client.select_header_accept(
346
+ ["application/json"]
347
+ ) # noqa: E501
348
+
349
+ # set the HTTP header `Content-Type`
350
+ _content_types_list = _params.get(
351
+ "_content_type",
352
+ self.api_client.select_header_content_type(["application/json"]),
353
+ )
354
+ if _content_types_list:
355
+ _header_params["Content-Type"] = _content_types_list
356
+
357
+ # authentication setting
358
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
359
+
360
+ _response_types_map = {
361
+ "200": "object",
362
+ "422": "HTTPValidationError",
363
+ }
364
+
365
+ return self.api_client.call_api(
366
+ "/api/2.0/mlflow/experiments/delete",
367
+ "POST",
368
+ _path_params,
369
+ _query_params,
370
+ _header_params,
371
+ body=_body_params,
372
+ post_params=_form_params,
373
+ files=_files,
374
+ response_types_map=_response_types_map,
375
+ auth_settings=_auth_settings,
376
+ async_req=_params.get("async_req"),
377
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
378
+ _preload_content=_params.get("_preload_content", True),
379
+ _request_timeout=_params.get("_request_timeout"),
380
+ collection_formats=_collection_formats,
381
+ _request_auth=_params.get("_request_auth"),
382
+ )
383
+
384
+ @validate_arguments
385
+ def get_experiment_by_name_get(
386
+ self, experiment_name: StrictStr, **kwargs
387
+ ) -> ExperimentResponseDto: # noqa: E501
388
+ """Get Experiment By Name # noqa: E501
389
+
390
+ Get Experiment By Name # noqa: E501
391
+ This method makes a synchronous HTTP request by default. To make an
392
+ asynchronous HTTP request, please pass async_req=True
393
+
394
+ >>> thread = api.get_experiment_by_name_get(experiment_name, async_req=True)
395
+ >>> result = thread.get()
396
+
397
+ :param experiment_name: (required)
398
+ :type experiment_name: str
399
+ :param async_req: Whether to execute the request asynchronously.
400
+ :type async_req: bool, optional
401
+ :param _request_timeout: timeout setting for this request.
402
+ If one number provided, it will be total request
403
+ timeout. It can also be a pair (tuple) of
404
+ (connection, read) timeouts.
405
+ :return: Returns the result object.
406
+ If the method is called asynchronously,
407
+ returns the request thread.
408
+ :rtype: ExperimentResponseDto
409
+ """
410
+ kwargs["_return_http_data_only"] = True
411
+ if "_preload_content" in kwargs:
412
+ message = "Error! Please call the get_experiment_by_name_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
413
+ raise ValueError(message)
414
+ return self.get_experiment_by_name_get_with_http_info(experiment_name, **kwargs) # noqa: E501
415
+
416
+ @validate_arguments
417
+ def get_experiment_by_name_get_with_http_info(
418
+ self, experiment_name: StrictStr, **kwargs
419
+ ) -> ApiResponse: # noqa: E501
420
+ """Get Experiment By Name # noqa: E501
421
+
422
+ Get Experiment By Name # noqa: E501
423
+ This method makes a synchronous HTTP request by default. To make an
424
+ asynchronous HTTP request, please pass async_req=True
425
+
426
+ >>> thread = api.get_experiment_by_name_get_with_http_info(experiment_name, async_req=True)
427
+ >>> result = thread.get()
428
+
429
+ :param experiment_name: (required)
430
+ :type experiment_name: str
431
+ :param async_req: Whether to execute the request asynchronously.
432
+ :type async_req: bool, optional
433
+ :param _preload_content: if False, the ApiResponse.data will
434
+ be set to none and raw_data will store the
435
+ HTTP response body without reading/decoding.
436
+ Default is True.
437
+ :type _preload_content: bool, optional
438
+ :param _return_http_data_only: response data instead of ApiResponse
439
+ object with status code, headers, etc
440
+ :type _return_http_data_only: bool, optional
441
+ :param _request_timeout: timeout setting for this request. If one
442
+ number provided, it will be total request
443
+ timeout. It can also be a pair (tuple) of
444
+ (connection, read) timeouts.
445
+ :param _request_auth: set to override the auth_settings for an a single
446
+ request; this effectively ignores the authentication
447
+ in the spec for a single request.
448
+ :type _request_auth: dict, optional
449
+ :type _content_type: string, optional: force content-type for the request
450
+ :return: Returns the result object.
451
+ If the method is called asynchronously,
452
+ returns the request thread.
453
+ :rtype: tuple(ExperimentResponseDto, status_code(int), headers(HTTPHeaderDict))
454
+ """
455
+
456
+ _params = locals()
457
+
458
+ _all_params = ["experiment_name"]
459
+ _all_params.extend(
460
+ [
461
+ "async_req",
462
+ "_return_http_data_only",
463
+ "_preload_content",
464
+ "_request_timeout",
465
+ "_request_auth",
466
+ "_content_type",
467
+ "_headers",
468
+ ]
469
+ )
470
+
471
+ # validate the arguments
472
+ for _key, _val in _params["kwargs"].items():
473
+ if _key not in _all_params:
474
+ raise ApiTypeError(
475
+ "Got an unexpected keyword argument '%s'"
476
+ " to method get_experiment_by_name_get" % _key
477
+ )
478
+ _params[_key] = _val
479
+ del _params["kwargs"]
480
+
481
+ _collection_formats = {}
482
+
483
+ # process the path parameters
484
+ _path_params = {}
485
+
486
+ # process the query parameters
487
+ _query_params = []
488
+ if _params.get("experiment_name") is not None: # noqa: E501
489
+ _query_params.append(("experiment_name", _params["experiment_name"]))
490
+
491
+ # process the header parameters
492
+ _header_params = dict(_params.get("_headers", {}))
493
+ # process the form parameters
494
+ _form_params = []
495
+ _files = {}
496
+ # process the body parameter
497
+ _body_params = None
498
+ # set the HTTP header `Accept`
499
+ _header_params["Accept"] = self.api_client.select_header_accept(
500
+ ["application/json"]
501
+ ) # noqa: E501
502
+
503
+ # authentication setting
504
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
505
+
506
+ _response_types_map = {
507
+ "200": "ExperimentResponseDto",
508
+ "422": "HTTPValidationError",
509
+ }
510
+
511
+ return self.api_client.call_api(
512
+ "/api/2.0/mlflow/experiments/get-by-name",
513
+ "GET",
514
+ _path_params,
515
+ _query_params,
516
+ _header_params,
517
+ body=_body_params,
518
+ post_params=_form_params,
519
+ files=_files,
520
+ response_types_map=_response_types_map,
521
+ auth_settings=_auth_settings,
522
+ async_req=_params.get("async_req"),
523
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
524
+ _preload_content=_params.get("_preload_content", True),
525
+ _request_timeout=_params.get("_request_timeout"),
526
+ collection_formats=_collection_formats,
527
+ _request_auth=_params.get("_request_auth"),
528
+ )
529
+
530
+ @validate_arguments
531
+ def get_experiment_get(
532
+ self, experiment_id: StrictStr, **kwargs
533
+ ) -> GetExperimentResponseDto: # noqa: E501
534
+ """Get Experiment # noqa: E501
535
+
536
+ Get Experiment # noqa: E501
537
+ This method makes a synchronous HTTP request by default. To make an
538
+ asynchronous HTTP request, please pass async_req=True
539
+
540
+ >>> thread = api.get_experiment_get(experiment_id, async_req=True)
541
+ >>> result = thread.get()
542
+
543
+ :param experiment_id: (required)
544
+ :type experiment_id: str
545
+ :param async_req: Whether to execute the request asynchronously.
546
+ :type async_req: bool, optional
547
+ :param _request_timeout: timeout setting for this request.
548
+ If one number provided, it will be total request
549
+ timeout. It can also be a pair (tuple) of
550
+ (connection, read) timeouts.
551
+ :return: Returns the result object.
552
+ If the method is called asynchronously,
553
+ returns the request thread.
554
+ :rtype: GetExperimentResponseDto
555
+ """
556
+ kwargs["_return_http_data_only"] = True
557
+ if "_preload_content" in kwargs:
558
+ message = "Error! Please call the get_experiment_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
559
+ raise ValueError(message)
560
+ return self.get_experiment_get_with_http_info(experiment_id, **kwargs) # noqa: E501
561
+
562
+ @validate_arguments
563
+ def get_experiment_get_with_http_info(
564
+ self, experiment_id: StrictStr, **kwargs
565
+ ) -> ApiResponse: # noqa: E501
566
+ """Get Experiment # noqa: E501
567
+
568
+ Get Experiment # noqa: E501
569
+ This method makes a synchronous HTTP request by default. To make an
570
+ asynchronous HTTP request, please pass async_req=True
571
+
572
+ >>> thread = api.get_experiment_get_with_http_info(experiment_id, async_req=True)
573
+ >>> result = thread.get()
574
+
575
+ :param experiment_id: (required)
576
+ :type experiment_id: str
577
+ :param async_req: Whether to execute the request asynchronously.
578
+ :type async_req: bool, optional
579
+ :param _preload_content: if False, the ApiResponse.data will
580
+ be set to none and raw_data will store the
581
+ HTTP response body without reading/decoding.
582
+ Default is True.
583
+ :type _preload_content: bool, optional
584
+ :param _return_http_data_only: response data instead of ApiResponse
585
+ object with status code, headers, etc
586
+ :type _return_http_data_only: bool, optional
587
+ :param _request_timeout: timeout setting for this request. If one
588
+ number provided, it will be total request
589
+ timeout. It can also be a pair (tuple) of
590
+ (connection, read) timeouts.
591
+ :param _request_auth: set to override the auth_settings for an a single
592
+ request; this effectively ignores the authentication
593
+ in the spec for a single request.
594
+ :type _request_auth: dict, optional
595
+ :type _content_type: string, optional: force content-type for the request
596
+ :return: Returns the result object.
597
+ If the method is called asynchronously,
598
+ returns the request thread.
599
+ :rtype: tuple(GetExperimentResponseDto, status_code(int), headers(HTTPHeaderDict))
600
+ """
601
+
602
+ _params = locals()
603
+
604
+ _all_params = ["experiment_id"]
605
+ _all_params.extend(
606
+ [
607
+ "async_req",
608
+ "_return_http_data_only",
609
+ "_preload_content",
610
+ "_request_timeout",
611
+ "_request_auth",
612
+ "_content_type",
613
+ "_headers",
614
+ ]
615
+ )
616
+
617
+ # validate the arguments
618
+ for _key, _val in _params["kwargs"].items():
619
+ if _key not in _all_params:
620
+ raise ApiTypeError(
621
+ "Got an unexpected keyword argument '%s'"
622
+ " to method get_experiment_get" % _key
623
+ )
624
+ _params[_key] = _val
625
+ del _params["kwargs"]
626
+
627
+ _collection_formats = {}
628
+
629
+ # process the path parameters
630
+ _path_params = {}
631
+
632
+ # process the query parameters
633
+ _query_params = []
634
+ if _params.get("experiment_id") is not None: # noqa: E501
635
+ _query_params.append(("experiment_id", _params["experiment_id"]))
636
+
637
+ # process the header parameters
638
+ _header_params = dict(_params.get("_headers", {}))
639
+ # process the form parameters
640
+ _form_params = []
641
+ _files = {}
642
+ # process the body parameter
643
+ _body_params = None
644
+ # set the HTTP header `Accept`
645
+ _header_params["Accept"] = self.api_client.select_header_accept(
646
+ ["application/json"]
647
+ ) # noqa: E501
648
+
649
+ # authentication setting
650
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
651
+
652
+ _response_types_map = {
653
+ "200": "GetExperimentResponseDto",
654
+ "422": "HTTPValidationError",
655
+ }
656
+
657
+ return self.api_client.call_api(
658
+ "/api/2.0/mlflow/experiments/get",
659
+ "GET",
660
+ _path_params,
661
+ _query_params,
662
+ _header_params,
663
+ body=_body_params,
664
+ post_params=_form_params,
665
+ files=_files,
666
+ response_types_map=_response_types_map,
667
+ auth_settings=_auth_settings,
668
+ async_req=_params.get("async_req"),
669
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
670
+ _preload_content=_params.get("_preload_content", True),
671
+ _request_timeout=_params.get("_request_timeout"),
672
+ collection_formats=_collection_formats,
673
+ _request_auth=_params.get("_request_auth"),
674
+ )
675
+
676
+ @validate_arguments
677
+ def hard_delete_experiment_post(
678
+ self, experiment_id_request_dto: ExperimentIdRequestDto, **kwargs
679
+ ) -> object: # noqa: E501
680
+ """Hard Delete Experiment # noqa: E501
681
+
682
+ Hard Delete Experiment # noqa: E501
683
+ This method makes a synchronous HTTP request by default. To make an
684
+ asynchronous HTTP request, please pass async_req=True
685
+
686
+ >>> thread = api.hard_delete_experiment_post(experiment_id_request_dto, async_req=True)
687
+ >>> result = thread.get()
688
+
689
+ :param experiment_id_request_dto: (required)
690
+ :type experiment_id_request_dto: ExperimentIdRequestDto
691
+ :param async_req: Whether to execute the request asynchronously.
692
+ :type async_req: bool, optional
693
+ :param _request_timeout: timeout setting for this request.
694
+ If one number provided, it will be total request
695
+ timeout. It can also be a pair (tuple) of
696
+ (connection, read) timeouts.
697
+ :return: Returns the result object.
698
+ If the method is called asynchronously,
699
+ returns the request thread.
700
+ :rtype: object
701
+ """
702
+ kwargs["_return_http_data_only"] = True
703
+ if "_preload_content" in kwargs:
704
+ message = "Error! Please call the hard_delete_experiment_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
705
+ raise ValueError(message)
706
+ return self.hard_delete_experiment_post_with_http_info(
707
+ experiment_id_request_dto, **kwargs
708
+ ) # noqa: E501
709
+
710
+ @validate_arguments
711
+ def hard_delete_experiment_post_with_http_info(
712
+ self, experiment_id_request_dto: ExperimentIdRequestDto, **kwargs
713
+ ) -> ApiResponse: # noqa: E501
714
+ """Hard Delete Experiment # noqa: E501
715
+
716
+ Hard Delete Experiment # noqa: E501
717
+ This method makes a synchronous HTTP request by default. To make an
718
+ asynchronous HTTP request, please pass async_req=True
719
+
720
+ >>> thread = api.hard_delete_experiment_post_with_http_info(experiment_id_request_dto, async_req=True)
721
+ >>> result = thread.get()
722
+
723
+ :param experiment_id_request_dto: (required)
724
+ :type experiment_id_request_dto: ExperimentIdRequestDto
725
+ :param async_req: Whether to execute the request asynchronously.
726
+ :type async_req: bool, optional
727
+ :param _preload_content: if False, the ApiResponse.data will
728
+ be set to none and raw_data will store the
729
+ HTTP response body without reading/decoding.
730
+ Default is True.
731
+ :type _preload_content: bool, optional
732
+ :param _return_http_data_only: response data instead of ApiResponse
733
+ object with status code, headers, etc
734
+ :type _return_http_data_only: bool, optional
735
+ :param _request_timeout: timeout setting for this request. If one
736
+ number provided, it will be total request
737
+ timeout. It can also be a pair (tuple) of
738
+ (connection, read) timeouts.
739
+ :param _request_auth: set to override the auth_settings for an a single
740
+ request; this effectively ignores the authentication
741
+ in the spec for a single request.
742
+ :type _request_auth: dict, optional
743
+ :type _content_type: string, optional: force content-type for the request
744
+ :return: Returns the result object.
745
+ If the method is called asynchronously,
746
+ returns the request thread.
747
+ :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
748
+ """
749
+
750
+ _params = locals()
751
+
752
+ _all_params = ["experiment_id_request_dto"]
753
+ _all_params.extend(
754
+ [
755
+ "async_req",
756
+ "_return_http_data_only",
757
+ "_preload_content",
758
+ "_request_timeout",
759
+ "_request_auth",
760
+ "_content_type",
761
+ "_headers",
762
+ ]
763
+ )
764
+
765
+ # validate the arguments
766
+ for _key, _val in _params["kwargs"].items():
767
+ if _key not in _all_params:
768
+ raise ApiTypeError(
769
+ "Got an unexpected keyword argument '%s'"
770
+ " to method hard_delete_experiment_post" % _key
771
+ )
772
+ _params[_key] = _val
773
+ del _params["kwargs"]
774
+
775
+ _collection_formats = {}
776
+
777
+ # process the path parameters
778
+ _path_params = {}
779
+
780
+ # process the query parameters
781
+ _query_params = []
782
+ # process the header parameters
783
+ _header_params = dict(_params.get("_headers", {}))
784
+ # process the form parameters
785
+ _form_params = []
786
+ _files = {}
787
+ # process the body parameter
788
+ _body_params = None
789
+ if _params["experiment_id_request_dto"] is not None:
790
+ _body_params = _params["experiment_id_request_dto"]
791
+
792
+ # set the HTTP header `Accept`
793
+ _header_params["Accept"] = self.api_client.select_header_accept(
794
+ ["application/json"]
795
+ ) # noqa: E501
796
+
797
+ # set the HTTP header `Content-Type`
798
+ _content_types_list = _params.get(
799
+ "_content_type",
800
+ self.api_client.select_header_content_type(["application/json"]),
801
+ )
802
+ if _content_types_list:
803
+ _header_params["Content-Type"] = _content_types_list
804
+
805
+ # authentication setting
806
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
807
+
808
+ _response_types_map = {
809
+ "200": "object",
810
+ "422": "HTTPValidationError",
811
+ }
812
+
813
+ return self.api_client.call_api(
814
+ "/api/2.0/mlflow/experiments/hard-delete",
815
+ "POST",
816
+ _path_params,
817
+ _query_params,
818
+ _header_params,
819
+ body=_body_params,
820
+ post_params=_form_params,
821
+ files=_files,
822
+ response_types_map=_response_types_map,
823
+ auth_settings=_auth_settings,
824
+ async_req=_params.get("async_req"),
825
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
826
+ _preload_content=_params.get("_preload_content", True),
827
+ _request_timeout=_params.get("_request_timeout"),
828
+ collection_formats=_collection_formats,
829
+ _request_auth=_params.get("_request_auth"),
830
+ )
831
+
832
+ @validate_arguments
833
+ def list_experiment_columns_get(
834
+ self, experiment_id: StrictStr, **kwargs
835
+ ) -> ListColumsResponseDto: # noqa: E501
836
+ """List Experiment Columns # noqa: E501
837
+
838
+ List all the columns required for an experiment. # noqa: E501
839
+ This method makes a synchronous HTTP request by default. To make an
840
+ asynchronous HTTP request, please pass async_req=True
841
+
842
+ >>> thread = api.list_experiment_columns_get(experiment_id, async_req=True)
843
+ >>> result = thread.get()
844
+
845
+ :param experiment_id: (required)
846
+ :type experiment_id: str
847
+ :param async_req: Whether to execute the request asynchronously.
848
+ :type async_req: bool, optional
849
+ :param _request_timeout: timeout setting for this request.
850
+ If one number provided, it will be total request
851
+ timeout. It can also be a pair (tuple) of
852
+ (connection, read) timeouts.
853
+ :return: Returns the result object.
854
+ If the method is called asynchronously,
855
+ returns the request thread.
856
+ :rtype: ListColumsResponseDto
857
+ """
858
+ kwargs["_return_http_data_only"] = True
859
+ if "_preload_content" in kwargs:
860
+ message = "Error! Please call the list_experiment_columns_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
861
+ raise ValueError(message)
862
+ return self.list_experiment_columns_get_with_http_info(experiment_id, **kwargs) # noqa: E501
863
+
864
+ @validate_arguments
865
+ def list_experiment_columns_get_with_http_info(
866
+ self, experiment_id: StrictStr, **kwargs
867
+ ) -> ApiResponse: # noqa: E501
868
+ """List Experiment Columns # noqa: E501
869
+
870
+ List all the columns required for an experiment. # noqa: E501
871
+ This method makes a synchronous HTTP request by default. To make an
872
+ asynchronous HTTP request, please pass async_req=True
873
+
874
+ >>> thread = api.list_experiment_columns_get_with_http_info(experiment_id, async_req=True)
875
+ >>> result = thread.get()
876
+
877
+ :param experiment_id: (required)
878
+ :type experiment_id: str
879
+ :param async_req: Whether to execute the request asynchronously.
880
+ :type async_req: bool, optional
881
+ :param _preload_content: if False, the ApiResponse.data will
882
+ be set to none and raw_data will store the
883
+ HTTP response body without reading/decoding.
884
+ Default is True.
885
+ :type _preload_content: bool, optional
886
+ :param _return_http_data_only: response data instead of ApiResponse
887
+ object with status code, headers, etc
888
+ :type _return_http_data_only: bool, optional
889
+ :param _request_timeout: timeout setting for this request. If one
890
+ number provided, it will be total request
891
+ timeout. It can also be a pair (tuple) of
892
+ (connection, read) timeouts.
893
+ :param _request_auth: set to override the auth_settings for an a single
894
+ request; this effectively ignores the authentication
895
+ in the spec for a single request.
896
+ :type _request_auth: dict, optional
897
+ :type _content_type: string, optional: force content-type for the request
898
+ :return: Returns the result object.
899
+ If the method is called asynchronously,
900
+ returns the request thread.
901
+ :rtype: tuple(ListColumsResponseDto, status_code(int), headers(HTTPHeaderDict))
902
+ """
903
+
904
+ _params = locals()
905
+
906
+ _all_params = ["experiment_id"]
907
+ _all_params.extend(
908
+ [
909
+ "async_req",
910
+ "_return_http_data_only",
911
+ "_preload_content",
912
+ "_request_timeout",
913
+ "_request_auth",
914
+ "_content_type",
915
+ "_headers",
916
+ ]
917
+ )
918
+
919
+ # validate the arguments
920
+ for _key, _val in _params["kwargs"].items():
921
+ if _key not in _all_params:
922
+ raise ApiTypeError(
923
+ "Got an unexpected keyword argument '%s'"
924
+ " to method list_experiment_columns_get" % _key
925
+ )
926
+ _params[_key] = _val
927
+ del _params["kwargs"]
928
+
929
+ _collection_formats = {}
930
+
931
+ # process the path parameters
932
+ _path_params = {}
933
+
934
+ # process the query parameters
935
+ _query_params = []
936
+ if _params.get("experiment_id") is not None: # noqa: E501
937
+ _query_params.append(("experiment_id", _params["experiment_id"]))
938
+
939
+ # process the header parameters
940
+ _header_params = dict(_params.get("_headers", {}))
941
+ # process the form parameters
942
+ _form_params = []
943
+ _files = {}
944
+ # process the body parameter
945
+ _body_params = None
946
+ # set the HTTP header `Accept`
947
+ _header_params["Accept"] = self.api_client.select_header_accept(
948
+ ["application/json"]
949
+ ) # noqa: E501
950
+
951
+ # authentication setting
952
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
953
+
954
+ _response_types_map = {
955
+ "200": "ListColumsResponseDto",
956
+ "422": "HTTPValidationError",
957
+ }
958
+
959
+ return self.api_client.call_api(
960
+ "/api/2.0/mlflow/experiments/columns",
961
+ "GET",
962
+ _path_params,
963
+ _query_params,
964
+ _header_params,
965
+ body=_body_params,
966
+ post_params=_form_params,
967
+ files=_files,
968
+ response_types_map=_response_types_map,
969
+ auth_settings=_auth_settings,
970
+ async_req=_params.get("async_req"),
971
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
972
+ _preload_content=_params.get("_preload_content", True),
973
+ _request_timeout=_params.get("_request_timeout"),
974
+ collection_formats=_collection_formats,
975
+ _request_auth=_params.get("_request_auth"),
976
+ )
977
+
978
+ @validate_arguments
979
+ def list_experiments_get(
980
+ self,
981
+ view_type: Optional[StrictStr] = None,
982
+ max_results: Optional[StrictInt] = None,
983
+ page_token: Optional[StrictStr] = None,
984
+ privacy_type: Optional[StrictStr] = None,
985
+ offset: Optional[StrictInt] = None,
986
+ filter_name: Optional[StrictStr] = None,
987
+ **kwargs,
988
+ ) -> ListExperimentsResponseDto: # noqa: E501
989
+ """List Experiments # noqa: E501
990
+
991
+ List Experiments # noqa: E501
992
+ This method makes a synchronous HTTP request by default. To make an
993
+ asynchronous HTTP request, please pass async_req=True
994
+
995
+ >>> thread = api.list_experiments_get(view_type, max_results, page_token, privacy_type, offset, filter_name, async_req=True)
996
+ >>> result = thread.get()
997
+
998
+ :param view_type:
999
+ :type view_type: str
1000
+ :param max_results:
1001
+ :type max_results: int
1002
+ :param page_token:
1003
+ :type page_token: str
1004
+ :param privacy_type:
1005
+ :type privacy_type: str
1006
+ :param offset:
1007
+ :type offset: int
1008
+ :param filter_name:
1009
+ :type filter_name: str
1010
+ :param async_req: Whether to execute the request asynchronously.
1011
+ :type async_req: bool, optional
1012
+ :param _request_timeout: timeout setting for this request.
1013
+ If one number provided, it will be total request
1014
+ timeout. It can also be a pair (tuple) of
1015
+ (connection, read) timeouts.
1016
+ :return: Returns the result object.
1017
+ If the method is called asynchronously,
1018
+ returns the request thread.
1019
+ :rtype: ListExperimentsResponseDto
1020
+ """
1021
+ kwargs["_return_http_data_only"] = True
1022
+ if "_preload_content" in kwargs:
1023
+ message = "Error! Please call the list_experiments_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1024
+ raise ValueError(message)
1025
+ return self.list_experiments_get_with_http_info(
1026
+ view_type,
1027
+ max_results,
1028
+ page_token,
1029
+ privacy_type,
1030
+ offset,
1031
+ filter_name,
1032
+ **kwargs,
1033
+ ) # noqa: E501
1034
+
1035
+ @validate_arguments
1036
+ def list_experiments_get_with_http_info(
1037
+ self,
1038
+ view_type: Optional[StrictStr] = None,
1039
+ max_results: Optional[StrictInt] = None,
1040
+ page_token: Optional[StrictStr] = None,
1041
+ privacy_type: Optional[StrictStr] = None,
1042
+ offset: Optional[StrictInt] = None,
1043
+ filter_name: Optional[StrictStr] = None,
1044
+ **kwargs,
1045
+ ) -> ApiResponse: # noqa: E501
1046
+ """List Experiments # noqa: E501
1047
+
1048
+ List Experiments # noqa: E501
1049
+ This method makes a synchronous HTTP request by default. To make an
1050
+ asynchronous HTTP request, please pass async_req=True
1051
+
1052
+ >>> thread = api.list_experiments_get_with_http_info(view_type, max_results, page_token, privacy_type, offset, filter_name, async_req=True)
1053
+ >>> result = thread.get()
1054
+
1055
+ :param view_type:
1056
+ :type view_type: str
1057
+ :param max_results:
1058
+ :type max_results: int
1059
+ :param page_token:
1060
+ :type page_token: str
1061
+ :param privacy_type:
1062
+ :type privacy_type: str
1063
+ :param offset:
1064
+ :type offset: int
1065
+ :param filter_name:
1066
+ :type filter_name: str
1067
+ :param async_req: Whether to execute the request asynchronously.
1068
+ :type async_req: bool, optional
1069
+ :param _preload_content: if False, the ApiResponse.data will
1070
+ be set to none and raw_data will store the
1071
+ HTTP response body without reading/decoding.
1072
+ Default is True.
1073
+ :type _preload_content: bool, optional
1074
+ :param _return_http_data_only: response data instead of ApiResponse
1075
+ object with status code, headers, etc
1076
+ :type _return_http_data_only: bool, optional
1077
+ :param _request_timeout: timeout setting for this request. If one
1078
+ number provided, it will be total request
1079
+ timeout. It can also be a pair (tuple) of
1080
+ (connection, read) timeouts.
1081
+ :param _request_auth: set to override the auth_settings for an a single
1082
+ request; this effectively ignores the authentication
1083
+ in the spec for a single request.
1084
+ :type _request_auth: dict, optional
1085
+ :type _content_type: string, optional: force content-type for the request
1086
+ :return: Returns the result object.
1087
+ If the method is called asynchronously,
1088
+ returns the request thread.
1089
+ :rtype: tuple(ListExperimentsResponseDto, status_code(int), headers(HTTPHeaderDict))
1090
+ """
1091
+
1092
+ _params = locals()
1093
+
1094
+ _all_params = [
1095
+ "view_type",
1096
+ "max_results",
1097
+ "page_token",
1098
+ "privacy_type",
1099
+ "offset",
1100
+ "filter_name",
1101
+ ]
1102
+ _all_params.extend(
1103
+ [
1104
+ "async_req",
1105
+ "_return_http_data_only",
1106
+ "_preload_content",
1107
+ "_request_timeout",
1108
+ "_request_auth",
1109
+ "_content_type",
1110
+ "_headers",
1111
+ ]
1112
+ )
1113
+
1114
+ # validate the arguments
1115
+ for _key, _val in _params["kwargs"].items():
1116
+ if _key not in _all_params:
1117
+ raise ApiTypeError(
1118
+ "Got an unexpected keyword argument '%s'"
1119
+ " to method list_experiments_get" % _key
1120
+ )
1121
+ _params[_key] = _val
1122
+ del _params["kwargs"]
1123
+
1124
+ _collection_formats = {}
1125
+
1126
+ # process the path parameters
1127
+ _path_params = {}
1128
+
1129
+ # process the query parameters
1130
+ _query_params = []
1131
+ if _params.get("view_type") is not None: # noqa: E501
1132
+ _query_params.append(("view_type", _params["view_type"]))
1133
+
1134
+ if _params.get("max_results") is not None: # noqa: E501
1135
+ _query_params.append(("max_results", _params["max_results"]))
1136
+
1137
+ if _params.get("page_token") is not None: # noqa: E501
1138
+ _query_params.append(("page_token", _params["page_token"]))
1139
+
1140
+ if _params.get("privacy_type") is not None: # noqa: E501
1141
+ _query_params.append(("privacy_type", _params["privacy_type"]))
1142
+
1143
+ if _params.get("offset") is not None: # noqa: E501
1144
+ _query_params.append(("offset", _params["offset"]))
1145
+
1146
+ if _params.get("filter_name") is not None: # noqa: E501
1147
+ _query_params.append(("filter_name", _params["filter_name"]))
1148
+
1149
+ # process the header parameters
1150
+ _header_params = dict(_params.get("_headers", {}))
1151
+ # process the form parameters
1152
+ _form_params = []
1153
+ _files = {}
1154
+ # process the body parameter
1155
+ _body_params = None
1156
+ # set the HTTP header `Accept`
1157
+ _header_params["Accept"] = self.api_client.select_header_accept(
1158
+ ["application/json"]
1159
+ ) # noqa: E501
1160
+
1161
+ # authentication setting
1162
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
1163
+
1164
+ _response_types_map = {
1165
+ "200": "ListExperimentsResponseDto",
1166
+ "422": "HTTPValidationError",
1167
+ }
1168
+
1169
+ return self.api_client.call_api(
1170
+ "/api/2.0/mlflow/experiments/list",
1171
+ "GET",
1172
+ _path_params,
1173
+ _query_params,
1174
+ _header_params,
1175
+ body=_body_params,
1176
+ post_params=_form_params,
1177
+ files=_files,
1178
+ response_types_map=_response_types_map,
1179
+ auth_settings=_auth_settings,
1180
+ async_req=_params.get("async_req"),
1181
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
1182
+ _preload_content=_params.get("_preload_content", True),
1183
+ _request_timeout=_params.get("_request_timeout"),
1184
+ collection_formats=_collection_formats,
1185
+ _request_auth=_params.get("_request_auth"),
1186
+ )
1187
+
1188
+ @validate_arguments
1189
+ def put_privacy_type_put(
1190
+ self, set_experiment_tag_request_dto: SetExperimentTagRequestDto, **kwargs
1191
+ ) -> object: # noqa: E501
1192
+ """Put Privacy Type # noqa: E501
1193
+
1194
+ Set the privacy type of an expermient to Private or Public(publically readable) # noqa: E501
1195
+ This method makes a synchronous HTTP request by default. To make an
1196
+ asynchronous HTTP request, please pass async_req=True
1197
+
1198
+ >>> thread = api.put_privacy_type_put(set_experiment_tag_request_dto, async_req=True)
1199
+ >>> result = thread.get()
1200
+
1201
+ :param set_experiment_tag_request_dto: (required)
1202
+ :type set_experiment_tag_request_dto: SetExperimentTagRequestDto
1203
+ :param async_req: Whether to execute the request asynchronously.
1204
+ :type async_req: bool, optional
1205
+ :param _request_timeout: timeout setting for this request.
1206
+ If one number provided, it will be total request
1207
+ timeout. It can also be a pair (tuple) of
1208
+ (connection, read) timeouts.
1209
+ :return: Returns the result object.
1210
+ If the method is called asynchronously,
1211
+ returns the request thread.
1212
+ :rtype: object
1213
+ """
1214
+ kwargs["_return_http_data_only"] = True
1215
+ if "_preload_content" in kwargs:
1216
+ message = "Error! Please call the put_privacy_type_put_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1217
+ raise ValueError(message)
1218
+ return self.put_privacy_type_put_with_http_info(
1219
+ set_experiment_tag_request_dto, **kwargs
1220
+ ) # noqa: E501
1221
+
1222
+ @validate_arguments
1223
+ def put_privacy_type_put_with_http_info(
1224
+ self, set_experiment_tag_request_dto: SetExperimentTagRequestDto, **kwargs
1225
+ ) -> ApiResponse: # noqa: E501
1226
+ """Put Privacy Type # noqa: E501
1227
+
1228
+ Set the privacy type of an expermient to Private or Public(publically readable) # noqa: E501
1229
+ This method makes a synchronous HTTP request by default. To make an
1230
+ asynchronous HTTP request, please pass async_req=True
1231
+
1232
+ >>> thread = api.put_privacy_type_put_with_http_info(set_experiment_tag_request_dto, async_req=True)
1233
+ >>> result = thread.get()
1234
+
1235
+ :param set_experiment_tag_request_dto: (required)
1236
+ :type set_experiment_tag_request_dto: SetExperimentTagRequestDto
1237
+ :param async_req: Whether to execute the request asynchronously.
1238
+ :type async_req: bool, optional
1239
+ :param _preload_content: if False, the ApiResponse.data will
1240
+ be set to none and raw_data will store the
1241
+ HTTP response body without reading/decoding.
1242
+ Default is True.
1243
+ :type _preload_content: bool, optional
1244
+ :param _return_http_data_only: response data instead of ApiResponse
1245
+ object with status code, headers, etc
1246
+ :type _return_http_data_only: bool, optional
1247
+ :param _request_timeout: timeout setting for this request. If one
1248
+ number provided, it will be total request
1249
+ timeout. It can also be a pair (tuple) of
1250
+ (connection, read) timeouts.
1251
+ :param _request_auth: set to override the auth_settings for an a single
1252
+ request; this effectively ignores the authentication
1253
+ in the spec for a single request.
1254
+ :type _request_auth: dict, optional
1255
+ :type _content_type: string, optional: force content-type for the request
1256
+ :return: Returns the result object.
1257
+ If the method is called asynchronously,
1258
+ returns the request thread.
1259
+ :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
1260
+ """
1261
+
1262
+ _params = locals()
1263
+
1264
+ _all_params = ["set_experiment_tag_request_dto"]
1265
+ _all_params.extend(
1266
+ [
1267
+ "async_req",
1268
+ "_return_http_data_only",
1269
+ "_preload_content",
1270
+ "_request_timeout",
1271
+ "_request_auth",
1272
+ "_content_type",
1273
+ "_headers",
1274
+ ]
1275
+ )
1276
+
1277
+ # validate the arguments
1278
+ for _key, _val in _params["kwargs"].items():
1279
+ if _key not in _all_params:
1280
+ raise ApiTypeError(
1281
+ "Got an unexpected keyword argument '%s'"
1282
+ " to method put_privacy_type_put" % _key
1283
+ )
1284
+ _params[_key] = _val
1285
+ del _params["kwargs"]
1286
+
1287
+ _collection_formats = {}
1288
+
1289
+ # process the path parameters
1290
+ _path_params = {}
1291
+
1292
+ # process the query parameters
1293
+ _query_params = []
1294
+ # process the header parameters
1295
+ _header_params = dict(_params.get("_headers", {}))
1296
+ # process the form parameters
1297
+ _form_params = []
1298
+ _files = {}
1299
+ # process the body parameter
1300
+ _body_params = None
1301
+ if _params["set_experiment_tag_request_dto"] is not None:
1302
+ _body_params = _params["set_experiment_tag_request_dto"]
1303
+
1304
+ # set the HTTP header `Accept`
1305
+ _header_params["Accept"] = self.api_client.select_header_accept(
1306
+ ["application/json"]
1307
+ ) # noqa: E501
1308
+
1309
+ # set the HTTP header `Content-Type`
1310
+ _content_types_list = _params.get(
1311
+ "_content_type",
1312
+ self.api_client.select_header_content_type(["application/json"]),
1313
+ )
1314
+ if _content_types_list:
1315
+ _header_params["Content-Type"] = _content_types_list
1316
+
1317
+ # authentication setting
1318
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
1319
+
1320
+ _response_types_map = {
1321
+ "200": "object",
1322
+ "422": "HTTPValidationError",
1323
+ }
1324
+
1325
+ return self.api_client.call_api(
1326
+ "/api/2.0/mlflow/experiments/privacy-type",
1327
+ "PUT",
1328
+ _path_params,
1329
+ _query_params,
1330
+ _header_params,
1331
+ body=_body_params,
1332
+ post_params=_form_params,
1333
+ files=_files,
1334
+ response_types_map=_response_types_map,
1335
+ auth_settings=_auth_settings,
1336
+ async_req=_params.get("async_req"),
1337
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
1338
+ _preload_content=_params.get("_preload_content", True),
1339
+ _request_timeout=_params.get("_request_timeout"),
1340
+ collection_formats=_collection_formats,
1341
+ _request_auth=_params.get("_request_auth"),
1342
+ )
1343
+
1344
+ @validate_arguments
1345
+ def restore_experiment_post(
1346
+ self, experiment_id_request_dto: ExperimentIdRequestDto, **kwargs
1347
+ ) -> object: # noqa: E501
1348
+ """Restore Experiment # noqa: E501
1349
+
1350
+ Restore Experiment # noqa: E501
1351
+ This method makes a synchronous HTTP request by default. To make an
1352
+ asynchronous HTTP request, please pass async_req=True
1353
+
1354
+ >>> thread = api.restore_experiment_post(experiment_id_request_dto, async_req=True)
1355
+ >>> result = thread.get()
1356
+
1357
+ :param experiment_id_request_dto: (required)
1358
+ :type experiment_id_request_dto: ExperimentIdRequestDto
1359
+ :param async_req: Whether to execute the request asynchronously.
1360
+ :type async_req: bool, optional
1361
+ :param _request_timeout: timeout setting for this request.
1362
+ If one number provided, it will be total request
1363
+ timeout. It can also be a pair (tuple) of
1364
+ (connection, read) timeouts.
1365
+ :return: Returns the result object.
1366
+ If the method is called asynchronously,
1367
+ returns the request thread.
1368
+ :rtype: object
1369
+ """
1370
+ kwargs["_return_http_data_only"] = True
1371
+ if "_preload_content" in kwargs:
1372
+ message = "Error! Please call the restore_experiment_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1373
+ raise ValueError(message)
1374
+ return self.restore_experiment_post_with_http_info(
1375
+ experiment_id_request_dto, **kwargs
1376
+ ) # noqa: E501
1377
+
1378
+ @validate_arguments
1379
+ def restore_experiment_post_with_http_info(
1380
+ self, experiment_id_request_dto: ExperimentIdRequestDto, **kwargs
1381
+ ) -> ApiResponse: # noqa: E501
1382
+ """Restore Experiment # noqa: E501
1383
+
1384
+ Restore Experiment # noqa: E501
1385
+ This method makes a synchronous HTTP request by default. To make an
1386
+ asynchronous HTTP request, please pass async_req=True
1387
+
1388
+ >>> thread = api.restore_experiment_post_with_http_info(experiment_id_request_dto, async_req=True)
1389
+ >>> result = thread.get()
1390
+
1391
+ :param experiment_id_request_dto: (required)
1392
+ :type experiment_id_request_dto: ExperimentIdRequestDto
1393
+ :param async_req: Whether to execute the request asynchronously.
1394
+ :type async_req: bool, optional
1395
+ :param _preload_content: if False, the ApiResponse.data will
1396
+ be set to none and raw_data will store the
1397
+ HTTP response body without reading/decoding.
1398
+ Default is True.
1399
+ :type _preload_content: bool, optional
1400
+ :param _return_http_data_only: response data instead of ApiResponse
1401
+ object with status code, headers, etc
1402
+ :type _return_http_data_only: bool, optional
1403
+ :param _request_timeout: timeout setting for this request. If one
1404
+ number provided, it will be total request
1405
+ timeout. It can also be a pair (tuple) of
1406
+ (connection, read) timeouts.
1407
+ :param _request_auth: set to override the auth_settings for an a single
1408
+ request; this effectively ignores the authentication
1409
+ in the spec for a single request.
1410
+ :type _request_auth: dict, optional
1411
+ :type _content_type: string, optional: force content-type for the request
1412
+ :return: Returns the result object.
1413
+ If the method is called asynchronously,
1414
+ returns the request thread.
1415
+ :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
1416
+ """
1417
+
1418
+ _params = locals()
1419
+
1420
+ _all_params = ["experiment_id_request_dto"]
1421
+ _all_params.extend(
1422
+ [
1423
+ "async_req",
1424
+ "_return_http_data_only",
1425
+ "_preload_content",
1426
+ "_request_timeout",
1427
+ "_request_auth",
1428
+ "_content_type",
1429
+ "_headers",
1430
+ ]
1431
+ )
1432
+
1433
+ # validate the arguments
1434
+ for _key, _val in _params["kwargs"].items():
1435
+ if _key not in _all_params:
1436
+ raise ApiTypeError(
1437
+ "Got an unexpected keyword argument '%s'"
1438
+ " to method restore_experiment_post" % _key
1439
+ )
1440
+ _params[_key] = _val
1441
+ del _params["kwargs"]
1442
+
1443
+ _collection_formats = {}
1444
+
1445
+ # process the path parameters
1446
+ _path_params = {}
1447
+
1448
+ # process the query parameters
1449
+ _query_params = []
1450
+ # process the header parameters
1451
+ _header_params = dict(_params.get("_headers", {}))
1452
+ # process the form parameters
1453
+ _form_params = []
1454
+ _files = {}
1455
+ # process the body parameter
1456
+ _body_params = None
1457
+ if _params["experiment_id_request_dto"] is not None:
1458
+ _body_params = _params["experiment_id_request_dto"]
1459
+
1460
+ # set the HTTP header `Accept`
1461
+ _header_params["Accept"] = self.api_client.select_header_accept(
1462
+ ["application/json"]
1463
+ ) # noqa: E501
1464
+
1465
+ # set the HTTP header `Content-Type`
1466
+ _content_types_list = _params.get(
1467
+ "_content_type",
1468
+ self.api_client.select_header_content_type(["application/json"]),
1469
+ )
1470
+ if _content_types_list:
1471
+ _header_params["Content-Type"] = _content_types_list
1472
+
1473
+ # authentication setting
1474
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
1475
+
1476
+ _response_types_map = {
1477
+ "200": "object",
1478
+ "422": "HTTPValidationError",
1479
+ }
1480
+
1481
+ return self.api_client.call_api(
1482
+ "/api/2.0/mlflow/experiments/restore",
1483
+ "POST",
1484
+ _path_params,
1485
+ _query_params,
1486
+ _header_params,
1487
+ body=_body_params,
1488
+ post_params=_form_params,
1489
+ files=_files,
1490
+ response_types_map=_response_types_map,
1491
+ auth_settings=_auth_settings,
1492
+ async_req=_params.get("async_req"),
1493
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
1494
+ _preload_content=_params.get("_preload_content", True),
1495
+ _request_timeout=_params.get("_request_timeout"),
1496
+ collection_formats=_collection_formats,
1497
+ _request_auth=_params.get("_request_auth"),
1498
+ )
1499
+
1500
+ @validate_arguments
1501
+ def seed_list_experiment_get(self, **kwargs) -> ListSeedExperimentsResponseDto: # noqa: E501
1502
+ """Seed List Experiment # noqa: E501
1503
+
1504
+ List Seed Experiments # noqa: E501
1505
+ This method makes a synchronous HTTP request by default. To make an
1506
+ asynchronous HTTP request, please pass async_req=True
1507
+
1508
+ >>> thread = api.seed_list_experiment_get(async_req=True)
1509
+ >>> result = thread.get()
1510
+
1511
+ :param async_req: Whether to execute the request asynchronously.
1512
+ :type async_req: bool, optional
1513
+ :param _request_timeout: timeout setting for this request.
1514
+ If one number provided, it will be total request
1515
+ timeout. It can also be a pair (tuple) of
1516
+ (connection, read) timeouts.
1517
+ :return: Returns the result object.
1518
+ If the method is called asynchronously,
1519
+ returns the request thread.
1520
+ :rtype: ListSeedExperimentsResponseDto
1521
+ """
1522
+ kwargs["_return_http_data_only"] = True
1523
+ if "_preload_content" in kwargs:
1524
+ message = "Error! Please call the seed_list_experiment_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1525
+ raise ValueError(message)
1526
+ return self.seed_list_experiment_get_with_http_info(**kwargs) # noqa: E501
1527
+
1528
+ @validate_arguments
1529
+ def seed_list_experiment_get_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
1530
+ """Seed List Experiment # noqa: E501
1531
+
1532
+ List Seed Experiments # noqa: E501
1533
+ This method makes a synchronous HTTP request by default. To make an
1534
+ asynchronous HTTP request, please pass async_req=True
1535
+
1536
+ >>> thread = api.seed_list_experiment_get_with_http_info(async_req=True)
1537
+ >>> result = thread.get()
1538
+
1539
+ :param async_req: Whether to execute the request asynchronously.
1540
+ :type async_req: bool, optional
1541
+ :param _preload_content: if False, the ApiResponse.data will
1542
+ be set to none and raw_data will store the
1543
+ HTTP response body without reading/decoding.
1544
+ Default is True.
1545
+ :type _preload_content: bool, optional
1546
+ :param _return_http_data_only: response data instead of ApiResponse
1547
+ object with status code, headers, etc
1548
+ :type _return_http_data_only: bool, optional
1549
+ :param _request_timeout: timeout setting for this request. If one
1550
+ number provided, it will be total request
1551
+ timeout. It can also be a pair (tuple) of
1552
+ (connection, read) timeouts.
1553
+ :param _request_auth: set to override the auth_settings for an a single
1554
+ request; this effectively ignores the authentication
1555
+ in the spec for a single request.
1556
+ :type _request_auth: dict, optional
1557
+ :type _content_type: string, optional: force content-type for the request
1558
+ :return: Returns the result object.
1559
+ If the method is called asynchronously,
1560
+ returns the request thread.
1561
+ :rtype: tuple(ListSeedExperimentsResponseDto, status_code(int), headers(HTTPHeaderDict))
1562
+ """
1563
+
1564
+ _params = locals()
1565
+
1566
+ _all_params = []
1567
+ _all_params.extend(
1568
+ [
1569
+ "async_req",
1570
+ "_return_http_data_only",
1571
+ "_preload_content",
1572
+ "_request_timeout",
1573
+ "_request_auth",
1574
+ "_content_type",
1575
+ "_headers",
1576
+ ]
1577
+ )
1578
+
1579
+ # validate the arguments
1580
+ for _key, _val in _params["kwargs"].items():
1581
+ if _key not in _all_params:
1582
+ raise ApiTypeError(
1583
+ "Got an unexpected keyword argument '%s'"
1584
+ " to method seed_list_experiment_get" % _key
1585
+ )
1586
+ _params[_key] = _val
1587
+ del _params["kwargs"]
1588
+
1589
+ _collection_formats = {}
1590
+
1591
+ # process the path parameters
1592
+ _path_params = {}
1593
+
1594
+ # process the query parameters
1595
+ _query_params = []
1596
+ # process the header parameters
1597
+ _header_params = dict(_params.get("_headers", {}))
1598
+ # process the form parameters
1599
+ _form_params = []
1600
+ _files = {}
1601
+ # process the body parameter
1602
+ _body_params = None
1603
+ # set the HTTP header `Accept`
1604
+ _header_params["Accept"] = self.api_client.select_header_accept(
1605
+ ["application/json"]
1606
+ ) # noqa: E501
1607
+
1608
+ # authentication setting
1609
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
1610
+
1611
+ _response_types_map = {
1612
+ "200": "ListSeedExperimentsResponseDto",
1613
+ }
1614
+
1615
+ return self.api_client.call_api(
1616
+ "/api/2.0/mlflow/experiments/seed/list",
1617
+ "GET",
1618
+ _path_params,
1619
+ _query_params,
1620
+ _header_params,
1621
+ body=_body_params,
1622
+ post_params=_form_params,
1623
+ files=_files,
1624
+ response_types_map=_response_types_map,
1625
+ auth_settings=_auth_settings,
1626
+ async_req=_params.get("async_req"),
1627
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
1628
+ _preload_content=_params.get("_preload_content", True),
1629
+ _request_timeout=_params.get("_request_timeout"),
1630
+ collection_formats=_collection_formats,
1631
+ _request_auth=_params.get("_request_auth"),
1632
+ )
1633
+
1634
+ @validate_arguments
1635
+ def set_experiment_tag_post(
1636
+ self, set_experiment_tag_request_dto: SetExperimentTagRequestDto, **kwargs
1637
+ ) -> object: # noqa: E501
1638
+ """Set Experiment Tag # noqa: E501
1639
+
1640
+ Set Experiment Tag # noqa: E501
1641
+ This method makes a synchronous HTTP request by default. To make an
1642
+ asynchronous HTTP request, please pass async_req=True
1643
+
1644
+ >>> thread = api.set_experiment_tag_post(set_experiment_tag_request_dto, async_req=True)
1645
+ >>> result = thread.get()
1646
+
1647
+ :param set_experiment_tag_request_dto: (required)
1648
+ :type set_experiment_tag_request_dto: SetExperimentTagRequestDto
1649
+ :param async_req: Whether to execute the request asynchronously.
1650
+ :type async_req: bool, optional
1651
+ :param _request_timeout: timeout setting for this request.
1652
+ If one number provided, it will be total request
1653
+ timeout. It can also be a pair (tuple) of
1654
+ (connection, read) timeouts.
1655
+ :return: Returns the result object.
1656
+ If the method is called asynchronously,
1657
+ returns the request thread.
1658
+ :rtype: object
1659
+ """
1660
+ kwargs["_return_http_data_only"] = True
1661
+ if "_preload_content" in kwargs:
1662
+ message = "Error! Please call the set_experiment_tag_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1663
+ raise ValueError(message)
1664
+ return self.set_experiment_tag_post_with_http_info(
1665
+ set_experiment_tag_request_dto, **kwargs
1666
+ ) # noqa: E501
1667
+
1668
+ @validate_arguments
1669
+ def set_experiment_tag_post_with_http_info(
1670
+ self, set_experiment_tag_request_dto: SetExperimentTagRequestDto, **kwargs
1671
+ ) -> ApiResponse: # noqa: E501
1672
+ """Set Experiment Tag # noqa: E501
1673
+
1674
+ Set Experiment Tag # noqa: E501
1675
+ This method makes a synchronous HTTP request by default. To make an
1676
+ asynchronous HTTP request, please pass async_req=True
1677
+
1678
+ >>> thread = api.set_experiment_tag_post_with_http_info(set_experiment_tag_request_dto, async_req=True)
1679
+ >>> result = thread.get()
1680
+
1681
+ :param set_experiment_tag_request_dto: (required)
1682
+ :type set_experiment_tag_request_dto: SetExperimentTagRequestDto
1683
+ :param async_req: Whether to execute the request asynchronously.
1684
+ :type async_req: bool, optional
1685
+ :param _preload_content: if False, the ApiResponse.data will
1686
+ be set to none and raw_data will store the
1687
+ HTTP response body without reading/decoding.
1688
+ Default is True.
1689
+ :type _preload_content: bool, optional
1690
+ :param _return_http_data_only: response data instead of ApiResponse
1691
+ object with status code, headers, etc
1692
+ :type _return_http_data_only: bool, optional
1693
+ :param _request_timeout: timeout setting for this request. If one
1694
+ number provided, it will be total request
1695
+ timeout. It can also be a pair (tuple) of
1696
+ (connection, read) timeouts.
1697
+ :param _request_auth: set to override the auth_settings for an a single
1698
+ request; this effectively ignores the authentication
1699
+ in the spec for a single request.
1700
+ :type _request_auth: dict, optional
1701
+ :type _content_type: string, optional: force content-type for the request
1702
+ :return: Returns the result object.
1703
+ If the method is called asynchronously,
1704
+ returns the request thread.
1705
+ :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
1706
+ """
1707
+
1708
+ _params = locals()
1709
+
1710
+ _all_params = ["set_experiment_tag_request_dto"]
1711
+ _all_params.extend(
1712
+ [
1713
+ "async_req",
1714
+ "_return_http_data_only",
1715
+ "_preload_content",
1716
+ "_request_timeout",
1717
+ "_request_auth",
1718
+ "_content_type",
1719
+ "_headers",
1720
+ ]
1721
+ )
1722
+
1723
+ # validate the arguments
1724
+ for _key, _val in _params["kwargs"].items():
1725
+ if _key not in _all_params:
1726
+ raise ApiTypeError(
1727
+ "Got an unexpected keyword argument '%s'"
1728
+ " to method set_experiment_tag_post" % _key
1729
+ )
1730
+ _params[_key] = _val
1731
+ del _params["kwargs"]
1732
+
1733
+ _collection_formats = {}
1734
+
1735
+ # process the path parameters
1736
+ _path_params = {}
1737
+
1738
+ # process the query parameters
1739
+ _query_params = []
1740
+ # process the header parameters
1741
+ _header_params = dict(_params.get("_headers", {}))
1742
+ # process the form parameters
1743
+ _form_params = []
1744
+ _files = {}
1745
+ # process the body parameter
1746
+ _body_params = None
1747
+ if _params["set_experiment_tag_request_dto"] is not None:
1748
+ _body_params = _params["set_experiment_tag_request_dto"]
1749
+
1750
+ # set the HTTP header `Accept`
1751
+ _header_params["Accept"] = self.api_client.select_header_accept(
1752
+ ["application/json"]
1753
+ ) # noqa: E501
1754
+
1755
+ # set the HTTP header `Content-Type`
1756
+ _content_types_list = _params.get(
1757
+ "_content_type",
1758
+ self.api_client.select_header_content_type(["application/json"]),
1759
+ )
1760
+ if _content_types_list:
1761
+ _header_params["Content-Type"] = _content_types_list
1762
+
1763
+ # authentication setting
1764
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
1765
+
1766
+ _response_types_map = {
1767
+ "200": "object",
1768
+ "422": "HTTPValidationError",
1769
+ }
1770
+
1771
+ return self.api_client.call_api(
1772
+ "/api/2.0/mlflow/experiments/set-experiment-tag",
1773
+ "POST",
1774
+ _path_params,
1775
+ _query_params,
1776
+ _header_params,
1777
+ body=_body_params,
1778
+ post_params=_form_params,
1779
+ files=_files,
1780
+ response_types_map=_response_types_map,
1781
+ auth_settings=_auth_settings,
1782
+ async_req=_params.get("async_req"),
1783
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
1784
+ _preload_content=_params.get("_preload_content", True),
1785
+ _request_timeout=_params.get("_request_timeout"),
1786
+ collection_formats=_collection_formats,
1787
+ _request_auth=_params.get("_request_auth"),
1788
+ )
1789
+
1790
+ @validate_arguments
1791
+ def update_experiment_post(
1792
+ self, update_experiment_request_dto: UpdateExperimentRequestDto, **kwargs
1793
+ ) -> object: # noqa: E501
1794
+ """Update Experiment # noqa: E501
1795
+
1796
+ Update Experiment # noqa: E501
1797
+ This method makes a synchronous HTTP request by default. To make an
1798
+ asynchronous HTTP request, please pass async_req=True
1799
+
1800
+ >>> thread = api.update_experiment_post(update_experiment_request_dto, async_req=True)
1801
+ >>> result = thread.get()
1802
+
1803
+ :param update_experiment_request_dto: (required)
1804
+ :type update_experiment_request_dto: UpdateExperimentRequestDto
1805
+ :param async_req: Whether to execute the request asynchronously.
1806
+ :type async_req: bool, optional
1807
+ :param _request_timeout: timeout setting for this request.
1808
+ If one number provided, it will be total request
1809
+ timeout. It can also be a pair (tuple) of
1810
+ (connection, read) timeouts.
1811
+ :return: Returns the result object.
1812
+ If the method is called asynchronously,
1813
+ returns the request thread.
1814
+ :rtype: object
1815
+ """
1816
+ kwargs["_return_http_data_only"] = True
1817
+ if "_preload_content" in kwargs:
1818
+ message = "Error! Please call the update_experiment_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1819
+ raise ValueError(message)
1820
+ return self.update_experiment_post_with_http_info(
1821
+ update_experiment_request_dto, **kwargs
1822
+ ) # noqa: E501
1823
+
1824
+ @validate_arguments
1825
+ def update_experiment_post_with_http_info(
1826
+ self, update_experiment_request_dto: UpdateExperimentRequestDto, **kwargs
1827
+ ) -> ApiResponse: # noqa: E501
1828
+ """Update Experiment # noqa: E501
1829
+
1830
+ Update Experiment # noqa: E501
1831
+ This method makes a synchronous HTTP request by default. To make an
1832
+ asynchronous HTTP request, please pass async_req=True
1833
+
1834
+ >>> thread = api.update_experiment_post_with_http_info(update_experiment_request_dto, async_req=True)
1835
+ >>> result = thread.get()
1836
+
1837
+ :param update_experiment_request_dto: (required)
1838
+ :type update_experiment_request_dto: UpdateExperimentRequestDto
1839
+ :param async_req: Whether to execute the request asynchronously.
1840
+ :type async_req: bool, optional
1841
+ :param _preload_content: if False, the ApiResponse.data will
1842
+ be set to none and raw_data will store the
1843
+ HTTP response body without reading/decoding.
1844
+ Default is True.
1845
+ :type _preload_content: bool, optional
1846
+ :param _return_http_data_only: response data instead of ApiResponse
1847
+ object with status code, headers, etc
1848
+ :type _return_http_data_only: bool, optional
1849
+ :param _request_timeout: timeout setting for this request. If one
1850
+ number provided, it will be total request
1851
+ timeout. It can also be a pair (tuple) of
1852
+ (connection, read) timeouts.
1853
+ :param _request_auth: set to override the auth_settings for an a single
1854
+ request; this effectively ignores the authentication
1855
+ in the spec for a single request.
1856
+ :type _request_auth: dict, optional
1857
+ :type _content_type: string, optional: force content-type for the request
1858
+ :return: Returns the result object.
1859
+ If the method is called asynchronously,
1860
+ returns the request thread.
1861
+ :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
1862
+ """
1863
+
1864
+ _params = locals()
1865
+
1866
+ _all_params = ["update_experiment_request_dto"]
1867
+ _all_params.extend(
1868
+ [
1869
+ "async_req",
1870
+ "_return_http_data_only",
1871
+ "_preload_content",
1872
+ "_request_timeout",
1873
+ "_request_auth",
1874
+ "_content_type",
1875
+ "_headers",
1876
+ ]
1877
+ )
1878
+
1879
+ # validate the arguments
1880
+ for _key, _val in _params["kwargs"].items():
1881
+ if _key not in _all_params:
1882
+ raise ApiTypeError(
1883
+ "Got an unexpected keyword argument '%s'"
1884
+ " to method update_experiment_post" % _key
1885
+ )
1886
+ _params[_key] = _val
1887
+ del _params["kwargs"]
1888
+
1889
+ _collection_formats = {}
1890
+
1891
+ # process the path parameters
1892
+ _path_params = {}
1893
+
1894
+ # process the query parameters
1895
+ _query_params = []
1896
+ # process the header parameters
1897
+ _header_params = dict(_params.get("_headers", {}))
1898
+ # process the form parameters
1899
+ _form_params = []
1900
+ _files = {}
1901
+ # process the body parameter
1902
+ _body_params = None
1903
+ if _params["update_experiment_request_dto"] is not None:
1904
+ _body_params = _params["update_experiment_request_dto"]
1905
+
1906
+ # set the HTTP header `Accept`
1907
+ _header_params["Accept"] = self.api_client.select_header_accept(
1908
+ ["application/json"]
1909
+ ) # noqa: E501
1910
+
1911
+ # set the HTTP header `Content-Type`
1912
+ _content_types_list = _params.get(
1913
+ "_content_type",
1914
+ self.api_client.select_header_content_type(["application/json"]),
1915
+ )
1916
+ if _content_types_list:
1917
+ _header_params["Content-Type"] = _content_types_list
1918
+
1919
+ # authentication setting
1920
+ _auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
1921
+
1922
+ _response_types_map = {
1923
+ "200": "object",
1924
+ "422": "HTTPValidationError",
1925
+ }
1926
+
1927
+ return self.api_client.call_api(
1928
+ "/api/2.0/mlflow/experiments/update",
1929
+ "POST",
1930
+ _path_params,
1931
+ _query_params,
1932
+ _header_params,
1933
+ body=_body_params,
1934
+ post_params=_form_params,
1935
+ files=_files,
1936
+ response_types_map=_response_types_map,
1937
+ auth_settings=_auth_settings,
1938
+ async_req=_params.get("async_req"),
1939
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
1940
+ _preload_content=_params.get("_preload_content", True),
1941
+ _request_timeout=_params.get("_request_timeout"),
1942
+ collection_formats=_collection_formats,
1943
+ _request_auth=_params.get("_request_auth"),
1944
+ )