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