@@ -64,7 +64,9 @@ def _model_version_to_print(
6464 "tags" : [t .name for t in model_version .tags ],
6565 "data_artifacts_count" : len (model_version .data_artifact_ids ),
6666 "model_artifacts_count" : len (model_version .model_artifact_ids ),
67- "endpoint_artifacts_count" : len (model_version .endpoint_artifact_ids ),
67+ "deployment_artifacts_count" : len (
68+ model_version .deployment_artifact_ids
69+ ),
6870 "pipeline_runs_count" : len (model_version .pipeline_run_ids ),
6971 "updated" : model_version .updated .date (),
7072 }
@@ -519,7 +521,7 @@ def _print_artifacts_links_generic(
519521 model_name_or_id : str ,
520522 model_version_name_or_number_or_id : Optional [str ] = None ,
521523 only_data_artifacts : bool = False ,
522- only_endpoint_artifacts : bool = False ,
524+ only_deployment_artifacts : bool = False ,
523525 only_model_artifacts : bool = False ,
524526 ** kwargs : Any ,
525527) -> None :
@@ -529,7 +531,7 @@ def _print_artifacts_links_generic(
529531 model_name_or_id: The ID or name of the model containing version.
530532 model_version_name_or_number_or_id: The name, number or ID of the model version.
531533 only_data_artifacts: If set, only print data artifacts.
532- only_endpoint_artifacts : If set, only print endpoint artifacts.
534+ only_deployment_artifacts : If set, only print deployment artifacts.
533535 only_model_artifacts: If set, only print model artifacts.
534536 **kwargs: Keyword arguments to filter models.
535537 """
@@ -540,15 +542,16 @@ def _print_artifacts_links_generic(
540542 type_ = (
541543 "data artifacts"
542544 if only_data_artifacts
543- else "endpoint artifacts"
544- if only_endpoint_artifacts
545+ else "deployment artifacts"
546+ if only_deployment_artifacts
545547 else "model artifacts"
546548 )
547549
548550 if (
549551 (only_data_artifacts and not model_version .data_artifact_ids )
550552 or (
551- only_endpoint_artifacts and not model_version .endpoint_artifact_ids
553+ only_deployment_artifacts
554+ and not model_version .deployment_artifact_ids
552555 )
553556 or (only_model_artifacts and not model_version .model_artifact_ids )
554557 ):
@@ -562,7 +565,7 @@ def _print_artifacts_links_generic(
562565 links = Client ().list_model_version_artifact_links (
563566 model_version_id = model_version .id ,
564567 only_data_artifacts = only_data_artifacts ,
565- only_endpoint_artifacts = only_endpoint_artifacts ,
568+ only_deployment_artifacts = only_deployment_artifacts ,
566569 only_model_artifacts = only_model_artifacts ,
567570 ** kwargs ,
568571 )
@@ -630,18 +633,18 @@ def list_model_version_model_artifacts(
630633
631634
632635@model .command (
633- "endpoint_artifacts " ,
634- help = "List endpoint artifacts linked to a model version." ,
636+ "deployment_artifacts " ,
637+ help = "List deployment artifacts linked to a model version." ,
635638)
636639@click .argument ("model_name" )
637640@click .option ("--model_version" , "-v" , default = None )
638641@cli_utils .list_options (ModelVersionArtifactFilter )
639- def list_model_version_endpoint_artifacts (
642+ def list_model_version_deployment_artifacts (
640643 model_name : str ,
641644 model_version : Optional [str ] = None ,
642645 ** kwargs : Any ,
643646) -> None :
644- """List endpoint artifacts linked to a model version in the Model Control Plane.
647+ """List deployment artifacts linked to a model version in the Model Control Plane.
645648
646649 Args:
647650 model_name: The ID or name of the model containing version.
@@ -652,7 +655,7 @@ def list_model_version_endpoint_artifacts(
652655 _print_artifacts_links_generic (
653656 model_name_or_id = model_name ,
654657 model_version_name_or_number_or_id = model_version ,
655- only_endpoint_artifacts = True ,
658+ only_deployment_artifacts = True ,
656659 ** kwargs ,
657660 )
658661
0 commit comments