truefoundry 0.4.9rc1__py3-none-any.whl → 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of truefoundry might be problematic. Click here for more details.
- truefoundry/deploy/__init__.py +5 -0
- truefoundry/deploy/builder/builders/tfy_python_buildpack/dockerfile_template.py +2 -2
- truefoundry/deploy/lib/dao/application.py +2 -1
- truefoundry/deploy/v2/lib/patched_models.py +8 -0
- truefoundry/ml/__init__.py +41 -1
- truefoundry/ml/autogen/client/__init__.py +44 -14
- truefoundry/ml/autogen/client/api/__init__.py +3 -3
- truefoundry/ml/autogen/client/api/deprecated_api.py +333 -0
- truefoundry/ml/autogen/client/api/generate_code_snippet_api.py +526 -0
- 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 +41 -11
- 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_dto.py +3 -5
- truefoundry/ml/autogen/client/models/artifact_version_manifest.py +111 -0
- 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/command.py +152 -0
- truefoundry/ml/autogen/client/models/{feature_dto.py → create_workflow_task_config_request_dto.py} +18 -14
- truefoundry/ml/autogen/client/models/{external_model_source.py → external_artifact_source.py} +12 -11
- truefoundry/ml/autogen/client/models/fast_ai_framework.py +75 -0
- truefoundry/ml/autogen/client/models/finalize_artifact_version_request_dto.py +3 -5
- truefoundry/ml/autogen/client/models/framework.py +250 -14
- truefoundry/ml/autogen/client/models/gluon_framework.py +74 -0
- truefoundry/ml/autogen/client/models/{upload_model_source.py → h2_o_framework.py} +11 -11
- truefoundry/ml/autogen/client/models/image_content_part.py +1 -1
- truefoundry/ml/autogen/client/models/keras_framework.py +74 -0
- truefoundry/ml/autogen/client/models/light_gbm_framework.py +75 -0
- truefoundry/ml/autogen/client/models/manifest.py +154 -0
- truefoundry/ml/autogen/client/models/model_version_dto.py +7 -8
- truefoundry/ml/autogen/client/models/model_version_environment.py +97 -0
- truefoundry/ml/autogen/client/models/model_version_manifest.py +30 -6
- truefoundry/ml/autogen/client/models/onnx_framework.py +74 -0
- truefoundry/ml/autogen/client/models/paddle_framework.py +75 -0
- truefoundry/ml/autogen/client/models/py_torch_framework.py +75 -0
- truefoundry/ml/autogen/client/models/{feature_value_type.py → serialization_format.py} +8 -8
- truefoundry/ml/autogen/client/models/sklearn_framework.py +92 -0
- truefoundry/ml/autogen/client/models/source.py +23 -46
- truefoundry/ml/autogen/client/models/source1.py +154 -0
- truefoundry/ml/autogen/client/models/spa_cy_framework.py +74 -0
- truefoundry/ml/autogen/client/models/stats_models_framework.py +75 -0
- truefoundry/ml/autogen/client/models/system_message.py +1 -1
- truefoundry/ml/autogen/client/models/{tensorflow_framework.py → tensor_flow_framework.py} +11 -10
- truefoundry/ml/autogen/client/models/text_content_part.py +1 -1
- truefoundry/ml/autogen/client/models/transformers_framework.py +10 -4
- truefoundry/ml/autogen/client/models/trigger_job_run_config_request_dto.py +90 -0
- truefoundry/ml/autogen/client/models/trigger_job_run_config_response_dto.py +71 -0
- truefoundry/ml/autogen/client/models/{truefoundry_model_source.py → true_foundry_artifact_source.py} +13 -11
- truefoundry/ml/autogen/client/models/update_artifact_version_request_dto.py +11 -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 +92 -0
- truefoundry/ml/autogen/client_README.md +30 -12
- truefoundry/ml/autogen/entities/artifacts.py +87 -9
- 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/ml/log_types/artifacts/artifact.py +131 -63
- truefoundry/ml/log_types/artifacts/general_artifact.py +7 -26
- truefoundry/ml/log_types/artifacts/model.py +195 -197
- truefoundry/ml/mlfoundry_api.py +47 -52
- truefoundry/ml/mlfoundry_run.py +35 -43
- truefoundry/ml/model_framework.py +169 -0
- {truefoundry-0.4.9rc1.dist-info → truefoundry-0.5.0.dist-info}/METADATA +1 -1
- {truefoundry-0.4.9rc1.dist-info → truefoundry-0.5.0.dist-info}/RECORD +75 -53
- truefoundry/ml/autogen/client/api/python_deployment_config_api.py +0 -201
- truefoundry/ml/autogen/client/models/model_schema_dto.py +0 -85
- truefoundry/ml/autogen/client/models/prediction_type.py +0 -34
- {truefoundry-0.4.9rc1.dist-info → truefoundry-0.5.0.dist-info}/WHEEL +0 -0
- {truefoundry-0.4.9rc1.dist-info → truefoundry-0.5.0.dist-info}/entry_points.txt +0 -0
|
@@ -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,
|
|
@@ -51,6 +60,330 @@ class DeprecatedApi:
|
|
|
51
60
|
api_client = ApiClient.get_default()
|
|
52
61
|
self.api_client = api_client
|
|
53
62
|
|
|
63
|
+
@validate_arguments
|
|
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
|
+
|
|
54
387
|
@validate_arguments
|
|
55
388
|
def get_run_by_name_get(
|
|
56
389
|
self,
|