truefoundry 0.3.3__py3-none-any.whl → 0.4.0.dev1__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.
- truefoundry/cli/__main__.py +3 -17
- truefoundry/common/__init__.py +0 -0
- truefoundry/common/request_utils.py +56 -0
- truefoundry/deploy/cli/cli.py +1 -1
- truefoundry/deploy/cli/util.py +3 -1
- truefoundry/deploy/lib/auth/credential_provider.py +2 -12
- truefoundry/deploy/lib/clients/servicefoundry_client.py +0 -9
- truefoundry/deploy/lib/exceptions.py +1 -6
- truefoundry/deploy/lib/session.py +1 -16
- truefoundry/langchain/truefoundry_chat.py +1 -1
- truefoundry/langchain/truefoundry_embeddings.py +1 -1
- truefoundry/langchain/truefoundry_llm.py +1 -1
- truefoundry/langchain/utils.py +0 -41
- truefoundry/ml/__init__.py +46 -6
- truefoundry/ml/artifact/__init__.py +0 -0
- truefoundry/ml/artifact/truefoundry_artifact_repo.py +1120 -0
- truefoundry/ml/autogen/__init__.py +0 -0
- truefoundry/ml/autogen/client/__init__.py +373 -0
- truefoundry/ml/autogen/client/api/__init__.py +16 -0
- truefoundry/ml/autogen/client/api/auth_api.py +184 -0
- truefoundry/ml/autogen/client/api/deprecated_api.py +605 -0
- truefoundry/ml/autogen/client/api/experiments_api.py +2109 -0
- truefoundry/ml/autogen/client/api/health_api.py +299 -0
- truefoundry/ml/autogen/client/api/metrics_api.py +371 -0
- truefoundry/ml/autogen/client/api/mlfoundry_artifacts_api.py +7213 -0
- truefoundry/ml/autogen/client/api/python_deployment_config_api.py +201 -0
- truefoundry/ml/autogen/client/api/run_artifacts_api.py +231 -0
- truefoundry/ml/autogen/client/api/runs_api.py +2919 -0
- truefoundry/ml/autogen/client/api_client.py +822 -0
- truefoundry/ml/autogen/client/api_response.py +30 -0
- truefoundry/ml/autogen/client/configuration.py +489 -0
- truefoundry/ml/autogen/client/exceptions.py +161 -0
- truefoundry/ml/autogen/client/models/__init__.py +344 -0
- truefoundry/ml/autogen/client/models/add_custom_metrics_to_model_version_request_dto.py +69 -0
- truefoundry/ml/autogen/client/models/add_features_to_model_version_request_dto.py +83 -0
- truefoundry/ml/autogen/client/models/agent.py +125 -0
- truefoundry/ml/autogen/client/models/agent_app.py +118 -0
- truefoundry/ml/autogen/client/models/agent_open_api_tool.py +143 -0
- truefoundry/ml/autogen/client/models/agent_open_api_tool_with_fqn.py +144 -0
- truefoundry/ml/autogen/client/models/agent_with_fqn.py +127 -0
- truefoundry/ml/autogen/client/models/artifact_dto.py +115 -0
- truefoundry/ml/autogen/client/models/artifact_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/artifact_type.py +39 -0
- truefoundry/ml/autogen/client/models/artifact_version_dto.py +141 -0
- truefoundry/ml/autogen/client/models/artifact_version_response_dto.py +77 -0
- truefoundry/ml/autogen/client/models/artifact_version_status.py +35 -0
- truefoundry/ml/autogen/client/models/assistant_message.py +89 -0
- truefoundry/ml/autogen/client/models/authorize_user_for_model_request_dto.py +69 -0
- truefoundry/ml/autogen/client/models/authorize_user_for_model_version_request_dto.py +69 -0
- truefoundry/ml/autogen/client/models/backfill_default_storage_integration_id_request_dto.py +67 -0
- truefoundry/ml/autogen/client/models/blob_storage_reference.py +93 -0
- truefoundry/ml/autogen/client/models/body_get_search_runs_get.py +72 -0
- truefoundry/ml/autogen/client/models/chat_prompt.py +156 -0
- truefoundry/ml/autogen/client/models/chat_prompt_messages_inner.py +171 -0
- truefoundry/ml/autogen/client/models/columns_dto.py +73 -0
- truefoundry/ml/autogen/client/models/content.py +153 -0
- truefoundry/ml/autogen/client/models/content1.py +153 -0
- truefoundry/ml/autogen/client/models/content2.py +174 -0
- truefoundry/ml/autogen/client/models/content2_any_of_inner.py +150 -0
- truefoundry/ml/autogen/client/models/create_artifact_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/create_artifact_response_dto.py +66 -0
- truefoundry/ml/autogen/client/models/create_artifact_version_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/create_artifact_version_response_dto.py +66 -0
- truefoundry/ml/autogen/client/models/create_dataset_request_dto.py +76 -0
- truefoundry/ml/autogen/client/models/create_experiment_request_dto.py +94 -0
- truefoundry/ml/autogen/client/models/create_experiment_response_dto.py +67 -0
- truefoundry/ml/autogen/client/models/create_model_version_request_dto.py +95 -0
- truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_request_dto.py +73 -0
- truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_response_dto.py +79 -0
- truefoundry/ml/autogen/client/models/create_multi_part_upload_request_dto.py +73 -0
- truefoundry/ml/autogen/client/models/create_python_deployment_config_request_dto.py +72 -0
- truefoundry/ml/autogen/client/models/create_python_deployment_config_response_dto.py +68 -0
- truefoundry/ml/autogen/client/models/create_run_request_dto.py +97 -0
- truefoundry/ml/autogen/client/models/create_run_response_dto.py +76 -0
- truefoundry/ml/autogen/client/models/dataset_dto.py +112 -0
- truefoundry/ml/autogen/client/models/dataset_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/delete_artifact_versions_request_dto.py +65 -0
- truefoundry/ml/autogen/client/models/delete_dataset_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/delete_model_version_request_dto.py +65 -0
- truefoundry/ml/autogen/client/models/delete_run_request.py +65 -0
- truefoundry/ml/autogen/client/models/delete_tag_request_dto.py +68 -0
- truefoundry/ml/autogen/client/models/experiment_dto.py +127 -0
- truefoundry/ml/autogen/client/models/experiment_id_request_dto.py +67 -0
- truefoundry/ml/autogen/client/models/experiment_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/experiment_tag_dto.py +69 -0
- truefoundry/ml/autogen/client/models/feature_dto.py +68 -0
- truefoundry/ml/autogen/client/models/feature_value_type.py +35 -0
- truefoundry/ml/autogen/client/models/file_info_dto.py +76 -0
- truefoundry/ml/autogen/client/models/finalize_artifact_version_request_dto.py +101 -0
- truefoundry/ml/autogen/client/models/get_experiment_response_dto.py +88 -0
- truefoundry/ml/autogen/client/models/get_latest_run_log_response_dto.py +76 -0
- truefoundry/ml/autogen/client/models/get_metric_history_response.py +79 -0
- truefoundry/ml/autogen/client/models/get_signed_url_for_dataset_write_request_dto.py +68 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_request_dto.py +68 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_response_dto.py +81 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_request_dto.py +69 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_response_dto.py +83 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_request_dto.py +68 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_response_dto.py +81 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_write_response_dto.py +81 -0
- truefoundry/ml/autogen/client/models/get_tenant_id_response_dto.py +74 -0
- truefoundry/ml/autogen/client/models/http_validation_error.py +82 -0
- truefoundry/ml/autogen/client/models/image_content_part.py +87 -0
- truefoundry/ml/autogen/client/models/image_url.py +75 -0
- truefoundry/ml/autogen/client/models/internal_metadata.py +180 -0
- truefoundry/ml/autogen/client/models/latest_run_log_dto.py +78 -0
- truefoundry/ml/autogen/client/models/list_artifact_versions_request_dto.py +107 -0
- truefoundry/ml/autogen/client/models/list_artifact_versions_response_dto.py +87 -0
- truefoundry/ml/autogen/client/models/list_artifacts_request_dto.py +96 -0
- truefoundry/ml/autogen/client/models/list_artifacts_response_dto.py +86 -0
- truefoundry/ml/autogen/client/models/list_colums_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/list_datasets_request_dto.py +78 -0
- truefoundry/ml/autogen/client/models/list_datasets_response_dto.py +86 -0
- truefoundry/ml/autogen/client/models/list_experiments_response_dto.py +86 -0
- truefoundry/ml/autogen/client/models/list_files_for_artifact_version_request_dto.py +76 -0
- truefoundry/ml/autogen/client/models/list_files_for_artifact_versions_response_dto.py +82 -0
- truefoundry/ml/autogen/client/models/list_files_for_dataset_request_dto.py +76 -0
- truefoundry/ml/autogen/client/models/list_files_for_dataset_response_dto.py +82 -0
- truefoundry/ml/autogen/client/models/list_latest_run_logs_response_dto.py +82 -0
- truefoundry/ml/autogen/client/models/list_metric_history_request_dto.py +69 -0
- truefoundry/ml/autogen/client/models/list_metric_history_response_dto.py +84 -0
- truefoundry/ml/autogen/client/models/list_model_version_response_dto.py +87 -0
- truefoundry/ml/autogen/client/models/list_model_versions_request_dto.py +93 -0
- truefoundry/ml/autogen/client/models/list_models_request_dto.py +89 -0
- truefoundry/ml/autogen/client/models/list_models_response_dto.py +84 -0
- truefoundry/ml/autogen/client/models/list_run_artifacts_response_dto.py +84 -0
- truefoundry/ml/autogen/client/models/list_run_logs_response_dto.py +82 -0
- truefoundry/ml/autogen/client/models/list_seed_experiments_response_dto.py +81 -0
- truefoundry/ml/autogen/client/models/log_batch_request_dto.py +106 -0
- truefoundry/ml/autogen/client/models/log_metric_request_dto.py +80 -0
- truefoundry/ml/autogen/client/models/log_param_request_dto.py +76 -0
- truefoundry/ml/autogen/client/models/method.py +37 -0
- truefoundry/ml/autogen/client/models/metric_collection_dto.py +82 -0
- truefoundry/ml/autogen/client/models/metric_dto.py +76 -0
- truefoundry/ml/autogen/client/models/mime_type.py +37 -0
- truefoundry/ml/autogen/client/models/model_configuration.py +103 -0
- truefoundry/ml/autogen/client/models/model_dto.py +122 -0
- truefoundry/ml/autogen/client/models/model_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/model_schema_dto.py +85 -0
- truefoundry/ml/autogen/client/models/model_version_dto.py +163 -0
- truefoundry/ml/autogen/client/models/model_version_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/multi_part_upload_dto.py +107 -0
- truefoundry/ml/autogen/client/models/multi_part_upload_response_dto.py +79 -0
- truefoundry/ml/autogen/client/models/multi_part_upload_storage_provider.py +34 -0
- truefoundry/ml/autogen/client/models/notify_artifact_version_failure_dto.py +65 -0
- truefoundry/ml/autogen/client/models/openapi_spec.py +152 -0
- truefoundry/ml/autogen/client/models/param_dto.py +66 -0
- truefoundry/ml/autogen/client/models/parameters.py +84 -0
- truefoundry/ml/autogen/client/models/prediction_type.py +34 -0
- truefoundry/ml/autogen/client/models/resolve_agent_app_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/restore_run_request_dto.py +65 -0
- truefoundry/ml/autogen/client/models/run_data_dto.py +104 -0
- truefoundry/ml/autogen/client/models/run_dto.py +84 -0
- truefoundry/ml/autogen/client/models/run_info_dto.py +105 -0
- truefoundry/ml/autogen/client/models/run_log_dto.py +90 -0
- truefoundry/ml/autogen/client/models/run_log_input_dto.py +80 -0
- truefoundry/ml/autogen/client/models/run_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/run_tag_dto.py +66 -0
- truefoundry/ml/autogen/client/models/search_runs_request_dto.py +94 -0
- truefoundry/ml/autogen/client/models/search_runs_response_dto.py +84 -0
- truefoundry/ml/autogen/client/models/set_experiment_tag_request_dto.py +73 -0
- truefoundry/ml/autogen/client/models/set_tag_request_dto.py +76 -0
- truefoundry/ml/autogen/client/models/signed_url_dto.py +69 -0
- truefoundry/ml/autogen/client/models/stop.py +152 -0
- truefoundry/ml/autogen/client/models/store_run_logs_request_dto.py +83 -0
- truefoundry/ml/autogen/client/models/system_message.py +89 -0
- truefoundry/ml/autogen/client/models/text.py +153 -0
- truefoundry/ml/autogen/client/models/text_content_part.py +84 -0
- truefoundry/ml/autogen/client/models/update_artifact_version_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/update_dataset_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/update_experiment_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/update_model_version_request_dto.py +93 -0
- truefoundry/ml/autogen/client/models/update_run_request_dto.py +78 -0
- truefoundry/ml/autogen/client/models/update_run_response_dto.py +76 -0
- truefoundry/ml/autogen/client/models/url.py +153 -0
- truefoundry/ml/autogen/client/models/user_message.py +89 -0
- truefoundry/ml/autogen/client/models/validation_error.py +87 -0
- truefoundry/ml/autogen/client/models/validation_error_loc_inner.py +154 -0
- truefoundry/ml/autogen/client/rest.py +426 -0
- truefoundry/ml/autogen/client_README.md +322 -0
- truefoundry/ml/cli/__init__.py +0 -0
- truefoundry/ml/cli/cli.py +18 -0
- truefoundry/ml/cli/commands/__init__.py +3 -0
- truefoundry/ml/cli/commands/download.py +87 -0
- truefoundry/ml/constants.py +84 -0
- truefoundry/ml/enums.py +70 -0
- truefoundry/ml/env_vars.py +13 -0
- truefoundry/ml/exceptions.py +8 -0
- truefoundry/ml/git_info.py +60 -0
- truefoundry/ml/internal_namespace.py +52 -0
- truefoundry/ml/log_types/__init__.py +4 -0
- truefoundry/ml/log_types/artifacts/artifact.py +427 -0
- truefoundry/ml/log_types/artifacts/constants.py +33 -0
- truefoundry/ml/log_types/artifacts/dataset.py +383 -0
- truefoundry/ml/log_types/artifacts/general_artifact.py +110 -0
- truefoundry/ml/log_types/artifacts/model.py +628 -0
- truefoundry/ml/log_types/artifacts/model_extras.py +48 -0
- truefoundry/ml/log_types/artifacts/utils.py +161 -0
- truefoundry/ml/log_types/image/__init__.py +3 -0
- truefoundry/ml/log_types/image/constants.py +8 -0
- truefoundry/ml/log_types/image/image.py +358 -0
- truefoundry/ml/log_types/image/image_normalizer.py +101 -0
- truefoundry/ml/log_types/image/types.py +68 -0
- truefoundry/ml/log_types/plot.py +281 -0
- truefoundry/ml/log_types/pydantic_base.py +10 -0
- truefoundry/ml/log_types/utils.py +12 -0
- truefoundry/ml/logger.py +17 -0
- truefoundry/ml/login.py +241 -0
- truefoundry/ml/mlfoundry_api.py +1620 -0
- truefoundry/ml/mlfoundry_run.py +1238 -0
- truefoundry/ml/run_utils.py +102 -0
- truefoundry/ml/services/__init__.py +0 -0
- truefoundry/ml/services/auth_service.py +109 -0
- truefoundry/ml/services/entities.py +108 -0
- truefoundry/ml/services/servicefoundry_service.py +35 -0
- truefoundry/ml/services/utils.py +122 -0
- truefoundry/ml/session.py +271 -0
- truefoundry/ml/validation_utils.py +346 -0
- truefoundry/pydantic_v1.py +5 -1
- {truefoundry-0.3.3.dist-info → truefoundry-0.4.0.dev1.dist-info}/METADATA +18 -11
- truefoundry-0.4.0.dev1.dist-info/RECORD +342 -0
- truefoundry-0.3.3.dist-info/RECORD +0 -136
- /truefoundry/{python_deploy_codegen.py → deploy/python_deploy_codegen.py} +0 -0
- {truefoundry-0.3.3.dist-info → truefoundry-0.4.0.dev1.dist-info}/WHEEL +0 -0
- {truefoundry-0.3.3.dist-info → truefoundry-0.4.0.dev1.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,605 @@
|
|
|
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
|
+
import warnings
|
|
16
|
+
from typing import Optional
|
|
17
|
+
|
|
18
|
+
from truefoundry.ml.autogen.client.api_client import ApiClient
|
|
19
|
+
from truefoundry.ml.autogen.client.api_response import ApiResponse
|
|
20
|
+
from truefoundry.ml.autogen.client.exceptions import ( # noqa: F401
|
|
21
|
+
ApiTypeError,
|
|
22
|
+
ApiValueError,
|
|
23
|
+
)
|
|
24
|
+
from truefoundry.ml.autogen.client.models.body_get_search_runs_get import (
|
|
25
|
+
BodyGetSearchRunsGet,
|
|
26
|
+
)
|
|
27
|
+
from truefoundry.ml.autogen.client.models.get_signed_urls_for_dataset_write_response_dto import (
|
|
28
|
+
GetSignedURLsForDatasetWriteResponseDto,
|
|
29
|
+
)
|
|
30
|
+
from truefoundry.ml.autogen.client.models.run_response_dto import RunResponseDto
|
|
31
|
+
from truefoundry.ml.autogen.client.models.search_runs_response_dto import (
|
|
32
|
+
SearchRunsResponseDto,
|
|
33
|
+
)
|
|
34
|
+
from truefoundry.pydantic_v1 import (
|
|
35
|
+
StrictInt,
|
|
36
|
+
StrictStr,
|
|
37
|
+
conlist,
|
|
38
|
+
validate_arguments,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class DeprecatedApi:
|
|
43
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
44
|
+
Ref: https://openapi-generator.tech
|
|
45
|
+
|
|
46
|
+
Do not edit the class manually.
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def __init__(self, api_client=None) -> None:
|
|
50
|
+
if api_client is None:
|
|
51
|
+
api_client = ApiClient.get_default()
|
|
52
|
+
self.api_client = api_client
|
|
53
|
+
|
|
54
|
+
@validate_arguments
|
|
55
|
+
def get_run_by_name_get(
|
|
56
|
+
self,
|
|
57
|
+
run_name: StrictStr,
|
|
58
|
+
experiment_id: Optional[StrictStr] = None,
|
|
59
|
+
experiment_name: Optional[StrictStr] = None,
|
|
60
|
+
**kwargs,
|
|
61
|
+
) -> RunResponseDto: # noqa: E501
|
|
62
|
+
"""(Deprecated) Get Run By Name # noqa: E501
|
|
63
|
+
|
|
64
|
+
Get Run by run name # noqa: E501
|
|
65
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
66
|
+
asynchronous HTTP request, please pass async_req=True
|
|
67
|
+
|
|
68
|
+
>>> thread = api.get_run_by_name_get(run_name, experiment_id, experiment_name, async_req=True)
|
|
69
|
+
>>> result = thread.get()
|
|
70
|
+
|
|
71
|
+
:param run_name: (required)
|
|
72
|
+
:type run_name: str
|
|
73
|
+
:param experiment_id:
|
|
74
|
+
:type experiment_id: str
|
|
75
|
+
:param experiment_name:
|
|
76
|
+
:type experiment_name: str
|
|
77
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
78
|
+
:type async_req: bool, optional
|
|
79
|
+
:param _request_timeout: timeout setting for this request.
|
|
80
|
+
If one number provided, it will be total request
|
|
81
|
+
timeout. It can also be a pair (tuple) of
|
|
82
|
+
(connection, read) timeouts.
|
|
83
|
+
:return: Returns the result object.
|
|
84
|
+
If the method is called asynchronously,
|
|
85
|
+
returns the request thread.
|
|
86
|
+
:rtype: RunResponseDto
|
|
87
|
+
"""
|
|
88
|
+
kwargs["_return_http_data_only"] = True
|
|
89
|
+
if "_preload_content" in kwargs:
|
|
90
|
+
message = "Error! Please call the get_run_by_name_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
|
91
|
+
raise ValueError(message)
|
|
92
|
+
return self.get_run_by_name_get_with_http_info(
|
|
93
|
+
run_name, experiment_id, experiment_name, **kwargs
|
|
94
|
+
) # noqa: E501
|
|
95
|
+
|
|
96
|
+
@validate_arguments
|
|
97
|
+
def get_run_by_name_get_with_http_info(
|
|
98
|
+
self,
|
|
99
|
+
run_name: StrictStr,
|
|
100
|
+
experiment_id: Optional[StrictStr] = None,
|
|
101
|
+
experiment_name: Optional[StrictStr] = None,
|
|
102
|
+
**kwargs,
|
|
103
|
+
) -> ApiResponse: # noqa: E501
|
|
104
|
+
"""(Deprecated) Get Run By Name # noqa: E501
|
|
105
|
+
|
|
106
|
+
Get Run by run name # noqa: E501
|
|
107
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
108
|
+
asynchronous HTTP request, please pass async_req=True
|
|
109
|
+
|
|
110
|
+
>>> thread = api.get_run_by_name_get_with_http_info(run_name, experiment_id, experiment_name, async_req=True)
|
|
111
|
+
>>> result = thread.get()
|
|
112
|
+
|
|
113
|
+
:param run_name: (required)
|
|
114
|
+
:type run_name: str
|
|
115
|
+
:param experiment_id:
|
|
116
|
+
:type experiment_id: str
|
|
117
|
+
:param experiment_name:
|
|
118
|
+
:type experiment_name: str
|
|
119
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
120
|
+
:type async_req: bool, optional
|
|
121
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
122
|
+
be set to none and raw_data will store the
|
|
123
|
+
HTTP response body without reading/decoding.
|
|
124
|
+
Default is True.
|
|
125
|
+
:type _preload_content: bool, optional
|
|
126
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
127
|
+
object with status code, headers, etc
|
|
128
|
+
:type _return_http_data_only: bool, optional
|
|
129
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
130
|
+
number provided, it will be total request
|
|
131
|
+
timeout. It can also be a pair (tuple) of
|
|
132
|
+
(connection, read) timeouts.
|
|
133
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
134
|
+
request; this effectively ignores the authentication
|
|
135
|
+
in the spec for a single request.
|
|
136
|
+
:type _request_auth: dict, optional
|
|
137
|
+
:type _content_type: string, optional: force content-type for the request
|
|
138
|
+
:return: Returns the result object.
|
|
139
|
+
If the method is called asynchronously,
|
|
140
|
+
returns the request thread.
|
|
141
|
+
:rtype: tuple(RunResponseDto, status_code(int), headers(HTTPHeaderDict))
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
warnings.warn(
|
|
145
|
+
"GET /api/2.0mlflow/runs/get-by-name is deprecated.", DeprecationWarning
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
_params = locals()
|
|
149
|
+
|
|
150
|
+
_all_params = ["run_name", "experiment_id", "experiment_name"]
|
|
151
|
+
_all_params.extend(
|
|
152
|
+
[
|
|
153
|
+
"async_req",
|
|
154
|
+
"_return_http_data_only",
|
|
155
|
+
"_preload_content",
|
|
156
|
+
"_request_timeout",
|
|
157
|
+
"_request_auth",
|
|
158
|
+
"_content_type",
|
|
159
|
+
"_headers",
|
|
160
|
+
]
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
# validate the arguments
|
|
164
|
+
for _key, _val in _params["kwargs"].items():
|
|
165
|
+
if _key not in _all_params:
|
|
166
|
+
raise ApiTypeError(
|
|
167
|
+
"Got an unexpected keyword argument '%s'"
|
|
168
|
+
" to method get_run_by_name_get" % _key
|
|
169
|
+
)
|
|
170
|
+
_params[_key] = _val
|
|
171
|
+
del _params["kwargs"]
|
|
172
|
+
|
|
173
|
+
_collection_formats = {}
|
|
174
|
+
|
|
175
|
+
# process the path parameters
|
|
176
|
+
_path_params = {}
|
|
177
|
+
|
|
178
|
+
# process the query parameters
|
|
179
|
+
_query_params = []
|
|
180
|
+
if _params.get("run_name") is not None: # noqa: E501
|
|
181
|
+
_query_params.append(("run_name", _params["run_name"]))
|
|
182
|
+
|
|
183
|
+
if _params.get("experiment_id") is not None: # noqa: E501
|
|
184
|
+
_query_params.append(("experiment_id", _params["experiment_id"]))
|
|
185
|
+
|
|
186
|
+
if _params.get("experiment_name") is not None: # noqa: E501
|
|
187
|
+
_query_params.append(("experiment_name", _params["experiment_name"]))
|
|
188
|
+
|
|
189
|
+
# process the header parameters
|
|
190
|
+
_header_params = dict(_params.get("_headers", {}))
|
|
191
|
+
# process the form parameters
|
|
192
|
+
_form_params = []
|
|
193
|
+
_files = {}
|
|
194
|
+
# process the body parameter
|
|
195
|
+
_body_params = None
|
|
196
|
+
# set the HTTP header `Accept`
|
|
197
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
198
|
+
["application/json"]
|
|
199
|
+
) # noqa: E501
|
|
200
|
+
|
|
201
|
+
# authentication setting
|
|
202
|
+
_auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
|
|
203
|
+
|
|
204
|
+
_response_types_map = {
|
|
205
|
+
"200": "RunResponseDto",
|
|
206
|
+
"422": "HTTPValidationError",
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return self.api_client.call_api(
|
|
210
|
+
"/api/2.0mlflow/runs/get-by-name",
|
|
211
|
+
"GET",
|
|
212
|
+
_path_params,
|
|
213
|
+
_query_params,
|
|
214
|
+
_header_params,
|
|
215
|
+
body=_body_params,
|
|
216
|
+
post_params=_form_params,
|
|
217
|
+
files=_files,
|
|
218
|
+
response_types_map=_response_types_map,
|
|
219
|
+
auth_settings=_auth_settings,
|
|
220
|
+
async_req=_params.get("async_req"),
|
|
221
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
|
222
|
+
_preload_content=_params.get("_preload_content", True),
|
|
223
|
+
_request_timeout=_params.get("_request_timeout"),
|
|
224
|
+
collection_formats=_collection_formats,
|
|
225
|
+
_request_auth=_params.get("_request_auth"),
|
|
226
|
+
)
|
|
227
|
+
|
|
228
|
+
@validate_arguments
|
|
229
|
+
def get_search_runs_get(
|
|
230
|
+
self,
|
|
231
|
+
filter: Optional[StrictStr] = None,
|
|
232
|
+
page_token: Optional[StrictStr] = None,
|
|
233
|
+
offset: Optional[StrictInt] = None,
|
|
234
|
+
run_view_type: Optional[StrictStr] = None,
|
|
235
|
+
max_results: Optional[StrictInt] = None,
|
|
236
|
+
body_get_search_runs_get: Optional[BodyGetSearchRunsGet] = None,
|
|
237
|
+
**kwargs,
|
|
238
|
+
) -> SearchRunsResponseDto: # noqa: E501
|
|
239
|
+
"""(Deprecated) Get Search Runs # noqa: E501
|
|
240
|
+
|
|
241
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
242
|
+
asynchronous HTTP request, please pass async_req=True
|
|
243
|
+
|
|
244
|
+
>>> thread = api.get_search_runs_get(filter, page_token, offset, run_view_type, max_results, body_get_search_runs_get, async_req=True)
|
|
245
|
+
>>> result = thread.get()
|
|
246
|
+
|
|
247
|
+
:param filter:
|
|
248
|
+
:type filter: str
|
|
249
|
+
:param page_token:
|
|
250
|
+
:type page_token: str
|
|
251
|
+
:param offset:
|
|
252
|
+
:type offset: int
|
|
253
|
+
:param run_view_type:
|
|
254
|
+
:type run_view_type: str
|
|
255
|
+
:param max_results:
|
|
256
|
+
:type max_results: int
|
|
257
|
+
:param body_get_search_runs_get:
|
|
258
|
+
:type body_get_search_runs_get: BodyGetSearchRunsGet
|
|
259
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
260
|
+
:type async_req: bool, optional
|
|
261
|
+
:param _request_timeout: timeout setting for this request.
|
|
262
|
+
If one number provided, it will be total request
|
|
263
|
+
timeout. It can also be a pair (tuple) of
|
|
264
|
+
(connection, read) timeouts.
|
|
265
|
+
:return: Returns the result object.
|
|
266
|
+
If the method is called asynchronously,
|
|
267
|
+
returns the request thread.
|
|
268
|
+
:rtype: SearchRunsResponseDto
|
|
269
|
+
"""
|
|
270
|
+
kwargs["_return_http_data_only"] = True
|
|
271
|
+
if "_preload_content" in kwargs:
|
|
272
|
+
message = "Error! Please call the get_search_runs_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
|
273
|
+
raise ValueError(message)
|
|
274
|
+
return self.get_search_runs_get_with_http_info(
|
|
275
|
+
filter,
|
|
276
|
+
page_token,
|
|
277
|
+
offset,
|
|
278
|
+
run_view_type,
|
|
279
|
+
max_results,
|
|
280
|
+
body_get_search_runs_get,
|
|
281
|
+
**kwargs,
|
|
282
|
+
) # noqa: E501
|
|
283
|
+
|
|
284
|
+
@validate_arguments
|
|
285
|
+
def get_search_runs_get_with_http_info(
|
|
286
|
+
self,
|
|
287
|
+
filter: Optional[StrictStr] = None,
|
|
288
|
+
page_token: Optional[StrictStr] = None,
|
|
289
|
+
offset: Optional[StrictInt] = None,
|
|
290
|
+
run_view_type: Optional[StrictStr] = None,
|
|
291
|
+
max_results: Optional[StrictInt] = None,
|
|
292
|
+
body_get_search_runs_get: Optional[BodyGetSearchRunsGet] = None,
|
|
293
|
+
**kwargs,
|
|
294
|
+
) -> ApiResponse: # noqa: E501
|
|
295
|
+
"""(Deprecated) Get Search Runs # noqa: E501
|
|
296
|
+
|
|
297
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
298
|
+
asynchronous HTTP request, please pass async_req=True
|
|
299
|
+
|
|
300
|
+
>>> thread = api.get_search_runs_get_with_http_info(filter, page_token, offset, run_view_type, max_results, body_get_search_runs_get, async_req=True)
|
|
301
|
+
>>> result = thread.get()
|
|
302
|
+
|
|
303
|
+
:param filter:
|
|
304
|
+
:type filter: str
|
|
305
|
+
:param page_token:
|
|
306
|
+
:type page_token: str
|
|
307
|
+
:param offset:
|
|
308
|
+
:type offset: int
|
|
309
|
+
:param run_view_type:
|
|
310
|
+
:type run_view_type: str
|
|
311
|
+
:param max_results:
|
|
312
|
+
:type max_results: int
|
|
313
|
+
:param body_get_search_runs_get:
|
|
314
|
+
:type body_get_search_runs_get: BodyGetSearchRunsGet
|
|
315
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
316
|
+
:type async_req: bool, optional
|
|
317
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
318
|
+
be set to none and raw_data will store the
|
|
319
|
+
HTTP response body without reading/decoding.
|
|
320
|
+
Default is True.
|
|
321
|
+
:type _preload_content: bool, optional
|
|
322
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
323
|
+
object with status code, headers, etc
|
|
324
|
+
:type _return_http_data_only: bool, optional
|
|
325
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
326
|
+
number provided, it will be total request
|
|
327
|
+
timeout. It can also be a pair (tuple) of
|
|
328
|
+
(connection, read) timeouts.
|
|
329
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
330
|
+
request; this effectively ignores the authentication
|
|
331
|
+
in the spec for a single request.
|
|
332
|
+
:type _request_auth: dict, optional
|
|
333
|
+
:type _content_type: string, optional: force content-type for the request
|
|
334
|
+
:return: Returns the result object.
|
|
335
|
+
If the method is called asynchronously,
|
|
336
|
+
returns the request thread.
|
|
337
|
+
:rtype: tuple(SearchRunsResponseDto, status_code(int), headers(HTTPHeaderDict))
|
|
338
|
+
"""
|
|
339
|
+
|
|
340
|
+
warnings.warn(
|
|
341
|
+
"GET /api/2.0/preview/mlflow/runs/search is deprecated.", DeprecationWarning
|
|
342
|
+
)
|
|
343
|
+
|
|
344
|
+
_params = locals()
|
|
345
|
+
|
|
346
|
+
_all_params = [
|
|
347
|
+
"filter",
|
|
348
|
+
"page_token",
|
|
349
|
+
"offset",
|
|
350
|
+
"run_view_type",
|
|
351
|
+
"max_results",
|
|
352
|
+
"body_get_search_runs_get",
|
|
353
|
+
]
|
|
354
|
+
_all_params.extend(
|
|
355
|
+
[
|
|
356
|
+
"async_req",
|
|
357
|
+
"_return_http_data_only",
|
|
358
|
+
"_preload_content",
|
|
359
|
+
"_request_timeout",
|
|
360
|
+
"_request_auth",
|
|
361
|
+
"_content_type",
|
|
362
|
+
"_headers",
|
|
363
|
+
]
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
# validate the arguments
|
|
367
|
+
for _key, _val in _params["kwargs"].items():
|
|
368
|
+
if _key not in _all_params:
|
|
369
|
+
raise ApiTypeError(
|
|
370
|
+
"Got an unexpected keyword argument '%s'"
|
|
371
|
+
" to method get_search_runs_get" % _key
|
|
372
|
+
)
|
|
373
|
+
_params[_key] = _val
|
|
374
|
+
del _params["kwargs"]
|
|
375
|
+
|
|
376
|
+
_collection_formats = {}
|
|
377
|
+
|
|
378
|
+
# process the path parameters
|
|
379
|
+
_path_params = {}
|
|
380
|
+
|
|
381
|
+
# process the query parameters
|
|
382
|
+
_query_params = []
|
|
383
|
+
if _params.get("filter") is not None: # noqa: E501
|
|
384
|
+
_query_params.append(("filter", _params["filter"]))
|
|
385
|
+
|
|
386
|
+
if _params.get("page_token") is not None: # noqa: E501
|
|
387
|
+
_query_params.append(("page_token", _params["page_token"]))
|
|
388
|
+
|
|
389
|
+
if _params.get("offset") is not None: # noqa: E501
|
|
390
|
+
_query_params.append(("offset", _params["offset"]))
|
|
391
|
+
|
|
392
|
+
if _params.get("run_view_type") is not None: # noqa: E501
|
|
393
|
+
_query_params.append(("run_view_type", _params["run_view_type"]))
|
|
394
|
+
|
|
395
|
+
if _params.get("max_results") is not None: # noqa: E501
|
|
396
|
+
_query_params.append(("max_results", _params["max_results"]))
|
|
397
|
+
|
|
398
|
+
# process the header parameters
|
|
399
|
+
_header_params = dict(_params.get("_headers", {}))
|
|
400
|
+
# process the form parameters
|
|
401
|
+
_form_params = []
|
|
402
|
+
_files = {}
|
|
403
|
+
# process the body parameter
|
|
404
|
+
_body_params = None
|
|
405
|
+
if _params["body_get_search_runs_get"] is not None:
|
|
406
|
+
_body_params = _params["body_get_search_runs_get"]
|
|
407
|
+
|
|
408
|
+
# set the HTTP header `Accept`
|
|
409
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
410
|
+
["application/json"]
|
|
411
|
+
) # noqa: E501
|
|
412
|
+
|
|
413
|
+
# set the HTTP header `Content-Type`
|
|
414
|
+
_content_types_list = _params.get(
|
|
415
|
+
"_content_type",
|
|
416
|
+
self.api_client.select_header_content_type(["application/json"]),
|
|
417
|
+
)
|
|
418
|
+
if _content_types_list:
|
|
419
|
+
_header_params["Content-Type"] = _content_types_list
|
|
420
|
+
|
|
421
|
+
# authentication setting
|
|
422
|
+
_auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
|
|
423
|
+
|
|
424
|
+
_response_types_map = {
|
|
425
|
+
"200": "SearchRunsResponseDto",
|
|
426
|
+
"422": "HTTPValidationError",
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
return self.api_client.call_api(
|
|
430
|
+
"/api/2.0/preview/mlflow/runs/search",
|
|
431
|
+
"GET",
|
|
432
|
+
_path_params,
|
|
433
|
+
_query_params,
|
|
434
|
+
_header_params,
|
|
435
|
+
body=_body_params,
|
|
436
|
+
post_params=_form_params,
|
|
437
|
+
files=_files,
|
|
438
|
+
response_types_map=_response_types_map,
|
|
439
|
+
auth_settings=_auth_settings,
|
|
440
|
+
async_req=_params.get("async_req"),
|
|
441
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
|
442
|
+
_preload_content=_params.get("_preload_content", True),
|
|
443
|
+
_request_timeout=_params.get("_request_timeout"),
|
|
444
|
+
collection_formats=_collection_formats,
|
|
445
|
+
_request_auth=_params.get("_request_auth"),
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
@validate_arguments
|
|
449
|
+
def get_signed_urls_for_dataset_write_deprecated_get(
|
|
450
|
+
self, dataset_fqn: StrictStr, paths: conlist(StrictStr), **kwargs
|
|
451
|
+
) -> GetSignedURLsForDatasetWriteResponseDto: # noqa: E501
|
|
452
|
+
"""(Deprecated) Get Signed Urls For Dataset Write Deprecated # noqa: E501
|
|
453
|
+
|
|
454
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
455
|
+
asynchronous HTTP request, please pass async_req=True
|
|
456
|
+
|
|
457
|
+
>>> thread = api.get_signed_urls_for_dataset_write_deprecated_get(dataset_fqn, paths, async_req=True)
|
|
458
|
+
>>> result = thread.get()
|
|
459
|
+
|
|
460
|
+
:param dataset_fqn: (required)
|
|
461
|
+
:type dataset_fqn: str
|
|
462
|
+
:param paths: (required)
|
|
463
|
+
:type paths: List[str]
|
|
464
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
465
|
+
:type async_req: bool, optional
|
|
466
|
+
:param _request_timeout: timeout setting for this request.
|
|
467
|
+
If one number provided, it will be total request
|
|
468
|
+
timeout. It can also be a pair (tuple) of
|
|
469
|
+
(connection, read) timeouts.
|
|
470
|
+
:return: Returns the result object.
|
|
471
|
+
If the method is called asynchronously,
|
|
472
|
+
returns the request thread.
|
|
473
|
+
:rtype: GetSignedURLsForDatasetWriteResponseDto
|
|
474
|
+
"""
|
|
475
|
+
kwargs["_return_http_data_only"] = True
|
|
476
|
+
if "_preload_content" in kwargs:
|
|
477
|
+
message = "Error! Please call the get_signed_urls_for_dataset_write_deprecated_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
|
478
|
+
raise ValueError(message)
|
|
479
|
+
return self.get_signed_urls_for_dataset_write_deprecated_get_with_http_info(
|
|
480
|
+
dataset_fqn, paths, **kwargs
|
|
481
|
+
) # noqa: E501
|
|
482
|
+
|
|
483
|
+
@validate_arguments
|
|
484
|
+
def get_signed_urls_for_dataset_write_deprecated_get_with_http_info(
|
|
485
|
+
self, dataset_fqn: StrictStr, paths: conlist(StrictStr), **kwargs
|
|
486
|
+
) -> ApiResponse: # noqa: E501
|
|
487
|
+
"""(Deprecated) Get Signed Urls For Dataset Write Deprecated # noqa: E501
|
|
488
|
+
|
|
489
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
490
|
+
asynchronous HTTP request, please pass async_req=True
|
|
491
|
+
|
|
492
|
+
>>> thread = api.get_signed_urls_for_dataset_write_deprecated_get_with_http_info(dataset_fqn, paths, async_req=True)
|
|
493
|
+
>>> result = thread.get()
|
|
494
|
+
|
|
495
|
+
:param dataset_fqn: (required)
|
|
496
|
+
:type dataset_fqn: str
|
|
497
|
+
:param paths: (required)
|
|
498
|
+
:type paths: List[str]
|
|
499
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
500
|
+
:type async_req: bool, optional
|
|
501
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
502
|
+
be set to none and raw_data will store the
|
|
503
|
+
HTTP response body without reading/decoding.
|
|
504
|
+
Default is True.
|
|
505
|
+
:type _preload_content: bool, optional
|
|
506
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
507
|
+
object with status code, headers, etc
|
|
508
|
+
:type _return_http_data_only: bool, optional
|
|
509
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
510
|
+
number provided, it will be total request
|
|
511
|
+
timeout. It can also be a pair (tuple) of
|
|
512
|
+
(connection, read) timeouts.
|
|
513
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
514
|
+
request; this effectively ignores the authentication
|
|
515
|
+
in the spec for a single request.
|
|
516
|
+
:type _request_auth: dict, optional
|
|
517
|
+
:type _content_type: string, optional: force content-type for the request
|
|
518
|
+
:return: Returns the result object.
|
|
519
|
+
If the method is called asynchronously,
|
|
520
|
+
returns the request thread.
|
|
521
|
+
:rtype: tuple(GetSignedURLsForDatasetWriteResponseDto, status_code(int), headers(HTTPHeaderDict))
|
|
522
|
+
"""
|
|
523
|
+
|
|
524
|
+
warnings.warn(
|
|
525
|
+
"GET /api/2.0/mlflow/mlfoundry-artifacts/datasets/get-signed-urls-for-write is deprecated.",
|
|
526
|
+
DeprecationWarning,
|
|
527
|
+
)
|
|
528
|
+
|
|
529
|
+
_params = locals()
|
|
530
|
+
|
|
531
|
+
_all_params = ["dataset_fqn", "paths"]
|
|
532
|
+
_all_params.extend(
|
|
533
|
+
[
|
|
534
|
+
"async_req",
|
|
535
|
+
"_return_http_data_only",
|
|
536
|
+
"_preload_content",
|
|
537
|
+
"_request_timeout",
|
|
538
|
+
"_request_auth",
|
|
539
|
+
"_content_type",
|
|
540
|
+
"_headers",
|
|
541
|
+
]
|
|
542
|
+
)
|
|
543
|
+
|
|
544
|
+
# validate the arguments
|
|
545
|
+
for _key, _val in _params["kwargs"].items():
|
|
546
|
+
if _key not in _all_params:
|
|
547
|
+
raise ApiTypeError(
|
|
548
|
+
"Got an unexpected keyword argument '%s'"
|
|
549
|
+
" to method get_signed_urls_for_dataset_write_deprecated_get" % _key
|
|
550
|
+
)
|
|
551
|
+
_params[_key] = _val
|
|
552
|
+
del _params["kwargs"]
|
|
553
|
+
|
|
554
|
+
_collection_formats = {}
|
|
555
|
+
|
|
556
|
+
# process the path parameters
|
|
557
|
+
_path_params = {}
|
|
558
|
+
|
|
559
|
+
# process the query parameters
|
|
560
|
+
_query_params = []
|
|
561
|
+
if _params.get("dataset_fqn") is not None: # noqa: E501
|
|
562
|
+
_query_params.append(("dataset_fqn", _params["dataset_fqn"]))
|
|
563
|
+
|
|
564
|
+
if _params.get("paths") is not None: # noqa: E501
|
|
565
|
+
_query_params.append(("paths", _params["paths"]))
|
|
566
|
+
_collection_formats["paths"] = "multi"
|
|
567
|
+
|
|
568
|
+
# process the header parameters
|
|
569
|
+
_header_params = dict(_params.get("_headers", {}))
|
|
570
|
+
# process the form parameters
|
|
571
|
+
_form_params = []
|
|
572
|
+
_files = {}
|
|
573
|
+
# process the body parameter
|
|
574
|
+
_body_params = None
|
|
575
|
+
# set the HTTP header `Accept`
|
|
576
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
577
|
+
["application/json"]
|
|
578
|
+
) # noqa: E501
|
|
579
|
+
|
|
580
|
+
# authentication setting
|
|
581
|
+
_auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
|
|
582
|
+
|
|
583
|
+
_response_types_map = {
|
|
584
|
+
"200": "GetSignedURLsForDatasetWriteResponseDto",
|
|
585
|
+
"422": "HTTPValidationError",
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
return self.api_client.call_api(
|
|
589
|
+
"/api/2.0/mlflow/mlfoundry-artifacts/datasets/get-signed-urls-for-write",
|
|
590
|
+
"GET",
|
|
591
|
+
_path_params,
|
|
592
|
+
_query_params,
|
|
593
|
+
_header_params,
|
|
594
|
+
body=_body_params,
|
|
595
|
+
post_params=_form_params,
|
|
596
|
+
files=_files,
|
|
597
|
+
response_types_map=_response_types_map,
|
|
598
|
+
auth_settings=_auth_settings,
|
|
599
|
+
async_req=_params.get("async_req"),
|
|
600
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
|
601
|
+
_preload_content=_params.get("_preload_content", True),
|
|
602
|
+
_request_timeout=_params.get("_request_timeout"),
|
|
603
|
+
collection_formats=_collection_formats,
|
|
604
|
+
_request_auth=_params.get("_request_auth"),
|
|
605
|
+
)
|