diff --git a/sdk/python/kfp/client/client.py b/sdk/python/kfp/client/client.py index 371b33c73bf..0f787ce93fd 100644 --- a/sdk/python/kfp/client/client.py +++ b/sdk/python/kfp/client/client.py @@ -585,16 +585,21 @@ def get_experiment(self, experiment_name)) return result.experiments[0] - def archive_experiment(self, experiment_id: str): + def archive_experiment(self, experiment_id: str) -> None: """Archives an experiment. Args: experiment_id: id of the experiment. + """ + self._experiment_api.archive_experiment(id=experiment_id) - Raises: - kfp_server_api.ApiException: If experiment is not found. + def unarchive_experiment(self, experiment_id: str) -> None: + """Unarchives an experiment. + + Args: + experiment_id: id of the experiment. """ - self._experiment_api.archive_experiment(experiment_id) + self._experiment_api.unarchive_experiment(id=experiment_id) def delete_experiment(self, experiment_id): """Delete experiment. @@ -1486,6 +1491,23 @@ def list_pipeline_versions( resource_key_id=pipeline_id, filter=filter) + def get_pipeline_version( + self, version_id: str + ) -> kfp_server_api.models.api_pipeline_version.ApiPipelineVersion: + """Gets a pipeline version. + + Args: + version_id: id of the pipeline version. + + Returns: + Object. If the method is called asynchronously, returns the request + thread. + + Raises: + kfp_server_api.ApiException: If pipeline version is not found. + """ + return self._pipelines_api.get_pipeline_version(version_id=version_id) + def delete_pipeline_version(self, version_id: str): """Deletes a pipeline version.