@@ -63,6 +63,8 @@ class EvaluatorOperations(_ScopeDependentOperations):
6363 :type datastore_operations: ~azure.ai.ml.operations._datastore_operations.DatastoreOperations
6464 :param all_operations: All operations classes of an MLClient object.
6565 :type all_operations: ~azure.ai.ml._scope_dependent_operations.OperationsContainer
66+ :param kwargs: A dictionary of additional configuration parameters.
67+ :type kwargs: dict
6668 """
6769
6870 # pylint: disable=unused-argument
@@ -92,7 +94,7 @@ def __init__(
9294
9395 @monitor_with_activity (ops_logger , "Evaluator.CreateOrUpdate" , ActivityType .PUBLICAPI )
9496 def create_or_update ( # type: ignore
95- self , model : Union [Model , WorkspaceAssetReference ]
97+ self , model : Union [Model , WorkspaceAssetReference ], ** kwargs : Any
9698 ) -> Model : # TODO: Are we going to implement job_name?
9799 """Returns created or updated model asset.
98100
@@ -125,15 +127,15 @@ def _raise_if_not_evaluator(self, properties: Optional[Dict[str, Any]], message:
125127 )
126128
127129 @monitor_with_activity (ops_logger , "Evaluator.Get" , ActivityType .PUBLICAPI )
128- def get (self , name : str , version : Optional [str ] = None , label : Optional [str ] = None ) -> Model :
130+ def get (self , name : str , * , version : Optional [str ] = None , label : Optional [str ] = None , ** kwargs ) -> Model :
129131 """Returns information about the specified model asset.
130132
131133 :param name: Name of the model.
132134 :type name: str
133- :param version: Version of the model.
134- :type version: str
135- :param label: Label of the model. (mutually exclusive with version)
136- :type label: str
135+ :keyword version: Version of the model.
136+ :paramtype version: str
137+ :keyword label: Label of the model. (mutually exclusive with version)
138+ :paramtype label: str
137139 :raises ~azure.ai.ml.exceptions.ValidationException: Raised if Model cannot be successfully validated.
138140 Details will be provided in the error message.
139141 :return: Model asset object.
@@ -150,7 +152,7 @@ def get(self, name: str, version: Optional[str] = None, label: Optional[str] = N
150152 return model
151153
152154 @monitor_with_activity (ops_logger , "Evaluator.Download" , ActivityType .PUBLICAPI )
153- def download (self , name : str , version : str , download_path : Union [PathLike , str ] = "." ) -> None :
155+ def download (self , name : str , version : str , download_path : Union [PathLike , str ] = "." , ** kwargs : Any ) -> None :
154156 """Download files related to a model.
155157
156158 :param name: Name of the model.
@@ -171,6 +173,7 @@ def list(
171173 stage : Optional [str ] = None ,
172174 * ,
173175 list_view_type : ListViewType = ListViewType .ACTIVE_ONLY ,
176+ ** kwargs : Any ,
174177 ) -> Iterable [Model ]:
175178 """List all model assets in workspace.
176179
0 commit comments