truefoundry 0.5.9__py3-none-any.whl → 0.5.10__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/display_util.py +1 -1
- truefoundry/common/utils.py +9 -0
- truefoundry/deploy/auto_gen/models.py +1 -1
- truefoundry/deploy/io/output_callback.py +13 -6
- truefoundry/deploy/io/rich_output_callback.py +8 -4
- truefoundry/deploy/lib/clients/servicefoundry_client.py +115 -136
- truefoundry/deploy/lib/dao/apply.py +2 -2
- truefoundry/deploy/lib/dao/delete.py +2 -2
- truefoundry/deploy/lib/model/entity.py +37 -24
- truefoundry/ml/autogen/client/__init__.py +22 -14
- truefoundry/ml/autogen/client/api/auth_api.py +2 -2
- truefoundry/ml/autogen/client/api/deprecated_api.py +5 -338
- truefoundry/ml/autogen/client/api/experiments_api.py +77 -32
- truefoundry/ml/autogen/client/api/generate_code_snippet_api.py +2 -2
- truefoundry/ml/autogen/client/api/health_api.py +2 -2
- truefoundry/ml/autogen/client/api/metrics_api.py +4 -4
- truefoundry/ml/autogen/client/api/mlfoundry_artifacts_api.py +530 -140
- truefoundry/ml/autogen/client/api/run_artifacts_api.py +10 -5
- truefoundry/ml/autogen/client/api/runs_api.py +20 -20
- truefoundry/ml/autogen/client/api_client.py +2 -2
- truefoundry/ml/autogen/client/configuration.py +29 -57
- truefoundry/ml/autogen/client/exceptions.py +2 -2
- truefoundry/ml/autogen/client/models/__init__.py +22 -14
- truefoundry/ml/autogen/client/models/agent_app.py +13 -5
- truefoundry/ml/autogen/client/models/{agent.py → agent_manifest.py} +39 -30
- truefoundry/ml/autogen/client/models/{agent_open_api_tool.py → agent_open_api_tool_manifest.py} +50 -31
- truefoundry/ml/autogen/client/models/agent_open_api_tool_with_fqn.py +47 -26
- truefoundry/ml/autogen/client/models/agent_with_fqn.py +36 -25
- truefoundry/ml/autogen/client/models/{add_custom_metrics_to_model_version_request_dto.py → apply_request_dto.py} +23 -17
- truefoundry/ml/autogen/client/models/apply_response_dto.py +79 -0
- truefoundry/ml/autogen/client/models/artifact_dto.py +2 -2
- truefoundry/ml/autogen/client/models/{add_features_to_model_version_request_dto.py → artifact_path.py} +20 -17
- truefoundry/ml/autogen/client/models/artifact_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/artifact_type.py +3 -3
- truefoundry/ml/autogen/client/models/artifact_version_dto.py +7 -15
- truefoundry/ml/autogen/client/models/artifact_version_manifest.py +32 -19
- truefoundry/ml/autogen/client/models/artifact_version_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/artifact_version_serialization_format.py +2 -2
- truefoundry/ml/autogen/client/models/artifact_version_status.py +2 -2
- truefoundry/ml/autogen/client/models/assistant_message.py +9 -5
- truefoundry/ml/autogen/client/models/authorize_user_for_model_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/authorize_user_for_model_version_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/blob_storage_reference.py +4 -4
- truefoundry/ml/autogen/client/models/body_get_search_runs_get.py +2 -2
- truefoundry/ml/autogen/client/models/{chat_prompt.py → chat_prompt_manifest.py} +39 -32
- truefoundry/ml/autogen/client/models/{chat_prompt_messages_inner.py → chat_prompt_manifest_messages_inner.py} +12 -12
- truefoundry/ml/autogen/client/models/columns_dto.py +2 -2
- truefoundry/ml/autogen/client/models/command.py +2 -2
- truefoundry/ml/autogen/client/models/content.py +3 -3
- truefoundry/ml/autogen/client/models/content1.py +3 -3
- truefoundry/ml/autogen/client/models/content2.py +3 -3
- truefoundry/ml/autogen/client/models/content2_any_of_inner.py +2 -2
- truefoundry/ml/autogen/client/models/create_artifact_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_artifact_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_artifact_version_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_artifact_version_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_dataset_request_dto.py +21 -5
- truefoundry/ml/autogen/client/models/create_experiment_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_experiment_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_model_version_request_dto.py +4 -12
- truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_multi_part_upload_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_python_deployment_config_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_python_deployment_config_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_run_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_run_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_workflow_task_config_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/data_directory_manifest.py +126 -0
- truefoundry/ml/autogen/client/models/dataset_dto.py +13 -2
- truefoundry/ml/autogen/client/models/dataset_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/delete_artifact_versions_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/delete_dataset_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/delete_files_for_dataset_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/delete_model_version_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/delete_run_request.py +2 -2
- truefoundry/ml/autogen/client/models/delete_tag_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/experiment_dto.py +3 -3
- truefoundry/ml/autogen/client/models/experiment_id_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/experiment_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/experiment_tag_dto.py +2 -2
- truefoundry/ml/autogen/client/models/export_deployment_files_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/external_blob_storage_source.py +5 -4
- truefoundry/ml/autogen/client/models/fast_ai_framework.py +3 -3
- truefoundry/ml/autogen/client/models/file_info_dto.py +2 -2
- truefoundry/ml/autogen/client/models/finalize_artifact_version_request_dto.py +7 -15
- truefoundry/ml/autogen/client/models/framework.py +3 -3
- truefoundry/ml/autogen/client/models/get_artifact_version_aliases_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_experiment_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_latest_run_log_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_metric_history_response.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_url_for_dataset_write_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_write_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_tenant_id_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/gluon_framework.py +3 -3
- truefoundry/ml/autogen/client/models/h2_o_framework.py +3 -3
- truefoundry/ml/autogen/client/models/http_validation_error.py +2 -2
- truefoundry/ml/autogen/client/models/image_content_part.py +7 -5
- truefoundry/ml/autogen/client/models/image_url.py +3 -3
- truefoundry/ml/autogen/client/models/infer_method_name.py +2 -2
- truefoundry/ml/autogen/client/models/keras_framework.py +3 -3
- truefoundry/ml/autogen/client/models/latest_run_log_dto.py +2 -2
- truefoundry/ml/autogen/client/models/library_name.py +2 -2
- truefoundry/ml/autogen/client/models/light_gbm_framework.py +3 -3
- truefoundry/ml/autogen/client/models/list_artifact_versions_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_artifact_versions_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_artifacts_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_artifacts_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_colums_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_datasets_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_datasets_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_experiments_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_files_for_artifact_version_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_files_for_artifact_versions_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_files_for_dataset_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_files_for_dataset_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_latest_run_logs_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_metric_history_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_metric_history_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_model_version_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_model_versions_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_models_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_models_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_run_artifacts_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_run_logs_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/local_artifact_source.py +93 -0
- truefoundry/ml/autogen/client/models/local_model_source.py +80 -0
- truefoundry/ml/autogen/client/models/log_batch_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/log_metric_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/log_param_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/manifest.py +100 -23
- truefoundry/ml/autogen/client/models/manifest1.py +219 -0
- truefoundry/ml/autogen/client/models/manifest2.py +198 -0
- truefoundry/ml/autogen/client/models/method.py +3 -3
- truefoundry/ml/autogen/client/models/metric_collection_dto.py +2 -2
- truefoundry/ml/autogen/client/models/metric_dto.py +2 -2
- truefoundry/ml/autogen/client/models/mime_type.py +2 -2
- truefoundry/ml/autogen/client/models/model_configuration.py +7 -7
- truefoundry/ml/autogen/client/models/model_dto.py +2 -2
- truefoundry/ml/autogen/client/models/model_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/model_server.py +2 -2
- truefoundry/ml/autogen/client/models/model_version_dto.py +2 -2
- truefoundry/ml/autogen/client/models/model_version_environment.py +5 -5
- truefoundry/ml/autogen/client/models/model_version_manifest.py +35 -22
- truefoundry/ml/autogen/client/models/model_version_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/multi_part_upload_dto.py +2 -2
- truefoundry/ml/autogen/client/models/multi_part_upload_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/multi_part_upload_storage_provider.py +2 -2
- truefoundry/ml/autogen/client/models/notify_artifact_version_failure_dto.py +2 -2
- truefoundry/ml/autogen/client/models/onnx_framework.py +3 -3
- truefoundry/ml/autogen/client/models/openapi_spec.py +3 -3
- truefoundry/ml/autogen/client/models/paddle_framework.py +3 -3
- truefoundry/ml/autogen/client/models/param_dto.py +2 -2
- truefoundry/ml/autogen/client/models/parameters.py +3 -3
- truefoundry/ml/autogen/client/models/py_torch_framework.py +3 -3
- truefoundry/ml/autogen/client/models/resolve_agent_app_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/restore_run_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_data_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_info_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_log_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_log_input_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_tag_dto.py +2 -2
- truefoundry/ml/autogen/client/models/search_runs_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/search_runs_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/set_experiment_tag_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/set_tag_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/signed_url_dto.py +3 -4
- truefoundry/ml/autogen/client/models/sklearn_framework.py +4 -4
- truefoundry/ml/autogen/client/models/sklearn_model_schema.py +7 -5
- truefoundry/ml/autogen/client/models/sklearn_serialization_format.py +3 -3
- truefoundry/ml/autogen/client/models/source.py +32 -7
- truefoundry/ml/autogen/client/models/source1.py +3 -3
- truefoundry/ml/autogen/client/models/{internal_metadata.py → source2.py} +52 -55
- truefoundry/ml/autogen/client/models/spa_cy_framework.py +3 -3
- truefoundry/ml/autogen/client/models/stats_models_framework.py +3 -3
- truefoundry/ml/autogen/client/models/stop.py +2 -2
- truefoundry/ml/autogen/client/models/store_run_logs_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/subject.py +2 -2
- truefoundry/ml/autogen/client/models/subject_type.py +2 -2
- truefoundry/ml/autogen/client/models/system_message.py +7 -4
- truefoundry/ml/autogen/client/models/tensor_flow_framework.py +3 -3
- truefoundry/ml/autogen/client/models/text.py +3 -3
- truefoundry/ml/autogen/client/models/text_content_part.py +6 -4
- truefoundry/ml/autogen/client/models/transformers_framework.py +5 -5
- truefoundry/ml/autogen/client/models/trigger_job_run_config_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/trigger_job_run_config_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/true_foundry_managed_source.py +3 -3
- truefoundry/ml/autogen/client/models/update_artifact_version_request_dto.py +5 -7
- truefoundry/ml/autogen/client/models/update_dataset_request_dto.py +13 -3
- truefoundry/ml/autogen/client/models/update_experiment_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/update_model_version_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/update_run_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/update_run_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/url.py +3 -3
- truefoundry/ml/autogen/client/models/user_message.py +8 -5
- truefoundry/ml/autogen/client/models/validate_external_storage_root_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/validate_external_storage_root_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/validation_error.py +2 -2
- truefoundry/ml/autogen/client/models/validation_error_loc_inner.py +2 -2
- truefoundry/ml/autogen/client/models/xg_boost_framework.py +4 -4
- truefoundry/ml/autogen/client/models/xg_boost_model_schema.py +7 -5
- truefoundry/ml/autogen/client/models/xg_boost_serialization_format.py +3 -3
- truefoundry/ml/autogen/client/rest.py +2 -2
- truefoundry/ml/autogen/client_README.md +17 -19
- truefoundry/ml/autogen/entities/artifacts.py +266 -141
- truefoundry/ml/clients/servicefoundry_client.py +9 -8
- truefoundry/ml/log_types/artifacts/artifact.py +15 -78
- truefoundry/ml/log_types/artifacts/model.py +4 -5
- truefoundry/ml/log_types/artifacts/utils.py +18 -2
- truefoundry/ml/mlfoundry_api.py +0 -40
- truefoundry/ml/session.py +6 -3
- {truefoundry-0.5.9.dist-info → truefoundry-0.5.10.dist-info}/METADATA +3 -6
- {truefoundry-0.5.9.dist-info → truefoundry-0.5.10.dist-info}/RECORD +223 -217
- {truefoundry-0.5.9.dist-info → truefoundry-0.5.10.dist-info}/WHEEL +0 -0
- {truefoundry-0.5.9.dist-info → truefoundry-0.5.10.dist-info}/entry_points.txt +0 -0
|
@@ -71,25 +71,24 @@ class PortMetadata(BaseModel):
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
class DeploymentTransitionStatus(str, Enum):
|
|
74
|
-
INITIALIZED
|
|
75
|
-
BUILDING
|
|
76
|
-
DEPLOYING
|
|
77
|
-
BUILD_SUCCESS
|
|
78
|
-
DEPLOY_SUCCESS
|
|
79
|
-
DEPLOY_FAILED
|
|
80
|
-
BUILD_FAILED
|
|
81
|
-
CANCELLED
|
|
82
|
-
COMPONENTS_DEPLOYING
|
|
83
|
-
FAILED
|
|
84
|
-
REUSING_EXISTING_BUILD
|
|
85
|
-
REDEPLOY_STARTED
|
|
86
|
-
PAUSED
|
|
87
|
-
ROLLOUT_STARTED
|
|
88
|
-
SET_TRAFFIC
|
|
89
|
-
DEPLOY_FAILED_WITH_RETRY
|
|
90
|
-
WAITING
|
|
91
|
-
|
|
92
|
-
_: str = ""
|
|
74
|
+
INITIALIZED = "INITIALIZED"
|
|
75
|
+
BUILDING = "BUILDING"
|
|
76
|
+
DEPLOYING = "DEPLOYING"
|
|
77
|
+
BUILD_SUCCESS = "BUILD_SUCCESS"
|
|
78
|
+
DEPLOY_SUCCESS = "DEPLOY_SUCCESS"
|
|
79
|
+
DEPLOY_FAILED = "DEPLOY_FAILED"
|
|
80
|
+
BUILD_FAILED = "BUILD_FAILED"
|
|
81
|
+
CANCELLED = "CANCELLED"
|
|
82
|
+
COMPONENTS_DEPLOYING = "COMPONENTS_DEPLOYING"
|
|
83
|
+
FAILED = "FAILED"
|
|
84
|
+
REUSING_EXISTING_BUILD = "REUSING_EXISTING_BUILD"
|
|
85
|
+
REDEPLOY_STARTED = "REDEPLOY_STARTED"
|
|
86
|
+
PAUSED = "PAUSED"
|
|
87
|
+
ROLLOUT_STARTED = "ROLLOUT_STARTED"
|
|
88
|
+
SET_TRAFFIC = "SET_TRAFFIC"
|
|
89
|
+
DEPLOY_FAILED_WITH_RETRY = "DEPLOY_FAILED_WITH_RETRY"
|
|
90
|
+
WAITING = "WAITING"
|
|
91
|
+
_ = ""
|
|
93
92
|
|
|
94
93
|
@classmethod
|
|
95
94
|
def is_failure_state(cls, state: DeploymentTransitionStatus) -> bool:
|
|
@@ -112,6 +111,9 @@ class DeploymentManifest(Base):
|
|
|
112
111
|
|
|
113
112
|
|
|
114
113
|
class Deployment(Entity):
|
|
114
|
+
class Config:
|
|
115
|
+
extra = Extra.allow
|
|
116
|
+
|
|
115
117
|
id: str = Field(repr=False)
|
|
116
118
|
fqn: str
|
|
117
119
|
version: int
|
|
@@ -123,7 +125,8 @@ class Deployment(Entity):
|
|
|
123
125
|
metadata: Optional[
|
|
124
126
|
Union[Dict[str, Any], List[Dict[str, Any]]]
|
|
125
127
|
] # TODO (chiragjn): revisit the type of this field
|
|
126
|
-
|
|
128
|
+
# Server was not returning CurrentStatus
|
|
129
|
+
currentStatus: Optional[DeploymentStatus]
|
|
127
130
|
application_fqn: str
|
|
128
131
|
|
|
129
132
|
def __init__(self, **kwargs) -> None:
|
|
@@ -161,9 +164,6 @@ class Deployment(Entity):
|
|
|
161
164
|
"updated_at": self.updatedAt,
|
|
162
165
|
}
|
|
163
166
|
|
|
164
|
-
class Config:
|
|
165
|
-
extra = Extra.allow
|
|
166
|
-
|
|
167
167
|
|
|
168
168
|
class ApplicationWorkspace(Base):
|
|
169
169
|
name: str
|
|
@@ -285,6 +285,19 @@ class DeleteResult(BaseModel):
|
|
|
285
285
|
message: str
|
|
286
286
|
|
|
287
287
|
|
|
288
|
-
class
|
|
288
|
+
class ManifestLike(Base):
|
|
289
289
|
type: str
|
|
290
290
|
name: str
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
class LogBody(Base):
|
|
294
|
+
time: float
|
|
295
|
+
log: str
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
class SocketEvent(Base):
|
|
299
|
+
class Config:
|
|
300
|
+
smart_union = True
|
|
301
|
+
|
|
302
|
+
type: str
|
|
303
|
+
body: Union[LogBody, str, Any]
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# flake8: noqa
|
|
4
4
|
|
|
5
5
|
"""
|
|
6
|
-
|
|
6
|
+
TrueFoundry ML API
|
|
7
7
|
|
|
8
8
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
9
9
|
|
|
10
|
-
The version of the OpenAPI document:
|
|
10
|
+
The version of the OpenAPI document: 1.0.0
|
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
12
|
|
|
13
13
|
Do not edit the class manually.
|
|
@@ -42,20 +42,19 @@ from truefoundry.ml.autogen.client.exceptions import ApiAttributeError
|
|
|
42
42
|
from truefoundry.ml.autogen.client.exceptions import ApiException
|
|
43
43
|
|
|
44
44
|
# import models into sdk package
|
|
45
|
-
from truefoundry.ml.autogen.client.models.add_custom_metrics_to_model_version_request_dto import (
|
|
46
|
-
AddCustomMetricsToModelVersionRequestDto,
|
|
47
|
-
)
|
|
48
|
-
from truefoundry.ml.autogen.client.models.add_features_to_model_version_request_dto import (
|
|
49
|
-
AddFeaturesToModelVersionRequestDto,
|
|
50
|
-
)
|
|
51
|
-
from truefoundry.ml.autogen.client.models.agent import Agent
|
|
52
45
|
from truefoundry.ml.autogen.client.models.agent_app import AgentApp
|
|
53
|
-
from truefoundry.ml.autogen.client.models.
|
|
46
|
+
from truefoundry.ml.autogen.client.models.agent_manifest import AgentManifest
|
|
47
|
+
from truefoundry.ml.autogen.client.models.agent_open_api_tool_manifest import (
|
|
48
|
+
AgentOpenAPIToolManifest,
|
|
49
|
+
)
|
|
54
50
|
from truefoundry.ml.autogen.client.models.agent_open_api_tool_with_fqn import (
|
|
55
51
|
AgentOpenAPIToolWithFQN,
|
|
56
52
|
)
|
|
57
53
|
from truefoundry.ml.autogen.client.models.agent_with_fqn import AgentWithFQN
|
|
54
|
+
from truefoundry.ml.autogen.client.models.apply_request_dto import ApplyRequestDto
|
|
55
|
+
from truefoundry.ml.autogen.client.models.apply_response_dto import ApplyResponseDto
|
|
58
56
|
from truefoundry.ml.autogen.client.models.artifact_dto import ArtifactDto
|
|
57
|
+
from truefoundry.ml.autogen.client.models.artifact_path import ArtifactPath
|
|
59
58
|
from truefoundry.ml.autogen.client.models.artifact_response_dto import (
|
|
60
59
|
ArtifactResponseDto,
|
|
61
60
|
)
|
|
@@ -86,9 +85,9 @@ from truefoundry.ml.autogen.client.models.blob_storage_reference import (
|
|
|
86
85
|
from truefoundry.ml.autogen.client.models.body_get_search_runs_get import (
|
|
87
86
|
BodyGetSearchRunsGet,
|
|
88
87
|
)
|
|
89
|
-
from truefoundry.ml.autogen.client.models.
|
|
90
|
-
from truefoundry.ml.autogen.client.models.
|
|
91
|
-
|
|
88
|
+
from truefoundry.ml.autogen.client.models.chat_prompt_manifest import ChatPromptManifest
|
|
89
|
+
from truefoundry.ml.autogen.client.models.chat_prompt_manifest_messages_inner import (
|
|
90
|
+
ChatPromptManifestMessagesInner,
|
|
92
91
|
)
|
|
93
92
|
from truefoundry.ml.autogen.client.models.columns_dto import ColumnsDto
|
|
94
93
|
from truefoundry.ml.autogen.client.models.command import Command
|
|
@@ -146,6 +145,9 @@ from truefoundry.ml.autogen.client.models.create_run_response_dto import (
|
|
|
146
145
|
from truefoundry.ml.autogen.client.models.create_workflow_task_config_request_dto import (
|
|
147
146
|
CreateWorkflowTaskConfigRequestDto,
|
|
148
147
|
)
|
|
148
|
+
from truefoundry.ml.autogen.client.models.data_directory_manifest import (
|
|
149
|
+
DataDirectoryManifest,
|
|
150
|
+
)
|
|
149
151
|
from truefoundry.ml.autogen.client.models.dataset_dto import DatasetDto
|
|
150
152
|
from truefoundry.ml.autogen.client.models.dataset_response_dto import DatasetResponseDto
|
|
151
153
|
from truefoundry.ml.autogen.client.models.delete_artifact_versions_request_dto import (
|
|
@@ -231,7 +233,6 @@ from truefoundry.ml.autogen.client.models.http_validation_error import (
|
|
|
231
233
|
from truefoundry.ml.autogen.client.models.image_content_part import ImageContentPart
|
|
232
234
|
from truefoundry.ml.autogen.client.models.image_url import ImageUrl
|
|
233
235
|
from truefoundry.ml.autogen.client.models.infer_method_name import InferMethodName
|
|
234
|
-
from truefoundry.ml.autogen.client.models.internal_metadata import InternalMetadata
|
|
235
236
|
from truefoundry.ml.autogen.client.models.keras_framework import KerasFramework
|
|
236
237
|
from truefoundry.ml.autogen.client.models.latest_run_log_dto import LatestRunLogDto
|
|
237
238
|
from truefoundry.ml.autogen.client.models.library_name import LibraryName
|
|
@@ -299,6 +300,10 @@ from truefoundry.ml.autogen.client.models.list_run_artifacts_response_dto import
|
|
|
299
300
|
from truefoundry.ml.autogen.client.models.list_run_logs_response_dto import (
|
|
300
301
|
ListRunLogsResponseDto,
|
|
301
302
|
)
|
|
303
|
+
from truefoundry.ml.autogen.client.models.local_artifact_source import (
|
|
304
|
+
LocalArtifactSource,
|
|
305
|
+
)
|
|
306
|
+
from truefoundry.ml.autogen.client.models.local_model_source import LocalModelSource
|
|
302
307
|
from truefoundry.ml.autogen.client.models.log_batch_request_dto import (
|
|
303
308
|
LogBatchRequestDto,
|
|
304
309
|
)
|
|
@@ -309,6 +314,8 @@ from truefoundry.ml.autogen.client.models.log_param_request_dto import (
|
|
|
309
314
|
LogParamRequestDto,
|
|
310
315
|
)
|
|
311
316
|
from truefoundry.ml.autogen.client.models.manifest import Manifest
|
|
317
|
+
from truefoundry.ml.autogen.client.models.manifest1 import Manifest1
|
|
318
|
+
from truefoundry.ml.autogen.client.models.manifest2 import Manifest2
|
|
312
319
|
from truefoundry.ml.autogen.client.models.method import Method
|
|
313
320
|
from truefoundry.ml.autogen.client.models.metric_collection_dto import (
|
|
314
321
|
MetricCollectionDto,
|
|
@@ -378,6 +385,7 @@ from truefoundry.ml.autogen.client.models.sklearn_serialization_format import (
|
|
|
378
385
|
)
|
|
379
386
|
from truefoundry.ml.autogen.client.models.source import Source
|
|
380
387
|
from truefoundry.ml.autogen.client.models.source1 import Source1
|
|
388
|
+
from truefoundry.ml.autogen.client.models.source2 import Source2
|
|
381
389
|
from truefoundry.ml.autogen.client.models.spa_cy_framework import SpaCyFramework
|
|
382
390
|
from truefoundry.ml.autogen.client.models.stats_models_framework import (
|
|
383
391
|
StatsModelsFramework,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
TrueFoundry ML API
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
TrueFoundry ML API
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -21,21 +21,12 @@ 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
|
-
)
|
|
30
24
|
from truefoundry.ml.autogen.client.models.body_get_search_runs_get import (
|
|
31
25
|
BodyGetSearchRunsGet,
|
|
32
26
|
)
|
|
33
27
|
from truefoundry.ml.autogen.client.models.get_signed_urls_for_dataset_write_response_dto import (
|
|
34
28
|
GetSignedURLsForDatasetWriteResponseDto,
|
|
35
29
|
)
|
|
36
|
-
from truefoundry.ml.autogen.client.models.model_version_response_dto import (
|
|
37
|
-
ModelVersionResponseDto,
|
|
38
|
-
)
|
|
39
30
|
from truefoundry.ml.autogen.client.models.run_response_dto import RunResponseDto
|
|
40
31
|
from truefoundry.ml.autogen.client.models.search_runs_response_dto import (
|
|
41
32
|
SearchRunsResponseDto,
|
|
@@ -60,330 +51,6 @@ class DeprecatedApi:
|
|
|
60
51
|
api_client = ApiClient.get_default()
|
|
61
52
|
self.api_client = api_client
|
|
62
53
|
|
|
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
|
-
|
|
387
54
|
@validate_arguments
|
|
388
55
|
def get_run_by_name_get(
|
|
389
56
|
self,
|
|
@@ -532,7 +199,7 @@ class DeprecatedApi:
|
|
|
532
199
|
) # noqa: E501
|
|
533
200
|
|
|
534
201
|
# authentication setting
|
|
535
|
-
_auth_settings = ["
|
|
202
|
+
_auth_settings = ["APIKey"] # noqa: E501
|
|
536
203
|
|
|
537
204
|
_response_types_map = {
|
|
538
205
|
"200": "RunResponseDto",
|
|
@@ -752,7 +419,7 @@ class DeprecatedApi:
|
|
|
752
419
|
_header_params["Content-Type"] = _content_types_list
|
|
753
420
|
|
|
754
421
|
# authentication setting
|
|
755
|
-
_auth_settings = ["
|
|
422
|
+
_auth_settings = ["APIKey"] # noqa: E501
|
|
756
423
|
|
|
757
424
|
_response_types_map = {
|
|
758
425
|
"200": "SearchRunsResponseDto",
|
|
@@ -911,7 +578,7 @@ class DeprecatedApi:
|
|
|
911
578
|
) # noqa: E501
|
|
912
579
|
|
|
913
580
|
# authentication setting
|
|
914
|
-
_auth_settings = ["
|
|
581
|
+
_auth_settings = ["APIKey"] # noqa: E501
|
|
915
582
|
|
|
916
583
|
_response_types_map = {
|
|
917
584
|
"200": "GetSignedURLsForDatasetWriteResponseDto",
|