truefoundry 0.5.0rc5__py3-none-any.whl → 0.5.0rc6__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/ml/autogen/client/__init__.py +0 -4
- truefoundry/ml/autogen/client/api/deprecated_api.py +340 -7
- truefoundry/ml/autogen/client/api/mlfoundry_artifacts_api.py +0 -322
- truefoundry/ml/autogen/client/api_client.py +8 -1
- truefoundry/ml/autogen/client/models/__init__.py +0 -4
- truefoundry/ml/autogen/client/models/add_features_to_model_version_request_dto.py +3 -17
- truefoundry/ml/autogen/client/models/agent.py +1 -1
- truefoundry/ml/autogen/client/models/agent_app.py +1 -1
- truefoundry/ml/autogen/client/models/agent_open_api_tool.py +1 -1
- truefoundry/ml/autogen/client/models/agent_open_api_tool_with_fqn.py +1 -1
- truefoundry/ml/autogen/client/models/agent_with_fqn.py +1 -1
- truefoundry/ml/autogen/client/models/artifact_version_manifest.py +1 -1
- truefoundry/ml/autogen/client/models/assistant_message.py +1 -1
- truefoundry/ml/autogen/client/models/blob_storage_reference.py +1 -1
- truefoundry/ml/autogen/client/models/chat_prompt.py +1 -1
- truefoundry/ml/autogen/client/models/external_artifact_source.py +1 -1
- truefoundry/ml/autogen/client/models/fast_ai_framework.py +1 -1
- truefoundry/ml/autogen/client/models/gluon_framework.py +1 -1
- truefoundry/ml/autogen/client/models/h2_o_framework.py +1 -1
- truefoundry/ml/autogen/client/models/image_content_part.py +1 -1
- truefoundry/ml/autogen/client/models/keras_framework.py +1 -1
- truefoundry/ml/autogen/client/models/light_gbm_framework.py +1 -1
- truefoundry/ml/autogen/client/models/model_version_dto.py +7 -8
- truefoundry/ml/autogen/client/models/model_version_manifest.py +1 -1
- truefoundry/ml/autogen/client/models/onnx_framework.py +1 -1
- truefoundry/ml/autogen/client/models/paddle_framework.py +1 -1
- truefoundry/ml/autogen/client/models/py_torch_framework.py +1 -1
- truefoundry/ml/autogen/client/models/sklearn_framework.py +1 -1
- truefoundry/ml/autogen/client/models/spa_cy_framework.py +1 -1
- truefoundry/ml/autogen/client/models/stats_models_framework.py +1 -1
- truefoundry/ml/autogen/client/models/system_message.py +1 -1
- truefoundry/ml/autogen/client/models/tensor_flow_framework.py +1 -1
- truefoundry/ml/autogen/client/models/text_content_part.py +1 -1
- truefoundry/ml/autogen/client/models/transformers_framework.py +1 -1
- truefoundry/ml/autogen/client/models/true_foundry_artifact_source.py +1 -1
- truefoundry/ml/autogen/client/models/update_model_version_request_dto.py +1 -13
- truefoundry/ml/autogen/client/models/user_message.py +1 -1
- truefoundry/ml/autogen/client/models/xg_boost_framework.py +1 -1
- truefoundry/ml/autogen/client_README.md +4 -8
- truefoundry/ml/autogen/models/__init__.py +4 -0
- truefoundry/ml/autogen/models/exceptions.py +30 -0
- truefoundry/ml/autogen/models/schema.py +1547 -0
- truefoundry/ml/autogen/models/signature.py +139 -0
- truefoundry/ml/autogen/models/utils.py +699 -0
- {truefoundry-0.5.0rc5.dist-info → truefoundry-0.5.0rc6.dist-info}/METADATA +1 -1
- {truefoundry-0.5.0rc5.dist-info → truefoundry-0.5.0rc6.dist-info}/RECORD +48 -47
- truefoundry/ml/autogen/client/models/feature_dto.py +0 -68
- truefoundry/ml/autogen/client/models/feature_value_type.py +0 -35
- truefoundry/ml/autogen/client/models/model_schema_dto.py +0 -85
- truefoundry/ml/autogen/client/models/prediction_type.py +0 -34
- {truefoundry-0.5.0rc5.dist-info → truefoundry-0.5.0rc6.dist-info}/WHEEL +0 -0
- {truefoundry-0.5.0rc5.dist-info → truefoundry-0.5.0rc6.dist-info}/entry_points.txt +0 -0
|
@@ -176,8 +176,6 @@ from truefoundry.ml.autogen.client.models.external_artifact_source import (
|
|
|
176
176
|
ExternalArtifactSource,
|
|
177
177
|
)
|
|
178
178
|
from truefoundry.ml.autogen.client.models.fast_ai_framework import FastAIFramework
|
|
179
|
-
from truefoundry.ml.autogen.client.models.feature_dto import FeatureDto
|
|
180
|
-
from truefoundry.ml.autogen.client.models.feature_value_type import FeatureValueType
|
|
181
179
|
from truefoundry.ml.autogen.client.models.file_info_dto import FileInfoDto
|
|
182
180
|
from truefoundry.ml.autogen.client.models.finalize_artifact_version_request_dto import (
|
|
183
181
|
FinalizeArtifactVersionRequestDto,
|
|
@@ -313,7 +311,6 @@ from truefoundry.ml.autogen.client.models.mime_type import MimeType
|
|
|
313
311
|
from truefoundry.ml.autogen.client.models.model_configuration import ModelConfiguration
|
|
314
312
|
from truefoundry.ml.autogen.client.models.model_dto import ModelDto
|
|
315
313
|
from truefoundry.ml.autogen.client.models.model_response_dto import ModelResponseDto
|
|
316
|
-
from truefoundry.ml.autogen.client.models.model_schema_dto import ModelSchemaDto
|
|
317
314
|
from truefoundry.ml.autogen.client.models.model_version_dto import ModelVersionDto
|
|
318
315
|
from truefoundry.ml.autogen.client.models.model_version_manifest import (
|
|
319
316
|
ModelVersionManifest,
|
|
@@ -338,7 +335,6 @@ from truefoundry.ml.autogen.client.models.openapi_spec import OpenapiSpec
|
|
|
338
335
|
from truefoundry.ml.autogen.client.models.paddle_framework import PaddleFramework
|
|
339
336
|
from truefoundry.ml.autogen.client.models.param_dto import ParamDto
|
|
340
337
|
from truefoundry.ml.autogen.client.models.parameters import Parameters
|
|
341
|
-
from truefoundry.ml.autogen.client.models.prediction_type import PredictionType
|
|
342
338
|
from truefoundry.ml.autogen.client.models.py_torch_framework import PyTorchFramework
|
|
343
339
|
from truefoundry.ml.autogen.client.models.resolve_agent_app_response_dto import (
|
|
344
340
|
ResolveAgentAppResponseDto,
|
|
@@ -21,12 +21,21 @@ from truefoundry.ml.autogen.client.exceptions import ( # noqa: F401
|
|
|
21
21
|
ApiTypeError,
|
|
22
22
|
ApiValueError,
|
|
23
23
|
)
|
|
24
|
+
from truefoundry.ml.autogen.client.models.add_custom_metrics_to_model_version_request_dto import (
|
|
25
|
+
AddCustomMetricsToModelVersionRequestDto,
|
|
26
|
+
)
|
|
27
|
+
from truefoundry.ml.autogen.client.models.add_features_to_model_version_request_dto import (
|
|
28
|
+
AddFeaturesToModelVersionRequestDto,
|
|
29
|
+
)
|
|
24
30
|
from truefoundry.ml.autogen.client.models.body_get_search_runs_get import (
|
|
25
31
|
BodyGetSearchRunsGet,
|
|
26
32
|
)
|
|
27
33
|
from truefoundry.ml.autogen.client.models.get_signed_urls_for_dataset_write_response_dto import (
|
|
28
34
|
GetSignedURLsForDatasetWriteResponseDto,
|
|
29
35
|
)
|
|
36
|
+
from truefoundry.ml.autogen.client.models.model_version_response_dto import (
|
|
37
|
+
ModelVersionResponseDto,
|
|
38
|
+
)
|
|
30
39
|
from truefoundry.ml.autogen.client.models.run_response_dto import RunResponseDto
|
|
31
40
|
from truefoundry.ml.autogen.client.models.search_runs_response_dto import (
|
|
32
41
|
SearchRunsResponseDto,
|
|
@@ -52,7 +61,331 @@ class DeprecatedApi:
|
|
|
52
61
|
self.api_client = api_client
|
|
53
62
|
|
|
54
63
|
@validate_arguments
|
|
55
|
-
def
|
|
64
|
+
def add_custom_metrics_to_model_version_post(
|
|
65
|
+
self,
|
|
66
|
+
add_custom_metrics_to_model_version_request_dto: AddCustomMetricsToModelVersionRequestDto,
|
|
67
|
+
**kwargs,
|
|
68
|
+
) -> ModelVersionResponseDto: # noqa: E501
|
|
69
|
+
"""(Deprecated) Add Custom Metrics To Model Version # noqa: E501
|
|
70
|
+
|
|
71
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
72
|
+
asynchronous HTTP request, please pass async_req=True
|
|
73
|
+
|
|
74
|
+
>>> thread = api.add_custom_metrics_to_model_version_post(add_custom_metrics_to_model_version_request_dto, async_req=True)
|
|
75
|
+
>>> result = thread.get()
|
|
76
|
+
|
|
77
|
+
:param add_custom_metrics_to_model_version_request_dto: (required)
|
|
78
|
+
:type add_custom_metrics_to_model_version_request_dto: AddCustomMetricsToModelVersionRequestDto
|
|
79
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
80
|
+
:type async_req: bool, optional
|
|
81
|
+
:param _request_timeout: timeout setting for this request.
|
|
82
|
+
If one number provided, it will be total request
|
|
83
|
+
timeout. It can also be a pair (tuple) of
|
|
84
|
+
(connection, read) timeouts.
|
|
85
|
+
:return: Returns the result object.
|
|
86
|
+
If the method is called asynchronously,
|
|
87
|
+
returns the request thread.
|
|
88
|
+
:rtype: ModelVersionResponseDto
|
|
89
|
+
"""
|
|
90
|
+
kwargs["_return_http_data_only"] = True
|
|
91
|
+
if "_preload_content" in kwargs:
|
|
92
|
+
message = "Error! Please call the add_custom_metrics_to_model_version_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
|
93
|
+
raise ValueError(message)
|
|
94
|
+
return self.add_custom_metrics_to_model_version_post_with_http_info(
|
|
95
|
+
add_custom_metrics_to_model_version_request_dto, **kwargs
|
|
96
|
+
) # noqa: E501
|
|
97
|
+
|
|
98
|
+
@validate_arguments
|
|
99
|
+
def add_custom_metrics_to_model_version_post_with_http_info(
|
|
100
|
+
self,
|
|
101
|
+
add_custom_metrics_to_model_version_request_dto: AddCustomMetricsToModelVersionRequestDto,
|
|
102
|
+
**kwargs,
|
|
103
|
+
) -> ApiResponse: # noqa: E501
|
|
104
|
+
"""(Deprecated) Add Custom Metrics To Model Version # noqa: E501
|
|
105
|
+
|
|
106
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
107
|
+
asynchronous HTTP request, please pass async_req=True
|
|
108
|
+
|
|
109
|
+
>>> thread = api.add_custom_metrics_to_model_version_post_with_http_info(add_custom_metrics_to_model_version_request_dto, async_req=True)
|
|
110
|
+
>>> result = thread.get()
|
|
111
|
+
|
|
112
|
+
:param add_custom_metrics_to_model_version_request_dto: (required)
|
|
113
|
+
:type add_custom_metrics_to_model_version_request_dto: AddCustomMetricsToModelVersionRequestDto
|
|
114
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
115
|
+
:type async_req: bool, optional
|
|
116
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
117
|
+
be set to none and raw_data will store the
|
|
118
|
+
HTTP response body without reading/decoding.
|
|
119
|
+
Default is True.
|
|
120
|
+
:type _preload_content: bool, optional
|
|
121
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
122
|
+
object with status code, headers, etc
|
|
123
|
+
:type _return_http_data_only: bool, optional
|
|
124
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
125
|
+
number provided, it will be total request
|
|
126
|
+
timeout. It can also be a pair (tuple) of
|
|
127
|
+
(connection, read) timeouts.
|
|
128
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
129
|
+
request; this effectively ignores the authentication
|
|
130
|
+
in the spec for a single request.
|
|
131
|
+
:type _request_auth: dict, optional
|
|
132
|
+
:type _content_type: string, optional: force content-type for the request
|
|
133
|
+
:return: Returns the result object.
|
|
134
|
+
If the method is called asynchronously,
|
|
135
|
+
returns the request thread.
|
|
136
|
+
:rtype: tuple(ModelVersionResponseDto, status_code(int), headers(HTTPHeaderDict))
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
warnings.warn(
|
|
140
|
+
"POST /model-versions/custom-metrics/add is deprecated.", DeprecationWarning
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
_params = locals()
|
|
144
|
+
|
|
145
|
+
_all_params = ["add_custom_metrics_to_model_version_request_dto"]
|
|
146
|
+
_all_params.extend(
|
|
147
|
+
[
|
|
148
|
+
"async_req",
|
|
149
|
+
"_return_http_data_only",
|
|
150
|
+
"_preload_content",
|
|
151
|
+
"_request_timeout",
|
|
152
|
+
"_request_auth",
|
|
153
|
+
"_content_type",
|
|
154
|
+
"_headers",
|
|
155
|
+
]
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
# validate the arguments
|
|
159
|
+
for _key, _val in _params["kwargs"].items():
|
|
160
|
+
if _key not in _all_params:
|
|
161
|
+
raise ApiTypeError(
|
|
162
|
+
"Got an unexpected keyword argument '%s'"
|
|
163
|
+
" to method add_custom_metrics_to_model_version_post" % _key
|
|
164
|
+
)
|
|
165
|
+
_params[_key] = _val
|
|
166
|
+
del _params["kwargs"]
|
|
167
|
+
|
|
168
|
+
_collection_formats = {}
|
|
169
|
+
|
|
170
|
+
# process the path parameters
|
|
171
|
+
_path_params = {}
|
|
172
|
+
|
|
173
|
+
# process the query parameters
|
|
174
|
+
_query_params = []
|
|
175
|
+
# process the header parameters
|
|
176
|
+
_header_params = dict(_params.get("_headers", {}))
|
|
177
|
+
# process the form parameters
|
|
178
|
+
_form_params = []
|
|
179
|
+
_files = {}
|
|
180
|
+
# process the body parameter
|
|
181
|
+
_body_params = None
|
|
182
|
+
if _params["add_custom_metrics_to_model_version_request_dto"] is not None:
|
|
183
|
+
_body_params = _params["add_custom_metrics_to_model_version_request_dto"]
|
|
184
|
+
|
|
185
|
+
# set the HTTP header `Accept`
|
|
186
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
187
|
+
["application/json"]
|
|
188
|
+
) # noqa: E501
|
|
189
|
+
|
|
190
|
+
# set the HTTP header `Content-Type`
|
|
191
|
+
_content_types_list = _params.get(
|
|
192
|
+
"_content_type",
|
|
193
|
+
self.api_client.select_header_content_type(["application/json"]),
|
|
194
|
+
)
|
|
195
|
+
if _content_types_list:
|
|
196
|
+
_header_params["Content-Type"] = _content_types_list
|
|
197
|
+
|
|
198
|
+
# authentication setting
|
|
199
|
+
_auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
|
|
200
|
+
|
|
201
|
+
_response_types_map = {
|
|
202
|
+
"200": "ModelVersionResponseDto",
|
|
203
|
+
"422": "HTTPValidationError",
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return self.api_client.call_api(
|
|
207
|
+
"/model-versions/custom-metrics/add",
|
|
208
|
+
"POST",
|
|
209
|
+
_path_params,
|
|
210
|
+
_query_params,
|
|
211
|
+
_header_params,
|
|
212
|
+
body=_body_params,
|
|
213
|
+
post_params=_form_params,
|
|
214
|
+
files=_files,
|
|
215
|
+
response_types_map=_response_types_map,
|
|
216
|
+
auth_settings=_auth_settings,
|
|
217
|
+
async_req=_params.get("async_req"),
|
|
218
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
|
219
|
+
_preload_content=_params.get("_preload_content", True),
|
|
220
|
+
_request_timeout=_params.get("_request_timeout"),
|
|
221
|
+
collection_formats=_collection_formats,
|
|
222
|
+
_request_auth=_params.get("_request_auth"),
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
@validate_arguments
|
|
226
|
+
def add_features_to_model_version_post(
|
|
227
|
+
self,
|
|
228
|
+
add_features_to_model_version_request_dto: AddFeaturesToModelVersionRequestDto,
|
|
229
|
+
**kwargs,
|
|
230
|
+
) -> ModelVersionResponseDto: # noqa: E501
|
|
231
|
+
"""(Deprecated) Add Features To Model Version # noqa: E501
|
|
232
|
+
|
|
233
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
234
|
+
asynchronous HTTP request, please pass async_req=True
|
|
235
|
+
|
|
236
|
+
>>> thread = api.add_features_to_model_version_post(add_features_to_model_version_request_dto, async_req=True)
|
|
237
|
+
>>> result = thread.get()
|
|
238
|
+
|
|
239
|
+
:param add_features_to_model_version_request_dto: (required)
|
|
240
|
+
:type add_features_to_model_version_request_dto: AddFeaturesToModelVersionRequestDto
|
|
241
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
242
|
+
:type async_req: bool, optional
|
|
243
|
+
:param _request_timeout: timeout setting for this request.
|
|
244
|
+
If one number provided, it will be total request
|
|
245
|
+
timeout. It can also be a pair (tuple) of
|
|
246
|
+
(connection, read) timeouts.
|
|
247
|
+
:return: Returns the result object.
|
|
248
|
+
If the method is called asynchronously,
|
|
249
|
+
returns the request thread.
|
|
250
|
+
:rtype: ModelVersionResponseDto
|
|
251
|
+
"""
|
|
252
|
+
kwargs["_return_http_data_only"] = True
|
|
253
|
+
if "_preload_content" in kwargs:
|
|
254
|
+
message = "Error! Please call the add_features_to_model_version_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
|
255
|
+
raise ValueError(message)
|
|
256
|
+
return self.add_features_to_model_version_post_with_http_info(
|
|
257
|
+
add_features_to_model_version_request_dto, **kwargs
|
|
258
|
+
) # noqa: E501
|
|
259
|
+
|
|
260
|
+
@validate_arguments
|
|
261
|
+
def add_features_to_model_version_post_with_http_info(
|
|
262
|
+
self,
|
|
263
|
+
add_features_to_model_version_request_dto: AddFeaturesToModelVersionRequestDto,
|
|
264
|
+
**kwargs,
|
|
265
|
+
) -> ApiResponse: # noqa: E501
|
|
266
|
+
"""(Deprecated) Add Features To Model Version # noqa: E501
|
|
267
|
+
|
|
268
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
269
|
+
asynchronous HTTP request, please pass async_req=True
|
|
270
|
+
|
|
271
|
+
>>> thread = api.add_features_to_model_version_post_with_http_info(add_features_to_model_version_request_dto, async_req=True)
|
|
272
|
+
>>> result = thread.get()
|
|
273
|
+
|
|
274
|
+
:param add_features_to_model_version_request_dto: (required)
|
|
275
|
+
:type add_features_to_model_version_request_dto: AddFeaturesToModelVersionRequestDto
|
|
276
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
277
|
+
:type async_req: bool, optional
|
|
278
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
279
|
+
be set to none and raw_data will store the
|
|
280
|
+
HTTP response body without reading/decoding.
|
|
281
|
+
Default is True.
|
|
282
|
+
:type _preload_content: bool, optional
|
|
283
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
284
|
+
object with status code, headers, etc
|
|
285
|
+
:type _return_http_data_only: bool, optional
|
|
286
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
287
|
+
number provided, it will be total request
|
|
288
|
+
timeout. It can also be a pair (tuple) of
|
|
289
|
+
(connection, read) timeouts.
|
|
290
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
291
|
+
request; this effectively ignores the authentication
|
|
292
|
+
in the spec for a single request.
|
|
293
|
+
:type _request_auth: dict, optional
|
|
294
|
+
:type _content_type: string, optional: force content-type for the request
|
|
295
|
+
:return: Returns the result object.
|
|
296
|
+
If the method is called asynchronously,
|
|
297
|
+
returns the request thread.
|
|
298
|
+
:rtype: tuple(ModelVersionResponseDto, status_code(int), headers(HTTPHeaderDict))
|
|
299
|
+
"""
|
|
300
|
+
|
|
301
|
+
warnings.warn(
|
|
302
|
+
"POST /model-versions/features/add is deprecated.", DeprecationWarning
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
_params = locals()
|
|
306
|
+
|
|
307
|
+
_all_params = ["add_features_to_model_version_request_dto"]
|
|
308
|
+
_all_params.extend(
|
|
309
|
+
[
|
|
310
|
+
"async_req",
|
|
311
|
+
"_return_http_data_only",
|
|
312
|
+
"_preload_content",
|
|
313
|
+
"_request_timeout",
|
|
314
|
+
"_request_auth",
|
|
315
|
+
"_content_type",
|
|
316
|
+
"_headers",
|
|
317
|
+
]
|
|
318
|
+
)
|
|
319
|
+
|
|
320
|
+
# validate the arguments
|
|
321
|
+
for _key, _val in _params["kwargs"].items():
|
|
322
|
+
if _key not in _all_params:
|
|
323
|
+
raise ApiTypeError(
|
|
324
|
+
"Got an unexpected keyword argument '%s'"
|
|
325
|
+
" to method add_features_to_model_version_post" % _key
|
|
326
|
+
)
|
|
327
|
+
_params[_key] = _val
|
|
328
|
+
del _params["kwargs"]
|
|
329
|
+
|
|
330
|
+
_collection_formats = {}
|
|
331
|
+
|
|
332
|
+
# process the path parameters
|
|
333
|
+
_path_params = {}
|
|
334
|
+
|
|
335
|
+
# process the query parameters
|
|
336
|
+
_query_params = []
|
|
337
|
+
# process the header parameters
|
|
338
|
+
_header_params = dict(_params.get("_headers", {}))
|
|
339
|
+
# process the form parameters
|
|
340
|
+
_form_params = []
|
|
341
|
+
_files = {}
|
|
342
|
+
# process the body parameter
|
|
343
|
+
_body_params = None
|
|
344
|
+
if _params["add_features_to_model_version_request_dto"] is not None:
|
|
345
|
+
_body_params = _params["add_features_to_model_version_request_dto"]
|
|
346
|
+
|
|
347
|
+
# set the HTTP header `Accept`
|
|
348
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
349
|
+
["application/json"]
|
|
350
|
+
) # noqa: E501
|
|
351
|
+
|
|
352
|
+
# set the HTTP header `Content-Type`
|
|
353
|
+
_content_types_list = _params.get(
|
|
354
|
+
"_content_type",
|
|
355
|
+
self.api_client.select_header_content_type(["application/json"]),
|
|
356
|
+
)
|
|
357
|
+
if _content_types_list:
|
|
358
|
+
_header_params["Content-Type"] = _content_types_list
|
|
359
|
+
|
|
360
|
+
# authentication setting
|
|
361
|
+
_auth_settings = ["HTTPBearer", "APIKeyCookie"] # noqa: E501
|
|
362
|
+
|
|
363
|
+
_response_types_map = {
|
|
364
|
+
"200": "ModelVersionResponseDto",
|
|
365
|
+
"422": "HTTPValidationError",
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
return self.api_client.call_api(
|
|
369
|
+
"/model-versions/features/add",
|
|
370
|
+
"POST",
|
|
371
|
+
_path_params,
|
|
372
|
+
_query_params,
|
|
373
|
+
_header_params,
|
|
374
|
+
body=_body_params,
|
|
375
|
+
post_params=_form_params,
|
|
376
|
+
files=_files,
|
|
377
|
+
response_types_map=_response_types_map,
|
|
378
|
+
auth_settings=_auth_settings,
|
|
379
|
+
async_req=_params.get("async_req"),
|
|
380
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
|
381
|
+
_preload_content=_params.get("_preload_content", True),
|
|
382
|
+
_request_timeout=_params.get("_request_timeout"),
|
|
383
|
+
collection_formats=_collection_formats,
|
|
384
|
+
_request_auth=_params.get("_request_auth"),
|
|
385
|
+
)
|
|
386
|
+
|
|
387
|
+
@validate_arguments
|
|
388
|
+
def get_run_by_name_get(
|
|
56
389
|
self,
|
|
57
390
|
run_name: StrictStr,
|
|
58
391
|
experiment_id: Optional[StrictStr] = None,
|
|
@@ -65,7 +398,7 @@ class DeprecatedApi:
|
|
|
65
398
|
This method makes a synchronous HTTP request by default. To make an
|
|
66
399
|
asynchronous HTTP request, please pass async_req=True
|
|
67
400
|
|
|
68
|
-
>>> thread = api.
|
|
401
|
+
>>> thread = api.get_run_by_name_get(run_name, experiment_id, experiment_name, async_req=True)
|
|
69
402
|
>>> result = thread.get()
|
|
70
403
|
|
|
71
404
|
:param run_name: (required)
|
|
@@ -87,14 +420,14 @@ class DeprecatedApi:
|
|
|
87
420
|
"""
|
|
88
421
|
kwargs["_return_http_data_only"] = True
|
|
89
422
|
if "_preload_content" in kwargs:
|
|
90
|
-
message = "Error! Please call the
|
|
423
|
+
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
424
|
raise ValueError(message)
|
|
92
|
-
return self.
|
|
425
|
+
return self.get_run_by_name_get_with_http_info(
|
|
93
426
|
run_name, experiment_id, experiment_name, **kwargs
|
|
94
427
|
) # noqa: E501
|
|
95
428
|
|
|
96
429
|
@validate_arguments
|
|
97
|
-
def
|
|
430
|
+
def get_run_by_name_get_with_http_info(
|
|
98
431
|
self,
|
|
99
432
|
run_name: StrictStr,
|
|
100
433
|
experiment_id: Optional[StrictStr] = None,
|
|
@@ -107,7 +440,7 @@ class DeprecatedApi:
|
|
|
107
440
|
This method makes a synchronous HTTP request by default. To make an
|
|
108
441
|
asynchronous HTTP request, please pass async_req=True
|
|
109
442
|
|
|
110
|
-
>>> thread = api.
|
|
443
|
+
>>> thread = api.get_run_by_name_get_with_http_info(run_name, experiment_id, experiment_name, async_req=True)
|
|
111
444
|
>>> result = thread.get()
|
|
112
445
|
|
|
113
446
|
:param run_name: (required)
|
|
@@ -165,7 +498,7 @@ class DeprecatedApi:
|
|
|
165
498
|
if _key not in _all_params:
|
|
166
499
|
raise ApiTypeError(
|
|
167
500
|
"Got an unexpected keyword argument '%s'"
|
|
168
|
-
" to method
|
|
501
|
+
" to method get_run_by_name_get" % _key
|
|
169
502
|
)
|
|
170
503
|
_params[_key] = _val
|
|
171
504
|
del _params["kwargs"]
|