From fc8fddcf5dfe97f94b765ed52f02fd58c0dea961 Mon Sep 17 00:00:00 2001 From: itaiad200 Date: Mon, 23 Oct 2023 22:01:11 +0300 Subject: [PATCH] Update code-migrate-1.0-sdk.md (#6843) --- docs/project/code-migrate-1.0-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/project/code-migrate-1.0-sdk.md b/docs/project/code-migrate-1.0-sdk.md index ab2ea7dbf1a..8c64c17253f 100644 --- a/docs/project/code-migrate-1.0-sdk.md +++ b/docs/project/code-migrate-1.0-sdk.md @@ -144,7 +144,7 @@ If you are using the lakeFS client for Python, be aware that the current package 6. **Fetching results from response objects**: Instead of fetching the required results properties from a dictionary using `response_result.get_property(prop_name)`, the response objects will include domain specific entities, thus referring to the properties in the `results` of the response - `response_result.prop_name`. For example, instead of: ```python -response = lakefs_client.branches_api.diff_branch(repository='repo', branch='main') +response = lakefs_client.branches.diff_branch(repository='repo', branch='main') diff = response.results[0] # 'results' is a 'DiffList' object path = diff.get_property('path') # 'diff' is a dictionary ```