Skip to content

Commit

Permalink
Update code-migrate-1.0-sdk.md (#6843)
Browse files Browse the repository at this point in the history
  • Loading branch information
itaiad200 authored Oct 23, 2023
1 parent 537a7f3 commit fc8fddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/project/code-migrate-1.0-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit fc8fddc

Please sign in to comment.