feat(sdk): add .list_pipeline_versions and .unarchive_experiment methods to Client (#7563)

* add client methods

* update release notes
This commit is contained in:
Connor McCarthy 2022-04-14 15:28:38 -06:00 committed by GitHub
parent 5a8202e8b2
commit 2494447578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 5 deletions

View File

@ -1,6 +1,7 @@
# Current Version (Still in Development)
## Major Features and Improvements
* feat(sdk): add .list_pipeline_versions and .unarchive_experiment methods to Client [\#7563](https://github.com/kubeflow/pipelines/pull/7563)
## Breaking Changes

View File

@ -585,16 +585,21 @@ class Client:
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.
Raises:
kfp_server_api.ApiException: If experiment is not found.
"""
self._experiment_api.archive_experiment(experiment_id)
self._experiment_api.archive_experiment(id=experiment_id)
def unarchive_experiment(self, experiment_id: str) -> None:
"""Unarchives an experiment.
Args:
experiment_id: id of the experiment.
"""
self._experiment_api.unarchive_experiment(id=experiment_id)
def delete_experiment(self, experiment_id):
"""Delete experiment.
@ -1486,6 +1491,23 @@ class Client:
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.